vendor: 4,969 bytes, lines 1-9
1var JU=Object.defineProperty;var QU=(t,e,r)=>e in t?JU(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var nA=(t,e,r)=>QU(t,typeof e!="symbol"?e+"":e,r);function ZU(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var tf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var iy={exports:{}},ql={},ay={exports:{}},Le={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var iA;function e4(){if(iA)return Le;iA=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.iterator;function g(L){return L===null||typeof L!="object"?null:(L=m&&L[m]||L["@@iterator"],typeof L=="function"?L:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function x(L,W,V){this.props=L,this.context=W,this.refs=w,this.updater=V||v}x.prototype.isReactComponent={},x.prototype.setState=function(L,W){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,W,"setState")},x.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function k(){}k.prototype=x.prototype;function P(L,W,V){this.props=L,this.context=W,this.refs=w,this.updater=V||v}var A=P.prototype=new k;A.constructor=P,b(A,x.prototype),A.isPureReactComponent=!0;var E=Array.isArray,T=Object.prototype.hasOwnProperty,_={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function I(L,W,V){var re,de={},Pe=null,De=null;if(W!=null)for(re in W.ref!==void 0&&(De=W.ref),W.key!==void 0&&(Pe=""+W.key),W)T.call(W,re)&&!O.hasOwnProperty(re)&&(de[re]=W[re]);var Oe=arguments.length-2;if(Oe===1)de.children=V;else if(1<Oe){for(var le=Array(Oe),we=0;we<Oe;we++)le[we]=arguments[we+2];de.children=le}if(L&&L.defaultProps)for(re in Oe=L.defaultProps,Oe)de[re]===void 0&&(de[re]=Oe[re]);return{$$typeof:t,type:L,key:Pe,ref:De,props:de,_owner:_.current}}function R(L,W){return{$$typeof:t,type:L.type,key:W,ref:L.ref,props:L.props,_owner:L._owner}}function D(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function F(L){var W={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(V){return W[V]})}var B=/\/+/g;function G(L,W){return typeof L=="object"&&L!==null&&L.key!=null?F(""+L.key):W.toString(36)}function Y(L,W,V,re,de){var Pe=typeof L;(Pe==="undefined"||Pe==="boolean")&&(L=null);var De=!1;if(L===null)De=!0;else switch(Pe){case"string":case"number":De=!0;break;case"object":switch(L.$$typeof){case t:case e:De=!0}}if(De)return De=L,de=de(De),L=re===""?"."+G(De,0):re,E(de)?(V="",L!=null&&(V=L.replace(B,"$&/")+"/"),Y(de,W,V,"",function(we){return we})):de!=null&&(D(de)&&(de=R(de,V+(!de.key||De&&De.key===de.key?"":(""+de.key).replace(B,"$&/")+"/")+L)),W.push(de)),1;if(De=0,re=re===""?".":re+":",E(L))for(var Oe=0;Oe<L.length;Oe++){Pe=L[Oe];var le=re+G(Pe,Oe);De+=Y(Pe,W,V,le,de)}else if(le=g(L),typeof le=="function")for(L=le.call(L),Oe=0;!(Pe=L.next()).done;)Pe=Pe.value,le=re+G(Pe,Oe++),De+=Y(Pe,W,V,le,de);else if(Pe==="object")throw W=String(L),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.");return De}
vendor: 10,348 bytes, lines 9-33
9function z(L,W,V){if(L==null)return L;var re=[],de=0;return Y(L,re,"","",function(Pe){return W.call(V,Pe,de++)}),re}function K(L){if(L._status===-1){var W=L._result;W=W(),W.then(function(V){(L._status===0||L._status===-1)&&(L._status=1,L._result=V)},function(V){(L._status===0||L._status===-1)&&(L._status=2,L._result=V)}),L._status===-1&&(L._status=0,L._result=W)}if(L._status===1)return L._result.default;throw L._result}var Q={current:null},q={transition:null},Z={ReactCurrentDispatcher:Q,ReactCurrentBatchConfig:q,ReactCurrentOwner:_};function ee(){throw Error("act(...) is not supported in production builds of React.")}return Le.Children={map:z,forEach:function(L,W,V){z(L,function(){W.apply(this,arguments)},V)},count:function(L){var W=0;return z(L,function(){W++}),W},toArray:function(L){return z(L,function(W){return W})||[]},only:function(L){if(!D(L))throw Error("React.Children.only expected to receive a single React element child.");return L}},Le.Component=x,Le.Fragment=r,Le.Profiler=i,Le.PureComponent=P,Le.StrictMode=n,Le.Suspense=u,Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,Le.act=ee,Le.cloneElement=function(L,W,V){if(L==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+L+".");var re=b({},L.props),de=L.key,Pe=L.ref,De=L._owner;if(W!=null){if(W.ref!==void 0&&(Pe=W.ref,De=_.current),W.key!==void 0&&(de=""+W.key),L.type&&L.type.defaultProps)var Oe=L.type.defaultProps;for(le in W)T.call(W,le)&&!O.hasOwnProperty(le)&&(re[le]=W[le]===void 0&&Oe!==void 0?Oe[le]:W[le])}var le=arguments.length-2;if(le===1)re.children=V;else if(1<le){Oe=Array(le);for(var we=0;we<le;we++)Oe[we]=arguments[we+2];re.children=Oe}return{$$typeof:t,type:L.type,key:de,ref:Pe,props:re,_owner:De}},Le.createContext=function(L){return L={$$typeof:o,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},L.Provider={$$typeof:a,_context:L},L.Consumer=L},Le.createElement=I,Le.createFactory=function(L){var W=I.bind(null,L);return W.type=L,W},Le.createRef=function(){return{current:null}},Le.forwardRef=function(L){return{$$typeof:l,render:L}},Le.isValidElement=D,Le.lazy=function(L){return{$$typeof:h,_payload:{_status:-1,_result:L},_init:K}},Le.memo=function(L,W){return{$$typeof:d,type:L,compare:W===void 0?null:W}},Le.startTransition=function(L){var W=q.transition;q.transition={};try{L()}finally{q.transition=W}},Le.unstable_act=ee,Le.useCallback=function(L,W){return Q.current.useCallback(L,W)},Le.useContext=function(L){return Q.current.useContext(L)},Le.useDebugValue=function(){},Le.useDeferredValue=function(L){return Q.current.useDeferredValue(L)},Le.useEffect=function(L,W){return Q.current.useEffect(L,W)},Le.useId=function(){return Q.current.useId()},Le.useImperativeHandle=function(L,W,V){return Q.current.useImperativeHandle(L,W,V)},Le.useInsertionEffect=function(L,W){return Q.current.useInsertionEffect(L,W)},Le.useLayoutEffect=function(L,W){return Q.current.useLayoutEffect(L,W)},Le.useMemo=function(L,W){return Q.current.useMemo(L,W)},Le.useReducer=function(L,W,V){return Q.current.useReducer(L,W,V)},Le.useRef=function(L){return Q.current.useRef(L)},Le.useState=function(L){return Q.current.useState(L)},Le.useSyncExternalStore=function(L,W,V){return Q.current.useSyncExternalStore(L,W,V)},Le.useTransition=function(){return Q.current.useTransition()},Le.version="18.3.1",Le}var aA;function s1(){return aA||(aA=1,ay.exports=e4()),ay.exports}/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var oA;function t4(){if(oA)return ql;oA=1;var t=s1(),e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(l,u,d){var h,m={},g=null,v=null;d!==void 0&&(g=""+d),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(v=u.ref);for(h in u)n.call(u,h)&&!a.hasOwnProperty(h)&&(m[h]=u[h]);if(l&&l.defaultProps)for(h in u=l.defaultProps,u)m[h]===void 0&&(m[h]=u[h]);return{$$typeof:e,type:l,key:g,ref:v,props:m,_owner:i.current}}return ql.Fragment=r,ql.jsx=o,ql.jsxs=o,ql}var sA;function r4(){return sA||(sA=1,iy.exports=t4()),iy.exports}var f=r4(),N=s1();const $=qe(N),n4=ZU({__proto__:null,default:$},[N]);var rf={},oy={exports:{}},yr={},sy={exports:{}},ly={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var lA;function i4(){return lA||(lA=1,(function(t){function e(q,Z){var ee=q.length;q.push(Z);e:for(;0<ee;){var L=ee-1>>>1,W=q[L];if(0<i(W,Z))q[L]=Z,q[ee]=W,ee=L;else break e}}function r(q){return q.length===0?null:q[0]}function n(q){if(q.length===0)return null;var Z=q[0],ee=q.pop();if(ee!==Z){q[0]=ee;e:for(var L=0,W=q.length,V=W>>>1;L<V;){var re=2*(L+1)-1,de=q[re],Pe=re+1,De=q[Pe];if(0>i(de,ee))Pe<W&&0>i(De,de)?(q[L]=De,q[Pe]=ee,L=Pe):(q[L]=de,q[re]=ee,L=re);else if(Pe<W&&0>i(De,ee))q[L]=De,q[Pe]=ee,L=Pe;else break e}}return Z}function i(q,Z){var ee=q.sortIndex-Z.sortIndex;return ee!==0?ee:q.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var u=[],d=[],h=1,m=null,g=3,v=!1,b=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(q){for(var Z=r(d);Z!==null;){if(Z.callback===null)n(d);else if(Z.startTime<=q)n(d),Z.sortIndex=Z.expirationTime,e(u,Z);else break;Z=r(d)}}function E(q){if(w=!1,A(q),!b)if(r(u)!==null)b=!0,K(T);else{var Z=r(d);Z!==null&&Q(E,Z.startTime-q)}}function T(q,Z){b=!1,w&&(w=!1,k(I),I=-1),v=!0;var ee=g;try{for(A(Z),m=r(u);m!==null&&(!(m.expirationTime>Z)||q&&!F());){var L=m.callback;if(typeof L=="function"){m.callback=null,g=m.priorityLevel;var W=L(m.expirationTime<=Z);Z=t.unstable_now(),typeof W=="function"?m.callback=W:m===r(u)&&n(u),A(Z)}else n(u);m=r(u)}if(m!==null)var V=!0;else{var re=r(d);re!==null&&Q(E,re.startTime-Z),V=!1}return V}finally{m=null,g=ee,v=!1}}var _=!1,O=null,I=-1,R=5,D=-1;function F(){return!(t.unstable_now()-D<R)}function B(){if(O!==null){var q=t.unstable_now();D=q;var Z=!0;try{Z=O(!0,q)}finally{Z?G():(_=!1,O=null)}}else _=!1}var G;if(typeof P=="function")G=function(){P(B)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,z=Y.port2;Y.port1.onmessage=B,G=function(){z.postMessage(null)}}else G=function(){x(B,0)};function K(q){O=q,_||(_=!0,G())}function Q(q,Z){I=x(function(){q(t.unstable_now())},Z)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(q){q.callback=null},t.unstable_continueExecution=function(){b||v||(b=!0,K(T))},t.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<q?Math.floor(1e3/q):5},t.unstable_getCurrentPriorityLevel=function(){return g},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(q){switch(g){case 1:case 2:case 3:var Z=3;break;default:Z=g}var ee=g;g=Z;try{return q()}finally{g=ee}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(q,Z){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=g;g=q;try{return Z()}finally{g=ee}},t.unstable_scheduleCallback=function(q,Z,ee){var L=t.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?L+ee:L):ee=L,q){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=ee+W,q={id:h++,callback:Z,priorityLevel:q,startTime:ee,expirationTime:W,sortIndex:-1},ee>L?(q.sortIndex=ee,e(d,q),r(u)===null&&q===r(d)&&(w?(k(I),I=-1):w=!0,Q(E,ee-L))):(q.sortIndex=W,e(u,q),b||v||(b=!0,K(T))),q},t.unstable_shouldYield=F,t.unstable_wrapCallback=function(q){var Z=g;return function(){var ee=g;g=Z;try{return q.apply(this,arguments)}finally{g=ee}}}})(ly)),ly}var cA;function a4(){return cA||(cA=1,sy.exports=i4()),sy.exports}/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var uA;function o4(){if(uA)return yr;uA=1;var t=s1(),e=a4();function r(s){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+s,p=1;p<arguments.length;p++)c+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function a(s,c){o(s,c),o(s+"Capture",c)}function o(s,c){for(i[s]=c,s=0;s<c.length;s++)n.add(c[s])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,d=/^[: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]*$/,h={},m={};function g(s){return u.call(m,s)?!0:u.call(h,s)?!1:d.test(s)?m[s]=!0:(h[s]=!0,!1)}function v(s,c,p,y){if(p!==null&&p.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return y?!1:p!==null?!p.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function b(s,c,p,y){if(c===null||typeof c>"u"||v(s,c,p,y))return!0;
vendor: 27,780 bytes, lines 33-37
33if(y)return!1;if(p!==null)switch(p.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function w(s,c,p,y,S,j,C){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=y,this.attributeNamespace=S,this.mustUseProperty=p,this.propertyName=s,this.type=c,this.sanitizeURL=j,this.removeEmptyString=C}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){x[s]=new w(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0];x[c]=new w(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){x[s]=new w(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){x[s]=new w(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){x[s]=new w(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){x[s]=new w(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){x[s]=new w(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){x[s]=new w(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){x[s]=new w(s,5,!1,s.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function P(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var c=s.replace(k,P);x[c]=new w(c,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var c=s.replace(k,P);x[c]=new w(c,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(k,P);x[c]=new w(c,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){x[s]=new w(s,1,!1,s.toLowerCase(),null,!1,!1)}),x.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){x[s]=new w(s,1,!1,s.toLowerCase(),null,!0,!0)});function A(s,c,p,y){var S=x.hasOwnProperty(c)?x[c]:null;(S!==null?S.type!==0:y||!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(b(c,p,S,y)&&(p=null),y||S===null?g(c)&&(p===null?s.removeAttribute(c):s.setAttribute(c,""+p)):S.mustUseProperty?s[S.propertyName]=p===null?S.type===3?!1:"":p:(c=S.attributeName,y=S.attributeNamespace,p===null?s.removeAttribute(c):(S=S.type,p=S===3||S===4&&p===!0?"":""+p,y?s.setAttributeNS(y,c,p):s.setAttribute(c,p))))}var E=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),_=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),F=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),Q=Symbol.for("react.offscreen"),q=Symbol.iterator;function Z(s){return s===null||typeof s!="object"?null:(s=q&&s[q]||s["@@iterator"],typeof s=="function"?s:null)}var ee=Object.assign,L;function W(s){if(L===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);L=c&&c[1]||""}return` 34`+L+s}var V=!1;function re(s,c){if(!s||V)return"";V=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(te){var y=te}Reflect.construct(s,[],c)}else{try{c.call()}catch(te){y=te}s.call(c.prototype)}else{try{throw Error()}catch(te){y=te}s()}}catch(te){if(te&&y&&typeof te.stack=="string"){for(var S=te.stack.split(` 35`),j=y.stack.split(` 36`),C=S.length-1,M=j.length-1;1<=C&&0<=M&&S[C]!==j[M];)M--;for(;1<=C&&0<=M;C--,M--)if(S[C]!==j[M]){if(C!==1||M!==1)do if(C--,M--,0>M||S[C]!==j[M]){var U=` 37`+S[C].replace(" at new "," at ");return s.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",s.displayName)),U}while(1<=C&&0<=M);break}}}finally{V=!1,Error.prepareStackTrace=p}return(s=s?s.displayName||s.name:"")?W(s):""}function de(s){switch(s.tag){case 5:return W(s.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return s=re(s.type,!1),s;case 11:return s=re(s.type.render,!1),s;case 1:return s=re(s.type,!0),s;default:return""}}function Pe(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case O:return"Fragment";case _:return"Portal";case R:return"Profiler";case I:return"StrictMode";case G:return"Suspense";case Y:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case F:return(s.displayName||"Context")+".Consumer";case D:return(s._context.displayName||"Context")+".Provider";case B:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case z:return c=s.displayName||null,c!==null?c:Pe(s.type)||"Memo";case K:c=s._payload,s=s._init;try{return Pe(s(c))}catch{}}return null}function De(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pe(c);case 8:return c===I?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function Oe(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function le(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function we(s){var c=le(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),y=""+s[c];if(!s.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var S=p.get,j=p.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return S.call(this)},set:function(C){y=""+C,j.call(this,C)}}),Object.defineProperty(s,c,{enumerable:p.enumerable}),{getValue:function(){return y},setValue:function(C){y=""+C},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Ce(s){s._valueTracker||(s._valueTracker=we(s))}function oe(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var p=c.getValue(),y="";return s&&(y=le(s)?s.checked?"true":"false":s.value),s=y,s!==p?(c.setValue(s),!0):!1}function Xe(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function $e(s,c){var p=c.checked;return ee({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??s._wrapperState.initialChecked})}function ht(s,c){var p=c.defaultValue==null?"":c.defaultValue,y=c.checked!=null?c.checked:c.defaultChecked;p=Oe(c.value!=null?c.value:p),s._wrapperState={initialChecked:y,initialValue:p,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function mt(s,c){c=c.checked,c!=null&&A(s,"checked",c,!1)}function Dt(s,c){mt(s,c);var p=Oe(c.value),y=c.type;if(p!=null)y==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=""+p):s.value!==""+p&&(s.value=""+p);else if(y==="submit"||y==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?Pn(s,c.type,p):c.hasOwnProperty("defaultValue")&&Pn(s,c.type,Oe(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function Qr(s,c,p){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var y=c.type;if(!(y!=="submit"&&y!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+s._wrapperState.initialValue,p||c===s.value||(s.value=c),s.defaultValue=c}p=s.name,p!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,p!==""&&(s.name=p)}function Pn(s,c,p){(c!=="number"||Xe(s.ownerDocument)!==s)&&(p==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+p&&(s.defaultValue=""+p))}var Tn=Array.isArray;function dr(s,c,p,y){if(s=s.options,c){c={};for(var S=0;S<p.length;S++)c["$"+p[S]]=!0;for(p=0;p<s.length;p++)S=c.hasOwnProperty("$"+s[p].value),s[p].selected!==S&&(s[p].selected=S),S&&y&&(s[p].defaultSelected=!0)}else{for(p=""+Oe(p),c=null,S=0;S<s.length;S++){if(s[S].value===p){s[S].selected=!0,y&&(s[S].defaultSelected=!0);return}c!==null||s[S].disabled||(c=s[S])}c!==null&&(c.selected=!0)}}function Zr(s,c){if(c.dangerouslySetInnerHTML!=null)throw Error(r(91));return ee({},c,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function vo(s,c){var p=c.value;if(p==null){if(p=c.children,c=c.defaultValue,p!=null){if(c!=null)throw Error(r(92));if(Tn(p)){if(1<p.length)throw Error(r(93));p=p[0]}c=p}c==null&&(c=""),p=c}s._wrapperState={initialValue:Oe(p)}}function ol(s,c){var p=Oe(c.value),y=Oe(c.defaultValue);p!=null&&(p=""+p,p!==s.value&&(s.value=p),c.defaultValue==null&&s.defaultValue!==p&&(s.defaultValue=p)),y!=null&&(s.defaultValue=""+y)}function sl(s){var c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function gj(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pp(s,c){return s==null||s==="http://www.w3.org/1999/xhtml"?gj(c):s==="http://www.w3.org/2000/svg"&&c==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var Gu,yj=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(c,p,y,S){MSApp.execUnsafeLocalFunction(function(){return s(c,p,y,S)})}:s})(function(s,c){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=c;else{for(Gu=Gu||document.createElement("div"),Gu.innerHTML="<svg>"+c.valueOf().toString()+"</svg>",c=Gu.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}});function ll(s,c){if(c){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=c;return}}s.textContent=c}var cl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tV=["Webkit","ms","Moz","O"];Object.keys(cl).forEach(function(s){tV.forEach(function(c){c=c+s.charAt(0).toUpperCase()+s.substring(1),cl[c]=cl[s]})});function vj(s,c,p){return c==null||typeof c=="boolean"||c===""?"":p||typeof c!="number"||c===0||cl.hasOwnProperty(s)&&cl[s]?(""+c).trim():c+"px"}function xj(s,c){s=s.style;for(var p in c)if(c.hasOwnProperty(p)){var y=p.indexOf("--")===0,S=vj(p,c[p],y);p==="float"&&(p="cssFloat"),y?s.setProperty(p,S):s[p]=S}}var rV=ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function gp(s,c){if(c){if(rV[s]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(r(137,s));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(r(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(r(61))}if(c.style!=null&&typeof c.style!="object")throw Error(r(62))}}function yp(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){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 vp=null;function xp(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var bp=null,xo=null,bo=null;function bj(s){if(s=Ol(s)){if(typeof bp!="function")throw Error(r(280));var c=s.stateNode;c&&(c=gd(c),bp(s.stateNode,s.type,c))}}function wj(s){xo?bo?bo.push(s):bo=[s]:xo=s}function Sj(){if(xo){var s=xo,c=bo;if(bo=xo=null,bj(s),c)for(s=0;s<c.length;s++)bj(c[s])}}function kj(s,c){return s(c)}function jj(){}var wp=!1;function Pj(s,c,p){if(wp)return s(c,p);wp=!0;try{return kj(s,c,p)}finally{wp=!1,(xo!==null||bo!==null)&&(jj(),Sj())}}function ul(s,c){var p=s.stateNode;if(p===null)return null;var y=gd(p);if(y===null)return null;p=y[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(y=!y.disabled)||(s=s.type,y=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!y;break e;default:s=!1}if(s)return null;if(p&&typeof p!="function")throw Error(r(231,c,typeof p));return p}var Sp=!1;if(l)try{var dl={};Object.defineProperty(dl,"passive",{get:function(){Sp=!0}}),window.addEventListener("test",dl,dl),window.removeEventListener("test",dl,dl)}catch{Sp=!1}function nV(s,c,p,y,S,j,C,M,U){var te=Array.prototype.slice.call(arguments,3);try{c.apply(p,te)}catch(ae){this.onError(ae)}}var fl=!1,Ku=null,Yu=!1,kp=null,iV={onError:function(s){fl=!0,Ku=s}};function aV(s,c,p,y,S,j,C,M,U){fl=!1,Ku=null,nV.apply(iV,arguments)}function oV(s,c,p,y,S,j,C,M,U){if(aV.apply(this,arguments),fl){if(fl){var te=Ku;fl=!1,Ku=null}else throw Error(r(198));Yu||(Yu=!0,kp=te)}}function ba(s){var c=s,p=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,(c.flags&4098)!==0&&(p=c.return),s=c.return;while(s)}return c.tag===3?p:null}function Tj(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function Aj(s){if(ba(s)!==s)throw Error(r(188))}function sV(s){var c=s.alternate;if(!c){if(c=ba(s),c===null)throw Error(r(188));return c!==s?null:s}for(var p=s,y=c;;){var S=p.return;if(S===null)break;var j=S.alternate;if(j===null){if(y=S.return,y!==null){p=y;continue}break}if(S.child===j.child){for(j=S.child;j;){if(j===p)return Aj(S),s;if(j===y)return Aj(S),c;j=j.sibling}throw Error(r(188))}if(p.return!==y.return)p=S,y=j;else{for(var C=!1,M=S.child;M;){if(M===p){C=!0,p=S,y=j;break}if(M===y){C=!0,y=S,p=j;break}M=M.sibling}if(!C){for(M=j.child;M;){if(M===p){C=!0,p=j,y=S;break}if(M===y){C=!0,y=j,p=S;break}M=M.sibling}if(!C)throw Error(r(189))}}if(p.alternate!==y)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?s:c}function Ej(s){return s=sV(s),s!==null?_j(s):null}function _j(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var c=_j(s);if(c!==null)return c;s=s.sibling}return null}var Nj=e.unstable_scheduleCallback,Oj=e.unstable_cancelCallback,lV=e.unstable_shouldYield,cV=e.unstable_requestPaint,bt=e.unstable_now,uV=e.unstable_getCurrentPriorityLevel,jp=e.unstable_ImmediatePriority,Cj=e.unstable_UserBlockingPriority,Xu=e.unstable_NormalPriority,dV=e.unstable_LowPriority,Ij=e.unstable_IdlePriority,Ju=null,An=null;function fV(s){if(An&&typeof An.onCommitFiberRoot=="function")try{An.onCommitFiberRoot(Ju,s,void 0,(s.current.flags&128)===128)}catch{}}var en=Math.clz32?Math.clz32:pV,hV=Math.log,mV=Math.LN2;function pV(s){return s>>>=0,s===0?32:31-(hV(s)/mV|0)|0}var Qu=64,Zu=4194304;function hl(s){switch(s&-s){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: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function ed(s,c){var p=s.pendingLanes;if(p===0)return 0;var y=0,S=s.suspendedLanes,j=s.pingedLanes,C=p&268435455;if(C!==0){var M=C&~S;M!==0?y=hl(M):(j&=C,j!==0&&(y=hl(j)))}else C=p&~S,C!==0?y=hl(C):j!==0&&(y=hl(j));if(y===0)return 0;if(c!==0&&c!==y&&(c&S)===0&&(S=y&-y,j=c&-c,S>=j||S===16&&(j&4194240)!==0))return c;if((y&4)!==0&&(y|=p&16),c=s.entangledLanes,c!==0)for(s=s.entanglements,c&=y;0<c;)p=31-en(c),S=1<<p,y|=s[p],c&=~S;return y}function gV(s,c){switch(s){case 1:case 2:case 4:return c+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yV(s,c){for(var p=s.suspendedLanes,y=s.pingedLanes,S=s.expirationTimes,j=s.pendingLanes;0<j;){var C=31-en(j),M=1<<C,U=S[C];U===-1?((M&p)===0||(M&y)!==0)&&(S[C]=gV(M,c)):U<=c&&(s.expiredLanes|=M),j&=~M}}function Pp(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function Rj(){var s=Qu;return Qu<<=1,(Qu&4194240)===0&&(Qu=64),s}function Tp(s){for(var c=[],p=0;31>p;p++)c.push(s);return c}function ml(s,c,p){s.pendingLanes|=c,c!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,c=31-en(c),s[c]=p}function vV(s,c){var p=s.pendingLanes&~c;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=c,s.mutableReadLanes&=c,s.entangledLanes&=c,c=s.entanglements;var y=s.eventTimes;for(s=s.expirationTimes;0<p;){var S=31-en(p),j=1<<S;c[S]=0,y[S]=-1,s[S]=-1,p&=~j}}function Ap(s,c){var p=s.entangledLanes|=c;for(s=s.entanglements;p;){var y=31-en(p),S=1<<y;S&c|s[y]&c&&(s[y]|=c),p&=~S}}var Ge=0;function Mj(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var Lj,Ep,Dj,$j,Fj,_p=!1,td=[],Ni=null,Oi=null,Ci=null,pl=new Map,gl=new Map,Ii=[],xV="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 submit".split(" ");function Bj(s,c){switch(s){case"focusin":case"focusout":Ni=null;break;case"dragenter":case"dragleave":Oi=null;break;case"mouseover":case"mouseout":Ci=null;break;case"pointerover":case"pointerout":pl.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":gl.delete(c.pointerId)}}function yl(s,c,p,y,S,j){return s===null||s.nativeEvent!==j?(s={blockedOn:c,domEventName:p,eventSystemFlags:y,nativeEvent:j,targetContainers:[S]},c!==null&&(c=Ol(c),c!==null&&Ep(c)),s):(s.eventSystemFlags|=y,c=s.targetContainers,S!==null&&c.indexOf(S)===-1&&c.push(S),s)}function bV(s,c,p,y,S){switch(c){case"focusin":return Ni=yl(Ni,s,c,p,y,S),!0;case"dragenter":return Oi=yl(Oi,s,c,p,y,S),!0;case"mouseover":return Ci=yl(Ci,s,c,p,y,S),!0;case"pointerover":var j=S.pointerId;return pl.set(j,yl(pl.get(j)||null,s,c,p,y,S)),!0;case"gotpointercapture":return j=S.pointerId,gl.set(j,yl(gl.get(j)||null,s,c,p,y,S)),!0}return!1}function zj(s){var c=wa(s.target);if(c!==null){var p=ba(c);if(p!==null){if(c=p.tag,c===13){if(c=Tj(p),c!==null){s.blockedOn=c,Fj(s.priority,function(){Dj(p)});return}}else if(c===3&&p.stateNode.current.memoizedState.isDehydrated){s.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}s.blockedOn=null}function rd(s){if(s.blockedOn!==null)return!1;for(var c=s.targetContainers;0<c.length;){var p=Op(s.domEventName,s.eventSystemFlags,c[0],s.nativeEvent);if(p===null){p=s.nativeEvent;var y=new p.constructor(p.type,p);vp=y,p.target.dispatchEvent(y),vp=null}else return c=Ol(p),c!==null&&Ep(c),s.blockedOn=p,!1;c.shift()}return!0}function Vj(s,c,p){rd(s)&&p.delete(c)}function wV(){_p=!1,Ni!==null&&rd(Ni)&&(Ni=null),Oi!==null&&rd(Oi)&&(Oi=null),Ci!==null&&rd(Ci)&&(Ci=null),pl.forEach(Vj),gl.forEach(Vj)}function vl(s,c){s.blockedOn===c&&(s.blockedOn=null,_p||(_p=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,wV)))}function xl(s){function c(S){return vl(S,s)}if(0<td.length){vl(td[0],s);for(var p=1;p<td.length;p++){var y=td[p];y.blockedOn===s&&(y.blockedOn=null)}}for(Ni!==null&&vl(Ni,s),Oi!==null&&vl(Oi,s),Ci!==null&&vl(Ci,s),pl.forEach(c),gl.forEach(c),p=0;p<Ii.length;p++)y=Ii[p],y.blockedOn===s&&(y.blockedOn=null);for(;0<Ii.length&&(p=Ii[0],p.blockedOn===null);)zj(p),p.blockedOn===null&&Ii.shift()}var wo=E.ReactCurrentBatchConfig,nd=!0;function SV(s,c,p,y){var S=Ge,j=wo.transition;wo.transition=null;try{Ge=1,Np(s,c,p,y)}finally{Ge=S,wo.transition=j}}function kV(s,c,p,y){var S=Ge,j=wo.transition;wo.transition=null;try{Ge=4,Np(s,c,p,y)}finally{Ge=S,wo.transition=j}}function Np(s,c,p,y){if(nd){var S=Op(s,c,p,y);if(S===null)Kp(s,c,y,id,p),Bj(s,y);else if(bV(S,s,c,p,y))y.stopPropagation();else if(Bj(s,y),c&4&&-1<xV.indexOf(s)){for(;S!==null;){var j=Ol(S);if(j!==null&&Lj(j),j=Op(s,c,p,y),j===null&&Kp(s,c,y,id,p),j===S)break;S=j}S!==null&&y.stopPropagation()}else Kp(s,c,y,null,p)}}var id=null;function Op(s,c,p,y){if(id=null,s=xp(y),s=wa(s),s!==null)if(c=ba(s),c===null)s=null;else if(p=c.tag,p===13){if(s=Tj(c),s!==null)return s;s=null}else if(p===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;s=null}else c!==s&&(s=null);return id=s,null}function Uj(s){switch(s){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(uV()){case jp:return 1;case Cj:return 4;case Xu:case dV:return 16;case Ij:return 536870912;default:return 16}default:return 16}}var Ri=null,Cp=null,ad=null;function Wj(){if(ad)return ad;var s,c=Cp,p=c.length,y,S="value"in Ri?Ri.value:Ri.textContent,j=S.length;for(s=0;s<p&&c[s]===S[s];s++);var C=p-s;for(y=1;y<=C&&c[p-y]===S[j-y];y++);return ad=S.slice(s,1<y?1-y:void 0)}function od(s){var c=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&c===13&&(s=13)):s=c,s===10&&(s=13),32<=s||s===13?s:0}function sd(){return!0}function Hj(){return!1}function Sr(s){function c(p,y,S,j,C){this._reactName=p,this._targetInst=S,this.type=y,this.nativeEvent=j,this.target=C,this.currentTarget=null;for(var M in s)s.hasOwnProperty(M)&&(p=s[M],this[M]=p?p(j):j[M]);return this.isDefaultPrevented=(j.defaultPrevented!=null?j.defaultPrevented:j.returnValue===!1)?sd:Hj,this.isPropagationStopped=Hj,this}return ee(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=sd)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=sd)},persist:function(){},isPersistent:sd}),c}var So={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ip=Sr(So),bl=ee({},So,{view:0,detail:0}),jV=Sr(bl),Rp,Mp,wl,ld=ee({},bl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dp,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==wl&&(wl&&s.type==="mousemove"?(Rp=s.screenX-wl.screenX,Mp=s.screenY-wl.screenY):Mp=Rp=0,wl=s),Rp)},movementY:function(s){return"movementY"in s?s.movementY:Mp}}),qj=Sr(ld),PV=ee({},ld,{dataTransfer:0}),TV=Sr(PV),AV=ee({},bl,{relatedTarget:0}),Lp=Sr(AV),EV=ee({},So,{animationName:0,elapsedTime:0,pseudoElement:0}),_V=Sr(EV),NV=ee({},So,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),OV=Sr(NV),CV=ee({},So,{data:0}),Gj=Sr(CV),IV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},RV={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"},MV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function LV(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=MV[s])?!!c[s]:!1}function Dp(){return LV}var DV=ee({},bl,{key:function(s){if(s.key){var c=IV[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=od(s),s===13?"Enter":String.fromCharCode(s)):s.type==="
37keydown"||s.type==="keyup"?RV[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dp,charCode:function(s){return s.type==="keypress"?od(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?od(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),$V=Sr(DV),FV=ee({},ld,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kj=Sr(FV),BV=ee({},bl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dp}),zV=Sr(BV),VV=ee({},So,{propertyName:0,elapsedTime:0,pseudoElement:0}),UV=Sr(VV),WV=ee({},ld,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),HV=Sr(WV),qV=[9,13,27,32],$p=l&&"CompositionEvent"in window,Sl=null;l&&"documentMode"in document&&(Sl=document.documentMode);var GV=l&&"TextEvent"in window&&!Sl,Yj=l&&(!$p||Sl&&8<Sl&&11>=Sl),Xj=" ",Jj=!1;function Qj(s,c){switch(s){case"keyup":return qV.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zj(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var ko=!1;function KV(s,c){switch(s){case"compositionend":return Zj(c);case"keypress":return c.which!==32?null:(Jj=!0,Xj);case"textInput":return s=c.data,s===Xj&&Jj?null:s;default:return null}}function YV(s,c){if(ko)return s==="compositionend"||!$p&&Qj(s,c)?(s=Wj(),ad=Cp=Ri=null,ko=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return Yj&&c.locale!=="ko"?null:c.data;default:return null}}var XV={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 eP(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!XV[s.type]:c==="textarea"}function tP(s,c,p,y){wj(y),c=hd(c,"onChange"),0<c.length&&(p=new Ip("onChange","change",null,p,y),s.push({event:p,listeners:c}))}var kl=null,jl=null;function JV(s){xP(s,0)}function cd(s){var c=Eo(s);if(oe(c))return s}function QV(s,c){if(s==="change")return c}var rP=!1;if(l){var Fp;if(l){var Bp="oninput"in document;if(!Bp){var nP=document.createElement("div");nP.setAttribute("oninput","return;"),Bp=typeof nP.oninput=="function"}Fp=Bp}else Fp=!1;rP=Fp&&(!document.documentMode||9<document.documentMode)}function iP(){kl&&(kl.detachEvent("onpropertychange",aP),jl=kl=null)}function aP(s){if(s.propertyName==="value"&&cd(jl)){var c=[];tP(c,jl,s,xp(s)),Pj(JV,c)}}function ZV(s,c,p){s==="focusin"?(iP(),kl=c,jl=p,kl.attachEvent("onpropertychange",aP)):s==="focusout"&&iP()}function eU(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return cd(jl)}function tU(s,c){if(s==="click")return cd(c)}function rU(s,c){if(s==="input"||s==="change")return cd(c)}function nU(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var tn=typeof Object.is=="function"?Object.is:nU;function Pl(s,c){if(tn(s,c))return!0;if(typeof s!="object"||s===null||typeof c!="object"||c===null)return!1;var p=Object.keys(s),y=Object.keys(c);if(p.length!==y.length)return!1;for(y=0;y<p.length;y++){var S=p[y];if(!u.call(c,S)||!tn(s[S],c[S]))return!1}return!0}function oP(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function sP(s,c){var p=oP(s);s=0;for(var y;p;){if(p.nodeType===3){if(y=s+p.textContent.length,s<=c&&y>=c)return{node:p,offset:c-s};s=y}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=oP(p)}}function lP(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?lP(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function cP(){for(var s=window,c=Xe();c instanceof s.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)s=c.contentWindow;else break;c=Xe(s.document)}return c}function zp(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function iU(s){var c=cP(),p=s.focusedElem,y=s.selectionRange;if(c!==p&&p&&p.ownerDocument&&lP(p.ownerDocument.documentElement,p)){if
vendor: 14,131 bytes, lines 37-38
37(y!==null&&zp(p)){if(c=y.start,s=y.end,s===void 0&&(s=c),"selectionStart"in p)p.selectionStart=c,p.selectionEnd=Math.min(s,p.value.length);else if(s=(c=p.ownerDocument||document)&&c.defaultView||window,s.getSelection){s=s.getSelection();var S=p.textContent.length,j=Math.min(y.start,S);y=y.end===void 0?j:Math.min(y.end,S),!s.extend&&j>y&&(S=y,y=j,j=S),S=sP(p,j);var C=sP(p,y);S&&C&&(s.rangeCount!==1||s.anchorNode!==S.node||s.anchorOffset!==S.offset||s.focusNode!==C.node||s.focusOffset!==C.offset)&&(c=c.createRange(),c.setStart(S.node,S.offset),s.removeAllRanges(),j>y?(s.addRange(c),s.extend(C.node,C.offset)):(c.setEnd(C.node,C.offset),s.addRange(c)))}}for(c=[],s=p;s=s.parentNode;)s.nodeType===1&&c.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<c.length;p++)s=c[p],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var aU=l&&"documentMode"in document&&11>=document.documentMode,jo=null,Vp=null,Tl=null,Up=!1;function uP(s,c,p){var y=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Up||jo==null||jo!==Xe(y)||(y=jo,"selectionStart"in y&&zp(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),Tl&&Pl(Tl,y)||(Tl=y,y=hd(Vp,"onSelect"),0<y.length&&(c=new Ip("onSelect","select",null,c,p),s.push({event:c,listeners:y}),c.target=jo)))}function ud(s,c){var p={};return p[s.toLowerCase()]=c.toLowerCase(),p["Webkit"+s]="webkit"+c,p["Moz"+s]="moz"+c,p}var Po={animationend:ud("Animation","AnimationEnd"),animationiteration:ud("Animation","AnimationIteration"),animationstart:ud("Animation","AnimationStart"),transitionend:ud("Transition","TransitionEnd")},Wp={},dP={};l&&(dP=document.createElement("div").style,"AnimationEvent"in window||(delete Po.animationend.animation,delete Po.animationiteration.animation,delete Po.animationstart.animation),"TransitionEvent"in window||delete Po.transitionend.transition);function dd(s){if(Wp[s])return Wp[s];if(!Po[s])return s;var c=Po[s],p;for(p in c)if(c.hasOwnProperty(p)&&p in dP)return Wp[s]=c[p];return s}var fP=dd("animationend"),hP=dd("animationiteration"),mP=dd("animationstart"),pP=dd("transitionend"),gP=new Map,yP="abort auxClick 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(" ");function Mi(s,c){gP.set(s,c),a(c,[s])}for(var Hp=0;Hp<yP.length;Hp++){var qp=yP[Hp],oU=qp.toLowerCase(),sU=qp[0].toUpperCase()+qp.slice(1);Mi(oU,"on"+sU)}Mi(fP,"onAnimationEnd"),Mi(hP,"onAnimationIteration"),Mi(mP,"onAnimationStart"),Mi("dblclick","onDoubleClick"),Mi("focusin","onFocus"),Mi("focusout","onBlur"),Mi(pP,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Al="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(" "),lU=new Set("cancel close invalid load scroll toggle".split(" ").concat(Al));function vP(s,c,p){var y=s.type||"unknown-event";s.currentTarget=p,oV(y,c,void 0,s),s.currentTarget=null}function xP(s,c){c=(c&4)!==0;for(var p=0;p<s.length;p++){var y=s[p],S=y.event;y=y.listeners;e:{var j=void 0;if(c)for(var C=y.length-1;0<=C;C--){var M=y[C],U=M.instance,te=M.currentTarget;if(M=M.listener,U!==j&&S.isPropagationStopped())break e;vP(S,M,te),j=U}else for(C=0;C<y.length;C++){if(M=y[C],U=M.instance,te=M.currentTarget,M=M.listener,U!==j&&S.isPropagationStopped())break e;vP(S,M,te),j=U}}}if(Yu)throw s=kp,Yu=!1,kp=null,s}function nt(s,c){var p=c[eg];p===void 0&&(p=c[eg]=new Set);var y=s+"__bubble";p.has(y)||(bP(c,s,2,!1),p.add(y))}function Gp(s,c,p){var y=0;c&&(y|=4),bP(p,s,y,c)}var fd="_reactListening"+Math.random().toString(36).slice(2);function El(s){if(!s[fd]){s[fd]=!0,n.forEach(function(p){p!=="selectionchange"&&(lU.has(p)||Gp(p,!1,s),Gp(p,!0,s))});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[fd]||(c[fd]=!0,Gp("selectionchange",!1,c))}}function bP(s,c,p,y){switch(Uj(c)){case 1:var S=SV;break;case 4:S=kV;break;default:S=Np}p=S.bind(null,c,p,s),S=void 0,!Sp||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(S=!0),y?S!==void 0?s.addEventListener(c,p,{capture:!0,passive:S}):s.addEventListener(c,p,!0):S!==void 0?s.addEventListener(c,p,{passive:S}):s.addEventListener(c,p,!1)}function Kp(s,c,p,y,S){var j=y;if((c&1)===0&&(c&2)===0&&y!==null)e:for(;;){if(y===null)return;var C=y.tag;if(C===3||C===4){var M=y.stateNode.containerInfo;if(M===S||M.nodeType===8&&M.parentNode===S)break;if(C===4)for(C=y.return;C!==null;){var U=C.tag;if((U===3||U===4)&&(U=C.stateNode.containerInfo,U===S||U.nodeType===8&&U.parentNode===S))return;C=C.return}for(;M!==null;){if(C=wa(M),C===null)return;if(U=C.tag,U===5||U===6){y=j=C;continue e}M=M.parentNode}}y=y.return}Pj(function(){var te=j,ae=xp(p),se=[];e:{var ie=gP.get(s);if(ie!==void 0){var fe=Ip,pe=s;switch(s){case"keypress":if(od(p)===0)break e;case"keydown":case"keyup":fe=$V;break;case"focusin":pe="focus",fe=Lp;break;case"focusout":pe="blur",fe=Lp;break;case"beforeblur":case"afterblur":fe=Lp;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=qj;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=TV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=zV;break;case fP:case hP:case mP:fe=_V;break;case pP:fe=UV;break;case"scroll":fe=jV;break;case"wheel":fe=HV;break;case"copy":case"cut":case"paste":fe=OV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=Kj}var ve=(c&4)!==0,wt=!ve&&s==="scroll",X=ve?ie!==null?ie+"Capture":null:ie;ve=[];for(var H=te,J;H!==null;){J=H;var ce=J.stateNode;if(J.tag===5&&ce!==null&&(J=ce,X!==null&&(ce=ul(H,X),ce!=null&&ve.push(_l(H,ce,J)))),wt)break;H=H.return}0<ve.length&&(ie=new fe(ie,pe,null,p,ae),se.push({event:ie,listeners:ve}))}}if((c&7)===0){e:{if(ie=s==="mouseover"||s==="pointerover",fe=s==="mouseout"||s==="pointerout",ie&&p!==vp&&(pe=p.relatedTarget||p.fromElement)&&(wa(pe)||pe[Yn]))break e;if((fe||ie)&&(ie=ae.window===ae?ae:(ie=ae.ownerDocument)?ie.defaultView||ie.parentWindow:window,fe?(pe=p.relatedTarget||p.toElement,fe=te,pe=pe?wa(pe):null,pe!==null&&(wt=ba(pe),pe!==wt||pe.tag!==5&&pe.tag!==6)&&(pe=null)):(fe=null,pe=te),fe!==pe)){if(ve=qj,ce="onMouseLeave",X="onMouseEnter",H="mouse",(s==="pointerout"||s==="pointerover")&&(ve=Kj,ce="onPointerLeave",X="onPointerEnter",H="pointer"),wt=fe==null?ie:Eo(fe),J=pe==null?ie:Eo(pe),ie=new ve(ce,H+"leave",fe,p,ae),ie.target=wt,ie.relatedTarget=J,ce=null,wa(ae)===te&&(ve=new ve(X,H+"enter",pe,p,ae),ve.target=J,ve.relatedTarget=wt,ce=ve),wt=ce,fe&&pe)t:{for(ve=fe,X=pe,H=0,J=ve;J;J=To(J))H++;for(J=0,ce=X;ce;ce=To(ce))J++;for(;0<H-J;)ve=To(ve),H--;for(;0<J-H;)X=To(X),J--;for(;H--;){if(ve===X||X!==null&&ve===X.alternate)break t;ve=To(ve),X=To(X)}ve=null}else ve=null;fe!==null&&wP(se,ie,fe,ve,!1),pe!==null&&wt!==null&&wP(se,wt,pe,ve,!0)}}e:{if(ie=te?Eo(te):window,fe=ie.nodeName&&ie.nodeName.toLowerCase(),fe==="select"||fe==="input"&&ie.type==="file")var xe=QV;else if(eP(ie))if(rP)xe=rU;else{xe=eU;var ke=ZV}else(fe=ie.nodeName)&&fe.toLowerCase()==="input"&&(ie.type==="checkbox"||ie.type==="radio")&&(xe=tU);if(xe&&(xe=xe(s,te))){tP(se,xe,p,ae);break e}ke&&ke(s,ie,te),s==="focusout"&&(ke=ie._wrapperState)&&ke.controlled&&ie.type==="number"&&Pn(ie,"number",ie.value)}switch(ke=te?Eo(te):window,s){case"focusin":(eP(ke)||ke.contentEditable==="true")&&(jo=ke,Vp=te,Tl=null);break;case"focusout":Tl=Vp=jo=null;break;case"mousedown":Up=!0;break;case"contextmenu":case"mouseup":case"dragend":Up=!1,uP(se,p,ae);break;case"selectionchange":if(aU)break;case"keydown":case"keyup":uP(se,p,ae)}var je;if($p)e:{switch(s){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else ko?Qj(s,p)&&(Ae="onCompositionEnd"):s==="keydown"&&p.keyCode===229&&(Ae="onCompositionStart");Ae&&(Yj&&p.locale!=="ko"&&(ko||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&ko&&(je=Wj()):(Ri=ae,Cp="value"in Ri?Ri.value:Ri.textContent,ko=!0)),ke=hd(te,Ae),0<ke.length&&(Ae=new Gj(Ae,s,null,p,ae),se.push({event:Ae,listeners:ke}),je?Ae.data=je:(je=Zj(p),je!==null&&(Ae.data=je)))),(je=GV?KV(s,p):YV(s,p))&&(te=hd(te,"onBeforeInput"),0<te.length&&(ae=new Gj("onBeforeInput","beforeinput",null,p,ae),se.push({event:ae,listeners:te}),ae.data=je))}xP(se,c)})}function _l(s,c,p){return{instance:s,listener:c,currentTarget:p}}function hd(s,c){for(var p=c+"Capture",y=[];s!==null;){var S=s,j=S.stateNode;S.tag===5&&j!==null&&(S=j,j=ul(s,p),j!=null&&y.unshift(_l(s,j,S)),j=ul(s,c),j!=null&&y.push(_l(s,j,S))),s=s.return}return y}function To(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function wP(s,c,p,y,S){for(var j=c._reactName,C=[];p!==null&&p!==y;){var M=p,U=M.alternate,te=M.stateNode;if(U!==null&&U===y)break;M.tag===5&&te!==null&&(M=te,S?(U=ul(p,j),U!=null&&C.unshift(_l(p,U,M))):S||(U=ul(p,j),U!=null&&C.push(_l(p,U,M)))),p=p.return}C.length!==0&&s.push({event:c,listeners:C})}var cU=/\r\n?/g,uU=/\u0000|\uFFFD/g;function SP(s){return(typeof s=="string"?s:""+s).replace(cU,` 38`).replace(uU,"")}function md(s,c,p){if(c=SP(c),SP(s)!==c&&p)throw Error(r(425))}function pd(){}var Yp=null,Xp=null;function Jp(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var Qp=typeof setTimeout=="function"?setTimeout:void 0,dU=typeof clearTimeout=="function"?clearTimeout:void 0,kP=typeof Promise=="function"?Promise:void 0,fU=typeof queueMicrotask=="function"?queueMicrotask:typeof kP<"u"?function(s){return kP.resolve(null).then(s).catch(hU)}:Qp;function hU(s){setTimeout(function(){throw s})}function Zp(s,c){var p=c,y=0;do{var S=p.nextSibling;if(s.removeChild(p),S&&S.nodeType===8)if(p=S.data,p==="/$"){if(y===0){s.removeChild(S),xl(c);return}y--}else p!=="$"&&p!=="$?"&&p!=="$!"||y++;p=S}while(p);xl(c)}function Li(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return s}function jP(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var p=s.data;if(p==="$"||p==="$!"||p==="$?"){if(c===0)return s;c--}else p==="/$"&&c++}s=s.previousSibling}return null}var Ao=Math.random().toString(36).slice(2),En="__reactFiber$"+Ao,Nl="__reactProps$"+Ao,Yn="__reactContainer$"+Ao,eg="__reactEvents$"+Ao,mU="__reactListeners$"+Ao,pU="__reactHandles$"+Ao;function wa(s){var c=s[En];if(c)return c;for(var p=s.parentNode;p;){if(c=p[Yn]||p[En]){if(p=c.alternate,c.child!==null||p!==null&&p.child!==null)for(s=jP(s);s!==null;){if(p=s[En])return p;s=jP(s)}return c}s=p,p=s.parentNode}return null}function Ol(s){return s=s[En]||s[Yn],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function Eo(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(r(33))}function gd(s){return s[Nl]||null}var tg=[],_o=-1;function Di(s){return{current:s}}function it(s){0>_o||(s.current=tg[_o],tg[_o]=null,_o--)}function tt(s,c){_o++,tg[_o]=s.current,s.current=c}var $i={},Xt=Di($i),fr=Di(!1),Sa=$i;function No(s,c){var p=s.type.contextTypes;if(!p)return $i;var y=s.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===c)return y.__reactInternalMemoizedMaskedChildContext;var S={},j;for(j in p)S[j]=c[j];return y&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=S),S}function hr(s){return s=s.childContextTypes,s!=null}function yd(){it(fr),it(Xt)}function PP(s,c,p){if(Xt.current!==$i)throw Error(r(168));tt(Xt,c),tt(fr,p)}function TP(s,c,p){var y=s.stateNode;if(c=c.childContextTypes,typeof y.getChildContext!="function")return p;y=y.getChildContext();for(var S in y)if(!(S in c))throw Error(r(108,De(s)||"Unknown",S));return ee({},p,y)}function vd(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||$i,Sa=Xt.current,tt(Xt,s),tt(fr,fr.current),!0}function AP(s,c,p){var y=s.stateNode;if(!y)throw Error(r(169));p?(s=TP(s,c,Sa),y.__reactInternalMemoizedMergedChildContext=s,it(fr),it(Xt),tt(Xt,s)):it(fr),tt(fr,p)}var Xn=null,xd=!1,rg=!1;function EP(s){Xn===null?Xn=[s]:Xn.push(s)}function gU(s){xd=!0,EP(s)}function Fi(){if(!rg&&Xn!==null){rg=!0;var s=0,c=Ge;try{var p=Xn;for(Ge=1;s<p.length;s++){var y=p[s];do y=y(!0);while(y!==null)}Xn=null,xd=!1}catch(S){throw Xn!==null&&(Xn=Xn.slice(s+1)),Nj(jp,Fi),S}finally{Ge=c,rg=!1}}return null}
vendor: 8,802 bytes, line 38
38var Oo=[],Co=0,bd=null,wd=0,Ir=[],Rr=0,ka=null,Jn=1,Qn="";function ja(s,c){Oo[Co++]=wd,Oo[Co++]=bd,bd=s,wd=c}function _P(s,c,p){Ir[Rr++]=Jn,Ir[Rr++]=Qn,Ir[Rr++]=ka,ka=s;var y=Jn;s=Qn;var S=32-en(y)-1;y&=~(1<<S),p+=1;var j=32-en(c)+S;if(30<j){var C=S-S%5;j=(y&(1<<C)-1).toString(32),y>>=C,S-=C,Jn=1<<32-en(c)+S|p<<S|y,Qn=j+s}else Jn=1<<j|p<<S|y,Qn=s}function ng(s){s.return!==null&&(ja(s,1),_P(s,1,0))}function ig(s){for(;s===bd;)bd=Oo[--Co],Oo[Co]=null,wd=Oo[--Co],Oo[Co]=null;for(;s===ka;)ka=Ir[--Rr],Ir[Rr]=null,Qn=Ir[--Rr],Ir[Rr]=null,Jn=Ir[--Rr],Ir[Rr]=null}var kr=null,jr=null,ot=!1,rn=null;function NP(s,c){var p=$r(5,null,null,0);p.elementType="DELETED",p.stateNode=c,p.return=s,c=s.deletions,c===null?(s.deletions=[p],s.flags|=16):c.push(p)}function OP(s,c){switch(s.tag){case 5:var p=s.type;return c=c.nodeType!==1||p.toLowerCase()!==c.nodeName.toLowerCase()?null:c,c!==null?(s.stateNode=c,kr=s,jr=Li(c.firstChild),!0):!1;case 6:return c=s.pendingProps===""||c.nodeType!==3?null:c,c!==null?(s.stateNode=c,kr=s,jr=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(p=ka!==null?{id:Jn,overflow:Qn}:null,s.memoizedState={dehydrated:c,treeContext:p,retryLane:1073741824},p=$r(18,null,null,0),p.stateNode=c,p.return=s,s.child=p,kr=s,jr=null,!0):!1;default:return!1}}function ag(s){return(s.mode&1)!==0&&(s.flags&128)===0}function og(s){if(ot){var c=jr;if(c){var p=c;if(!OP(s,c)){if(ag(s))throw Error(r(418));c=Li(p.nextSibling);var y=kr;c&&OP(s,c)?NP(y,p):(s.flags=s.flags&-4097|2,ot=!1,kr=s)}}else{if(ag(s))throw Error(r(418));s.flags=s.flags&-4097|2,ot=!1,kr=s}}}function CP(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;kr=s}function Sd(s){if(s!==kr)return!1;if(!ot)return CP(s),ot=!0,!1;var c;if((c=s.tag!==3)&&!(c=s.tag!==5)&&(c=s.type,c=c!=="head"&&c!=="body"&&!Jp(s.type,s.memoizedProps)),c&&(c=jr)){if(ag(s))throw IP(),Error(r(418));for(;c;)NP(s,c),c=Li(c.nextSibling)}if(CP(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,c=0;s;){if(s.nodeType===8){var p=s.data;if(p==="/$"){if(c===0){jr=Li(s.nextSibling);break e}c--}else p!=="$"&&p!=="$!"&&p!=="$?"||c++}s=s.nextSibling}jr=null}}else jr=kr?Li(s.stateNode.nextSibling):null;return!0}function IP(){for(var s=jr;s;)s=Li(s.nextSibling)}function Io(){jr=kr=null,ot=!1}function sg(s){rn===null?rn=[s]:rn.push(s)}var yU=E.ReactCurrentBatchConfig;function Cl(s,c,p){if(s=p.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(r(309));var y=p.stateNode}if(!y)throw Error(r(147,s));var S=y,j=""+s;return c!==null&&c.ref!==null&&typeof c.ref=="function"&&c.ref._stringRef===j?c.ref:(c=function(C){var M=S.refs;C===null?delete M[j]:M[j]=C},c._stringRef=j,c)}if(typeof s!="string")throw Error(r(284));if(!p._owner)throw Error(r(290,s))}return s}function kd(s,c){throw s=Object.prototype.toString.call(c),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s))}function RP(s){var c=s._init;return c(s._payload)}function MP(s){function c(X,H){if(s){var J=X.deletions;J===null?(X.deletions=[H],X.flags|=16):J.push(H)}}function p(X,H){if(!s)return null;for(;H!==null;)c(X,H),H=H.sibling;return null}function y(X,H){for(X=new Map;H!==null;)H.key!==null?X.set(H.key,H):X.set(H.index,H),H=H.sibling;return X}function S(X,H){return X=Gi(X,H),X.index=0,X.sibling=null,X}function j(X,H,J){return X.index=J,s?(J=X.alternate,J!==null?(J=J.index,J<H?(X.flags|=2,H):J):(X.flags|=2,H)):(X.flags|=1048576,H)}function C(X){return s&&X.alternate===null&&(X.flags|=2),X}function M(X,H,J,ce){return H===null||H.tag!==6?(H=Qg(J,X.mode,ce),H.return=X,H):(H=S(H,J),H.return=X,H)}function U(X,H,J,ce){var xe=J.type;return xe===O?ae(X,H,J.props.children,ce,J.key):H!==null&&(H.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===K&&RP(xe)===H.type)?(ce=S(H,J.props),ce.ref=Cl(X,H,J),ce.return=X,ce):(ce=Gd(J.type,J.key,J.props,null,X.mode,ce),ce.ref=Cl(X,H,J),ce.return=X,ce)}function te(X,H,J,ce){return H===null||H.tag!==4||H.stateNode.containerInfo!==J.containerInfo||H.stateNode.implementation!==J.implementation?(H=Zg(J,X.mode,ce),H.return=X,H):(H=S(H,J.children||[]),H.return=X,H)}function ae(X,H,J,ce,xe){return H===null||H.tag!==7?(H=Ca(J,X.mode,ce,xe),H.return=X,H):(H=S(H,J),H.return=X,H)}function se(X,H,J){if(typeof H=="string"&&H!==""||typeof H=="number")return H=Qg(""+H,X.mode,J),H.return=X,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case T:return J=Gd(H.type,H.key,H.props,null,X.mode,J),J.ref=Cl(X,null,H),J.return=X,J;case _:return H=Zg(H,X.mode,J),H.return=X,H;case K:var ce=H._init;return se(X,ce(H._payload),J)}if(Tn(H)||Z(H))return H=Ca(H,X.mode,J,null),H.return=X,H;kd(X,H)}return null}function ie(X,H,J,ce){var xe=H!==null?H.key:null;if(typeof J=="string"&&J!==""||typeof J=="number")return xe!==null?null:M(X,H,""+J,ce);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case T:return J.key===xe?U(X,H,J,ce):null;case _:return J.key===xe?te(X,H,J,ce):null;case K:return xe=J._init,ie(X,H,xe(J._payload),ce)}if(Tn(J)||Z(J))return xe!==null?null:ae(X,H,J,ce,null);kd(X,J)}return null}function fe(X,H,J,ce,xe){if(typeof ce=="string"&&ce!==""||typeof ce=="number")return X=X.get(J)||null,M(H,X,""+ce,xe);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case T:return X=X.get(ce.key===null?J:ce.key)||null,U(H,X,ce,xe);case _:return X=X.get(ce.key===null?J:ce.key)||null,te(H,X,ce,xe);case K:var ke=ce._init;return fe(X,H,J,ke(ce._payload),xe)}if(Tn(ce)||Z(ce))return X=X.get(J)||null,ae(H,X,ce,xe,null);kd(H,ce)}return null}function pe(X,H,J,ce){for(var xe=null,ke=null,je=H,Ae=H=0,Bt=null;je!==null&&Ae<J.length;Ae++){je.index>Ae?(Bt=je,je=null):Bt=je.sibling;var Be=ie(X,je,J[Ae],ce);if(Be===null){je===null&&(je=Bt);break}s&&je&&Be.alternate===null&&c(X,je),H=j(Be,H,Ae),ke===null?xe=Be:ke.sibling=Be,ke=Be,je=Bt}if(Ae===J.length)return p(X,je),ot&&ja(X,Ae),xe;if(je===null){for(;Ae<J.length;Ae++)je=se(X,J[Ae],ce),je!==null&&(H=j(je,H,Ae),ke===null?xe=je:ke.sibling=je,ke=je);return ot&&ja(X,Ae),xe}for(je=y(X,je);Ae<J.length;Ae++)Bt=fe(je,X,Ae,J[Ae],ce),Bt!==null&&(s&&Bt.alternate!==null&&je.delete(Bt.key===null?Ae:Bt.key),H=j(Bt,H,Ae),ke===null?xe=Bt:ke.sibling=Bt,ke=Bt);return s&&je.forEach(function(Ki){return c(X,Ki)}),ot&&ja(X,Ae),xe}function ve(X,H,J,ce){var xe=Z(J);if(typeof xe!="function")throw Error(r(150));if(J=xe.call(J),J==null)throw Error(r(151));for(var ke=xe=null,je=H,Ae=H=0,Bt=null,Be=J.next();je!==null&&!Be.done;Ae++,Be=J.next()){je.index>Ae?(Bt=je,je=null):Bt=je.sibling;var Ki=ie(X,je,Be.value,ce);if(Ki===null){je===null&&(je=Bt);break}s&&je&&Ki.alternate===null&&c(X,je),H=j(Ki,H,Ae),ke===null?xe=Ki:ke.sibling=Ki,ke=Ki,je=Bt}if(Be.done)return p(X,je),ot&&ja(X,Ae),xe;if(je===null){for(;!Be.done;Ae++,Be=J.next())Be=se(X,Be.value,ce),Be!==null&&(H=j(Be,H,Ae),ke===null?xe=Be:ke.sibling=Be,ke=Be);return ot&&ja(X,Ae),xe}for(je=y(X,je);!Be.done;Ae++,Be=J.next())Be=fe(je,X,Ae,Be.value,ce),Be!==null&&(s&&Be.alternate!==null&&je.delete(Be.key===null?Ae:Be.key),H=j(Be,H,Ae),ke===null?xe=Be:ke.sibling=Be,ke=Be);return s&&je.forEach(function(XU){return c(X,XU)}),ot&&ja(X,Ae),xe}function wt(X,H,J,ce){if(typeof J=="object"&&J!==null&&J.type===O&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case T:e:{for(var xe=J.key,ke=H;ke!==null;){if(ke.key===xe){if(xe=J.type,xe===O){if(ke.tag===7){p(X,ke.sibling),H=S(ke,J.props.children),H.return=X,X=H;break e}}else if(ke.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===K&&RP(xe)===ke.type){p(X,ke.sibling),H=S(ke,J.props),H.ref=Cl(X,ke,J),H.return=X,X=H;break e}p(X,ke);break}else c(X,ke);ke=ke.sibling}J.type===O?(H=Ca(J.props.children,X.mode,ce,J.key),H.return=X,X=H):(ce=Gd(J.type,J.key,J.props,null,X.mode,ce),ce.ref=Cl(X,H,J),ce.return=X,X=ce)}return C(X);case _:e:{for(ke=J.key;H!==null;){if(H.key===ke)if(H.tag===4&&H.stateNode.containerInfo===J.containerInfo&&H.stateNode.implementation===J.implementation){p(X,H.sibling),H=S(H,J.children||[]),H.return=X,X=H;break e}else{p(X,H);break}else c(X,H);H=H.sibling}H=Zg(J,X.mode,ce),H.return=X,X=H}return C(X);case K:return ke=J._init,wt(X,H,ke(J._payload),ce)}if(Tn(J))return pe(X,H,J,ce);if(Z(J))return ve(X,H,J,ce);kd(X,J)}return typeof J=="string"&&J!==""||typeof J=="number"?(J=""+J,H!==null&&H.tag===6?(p(X,H.sibling),H=S(H,J),H.return=X,X=H):(p(X,H),H=Qg(J,X.mode,ce),H.return=X,X=H),C(X)):p(X,H)}return wt}var Ro=MP(!0),LP=MP(!1),jd=Di(null),Pd=null,Mo=null,lg=null;function cg(){lg=Mo=Pd=null}function ug(s){var c=jd.current;it(jd),s._currentValue=c}function dg(s,c,p){for(;s!==null;){var y=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,y!==null&&(y.childLanes|=c)):y!==null&&(y.childLanes&c)!==c&&(y.childLanes|=c),s===p)break;s=s.return}}
vendor: 3,710 bytes, line 38
38function Lo(s,c){Pd=s,lg=Mo=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&c)!==0&&(mr=!0),s.firstContext=null)}function Mr(s){var c=s._currentValue;if(lg!==s)if(s={context:s,memoizedValue:c,next:null},Mo===null){if(Pd===null)throw Error(r(308));Mo=s,Pd.dependencies={lanes:0,firstContext:s}}else Mo=Mo.next=s;return c}var Pa=null;function fg(s){Pa===null?Pa=[s]:Pa.push(s)}function DP(s,c,p,y){var S=c.interleaved;return S===null?(p.next=p,fg(c)):(p.next=S.next,S.next=p),c.interleaved=p,Zn(s,y)}function Zn(s,c){s.lanes|=c;var p=s.alternate;for(p!==null&&(p.lanes|=c),p=s,s=s.return;s!==null;)s.childLanes|=c,p=s.alternate,p!==null&&(p.childLanes|=c),p=s,s=s.return;return p.tag===3?p.stateNode:null}var Bi=!1;function hg(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $P(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function ei(s,c){return{eventTime:s,lane:c,tag:0,payload:null,callback:null,next:null}}function zi(s,c,p){var y=s.updateQueue;if(y===null)return null;if(y=y.shared,(Fe&2)!==0){var S=y.pending;return S===null?c.next=c:(c.next=S.next,S.next=c),y.pending=c,Zn(s,p)}return S=y.interleaved,S===null?(c.next=c,fg(y)):(c.next=S.next,S.next=c),y.interleaved=c,Zn(s,p)}function Td(s,c,p){if(c=c.updateQueue,c!==null&&(c=c.shared,(p&4194240)!==0)){var y=c.lanes;y&=s.pendingLanes,p|=y,c.lanes=p,Ap(s,p)}}function FP(s,c){var p=s.updateQueue,y=s.alternate;if(y!==null&&(y=y.updateQueue,p===y)){var S=null,j=null;if(p=p.firstBaseUpdate,p!==null){do{var C={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};j===null?S=j=C:j=j.next=C,p=p.next}while(p!==null);j===null?S=j=c:j=j.next=c}else S=j=c;p={baseState:y.baseState,firstBaseUpdate:S,lastBaseUpdate:j,shared:y.shared,effects:y.effects},s.updateQueue=p;return}s=p.lastBaseUpdate,s===null?p.firstBaseUpdate=c:s.next=c,p.lastBaseUpdate=c}function Ad(s,c,p,y){var S=s.updateQueue;Bi=!1;var j=S.firstBaseUpdate,C=S.lastBaseUpdate,M=S.shared.pending;if(M!==null){S.shared.pending=null;var U=M,te=U.next;U.next=null,C===null?j=te:C.next=te,C=U;var ae=s.alternate;ae!==null&&(ae=ae.updateQueue,M=ae.lastBaseUpdate,M!==C&&(M===null?ae.firstBaseUpdate=te:M.next=te,ae.lastBaseUpdate=U))}if(j!==null){var se=S.baseState;C=0,ae=te=U=null,M=j;do{var ie=M.lane,fe=M.eventTime;if((y&ie)===ie){ae!==null&&(ae=ae.next={eventTime:fe,lane:0,tag:M.tag,payload:M.payload,callback:M.callback,next:null});e:{var pe=s,ve=M;switch(ie=c,fe=p,ve.tag){case 1:if(pe=ve.payload,typeof pe=="function"){se=pe.call(fe,se,ie);break e}se=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=ve.payload,ie=typeof pe=="function"?pe.call(fe,se,ie):pe,ie==null)break e;se=ee({},se,ie);break e;case 2:Bi=!0}}M.callback!==null&&M.lane!==0&&(s.flags|=64,ie=S.effects,ie===null?S.effects=[M]:ie.push(M))}else fe={eventTime:fe,lane:ie,tag:M.tag,payload:M.payload,callback:M.callback,next:null},ae===null?(te=ae=fe,U=se):ae=ae.next=fe,C|=ie;if(M=M.next,M===null){if(M=S.shared.pending,M===null)break;ie=M,M=ie.next,ie.next=null,S.lastBaseUpdate=ie,S.shared.pending=null}}while(!0);if(ae===null&&(U=se),S.baseState=U,S.firstBaseUpdate=te,S.lastBaseUpdate=ae,c=S.shared.interleaved,c!==null){S=c;do C|=S.lane,S=S.next;while(S!==c)}else j===null&&(S.shared.lanes=0);Ea|=C,s.lanes=C,s.memoizedState=se}}function BP(s,c,p){if(s=c.effects,c.effects=null,s!==null)for(c=0;c<s.length;c++){var y=s[c],S=y.callback;if(S!==null){if(y.callback=null,y=p,typeof S!="function")throw Error(r(191,S));
vendor: 1,602 bytes, line 38
38S.call(y)}}}var Il={},_n=Di(Il),Rl=Di(Il),Ml=Di(Il);function Ta(s){if(s===Il)throw Error(r(174));return s}function mg(s,c){switch(tt(Ml,c),tt(Rl,s),tt(_n,Il),s=c.nodeType,s){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:pp(null,"");break;default:s=s===8?c.parentNode:c,c=s.namespaceURI||null,s=s.tagName,c=pp(c,s)}it(_n),tt(_n,c)}function Do(){it(_n),it(Rl),it(Ml)}function zP(s){Ta(Ml.current);var c=Ta(_n.current),p=pp(c,s.type);c!==p&&(tt(Rl,s),tt(_n,p))}function pg(s){Rl.current===s&&(it(_n),it(Rl))}var lt=Di(0);function Ed(s){for(var c=s;c!==null;){if(c.tag===13){var p=c.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var gg=[];function yg(){for(var s=0;s<gg.length;s++)gg[s]._workInProgressVersionPrimary=null;gg.length=0}var _d=E.ReactCurrentDispatcher,vg=E.ReactCurrentBatchConfig,Aa=0,ct=null,At=null,$t=null,Nd=!1,Ll=!1,Dl=0,vU=0;function Jt(){throw Error(r(321))}function xg(s,c){if(c===null)return!1;for(var p=0;p<c.length&&p<s.length;p++)if(!tn(s[p],c[p]))return!1;return!0}function bg(s,c,p,y,S,j){if(Aa=j,ct=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,_d.current=s===null||s.memoizedState===null?SU:kU,s=p(y,S),Ll){j=0;do{if(Ll=!1,Dl=0,25<=j)throw Error(r(301));j+=1,$t=At=null,c.updateQueue=null,_d.current=jU,s=p(y,S)}while(Ll)}
vendor: 4,545 bytes, line 38
38if(_d.current=Id,c=At!==null&&At.next!==null,Aa=0,$t=At=ct=null,Nd=!1,c)throw Error(r(300));return s}function wg(){var s=Dl!==0;return Dl=0,s}function Nn(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $t===null?ct.memoizedState=$t=s:$t=$t.next=s,$t}function Lr(){if(At===null){var s=ct.alternate;s=s!==null?s.memoizedState:null}else s=At.next;var c=$t===null?ct.memoizedState:$t.next;if(c!==null)$t=c,At=s;else{if(s===null)throw Error(r(310));At=s,s={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},$t===null?ct.memoizedState=$t=s:$t=$t.next=s}return $t}function $l(s,c){return typeof c=="function"?c(s):c}function Sg(s){var c=Lr(),p=c.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=s;var y=At,S=y.baseQueue,j=p.pending;if(j!==null){if(S!==null){var C=S.next;S.next=j.next,j.next=C}y.baseQueue=S=j,p.pending=null}if(S!==null){j=S.next,y=y.baseState;var M=C=null,U=null,te=j;do{var ae=te.lane;if((Aa&ae)===ae)U!==null&&(U=U.next={lane:0,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null}),y=te.hasEagerState?te.eagerState:s(y,te.action);else{var se={lane:ae,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null};U===null?(M=U=se,C=y):U=U.next=se,ct.lanes|=ae,Ea|=ae}te=te.next}while(te!==null&&te!==j);U===null?C=y:U.next=M,tn(y,c.memoizedState)||(mr=!0),c.memoizedState=y,c.baseState=C,c.baseQueue=U,p.lastRenderedState=y}if(s=p.interleaved,s!==null){S=s;do j=S.lane,ct.lanes|=j,Ea|=j,S=S.next;while(S!==s)}else S===null&&(p.lanes=0);return[c.memoizedState,p.dispatch]}function kg(s){var c=Lr(),p=c.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=s;var y=p.dispatch,S=p.pending,j=c.memoizedState;if(S!==null){p.pending=null;var C=S=S.next;do j=s(j,C.action),C=C.next;while(C!==S);tn(j,c.memoizedState)||(mr=!0),c.memoizedState=j,c.baseQueue===null&&(c.baseState=j),p.lastRenderedState=j}return[j,y]}function VP(){}function UP(s,c){var p=ct,y=Lr(),S=c(),j=!tn(y.memoizedState,S);if(j&&(y.memoizedState=S,mr=!0),y=y.queue,jg(qP.bind(null,p,y,s),[s]),y.getSnapshot!==c||j||$t!==null&&$t.memoizedState.tag&1){if(p.flags|=2048,Fl(9,HP.bind(null,p,y,S,c),void 0,null),Ft===null)throw Error(r(349));(Aa&30)!==0||WP(p,c,S)}return S}function WP(s,c,p){s.flags|=16384,s={getSnapshot:c,value:p},c=ct.updateQueue,c===null?(c={lastEffect:null,stores:null},ct.updateQueue=c,c.stores=[s]):(p=c.stores,p===null?c.stores=[s]:p.push(s))}function HP(s,c,p,y){c.value=p,c.getSnapshot=y,GP(c)&&KP(s)}function qP(s,c,p){return p(function(){GP(c)&&KP(s)})}function GP(s){var c=s.getSnapshot;s=s.value;try{var p=c();return!tn(s,p)}catch{return!0}}function KP(s){var c=Zn(s,1);c!==null&&sn(c,s,1,-1)}function YP(s){var c=Nn();return typeof s=="function"&&(s=s()),c.memoizedState=c.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$l,lastRenderedState:s},c.queue=s,s=s.dispatch=wU.bind(null,ct,s),[c.memoizedState,s]}function Fl(s,c,p,y){return s={tag:s,create:c,destroy:p,deps:y,next:null},c=ct.updateQueue,c===null?(c={lastEffect:null,stores:null},ct.updateQueue=c,c.lastEffect=s.next=s):(p=c.lastEffect,p===null?c.lastEffect=s.next=s:(y=p.next,p.next=s,s.next=y,c.lastEffect=s)),s}function XP(){return Lr().memoizedState}function Od(s,c,p,y){var S=Nn();ct.flags|=s,S.memoizedState=Fl(1|c,p,void 0,y===void 0?null:y)}function Cd(s,c,p,y){var S=Lr();y=y===void 0?null:y;var j=void 0;if(At!==null){var C=At.memoizedState;if(j=C.destroy,y!==null&&xg(y,C.deps)){S.memoizedState=Fl(c,p,j,y);return}}ct.flags|=s,S.memoizedState=Fl(1|c,p,j,y)}function JP(s,c){return Od(8390656,8,s,c)}function jg(s,c){return Cd(2048,8,s,c)}function QP(s,c){return Cd(4,2,s,c)}function ZP(s,c){return Cd(4,4,s,c)}function eT(s,c){if(typeof c=="function")return s=s(),c(s),function(){c(null)};if(c!=null)return s=s(),c.current=s,function(){c.current=null}}function tT(s,c,p){return p=p!=null?p.concat([s]):null,Cd(4,4,eT.bind(null,c,s),p)}function Pg(){}function rT(s,c){var p=Lr();c=c===void 0?null:c;var y=p.memoizedState;return y!==null&&c!==null&&xg(c,y[1])?y[0]:(p.memoizedState=[s,c],s)}function nT(s,c){var p=Lr();c=c===void 0?null:c;var y=p.memoizedState;return y!==null&&c!==null&&xg(c,y[1])?y[0]:(s=s(),p.memoizedState=[s,c],s)}function iT(s,c,p){return(Aa&21)===0?(s.baseState&&(s.baseState=!1,mr=!0),s.memoizedState=p):(tn(p,c)||(p=Rj(),ct.lanes|=p,Ea|=p,s.baseState=!0),c)}function xU(s,c){var p=Ge;Ge=p!==0&&4>p?p:4,s(!0);var y=vg.transition;vg.transition={};
vendor: 4,829 bytes, line 38
38try{s(!1),c()}finally{Ge=p,vg.transition=y}}function aT(){return Lr().memoizedState}function bU(s,c,p){var y=Hi(s);if(p={lane:y,action:p,hasEagerState:!1,eagerState:null,next:null},oT(s))sT(c,p);else if(p=DP(s,c,p,y),p!==null){var S=nr();sn(p,s,y,S),lT(p,c,y)}}function wU(s,c,p){var y=Hi(s),S={lane:y,action:p,hasEagerState:!1,eagerState:null,next:null};if(oT(s))sT(c,S);else{var j=s.alternate;if(s.lanes===0&&(j===null||j.lanes===0)&&(j=c.lastRenderedReducer,j!==null))try{var C=c.lastRenderedState,M=j(C,p);if(S.hasEagerState=!0,S.eagerState=M,tn(M,C)){var U=c.interleaved;U===null?(S.next=S,fg(c)):(S.next=U.next,U.next=S),c.interleaved=S;return}}catch{}finally{}p=DP(s,c,S,y),p!==null&&(S=nr(),sn(p,s,y,S),lT(p,c,y))}}function oT(s){var c=s.alternate;return s===ct||c!==null&&c===ct}function sT(s,c){Ll=Nd=!0;var p=s.pending;p===null?c.next=c:(c.next=p.next,p.next=c),s.pending=c}function lT(s,c,p){if((p&4194240)!==0){var y=c.lanes;y&=s.pendingLanes,p|=y,c.lanes=p,Ap(s,p)}}var Id={readContext:Mr,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useInsertionEffect:Jt,useLayoutEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useMutableSource:Jt,useSyncExternalStore:Jt,useId:Jt,unstable_isNewReconciler:!1},SU={readContext:Mr,useCallback:function(s,c){return Nn().memoizedState=[s,c===void 0?null:c],s},useContext:Mr,useEffect:JP,useImperativeHandle:function(s,c,p){return p=p!=null?p.concat([s]):null,Od(4194308,4,eT.bind(null,c,s),p)},useLayoutEffect:function(s,c){return Od(4194308,4,s,c)},useInsertionEffect:function(s,c){return Od(4,2,s,c)},useMemo:function(s,c){var p=Nn();return c=c===void 0?null:c,s=s(),p.memoizedState=[s,c],s},useReducer:function(s,c,p){var y=Nn();return c=p!==void 0?p(c):c,y.memoizedState=y.baseState=c,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:c},y.queue=s,s=s.dispatch=bU.bind(null,ct,s),[y.memoizedState,s]},useRef:function(s){var c=Nn();return s={current:s},c.memoizedState=s},useState:YP,useDebugValue:Pg,useDeferredValue:function(s){return Nn().memoizedState=s},useTransition:function(){var s=YP(!1),c=s[0];return s=xU.bind(null,s[1]),Nn().memoizedState=s,[c,s]},useMutableSource:function(){},useSyncExternalStore:function(s,c,p){var y=ct,S=Nn();if(ot){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),Ft===null)throw Error(r(349));(Aa&30)!==0||WP(y,c,p)}S.memoizedState=p;var j={value:p,getSnapshot:c};return S.queue=j,JP(qP.bind(null,y,j,s),[s]),y.flags|=2048,Fl(9,HP.bind(null,y,j,p,c),void 0,null),p},useId:function(){var s=Nn(),c=Ft.identifierPrefix;if(ot){var p=Qn,y=Jn;p=(y&~(1<<32-en(y)-1)).toString(32)+p,c=":"+c+"R"+p,p=Dl++,0<p&&(c+="H"+p.toString(32)),c+=":"}else p=vU++,c=":"+c+"r"+p.toString(32)+":";return s.memoizedState=c},unstable_isNewReconciler:!1},kU={readContext:Mr,useCallback:rT,useContext:Mr,useEffect:jg,useImperativeHandle:tT,useInsertionEffect:QP,useLayoutEffect:ZP,useMemo:nT,useReducer:Sg,useRef:XP,useState:function(){return Sg($l)},useDebugValue:Pg,useDeferredValue:function(s){var c=Lr();return iT(c,At.memoizedState,s)},useTransition:function(){var s=Sg($l)[0],c=Lr().memoizedState;return[s,c]},useMutableSource:VP,useSyncExternalStore:UP,useId:aT,unstable_isNewReconciler:!1},jU={readContext:Mr,useCallback:rT,useContext:Mr,useEffect:jg,useImperativeHandle:tT,useInsertionEffect:QP,useLayoutEffect:ZP,useMemo:nT,useReducer:kg,useRef:XP,useState:function(){return kg($l)},useDebugValue:Pg,useDeferredValue:function(s){var c=Lr();return At===null?c.memoizedState=s:iT(c,At.memoizedState,s)},useTransition:function(){var s=kg($l)[0],c=Lr().memoizedState;return[s,c]},useMutableSource:VP,useSyncExternalStore:UP,useId:aT,unstable_isNewReconciler:!1};function nn(s,c){if(s&&s.defaultProps){c=ee({},c),s=s.defaultProps;for(var p in s)c[p]===void 0&&(c[p]=s[p]);return c}return c}function Tg(s,c,p,y){c=s.memoizedState,p=p(y,c),p=p==null?c:ee({},c,p),s.memoizedState=p,s.lanes===0&&(s.updateQueue.baseState=p)}var Rd={isMounted:function(s){return(s=s._reactInternals)?ba(s)===s:!1},enqueueSetState:function(s,c,p){s=s._reactInternals;var y=nr(),S=Hi(s),j=ei(y,S);j.payload=c,p!=null&&(j.callback=p),c=zi(s,j,S),c!==null&&(sn(c,s,S,y),Td(c,s,S))},enqueueReplaceState:function(s,c,p){s=s._reactInternals;var y=nr(),S=Hi(s),j=ei(y,S);j.tag=1,j.payload=c,p!=null&&(j.callback=p),c=zi(s,j,S),c!==null&&(sn(c,s,S,y),Td(c,s,S))},enqueueForceUpdate:function(s,c){s=s._reactInternals;var p=nr(),y=Hi(s),S=ei(p,y);S.tag=2,c!=null&&(S.callback=c),c=zi(s,S,y),c!==null&&(sn(c,s,y,p),Td(c,s,y))}};function cT(s,c,p,y,S,j,C){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(y,j,C):c.prototype&&c.prototype.isPureReactComponent?!Pl(p,y)||!Pl(S,j):!0}function uT(s,c,p){var y=!1,S=$i,j=c.contextType;
vendor: 4,604 bytes, lines 38-40
38return typeof j=="object"&&j!==null?j=Mr(j):(S=hr(c)?Sa:Xt.current,y=c.contextTypes,j=(y=y!=null)?No(s,S):$i),c=new c(p,j),s.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Rd,s.stateNode=c,c._reactInternals=s,y&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=S,s.__reactInternalMemoizedMaskedChildContext=j),c}function dT(s,c,p,y){s=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(p,y),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(p,y),c.state!==s&&Rd.enqueueReplaceState(c,c.state,null)}function Ag(s,c,p,y){var S=s.stateNode;S.props=p,S.state=s.memoizedState,S.refs={},hg(s);var j=c.contextType;typeof j=="object"&&j!==null?S.context=Mr(j):(j=hr(c)?Sa:Xt.current,S.context=No(s,j)),S.state=s.memoizedState,j=c.getDerivedStateFromProps,typeof j=="function"&&(Tg(s,c,j,p),S.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(c=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),c!==S.state&&Rd.enqueueReplaceState(S,S.state,null),Ad(s,p,S,y),S.state=s.memoizedState),typeof S.componentDidMount=="function"&&(s.flags|=4194308)}function $o(s,c){try{var p="",y=c;do p+=de(y),y=y.return;while(y);var S=p}catch(j){S=` 39Error generating stack: `+j.message+` 40`+j.stack}return{value:s,source:c,stack:S,digest:null}}function Eg(s,c,p){return{value:s,source:null,stack:p??null,digest:c??null}}function _g(s,c){try{console.error(c.value)}catch(p){setTimeout(function(){throw p})}}var PU=typeof WeakMap=="function"?WeakMap:Map;function fT(s,c,p){p=ei(-1,p),p.tag=3,p.payload={element:null};var y=c.value;return p.callback=function(){zd||(zd=!0,Wg=y),_g(s,c)},p}function hT(s,c,p){p=ei(-1,p),p.tag=3;var y=s.type.getDerivedStateFromError;if(typeof y=="function"){var S=c.value;p.payload=function(){return y(S)},p.callback=function(){_g(s,c)}}var j=s.stateNode;return j!==null&&typeof j.componentDidCatch=="function"&&(p.callback=function(){_g(s,c),typeof y!="function"&&(Ui===null?Ui=new Set([this]):Ui.add(this));var C=c.stack;this.componentDidCatch(c.value,{componentStack:C!==null?C:""})}),p}function mT(s,c,p){var y=s.pingCache;if(y===null){y=s.pingCache=new PU;var S=new Set;y.set(c,S)}else S=y.get(c),S===void 0&&(S=new Set,y.set(c,S));S.has(p)||(S.add(p),s=FU.bind(null,s,c,p),c.then(s,s))}function pT(s){do{var c;if((c=s.tag===13)&&(c=s.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return s;s=s.return}while(s!==null);return null}function gT(s,c,p,y,S){return(s.mode&1)===0?(s===c?s.flags|=65536:(s.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(c=ei(-1,1),c.tag=2,zi(p,c,1))),p.lanes|=1),s):(s.flags|=65536,s.lanes=S,s)}var TU=E.ReactCurrentOwner,mr=!1;function rr(s,c,p,y){c.child=s===null?LP(c,null,p,y):Ro(c,s.child,p,y)}function yT(s,c,p,y,S){p=p.render;var j=c.ref;return Lo(c,S),y=bg(s,c,p,y,j,S),p=wg(),s!==null&&!mr?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~S,ti(s,c,S)):(ot&&p&&ng(c),c.flags|=1,rr(s,c,y,S),c.child)}function vT(s,c,p,y,S){if(s===null){var j=p.type;return typeof j=="function"&&!Jg(j)&&j.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(c.tag=15,c.type=j,xT(s,c,j,y,S)):(s=Gd(p.type,null,y,c,c.mode,S),s.ref=c.ref,s.return=c,c.child=s)}if(j=s.child,(s.lanes&S)===0){var C=j.memoizedProps;if(p=p.compare,p=p!==null?p:Pl,p(C,y)&&s.ref===c.ref)return ti(s,c,S)}return c.flags|=1,s=Gi(j,y),s.ref=c.ref,s.return=c,c.child=s}function xT(s,c,p,y,S){if(s!==null){var j=s.memoizedProps;if(Pl(j,y)&&s.ref===c.ref)if(mr=!1,c.pendingProps=y=j,(s.lanes&S)!==0)(s.flags&131072)!==0&&(mr=!0);else return c.lanes=s.lanes,ti(s,c,S)}return Ng(s,c,p,y,S)}function bT(s,c,p){var y=c.pendingProps,S=y.children,j=s!==null?s.memoizedState:null;if(y.mode==="hidden")if((c.mode&1)===0)c.memoizedState={baseLanes:0,cachePool:null,transitions:null},tt(Bo,Pr),Pr|=p;else{if((p&1073741824)===0)return s=j!==null?j.baseLanes|p:p,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:s,cachePool:null,transitions:null},c.updateQueue=null,tt(Bo,Pr),Pr|=s,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},y=j!==null?j.baseLanes:p,tt(Bo,Pr),Pr|=y}else j!==null?(y=j.baseLanes|p,c.memoizedState=null):y=p,tt(Bo,Pr),Pr|=y;return rr(s,c,S,p),c.child}function wT(s,c){var p=c.ref;(s===null&&p!==null||s!==null&&s.ref!==p)&&(c.flags|=512,c.flags|=2097152)}
vendor: 10,713 bytes, line 40
40function Ng(s,c,p,y,S){var j=hr(p)?Sa:Xt.current;return j=No(c,j),Lo(c,S),p=bg(s,c,p,y,j,S),y=wg(),s!==null&&!mr?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~S,ti(s,c,S)):(ot&&y&&ng(c),c.flags|=1,rr(s,c,p,S),c.child)}function ST(s,c,p,y,S){if(hr(p)){var j=!0;vd(c)}else j=!1;if(Lo(c,S),c.stateNode===null)Ld(s,c),uT(c,p,y),Ag(c,p,y,S),y=!0;else if(s===null){var C=c.stateNode,M=c.memoizedProps;C.props=M;var U=C.context,te=p.contextType;typeof te=="object"&&te!==null?te=Mr(te):(te=hr(p)?Sa:Xt.current,te=No(c,te));var ae=p.getDerivedStateFromProps,se=typeof ae=="function"||typeof C.getSnapshotBeforeUpdate=="function";se||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(M!==y||U!==te)&&dT(c,C,y,te),Bi=!1;var ie=c.memoizedState;C.state=ie,Ad(c,y,C,S),U=c.memoizedState,M!==y||ie!==U||fr.current||Bi?(typeof ae=="function"&&(Tg(c,p,ae,y),U=c.memoizedState),(M=Bi||cT(c,p,M,y,ie,U,te))?(se||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(c.flags|=4194308)):(typeof C.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=y,c.memoizedState=U),C.props=y,C.state=U,C.context=te,y=M):(typeof C.componentDidMount=="function"&&(c.flags|=4194308),y=!1)}else{C=c.stateNode,$P(s,c),M=c.memoizedProps,te=c.type===c.elementType?M:nn(c.type,M),C.props=te,se=c.pendingProps,ie=C.context,U=p.contextType,typeof U=="object"&&U!==null?U=Mr(U):(U=hr(p)?Sa:Xt.current,U=No(c,U));var fe=p.getDerivedStateFromProps;(ae=typeof fe=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(M!==se||ie!==U)&&dT(c,C,y,U),Bi=!1,ie=c.memoizedState,C.state=ie,Ad(c,y,C,S);var pe=c.memoizedState;M!==se||ie!==pe||fr.current||Bi?(typeof fe=="function"&&(Tg(c,p,fe,y),pe=c.memoizedState),(te=Bi||cT(c,p,te,y,ie,pe,U)||!1)?(ae||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(y,pe,U),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(y,pe,U)),typeof C.componentDidUpdate=="function"&&(c.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof C.componentDidUpdate!="function"||M===s.memoizedProps&&ie===s.memoizedState||(c.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||M===s.memoizedProps&&ie===s.memoizedState||(c.flags|=1024),c.memoizedProps=y,c.memoizedState=pe),C.props=y,C.state=pe,C.context=U,y=te):(typeof C.componentDidUpdate!="function"||M===s.memoizedProps&&ie===s.memoizedState||(c.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||M===s.memoizedProps&&ie===s.memoizedState||(c.flags|=1024),y=!1)}return Og(s,c,p,y,j,S)}function Og(s,c,p,y,S,j){wT(s,c);var C=(c.flags&128)!==0;if(!y&&!C)return S&&AP(c,p,!1),ti(s,c,j);y=c.stateNode,TU.current=c;var M=C&&typeof p.getDerivedStateFromError!="function"?null:y.render();return c.flags|=1,s!==null&&C?(c.child=Ro(c,s.child,null,j),c.child=Ro(c,null,M,j)):rr(s,c,M,j),c.memoizedState=y.state,S&&AP(c,p,!0),c.child}function kT(s){var c=s.stateNode;c.pendingContext?PP(s,c.pendingContext,c.pendingContext!==c.context):c.context&&PP(s,c.context,!1),mg(s,c.containerInfo)}function jT(s,c,p,y,S){return Io(),sg(S),c.flags|=256,rr(s,c,p,y),c.child}var Cg={dehydrated:null,treeContext:null,retryLane:0};function Ig(s){return{baseLanes:s,cachePool:null,transitions:null}}function PT(s,c,p){var y=c.pendingProps,S=lt.current,j=!1,C=(c.flags&128)!==0,M;if((M=C)||(M=s!==null&&s.memoizedState===null?!1:(S&2)!==0),M?(j=!0,c.flags&=-129):(s===null||s.memoizedState!==null)&&(S|=1),tt(lt,S&1),s===null)return og(c),s=c.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((c.mode&1)===0?c.lanes=1:s.data==="$!"?c.lanes=8:c.lanes=1073741824,null):(C=y.children,s=y.fallback,j?(y=c.mode,j=c.child,C={mode:"hidden",children:C},(y&1)===0&&j!==null?(j.childLanes=0,j.pendingProps=C):j=Kd(C,y,0,null),s=Ca(s,y,p,null),j.return=c,s.return=c,j.sibling=s,c.child=j,c.child.memoizedState=Ig(p),c.memoizedState=Cg,s):Rg(c,C));if(S=s.memoizedState,S!==null&&(M=S.dehydrated,M!==null))return AU(s,c,C,y,M,S,p);if(j){j=y.fallback,C=c.mode,S=s.child,M=S.sibling;var U={mode:"hidden",children:y.children};return(C&1)===0&&c.child!==S?(y=c.child,y.childLanes=0,y.pendingProps=U,c.deletions=null):(y=Gi(S,U),y.subtreeFlags=S.subtreeFlags&14680064),M!==null?j=Gi(M,j):(j=Ca(j,C,p,null),j.flags|=2),j.return=c,y.return=c,y.sibling=j,c.child=y,y=j,j=c.child,C=s.child.memoizedState,C=C===null?Ig(p):{baseLanes:C.baseLanes|p,cachePool:null,transitions:C.transitions},j.memoizedState=C,j.childLanes=s.childLanes&~p,c.memoizedState=Cg,y}return j=s.child,s=j.sibling,y=Gi(j,{mode:"visible",children:y.children}),(c.mode&1)===0&&(y.lanes=p),y.return=c,y.sibling=null,s!==null&&(p=c.deletions,p===null?(c.deletions=[s],c.flags|=16):p.push(s)),c.child=y,c.memoizedState=null,y}function Rg(s,c){return c=Kd({mode:"visible",children:c},s.mode,0,null),c.return=s,s.child=c}function Md(s,c,p,y){return y!==null&&sg(y),Ro(c,s.child,null,p),s=Rg(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function AU(s,c,p,y,S,j,C){if(p)return c.flags&256?(c.flags&=-257,y=Eg(Error(r(422))),Md(s,c,C,y)):c.memoizedState!==null?(c.child=s.child,c.flags|=128,null):(j=y.fallback,S=c.mode,y=Kd({mode:"visible",children:y.children},S,0,null),j=Ca(j,S,C,null),j.flags|=2,y.return=c,j.return=c,y.sibling=j,c.child=y,(c.mode&1)!==0&&Ro(c,s.child,null,C),c.child.memoizedState=Ig(C),c.memoizedState=Cg,j);if((c.mode&1)===0)return Md(s,c,C,null);if(S.data==="$!"){if(y=S.nextSibling&&S.nextSibling.dataset,y)var M=y.dgst;return y=M,j=Error(r(419)),y=Eg(j,y,void 0),Md(s,c,C,y)}if(M=(C&s.childLanes)!==0,mr||M){if(y=Ft,y!==null){switch(C&-C){case 4:S=2;break;case 16:S=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:S=32;break;case 536870912:S=268435456;break;default:S=0}S=(S&(y.suspendedLanes|C))!==0?0:S,S!==0&&S!==j.retryLane&&(j.retryLane=S,Zn(s,S),sn(y,s,S,-1))}return Xg(),y=Eg(Error(r(421))),Md(s,c,C,y)}return S.data==="$?"?(c.flags|=128,c.child=s.child,c=BU.bind(null,s),S._reactRetry=c,null):(s=j.treeContext,jr=Li(S.nextSibling),kr=c,ot=!0,rn=null,s!==null&&(Ir[Rr++]=Jn,Ir[Rr++]=Qn,Ir[Rr++]=ka,Jn=s.id,Qn=s.overflow,ka=c),c=Rg(c,y.children),c.flags|=4096,c)}function TT(s,c,p){s.lanes|=c;var y=s.alternate;y!==null&&(y.lanes|=c),dg(s.return,c,p)}function Mg(s,c,p,y,S){var j=s.memoizedState;j===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:y,tail:p,tailMode:S}:(j.isBackwards=c,j.rendering=null,j.renderingStartTime=0,j.last=y,j.tail=p,j.tailMode=S)}function AT(s,c,p){var y=c.pendingProps,S=y.revealOrder,j=y.tail;if(rr(s,c,y.children,p),y=lt.current,(y&2)!==0)y=y&1|2,c.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&TT(s,p,c);else if(s.tag===19)TT(s,p,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}y&=1}if(tt(lt,y),(c.mode&1)===0)c.memoizedState=null;else switch(S){case"forwards":for(p=c.child,S=null;p!==null;)s=p.alternate,s!==null&&Ed(s)===null&&(S=p),p=p.sibling;p=S,p===null?(S=c.child,c.child=null):(S=p.sibling,p.sibling=null),Mg(c,!1,S,p,j);break;case"backwards":for(p=null,S=c.child,c.child=null;S!==null;){if(s=S.alternate,s!==null&&Ed(s)===null){c.child=S;break}s=S.sibling,S.sibling=p,p=S,S=s}Mg(c,!0,p,null,j);break;case"together":Mg(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Ld(s,c){(c.mode&1)===0&&s!==null&&(s.alternate=null,c.alternate=null,c.flags|=2)}function ti(s,c,p){if(s!==null&&(c.dependencies=s.dependencies),Ea|=c.lanes,(p&c.childLanes)===0)return null;if(s!==null&&c.child!==s.child)throw Error(r(153));if(c.child!==null){for(s=c.child,p=Gi(s,s.pendingProps),c.child=p,p.return=c;s.sibling!==null;)s=s.sibling,p=p.sibling=Gi(s,s.pendingProps),p.return=c;p.sibling=null}return c.child}function EU(s,c,p){switch(c.tag){case 3:kT(c),Io();break;case 5:zP(c);break;case 1:hr(c.type)&&vd(c);break;case 4:mg(c,c.stateNode.containerInfo);break;case 10:var y=c.type._context,S=c.memoizedProps.value;tt(jd,y._currentValue),y._currentValue=S;break;case 13:if(y=c.memoizedState,y!==null)return y.dehydrated!==null?(tt(lt,lt.current&1),c.flags|=128,null):(p&c.child.childLanes)!==0?PT(s,c,p):(tt(lt,lt.current&1),s=ti(s,c,p),s!==null?s.sibling:null);tt(lt,lt.current&1);break;case 19:if(y=(p&c.childLanes)!==0,(s.flags&128)!==0){if(y)return AT(s,c,p);c.flags|=128}if(S=c.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),tt(lt,lt.current),y)break;return null;case 22:case 23:return c.lanes=0,bT(s,c,p)}return ti(s,c,p)}var ET,Lg,_T,NT;ET=function(s,c){for(var p=c.child;p!==null;){if(p.tag===5||p.tag===6)s.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===c)break;for(;p.sibling===null;){if(p.return===null||p.return===c)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},Lg=function(){},_T=function(s,c,p,y){var S=s.memoizedProps;if(S!==y){s=c.stateNode,Ta(_n.current);var j=null;switch(p){case"input":S=$e(s,S),y=$e(s,y),j=[];break;case"select":S=ee({},S,{value:void 0}),y=ee({},y,{value:void 0}),j=[];break;case"textarea":S=Zr(s,S),y=Zr(s,y),j=[];break;default:typeof S.onClick!="function"&&typeof y.onClick=="function"&&(s.onclick=pd)}gp(p,y);var C;p=null;for(te in S)if(!y.hasOwnProperty(te)&&S.hasOwnProperty(te)&&S[te]!=null)if(te==="style"){var M=S[te];for(C in M)M.hasOwnProperty(C)&&(p||(p={}),p[C]="")}else te!=="dangerouslySetInnerHTML"&&te!=="children"&&te!=="suppressContentEditableWarning"&&te!=="suppressHydrationWarning"&&te!=="autoFocus"&&(i.hasOwnProperty(te)?j||(j=[]):(j=j||[]).push(te,null));for(te in y){var U=y[te];if(M=S!=null?S[te]:void 0,y.hasOwnProperty(te)&&U!==M&&(U!=null||M!=null))if(te==="style")if(M){for(C in M)!M.hasOwnProperty(C)||U&&U.hasOwnProperty(C)||(p||(p={}),p[C]="");for(C in U)U.hasOwnProperty(C)&&M[C]!==U[C]&&(p||(p={}),p[C]=U[C])}else p||(j||(j=[]),j.push(te,p)),p=U;else te==="dangerouslySetInnerHTML"?(U=U?U.__html:void 0,M=M?M.__html:void 0,U!=null&&M!==U&&(j=j||[]).push(te,U)):te==="children"?typeof U!="str
40ing"&&typeof U!="number"||(j=j||[]).push(te,""+U):te!=="suppressContentEditableWarning"&&te!=="suppressHydrationWarning"&&(i.hasOwnProperty(te)?(U!=null&&te==="onScroll"&&nt("scroll",s),j||M===U||(j=[])):(j=j||[]).push(te,U))}p&&(j=j||[]).push("style",p);var te=j;(c.updateQueue=te)&&(c.flags|=4)}},NT=function(s,c,p,y){p!==y&&(c.flags|=4)};function Bl(s,c){if(!ot)switch(s.tailMode){case"hidden":c=s.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?s.tail=null:p.sibling=null;break;case"collapsed":p=s.tail;for(var y=null;p!==null;)p.alternate!==null&&(y=p),p=p.sibling;y===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:y.sibling=null}}function Qt(s){var c=s.alternate!==null&&s.alternate.child===s.child,p=0,y=0;if(c)for(var S=s.child;S!==null;)p|=S.lanes|S.childLanes,y|=S.subtreeFlags&14680064,y|=S.flags&14680064,S.return=s,S=S.sibling;else for(S=s.child;S!==null;)p|=S.lanes|S.childLanes,y|=S.subtreeFlags,y|=S.flags,S.return=s,S=S.sibling;return s.subtreeFlags|=y,s.childLanes=p,c}function _U(s,c,p){var y=c.pendingProps;switch(ig(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(c),null;case 1:return hr(c.type)&&yd(),Qt(c),null;case 3:return y=c.stateNode,Do(),it(fr),it(Xt),yg(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),(s===null||s.child===null)&&(Sd(c)?c.flags|=4:s===null||s.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,rn!==null&&(Gg(rn),rn=null))),Lg(s,c),Qt(c),null;case 5:pg(c);var S=Ta(Ml.current);if(p=c.type,s!==null&&c.stateNode!=null)_T(s,c,p,y,S),s.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!y){if(c.stateNode===null)throw Error(r(166));return Qt(c),null}if(s=Ta(_n.current),Sd(c)){y=c.stateNode,p=c.type;var j=c.memoizedProps;switch(y[En]=c,y[Nl]=j,s=(c.mode&1)!==0,p){case"dialog":nt("cancel",y),nt("close",y);break;case"iframe":case"object":case"embed":nt("load",y);break;case"video":case"audio":for(S=0;S<Al.length;S++)nt(Al[S],y);break;case"source":nt("error",y);break;case"img":case"image":case"link":nt("error",y),nt("load",y);break;case"details":nt("toggle",y);break;case"input":ht(y,j),nt("invalid",y);break;case"select":y._wrapperState={wasMultiple:!!j.multiple},nt("invalid",y);break;case"textarea":vo(y,j),nt("invalid",y)}gp(p,j),S=null;for(var C in j)if(j.hasOwnProperty(C)){var M=j[C];C==="children"?typeof M=="string"?y.textContent!==M&&(j.suppressHydrationWarning!==!0&&md(y.textContent,M,s),S=["children",M]):typeof M=="number"&&y.textContent!==""+M&&(j.suppressHydrationWarning!==!0&&md(y.textContent,M,s),S=["children",""+M]):i.hasOwnProperty(C)&&M!=null&&C==="onScroll"&&nt("scroll",y)}switch(p){case"input":Ce(y),Qr(y,j,!0);break;case"textarea":Ce(y),sl(y);break;case"select":case"option":break;default:typeof j.onClick=="function"&&(y.onclick=pd)}y=S,c.updateQueue=y,y!==null&&(c.flags|=4)}else{C=S.nodeType===9?S:S.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=gj(p)),s==="http://www.w3.org/1999/xhtml"?p==="script"?(s=C.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof y.is=="string"?s=C.createElement(p,{is:y.is}):(s=C.createElement(p),p==="select"&&(C=s,y.multiple?C.multiple=!0:y.size&&(C.size=y.size))):s=C.createElementNS(s,p),s[En]=c,s[Nl]=y,ET(s,c,!1,!1),c.stateNode=s;e:{switch(C=yp(p,y),p){case"dialog":nt("cancel",s),nt("close",s),S=y;break;case"iframe":case"object":case"embed":nt("load",s),S=y;break;case"video":case"audio":for(S=0;S<Al.length;S++)nt(Al[S],s);S=y;break;case"source":nt("error",s),S=y;break;case"img":case"image":case"link":nt("error",s),nt("load",s),S=y;break;case"details":nt("toggle",s),S=y;break;case"input":ht(s,y),S=$e(s,y),nt("invalid",s);break;case"option":S=y;break;case"select":s._wrapperState={wasMultiple:!!y.multiple},S=ee({},y,{value:void 0}),nt("invalid",s);break;case"textarea":vo(s,y),S=Zr(s,y),nt("invalid",s);break;default:S=y}gp(p,S),M=S;for(j in M)if(M.hasOwnProperty(j)){var U=M[j];j==="style"?xj(s,U):j==="dangerouslySetInnerHTML"?(U=U?U.__html:void 0,U!=null&&yj(s,U)):j==="children"?typeof U=="string"?(p!=="textarea"||U!=="")&&ll(s,U):typeof U=="number"&&ll(s,""+U):j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&j!=="autoFocus"&&(i.hasOwnProperty(j)?U!=null&&j==="onScroll"&&nt("scroll",s):U!=null&&A(s,j,U,C))}switch(p){case"input":Ce(s),Qr(s,y,!1);break;case"textarea":Ce(s),sl(s);break;case"option":y.value!=null&&s.setAttribute("value",""+Oe(y.value));break;
vendor: 21,398 bytes, line 40
40case"select":s.multiple=!!y.multiple,j=y.value,j!=null?dr(s,!!y.multiple,j,!1):y.defaultValue!=null&&dr(s,!!y.multiple,y.defaultValue,!0);break;default:typeof S.onClick=="function"&&(s.onclick=pd)}switch(p){case"button":case"input":case"select":case"textarea":y=!!y.autoFocus;break e;case"img":y=!0;break e;default:y=!1}}y&&(c.flags|=4)}c.ref!==null&&(c.flags|=512,c.flags|=2097152)}return Qt(c),null;case 6:if(s&&c.stateNode!=null)NT(s,c,s.memoizedProps,y);else{if(typeof y!="string"&&c.stateNode===null)throw Error(r(166));if(p=Ta(Ml.current),Ta(_n.current),Sd(c)){if(y=c.stateNode,p=c.memoizedProps,y[En]=c,(j=y.nodeValue!==p)&&(s=kr,s!==null))switch(s.tag){case 3:md(y.nodeValue,p,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&md(y.nodeValue,p,(s.mode&1)!==0)}j&&(c.flags|=4)}else y=(p.nodeType===9?p:p.ownerDocument).createTextNode(y),y[En]=c,c.stateNode=y}return Qt(c),null;case 13:if(it(lt),y=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(ot&&jr!==null&&(c.mode&1)!==0&&(c.flags&128)===0)IP(),Io(),c.flags|=98560,j=!1;else if(j=Sd(c),y!==null&&y.dehydrated!==null){if(s===null){if(!j)throw Error(r(318));if(j=c.memoizedState,j=j!==null?j.dehydrated:null,!j)throw Error(r(317));j[En]=c}else Io(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Qt(c),j=!1}else rn!==null&&(Gg(rn),rn=null),j=!0;if(!j)return c.flags&65536?c:null}return(c.flags&128)!==0?(c.lanes=p,c):(y=y!==null,y!==(s!==null&&s.memoizedState!==null)&&y&&(c.child.flags|=8192,(c.mode&1)!==0&&(s===null||(lt.current&1)!==0?Et===0&&(Et=3):Xg())),c.updateQueue!==null&&(c.flags|=4),Qt(c),null);case 4:return Do(),Lg(s,c),s===null&&El(c.stateNode.containerInfo),Qt(c),null;case 10:return ug(c.type._context),Qt(c),null;case 17:return hr(c.type)&&yd(),Qt(c),null;case 19:if(it(lt),j=c.memoizedState,j===null)return Qt(c),null;if(y=(c.flags&128)!==0,C=j.rendering,C===null)if(y)Bl(j,!1);else{if(Et!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(C=Ed(s),C!==null){for(c.flags|=128,Bl(j,!1),y=C.updateQueue,y!==null&&(c.updateQueue=y,c.flags|=4),c.subtreeFlags=0,y=p,p=c.child;p!==null;)j=p,s=y,j.flags&=14680066,C=j.alternate,C===null?(j.childLanes=0,j.lanes=s,j.child=null,j.subtreeFlags=0,j.memoizedProps=null,j.memoizedState=null,j.updateQueue=null,j.dependencies=null,j.stateNode=null):(j.childLanes=C.childLanes,j.lanes=C.lanes,j.child=C.child,j.subtreeFlags=0,j.deletions=null,j.memoizedProps=C.memoizedProps,j.memoizedState=C.memoizedState,j.updateQueue=C.updateQueue,j.type=C.type,s=C.dependencies,j.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),p=p.sibling;return tt(lt,lt.current&1|2),c.child}s=s.sibling}j.tail!==null&&bt()>zo&&(c.flags|=128,y=!0,Bl(j,!1),c.lanes=4194304)}else{if(!y)if(s=Ed(C),s!==null){if(c.flags|=128,y=!0,p=s.updateQueue,p!==null&&(c.updateQueue=p,c.flags|=4),Bl(j,!0),j.tail===null&&j.tailMode==="hidden"&&!C.alternate&&!ot)return Qt(c),null}else 2*bt()-j.renderingStartTime>zo&&p!==1073741824&&(c.flags|=128,y=!0,Bl(j,!1),c.lanes=4194304);j.isBackwards?(C.sibling=c.child,c.child=C):(p=j.last,p!==null?p.sibling=C:c.child=C,j.last=C)}return j.tail!==null?(c=j.tail,j.rendering=c,j.tail=c.sibling,j.renderingStartTime=bt(),c.sibling=null,p=lt.current,tt(lt,y?p&1|2:p&1),c):(Qt(c),null);case 22:case 23:return Yg(),y=c.memoizedState!==null,s!==null&&s.memoizedState!==null!==y&&(c.flags|=8192),y&&(c.mode&1)!==0?(Pr&1073741824)!==0&&(Qt(c),c.subtreeFlags&6&&(c.flags|=8192)):Qt(c),null;case 24:return null;case 25:return null}throw Error(r(156,c.tag))}function NU(s,c){switch(ig(c),c.tag){case 1:return hr(c.type)&&yd(),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return Do(),it(fr),it(Xt),yg(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 5:return pg(c),null;case 13:if(it(lt),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));Io()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return it(lt),null;case 4:return Do(),null;case 10:return ug(c.type._context),null;case 22:case 23:return Yg(),null;case 24:return null;default:return null}}var Dd=!1,Zt=!1,OU=typeof WeakSet=="function"?WeakSet:Set,he=null;function Fo(s,c){var p=s.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(y){pt(s,c,y)}else p.current=null}function Dg(s,c,p){try{p()}catch(y){pt(s,c,y)}}var OT=!1;function CU(s,c){if(Yp=nd,s=cP(),zp(s)){if("selectionStart"in s)var p={start:s.selectionStart,end:s.selectionEnd};else e:{p=(p=s.ownerDocument)&&p.defaultView||window;var y=p.getSelection&&p.getSelection();if(y&&y.rangeCount!==0){p=y.anchorNode;var S=y.anchorOffset,j=y.focusNode;y=y.focusOffset;try{p.nodeType,j.nodeType}catch{p=null;break e}var C=0,M=-1,U=-1,te=0,ae=0,se=s,ie=null;t:for(;;){for(var fe;se!==p||S!==0&&se.nodeType!==3||(M=C+S),se!==j||y!==0&&se.nodeType!==3||(U=C+y),se.nodeType===3&&(C+=se.nodeValue.length),(fe=se.firstChild)!==null;)ie=se,se=fe;for(;;){if(se===s)break t;if(ie===p&&++te===S&&(M=C),ie===j&&++ae===y&&(U=C),(fe=se.nextSibling)!==null)break;se=ie,ie=se.parentNode}se=fe}p=M===-1||U===-1?null:{start:M,end:U}}else p=null}p=p||{start:0,end:0}}else p=null;for(Xp={focusedElem:s,selectionRange:p},nd=!1,he=c;he!==null;)if(c=he,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,he=s;else for(;he!==null;){c=he;try{var pe=c.alternate;if((c.flags&1024)!==0)switch(c.tag){case 0:case 11:case 15:break;case 1:if(pe!==null){var ve=pe.memoizedProps,wt=pe.memoizedState,X=c.stateNode,H=X.getSnapshotBeforeUpdate(c.elementType===c.type?ve:nn(c.type,ve),wt);X.__reactInternalSnapshotBeforeUpdate=H}break;case 3:var J=c.stateNode.containerInfo;J.nodeType===1?J.textContent="":J.nodeType===9&&J.documentElement&&J.removeChild(J.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ce){pt(c,c.return,ce)}if(s=c.sibling,s!==null){s.return=c.return,he=s;break}he=c.return}return pe=OT,OT=!1,pe}function zl(s,c,p){var y=c.updateQueue;if(y=y!==null?y.lastEffect:null,y!==null){var S=y=y.next;do{if((S.tag&s)===s){var j=S.destroy;S.destroy=void 0,j!==void 0&&Dg(c,p,j)}S=S.next}while(S!==y)}}function $d(s,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&s)===s){var y=p.create;p.destroy=y()}p=p.next}while(p!==c)}}function $g(s){var c=s.ref;if(c!==null){var p=s.stateNode;switch(s.tag){case 5:s=p;break;default:s=p}typeof c=="function"?c(s):c.current=s}}function CT(s){var c=s.alternate;c!==null&&(s.alternate=null,CT(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&(delete c[En],delete c[Nl],delete c[eg],delete c[mU],delete c[pU])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function IT(s){return s.tag===5||s.tag===3||s.tag===4}function RT(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||IT(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Fg(s,c,p){var y=s.tag;if(y===5||y===6)s=s.stateNode,c?p.nodeType===8?p.parentNode.insertBefore(s,c):p.insertBefore(s,c):(p.nodeType===8?(c=p.parentNode,c.insertBefore(s,p)):(c=p,c.appendChild(s)),p=p._reactRootContainer,p!=null||c.onclick!==null||(c.onclick=pd));else if(y!==4&&(s=s.child,s!==null))for(Fg(s,c,p),s=s.sibling;s!==null;)Fg(s,c,p),s=s.sibling}function Bg(s,c,p){var y=s.tag;if(y===5||y===6)s=s.stateNode,c?p.insertBefore(s,c):p.appendChild(s);else if(y!==4&&(s=s.child,s!==null))for(Bg(s,c,p),s=s.sibling;s!==null;)Bg(s,c,p),s=s.sibling}var Wt=null,an=!1;function Vi(s,c,p){for(p=p.child;p!==null;)MT(s,c,p),p=p.sibling}function MT(s,c,p){if(An&&typeof An.onCommitFiberUnmount=="function")try{An.onCommitFiberUnmount(Ju,p)}catch{}switch(p.tag){case 5:Zt||Fo(p,c);case 6:var y=Wt,S=an;Wt=null,Vi(s,c,p),Wt=y,an=S,Wt!==null&&(an?(s=Wt,p=p.stateNode,s.nodeType===8?s.parentNode.removeChild(p):s.removeChild(p)):Wt.removeChild(p.stateNode));break;case 18:Wt!==null&&(an?(s=Wt,p=p.stateNode,s.nodeType===8?Zp(s.parentNode,p):s.nodeType===1&&Zp(s,p),xl(s)):Zp(Wt,p.stateNode));break;case 4:y=Wt,S=an,Wt=p.stateNode.containerInfo,an=!0,Vi(s,c,p),Wt=y,an=S;break;case 0:case 11:case 14:case 15:if(!Zt&&(y=p.updateQueue,y!==null&&(y=y.lastEffect,y!==null))){S=y=y.next;do{var j=S,C=j.destroy;j=j.tag,C!==void 0&&((j&2)!==0||(j&4)!==0)&&Dg(p,c,C),S=S.next}while(S!==y)}Vi(s,c,p);break;case 1:if(!Zt&&(Fo(p,c),y=p.stateNode,typeof y.componentWillUnmount=="function"))try{y.props=p.memoizedProps,y.state=p.memoizedState,y.componentWillUnmount()}catch(M){pt(p,c,M)}Vi(s,c,p);break;case 21:Vi(s,c,p);break;case 22:p.mode&1?(Zt=(y=Zt)||p.memoizedState!==null,Vi(s,c,p),Zt=y):Vi(s,c,p);break;default:Vi(s,c,p)}}function LT(s){var c=s.updateQueue;if(c!==null){s.updateQueue=null;var p=s.stateNode;p===null&&(p=s.stateNode=new OU),c.forEach(function(y){var S=zU.bind(null,s,y);p.has(y)||(p.add(y),y.then(S,S))})}}function on(s,c){var p=c.deletions;if(p!==null)for(var y=0;y<p.length;y++){var S=p[y];try{var j=s,C=c,M=C;e:for(;M!==null;){switch(M.tag){case 5:Wt=M.stateNode,an=!1;break e;case 3:Wt=M.stateNode.containerInfo,an=!0;break e;case 4:Wt=M.stateNode.containerInfo,an=!0;break e}M=M.return}if(Wt===null)throw Error(r(160));MT(j,C,S),Wt=null,an=!1;var U=S.alternate;U!==null&&(U.return=null),S.return=null}catch(te){pt(S,c,te)}}if(c.subtreeFlags&12854)for(c=c.child;c!==null;)DT(c,s),c=c.sibling}function DT(s,c){var p=s.alternate,y=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(on(c,s),On(s),y&4){try{zl(3,s,s.return),$d(3,s)}catch(ve){pt(s,s.return,ve)}try{zl(5,s,s.return)}catch(ve){pt(s,s.return,ve)}}break;case 1:on(c,s),On(s),y&512&&p!==null&&Fo(p,p.return);break;case 5:if(on(c,s),On(s),y&512&&p!==null&&Fo(p,p.return),s.flags&32){var S=s.stateNode;try{ll(S,"")}catch(ve){pt(s,s.return,ve)}}if(y&4&&(S=s.stateNode,S!=null)){var j=s.memoizedProps,C=p!==null?p.memoizedProps:j,M=s.type,U=s.updateQueue;if(s.updateQueue=null,U!==null)try{M==="input"&&j.type==="radio"&&j.name!=null&&mt(S,j),yp(M,C);var te=yp(M,j);for(C=0;C<U.length;C+=2){var ae=U[C],se=U[C+1];ae==="style"?xj(S,se):ae==="dangerouslySetInnerHTML"?yj(S,se):ae==="children"?ll(S,se):A(S,ae,se,te)}switch(M){case"input":Dt(S,j);break;case"textarea":ol(S,j);break;case"select":var ie=S._wrapperState.wasMultiple;S._wrapperState.wasMultiple=!!j.multiple;var fe=j.value;fe!=null?dr(S,!!j.multiple,fe,!1):ie!==!!j.multiple&&(j.defaultValue!=null?dr(S,!!j.multiple,j.defaultValue,!0):dr(S,!!j.multiple,j.multiple?[]:"",!1))}S[Nl]=j}catch(ve){pt(s,s.return,ve)}}break;case 6:if(on(c,s),On(s),y&4){if(s.stateNode===null)throw Error(r(162));S=s.stateNode,j=s.memoizedProps;try{S.nodeValue=j}catch(ve){pt(s,s.return,ve)}}break;case 3:if(on(c,s),On(s),y&4&&p!==null&&p.memoizedState.isDehydrated)try{xl(c.containerInfo)}catch(ve){pt(s,s.return,ve)}break;case 4:on(c,s),On(s);break;case 13:on(c,s),On(s),S=s.child,S.flags&8192&&(j=S.memoizedState!==null,S.stateNode.isHidden=j,!j||S.alternate!==null&&S.alternate.memoizedState!==null||(Ug=bt())),y&4&<(s);break;case 22:if(ae=p!==null&&p.memoizedState!==null,s.mode&1?(Zt=(te=Zt)||ae,on(c,s),Zt=te):on(c,s),On(s),y&8192){if(te=s.memoizedState!==null,(s.stateNode.isHidden=te)&&!ae&&(s.mode&1)!==0)for(he=s,ae=s.child;ae!==null;){for(se=he=ae;he!==null;){switch(ie=he,fe=ie.child,ie.tag){case 0:case 11:case 14:case 15:zl(4,ie,ie.return);break;case 1:Fo(ie,ie.return);var pe=ie.stateNode;if(typeof pe.componentWillUnmount=="function"){y=ie,p=ie.return;try{c=y,pe.props=c.memoizedProps,pe.state=c.memoizedState,pe.componentWillUnmount()}catch(ve){pt(y,p,ve)}}break;case 5:Fo(ie,ie.return);break;case 22:if(ie.memoizedState!==null){BT(se);continue}}fe!==null?(fe.return=ie,he=fe):BT(se)}ae=ae.sibling}e:for(ae=null,se=s;;){if(se.tag===5){if(ae===null){ae=se;try{S=se.stateNode,te?(j=S.style,typeof j.setProperty=="function"?j.setProperty("display","none","important"):j.display="none"):(M=se.stateNode,U=se.memoizedProps.style,C=U!=null&&U.hasOwnProperty("display")?U.display:null,M.style.display=vj("display",C))}catch(ve){pt(s,s.return,ve)}}}else if(se.tag===6){if(ae===null)try{se.stateNode.nodeValue=te?"":se.memoizedProps}catch(ve){pt(s,s.return,ve)}}else if((se.tag!==22&&se.tag!==23||se.memoizedState===null||se===s)&&se.child!==null){se.child.return=se,se=se.child;continue}if(se===s)break e;for(;se.sibling===null;){if(se.return===null||se.return===s)break e;ae===se&&(ae=null),se=se.return}ae===se&&(ae=null),se.sibling.return=se.return,se=se.sibling}}break;case 19:on(c,s),On(s),y&4&<(s);break;case 21:break;default:on(c,s),On(s)}}function On(s){var c=s.flags;if(c&2){try{e:{for(var p=s.return;p!==null;){if(IT(p)){var y=p;break e}p=p.return}throw Error(r(160))}switch(y.tag){case 5:var S=y.stateNode;y.flags&32&&(ll(S,""),y.flags&=-33);var j=RT(s);Bg(s,j,S);break;case 3:case 4:var C=y.stateNode.containerInfo,M=RT(s);Fg(s,M,C);break;default:throw Error(r(161))}}catch(U){pt(s,s.return,U)}s.flags&=-3}c&4096&&(s.flags&=-4097)}function IU(s,c,p){he=s,$T(s)}function $T(s,c,p){for(var y=(s.mode&1)!==0;he!==null;){var S=he,j=S.child;if(S.tag===22&&y){var C=S.memoizedState!==null||Dd;if(!C){var M=S.alternate,U=M!==null&&M.memoizedState!==null||Zt;M=Dd;var te=Zt;if(Dd=C,(Zt=U)&&!te)for(he=S;he!==null;)C=he,U=C.child,C.tag===22&&C.memoizedState!==null?zT(S):U!==null?(U.return=C,he=U):zT(S);for(;j!==null;)he=j,$T(j),j=j.sibling;he=S,Dd=M,Zt=te}FT(s)}else(S.subtreeFlags&8772)!==0&&j!==null?(j.return=S,he=j):FT(s)}}function FT(s){for(;he!==null;){var c=he;if((c.flags&8772)!==0){var p=c.alternate;try{if((c.flags&8772)!==0)switch(c.tag){case 0:case 11:case 15:Zt||$d(5,c);break;case 1:var y=c.stateNode;if(c.flags&4&&!Zt)if(p===null)y.componentDidMount();else{var S=c.elementType===c.type?p.memoizedProps:nn(c.type,p.memoizedProps);y.componentDidUpdate(S,p.memoizedState,y.__reactInternalSnapshotBeforeUpdate)}var j=c.updateQueue;j!==null&&BP(c,j,y);break;case 3:var C=c.updateQueue;if(C!==null){if(p=null,c.child!==null)switch(c.child.tag){case 5:p=c.child.stateNode;break;case 1:p=c.child.stateNode}BP(c,C,p)}break;case 5:var M=c.stateNode;if(p===null&&c.flags&4){p=M;var U=c.memoizedProps;switch(c.type){case"button":case"input":case"select":case"textarea":U.autoFocus&&p.focus();break;case"img":U.src&&(p.src=U.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(c.memoizedState===null){var te=c.alternate;if(te!==null){var ae=te.memoizedState;if(ae!==null){var se=ae.dehydrated;se!==null&&xl(se)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Zt||c.flags&512&&$g(c)}catch(ie){pt(c,c.return,ie)}}if(c===s){he=null;break}if(p=c.sibling,p!==null){p.return=c.return,he=p;break}he=c.return}}function BT(s){for(;he!==null;){var c=he;if(c===s){he=null;break}var p=c.sibling;if(p!==null){p.return=c.return,he=p;break}he=c.return}}function zT(s){for(;he!==null;){var c=he;try{switch(c.tag){case 0:case 11:case 15:var p=c.return;try{$d(4,c)}catch(U){pt(c,p,U)}break;case 1:var y=c.stateNode;if(typeof y.componentDidMount=="function"){var S=c.return;try{y.componentDidMount()}catch(U){pt(c,S,U)}}var j=c.return;try{$g(c)}catch(U){pt(c,j,U)}break;case 5:var C=c.return;try{$g(c)}catch(U){pt(c,C,U)}}}catch(U){pt(c,c.return,U)}if(c===s){he=null;break}var M=c.sibling;if(M!==null){M.return=c.return,he=M;break}he=c.return}}var RU=Math.ceil,Fd=E.ReactCurrentDispatcher,zg=E.ReactCurrentOwner,Dr=E.ReactCurrentBatchConfig,Fe=0,Ft=null,St=null,Ht=0,Pr=0,Bo=Di(0),Et=0,Vl=null,Ea=0,Bd=0,Vg=0,Ul=null,pr=null,Ug=0,zo=1/0,ri=null,zd=!1,Wg=null,Ui=null,Vd=!1,Wi=null,Ud=0,Wl=0,Hg=null,Wd=-1,Hd=0;function nr(){return(Fe&6)!==0?bt():Wd!==-1?Wd:Wd=bt()}function Hi(s){return(s.mode&1)===0?1:(Fe&2)!==0&&Ht!==0?Ht&-Ht:yU.transition!==null?(Hd===0&&(Hd=Rj()),Hd):(s=Ge,s!==0||(s=window.event,s=s===void 0?16:Uj(s.type)),s)}function sn(s,c,p,y){if(50<Wl)throw Wl=0,Hg=null,Error(r(185));ml(s,p,y),((Fe&2)===0||s!==Ft)&&(s===Ft&&((Fe&2)===0&&(Bd|=p),Et===4&&qi(s,Ht)),gr(s,y),p===1&&Fe===0&&(c.mode&1)===0&&(zo=bt()+500,xd&&Fi()))}function gr(s,c){var p=s.callbackNode;yV(s,c);var y=ed(s,s===Ft?Ht:0);if(y===0)p!==null&&Oj(p),s.callbackNode=null,s.callbackPriority=0;else if(c=y&-y,s.callbackPriority!==c){if(p!=null&&Oj(p),c===1)s.tag===0?gU(UT.bind(null,s)):EP(UT.bind(null,s)),fU(function(){(Fe&6)===0&&Fi()}),p=null;else{switch(Mj(y)){case 1:p=jp;break;case 4:p=Cj;break;case 16:p=Xu;break;case 536870912:p=Ij;break;default:p=Xu}p=JT(p,VT.bind(null,s))}s.callbackPriority=c,s.callbackNode=p}}function VT(s,c){if(Wd=-1,Hd=0,(Fe&6)!==0)throw Error(r(327));var p=s.callbackNode;if(Vo()&&s.callbackNode!==p)return null;var y=ed(s,s===Ft?Ht:0);if(y===0)return null;if((y&30)!==0||(y&s.expiredLanes)!==0||c)c=qd(s,y);else{c=y;var S=Fe;Fe|=2;var j=HT();(Ft!==s||Ht!==c)&&(ri=null,zo=bt()+500,Na(s,c));do try{DU();break}catch(M){WT(s,M)}while(!0);cg(),Fd.current=j,Fe=S,St!==null?c=0:(Ft=null,Ht=0,c=Et)}if(c!==0){if(c===2&&(S=Pp(s),S!==0&&(y=S,c=qg(s,S))),c===1)throw p=Vl,Na(s,0),qi(s,y),gr(s,bt()),p;if(c===6)qi(s,y);else{if(S=s.current.alternate,(y&30)===0&&!MU(S)&&(c=qd(s,y),c===2&&(j=Pp(s),j!==0&&(y=j,c=qg(s,j))),c===1))throw p=Vl,Na(s,0),qi(s,y),gr(s,bt()),p;switch(s.finishedWork=S,s.finishedLanes=y,c){case 0:case 1:throw Error(r(345));case 2:Oa(s,pr,ri);break;case 3:if(qi(s,y),(y&130023424)===y&&(c=Ug+500-bt(),10<c)){if(ed(s,0)!==0)break;if(S=s.suspendedLanes,(S&y)!==y){nr(),s.pingedLanes|=s.suspendedLanes&S;break}s.timeoutHandle=Qp(Oa.bind(null,s,pr,ri),c);break}Oa(s,pr,ri);break;case 4:if(qi(s,y),(y&4194240)===y)break;for(c=s.eventTimes,S=-1;0<y;){var C=31-en(y);j=1<<C,C=c[C],C>S&&(S=C),y&=~j}if(y=S,y=bt()-y,y=(120>y?120:480>y?480:1080>y?1080:1920>y?1920:3e3>y?3e3:4320>y?4320:1960*RU(y/1960))-y,10<y){s.timeoutHandle=Qp(Oa.bind(null,s,pr,ri),y);break}Oa(s,pr,ri);break;case 5:Oa(s,pr,ri);break;default:throw Error(r(329))}}}return gr(s,bt()),s.callbackNode===p?VT.bind(null,s):null}function qg(s,c){var p=Ul;return s.current.memoizedState.isDehydrated&&(Na(s,c).flags|=256),s=qd(s,c),s!==2&&(c=pr,pr=p,c!==null&&Gg(c)),s}function Gg(s){pr===null?pr=s:pr.push.apply(pr,s)}function MU(s){for(var c=s;;){if(c.flags&16384){var p=c.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var y=0;y<p.length;y++){var S=p[y],j=S.getSnapshot;S=S.value;try{if(!tn(j(),S))return!1}catch{return!1}}}if(p=c.child,c.subtreeFlags&16384&&p!==null)p.return=c,c=p;else{if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function qi(s,c){for(c&=~Vg,c&=~Bd,s.suspendedLanes|=c,s.pingedLanes&=~c,s=s.expirationTimes;0<c;){var p=31-en(c),y=1<<p;s[p]=-1,c&=~y}}function UT(s){if((Fe&6)!==0)throw Error(r(327));Vo();var c=ed(s,0);if((c&1)===0)return gr(s,bt()),null;var p=qd(s,c);if(s.tag!==0&&p===2){var y=Pp(s);y!==0&&(c=y,p=qg(s,y))}if(p===1)throw p=Vl,Na(s,0),qi(s,c),gr(s,bt()),p;if(p===6)throw Error(r(345));return s.finishedWork=s.current.alternate,s.finishedLanes=c,Oa(s,pr,ri),gr(s,bt()),null}function Kg(s,c){var p=Fe;Fe|=1;try{return s(c)}finally{Fe=p,Fe===0&&(zo=bt()+500,xd&&Fi())}}function _a(s){Wi!==null&&Wi.tag===0&&(Fe&6)===0&&Vo();var c=Fe;Fe|=1;var p=Dr.transition,y=Ge;try{if(Dr.transition=null,Ge=1,s)return s()}finally{Ge=y,Dr.transition=p,Fe=c,(Fe&6)===0&&Fi()}}function Yg(){Pr=Bo.current,it(Bo)}function Na(s,c){s.finishedWork=null,s.finishedLanes=0;var p=s.timeoutHandle;if(p!==-1&&(s.timeoutHandle=-1,dU(p)),St!==null)for(p=St.return;p!==null;){var y=p;switch(ig(y),y.tag){case 1:y=y.type.childContextTypes,y!=null&&yd();break;case 3:Do(),it(fr),it(Xt),yg();break;case 5:pg(y);break;case 4:Do();break;case 13:it(lt);break;case 19:it(lt);break;case 10:ug(y.type._context);break;case 22:case 23:Yg()}p=p.return}if(Ft=s,St=s=Gi(s.current,null),Ht=Pr=c,Et=0,Vl=null,Vg=Bd=Ea=0,pr=Ul=null,Pa!==null){for(c=0;c<Pa.length;c++)if(p=Pa[c],y=p.interleaved,y!==null){p.interleaved=null;var S=y.next,j=p.pending;if(j!==null){var C=j.next;j.next=S,y.next=C}p.pending=y}Pa=null}return s}function WT(s,c){do{var p=St;try{if(cg(),_d.current=Id,Nd){for(var y=ct.memoizedState;y!==null;){var S=y.queue;S!==null&&(S.pending=null),y=y.next}Nd=!1}if(Aa=0,$t=At=ct=null,Ll=!1,Dl=0,zg.current=null,p===null||p.return===null){Et=1,Vl=c,St=null;break}e:{var j=s,C=p.return,M=p,U=c;if(c=Ht,M.flags|=32768,U!==null&&typeof U=="object"&&typeof U.then=="function"){var te=U,ae=M,se=ae.tag;if((ae.mode&1)===0&&(se===0||se===11||se===15)){var ie=ae.alternate;ie?(ae.updateQueue=ie.updateQueue,ae.memoizedState=ie.memoizedState,ae.lanes=ie.lanes):(ae.updateQueue=null,ae.memoizedState=null)}var fe=pT(C);if(fe!==null){fe.flags&=-257,gT(fe,C,M,j,c),fe.mode&1&&mT(j,te,c),c=fe,U=te;var pe=c.updateQueue;if(pe===null){var ve=new Set;ve.add(U),c.updateQueue=ve}else pe.add(U);break e}else{if((c&1)===0){mT(j,te,c),Xg();break e}U=Error(r(426))}}else if(ot&&M.mode&1){var wt=pT(C);if(wt!==null){(wt.flags&65536)===0&&(wt.flags|=256),gT(wt,C,M,j,c),sg($o(U,M));break e}}j=U=$o(U,M),Et!==4&&(Et=2),Ul===null?Ul=[j]:Ul.push(j),j=C;do{switch(j.tag){case 3:j.flags|=65536,c&=-c,j.lanes|=c;var X=fT(j,U,c);FP(j,X);break e;case 1:M=U;var H=j.type,J=j.stateNode;if((j.flags&128)===0&&(typeof H.getDerivedStateFromError=="function"||J!==null&&typeof J.componentDidCatch=="function"&&(Ui===null||!Ui.has(J)))){
vendor: 8,783 bytes, line 40
40j.flags|=65536,c&=-c,j.lanes|=c;var ce=hT(j,M,c);FP(j,ce);break e}}j=j.return}while(j!==null)}GT(p)}catch(xe){c=xe,St===p&&p!==null&&(St=p=p.return);continue}break}while(!0)}function HT(){var s=Fd.current;return Fd.current=Id,s===null?Id:s}function Xg(){(Et===0||Et===3||Et===2)&&(Et=4),Ft===null||(Ea&268435455)===0&&(Bd&268435455)===0||qi(Ft,Ht)}function qd(s,c){var p=Fe;Fe|=2;var y=HT();(Ft!==s||Ht!==c)&&(ri=null,Na(s,c));do try{LU();break}catch(S){WT(s,S)}while(!0);if(cg(),Fe=p,Fd.current=y,St!==null)throw Error(r(261));return Ft=null,Ht=0,Et}function LU(){for(;St!==null;)qT(St)}function DU(){for(;St!==null&&!lV();)qT(St)}function qT(s){var c=XT(s.alternate,s,Pr);s.memoizedProps=s.pendingProps,c===null?GT(s):St=c,zg.current=null}function GT(s){var c=s;do{var p=c.alternate;if(s=c.return,(c.flags&32768)===0){if(p=_U(p,c,Pr),p!==null){St=p;return}}else{if(p=NU(p,c),p!==null){p.flags&=32767,St=p;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{Et=6,St=null;return}}if(c=c.sibling,c!==null){St=c;return}St=c=s}while(c!==null);Et===0&&(Et=5)}function Oa(s,c,p){var y=Ge,S=Dr.transition;try{Dr.transition=null,Ge=1,$U(s,c,p,y)}finally{Dr.transition=S,Ge=y}return null}function $U(s,c,p,y){do Vo();while(Wi!==null);if((Fe&6)!==0)throw Error(r(327));p=s.finishedWork;var S=s.finishedLanes;if(p===null)return null;if(s.finishedWork=null,s.finishedLanes=0,p===s.current)throw Error(r(177));s.callbackNode=null,s.callbackPriority=0;var j=p.lanes|p.childLanes;if(vV(s,j),s===Ft&&(St=Ft=null,Ht=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||Vd||(Vd=!0,JT(Xu,function(){return Vo(),null})),j=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||j){j=Dr.transition,Dr.transition=null;var C=Ge;Ge=1;var M=Fe;Fe|=4,zg.current=null,CU(s,p),DT(p,s),iU(Xp),nd=!!Yp,Xp=Yp=null,s.current=p,IU(p),cV(),Fe=M,Ge=C,Dr.transition=j}else s.current=p;if(Vd&&(Vd=!1,Wi=s,Ud=S),j=s.pendingLanes,j===0&&(Ui=null),fV(p.stateNode),gr(s,bt()),c!==null)for(y=s.onRecoverableError,p=0;p<c.length;p++)S=c[p],y(S.value,{componentStack:S.stack,digest:S.digest});if(zd)throw zd=!1,s=Wg,Wg=null,s;return(Ud&1)!==0&&s.tag!==0&&Vo(),j=s.pendingLanes,(j&1)!==0?s===Hg?Wl++:(Wl=0,Hg=s):Wl=0,Fi(),null}function Vo(){if(Wi!==null){var s=Mj(Ud),c=Dr.transition,p=Ge;try{if(Dr.transition=null,Ge=16>s?16:s,Wi===null)var y=!1;else{if(s=Wi,Wi=null,Ud=0,(Fe&6)!==0)throw Error(r(331));var S=Fe;for(Fe|=4,he=s.current;he!==null;){var j=he,C=j.child;if((he.flags&16)!==0){var M=j.deletions;if(M!==null){for(var U=0;U<M.length;U++){var te=M[U];for(he=te;he!==null;){var ae=he;switch(ae.tag){case 0:case 11:case 15:zl(8,ae,j)}var se=ae.child;if(se!==null)se.return=ae,he=se;else for(;he!==null;){ae=he;var ie=ae.sibling,fe=ae.return;if(CT(ae),ae===te){he=null;break}if(ie!==null){ie.return=fe,he=ie;break}he=fe}}}var pe=j.alternate;if(pe!==null){var ve=pe.child;if(ve!==null){pe.child=null;do{var wt=ve.sibling;ve.sibling=null,ve=wt}while(ve!==null)}}he=j}}if((j.subtreeFlags&2064)!==0&&C!==null)C.return=j,he=C;else e:for(;he!==null;){if(j=he,(j.flags&2048)!==0)switch(j.tag){case 0:case 11:case 15:zl(9,j,j.return)}var X=j.sibling;if(X!==null){X.return=j.return,he=X;break e}he=j.return}}var H=s.current;for(he=H;he!==null;){C=he;var J=C.child;if((C.subtreeFlags&2064)!==0&&J!==null)J.return=C,he=J;else e:for(C=H;he!==null;){if(M=he,(M.flags&2048)!==0)try{switch(M.tag){case 0:case 11:case 15:$d(9,M)}}catch(xe){pt(M,M.return,xe)}if(M===C){he=null;break e}var ce=M.sibling;if(ce!==null){ce.return=M.return,he=ce;break e}he=M.return}}if(Fe=S,Fi(),An&&typeof An.onPostCommitFiberRoot=="function")try{An.onPostCommitFiberRoot(Ju,s)}catch{}y=!0}return y}finally{Ge=p,Dr.transition=c}}return!1}function KT(s,c,p){c=$o(p,c),c=fT(s,c,1),s=zi(s,c,1),c=nr(),s!==null&&(ml(s,1,c),gr(s,c))}function pt(s,c,p){if(s.tag===3)KT(s,s,p);else for(;c!==null;){if(c.tag===3){KT(c,s,p);break}else if(c.tag===1){var y=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(Ui===null||!Ui.has(y))){s=$o(p,s),s=hT(c,s,1),c=zi(c,s,1),s=nr(),c!==null&&(ml(c,1,s),gr(c,s));break}}c=c.return}}function FU(s,c,p){var y=s.pingCache;y!==null&&y.delete(c),c=nr(),s.pingedLanes|=s.suspendedLanes&p,Ft===s&&(Ht&p)===p&&(Et===4||Et===3&&(Ht&130023424)===Ht&&500>bt()-Ug?Na(s,0):Vg|=p),gr(s,c)}function YT(s,c){c===0&&((s.mode&1)===0?c=1:(c=Zu,Zu<<=1,(Zu&130023424)===0&&(Zu=4194304)));var p=nr();s=Zn(s,c),s!==null&&(ml(s,c,p),gr(s,p))}function BU(s){var c=s.memoizedState,p=0;c!==null&&(p=c.retryLane),YT(s,p)}function zU(s,c){var p=0;switch(s.tag){case 13:var y=s.stateNode,S=s.memoizedState;S!==null&&(p=S.retryLane);break;case 19:y=s.stateNode;break;default:throw Error(r(314))}y!==null&&y.delete(c),YT(s,p)}var XT;XT=function(s,c,p){if(s!==null)if(s.memoizedProps!==c.pendingProps||fr.current)mr=!0;else{if((s.lanes&p)===0&&(c.flags&128)===0)return mr=!1,EU(s,c,p);mr=(s.flags&131072)!==0}else mr=!1,ot&&(c.flags&1048576)!==0&&_P(c,wd,c.index);switch(c.lanes=0,c.tag){case 2:var y=c.type;Ld(s,c),s=c.pendingProps;var S=No(c,Xt.current);Lo(c,p),S=bg(null,c,y,s,S,p);var j=wg();return c.flags|=1,typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,hr(y)?(j=!0,vd(c)):j=!1,c.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,hg(c),S.updater=Rd,c.stateNode=S,S._reactInternals=c,Ag(c,y,s,p),c=Og(null,c,y,!0,j,p)):(c.tag=0,ot&&j&&ng(c),rr(null,c,S,p),c=c.child),c;case 16:y=c.elementType;e:{switch(Ld(s,c),s=c.pendingProps,S=y._init,y=S(y._payload),c.type=y,S=c.tag=UU(y),s=nn(y,s),S){case 0:c=Ng(null,c,y,s,p);break e;case 1:c=ST(null,c,y,s,p);break e;case 11:c=yT(null,c,y,s,p);break e;case 14:c=vT(null,c,y,nn(y.type,s),p);break e}throw Error(r(306,y,""))}return c;case 0:return y=c.type,S=c.pendingProps,S=c.elementType===y?S:nn(y,S),Ng(s,c,y,S,p);case 1:return y=c.type,S=c.pendingProps,S=c.elementType===y?S:nn(y,S),ST(s,c,y,S,p);case 3:e:{if(kT(c),s===null)throw Error(r(387));y=c.pendingProps,j=c.memoizedState,S=j.element,$P(s,c),Ad(c,y,null,p);var C=c.memoizedState;if(y=C.element,j.isDehydrated)if(j={element:y,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},c.updateQueue.baseState=j,c.memoizedState=j,c.flags&256){S=$o(Error(r(423)),c),c=jT(s,c,y,p,S);break e}else if(y!==S){S=$o(Error(r(424)),c),c=jT(s,c,y,p,S);break e}else for(jr=Li(c.stateNode.containerInfo.firstChild),kr=c,ot=!0,rn=null,p=LP(c,null,y,p),c.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(Io(),y===S){c=ti(s,c,p);break e}rr(s,c,y,p)}c=c.child}return c;case 5:return zP(c),s===null&&og(c),y=c.type,S=c.pendingProps,j=s!==null?s.memoizedProps:null,C=S.children,Jp(y,S)?C=null:j!==null&&Jp(y,j)&&(c.flags|=32),wT(s,c),rr(s,c,C,p),c.child;case 6:return s===null&&og(c),null;case 13:return PT(s,c,p);case 4:return mg(c,c.stateNode.containerInfo),y=c.pendingProps,s===null?c.child=Ro(c,null,y,p):rr(s,c,y,p),c.child;case 11:return y=c.type,S=c.pendingProps,S=c.elementType===y?S:nn(y,S),yT(s,c,y,S,p);case 7:return rr(s,c,c.pendingProps,p),c.child;case 8:return rr(s,c,c.pendingProps.children,p),c.child;case 12:return rr(s,c,c.pendingProps.children,p),c.child;case 10:e:{if(y=c.type._context,S=c.pendingProps,j=c.memoizedProps,C=S.value,tt(jd,y._currentValue),y._currentValue=C,j!==null)if(tn(j.value,C)){if(j.children===S.children&&!fr.current){c=ti(s,c,p);break e}}else for(j=c.child,j!==null&&(j.return=c);j!==null;){var M=j.dependencies;if(M!==null){C=j.child;for(var U=M.firstContext;U!==null;){if(U.context===y){if(j.tag===1){U=ei(-1,p&-p),U.tag=2;var te=j.updateQueue;if(te!==null){te=te.shared;var ae=te.pending;ae===null?U.next=U:(U.next=ae.next,ae.next=U),te.pending=U}}j.lanes|=p,U=j.alternate,U!==null&&(U.lanes|=p),dg(j.return,p,c),M.lanes|=p;break}U=U.next}}else if(j.tag===10)C=j.type===c.type?null:j.child;else if(j.tag===18){if(C=j.return,C===null)throw Error(r(341));C.lanes|=p,M=C.alternate,M!==null&&(M.lanes|=p),dg(C,p,c),C=j.sibling}else C=j.child;if(C!==null)C.return=j;else for(C=j;C!==null;){if(C===c){C=null;break}if(j=C.sibling,j!==null){j.return=C.return,C=j;break}C=C.return}j=C}rr(s,c,S.children,p),c=c.child}return c;case 9:return S=c.type,y=c.pendingProps.children,Lo(c,p),S=Mr(S),y=y(S),c.flags|=1,rr(s,c,y,p),c.child;case 14:return y=c.type,S=nn(y,c.pendingProps),S=nn(y.type,S),vT(s,c,y,S,p);case 15:return xT(s,c,c.type,c.pendingProps,p);case 17:return y=c.type,S=c.pendingProps,S=c.elementType===y?S:nn(y,S),Ld(s,c),c.tag=1,hr(y)?(s=!0,vd(c)):s=!1,Lo(c,p),uT(c,y,S),Ag(c,y,S,p),Og(null,c,y,!0,s,p);case 19:return AT(s,c,p);case 22:return bT(s,c,p)}throw Error(r(156,c.tag))};function JT(s,c){return Nj(s,c)}function VU(s,c,p,y){this.tag=s,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 9,631 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $r(s,c,p,y){return new VU(s,c,p,y)}function Jg(s){return s=s.prototype,!(!s||!s.isReactComponent)}function UU(s){if(typeof s=="function")return Jg(s)?1:0;if(s!=null){if(s=s.$$typeof,s===B)return 11;if(s===z)return 14}return 2}function Gi(s,c){var p=s.alternate;return p===null?(p=$r(s.tag,c,s.key,s.mode),p.elementType=s.elementType,p.type=s.type,p.stateNode=s.stateNode,p.alternate=s,s.alternate=p):(p.pendingProps=c,p.type=s.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=s.flags&14680064,p.childLanes=s.childLanes,p.lanes=s.lanes,p.child=s.child,p.memoizedProps=s.memoizedProps,p.memoizedState=s.memoizedState,p.updateQueue=s.updateQueue,c=s.dependencies,p.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},p.sibling=s.sibling,p.index=s.index,p.ref=s.ref,p}function Gd(s,c,p,y,S,j){var C=2;if(y=s,typeof s=="function")Jg(s)&&(C=1);else if(typeof s=="string")C=5;else e:switch(s){case O:return Ca(p.children,S,j,c);case I:C=8,S|=8;break;case R:return s=$r(12,p,c,S|2),s.elementType=R,s.lanes=j,s;case G:return s=$r(13,p,c,S),s.elementType=G,s.lanes=j,s;case Y:return s=$r(19,p,c,S),s.elementType=Y,s.lanes=j,s;case Q:return Kd(p,S,j,c);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case D:C=10;break e;case F:C=9;break e;case B:C=11;break e;case z:C=14;break e;case K:C=16,y=null;break e}throw Error(r(130,s==null?s:typeof s,""))}return c=$r(C,p,c,S),c.elementType=s,c.type=y,c.lanes=j,c}function Ca(s,c,p,y){return s=$r(7,s,y,c),s.lanes=p,s}function Kd(s,c,p,y){return s=$r(22,s,y,c),s.elementType=Q,s.lanes=p,s.stateNode={isHidden:!1},s}function Qg(s,c,p){return s=$r(6,s,null,c),s.lanes=p,s}function Zg(s,c,p){return c=$r(4,s.children!==null?s.children:[],s.key,c),c.lanes=p,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}function WU(s,c,p,y,S){this.tag=c,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Tp(0),this.expirationTimes=Tp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tp(0),this.identifierPrefix=y,this.onRecoverableError=S,this.mutableSourceEagerHydrationData=null}function ey(s,c,p,y,S,j,C,M,U){return s=new WU(s,c,p,M,U),c===1?(c=1,j===!0&&(c|=8)):c=0,j=$r(3,null,null,c),s.current=j,j.stateNode=s,j.memoizedState={element:y,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},hg(j),s}function HU(s,c,p){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:_,key:y==null?null:""+y,children:s,containerInfo:c,implementation:p}}function QT(s){if(!s)return $i;s=s._reactInternals;e:{if(ba(s)!==s||s.tag!==1)throw Error(r(170));var c=s;do{switch(c.tag){case 3:c=c.stateNode.context;break e;case 1:if(hr(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}}c=c.return}while(c!==null);throw Error(r(171))}if(s.tag===1){var p=s.type;if(hr(p))return TP(s,p,c)}return c}function ZT(s,c,p,y,S,j,C,M,U){return s=ey(p,y,!0,s,S,j,C,M,U),s.context=QT(null),p=s.current,y=nr(),S=Hi(p),j=ei(y,S),j.callback=c??null,zi(p,j,S),s.current.lanes=S,ml(s,S,y),gr(s,y),s}function Yd(s,c,p,y){var S=c.current,j=nr(),C=Hi(S);return p=QT(p),c.context===null?c.context=p:c.pendingContext=p,c=ei(j,C),c.payload={element:s},y=y===void 0?null:y,y!==null&&(c.callback=y),s=zi(S,c,C),s!==null&&(sn(s,S,C,j),Td(s,S,C)),C}function Xd(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function eA(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var p=s.retryLane;s.retryLane=p!==0&&p<c?p:c}}function ty(s,c){eA(s,c),(s=s.alternate)&&eA(s,c)}function qU(){return null}var tA=typeof reportError=="function"?reportError:function(s){console.error(s)};function ry(s){this._internalRoot=s}Jd.prototype.render=ry.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(r(409));Yd(s,c,null,null)},Jd.prototype.unmount=ry.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;_a(function(){Yd(null,s,null,null)}),c[Yn]=null}};function Jd(s){this._internalRoot=s}Jd.prototype.unstable_scheduleHydration=function(s){if(s){var c=$j();s={blockedOn:null,target:s,priority:c};for(var p=0;p<Ii.length&&c!==0&&c<Ii[p].priority;p++);Ii.splice(p,0,s),p===0&&zj(s)}};function ny(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function Qd(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function rA(){}function GU(s,c,p,y,S){if(S){if(typeof y=="function"){var j=y;y=function(){var te=Xd(C);j.call(te)}}var C=ZT(c,y,s,0,null,!1,!1,"",rA);return s._reactRootContainer=C,s[Yn]=C.current,El(s.nodeType===8?s.parentNode:s),_a(),C}for(;S=s.lastChild;)s.removeChild(S);if(typeof y=="function"){var M=y;y=function(){var te=Xd(U);M.call(te)}}var U=ey(s,0,!1,null,null,!1,!1,"",rA);return s._reactRootContainer=U,s[Yn]=U.current,El(s.nodeType===8?s.parentNode:s),_a(function(){Yd(c,U,p,y)}),U}function Zd(s,c,p,y,S){var j=p._reactRootContainer;if(j){var C=j;if(typeof S=="function"){var M=S;S=function(){var U=Xd(C);M.call(U)}}Yd(c,C,s,S)}else C=GU(p,c,s,S,y);return Xd(C)}Lj=function(s){switch(s.tag){case 3:var c=s.stateNode;if(c.current.memoizedState.isDehydrated){var p=hl(c.pendingLanes);p!==0&&(Ap(c,p|1),gr(c,bt()),(Fe&6)===0&&(zo=bt()+500,Fi()))}break;case 13:_a(function(){var y=Zn(s,1);if(y!==null){var S=nr();sn(y,s,1,S)}}),ty(s,1)}},Ep=function(s){if(s.tag===13){var c=Zn(s,134217728);if(c!==null){var p=nr();sn(c,s,134217728,p)}ty(s,134217728)}},Dj=function(s){if(s.tag===13){var c=Hi(s),p=Zn(s,c);if(p!==null){var y=nr();sn(p,s,c,y)}ty(s,c)}},$j=function(){return Ge},Fj=function(s,c){var p=Ge;try{return Ge=s,c()}finally{Ge=p}},bp=function(s,c,p){switch(c){case"input":if(Dt(s,p),c=p.name,p.type==="radio"&&c!=null){for(p=s;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+c)+'][type="radio"]'),c=0;c<p.length;c++){var y=p[c];if(y!==s&&y.form===s.form){var S=gd(y);if(!S)throw Error(r(90));oe(y),Dt(y,S)}}}break;case"textarea":ol(s,p);break;case"select":c=p.value,c!=null&&dr(s,!!p.multiple,c,!1)}},kj=Kg,jj=_a;var KU={usingClientEntryPoint:!1,Events:[Ol,Eo,gd,wj,Sj,Kg]},Hl={findFiberByHostInstance:wa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},YU={bundleType:Hl.bundleType,version:Hl.version,rendererPackageName:Hl.rendererPackageName,rendererConfig:Hl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=Ej(s),s===null?null:s.stateNode},findFiberByHostInstance:Hl.findFiberByHostInstance||qU,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ef=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ef.isDisabled&&ef.supportsFiber)try{Ju=ef.inject(YU),An=ef}catch{}}return yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=KU,yr.createPortal=function(s,c){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ny(c))throw Error(r(200));return HU(s,c,null,p)},yr.createRoot=function(s,c){if(!ny(s))throw Error(r(299));var p=!1,y="",S=tA;return c!=null&&(c.unstable_strictMode===!0&&(p=!0),c.identifierPrefix!==void 0&&(y=c.identifierPrefix),c.onRecoverableError!==void 0&&(S=c.onRecoverableError)),c=ey(s,1,!1,null,null,p,!1,y,S),s[Yn]=c.current,El(s.nodeType===8?s.parentNode:s),new ry(c)},yr.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var c=s._reactInternals;if(c===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=Ej(c),s=s===null?null:s.stateNode,s},yr.flushSync=function(s){return _a(s)},yr.hydrate=function(s,c,p){if(!Qd(c))throw Error(r(200));return Zd(null,s,c,!0,p)},yr.hydrateRoot=function(s,c,p){if(!ny(s))throw Error(r(405));var y=p!=null&&p.hydratedSources||null,S=!1,j="",C=tA;if(p!=null&&(p.unstable_strictMode===!0&&(S=!0),p.identifierPrefix!==void 0&&(j=p.identifierPrefix),p.onRecoverableError!==void 0&&(C=p.onRecoverableError)),c=ZT(c,null,s,1,p??null,S,!1,j,C),s[Yn]=c.current,El(s),y)for(s=0;s<y.length;s++)p=y[s],S=p._getVersion,S=S(p._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[p,S]:c.mutableSourceEagerHydrationData.push(p,S);return new Jd(c)},yr.render=function(s,c,p){if(!Qd(c))throw Error(r(200));return Zd(null,s,c,!1,p)},yr.unmountComponentAtNode=function(s){if(!Qd(s))throw Error(r(40));return s._reactRootContainer?(_a(function(){Zd(null,null,s,!1,function(){s._reactRootContainer=null,s[Yn]=null})}),!0):!1},yr.unstable_batchedUpdates=Kg,yr.unstable_renderSubtreeIntoContainer=function(s,c,p,y){if(!Qd(p))throw Error(r(200));if(s==null||s._reactInternals===void 0)throw Error(r(38));return Zd(s,c,p,!1,y)}
vendor: 10,070 bytes, lines 40-58
40,yr.version="18.3.1-next-f1338f8080-20240426",yr}var dA;function XL(){if(dA)return oy.exports;dA=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),oy.exports=o4(),oy.exports}var fA;function s4(){if(fA)return rf;fA=1;var t=XL();return rf.createRoot=t.createRoot,rf.hydrateRoot=t.hydrateRoot,rf}var l4=s4();XL();/** 41 * @remix-run/router v1.23.2 42 * 43 * Copyright (c) Remix Software Inc. 44 * 45 * This source code is licensed under the MIT license found in the 46 * LICENSE.md file in the root directory of this source tree. 47 * 48 * @license MIT 49 */function Pc(){return Pc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Pc.apply(this,arguments)}var aa;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(aa||(aa={}));const hA="popstate";function c4(t){t===void 0&&(t={});function e(n,i){let{pathname:a,search:o,hash:l}=n.location;return K0("",{pathname:a,search:o,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Gf(i)}return d4(e,r,null,t)}function dt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function l1(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function u4(){return Math.random().toString(36).substr(2,8)}function mA(t,e){return{usr:t.state,key:t.key,idx:e}}function K0(t,e,r,n){return r===void 0&&(r=null),Pc({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Hs(e):e,{state:r,key:e&&e.key||n||u4()})}function Gf(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Hs(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function d4(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,l=aa.Pop,u=null,d=h();d==null&&(d=0,o.replaceState(Pc({},o.state,{idx:d}),""));function h(){return(o.state||{idx:null}).idx}function m(){l=aa.Pop;let x=h(),k=x==null?null:x-d;d=x,u&&u({action:l,location:w.location,delta:k})}function g(x,k){l=aa.Push;let P=K0(w.location,x,k);d=h()+1;let A=mA(P,d),E=w.createHref(P);try{o.pushState(A,"",E)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(E)}a&&u&&u({action:l,location:w.location,delta:1})}function v(x,k){l=aa.Replace;let P=K0(w.location,x,k);d=h();let A=mA(P,d),E=w.createHref(P);o.replaceState(A,"",E),a&&u&&u({action:l,location:w.location,delta:0})}function b(x){let k=i.location.origin!=="null"?i.location.origin:i.location.href,P=typeof x=="string"?x:Gf(x);return P=P.replace(/ $/,"%20"),dt(k,"No window.location.(origin|href) available to create URL for href: "+P),new URL(P,k)}let w={get action(){return l},get location(){return t(i,o)},listen(x){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(hA,m),u=x,()=>{i.removeEventListener(hA,m),u=null}},createHref(x){return e(i,x)},createURL:b,encodeLocation(x){let k=b(x);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:g,replace:v,go(x){return o.go(x)}};return w}var pA;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(pA||(pA={}));function f4(t,e,r){return r===void 0&&(r="/"),h4(t,e,r)}function h4(t,e,r,n){let i=typeof e=="string"?Hs(e):e,a=ds(i.pathname||"/",r);if(a==null)return null;let o=JL(t);m4(o);let l=null;for(let u=0;l==null&&u<o.length;++u){let d=P4(a);l=k4(o[u],d)}return l}function JL(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(a,o,l)=>{let u={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};u.relativePath.startsWith("/")&&(dt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let d=la([n,u.relativePath]),h=r.concat(u);a.children&&a.children.length>0&&(dt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),JL(a.children,e,h,d)),!(a.path==null&&!a.index)&&e.push({path:d,score:w4(d,a.index),routesMeta:h})};return t.forEach((a,o)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,o);else for(let u of QL(a.path))i(a,o,u)}),e}function QL(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=QL(n.join("/")),l=[];return l.push(...o.map(u=>u===""?a:[a,u].join("/"))),i&&l.push(...o),l.map(u=>t.startsWith("/")&&u===""?"/":u)}function m4(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:S4(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const p4=/^:[\w-]+$/,g4=3,y4=2,v4=1,x4=10,b4=-2,gA=t=>t==="*";function w4(t,e){let r=t.split("/"),n=r.length;return r.some(gA)&&(n+=b4),e&&(n+=y4),r.filter(i=>!gA(i)).reduce((i,a)=>i+(p4.test(a)?g4:a===""?v4:x4),n)}function S4(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function k4(t,e,r){let{routesMeta:n}=t,i={},a="/",o=[];for(let l=0;l<n.length;++l){let u=n[l],d=l===n.length-1,h=a==="/"?e:e.slice(a.length)||"/",m=Y0({path:u.relativePath,caseSensitive:u.caseSensitive,end:d},h),g=u.route;if(!m)return null;Object.assign(i,m.params),o.push({params:i,pathname:la([a,m.pathname]),pathnameBase:N4(la([a,m.pathnameBase])),route:g}),m.pathnameBase!=="/"&&(a=la([a,m.pathnameBase]))}return o}function Y0(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=j4(t.path,t.caseSensitive,t.end),i=e.match(r);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:n.reduce((d,h,m)=>{let{paramName:g,isOptional:v}=h;if(g==="*"){let w=l[m]||"";o=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const b=l[m];return v&&!b?d[g]=void 0:d[g]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:a,pathnameBase:o,pattern:t}}function j4(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),l1(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,u)=>(n.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function P4(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return l1(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function ds(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}const T4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,A4=t=>T4.test(t);function E4(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?Hs(t):t,a;if(r)if(A4(r))a=r;else{if(r.includes("//")){let o=r;r=r.replace(/\/\/+/g,"/"),l1(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+r))}r.startsWith("/")?a=yA(r.substring(1),"/"):a=yA(r,e)}else a=e;return{pathname:a,search:O4(n),hash:C4(i)}}function yA(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function cy(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function _4(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function c1(t,e){let r=_4(t);return e?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function u1(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=Hs(t):(i=Pc({},t),dt(!i.pathname||!i.pathname.includes("?"),cy("?","pathname","search",i)),dt(!i.pathname||!i.pathname.includes("#"),cy("#","pathname","hash",i)),dt(!i.search||!i.search.includes("#"),cy("#","search","hash",i)));let a=t===""||i.pathname==="",o=a?"/":i.pathname,l;if(o==null)l=r;else{let m=e.length-1;if(!n&&o.startsWith("..")){let g=o.split("/");for(;g[0]==="..";)g.shift(),m-=1;i.pathname=g.join("/")}l=m>=0?e[m]:"/"}let u=E4(i,l),d=o&&o!=="/"&&o.endsWith("/"),h=(a||o===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(d||h)&&(u.pathname+="/"),u}const la=t=>t.join("/").replace(/\/\/+/g,"/"),N4=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),O4=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,C4=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function I4(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const ZL=["post","put","patch","delete"];new Set(ZL);const R4=["get",...ZL];new Set(R4);/** 50 * React Router v6.30.3 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */function Tc(){return Tc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
vendor: 5,436 bytes, line 58
58for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Tc.apply(this,arguments)}const gm=N.createContext(null),eD=N.createContext(null),Pi=N.createContext(null),ym=N.createContext(null),Ti=N.createContext({outlet:null,matches:[],isDataRoute:!1}),tD=N.createContext(null);function M4(t,e){let{relative:r}=e===void 0?{}:e;qs()||dt(!1);let{basename:n,navigator:i}=N.useContext(Pi),{hash:a,pathname:o,search:l}=vm(t,{relative:r}),u=o;return n!=="/"&&(u=o==="/"?n:la([n,o])),i.createHref({pathname:u,search:l,hash:a})}function qs(){return N.useContext(ym)!=null}function Xr(){return qs()||dt(!1),N.useContext(ym).location}function rD(t){N.useContext(Pi).static||N.useLayoutEffect(t)}function wu(){let{isDataRoute:t}=N.useContext(Ti);return t?K4():L4()}function L4(){qs()||dt(!1);let t=N.useContext(gm),{basename:e,future:r,navigator:n}=N.useContext(Pi),{matches:i}=N.useContext(Ti),{pathname:a}=Xr(),o=JSON.stringify(c1(i,r.v7_relativeSplatPath)),l=N.useRef(!1);return rD(()=>{l.current=!0}),N.useCallback(function(d,h){if(h===void 0&&(h={}),!l.current)return;if(typeof d=="number"){n.go(d);return}let m=u1(d,JSON.parse(o),a,h.relative==="path");t==null&&e!=="/"&&(m.pathname=m.pathname==="/"?e:la([e,m.pathname])),(h.replace?n.replace:n.push)(m,h.state,h)},[e,n,o,a,t])}function uo(){let{matches:t}=N.useContext(Ti),e=t[t.length-1];return e?e.params:{}}function vm(t,e){let{relative:r}=e===void 0?{}:e,{future:n}=N.useContext(Pi),{matches:i}=N.useContext(Ti),{pathname:a}=Xr(),o=JSON.stringify(c1(i,n.v7_relativeSplatPath));return N.useMemo(()=>u1(t,JSON.parse(o),a,r==="path"),[t,o,a,r])}function D4(t,e){return $4(t,e)}function $4(t,e,r,n){qs()||dt(!1);let{navigator:i}=N.useContext(Pi),{matches:a}=N.useContext(Ti),o=a[a.length-1],l=o?o.params:{};o&&o.pathname;let u=o?o.pathnameBase:"/";o&&o.route;let d=Xr(),h;if(e){var m;let x=typeof e=="string"?Hs(e):e;u==="/"||(m=x.pathname)!=null&&m.startsWith(u)||dt(!1),h=x}else h=d;let g=h.pathname||"/",v=g;if(u!=="/"){let x=u.replace(/^\//,"").split("/");v="/"+g.replace(/^\//,"").split("/").slice(x.length).join("/")}let b=f4(t,{pathname:v}),w=U4(b&&b.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:la([u,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:la([u,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),a,r,n);return e&&w?N.createElement(ym.Provider,{value:{location:Tc({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:aa.Pop}},w):w}function F4(){let t=G4(),e=I4(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},e),r?N.createElement("pre",{style:i},r):null,null)}const B4=N.createElement(F4,null);class z4 extends N.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?N.createElement(Ti.Provider,{value:this.props.routeContext},N.createElement(tD.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function V4(t){let{routeContext:e,match:r,children:n}=t,i=N.useContext(gm);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),N.createElement(Ti.Provider,{value:e},n)}function U4(t,e,r,n){var i;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var a;if(!r)return null;if(r.errors)t=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,l=(i=r)==null?void 0:i.errors;if(l!=null){let h=o.findIndex(m=>m.route.id&&(l==null?void 0:l[m.route.id])!==void 0);h>=0||dt(!1),o=o.slice(0,Math.min(o.length,h+1))}let u=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let h=0;h<o.length;h++){let m=o[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(d=h),m.route.id){let{loaderData:g,errors:v}=r,b=m.route.loader&&g[m.route.id]===void 0&&(!v||v[m.route.id]===void 0);if(m.route.lazy||b){u=!0,d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((h,m,g)=>{let v,b=!1,w=null,x=null;r&&(v=l&&m.route.id?l[m.route.id]:void 0,w=m.route.errorElement||B4,u&&(d<0&&g===0?(Y4("route-fallback"),b=!0,x=null):d===g&&(b=!0,x=m.route.hydrateFallbackElement||null)));let k=e.concat(o.slice(0,g+1)),P=()=>{let A;return v?A=w:b?A=x:m.route.Component?A=N.createElement(m.route.Component,null):m.route.element?A=m.route.element:A=h,N.createElement(V4,{match:m,routeContext:{outlet:h,matches:k,isDataRoute:r!=null},children:A})};return r&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?N.createElement(z4,{location:r.location,revalidation:r.revalidation,component:w,error:v,children:P(),routeC
58ontext:{outlet:null,matches:k,isDataRoute:!0}}):P()},null)}var nD=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(nD||{}),iD=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(iD||{});function W4(t){let e=N.useContext(gm);return e||dt(!1),e}function H4(t){let e=N.useContext(eD);return e||dt(!1),e}function q4(t){let e=N.useContext(Ti);return e||dt(!1),e}function aD(t){let e=q4(),r=e.matches[e.matches.length-1];return r.route.id||dt(!1),r.route.id}function G4(){var t;let e=N.useContext(tD),r=H4(),n=aD();return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function K4(){let{router:t}=W4(nD.UseNavigateStable),e=aD(iD.UseNavigateStable),r=N.useRef(!1);return rD(()=>{r.current=!0}),N.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,Tc({fromRouteId:e},a)))},[t,e])}const vA={};function Y4(t,e,r){vA[t]||(vA[t]=!0)}function X4(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function d1(t){let{to:e,replace:r,state:n,relative:i}=t;qs()||dt(!1);let{future:a,static:o}=N.useContext(Pi),{matches:l}=N.useContext(Ti),{pathname:u}=Xr(),d=wu(),h=u1(e,c1(l,a.v7_relativeSplatPath),u,i==="path"),m=JSON.stringify(h);return N.useEffect(()=>d(JSON.parse(m),{replace:r,state:n,relative:i}),[d,m,i,r,n]),null}function ut(t){dt(!1)}function J4(t){let{basename:e="/",children:r=null,location:n,navigationType:i=aa.Pop,navigator:a,static:o=!1,future:l}=t;qs()&&dt(!1);let u=e.replace(/^\/*/,"/"),d=N.useMemo(()=>({basename:u,navigator:a,static:o,future:Tc({v7_relativeSplatPath:!1},l)}),[u,l,a,o]);typeof n=="string"&&(n=Hs(n));let{pathname:h="/",search:m="",hash:g="",state:v=null,key:b="default"}=n,w=N.useMemo(()=>{let x=ds(h,u);return x==null?null:{location:{pathname:x,search:m,hash:g,state:v,key:b},navigationType:i}},[u,h,m,g,v,b,i]);return w==null?null:N.createElement(Pi.Provider,{value:d},N.createElement(ym.Provider,{children:r,value:w}))}function Q4(t){let{children:e,location:r}=t;return D4(X0(e),r)}new Promise(()=>{});function X0(t,e){e===void 0&&(e=[]);let r=[];return N.Children.forEach(t,(n,i)=>{if(!N.isValidElement(n))return;let a=[...e,i];if(n.type===N.Fragment){r.push.apply(r,X0(n.props.children,a));return}n.type!==ut&&dt(!1),!n.props.index||!n.props.children||dt(!1);let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=X0(n.props.children,a)),r.push(o)}),r}/** 59 * React Router DOM v6.30.3 60 * 61 * Copyright (c) Remix Software Inc. 62 * 63 * This source code is licensed under the MIT license found in the 64 * LICENSE.md file in the root directory of this source tree. 65 * 66 * @license MIT 67 */function Kf(){return Kf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Kf.apply(this,arguments)}function oD(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function Z4(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function e5(t,e){return t.button===0&&(!e||e==="_self")&&!Z4(t)}const t5=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],r5=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],n5="6";try{window.__reactRouterVersion=n5}catch{}const i5=N.createContext({isTransitioning:!1}),a5="startTransition",xA=n4[a5];function o5(t){let{basename:e,children:r,future:n,window:i}=t,a=N.useRef();a.current==null&&(a.current=c4({window:i,v5Compat:!0}));let o=a.current,[l,u]=N.useState({action:o.action,location:o.location}),{v7_startTransition:d}=n||{},h=N.useCallback(m=>{d&&xA?xA(()=>u(m)):u(m)},[u,d]);return N.useLayoutEffect(()=>o.listen(h),[o,h]),N.useEffect(()=>X4(n),[n]),N.createElement(J4,{basename:e,children:r,location:l.location,navigationType:l.action,navigator:o,future:n})}const s5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",l5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,be=N.forwardRef(function(e,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:l,target:u,to:d,preventScrollReset:h,viewTransition:m}=e,g=oD(e,t5),{basename:v}=N.useContext(Pi),b,w=!1;
67if(typeof d=="string"&&l5.test(d)&&(b=d,s5))try{let A=new URL(window.location.href),E=d.startsWith("//")?new URL(A.protocol+d):new URL(d),T=ds(E.pathname,v);E.origin===A.origin&&T!=null?d=T+E.search+E.hash:w=!0}catch{}let x=M4(d,{relative:i}),k=d5(d,{replace:o,state:l,target:u,preventScrollReset:h,relative:i,viewTransition:m});function P(A){n&&n(A),A.defaultPrevented||k(A)}return N.createElement("a",Kf({},g,{href:b||x,onClick:w||a?n:P,ref:r,target:u}))}),c5=N.forwardRef(function(e,r){let{"aria-current":n="page",caseSensitive:i=!1,className:a="",end:o=!1,style:l,to:u,viewTransition:d,children:h}=e,m=oD(e,r5),g=vm(u,{relative:m.relative}),v=Xr(),b=N.useContext(eD),{navigator:w,basename:x}=N.useContext(Pi),k=b!=null&&f5(g)&&d===!0,P=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,A=v.pathname,E=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;i||(A=A.toLowerCase(),E=E?E.toLowerCase():null,P=P.toLowerCase()),E&&x&&(E=ds(E,x)||E);const T=P!=="/"&&P.endsWith("/")?P.length-1:P.length;let _=A===P||!o&&A.startsWith(P)&&A.charAt(T)==="/",O=E!=null&&(E===P||!o&&E.startsWith(P)&&E.charAt(P.length)==="/"),I={isActive:_,isPending:O,isTransitioning:k},R=_?n:void 0,D;typeof a=="function"?D=a(I):D=[a,_?"active":null,O?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let F=typeof l=="function"?l(I):l;return N.createElement(be,Kf({},m,{"aria-current":R,className:D,ref:r,style:F,to:u,viewTransition:d}),typeof h=="function"?h(I):h)});var J0;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(J0||(J0={}));var bA;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(bA||(bA={}));function u5(t){let e=N.useContext(gm);return e||dt(!1),e}function d5(t,e){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:l}=e===void 0?{}:e,u=wu(),d=Xr(),h=vm(t,{relative:o});return N.useCallback(m=>{if(e5(m,r)){m.preventDefault();let g=n!==void 0?n:Gf(d)===Gf(h);u(t,{replace:g,state:i,preventScrollReset:a,relative:o,viewTransition:l})}},[d,u,h,n,i,r,t,a,o,l])}function f5(t,e){e===void 0&&(e={});let r=N.useContext(i5);r==null&&dt(!1);let{basename:n}=u5(J0.useViewTransitionState),i=vm(t,{relative:e.relative});if(!r.isTransitioning)return!1;let a=ds(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=ds(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Y0(i.pathname,o)!=null||Y0(i.pathname,a)!=null}const h5="nexus:view:";function wA(t,e=""){return`${h5}${t}${e?`:${e}`:""}`}function SA(t){return typeof sessionStorage>"u"?!1:sessionStorage.getItem(t)==="1"}function kA(t){typeof sessionStorage>"u"||sessionStorage.setItem(t,"1")}async function rs(t,e){const r=await fetch(t,e);if(!r.ok)throw new Error(`NexusCounter request failed: ${r.status}`);return r.json()}function xm(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:t.toLocaleString()}const sD=N.createContext(null);function m5({children:t,config:e={}}){const r=N.useMemo(()=>{const n=e.apiBase??"/api/nexus",i={apiBase:n,displayMode:e.displayMode??"landing",enabled:e.enabled!==!1,statsPeriod:e.statsPeriod??7};return{config:i,async fetchStats(){return rs(`${n}/stats?period=${i.statsPeriod}`)},async trackPageView(a){if(!i.enabled)return;const o=wA(a);SA(o)||(kA(o),await rs(`${n}/track`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({target:"page",path:a})}))},async trackContentView(a,o,l){if(!i.enabled)return;const u=wA(a,`${o}:${l}`);SA(u)||(kA(u),await rs(`${n}/track`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({target:"content",path:a,contentType:o,contentKey:l})}))}}},[e.apiBase,e.displayMode,e.enabled,e.statsPeriod]);return f.jsx(sD.Provider,{value:r,children:t})}function Gs(){const t=N.useContext(sD);if(!t)throw new Error("useNexus must be used within NexusProvider");return t}function f1(){return Gs().config.displayMode}function p5(){const{pathname:t,search:e}=Xr(),{trackPageView:r}=Gs();return N.useEffect(()=>{const n=`${t}${e}`;r(n).catch(()=>{})},[t,e,r]),null}function h1(t,e,r){const n=Xr(),{trackContentView:i}=Gs(),a=`${n.pathname}${n.search}`;N.useEffect(()=>{e&&i(a,t,e).catch(()=>{})},[e,t,a,i])}function m1({className:t="",label:e="Site views",showLabel:r=!1,refreshMs:n=6e4}){const{config:i}=Gs(),[a,o]=N.useState(null);return N.useEffect(()=>{let l=!0;const u=async()=>{try{const h=await rs(`${i.apiBase}/stats?period=${i.statsPeriod}`);l&&o(h.totalViews)}catch{l&&o(h=>h??0)}};u();const d=window.setInterval(u,n);return()=>{l=!1,window.clearInterval(d)}},[i.apiBase,i.statsPeriod,n]),f.jsxs("div",{className:`inline-flex items-center gap-1.5 text-xs ${t}`.trim(),title:e,"aria-label":`${e}: ${a??0}`,children:[f.jsxs("svg",{className:"h-3.5 w-3.5 opacity-70",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,
vendor: 9,985 bytes, line 67
67children:[f.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),f.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),f.jsx("span",{className:"font-medium tabular-nums",children:a===null?"â":xm(a)}),r&&f.jsx("span",{className:"opacity-70",children:e})]})}function lD(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=lD(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Ie(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=lD(t))&&(n&&(n+=" "),n+=e);return n}var uy,jA;function wr(){if(jA)return uy;jA=1;var t=Array.isArray;return uy=t,uy}var dy,PA;function cD(){if(PA)return dy;PA=1;var t=typeof tf=="object"&&tf&&tf.Object===Object&&tf;return dy=t,dy}var fy,TA;function Gn(){if(TA)return fy;TA=1;var t=cD(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return fy=r,fy}var hy,AA;function Su(){if(AA)return hy;AA=1;var t=Gn(),e=t.Symbol;return hy=e,hy}var my,EA;function g5(){if(EA)return my;EA=1;var t=Su(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,i=t?t.toStringTag:void 0;function a(o){var l=r.call(o,i),u=o[i];try{o[i]=void 0;var d=!0}catch{}var h=n.call(o);return d&&(l?o[i]=u:delete o[i]),h}return my=a,my}var py,_A;function y5(){if(_A)return py;_A=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return py=r,py}var gy,NA;function Ai(){if(NA)return gy;NA=1;var t=Su(),e=g5(),r=y5(),n="[object Null]",i="[object Undefined]",a=t?t.toStringTag:void 0;function o(l){return l==null?l===void 0?i:n:a&&a in Object(l)?e(l):r(l)}return gy=o,gy}var yy,OA;function Ei(){if(OA)return yy;OA=1;function t(e){return e!=null&&typeof e=="object"}return yy=t,yy}var vy,CA;function Ks(){if(CA)return vy;CA=1;var t=Ai(),e=Ei(),r="[object Symbol]";function n(i){return typeof i=="symbol"||e(i)&&t(i)==r}return vy=n,vy}var xy,IA;function p1(){if(IA)return xy;IA=1;var t=wr(),e=Ks(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(t(a))return!1;var l=typeof a;return l=="number"||l=="symbol"||l=="boolean"||a==null||e(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return xy=i,xy}var by,RA;function ha(){if(RA)return by;RA=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return by=t,by}var wy,MA;function g1(){if(MA)return wy;MA=1;var t=Ai(),e=ha(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(l){if(!e(l))return!1;var u=t(l);return u==n||u==i||u==r||u==a}return wy=o,wy}var Sy,LA;function v5(){if(LA)return Sy;LA=1;var t=Gn(),e=t["__core-js_shared__"];return Sy=e,Sy}var ky,DA;function x5(){if(DA)return ky;DA=1;var t=v5(),e=(function(){var n=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!e&&e in n}return ky=r,ky}var jy,$A;function uD(){if($A)return jy;$A=1;var t=Function.prototype,e=t.toString;function r(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return jy=r,jy}var Py,FA;function b5(){if(FA)return Py;FA=1;var t=g1(),e=x5(),r=ha(),n=uD(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,u=o.toString,d=l.hasOwnProperty,h=RegExp("^"+u.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(g){if(!r(g)||e(g))return!1;var v=t(g)?h:a;return v.test(n(g))}return Py=m,Py}var Ty,BA;function w5(){if(BA)return Ty;BA=1;function t(e,r){return e==null?void 0:e[r]}return Ty=t,Ty}var Ay,zA;function fo(){if(zA)return Ay;zA=1;var t=b5(),e=w5();function r(n,i){var a=e(n,i);return t(a)?a:void 0}return Ay=r,Ay}var Ey,VA;function bm(){if(VA)return Ey;VA=1;var t=fo(),e=t(Object,"create");return Ey=e,Ey}var _y,UA;function S5(){if(UA)return _y;UA=1;var t=bm();function e(){this.__data__=t?t(null):{},this.size=0}return _y=e,_y}var Ny,WA;function k5(){if(WA)return Ny;WA=1;function t(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}return Ny=t,Ny}var Oy,HA;function j5(){if(HA)return Oy;HA=1;var t=bm(),e="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(t){var l=o[a];return l===e?void 0:l}return n.call(o,a)?o[a]:void 0}return Oy=i,Oy}var Cy,qA;function P5(){if(qA)return Cy;qA=1;var t=bm(),e=Object.prototype,r=e.hasOwnProperty;function n(i){var a=this.__data__;return t?a[i]!==void 0:r.call(a,i)}return Cy=n,Cy}var Iy,GA;function T5(){if(GA)return Iy;GA=1;var t=bm(),e="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=t&&i===void 0?e:i,this}return Iy=r,Iy}var Ry,KA;function A5(){if(KA)return Ry;KA=1;var t=S5(),e=k5(),r=j5(),n=P5(),i=T5();function a(o){var l=-1,u=o==null?0:o.length;for(this.clear();++l<u;){var d=o[l];this.set(d[0],d[1])}}return a.prototype.clear=t,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ry=a,Ry}var My,YA;function E5(){if(YA)return My;YA=1;function t(){this.__data__=[],this.size=0}return My=t,My}var Ly,XA;function y1(){if(XA)return Ly;XA=1;function t(e,r){return e===r||e!==e&&r!==r}return Ly=t,Ly}var Dy,JA;function wm(){if(JA)return Dy;JA=1;var t=y1();function e(r,n){for(var i=r.length;i--;)if(t(r[i][0],n))return i;return-1}return Dy=e,Dy}var $y,QA;function _5(){if(QA)return $y;QA=1;var t=wm(),e=Array.prototype,r=e.splice;function n(i){var a=this.__data__,o=t(a,i);if(o<0)return!1;var l=a.length-1;return o==l?a.pop():r.call(a,o,1),--this.size,!0}return $y=n,$y}var Fy,ZA;function N5(){if(ZA)return Fy;ZA=1;var t=wm();function e(r){var n=this.__data__,i=t(n,r);return i<0?void 0:n[i][1]}return Fy=e,Fy}var By,eE;function O5(){if(eE)return By;eE=1;var t=wm();function e(r){return t(this.__data__,r)>-1}return By=e,By}var zy,tE;function C5(){if(tE)return zy;tE=1;var t=wm();function e(r,n){var i=this.__data__,a=t(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return zy=e,zy}var Vy,rE;function Sm(){if(rE)return Vy;rE=1;var t=E5(),e=_5(),r=N5(),n=O5(),i=C5();function a(o){var l=-1,u=o==null?0:o.length;for(this.clear();++l<u;){var d=o[l];this.set(d[0],d[1])}}return a.prototype.clear=t,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Vy=a,Vy}var Uy,nE;function v1(){if(nE)return Uy;nE=1;var t=fo(),e=Gn(),r=t(e,"Map");return Uy=r,Uy}var Wy,iE;function I5(){if(iE)return Wy;iE=1;var t=A5(),e=Sm(),r=v1();function n(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}return Wy=n,Wy}var Hy,aE;function R5(){if(aE)return Hy;aE=1;function t(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}return Hy=t,Hy}var qy,oE;function km(){if(oE)return qy;oE=1;var t=R5();function e(r,n){var i=r.__data__;return t(n)?i[typeof n=="string"?"string":"hash"]:i.map}return qy=e,qy}var Gy,sE;function M5(){if(sE)return Gy;sE=1;var t=km();function e(r){var n=t(this,r).delete(r);return this.size-=n?1:0,n}return Gy=e,Gy}var Ky,lE;function L5(){if(lE)return Ky;lE=1;var t=km();function e(r){return t(this,r).get(r)}return Ky=e,Ky}var Yy,cE;function D5(){if(cE)return Yy;cE=1;var t=km();function e(r){return t(this,r).has(r)}return Yy=e,Yy}var Xy,uE;function $5(){if(uE)return Xy;uE=1;var t=km();function e(r,n){var i=t(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Xy=e,Xy}var Jy,dE;function x1(){if(dE)return Jy;dE=1;var t=I5(),e=M5(),r=L5(),n=D5(),i=$5();function a(o){var l=-1,u=o==null?0:o.length;for(this.clear();++l<u;){var d=o[l];this.set(d[0],d[1])}}return a.prototype.clear=t,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Jy=a,Jy}var Qy,fE;function dD(){if(fE)return Qy;fE=1;var t=x1(),e="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(e);var a=function(){var o=arguments,l=i?i.apply(this,o):o[0],u=a.cache;if(u.has(l))return u.get(l);var d=n.apply(this,o);return a.cache=u.set(l,d)||u,d};return a.cache=new(r.Cache||t),a}return r.Cache=t,Qy=r,Qy}var Zy,hE;function F5(){if(hE)return Zy;hE=1;var t=dD(),e=500;function r(n){var i=t(n,function(o){return a.size===e&&a.clear(),o}),a=i.cache;return i}return Zy=r,Zy}var ev,mE;function B5(){if(mE)return ev;mE=1;var t=F5(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(e,function(o,l,u,d){a.push(u?d.replace(r,"$1"):l||o)}),a});return ev=n,ev}var tv,pE;function b1(){if(pE)return tv;pE=1;function t(e,r){for(var n=-1,i=e==null?0:e.length,a=Array(i);++n<i;)a[n]=r(e[n],n,e);return a}return tv=t,tv}var rv,gE;function z5(){if(gE)return rv;gE=1;var t=Su(),e=b1(),r=wr(),n=Ks(),i=t?t.prototype:void 0,a=i?i.toString:void 0;function o(l){if(typeof l=="string")return l;if(r(l))return e(l,o)+"";if(n(l))return a?a.call(l):"";var u=l+"";return u=="0"&&1/l==-1/0?"-0":u}return rv=o,rv}var nv,yE;function fD(){if(yE)return nv;yE=1;var t=z5();function e(r){return r==null?"":t(r)}return nv=e,nv}var iv,vE;function hD(){if(vE)return iv;vE=1;var t=wr(),e=p1(),r=B5(),n=fD();function i(a,o){return t(a)?a:e(a,o)?[a]:r(n(a))}return iv=i,iv}var av,xE;function jm(){if(xE)return av;xE=1;var t=Ks();function e(r){if(typeof r=="string"||t(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return av=e,av}var ov,bE;function w1(){if(bE)return ov;bE=1;var t=hD(),e=jm();function r(n,i){i=t(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[e(i[a++])];return a&&a==o?n:void 0}return ov=r,ov}var sv,wE;function mD(){if(wE)return sv;wE=1;var t=w1();function e(r,n,i){var a=r==null?void 0:t(r,n);return a===void 0?i:a}return sv=e,sv}var V5=mD();const Wr=qe(V5);var lv,SE;function U5(){if(SE)return lv;SE=1;function t(e){return e==null}return lv=t,lv}var W5=U5();const Re=qe(W5);var cv,kE;function H5(){if(kE)return cv;kE=1;var t=Ai(),e=wr(),r=Ei(),n="[object String]";
vendor: 5,628 bytes, lines 67-75
67function i(a){return typeof a=="string"||!e(a)&&r(a)&&t(a)==n}return cv=i,cv}var q5=H5();const io=qe(q5);var G5=g1();const Ne=qe(G5);var K5=ha();const Ys=qe(K5);var uv={exports:{}},Ue={};/** 68 * @license React 69 * react-is.production.min.js 70 * 71 * Copyright (c) Facebook, Inc. and its affiliates. 72 * 73 * This source code is licensed under the MIT license found in the 74 * LICENSE file in the root directory of this source tree. 75 */var jE;function Y5(){if(jE)return Ue;jE=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function w(x){if(typeof x=="object"&&x!==null){var k=x.$$typeof;switch(k){case t:switch(x=x.type,x){case r:case i:case n:case d:case h:return x;default:switch(x=x&&x.$$typeof,x){case l:case o:case u:case g:case m:case a:return x;default:return k}}case e:return k}}}return Ue.ContextConsumer=o,Ue.ContextProvider=a,Ue.Element=t,Ue.ForwardRef=u,Ue.Fragment=r,Ue.Lazy=g,Ue.Memo=m,Ue.Portal=e,Ue.Profiler=i,Ue.StrictMode=n,Ue.Suspense=d,Ue.SuspenseList=h,Ue.isAsyncMode=function(){return!1},Ue.isConcurrentMode=function(){return!1},Ue.isContextConsumer=function(x){return w(x)===o},Ue.isContextProvider=function(x){return w(x)===a},Ue.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},Ue.isForwardRef=function(x){return w(x)===u},Ue.isFragment=function(x){return w(x)===r},Ue.isLazy=function(x){return w(x)===g},Ue.isMemo=function(x){return w(x)===m},Ue.isPortal=function(x){return w(x)===e},Ue.isProfiler=function(x){return w(x)===i},Ue.isStrictMode=function(x){return w(x)===n},Ue.isSuspense=function(x){return w(x)===d},Ue.isSuspenseList=function(x){return w(x)===h},Ue.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===i||x===n||x===d||x===h||x===v||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===m||x.$$typeof===a||x.$$typeof===o||x.$$typeof===u||x.$$typeof===b||x.getModuleId!==void 0)},Ue.typeOf=w,Ue}var PE;function X5(){return PE||(PE=1,uv.exports=Y5()),uv.exports}var J5=X5(),dv,TE;function pD(){if(TE)return dv;TE=1;var t=Ai(),e=Ei(),r="[object Number]";function n(i){return typeof i=="number"||e(i)&&t(i)==r}return dv=n,dv}var fv,AE;function Q5(){if(AE)return fv;AE=1;var t=pD();function e(r){return t(r)&&r!=+r}return fv=e,fv}var Z5=Q5();const ku=qe(Z5);var eW=pD();const tW=qe(eW);var gn=function(e){return e===0?0:e>0?1:-1},Ha=function(e){return io(e)&&e.indexOf("%")===e.length-1},ue=function(e){return tW(e)&&!ku(e)},rW=function(e){return Re(e)},It=function(e){return ue(e)||io(e)},nW=0,ju=function(e){var r=++nW;return"".concat(e||"").concat(r)},yn=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ue(e)&&!io(e))return n;var a;if(Ha(e)){var o=e.indexOf("%");a=r*parseFloat(e.slice(0,o))/100}else a=+e;return ku(a)&&(a=n),i&&a>r&&(a=r),a},ta=function(e){if(!e)return null;var r=Object.keys(e);return r&&r.length?e[r[0]]:null},iW=function(e){if(!Array.isArray(e))return!1;for(var r=e.length,n={},i=0;i<r;i++)if(!n[e[i]])n[e[i]]=!0;else return!0;return!1},ar=function(e,r){return ue(e)&&ue(r)?function(n){return e+n*(r-e)}:function(){return r}};function Yf(t,e,r){return!t||!t.length?null:t.find(function(n){return n&&(typeof e=="function"?e(n):Wr(n,e))===r})}var aW=function(e,r){return ue(e)&&ue(r)?e-r:io(e)&&io(r)?e.localeCompare(r):e instanceof Date&&r instanceof Date?e.getTime()-r.getTime():String(e).localeCompare(String(r))};function ns(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function Q0(t){"@babel/helpers - typeof";return Q0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q0(t)}var oW=["viewBox","children"],sW=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
75dering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],EE=["points","pathLength"],hv={svg:oW,polygon:EE,polyline:EE},S1=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDrag
75Capture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Xf=function(e,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(N.isValidElement(e)&&(n=e.props),!Ys(n))return null;var i={};return Object.keys(n).forEach(function(a){S1.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},lW=function(e,r,n){return function(i){return e(r,n,i),null}},fs=function(e,r,n){if(!Ys(e)||Q0(e)!=="object")return null;var i=null;return Object.keys(e).forEach(function(a){var o=e[a];S1.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=lW(o,r,n))}),i},cW=["children"],uW=["children"];function _E(t,e){if(t==null)return{};var r=dW(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function dW(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Z0(t){"@babel/helpers - typeof";return Z0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z0(t)}var NE={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},mi=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},OE=null,mv=null,k1=function t(e){if(e===OE&&Array.isArray(mv))return mv;var r=[];return N.Children.forEach(e,function(n){Re(n)||(J5.isFragment(n)?r=r.concat(t(n.props.children)):r.push(n))}),mv=r,OE=e,r};function Hr(t,e){var r=[],n=[];return Array.isArray(e)?n=e.map(function(i){return mi(i)}):n=[mi(e)],k1(t).forEach(function(i){var a=Wr(i,"type.displayName")||Wr(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function _r(t,e){var r=Hr(t,e);return r&&r[0]}var CE=function(e){if(!e||!e.props)return!1;var r=e.props,n=r.width,i=r.height;return!(!ue(n)||n<=0||!ue(i)||i<=0)},fW=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],hW=function(e){return e&&e.type&&io(e.type)&&fW.indexOf(e.type)>=0},mW=function(e){return e&&Z0(e)==="object"&&"clipDot"in e},pW=function(e,r,n,i){var a,o=(a=hv==null?void 0:hv[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Ne(e)&&(i&&o.includes(r)||sW.includes(r))||n&&S1.includes(r)},Se=function(e,r,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var i=e;if(N.isValidElement(e)&&(i=e.props),!Ys(i))return null;var a={};
vendor: 4,105 bytes, line 75
75return Object.keys(i).forEach(function(o){var l;pW((l=i)===null||l===void 0?void 0:l[o],o,r,n)&&(a[o]=i[o])}),a},ew=function t(e,r){if(e===r)return!0;var n=N.Children.count(e);if(n!==N.Children.count(r))return!1;if(n===0)return!0;if(n===1)return IE(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=e[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!t(a,o))return!1}else if(!IE(a,o))return!1}return!0},IE=function(e,r){if(Re(e)&&Re(r))return!0;if(!Re(e)&&!Re(r)){var n=e.props||{},i=n.children,a=_E(n,cW),o=r.props||{},l=o.children,u=_E(o,uW);return i&&l?ns(a,u)&&ew(i,l):!i&&!l?ns(a,u):!1}return!1},RE=function(e,r){var n=[],i={};return k1(e).forEach(function(a,o){if(hW(a))n.push(a);else if(a){var l=mi(a.type),u=r[l]||{},d=u.handler,h=u.once;if(d&&(!h||!i[l])){var m=d(a,l,o);n.push(m),i[l]=!0}}}),n},gW=function(e){var r=e&&e.type;return r&&NE[r]?NE[r]:null},yW=function(e,r){return k1(r).indexOf(e)},vW=["children","width","height","viewBox","className","style","title","desc"];function tw(){return tw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},tw.apply(this,arguments)}function xW(t,e){if(t==null)return{};var r=bW(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function bW(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function rw(t){var e=t.children,r=t.width,n=t.height,i=t.viewBox,a=t.className,o=t.style,l=t.title,u=t.desc,d=xW(t,vW),h=i||{width:r,height:n,x:0,y:0},m=Ie("recharts-surface",a);return $.createElement("svg",tw({},Se(d,!0,"svg"),{className:m,width:r,height:n,style:o,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),$.createElement("title",null,l),$.createElement("desc",null,u),e)}var wW=["children","className"];function nw(){return nw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},nw.apply(this,arguments)}function SW(t,e){if(t==null)return{};var r=kW(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function kW(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var He=$.forwardRef(function(t,e){var r=t.children,n=t.className,i=SW(t,wW),a=Ie("recharts-layer",n);return $.createElement("g",nw({className:a},Se(i,!0),{ref:e}),r)}),pi=function(e,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]},pv,ME;function jW(){if(ME)return pv;ME=1;function t(e,r,n){var i=-1,a=e.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=e[i+r];return o}return pv=t,pv}var gv,LE;function PW(){if(LE)return gv;LE=1;var t=jW();function e(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:t(r,n,i)}return gv=e,gv}var yv,DE;function gD(){if(DE)return yv;DE=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=e+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",l=RegExp("["+o+t+i+a+"]");function u(d){return l.test(d)}return yv=u,yv}var vv,$E;function TW(){if($E)return vv;$E=1;function t(e){return e.split("")}return vv=t,vv}var xv,FE;function AW(){if(FE)return xv;FE=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=e+r+n,a="\\ufe0e\\ufe0f",o="["+t+"]",l="["+i+"]",u="\\ud83c[\\udffb-\\udfff]",d="(?:"+l+"|"+u+")",h="[^"+t+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",v="\\u200d",b=d+"?",w="["+a+"]?",x="(?:"+v+"(?:"+[h,m,g].join("|")+")"+w+b+")*",k=w+b+x,P="(?:"+[h+l+"?",l,m,g,o
75].join("|")+")",A=RegExp(u+"(?="+u+")|"+P+k,"g");function E(T){return T.match(A)||[]}return xv=E,xv}var bv,BE;function EW(){if(BE)return bv;BE=1;var t=TW(),e=gD(),r=AW();function n(i){return e(i)?r(i):t(i)}return bv=n,bv}var wv,zE;function _W(){if(zE)return wv;zE=1;var t=PW(),e=gD(),r=EW(),n=fD();function i(a){return function(o){o=n(o);var l=e(o)?r(o):void 0,u=l?l[0]:o.charAt(0),d=l?t(l,1).join(""):o.slice(1);return u[a]()+d}}return wv=i,wv}var Sv,VE;function NW(){if(VE)return Sv;VE=1;var t=_W(),e=t("toUpperCase");return Sv=e,Sv}var OW=NW();const Pm=qe(OW);function rt(t){return function(){return t}}const yD=Math.cos,Jf=Math.sin,kn=Math.sqrt,Qf=Math.PI,Tm=2*Qf,iw=Math.PI,aw=2*iw,Fa=1e-6,CW=aw-Fa;function vD(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function IW(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return vD;const r=10**e;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class RW{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?vD:IW(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,n,i){this._append`Q${+e},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(e,r,n,i,a,o){this._append`C${+e},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(e,r,n,i,a){if(e=+e,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,u=n-e,d=i-r,h=o-e,m=l-r,g=h*h+m*m;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(g>Fa)if(!(Math.abs(m*u-d*h)>Fa)||!a)this._append`L${this._x1=e},${this._y1=r}`;else{let v=n-o,b=i-l,w=u*u+d*d,x=v*v+b*b,k=Math.sqrt(w),P=Math.sqrt(g),A=a*Math.tan((iw-Math.acos((w+g-x)/(2*k*P)))/2),E=A/P,T=A/k;Math.abs(E-1)>Fa&&this._append`L${e+E*h},${r+E*m}`,this._append`A${a},${a},0,0,${+(m*v>h*b)},${this._x1=e+T*u},${this._y1=r+T*d}`}}arc(e,r,n,i,a,o){if(e=+e,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),d=e+l,h=r+u,m=1^o,g=o?i-a:a-i;this._x1===null?this._append`M${d},${h}`:(Math.abs(this._x1-d)>Fa||Math.abs(this._y1-h)>Fa)&&this._append`L${d},${h}`,n&&(g<0&&(g=g%aw+aw),g>CW?this._append`A${n},${n},0,1,${m},${e-l},${r-u}A${n},${n},0,1,${m},${this._x1=d},${this._y1=h}`:g>Fa&&this._append`A${n},${n},0,${+(g>=iw)},${m},${this._x1=e+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(e,r,n,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function j1(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new RW(e)}function P1(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function xD(t){this._context=t}xD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Am(t){return new xD(t)}function bD(t){return t[0]}function wD(t){return t[1]}function SD(t,e){var r=rt(!0),n=null,i=Am,a=null,o=j1(l);t=typeof t=="function"?t:t===void 0?bD:rt(t),e=typeof e=="function"?e:e===void 0?wD:rt(e);function l(u){var d,h=(u=P1(u)).length,m,g=!1,v;for(n==null&&(a=i(v=o())),d=0;d<=h;++d)!(d<h&&r(m=u[d],d,u))===g&&((g=!g)?a.lineStart():a.lineEnd()),g&&a.point(+t(m,d,u),+e(m,d,u));if(v)return a=null,v+""||null}return l.x=function(u){return arguments.length?(t=typeof u=="function"?u:rt(+u),l):t},l.y=function(u){return arguments.length?(e=typeof u=="function"?u:rt(+u),l):e},l.defined=function(u){return arguments.length?(r=typeof u=="function"?u:rt(!!u),l):r},l.curve=function(u){return arguments.length?(i=u,n!=null&&(a=i(n)),l):i},l.context=function(u){return arguments.length?(u==null?n=a=null:a=i(n=u),l):n},l}function nf(t,e,r){var n=null,i=rt(!0),a=null,o=Am,l=null,u=j1(d);t=typeof t=="function"?t:t===void 0?bD:rt(+t),e=typeof e=="function"?e:rt(e===void 0?0:+e),r=typeof r=="function"?r:r===void 0?wD:rt(+r);function d(m){var g,v,b,w=(m=P1(m)).length,x,k=!1,P,A=new Array(w),E=new Array(w);for(a==null&&(l=o(P=u())),g=0;g<=w;++g){if(!(g<w&&i(x=m[g],g,m))===k)if(k=!k)v=g,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),b=g-1;b>=v;--b)l.point(A[b],E[b]);l.lineEnd(),l.areaEnd()}k&&(A[g]=+t(x,g,m),E[g]=+e(x,g,m),l.point(n?+n(x,g,m):A[g],r?+r(x,g,m):E[g]))}if(P)return l=null,P+""||null}function h(){return SD().defined(i).curve(o).context(a)}return d.x=function(m){return arguments.length?(t=typeof m=="function"?m:rt(+m),n=null,d):t},d.x0=function(m){return arguments.length?(t=typeof m=="function"?m:rt(+m),d):t},d.x1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:rt(+m),d):n},d.y=function(m){return arguments.length?(e=typeof m=="function"?m:rt(+m),r=null,d):e},d.y0=function(m){return arguments.length?(e=typeof m=="function"?m:rt(+m),d):e},d.y1=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:rt(+m),d):r},d.lineX0=d.lineY0=function(){return h().x(t).y(e)},d.lineY1=function(){return h().x(t).y(r)},d.lineX1=function(){return h().x(n).y(e)},d.defined=function(m){return arguments.length?(i=typeof m=="function"?m:rt(!!m),d):i},d.curve=function(m){return arguments.length?(o=m,a!=null&&(l=o(a)),d):o},d.context=function(m){return arguments.length?(m==null?a=l=null:l=o(a=m),d):a},d}class kD{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function MW(t){return new kD(t,!0)}function LW(t){return new kD(t,!1)}const T1={draw(t,e){const r=kn(e/Qf);t.moveTo(r,0),t.arc(0,0,r,0,Tm)}}
vendor: 6,755 bytes, line 75
75,DW={draw(t,e){const r=kn(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},jD=kn(1/3),$W=jD*2,FW={draw(t,e){const r=kn(e/$W),n=r*jD;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},BW={draw(t,e){const r=kn(e),n=-r/2;t.rect(n,n,r,r)}},zW=.8908130915292852,PD=Jf(Qf/10)/Jf(7*Qf/10),VW=Jf(Tm/10)*PD,UW=-yD(Tm/10)*PD,WW={draw(t,e){const r=kn(e*zW),n=VW*r,i=UW*r;t.moveTo(0,-r),t.lineTo(n,i);for(let a=1;a<5;++a){const o=Tm*a/5,l=yD(o),u=Jf(o);t.lineTo(u*r,-l*r),t.lineTo(l*n-u*i,u*n+l*i)}t.closePath()}},kv=kn(3),HW={draw(t,e){const r=-kn(e/(kv*3));t.moveTo(0,r*2),t.lineTo(-kv*r,-r),t.lineTo(kv*r,-r),t.closePath()}},Fr=-.5,Br=kn(3)/2,ow=1/kn(12),qW=(ow/2+1)*3,GW={draw(t,e){const r=kn(e/qW),n=r/2,i=r*ow,a=n,o=r*ow+r,l=-a,u=o;t.moveTo(n,i),t.lineTo(a,o),t.lineTo(l,u),t.lineTo(Fr*n-Br*i,Br*n+Fr*i),t.lineTo(Fr*a-Br*o,Br*a+Fr*o),t.lineTo(Fr*l-Br*u,Br*l+Fr*u),t.lineTo(Fr*n+Br*i,Fr*i-Br*n),t.lineTo(Fr*a+Br*o,Fr*o-Br*a),t.lineTo(Fr*l+Br*u,Fr*u-Br*l),t.closePath()}};function KW(t,e){let r=null,n=j1(i);t=typeof t=="function"?t:rt(t||T1),e=typeof e=="function"?e:rt(e===void 0?64:+e);function i(){let a;if(r||(r=a=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(t=typeof a=="function"?a:rt(a),i):t},i.size=function(a){return arguments.length?(e=typeof a=="function"?a:rt(+a),i):e},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Zf(){}function eh(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function TD(t){this._context=t}TD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:eh(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:eh(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function YW(t){return new TD(t)}function AD(t){this._context=t}AD.prototype={areaStart:Zf,areaEnd:Zf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:eh(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function XW(t){return new AD(t)}function ED(t){this._context=t}ED.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:eh(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function JW(t){return new ED(t)}function _D(t){this._context=t}_D.prototype={areaStart:Zf,areaEnd:Zf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function QW(t){return new _D(t)}function UE(t){return t<0?-1:1}function WE(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),o=(r-t._y1)/(i||n<0&&-0),l=(a*i+o*n)/(n+i);return(UE(a)+UE(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function HE(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function jv(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,l=(a-n)/3;t._context.bezierCurveTo(n+l,i+l*e,a-l,o-l*r,a,o)}function th(t){this._context=t}th.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:jv(this,this._t0,HE(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,jv(this,HE(this,r=WE(this,t,e)),r);break;default:jv(this,this._t0,r=WE(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function ND(t){this._context=new OD(t)}(ND.prototype=Object.create(th.prototype)).point=function(t,e){th.prototype.point.call(this,e,t)};function OD(t){this._context=t}OD.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}};function ZW(t){return new th(t)}function e6(t){return new ND(t)}function CD(t){this._context=t}CD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var n=qE(t),i=qE(e),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o
75]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function qE(t){var e,r=t.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function t6(t){return new CD(t)}function Em(t,e){this._context=t,this._t=e}Em.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function r6(t){return new Em(t,.5)}function n6(t){return new Em(t,0)}function i6(t){return new Em(t,1)}function hs(t,e){if((o=t.length)>1)for(var r=1,n,i,a=t[e[0]],o,l=a.length;r<o;++r)for(i=a,a=t[e[r]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function sw(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function a6(t,e){return t[e]}function o6(t){const e=[];return e.key=t,e}function s6(){var t=rt([]),e=sw,r=hs,n=a6;function i(a){var o=Array.from(t.apply(this,arguments),o6),l,u=o.length,d=-1,h;for(const m of a)for(l=0,++d;l<u;++l)(o[l][d]=[0,+n(m,o[l].key,d,a)]).data=m;for(l=0,h=P1(e(o));l<u;++l)o[h[l]].index=l;return r(o,h),o}return i.keys=function(a){return arguments.length?(t=typeof a=="function"?a:rt(Array.from(a)),i):t},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:rt(+a),i):n},i.order=function(a){return arguments.length?(e=a==null?sw:typeof a=="function"?a:rt(Array.from(a)),i):e},i.offset=function(a){return arguments.length?(r=a??hs,i):r},i}function l6(t,e){if((n=t.length)>0){for(var r,n,i=0,a=t[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}hs(t,e)}}function c6(t,e){if((i=t.length)>0){for(var r=0,n=t[e[0]],i,a=n.length;r<a;++r){for(var o=0,l=0;o<i;++o)l+=t[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}hs(t,e)}}function u6(t,e){if(!(!((o=t.length)>0)||!((a=(i=t[e[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var l=0,u=0,d=0;l<o;++l){for(var h=t[e[l]],m=h[n][1]||0,g=h[n-1][1]||0,v=(m-g)/2,b=0;b<l;++b){var w=t[e[b]],x=w[n][1]||0,k=w[n-1][1]||0;v+=x-k}u+=m,d+=v*m}i[n-1][1]+=i[n-1][0]=r,u&&(r-=d/u)}i[n-1][1]+=i[n-1][0]=r,hs(t,e)}}function Ac(t){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ac(t)}var d6=["type","size","sizeType"];function lw(){return lw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},lw.apply(this,arguments)}function GE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function KE(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?GE(Object(r),!0).forEach(function(n){f6(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):GE(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function f6(t,e,r){return e=h6(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h6(t){var e=m6(t,"string");return Ac(e)=="symbol"?e:e+""}function m6(t,e){if(Ac(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ac(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function p6(t,e){if(t==null)return{};var r=g6(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function g6(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var ID={symbolCircle:T1,symbolCross:DW,symbolDiamond:FW,symbolSquare:
vendor: 60,892 bytes, lines 75-85
75BW,symbolStar:WW,symbolTriangle:HW,symbolWye:GW},y6=Math.PI/180,v6=function(e){var r="symbol".concat(Pm(e));return ID[r]||T1},x6=function(e,r,n){if(r==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var i=18*y6;return 1.25*e*e*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},b6=function(e,r){ID["symbol".concat(Pm(e))]=r},A1=function(e){var r=e.type,n=r===void 0?"circle":r,i=e.size,a=i===void 0?64:i,o=e.sizeType,l=o===void 0?"area":o,u=p6(e,d6),d=KE(KE({},u),{},{type:n,size:a,sizeType:l}),h=function(){var x=v6(n),k=KW().type(x).size(x6(a,l,n));return k()},m=d.className,g=d.cx,v=d.cy,b=Se(d,!0);return g===+g&&v===+v&&a===+a?$.createElement("path",lw({},b,{className:Ie("recharts-symbols",m),transform:"translate(".concat(g,", ").concat(v,")"),d:h()})):null};A1.registerSymbol=b6;function ms(t){"@babel/helpers - typeof";return ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ms(t)}function cw(){return cw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},cw.apply(this,arguments)}function YE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function w6(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?YE(Object(r),!0).forEach(function(n){Ec(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):YE(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function S6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k6(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,MD(n.key),n)}}function j6(t,e,r){return e&&k6(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function P6(t,e,r){return e=rh(e),T6(t,RD()?Reflect.construct(e,r||[],rh(t).constructor):e.apply(t,r))}function T6(t,e){if(e&&(ms(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A6(t)}function A6(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function RD(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RD=function(){return!!t})()}function rh(t){return rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rh(t)}function E6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&uw(t,e)}function uw(t,e){return uw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uw(t,e)}function Ec(t,e,r){return e=MD(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function MD(t){var e=_6(t,"string");return ms(e)=="symbol"?e:e+""}function _6(t,e){if(ms(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ms(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var zr=32,E1=(function(t){function e(){return S6(this,e),P6(this,e,arguments)}return E6(e,t),j6(e,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=zr/2,o=zr/6,l=zr/3,u=n.inactive?i:n.color;if(n.type==="plainline")return $.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:zr,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return $.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(a,"h").concat(l,` 76 A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(a,` 77 H`).concat(zr,"M").concat(2*l,",").concat(a,` 78 A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return $.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(zr/8,"h").concat(zr,"v").concat(zr*3/4,"h").concat(-zr,"z"),className:"recharts-legend-icon"});if($.isValidElement(n.legendIcon)){var d=w6({},n);return delete d.legendIcon,$.cloneElement(n.legendIcon,d)}return $.createElement(A1,{fill:u,cx:a,cy:a,size:zr,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,l=i.layout,u=i.formatter,d=i.inactiveColor,h={x:0,y:0,width:zr,height:zr},m={display:l==="horizontal"?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(v,b){var w=v.formatter||u,x=Ie(Ec(Ec({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",v.inactive));if(v.type==="none")return null;var k=Ne(v.value)?null:v.value;pi(!Ne(v.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var P=v.inactive?d:v.color;return $.createElement("li",cw({className:x,style:m,key:"legend-item-".concat(b)},fs(n.props,v,b)),$.createElement(rw,{width:o,height:o,viewBox:h,style:g},n.renderIcon(v)),$.createElement("span",{className:"recharts-legend-item-text",style:{color:P}},w?w(k,v,b):k))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return $.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])})(N.PureComponent);Ec(E1,"displayName","Legend");Ec(E1,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Pv,XE;function N6(){if(XE)return Pv;XE=1;var t=Sm();function e(){this.__data__=new t,this.size=0}return Pv=e,Pv}var Tv,JE;function O6(){if(JE)return Tv;JE=1;function t(e){var r=this.__data__,n=r.delete(e);return this.size=r.size,n}return Tv=t,Tv}var Av,QE;function C6(){if(QE)return Av;QE=1;function t(e){return this.__data__.get(e)}return Av=t,Av}var Ev,ZE;function I6(){if(ZE)return Ev;ZE=1;function t(e){return this.__data__.has(e)}return Ev=t,Ev}var _v,e_;function R6(){if(e_)return _v;e_=1;var t=Sm(),e=v1(),r=x1(),n=200;function i(a,o){var l=this.__data__;if(l instanceof t){var u=l.__data__;if(!e||u.length<n-1)return u.push([a,o]),this.size=++l.size,this;l=this.__data__=new r(u)}return l.set(a,o),this.size=l.size,this}return _v=i,_v}var Nv,t_;function LD(){if(t_)return Nv;t_=1;var t=Sm(),e=N6(),r=O6(),n=C6(),i=I6(),a=R6();function o(l){var u=this.__data__=new t(l);this.size=u.size}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,Nv=o,Nv}var Ov,r_;function M6(){if(r_)return Ov;r_=1;var t="__lodash_hash_undefined__";function e(r){return this.__data__.set(r,t),this}return Ov=e,Ov}var Cv,n_;function L6(){if(n_)return Cv;n_=1;function t(e){return this.__data__.has(e)}return Cv=t,Cv}var Iv,i_;function DD(){if(i_)return Iv;i_=1;var t=x1(),e=M6(),r=L6();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new t;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,Iv=n,Iv}var Rv,a_;function $D(){if(a_)return Rv;a_=1;function t(e,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(e[n],n,e))return!0;return!1}return Rv=t,Rv}var Mv,o_;function FD(){if(o_)return Mv;o_=1;function t(e,r){return e.has(r)}return Mv=t,Mv}var Lv,s_;function BD(){if(s_)return Lv;s_=1;var t=DD(),e=$D(),r=FD(),n=1,i=2;function a(o,l,u,d,h,m){var g=u&n,v=o.length,b=l.length;if(v!=b&&!(g&&b>v))return!1;var w=m.get(o),x=m.get(l);if(w&&x)return w==l&&x==o;var k=-1,P=!0,A=u&i?new t:void 0;for(m.set(o,l),m.set(l,o);++k<v;){var E=o[k],T=l[k];if(d)var _=g?d(T,E,k,l,o,m):d(E,T,k,o,l,m);if(_!==void 0){if(_)continue;P=!1;break}if(A){if(!e(l,function(O,I){if(!r(A,I)&&(E===O||h(E,O,u,d,m)))return A.push(I)})){P=!1;break}}else if(!(E===T||h(E,T,u,d,m))){P=!1;break}}return m.delete(o),m.delete(l),P}return Lv=a,Lv}var Dv,l_;function D6(){if(l_)return Dv;l_=1;var t=Gn(),e=t.Uint8Array;return Dv=e,Dv}var $v,c_;function $6(){if(c_)return $v;c_=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(i,a){n[++r]=[a,i]}),n}return $v=t,$v}var Fv,u_;function _1(){if(u_)return Fv;u_=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(i){n[++r]=i}),n}return Fv=t,Fv}var Bv,d_;function F6(){if(d_)return Bv;d_=1;var t=Su(),e=D6(),r=y1(),n=BD(),i=$6(),a=_1(),o=1,l=2,u="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",v="[object RegExp]",b="[object Set]",w="[object String]",x="[object Symbol]",k="[object ArrayBuffer]",P="[object DataView]",A=t?t.prototype:void 0,E=A?A.valueOf:void 0;function T(_,O,I,R,D,F,B){switch(I){case P:if(_.byteLength!=O.byteLength||_.byteOffset!=O.byteOffset)return!1;_=_.buffer,O=O.buffer;case k:return!(_.byteLength!=O.byteLength||!F(new e(_),new e(O)));case u:case d:case g:return r(+_,+O);case h:return _.name==O.name&&_.message==O.message;case v:case w:return _==O+"";case m:var G=i;case b:var Y=R&o;if(G||(G=a),_.size!=O.size&&!Y)return!1;var z=B.get(_);if(z)return z==O;R|=l,B.set(_,O);var K=n(G(_),G(O),R,D,F,B);return B.delete(_),K;case x:if(E)return E.call(_)==E.call(O)}return!1}return Bv=T,Bv}var zv,f_;function zD(){if(f_)return zv;f_=1;function t(e,r){for(var n=-1,i=r.length,a=e.length;++n<i;)e[a+n]=r[n];return e}return zv=t,zv}var Vv,h_;function B6(){if(h_)return Vv;h_=1;var t=zD(),e=wr();function r(n,i,a){var o=i(n);return e(n)?o:t(o,a(n))}return Vv=r,Vv}var Uv,m_;function z6(){if(m_)return Uv;m_=1;function t(e,r){for(var n=-1,i=e==null?0:e.length,a=0,o=[];++n<i;){var l=e[n];r(l,n,e)&&(o[a++]=l)}return o}return Uv=t,Uv}var Wv,p_;function V6(){if(p_)return Wv;p_=1;function t(){return[]}return Wv=t,Wv}var Hv,g_;function U6(){if(g_)return Hv;g_=1;var t=z6(),e=V6(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),t(i(o),function(l){return n.call(o,l)}))}:e;return Hv=a,Hv}var qv,y_;function W6(){if(y_)return qv;y_=1;function t(e,r){for(var n=-1,i=Array(e);++n<e;)i[n]=r(n);return i}return qv=t,qv}var Gv,v_;function H6(){if(v_)return Gv;v_=1;var t=Ai(),e=Ei(),r="[object Arguments]";function n(i){return e(i)&&t(i)==r}return Gv=n,Gv}var Kv,x_;function N1(){if(x_)return Kv;x_=1;var t=H6(),e=Ei(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=t((function(){return arguments})())?t:function(o){return e(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Kv=a,Kv}var sc={exports:{}},Yv,b_;function q6(){if(b_)return Yv;b_=1;function t(){return!1}return Yv=t,Yv}sc.exports;var w_;function VD(){return w_||(w_=1,(function(t,e){var r=Gn(),n=q6(),i=e&&!e.nodeType&&e,a=i&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===i,l=o?r.Buffer:void 0,u=l?l.isBuffer:void 0,d=u||n;t.exports=d})(sc,sc.exports)),sc.exports}var Xv,S_;function O1(){if(S_)return Xv;S_=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??t,!!i&&(a=="number"||a!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<i}return Xv=r,Xv}var Jv,k_;function C1(){if(k_)return Jv;k_=1;var t=9007199254740991;function e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}return Jv=e,Jv}var Qv,j_;function G6(){if(j_)return Qv;j_=1;var t=Ai(),e=C1(),r=Ei(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",l="[object Error]",u="[object Function]",d="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",v="[object Set]",b="[object String]",w="[object WeakMap]",x="[object ArrayBuffer]",k="[object DataView]",P="[object Float32Array]",A="[object Float64Array]",E="[object Int8Array]",T="[object Int16Array]",_="[object Int32Array]",O="[object Uint8Array]",I="[object Uint8ClampedArray]",R="[object Uint16Array]",D="[object Uint32Array]",F={};F[P]=F[A]=F[E]=F[T]=F[_]=F[O]=F[I]=F[R]=F[D]=!0,F[n]=F[i]=F[x]=F[a]=F[k]=F[o]=F[l]=F[u]=F[d]=F[h]=F[m]=F[g]=F[v]=F[b]=F[w]=!1;function B(G){return r(G)&&e(G.length)&&!!F[t(G)]}return Qv=B,Qv}var Zv,P_;function UD(){if(P_)return Zv;P_=1;function t(e){return function(r){return e(r)}}return Zv=t,Zv}var lc={exports:{}};lc.exports;var T_;function K6(){return T_||(T_=1,(function(t,e){var r=cD(),n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===n,o=a&&r.process,l=(function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}})();t.exports=l})(lc,lc.exports)),lc.exports}var ex,A_;function WD(){if(A_)return ex;A_=1;var t=G6(),e=UD(),r=K6(),n=r&&r.isTypedArray,i=n?e(n):t;return ex=i,ex}var tx,E_;function Y6(){if(E_)return tx;E_=1;var t=W6(),e=N1(),r=wr(),n=VD(),i=O1(),a=WD(),o=Object.prototype,l=o.hasOwnProperty;function u(d,h){var m=r(d),g=!m&&e(d),v=!m&&!g&&n(d),b=!m&&!g&&!v&&a(d),w=m||g||v||b,x=w?t(d.length,String):[],k=x.length;for(var P in d)(h||l.call(d,P))&&!(w&&(P=="length"||v&&(P=="offset"||P=="parent")||b&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||i(P,k)))&&x.push(P);return x}return tx=u,tx}var rx,__;function X6(){if(__)return rx;__=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||t;return r===i}return rx=e,rx}var nx,N_;function HD(){if(N_)return nx;N_=1;function t(e,r){return function(n){return e(r(n))}}return nx=t,nx}var ix,O_;function J6(){if(O_)return ix;O_=1;var t=HD(),e=t(Object.keys,Object);return ix=e,ix}var ax,C_;function Q6(){if(C_)return ax;C_=1;var t=X6(),e=J6(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!t(a))return e(a);var o=[];for(var l in Object(a))n.call(a,l)&&l!="constructor"&&o.push(l);return o}return ax=i,ax}var ox,I_;function Pu(){if(I_)return ox;I_=1;var t=g1(),e=C1();function r(n){return n!=null&&e(n.length)&&!t(n)}return ox=r,ox}var sx,R_;function _m(){if(R_)return sx;R_=1;var t=Y6(),e=Q6(),r=Pu();function n(i){return r(i)?t(i):e(i)}return sx=n,sx}var lx,M_;function Z6(){if(M_)return lx;M_=1;var t=B6(),e=U6(),r=_m();function n(i){return t(i,r,e)}return lx=n,lx}var cx,L_;function eH(){if(L_)return cx;L_=1;var t=Z6(),e=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,l,u,d,h){var m=l&e,g=t(a),v=g.length,b=t(o),w=b.length;if(v!=w&&!m)return!1;for(var x=v;x--;){var k=g[x];if(!(m?k in o:n.call(o,k)))return!1}var P=h.get(a),A=h.get(o);if(P&&A)return P==o&&A==a;var E=!0;h.set(a,o),h.set(o,a);for(var T=m;++x<v;){k=g[x];var _=a[k],O=o[k];if(u)var I=m?u(O,_,k,o,a,h):u(_,O,k,a,o,h);if(!(I===void 0?_===O||d(_,O,l,u,h):I)){E=!1;break}T||(T=k=="constructor")}if(E&&!T){var R=a.constructor,D=o.constructor;R!=D&&"constructor"in a&&"constructor"in o&&!(typeof R=="function"&&R instanceof R&&typeof D=="function"&&D instanceof D)&&(E=!1)}return h.delete(a),h.delete(o),E}return cx=i,cx}var ux,D_;function tH(){if(D_)return ux;D_=1;var t=fo(),e=Gn(),r=t(e,"DataView");return ux=r,ux}var dx,$_;function rH(){if($_)return dx;$_=1;var t=fo(),e=Gn(),r=t(e,"Promise");return dx=r,dx}var fx,F_;function qD(){if(F_)return fx;F_=1;var t=fo(),e=Gn(),r=t(e,"Set");return fx=r,fx}var hx,B_;function nH(){if(B_)return hx;B_=1;var t=fo(),e=Gn(),r=t(e,"WeakMap");return hx=r,hx}var mx,z_;function iH(){if(z_)return mx;z_=1;var t=tH(),e=v1(),r=rH(),n=qD(),i=nH(),a=Ai(),o=uD(),l="[object Map]",u="[object Object]",d="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",v=o(t),b=o(e),w=o(r),x=o(n),k=o(i),P=a;return(t&&P(new t(new ArrayBuffer(1)))!=g||e&&P(new e)!=l||r&&P(r.resolve())!=d||n&&P(new n)!=h||i&&P(new i)!=m)&&(P=function(A){var E=a(A),T=E==u?A.constructor:void 0,_=T?o(T):"";if(_)switch(_){case v:return g;case b:return l;case w:return d;case x:return h;case k:return m}return E}),mx=P,mx}var px,V_;function aH(){if(V_)return px;V_=1;var t=LD(),e=BD(),r=F6(),n=eH(),i=iH(),a=wr(),o=VD(),l=WD(),u=1,d="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,v=g.hasOwnProperty;function b(w,x,k,P,A,E){var T=a(w),_=a(x),O=T?h:i(w),I=_?h:i(x);O=O==d?m:O,I=I==d?m:I;var R=O==m,D=I==m,F=O==I;if(F&&o(w)){if(!o(x))return!1;T=!0,R=!1}if(F&&!R)return E||(E=new t),T||l(w)?e(w,x,k,P,A,E):r(w,x,O,k,P,A,E);if(!(k&u)){var B=R&&v.call(w,"__wrapped__"),G=D&&v.call(x,"__wrapped__");if(B||G){var Y=B?w.value():w,z=G?x.value():x;return E||(E=new t),A(Y,z,k,P,E)}}return F?(E||(E=new t),n(w,x,k,P,A,E)):!1}return px=b,px}var gx,U_;function I1(){if(U_)return gx;U_=1;var t=aH(),e=Ei();function r(n,i,a,o,l){return n===i?!0:n==null||i==null||!e(n)&&!e(i)?n!==n&&i!==i:t(n,i,a,o,r,l)}return gx=r,gx}var yx,W_;function oH(){if(W_)return yx;W_=1;var t=LD(),e=I1(),r=1,n=2;function i(a,o,l,u){var d=l.length,h=d,m=!u;if(a==null)return!h;for(a=Object(a);d--;){var g=l[d];if(m&&g[2]?g[1]!==a[g[0]]:!(g[0]in a))return!1}for(;++d<h;){g=l[d];var v=g[0],b=a[v],w=g[1];if(m&&g[2]){if(b===void 0&&!(v in a))return!1}else{var x=new t;if(u)var k=u(b,w,v,a,o,x);if(!(k===void 0?e(w,b,r|n,u,x):k))return!1}}return!0}return yx=i,yx}var vx,H_;function GD(){if(H_)return vx;H_=1;var t=ha();function e(r){return r===r&&!t(r)}return vx=e,vx}var xx,q_;function sH(){if(q_)return xx;q_=1;var t=GD(),e=_m();function r(n){for(var i=e(n),a=i.length;a--;){var o=i[a],l=n[o];i[a]=[o,l,t(l)]}return i}return xx=r,xx}var bx,G_;function KD(){if(G_)return bx;G_=1;function t(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}return bx=t,bx}var wx,K_;function lH(){if(K_)return wx;K_=1;var t=oH(),e=sH(),r=KD();function n(i){var a=e(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||t(o,i,a)}}return wx=n,wx}var Sx,Y_;function cH(){if(Y_)return Sx;Y_=1;function t(e,r){return e!=null&&r in Object(e)}return Sx=t,Sx}var kx,X_;function uH(){if(X_)return kx;X_=1;var t=hD(),e=N1(),r=wr(),n=O1(),i=C1(),a=jm();function o(l,u,d){u=t(u,l);for(var h=-1,m=u.length,g=!1;++h<m;){var v=a(u[h]);if(!(g=l!=null&&d(l,v)))break;l=l[v]}return g||++h!=m?g:(m=l==null?0:l.length,!!m&&i(m)&&n(v,m)&&(r(l)||e(l)))}return kx=o,kx}var jx,J_;function dH(){if(J_)return jx;J_=1;var t=cH(),e=uH();function r(n,i){return n!=null&&e(n,i,t)}return jx=r,jx}var Px,Q_;function fH(){if(Q_)return Px;Q_=1;var t=I1(),e=mD(),r=dH(),n=p1(),i=GD(),a=KD(),o=jm(),l=1,u=2;function d(h,m){return n(h)&&i(m)?a(o(h),m):function(g){var v=e(g,h);return v===void 0&&v===m?r(g,h):t(m,v,l|u)}}return Px=d,Px}var Tx,Z_;function Xs(){if(Z_)return Tx;Z_=1;function t(e){return e}return Tx=t,Tx}var Ax,eN;function hH(){if(eN)return Ax;eN=1;function t(e){return function(r){return r==null?void 0:r[e]}}return Ax=t,Ax}var Ex,tN;function mH(){if(tN)return Ex;tN=1;var t=w1();function e(r){return function(n){return t(n,r)}}return Ex=e,Ex}var _x,rN;function pH(){if(rN)return _x;rN=1;var t=hH(),e=mH(),r=p1(),n=jm();function i(a){return r(a)?t(n(a)):e(a)}return _x=i,_x}var Nx,nN;function Kn(){if(nN)return Nx;nN=1;var t=lH(),e=fH(),r=Xs(),n=wr(),i=pH();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?e(o[0],o[1]):t(o):i(o)}return Nx=a,Nx}var Ox,iN;function YD(){if(iN)return Ox;iN=1;function t(e,r,n,i){for(var a=e.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(e[o],o,e))return o;return-1}return Ox=t,Ox}var Cx,aN;function gH(){if(aN)return Cx;aN=1;function t(e){return e!==e}return Cx=t,Cx}var Ix,oN;function yH(){if(oN)return Ix;oN=1;function t(e,r,n){for(var i=n-1,a=e.length;++i<a;)if(e[i]===r)return i;return-1}return Ix=t,Ix}var Rx,sN;function vH(){if(sN)return Rx;sN=1;var t=YD(),e=gH(),r=yH();function n(i,a,o){return a===a?r(i,a,o):t(i,e,o)}return Rx=n,Rx}var Mx,lN;function xH(){if(lN)return Mx;lN=1;var t=vH();function e(r,n){var i=r==null?0:r.length;return!!i&&t(r,n,0)>-1}return Mx=e,Mx}var Lx,cN;function bH(){if(cN)return Lx;cN=1;function t(e,r,n){for(var i=-1,a=e==null?0:e.length;++i<a;)if(n(r,e[i]))return!0;return!1}return Lx=t,Lx}var Dx,uN;function wH(){if(uN)return Dx;uN=1;function t(){}return Dx=t,Dx}var $x,dN;function SH(){if(dN)return $x;dN=1;var t=qD(),e=wH(),r=_1(),n=1/0,i=t&&1/r(new t([,-0]))[1]==n?function(a){return new t(a)}:e;return $x=i,$x}var Fx,fN;function kH(){if(fN)return Fx;fN=1;var t=DD(),e=xH(),r=bH(),n=FD(),i=SH(),a=_1(),o=200;function l(u,d,h){var m=-1,g=e,v=u.length,b=!0,w=[],x=w;if(h)b=!1,g=r;else if(v>=o){var k=d?null:i(u);if(k)return a(k);b=!1,g=n,x=new t}else x=d?[]:w;e:for(;++m<v;){var P=u[m],A=d?d(P):P;if(P=h||P!==0?P:0,b&&A===A){for(var E=x.length;E--;)if(x[E]===A)continue e;d&&x.push(A),w.push(P)}else g(x,A,h)||(x!==w&&x.push(A),w.push(P))}return w}return Fx=l,Fx}var Bx,hN;function jH(){if(hN)return Bx;hN=1;var t=Kn(),e=kH();function r(n,i){return n&&n.length?e(n,t(i,2)):[]}return Bx=r,Bx}var PH=jH();const mN=qe(PH);function XD(t,e,r){return e===!0?mN(t,r):Ne(e)?mN(t,e):t}function ps(t){"@babel/helpers - typeof";return ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ps(t)}var TH=["ref"];function pN(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ni(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pN(Object(r),!0).forEach(function(n){Nm(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pN(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function AH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gN(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,QD(n.key),n)}}function EH(t,e,r){return e&&gN(t.prototype,e),r&&gN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function _H(t,e,r){return e=nh(e),NH(t,JD()?Reflect.construct(e,r||[],nh(t).constructor):e.apply(t,r))}function NH(t,e){if(e&&(ps(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OH(t)}function OH(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function JD(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JD=function(){return!!t})()}function nh(t){return nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nh(t)}function CH(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dw(t,e)}function dw(t,e){return dw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dw(t,e)}function Nm(t,e,r){return e=QD(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QD(t){var e=IH(t,"string");return ps(e)=="symbol"?e:e+""}function IH(t,e){if(ps(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ps(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function RH(t,e){if(t==null)return{};var r=MH(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function MH(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function LH(t){return t.value}function DH(t,e){if($.isValidElement(t))return $.cloneElement(t,e);if(typeof t=="function")return $.createElement(t,e);e.ref;var r=RH(e,TH);return $.createElement(E1,r)}var yN=1,Dn=(function(t){function e(){var r;AH(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=_H(this,e,[].concat(i)),Nm(r,"lastBoundingBox",{width:-1,height:-1}),r}return CH(e,t),EH(e,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>yN||Math.abs(i.height-this.lastBoundingBox.height)>yN)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ni({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,l=i.verticalAlign,u=i.margin,d=i.chartWidth,h=i.chartHeight,m,g;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var v=this.getBBoxSnapshot();m={left:((d||0)-v.width)/2}}else m=o==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();g={top:((h||0)-b.height)/2}}else g=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return ni(ni({},m),g)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,l=i.height,u=i.wrapperStyle,d=i.payloadUniqBy,h=i.payload,m=ni(ni({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return $.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:function(v){n.wrapperNode=v}},DH(a,ni(ni({},this.props),{},{payload:XD(h,d,LH)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ni(ni({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&ue(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(N.PureComponent);Nm(Dn,"displayName","Legend");Nm(Dn,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var zx,vN;function $H(){if(vN)return zx;vN=1;var t=Su(),e=N1(),r=wr(),n=t?t.isConcatSpreadable:void 0;function i(a){return r(a)||e(a)||!!(n&&a&&a[n])}return zx=i,zx}var Vx,xN;function ZD(){if(xN)return Vx;xN=1;var t=zD(),e=$H();function r(n,i,a,o,l){var u=-1,d=n.length;for(a||(a=e),l||(l=[]);++u<d;){var h=n[u];i>0&&a(h)?i>1?r(h,i-1,a,o,l):t(l,h):o||(l[l.length]=h)}return l}return Vx=r,Vx}var Ux,bN;function FH(){if(bN)return Ux;bN=1;function t(e){return function(r,n,i){for(var a=-1,o=Object(r),l=i(r),u=l.length;u--;){var d=l[e?u:++a];if(n(o[d],d,o)===!1)break}return r}}return Ux=t,Ux}var Wx,wN;function BH(){if(wN)return Wx;wN=1;var t=FH(),e=t();return Wx=e,Wx}var Hx,SN;function e2(){if(SN)return Hx;SN=1;var t=BH(),e=_m();function r(n,i){return n&&t(n,i,e)}return Hx=r,Hx}var qx,kN;function zH(){if(kN)return qx;kN=1;var t=Pu();function e(r,n){return function(i,a){if(i==null)return i;if(!t(i))return r(i,a);for(var o=i.length,l=n?o:-1,u=Object(i);(n?l--:++l<o)&&a(u[l],l,u)!==!1;);return i}}return qx=e,qx}var Gx,jN;function R1(){if(jN)return Gx;jN=1;var t=e2(),e=zH(),r=e(t);return Gx=r,Gx}var Kx,PN;function t2(){if(PN)return Kx;PN=1;var t=R1(),e=Pu();function r(n,i){var a=-1,o=e(n)?Array(n.length):[];return t(n,function(l,u,d){o[++a]=i(l,u,d)}),o}return Kx=r,Kx}var Yx,TN;function VH(){if(TN)return Yx;TN=1;function t(e,r){var n=e.length;for(e.sort(r);n--;)e[n]=e[n].value;return e}return Yx=t,Yx}var Xx,AN;function UH(){if(AN)return Xx;AN=1;var t=Ks();function e(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,l=t(r),u=n!==void 0,d=n===null,h=n===n,m=t(n);if(!d&&!m&&!l&&r>n||l&&u&&h&&!d&&!m||a&&u&&h||!i&&h||!o)return 1;if(!a&&!l&&!m&&r<n||m&&i&&o&&!a&&!l||d&&i&&o||!u&&o||!h)return-1}return 0}return Xx=e,Xx}var Jx,EN;function WH(){if(EN)return Jx;EN=1;var t=UH();function e(r,n,i){for(var a=-1,o=r.criteria,l=n.criteria,u=o.length,d=i.length;++a<u;){var h=t(o[a],l[a]);if(h){if(a>=d)return h;var m=i[a];return h*(m=="desc"?-1:1)}}return r.index-n.index}return Jx=e,Jx}var Qx,_N;function HH(){if(_N)return Qx;_N=1;var t=b1(),e=w1(),r=Kn(),n=t2(),i=VH(),a=UD(),o=WH(),l=Xs(),u=wr();function d(h,m,g){m.length?m=t(m,function(w){return u(w)?function(x){return e(x,w.length===1?w[0]:w)}:w}):m=[l];var v=-1;m=t(m,a(r));var b=n(h,function(w,x,k){var P=t(m,function(A){return A(w)});return{criteria:P,index:++v,value:w}});return i(b,function(w,x){return o(w,x,g)})}return Qx=d,Qx}var Zx,NN;function qH(){if(NN)return Zx;NN=1;function t(e,r,n){switch(n.length){case 0:return e.call(r);case 1:return e.call(r,n[0]);case 2:return e.call(r,n[0],n[1]);case 3:return e.call(r,n[0],n[1],n[2])}return e.apply(r,n)}return Zx=t,Zx}var eb,ON;function GH(){if(ON)return eb;ON=1;var t=qH(),e=Math.max;function r(n,i,a){return i=e(i===void 0?n.length-1:i,0),function(){for(var o=arguments,l=-1,u=e(o.length-i,0),d=Array(u);++l<u;)d[l]=o[i+l];l=-1;for(var h=Array(i+1);++l<i;)h[l]=o[l];return h[i]=a(d),t(n,this,h)}}return eb=r,eb}var tb,CN;function KH(){if(CN)return tb;CN=1;function t(e){return function(){return e}}return tb=t,tb}var rb,IN;function r2(){if(IN)return rb;IN=1;var t=fo(),e=(function(){try{var r=t(Object,"defineProperty");return r({},"",{}),r}catch{}})();return rb=e,rb}var nb,RN;function YH(){if(RN)return nb;RN=1;var t=KH(),e=r2(),r=Xs(),n=e?function(i,a){return e(i,"toString",{configurable:!0,enumerable:!1,value:t(a),writable:!0})}:r;return nb=n,nb}var ib,MN;function XH(){if(MN)return ib;MN=1;var t=800,e=16,r=Date.now;function n(i){var a=0,o=0;return function(){var l=r(),u=e-(l-o);if(o=l,u>0){if(++a>=t)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return ib=n,ib}var ab,LN;function JH(){if(LN)return ab;LN=1;var t=YH(),e=XH(),r=e(t);return ab=r,ab}var ob,DN;function QH(){if(DN)return ob;DN=1;var t=Xs(),e=GH(),r=JH();function n(i,a){return r(e(i,a,t),i+"")}return ob=n,ob}var sb,$N;function Om(){if($N)return sb;$N=1;var t=y1(),e=Pu(),r=O1(),n=ha();function i(a,o,l){if(!n(l))return!1;var u=typeof o;return(u=="number"?e(l)&&r(o,l.length):u=="string"&&o in l)?t(l[o],a):!1}return sb=i,sb}var lb,FN;function ZH(){if(FN)return lb;FN=1;var t=ZD(),e=HH(),r=QH(),n=Om(),i=r(function(a,o){if(a==null)return[];var l=o.length;return l>1&&n(a,o[0],o[1])?o=[]:l>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),e(a,t(o,1),[])});return lb=i,lb}var eq=ZH();const M1=qe(eq);function _c(t){"@babel/helpers - typeof";return _c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_c(t)}function fw(){return fw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fw.apply(this,arguments)}function tq(t,e){return aq(t)||iq(t,e)||nq(t,e)||rq()}function rq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 79In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nq(t,e){if(t){if(typeof t=="string")return BN(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return BN(t,e)}}function BN(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function iq(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(h){d=!0,i=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function aq(t){if(Array.isArray(t))return t}function zN(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function cb(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zN(Object(r),!0).forEach(function(n){oq(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zN(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function oq(t,e,r){return e=sq(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sq(t){var e=lq(t,"string");return _c(e)=="symbol"?e:e+""}function lq(t,e){if(_c(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(_c(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function cq(t){return Array.isArray(t)&&It(t[0])&&It(t[1])?t.join(" ~ "):t}var uq=function(e){var r=e.separator,n=r===void 0?" : ":r,i=e.contentStyle,a=i===void 0?{}:i,o=e.itemStyle,l=o===void 0?{}:o,u=e.labelStyle,d=u===void 0?{}:u,h=e.payload,m=e.formatter,g=e.itemSorter,v=e.wrapperClassName,b=e.labelClassName,w=e.label,x=e.labelFormatter,k=e.accessibilityLayer,P=k===void 0?!1:k,A=function(){if(h&&h.length){var B={padding:0,margin:0},G=(g?M1(h,g):h).map(function(Y,z){if(Y.type==="none")return null;var K=cb({display:"block",paddingTop:4,paddingBottom:4,color:Y.color||"#000"},l),Q=Y.formatter||m||cq,q=Y.value,Z=Y.name,ee=q,L=Z;if(Q&&ee!=null&&L!=null){var W=Q(q,Z,Y,z,h);if(Array.isArray(W)){var V=tq(W,2);ee=V[0],L=V[1]}else ee=W}return $.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(z),style:K},It(L)?$.createElement("span",{className:"recharts-tooltip-item-name"},L):null,It(L)?$.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,$.createElement("span",{className:"recharts-tooltip-item-value"},ee),$.createElement("span",{className:"recharts-tooltip-item-unit"},Y.unit||""))});return $.createElement("ul",{className:"recharts-tooltip-item-list",style:B},G)}return null},E=cb({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),T=cb({margin:0},d),_=!Re(w),O=_?w:"",I=Ie("recharts-default-tooltip",v),R=Ie("recharts-tooltip-label",b);_&&x&&h!==void 0&&h!==null&&(O=x(w,h));var D=P?{role:"status","aria-live":"assertive"}:{};return $.createElement("div",fw({className:I,style:E},D),$.createElement("p",{className:R,style:T},$.isValidElement(O)?O:"".concat(O)),A())};function Nc(t){"@babel/helpers - typeof";return Nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nc(t)}function af(t,e,r){return e=dq(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dq(t){var e=fq(t,"string");return Nc(e)=="symbol"?e:e+""}function fq(t,e){if(Nc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Nc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Gl="recharts-tooltip-wrapper",hq={visibility:"hidden"};function mq(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return Ie(Gl,af(af(af(af({},"".concat(Gl,"-right"),ue(r)&&e&&ue(e.x)&&r>=e.x),"".concat(Gl,"-left"),ue(r)&&e&&ue(e.x)&&r<e.x),"".concat(Gl,"-bottom"),ue(n)&&e&&ue(e.y)&&n>=e.y),"".concat(Gl,"-top"),ue(n)&&e&&ue(e.y)&&n<e.y))}function VN(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,i=t.offsetTopLeft,a=t.position,o=t.reverseDirection,l=t.tooltipDimension,u=t.viewBox,d=t.viewBoxDimension;if(a&&ue(a[n]))return a[n];var h=r[n]-l-i,m=r[n]+i;if(e[n])return o[n]?h:m;if(o[n]){var g=h,v=u[n];return g<v?Math.max(m,u[n]):Math.max(h,u[n])}var b=m+l,w=u[n]+d;return b>w?Math.max(h,u[n]):Math.max(m,u[n])}function pq(t){var e=t.translateX,r=t.translateY,n=t.useTranslate3d;return{transform:n?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}function gq(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.offsetTopLeft,i=t.position,a=t.reverseDirection,o=t.tooltipBox,l=t.useTranslate3d,u=t.viewBox,d,h,m;return o.height>0&&o.width>0&&r?(h=VN({allowEscapeViewBox:e,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),m=VN({allowEscapeViewBox:e,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),d=pq({translateX:h,translateY:m,useTranslate3d:l})):d=hq,{cssProperties:d,cssClasses:mq({translateX:h,translateY:m,coordinate:r})}}function gs(t){"@babel/helpers - typeof";return gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gs(t)}function UN(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function WN(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?UN(Object(r),!0).forEach(function(n){mw(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):UN(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function yq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vq(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i2(n.key),n)}}function xq(t,e,r){return e&&vq(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function bq(t,e,r){return e=ih(e),wq(t,n2()?Reflect.construct(e,r||[],ih(t).constructor):e.apply(t,r))}function wq(t,e){if(e&&(gs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sq(t)}function Sq(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n2(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(n2=function(){return!!t})()}function ih(t){return ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ih(t)}function kq(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hw(t,e)}function hw(t,e){return hw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hw(t,e)}function mw(t,e,r){return e=i2(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i2(t){var e=jq(t,"string");return gs(e)=="symbol"?e:e+""}function jq(t,e){if(gs(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(gs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var HN=1,Pq=(function(t){function e(){var r;yq(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=bq(this,e,[].concat(i)),mw(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),mw(r,"handleKeyDown",function(o){if(o.key==="Escape"){var l,u,d,h;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(u=r.props.coordinate)===null||u===void 0?void 0:u.x)!==null&&l!==void 0?l:0,y:(d=(h=r.props.coordinate)===null||h===void 0?void 0:h.y)!==null&&d!==void 0?d:0}})}}),r}return kq(e,t),xq(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>HN||Math.abs(n.height-this.state.lastBoundingBox.height)>HN)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,d=i.children,h=i.coordinate,m=i.hasPayload,g=i.isAnimationActive,v=i.offset,b=i.position,w=i.reverseDirection,x=i.useTranslate3d,k=i.viewBox,P=i.wrapperStyle,A=gq({allowEscapeViewBox:o,coordinate:h,offsetTopLeft:v,position:b,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:k}),E=A.cssClasses,T=A.cssProperties,_=WN(WN({transition:g&&a?"transform ".concat(l,"ms ").concat(u):void 0},T),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&m?"visible":"hidden",position:"absolute",top:0,left:0},P);return $.createElement("div",{tabIndex:-1,className:E,style:_,ref:function(I){n.wrapperNode=I}},d)}}])})(N.PureComponent),Tq=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ho={isSsr:Tq()};function ys(t){"@babel/helpers - typeof";return ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ys(t)}function qN(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function GN(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qN(Object(r),!0).forEach(function(n){L1(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qN(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Aq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Eq(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o2(n.key),n)}}function _q(t,e,r){return e&&Eq(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Nq(t,e,r){return e=ah(e),Oq(t,a2()?Reflect.construct(e,r||[],ah(t).constructor):e.apply(t,r))}function Oq(t,e){if(e&&(ys(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cq(t)}function Cq(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a2(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a2=function(){return!!t})()}function ah(t){return ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ah(t)}function Iq(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pw(t,e)}function pw(t,e){return pw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pw(t,e)}function L1(t,e,r){return e=o2(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o2(t){var e=Rq(t,"string");return ys(e)=="symbol"?e:e+""}function Rq(t,e){if(ys(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ys(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Mq(t){return t.dataKey}function Lq(t,e){return $.isValidElement(t)?$.cloneElement(t,e):typeof t=="function"?$.createElement(t,e):$.createElement(uq,e)}var Vt=(function(t){function e(){return Aq(this,e),Nq(this,e,arguments)}return Iq(e,t),_q(e,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,d=i.content,h=i.coordinate,m=i.filterNull,g=i.isAnimationActive,v=i.offset,b=i.payload,w=i.payloadUniqBy,x=i.position,k=i.reverseDirection,P=i.useTranslate3d,A=i.viewBox,E=i.wrapperStyle,T=b??[];m&&T.length&&(T=XD(b.filter(function(O){return O.value!=null&&(O.hide!==!0||n.props.includeHidden)}),w,Mq));var _=T.length>0;return $.createElement(Pq,{allowEscapeViewBox:o,animationDuration:l,animationEasing:u,isAnimationActive:g,active:a,coordinate:h,hasPayload:_,offset:v,position:x,reverseDirection:k,useTranslate3d:P,viewBox:A,wrapperStyle:E},Lq(d,GN(GN({},this.props),{},{payload:T})))}}])})(N.PureComponent);L1(Vt,"displayName","Tooltip");L1(Vt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ho.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var ub,KN;function Dq(){if(KN)return ub;KN=1;var t=Gn(),e=function(){return t.Date.now()};return ub=e,ub}var db,YN;function $q(){if(YN)return db;YN=1;var t=/\s/;function e(r){for(var n=r.length;n--&&t.test(r.charAt(n)););return n}return db=e,db}var fb,XN;function Fq(){if(XN)return fb;XN=1;var t=$q(),e=/^\s+/;function r(n){return n&&n.slice(0,t(n)+1).replace(e,"")}return fb=r,fb}var hb,JN;function s2(){if(JN)return hb;JN=1;var t=Fq(),e=ha(),r=Ks(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function u(d){if(typeof d=="number")return d;if(r(d))return n;if(e(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=e(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=t(d);var m=a.test(d);return m||o.test(d)?l(d.slice(2),m?2:8):i.test(d)?n:+d}return hb=u,hb}var mb,QN;function Bq(){if(QN)return mb;QN=1;var t=ha(),e=Dq(),r=s2(),n="Expected a function",i=Math.max,a=Math.min;function o(l,u,d){var h,m,g,v,b,w,x=0,k=!1,P=!1,A=!0;if(typeof l!="function")throw new TypeError(n);u=r(u)||0,t(d)&&(k=!!d.leading,P="maxWait"in d,g=P?i(r(d.maxWait)||0,u):g,A="trailing"in d?!!d.trailing:A);function E(G){var Y=h,z=m;return h=m=void 0,x=G,v=l.apply(z,Y),v}function T(G){return x=G,b=setTimeout(I,u),k?E(G):v}function _(G){var Y=G-w,z=G-x,K=u-Y;return P?a(K,g-z):K}function O(G){var Y=G-w,z=G-x;return w===void 0||Y>=u||Y<0||P&&z>=g}function I(){var G=e();if(O(G))return R(G);b=setTimeout(I,_(G))}function R(G){return b=void 0,A&&h?E(G):(h=m=void 0,v)}function D(){b!==void 0&&clearTimeout(b),x=0,h=w=m=b=void 0}function F(){return b===void 0?v:R(e())}function B(){var G=e(),Y=O(G);if(h=arguments,m=this,w=G,Y){if(b===void 0)return T(w);if(P)return clearTimeout(b),b=setTimeout(I,u),E(w)}return b===void 0&&(b=setTimeout(I,u)),v}return B.cancel=D,B.flush=F,B}return mb=o,mb}var pb,ZN;function zq(){if(ZN)return pb;ZN=1;var t=Bq(),e=ha(),r="Expected a function";function n(i,a,o){var l=!0,u=!0;if(typeof i!="function")throw new TypeError(r);return e(o)&&(l="leading"in o?!!o.leading:l,u="trailing"in o?!!o.trailing:u),t(i,a,{leading:l,maxWait:a,trailing:u})}return pb=n,pb}var Vq=zq();const l2=qe(Vq);function Oc(t){"@babel/helpers - typeof";return Oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oc(t)}function eO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function of(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?eO(Object(r),!0).forEach(function(n){Uq(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):eO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Uq(t,e,r){return e=Wq(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wq(t){var e=Hq(t,"string");return Oc(e)=="symbol"?e:e+""}function Hq(t,e){if(Oc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Oc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qq(t,e){return Xq(t)||Yq(t,e)||Kq(t,e)||Gq()}function Gq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 80In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kq(t,e){if(t){if(typeof t=="string")return tO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tO(t,e)}}function tO(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Yq(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(h){d=!0,i=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function Xq(t){if(Array.isArray(t))return t}var qr=N.forwardRef(function(t,e){var r=t.aspect,n=t.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=t.width,o=a===void 0?"100%":a,l=t.height,u=l===void 0?"100%":l,d=t.minWidth,h=d===void 0?0:d,m=t.minHeight,g=t.maxHeight,v=t.children,b=t.debounce,w=b===void 0?0:b,x=t.id,k=t.className,P=t.onResize,A=t.style,E=A===void 0?{}:A,T=N.useRef(null),_=N.useRef();_.current=P,N.useImperativeHandle(e,function(){return Object.defineProperty(T.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),T.current},configurable:!0})});var O=N.useState({containerWidth:i.width,containerHeight:i.height}),I=qq(O,2),R=I[0],D=I[1],F=N.useCallback(function(G,Y){D(function(z){var K=Math.round(G),Q=Math.round(Y);return z.containerWidth===K&&z.containerHeight===Q?z:{containerWidth:K,containerHeight:Q}})},[]);N.useEffect(function(){var G=function(Z){var ee,L=Z[0].contentRect,W=L.width,V=L.height;F(W,V),(ee=_.current)===null||ee===void 0||ee.call(_,W,V)};w>0&&(G=l2(G,w,{trailing:!0,leading:!1}));var Y=new ResizeObserver(G),z=T.current.getBoundingClientRect(),K=z.width,Q=z.height;return F(K,Q),Y.observe(T.current),function(){Y.disconnect()}},[F,w]);var B=N.useMemo(function(){var G=R.containerWidth,Y=R.containerHeight;if(G<0||Y<0)return null;pi(Ha(o)||Ha(u),`The width(%s) and height(%s) are both fixed numbers, 81 maybe you don't need to use a ResponsiveContainer.`,o,u),pi(!r||r>0,"The aspect(%s) must be greater than zero.",r);var z=Ha(o)?G:o,K=Ha(u)?Y:u;r&&r>0&&(z?K=z/r:K&&(z=K*r),g&&K>g&&(K=g)),pi(z>0||K>0,`The width(%s) and height(%s) of chart should be greater than 0, 82 please check the style of container, or the props width(%s) and height(%s), 83 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 84 height and width.`,z,K,o,u,h,m,r);var Q=!Array.isArray(v)&&mi(v.type).endsWith("Chart");return $.Children.map(v,function(q){return $.isValidElement(q)?N.cloneElement(q,of({width:z,height:K},Q?{style:of({height:"100%",width:"100%",maxHeight:K,maxWidth:z},q.props.style)}:{})):q})},[r,v,u,g,m,h,R,o]);return $.createElement("div",{id:x?"".concat(x):void 0,className:Ie("recharts-responsive-container",k),style:of(of({},E),{},{width:o,height:u,minWidth:h,minHeight:m,maxHeight:g}),ref:T},B)}),D1=function(e){return null};D1.displayName="Cell";function Cc(t){"@babel/helpers - typeof";return Cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cc(t)}function rO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function gw(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?rO(Object(r),!0).forEach(function(n){Jq(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Jq(t,e,r){return e=Qq(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qq(t){var e=Zq(t,"string");return Cc(e)=="symbol"?e:e+""}function Zq(t,e){if(Cc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Cc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Uo={widthCache:{},cacheCount:0},e8=2e3,t8={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},nO="recharts_measurement_span";function r8(t){var e=gw({},t);return Object.keys(e).forEach(function(r){e[r]||delete e[r]}),e}var dc=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||ho.isSsr)return{width:0,height:0};var n=r8(r),i=JSON.stringify({text:e,copyStyle:n});if(Uo.widthCache[i])return Uo.widthCache[i];try{var a=document.getElementById(nO);a||(a=document.createElement("span"),a.setAttribute("id",nO),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=gw(gw({},t8),n);Object.assign(a.style,o),a.textContent="".concat(e);var l=a.getBoundingClientRect(),u={width:l.width,height:l.height};return Uo.widthCache[i]=u,++Uo.cacheCount>e8&&(Uo.cacheCount=0,Uo.widthCache={}),u}catch{return{width:0,height:0}}},n8=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function Ic(t){"@babel/helpers - typeof";return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ic(t)}function oh(t,e){return s8(t)||o8(t,e)||a8(t,e)||i8()}function i8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 85In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a8(t,e){if(t){if(typeof t=="string")return iO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iO(t,e)}}function iO(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function o8(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(h){d=!0,i=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function s8(t){if(Array.isArray(t))return t}function l8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u8(n.key),n)}}function c8(t,e,r){return e&&aO(t.prototype,e),r&&aO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function u8(t){var e=d8(t,"string");return Ic(e)=="symbol"?e:e+""}function d8(t,e){if(Ic(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ic(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var oO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,sO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,f8=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,h8=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,c2={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},m8=Object.keys(c2),Yo="NaN";function p8(t,e){return t*c2[e]}var sf=(function(){function t(e,r){l8(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),r!==""&&!f8.test(r)&&(this.num=NaN,this.unit=""),m8.includes(r)&&(this.num=p8(e,r),this.unit="px")}return c8(t,[{key:"add",value:function(r){return this.unit!==r.unit?new t(NaN,""):new t(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new t(NaN,""):new t(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new t(NaN,""):new t(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new t(NaN,""):new t(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=h8.exec(r))!==null&&n!==void 0?n:[],a=oh(i,3),o=a[1],l=a[2];return new t(parseFloat(o),l??"")}}])})();function u2(t){if(t.includes(Yo))return Yo;for(var e=t;e.includes("*")||e.includes("/");){var r,n=(r=oO.exec(e))!==null&&r!==void 0?r:[],i=oh(n,4),a=i[1],o=i[2],l=i[3],u=sf.parse(a??""),d=sf.parse(l??""),h=o==="*"?u.multiply(d):u.divide(d);if(h.isNaN())return Yo;e=e.replace(oO,h.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var m,g=(m=sO.exec(e))!==null&&m!==void 0?m:[],v=oh(g,4),b=v[1],w=v[2],x=v[3],k=sf.parse(b??""),P=sf.parse(x??""),A=w==="+"?k.add(P):k.subtract(P);if(A.isNaN())return Yo;e=e.replace(sO,A.toString())}return e}var lO=/\(([^()]*)\)/;function g8(t){for(var e=t;e.includes("(");){var r=lO.exec(e),n=oh(r,2),i=n[1];e=e.replace(lO,u2(i))}return e}function y8(t){var e=t.replace(/\s+/g,"");return e=g8(e),e=u2(e),e}function v8(t){try{return y8(t)}catch{return Yo}}function gb(t){var e=v8(t.slice(5,-1));return e===Yo?"":e}var x8=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],b8=["dx","dy","angle","className","breakAll"];function yw(){return yw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
85for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yw.apply(this,arguments)}function cO(t,e){if(t==null)return{};var r=w8(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function w8(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function uO(t,e){return P8(t)||j8(t,e)||k8(t,e)||S8()}function S8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 86In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k8(t,e){if(t){if(typeof t=="string")return dO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dO(t,e)}}function dO(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function j8(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(h){d=!0,i=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function P8(t){if(Array.isArray(t))return t}var d2=/[ \f\n\r\t\v\u2028\u2029]+/,f2=function(e){var r=e.children,n=e.breakAll,i=e.style;try{var a=[];Re(r)||(n?a=r.toString().split(""):a=r.toString().split(d2));var o=a.map(function(u){return{word:u,width:dc(u,i).width}}),l=n?0:dc(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},T8=function(e,r,n,i,a){var o=e.maxLines,l=e.children,u=e.style,d=e.breakAll,h=ue(o),m=l,g=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return z.reduce(function(K,Q){var q=Q.word,Z=Q.width,ee=K[K.length-1];if(ee&&(i==null||a||ee.width+Z+n<Number(i)))ee.words.push(q),ee.width+=Z+n;else{var L={words:[q],width:Z};K.push(L)}return K},[])},v=g(r),b=function(z){return z.reduce(function(K,Q){return K.width>Q.width?K:Q})};if(!h)return v;for(var w="â¦",x=function(z){var K=m.slice(0,z),Q=f2({breakAll:d,style:u,children:K+w}).wordsWithComputedWidth,q=g(Q),Z=q.length>o||b(q).width>Number(i);return[Z,q]},k=0,P=m.length-1,A=0,E;k<=P&&A<=m.length-1;){var T=Math.floor((k+P)/2),_=T-1,O=x(_),I=uO(O,2),R=I[0],D=I[1],F=x(T),B=uO(F,1),G=B[0];if(!R&&!G&&(k=T+1),R&&G&&(P=T-1),!R&&G){E=D;break}A++}return E||v},fO=function(e){var r=Re(e)?[]:e.toString().split(d2);return[{words:r}]},A8=function(e){var r=e.width,n=e.scaleToFit,i=e.children,a=e.style,o=e.breakAll,l=e.maxLines;if((r||n)&&!ho.isSsr){var u,d,h=f2({breakAll:o,children:i,style:a});if(h){var m=h.wordsWithComputedWidth,g=h.spaceWidth;u=m,d=g}else return fO(i);return T8({breakAll:o,children:i,maxLines:l,style:a},u,d,r,n)}return fO(i)},hO="#808080",vs=function(e){var r=e.x,n=r===void 0?0:r,i=e.y,a=i===void 0?0:i,o=e.lineHeight,l=o===void 0?"1em":o,u=e.capHeight,d=u===void 0?"0.71em":u,h=e.scaleToFit,m=h===void 0?!1:h,g=e.textAnchor,v=g===void 0?"start":g,b=e.verticalAnchor,w=b===void 0?"end":b,x=e.fill,k=x===void 0?hO:x,P=cO(e,x8),A=N.useMemo(function(){return A8({breakAll:P.breakAll,children:P.children,maxLines:P.maxLines,scaleToFit:m,style:P.style,width:P.width})},[P.breakAll,P.children,P.maxLines,m,P.style,P.width]),E=P.dx,T=P.dy,_=P.angle,O=P.className,I=P.breakAll,R=cO(P,b8);if(!It(n)||!It(a))return null;var D=n+(ue(E)?E:0),F=a+(ue(T)?T:0),B;switch(w){case"start":B=gb("calc(".concat(d,")"));break;case"middle":B=gb("calc(".concat((A.length-1)/2," * -").concat(l," + (").concat(d," / 2))"));break;default:B=gb("calc(".concat(A.length-1," * -").concat(l,")"));break}var G=[];if(m){var Y=A[0].width,z=P.width;G.push("scale(".concat((ue(z)?z/Y:1)/Y,")"))}return _&&G.push("rotate(".concat(_,", ").concat(D,", ").concat(F,")")),G.length&&(R.transform=G.join(" ")),$.createElement("text",yw({},Se(R,!0),{x:D,y:F,className:Ie("recharts-text",O),textAnchor:v,fill:k.includes("url")?hO:k}),A.map(function(K,Q){var q=K.words.join(I?"":" ");return $.createElement("tspan",{x:D,dy:Q===0?B:l,key:"".concat(q,"-").concat(Q)},q)}))};function ca(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function E8(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function $1(t){let e,r,n;t.length!==2?(e=ca,r=(l,u)=>ca(t(l),u),n=(l,u)=>t(l)-u):(e=t===ca||t===E8?t:_8,r=t,n=t);function i(l,u,d=0,h=l.length){if(d<h){if(e(u,u)!==0)return h;do{const m=d+h>>>1;r(l[m],u)<0?d=m+1:h=m}while(d<h)}return d}function a(l,u,d=0,h=l.length){if(d<h){if(e(u,u)!==0)return h;do{const m=d+h>>>1;r(l[m],u)<=0?d=m+1:h=m}while(d<h)}return d}function o(l,u,d=0,h=l.length){const m=i(l,u,d,h-1);return m>d&&n(l[m-1],u)>-n(l[m],u)?m-1:m}return{left:i,center:o,right:a}}function _8(){return 0}function h2(t){return t===null?NaN:+t}function*N8(t,e){for(let r of t)r!=null&&(r=+r)>=r&&(yield r)}const O8=$1(ca),Tu=O8.right;$1(h2).center;class mO extends Map{constructor(e,r=R8){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,i]of e)this.set(n,i)}get(e){return super.get(pO(this,e))}has(e){return super.has(pO(this,e))}set(e,r){return super.set(C8(this,e),r)}delete(e){return super.delete(I8(this,e))}}function pO({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function C8({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function I8({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function R8(t){return t!==null&&typeof t=="object"?t.valueOf():t}function M8(t=ca){if(t===ca)return m2;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||n===0?n:(t(r,r)===0)-(t(e,e)===0)}}function m2(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(t<e?-1:t>e?1:0)}const L8=Math.sqrt(50),D8=Math.sqrt(10),$8=Math.sqrt(2);function sh(t,e,r){const n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=L8?10:a>=D8?5:a>=$8?2:1;let l,u,d;return i<0?(d=Math.pow(10,-i)/o,l=Math.round(t*d),u=Math.round(e*d),l/d<t&&++l,u/d>e&&--u,d=-d):(d=Math.pow(10,i)*o,l=Math.round(t/d),u=Math.round(e/d),l*d<t&&++l,u*d>e&&--u),u<l&&.5<=r&&r<2?sh(t,e,r*2):[l,u,d]}function vw(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];const n=e<t,[i,a,o]=n?sh(e,t,r):sh(t,e,r);
86if(!(a>=i))return[];const l=a-i+1,u=new Array(l);if(n)if(o<0)for(let d=0;d<l;++d)u[d]=(a-d)/-o;else for(let d=0;d<l;++d)u[d]=(a-d)*o;else if(o<0)for(let d=0;d<l;++d)u[d]=(i+d)/-o;else for(let d=0;d<l;++d)u[d]=(i+d)*o;return u}function xw(t,e,r){return e=+e,t=+t,r=+r,sh(t,e,r)[2]}function bw(t,e,r){e=+e,t=+t,r=+r;const n=e<t,i=n?xw(e,t,r):xw(t,e,r);return(n?-1:1)*(i<0?1/-i:i)}function gO(t,e){let r;for(const n of t)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function yO(t,e){let r;for(const n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function p2(t,e,r=0,n=1/0,i){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(i=i===void 0?m2:M8(i);n>r;){if(n-r>600){const u=n-r+1,d=e-r+1,h=Math.log(u),m=.5*Math.exp(2*h/3),g=.5*Math.sqrt(h*m*(u-m)/u)*(d-u/2<0?-1:1),v=Math.max(r,Math.floor(e-d*m/u+g)),b=Math.min(n,Math.floor(e+(u-d)*m/u+g));p2(t,e,v,b,i)}const a=t[e];let o=r,l=n;for(Kl(t,r,e),i(t[n],a)>0&&Kl(t,r,n);o<l;){for(Kl(t,o,l),++o,--l;i(t[o],a)<0;)++o;for(;i(t[l],a)>0;)--l}i(t[r],a)===0?Kl(t,r,l):(++l,Kl(t,l,n)),l<=e&&(r=l+1),e<=l&&(n=l-1)}return t}function Kl(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function F8(t,e,r){if(t=Float64Array.from(N8(t)),!(!(n=t.length)||isNaN(e=+e))){if(e<=0||n<2)return yO(t);if(e>=1)return gO(t);var n,i=(n-1)*e,a=Math.floor(i),o=gO(p2(t,a).subarray(0,a+1)),l=yO(t.subarray(a+1));return o+(l-o)*(i-a)}}function B8(t,e,r=h2){if(!(!(n=t.length)||isNaN(e=+e))){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t),l=+r(t[a+1],a+1,t);return o+(l-o)*(i-a)}}function z8(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,a=new Array(i);++n<i;)a[n]=t+n*r;return a}function Jr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function _i(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const ww=Symbol("implicit");function F1(){var t=new mO,e=[],r=[],n=ww;function i(a){let o=t.get(a);if(o===void 0){if(n!==ww)return n;t.set(a,o=e.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return e.slice();e=[],t=new mO;for(const o of a)t.has(o)||t.set(o,e.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return F1(e,r).unknown(n)},Jr.apply(i,arguments),i}function Rc(){var t=F1().unknown(void 0),e=t.domain,r=t.range,n=0,i=1,a,o,l=!1,u=0,d=0,h=.5;delete t.unknown;function m(){var g=e().length,v=i<n,b=v?i:n,w=v?n:i;a=(w-b)/Math.max(1,g-u+d*2),l&&(a=Math.floor(a)),b+=(w-b-a*(g-u))*h,o=a*(1-u),l&&(b=Math.round(b),o=Math.round(o));var x=z8(g).map(function(k){return b+a*k});return r(v?x.reverse():x)}return t.domain=function(g){return arguments.length?(e(g),m()):e()},t.range=function(g){return arguments.length?([n,i]=g,n=+n,i=+i,m()):[n,i]},t.rangeRound=function(g){return[n,i]=g,n=+n,i=+i,l=!0,m()},t.bandwidth=function(){return o},t.step=function(){return a},t.round=function(g){return arguments.length?(l=!!g,m()):l},t.padding=function(g){return arguments.length?(u=Math.min(1,d=+g),m()):u},t.paddingInner=function(g){return arguments.length?(u=Math.min(1,g),m()):u},t.paddingOuter=function(g){return arguments.length?(d=+g,m()):d},t.align=function(g){return arguments.length?(h=Math.max(0,Math.min(1,g)),m()):h},t.copy=function(){return Rc(e(),[n,i]).round(l).paddingInner(u).paddingOuter(d).align(h)},Jr.apply(m(),arguments)}function g2(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return g2(e())},t}function fc(){return g2(Rc.apply(null,arguments).paddingInner(1))}function B1(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function y2(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Au(){}var Mc=.7,lh=1/Mc,is="\\s*([+-]?\\d+)\\s*",Lc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$n="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",V8=/^#([0-9a-f]{3,8})$/,U8=new RegExp(`^rgb\\(${is},${is},${is}\\)$`),W8=new RegExp(`^rgb\\(${$n},${$n},${$n}\\)$`),H8=new RegExp(`^rgba\\(${is},${is},${is},${Lc}\\)$`),q8=new RegExp(`^rgba\\(${$n},${$n},${$n},${Lc}
86\\)$`),G8=new RegExp(`^hsl\\(${Lc},${$n},${$n}\\)$`),K8=new RegExp(`^hsla\\(${Lc},${$n},${$n},${Lc}\\)$`),vO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};B1(Au,Dc,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:xO,formatHex:xO,formatHex8:Y8,formatHsl:X8,formatRgb:bO,toString:bO});function xO(){return this.rgb().formatHex()}function Y8(){return this.rgb().formatHex8()}function X8(){return v2(this).formatHsl()}function bO(){return this.rgb().formatRgb()}function Dc(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=V8.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?wO(e):r===3?new vr(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?lf(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?lf(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=U8.exec(t))?new vr(e[1],e[2],e[3],1):(e=W8.exec(t))?new vr(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=H8.exec(t))?lf(e[1],e[2],e[3],e[4]):(e=q8.exec(t))?lf(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=G8.exec(t))?jO(e[1],e[2]/100,e[3]/100,1):(e=K8.exec(t))?jO(e[1],e[2]/100,e[3]/100,e[4]):vO.hasOwnProperty(t)?wO(vO[t]):t==="transparent"?new vr(NaN,NaN,NaN,0):null}function wO(t){return new vr(t>>16&255,t>>8&255,t&255,1)}function lf(t,e,r,n){return n<=0&&(t=e=r=NaN),new vr(t,e,r,n)}function J8(t){return t instanceof Au||(t=Dc(t)),t?(t=t.rgb(),new vr(t.r,t.g,t.b,t.opacity)):new vr}function Sw(t,e,r,n){return arguments.length===1?J8(t):new vr(t,e,r,n??1)}function vr(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}B1(vr,Sw,y2(Au,{brighter(t){return t=t==null?lh:Math.pow(lh,t),new vr(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Mc:Math.pow(Mc,t),new vr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new vr(Qa(this.r),Qa(this.g),Qa(this.b),ch(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:SO,formatHex:SO,formatHex8:Q8,formatRgb:kO,toString:kO}));function SO(){return`#${qa(this.r)}${qa(this.g)}${qa(this.b)}`}function Q8(){return`#${qa(this.r)}${qa(this.g)}${qa(this.b)}${qa((isNaN(this.opacity)?1:this.opacity)*255)}`}function kO(){const t=ch(this.opacity);return`${t===1?"rgb(":"rgba("}${Qa(this.r)}, ${Qa(this.g)}, ${Qa(this.b)}${t===1?")":`, ${t})`}`}function ch(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Qa(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function qa(t){return t=Qa(t),(t<16?"0":"")+t.toString(16)}function jO(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new pn(t,e,r,n)}function v2(t){if(t instanceof pn)return new pn(t.h,t.s,t.l,t.opacity);if(t instanceof Au||(t=Dc(t)),!t)return new pn;if(t instanceof pn)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=NaN,l=a-i,u=(a+i)/2;return l?(e===a?o=(r-n)/l+(r<n)*6:r===a?o=(n-e)/l+2:o=(e-r)/l+4,l/=u<.5?a+i:2-a-i,o*=60):l=u>0&&u<1?0:o,new pn(o,l,u,t.opacity)}function Z8(t,e,r,n){return arguments.length===1?v2(t):new pn(t,e,r,n??1)}function pn(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}B1(pn,Z8,y2(Au,{brighter(t){return t=t==null?lh:Math.pow(lh,t),new pn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Mc:Math.pow(Mc,t),new pn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new vr(yb(t>=240?t-240:t+120,i,n),yb(t,i,n),yb(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new pn(PO(this.h),cf(this.s),cf(this.l),ch(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=ch(this.opacity);return`${t===1?"hsl(":"hsla("}${PO(this.h)}, ${cf(this.s)*100}%, ${cf(this.l)*100}%${t===1?")":`, ${t})`}`}}));function PO(t){return t=(t||0)%360,t<0?t+360:t}
vendor: 13,225 bytes, line 86
86function cf(t){return Math.max(0,Math.min(1,t||0))}function yb(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const z1=t=>()=>t;function eG(t,e){return function(r){return t+r*e}}function tG(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function rG(t){return(t=+t)==1?x2:function(e,r){return r-e?tG(e,r,t):z1(isNaN(e)?r:e)}}function x2(t,e){var r=e-t;return r?eG(t,r):z1(isNaN(t)?e:t)}const TO=(function t(e){var r=rG(e);function n(i,a){var o=r((i=Sw(i)).r,(a=Sw(a)).r),l=r(i.g,a.g),u=r(i.b,a.b),d=x2(i.opacity,a.opacity);return function(h){return i.r=o(h),i.g=l(h),i.b=u(h),i.opacity=d(h),i+""}}return n.gamma=t,n})(1);function nG(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=t[i]*(1-a)+e[i]*a;return n}}function iG(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function aG(t,e){var r=e?e.length:0,n=t?Math.min(r,t.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Js(t[o],e[o]);for(;o<r;++o)a[o]=e[o];return function(l){for(o=0;o<n;++o)a[o]=i[o](l);return a}}function oG(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function uh(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function sG(t,e){var r={},n={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?r[i]=Js(t[i],e[i]):n[i]=e[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var kw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vb=new RegExp(kw.source,"g");function lG(t){return function(){return t}}function cG(t){return function(e){return t(e)+""}}function uG(t,e){var r=kw.lastIndex=vb.lastIndex=0,n,i,a,o=-1,l=[],u=[];for(t=t+"",e=e+"";(n=kw.exec(t))&&(i=vb.exec(e));)(a=i.index)>r&&(a=e.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,u.push({i:o,x:uh(n,i)})),r=vb.lastIndex;return r<e.length&&(a=e.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?u[0]?cG(u[0].x):lG(e):(e=u.length,function(d){for(var h=0,m;h<e;++h)l[(m=u[h]).i]=m.x(d);return l.join("")})}function Js(t,e){var r=typeof e,n;return e==null||r==="boolean"?z1(e):(r==="number"?uh:r==="string"?(n=Dc(e))?(e=n,TO):uG:e instanceof Dc?TO:e instanceof Date?oG:iG(e)?nG:Array.isArray(e)?aG:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?sG:uh)(t,e)}function V1(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function dG(t,e){e===void 0&&(e=t,t=Js);for(var r=0,n=e.length-1,i=e[0],a=new Array(n<0?0:n);r<n;)a[r]=t(i,i=e[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[l](o-l)}}function fG(t){return function(){return t}}function dh(t){return+t}var AO=[0,1];function or(t){return t}function jw(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:fG(isNaN(e)?NaN:.5)}function hG(t,e){var r;return t>e&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function mG(t,e,r){var n=t[0],i=t[1],a=e[0],o=e[1];return i<n?(n=jw(i,n),a=r(o,a)):(n=jw(n,i),a=r(a,o)),function(l){return a(n(l))}}function pG(t,e,r){var n=Math.min(t.length,e.length)-1,i=new Array(n),a=new Array(n),o=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<n;)i[o]=jw(t[o],t[o+1]),a[o]=r(e[o],e[o+1]);return function(l){var u=Tu(t,l,1,n)-1;return a[u](i[u](l))}}function Eu(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Cm(){var t=AO,e=AO,r=Js,n,i,a,o=or,l,u,d;function h(){var g=Math.min(t.length,e.length);return o!==or&&(o=hG(t[0],t[g-1])),l=g>2?pG:mG,u=d=null,m}function m(g){return g==null||isNaN(g=+g)?a:(u||(u=l(t.map(n),e,r)))(n(o(g)))}return m.invert=function(g){return o(i((d||(d=l(e,t.map(n),uh)))(g)))},m.domain=function(g){return arguments.length?(t=Array.from(g,dh),h()):t.slice()},m.range=function(g){return arguments.length?(e=Array.from(g),h()):e.slice()},m.rangeRound=function(g){return e=Array.from(g),r=V1,h()},m.clamp=function(g){return arguments.length?(o=g?!0:or,h()):o!==or},m.interpolate=function(g){return arguments.length?(r=g,h()):r},m.unknown=function(g){return arguments.length?(a=g,m):a},function(g,v){return n=g,i=v,h()}}function U1(){return Cm()(or,or)}function gG(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function fh(t,e){if(!isFinite(t)||t===0)return null;var r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function xs(t){return t=fh(Math.abs(t)),t?t[1]:NaN}function yG(t,e){return function(r,n){for(var i=r.length,a=[],o=0,l=t[0],u=0;i>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),a.push(r.substring(i-=l,i+l)),!((u+=l+1)>n));)l=t[o=(o+1)%t.length];return a.reverse().join(e)}}function vG(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var xG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $c(t){if(!(e=xG.exec(t)))throw new Error("invalid format: "+t);var e;return new W1({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}$c.prototype=W1.prototype;function W1(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}W1.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function bG(t){e:for(var e=t.length,r=1,n=-1,i;r<e;++r)switch(t[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+t[r])break e;n>0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(i+1):t}var hh;function wG(t,e){var r=fh(t,e);if(!r)return hh=void 0,t.toPrecision(e);var n=r[0],i=r[1],a=i-(hh=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+fh(t,Math.max(0,e+a-1))[0]}function EO(t,e){var r=fh(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const _O={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:gG,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>EO(t*100,e),r:EO,s:wG,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function NO(t){return t}var OO=Array.prototype.map,CO=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function SG(t){var e=t.grouping===void 0||t.thousands===void 0?NO:yG(OO.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?NO:vG(OO.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"â":t.minus+"",u=t.nan===void 0?"NaN":t.nan+"";function d(m,g){m=$c(m);var v=m.fill,b=m.align,w=m.sign,x=m.symbol,k=m.zero,P=m.width,A=m.comma,E=m.precision,T=m.trim,_=m.type;_==="n"?(A=!0,_="g"):_O[_]||(E===void 0&&(E=12),T=!0,_="g"),(k||v==="0"&&b==="=")&&(k=!0,v="0",b="=");var O=(g&&g.prefix!==void 0?g.prefix:"")+(x==="$"?r:x==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():""),I=(x==="$"?n:/[%p]/.test(_)?o:"")+(g&&g.suffix!==void 0?g.suffix:""),R=_O[_],D=/[defgprs%]/.test(_);E=E===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function F(B){var G=O,Y=I,z,K,Q;if(_==="c")Y=R(B)+Y,B="";else{B=+B;var q=B<0||1/B<0;if(B=isNaN(B)?u:R(Math.abs(B),E),T&&(B=bG(B)),q&&+B==0&&w!=="+"&&(q=!1),G=(q?w==="("?w:l:w==="-"||w==="("?"":w)+G,Y=(_==="s"&&!isNaN(B)&&hh!==void 0?CO[8+hh/3]:"")+Y+(q&&w==="("?")":""),D){for(z=-1,K=B.length;++z<K;)if(Q=B.charCodeAt(z),48>Q||Q>57){Y=(Q===46?i+B.slice(z+1):B.slice(z))+Y,B=B.slice(0,z);break}}}A&&!k&&(B=e(B,1/0));var Z=G.length+B.length+Y.length,ee=Z<P?new Array(P-Z+1).join(v):"";switch(A&&k&&(B=e(ee+B,ee.length?P-Y.length:1/0),ee=""),b){case"<":B=G+B+Y+ee;break;case"=":B=G+ee+B+Y;break;case"^":B=ee.slice(0,Z=ee.length>>1)+G+B+Y+ee.slice(Z);break;default:B=ee+G+B+Y;break}return a(B)}return F.toString=function(){return m+""},F}function h(m,g){var v=Math.max(-8,Math.min(8,Math.floor(xs(g)/3)))*3,b=Math.pow(10,-v),w=d((m=$c(m),m.type="f",m),{suffix:CO[8+v/3]});return function(x){return w(b*x)}}return{format:d,formatPrefix:h}}var uf,H1,b2;kG({thousands:",",grouping:[3],currency:["$",""]});function kG(t){return uf=SG(t),H1=uf.format,b2=uf.formatPrefix,uf}function jG(t){return Math.max(0,-xs(Math.abs(t)))}function PG(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xs(e)/3)))*3-xs(Math.abs(t)))}function TG(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,xs(e)-xs(t))+1}function w2(t,e,r,n){var i=bw(t,e,r),a;switch(n=$c(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(a=PG(i,o))&&(n.precision=a),b2(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=TG(i,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=jG(i))&&(n.precision=a-(n.type==="%")*2);break}}return H1(n)}function ma(t){var e=t.domain;return t.ticks=function(r){var n=e();return vw(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var i=e();return w2(i[0],i[i.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),i=0,a=n.length-1,o=n[i],l=n[a],u,d,h=10;for(l<o&&(d=o,o=l,l=d,d=i,i=a,a=d);h-- >0;){if(d=xw(o,l,r),d===u)return n[i]=o,n[a]=l,e(n);if(d>0)o=Math.floor(o/d)*d,l=Math.ceil(l/d)*d;else if(d<0)o=Math.ceil(o*d)/d,l=Math.floor(l*d)/d;else break;u=d}return t},t}function mh(){var t=U1();return t.copy=function(){return Eu(t,mh())},Jr.apply(t,arguments),ma(t)}function S2(t){var e;function r(n){return n==null||isNaN(n=+n)?e:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(t=Array.from(n,dh),r):t.slice()},r.unknown=function(n){return arguments.length?(e=n,r):e},r.copy=function(){return S2(t).unknown(e)},t=arguments.length?Array.from(t,dh):[0,1],ma(r)}function k2(t,e){t=t.slice();var r=0,n=t.length-1,i=t[r],a=t[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),t[r]=e.floor(i),t[n]=e.ceil(a),t}function IO(t){return Math.log(t)}function RO(t){return Math.exp(t)}function AG(t){return-Math.log(-t)}function EG(t){return-Math.exp(-t)}function _G(t){return isFinite(t)?+("1e"+t):t<0?0:t}function NG(t){return t===10?_G:t===Math.E?Math.exp:e=>Math.pow(t,e)}function OG(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function MO(t){return(e,r)=>-t(-e,r)}function q1(t){const e=t(IO,RO),r=e.domain;let n=10,i,a;function o(){return i=OG(n),a=NG(n),r()[0]<0?(i=MO(i),a=MO(a),t(AG,EG)):t(IO,RO),e}return e.base=function(l){return arguments.length?(n=+l,o()):n},e.domain=function(l){return arguments.length?(r(l),o()):r()},e.ticks=l=>{const u=r();let d=u[0],h=u[u.length-1];const m=h<d;m&&([d,h]=[h,d]);let g=i(d),v=i(h),b,w;const x=l==null?10:+l;let k=[];if(!(n%1)&&v-g<x){if(g=Math.floor(g),v=Math.ceil(v),d>0){for(;g<=v;++g)for(b=1;b<n;++b)if(w=g<0?b/a(-g):b*a(g),!(w<d)){if(w>h)break;k.push(w)}}else for(;g<=v;++g)for(b=n-1;b>=1;--b)if(w=g>0?b/a(-g):b*a(g),!(w<d)){if(w>h)break;k.push(w)}k.length*2<x&&(k=vw(d,h,x))}else k=vw(g,v,Math.min(v-g,x)).map(a);return m?k.reverse():k},e.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=$c(u)).precision==null&&(u.trim=!0),u=H1(u)),l===1/0)return u;const d=Math.max(1,n*l/e.ticks().length);return h=>{let m=h/a(Math.round(i(h)));return m*n<n-.5&&(m*=n),m<=d?u(h):""}},e.nice=()=>r(k2(r(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),e}function j2(){const t=q1(Cm()).domain([1,10]);return t.copy=()=>Eu(t,j2()).base(t.base()),Jr.apply(t,arguments),t}function LO(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function DO(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function G1(t){var e=1,r=t(LO(e),DO(e));return r.constant=function(n){return arguments.length?t(LO(e=+n),DO(e)):e},ma(r)}function P2(){var t=G1(Cm());return t.copy=function(){return Eu(t,P2()).constant(t.constant())},Jr.apply(t,arguments)}function $O(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function CG(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function IG(t){return t<0?-t*t:t*t}function K1(t){var e=t(or,or),r=1;function n(){return r===1?t(or,or):r===.5?t(CG,IG):t($O(r),$O(1/r))}return e.exponent=function(i){return arguments.length?(r=+i,n()):r},ma(e)}function Y1(){var t=K1(Cm());return t.copy=function(){return Eu(t,Y1()).exponent(t.exponent())},Jr.apply(t,arguments),t}function RG(){return Y1.apply(null,arguments).exponent(.5)}function FO(t){return Math.sign(t)*t*t}
86function MG(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function T2(){var t=U1(),e=[0,1],r=!1,n;function i(a){var o=MG(t(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return t.invert(FO(a))},i.domain=function(a){return arguments.length?(t.domain(a),i):t.domain()},i.range=function(a){return arguments.length?(t.range((e=Array.from(a,dh)).map(FO)),i):e.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(t.clamp(a),i):t.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return T2(t.domain(),e).round(r).clamp(t.clamp()).unknown(n)},Jr.apply(i,arguments),ma(i)}function A2(){var t=[],e=[],r=[],n;function i(){var o=0,l=Math.max(1,e.length);for(r=new Array(l-1);++o<l;)r[o-1]=B8(t,o/l);return a}function a(o){return o==null||isNaN(o=+o)?n:e[Tu(r,o)]}return a.invertExtent=function(o){var l=e.indexOf(o);return l<0?[NaN,NaN]:[l>0?r[l-1]:t[0],l<r.length?r[l]:t[t.length-1]]},a.domain=function(o){if(!arguments.length)return t.slice();t=[];for(let l of o)l!=null&&!isNaN(l=+l)&&t.push(l);return t.sort(ca),i()},a.range=function(o){return arguments.length?(e=Array.from(o),i()):e.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return A2().domain(t).range(e).unknown(n)},Jr.apply(a,arguments)}function E2(){var t=0,e=1,r=1,n=[.5],i=[0,1],a;function o(u){return u!=null&&u<=u?i[Tu(n,u,0,r)]:a}function l(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*e-(u-r)*t)/(r+1);return o}return o.domain=function(u){return arguments.length?([t,e]=u,t=+t,e=+e,l()):[t,e]},o.range=function(u){return arguments.length?(r=(i=Array.from(u)).length-1,l()):i.slice()},o.invertExtent=function(u){var d=i.indexOf(u);return d<0?[NaN,NaN]:d<1?[t,n[0]]:d>=r?[n[r-1],e]:[n[d-1],n[d]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return E2().domain([t,e]).range(i).unknown(a)},Jr.apply(ma(o),arguments)}function _2(){var t=[.5],e=[0,1],r,n=1;function i(a){return a!=null&&a<=a?e[Tu(t,a,0,n)]:r}return i.domain=function(a){return arguments.length?(t=Array.from(a),n=Math.min(t.length,e.length-1),i):t.slice()},i.range=function(a){return arguments.length?(e=Array.from(a),n=Math.min(t.length,e.length-1),i):e.slice()},i.invertExtent=function(a){var o=e.indexOf(a);return[t[o-1],t[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return _2().domain(t).range(e).unknown(r)},Jr.apply(i,arguments)}const xb=new Date,bb=new Date;function Lt(t,e,r,n){function i(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{const o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=(a,o)=>(e(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const u=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return u;let d;do u.push(d=new Date(+a)),e(a,l),t(a);while(d<a&&a<o);return u},i.filter=a=>Lt(o=>{if(o>=o)for(;t(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;e(o,-1),!a(o););else for(;--l>=0;)for(;e(o,1),!a(o););}),r&&(i.count=(a,o)=>(xb.setTime(+a),bb.setTime(+o),t(xb),t(bb),Math.floor(r(xb,bb))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const ph=Lt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);ph.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Lt(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):ph);ph.range;const li=1e3,Vr=li*60,ci=Vr*60,vi=ci*24,X1=vi*7,BO=vi*30,wb=vi*365,Ga=Lt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*li)},(t,e)=>(e-t)/li,t=>t.getUTCSeconds());Ga.range;const J1=Lt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*li)},(t,e)=>{t.setTime(+t+e*Vr)},(t,e)=>(e-t)/Vr,t=>t.getMinutes());J1.range;const Q1=Lt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Vr)},(t,e)=>(e-t)/Vr,t=>t.getUTCMinutes());Q1.range;const Z1=Lt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*li-t.getMinutes()*Vr)},(t,e)=>{t.setTime(+t+e*ci)},(t,e)=>(e-t)/ci,t=>t.getHours());Z1.range;const ek=Lt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ci)},(t,e)=>(e-t)/ci,t=>t.getUTCHours());ek.range;const _u=Lt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Vr)/vi,t=>t.getDate()-1);_u.range;const Im=Lt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/vi,t=>t.getUTCDate()-1);Im.range;const N2=Lt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/vi,t=>Math.floor(t/vi));N2.range;function mo(t){return Lt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Vr)/X1)}
vendor: 4,071 bytes, line 86
86const Rm=mo(0),gh=mo(1),LG=mo(2),DG=mo(3),bs=mo(4),$G=mo(5),FG=mo(6);Rm.range;gh.range;LG.range;DG.range;bs.range;$G.range;FG.range;function po(t){return Lt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/X1)}const Mm=po(0),yh=po(1),BG=po(2),zG=po(3),ws=po(4),VG=po(5),UG=po(6);Mm.range;yh.range;BG.range;zG.range;ws.range;VG.range;UG.range;const tk=Lt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());tk.range;const rk=Lt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());rk.range;const xi=Lt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());xi.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Lt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});xi.range;const bi=Lt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());bi.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Lt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});bi.range;function O2(t,e,r,n,i,a){const o=[[Ga,1,li],[Ga,5,5*li],[Ga,15,15*li],[Ga,30,30*li],[a,1,Vr],[a,5,5*Vr],[a,15,15*Vr],[a,30,30*Vr],[i,1,ci],[i,3,3*ci],[i,6,6*ci],[i,12,12*ci],[n,1,vi],[n,2,2*vi],[r,1,X1],[e,1,BO],[e,3,3*BO],[t,1,wb]];function l(d,h,m){const g=h<d;g&&([d,h]=[h,d]);const v=m&&typeof m.range=="function"?m:u(d,h,m),b=v?v.range(d,+h+1):[];return g?b.reverse():b}function u(d,h,m){const g=Math.abs(h-d)/m,v=$1(([,,x])=>x).right(o,g);if(v===o.length)return t.every(bw(d/wb,h/wb,m));if(v===0)return ph.every(Math.max(bw(d,h,m),1));const[b,w]=o[g/o[v-1][2]<o[v][2]/g?v-1:v];return b.every(w)}return[l,u]}const[WG,HG]=O2(bi,rk,Mm,N2,ek,Q1),[qG,GG]=O2(xi,tk,Rm,_u,Z1,J1);function Sb(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function kb(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Yl(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function KG(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,a=t.days,o=t.shortDays,l=t.months,u=t.shortMonths,d=Xl(i),h=Jl(i),m=Xl(a),g=Jl(a),v=Xl(o),b=Jl(o),w=Xl(l),x=Jl(l),k=Xl(u),P=Jl(u),A={a:Q,A:q,b:Z,B:ee,c:null,d:qO,e:qO,f:yK,g:AK,G:_K,H:mK,I:pK,j:gK,L:C2,m:vK,M:xK,p:L,q:W,Q:YO,s:XO,S:bK,u:wK,U:SK,V:kK,w:jK,W:PK,x:null,X:null,y:TK,Y:EK,Z:NK,"%":KO},E={a:V,A:re,b:de,B:Pe,c:null,d:GO,e:GO,f:RK,g:WK,G:qK,H:OK,I:CK,j:IK,L:R2,m:MK,M:LK,p:De,q:Oe,Q:YO,s:XO,S:DK,u:$K,U:FK,V:BK,w:zK,W:VK,x:null,X:null,y:UK,Y:HK,Z:GK,"%":KO},T={a:D,A:F,b:B,B:G,c:Y,d:WO,e:WO,f:uK,g:UO,G:VO,H:HO,I:HO,j:oK,L:cK,m:aK,M:sK,p:R,q:iK,Q:fK,s:hK,S:lK,u:ZG,U:eK,V:tK,w:QG,W:rK,x:z,X:K,y:UO,Y:VO,Z:nK,"%":dK};A.x=_(r,A),A.X=_(n,A),A.c=_(e,A),E.x=_(r,E),E.X=_(n,E),E.c=_(e,E);function _(le,we){return function(Ce){var oe=[],Xe=-1,$e=0,ht=le.length,mt,Dt,Qr;for(Ce instanceof Date||(Ce=new Date(+Ce));++Xe<ht;)le.charCodeAt(Xe)===37&&(oe.push(le.slice($e,Xe)),(Dt=zO[mt=le.charAt(++Xe)])!=null?mt=le.charAt(++Xe):Dt=mt==="e"?" ":"0",(Qr=we[mt])&&(mt=Qr(Ce,Dt)),oe.push(mt),$e=Xe+1);return oe.push(le.slice($e,Xe)),oe.join("")}}function O(le,we){return function(Ce){var oe=Yl(1900,void 0,1),Xe=I(oe,le,Ce+="",0),$e,ht;if(Xe!=Ce.length)return null;if("Q"in oe)return new Date(oe.Q);if("s"in oe)return new Date(oe.s*1e3+("L"in oe?oe.L:0));if(we&&!("Z"in oe)&&(oe.Z=0),"p"in oe&&(oe.H=oe.H%12+oe.p*12),oe.m===void 0&&(oe.m="q"in oe?oe.q:0),"V"in oe){if(oe.V<1||oe.V>53)return null;
vendor: 5,234 bytes, line 86
86"w"in oe||(oe.w=1),"Z"in oe?($e=kb(Yl(oe.y,0,1)),ht=$e.getUTCDay(),$e=ht>4||ht===0?yh.ceil($e):yh($e),$e=Im.offset($e,(oe.V-1)*7),oe.y=$e.getUTCFullYear(),oe.m=$e.getUTCMonth(),oe.d=$e.getUTCDate()+(oe.w+6)%7):($e=Sb(Yl(oe.y,0,1)),ht=$e.getDay(),$e=ht>4||ht===0?gh.ceil($e):gh($e),$e=_u.offset($e,(oe.V-1)*7),oe.y=$e.getFullYear(),oe.m=$e.getMonth(),oe.d=$e.getDate()+(oe.w+6)%7)}else("W"in oe||"U"in oe)&&("w"in oe||(oe.w="u"in oe?oe.u%7:"W"in oe?1:0),ht="Z"in oe?kb(Yl(oe.y,0,1)).getUTCDay():Sb(Yl(oe.y,0,1)).getDay(),oe.m=0,oe.d="W"in oe?(oe.w+6)%7+oe.W*7-(ht+5)%7:oe.w+oe.U*7-(ht+6)%7);return"Z"in oe?(oe.H+=oe.Z/100|0,oe.M+=oe.Z%100,kb(oe)):Sb(oe)}}function I(le,we,Ce,oe){for(var Xe=0,$e=we.length,ht=Ce.length,mt,Dt;Xe<$e;){if(oe>=ht)return-1;if(mt=we.charCodeAt(Xe++),mt===37){if(mt=we.charAt(Xe++),Dt=T[mt in zO?we.charAt(Xe++):mt],!Dt||(oe=Dt(le,Ce,oe))<0)return-1}else if(mt!=Ce.charCodeAt(oe++))return-1}return oe}function R(le,we,Ce){var oe=d.exec(we.slice(Ce));return oe?(le.p=h.get(oe[0].toLowerCase()),Ce+oe[0].length):-1}function D(le,we,Ce){var oe=v.exec(we.slice(Ce));return oe?(le.w=b.get(oe[0].toLowerCase()),Ce+oe[0].length):-1}function F(le,we,Ce){var oe=m.exec(we.slice(Ce));return oe?(le.w=g.get(oe[0].toLowerCase()),Ce+oe[0].length):-1}function B(le,we,Ce){var oe=k.exec(we.slice(Ce));return oe?(le.m=P.get(oe[0].toLowerCase()),Ce+oe[0].length):-1}function G(le,we,Ce){var oe=w.exec(we.slice(Ce));return oe?(le.m=x.get(oe[0].toLowerCase()),Ce+oe[0].length):-1}function Y(le,we,Ce){return I(le,e,we,Ce)}function z(le,we,Ce){return I(le,r,we,Ce)}function K(le,we,Ce){return I(le,n,we,Ce)}function Q(le){return o[le.getDay()]}function q(le){return a[le.getDay()]}function Z(le){return u[le.getMonth()]}function ee(le){return l[le.getMonth()]}function L(le){return i[+(le.getHours()>=12)]}function W(le){return 1+~~(le.getMonth()/3)}function V(le){return o[le.getUTCDay()]}function re(le){return a[le.getUTCDay()]}function de(le){return u[le.getUTCMonth()]}function Pe(le){return l[le.getUTCMonth()]}function De(le){return i[+(le.getUTCHours()>=12)]}function Oe(le){return 1+~~(le.getUTCMonth()/3)}return{format:function(le){var we=_(le+="",A);return we.toString=function(){return le},we},parse:function(le){var we=O(le+="",!1);return we.toString=function(){return le},we},utcFormat:function(le){var we=_(le+="",E);return we.toString=function(){return le},we},utcParse:function(le){var we=O(le+="",!0);return we.toString=function(){return le},we}}}var zO={"-":"",_:" ",0:"0"},Ut=/^\s*\d+/,YG=/^%/,XG=/[\\^$*+?|[\]().{}]/g;function Ve(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(e)+i:i)}function JG(t){return t.replace(XG,"\\$&")}function Xl(t){return new RegExp("^(?:"+t.map(JG).join("|")+")","i")}function Jl(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function QG(t,e,r){var n=Ut.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function ZG(t,e,r){var n=Ut.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function eK(t,e,r){var n=Ut.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function tK(t,e,r){var n=Ut.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function rK(t,e,r){var n=Ut.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function VO(t,e,r){var n=Ut.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function UO(t,e,r){var n=Ut.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nK(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function iK(t,e,r){var n=Ut.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function aK(t,e,r){var n=Ut.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function WO(t,e,r){var n=Ut.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function oK(t,e,r){var n=Ut.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function HO(t,e,r){var n=Ut.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function sK(t,e,r){var n=Ut.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function lK(t,e,r){var n=Ut.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function cK(t,e,r){var n=Ut.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function uK(t,e,r){var n=Ut.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function dK(t,e,r){var n=YG.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function fK(t,e,r){var n=Ut.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function hK(t,e,r){var n=Ut.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function qO(t,e){return Ve(t.getDate(),e,2)}function mK(t,e){return Ve(t.getHours(),e,2)}function pK(t,e){return Ve(t.getHours()%12||12,e,2)}function gK(t,e){return Ve(1+_u.count(xi(t),t),e,3)}function C2(t,e){return Ve(t.getMilliseconds(),e,3)}function yK(t,e){return C2(t,e)+"000"}function vK(t,e){return Ve(t.getMonth()+1,e,2)}function xK(t,e){return Ve(t.getMinutes(),e,2)}function bK(t,e){return Ve(t.getSeconds(),e,2)}function wK(t){var e=t.getDay();return e===0?7:e}function SK(t,e){return Ve(Rm.count(xi(t)-1,t),e,2)}function I2(t){var e=t.getDay();return e>=4||e===0?bs(t):bs.ceil(t)}
86function kK(t,e){return t=I2(t),Ve(bs.count(xi(t),t)+(xi(t).getDay()===4),e,2)}function jK(t){return t.getDay()}function PK(t,e){return Ve(gh.count(xi(t)-1,t),e,2)}function TK(t,e){return Ve(t.getFullYear()%100,e,2)}function AK(t,e){return t=I2(t),Ve(t.getFullYear()%100,e,2)}function EK(t,e){return Ve(t.getFullYear()%1e4,e,4)}function _K(t,e){var r=t.getDay();return t=r>=4||r===0?bs(t):bs.ceil(t),Ve(t.getFullYear()%1e4,e,4)}function NK(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ve(e/60|0,"0",2)+Ve(e%60,"0",2)}function GO(t,e){return Ve(t.getUTCDate(),e,2)}function OK(t,e){return Ve(t.getUTCHours(),e,2)}function CK(t,e){return Ve(t.getUTCHours()%12||12,e,2)}function IK(t,e){return Ve(1+Im.count(bi(t),t),e,3)}function R2(t,e){return Ve(t.getUTCMilliseconds(),e,3)}function RK(t,e){return R2(t,e)+"000"}function MK(t,e){return Ve(t.getUTCMonth()+1,e,2)}function LK(t,e){return Ve(t.getUTCMinutes(),e,2)}function DK(t,e){return Ve(t.getUTCSeconds(),e,2)}function $K(t){var e=t.getUTCDay();return e===0?7:e}function FK(t,e){return Ve(Mm.count(bi(t)-1,t),e,2)}function M2(t){var e=t.getUTCDay();return e>=4||e===0?ws(t):ws.ceil(t)}function BK(t,e){return t=M2(t),Ve(ws.count(bi(t),t)+(bi(t).getUTCDay()===4),e,2)}function zK(t){return t.getUTCDay()}function VK(t,e){return Ve(yh.count(bi(t)-1,t),e,2)}function UK(t,e){return Ve(t.getUTCFullYear()%100,e,2)}function WK(t,e){return t=M2(t),Ve(t.getUTCFullYear()%100,e,2)}function HK(t,e){return Ve(t.getUTCFullYear()%1e4,e,4)}function qK(t,e){var r=t.getUTCDay();return t=r>=4||r===0?ws(t):ws.ceil(t),Ve(t.getUTCFullYear()%1e4,e,4)}function GK(){return"+0000"}function KO(){return"%"}function YO(t){return+t}function XO(t){return Math.floor(+t/1e3)}var Wo,L2,D2;KK({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function KK(t){return Wo=KG(t),L2=Wo.format,Wo.parse,D2=Wo.utcFormat,Wo.utcParse,Wo}function YK(t){return new Date(t)}function XK(t){return t instanceof Date?+t:+new Date(+t)}function nk(t,e,r,n,i,a,o,l,u,d){var h=U1(),m=h.invert,g=h.domain,v=d(".%L"),b=d(":%S"),w=d("%I:%M"),x=d("%I %p"),k=d("%a %d"),P=d("%b %d"),A=d("%B"),E=d("%Y");function T(_){return(u(_)<_?v:l(_)<_?b:o(_)<_?w:a(_)<_?x:n(_)<_?i(_)<_?k:P:r(_)<_?A:E)(_)}return h.invert=function(_){return new Date(m(_))},h.domain=function(_){return arguments.length?g(Array.from(_,XK)):g().map(YK)},h.ticks=function(_){var O=g();return t(O[0],O[O.length-1],_??10)},h.tickFormat=function(_,O){return O==null?T:d(O)},h.nice=function(_){var O=g();return(!_||typeof _.range!="function")&&(_=e(O[0],O[O.length-1],_??10)),_?g(k2(O,_)):h},h.copy=function(){return Eu(h,nk(t,e,r,n,i,a,o,l,u,d))},h}function JK(){return Jr.apply(nk(qG,GG,xi,tk,Rm,_u,Z1,J1,Ga,L2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function QK(){return Jr.apply(nk(WG,HG,bi,rk,Mm,Im,ek,Q1,Ga,D2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Lm(){var t=0,e=1,r,n,i,a,o=or,l=!1,u;function d(m){return m==null||isNaN(m=+m)?u:o(i===0?.5:(m=(a(m)-r)*i,l?Math.max(0,Math.min(1,m)):m))}d.domain=function(m){return arguments.length?([t,e]=m,r=a(t=+t),n=a(e=+e),i=r===n?0:1/(n-r),d):[t,e]},d.clamp=function(m){return arguments.length?(l=!!m,d):l},d.interpolator=function(m){return arguments.length?(o=m,d):o};function h(m){return function(g){var v,b;return arguments.length?([v,b]=g,o=m(v,b),d):[o(0),o(1)]}}return d.range=h(Js),d.rangeRound=h(V1),d.unknown=function(m){return arguments.length?(u=m,d):u},function(m){return a=m,r=m(t),n=m(e),i=r===n?0:1/(n-r),d}}function pa(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function $2(){var t=ma(Lm()(or));return t.copy=function(){return pa(t,$2())},_i.apply(t,arguments)}function F2(){var t=q1(Lm()).domain([1,10]);return t.copy=function(){return pa(t,F2()).base(t.base())},_i.apply(t,arguments)}function B2(){var t=G1(Lm());return t.copy=function(){return pa(t,B2()).constant(t.constant())},_i.apply(t,arguments)}function ik(){var t=K1(Lm());return t.copy=function(){return pa(t,ik()).exponent(t.exponent())},_i.apply(t,arguments)}function ZK(){return ik.apply(null,arguments).exponent(.5)}function z2(){var t=[],e=or;function r(n){if(n!=null&&!isNaN(n=+n))return e((Tu(t,n,1)-1)/(t.length-1))}return r.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let i of n)i!=null&&!isNaN(i=+i)&&t.push(i);return t.sort(ca),r},r.interpolator=function(n){return arguments.length?(e=n,r):e},r.range=function(){return t.map((n,i)=>e(i/(t.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>F8(t,a/n))},r.copy=function(){return z2(e).domain(t)},_i.apply(r,arguments)}function Dm(){var t=0,e=.5,r=1,n=1,i,a,o,l,u,d=or,h,m=!1,g;function v(w){return isNaN(w=+w)?g:(w=.5+((w=+h(w))-a)*(n*w<n*a?l:u),d(m?Math.max(0,Math.min(1,w)):w))}v.domain=function(w){return arguments.length?([t,e,r]=w,i=h(t=+t),a=h(e=+e),o=h(r=+r),l=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,v):[t,e,r]},v.clamp=function(w){return arguments.length?(m=!!w,v):m},v.interpolator=function(w){return arguments.length?(d=w,v):d};function b(w){return function(x){var k,P,A;return arguments.length?([k,P,A]=x,d=dG(w,[k,P,A]),v):[d(0),d(.5),d(1)]}}return v.range=b(Js),v.rangeRound=b(V1),v.unknown=function(w){return arguments.length?(g=w,v):g},function(w){return h=w,i=w(t),a=w(e),o=w(r),l=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,v}}function V2(){var t=ma(Dm()(or));return t.copy=function(){return pa(t,V2())},_i.apply(t,arguments)}function U2(){var t=q1(Dm()).domain([.1,1,10]);return t.copy=function(){return pa(t,U2()).base(t.base())},_i.apply(t,arguments)}function W2(){var t=G1(Dm());return t.copy=function(){return pa(t,W2()).constant(t.constant())},_i.apply(t,arguments)}function ak(){var t=K1(Dm());return t.copy=function(){return pa(t,ak()).exponent(t.exponent())},_i.apply(t,arguments)}function e7(){return ak.apply(null,arguments).exponent(.5)}const JO=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Rc,scaleDiverging:V2,scaleDivergingLog:U2,scaleDivergingPow:ak,scaleDivergingSqrt:e7,scaleDivergingSymlog:W2,scaleIdentity:S2,scaleImplicit:ww,scaleLinear:mh,scaleLog:j2,scaleOrdinal:F1,scalePoint:fc,scalePow:Y1,scaleQuantile:A2,scaleQuantize:E2,scaleRadial:T2,scaleSequential:$2,scaleSequentialLog:F2,scaleSequentialPow:ik,scaleSequentialQuantile:z2,scaleSequentialSqrt:ZK,scaleSequentialSymlog:B2,scaleSqrt:RG,scaleSymlog:P2,scaleThreshold:_2,scaleTime:JK,scaleUtc:QK,tickFormat:w2},Symbol.toStringTag,{value:"Module"}));var jb,QO;function $m(){if(QO)return jb;QO=1;var t=Ks();function e(r,n,i){for(var a=-1,o=r.length;++a<o;){var l=r[a],u=n(l);if(u!=null&&(d===void 0?u===u&&!t(u):i(u,d)))var d=u,h=l}return h}return jb=e,jb}var Pb,ZO;function H2(){if(ZO)return Pb;ZO=1;function t(e,r){return e>r}return Pb=t,Pb}var Tb,eC;function t7(){if(eC)return Tb;eC=1;var t=$m(),e=H2(),r=Xs();function n(i){return i&&i.length?t(i,r,e):void 0}return Tb=n,Tb}var r7=t7();const Fm=qe(r7);var Ab,tC;function q2(){if(tC)return Ab;tC=1;function t(e,r){return e<r}return Ab=t,Ab}var Eb,rC;function n7(){if(rC)return Eb;rC=1;var t=$m(),e=q2(),r=Xs();function n(i){return i&&i.length?t(i,r,e):void 0}return Eb=n,Eb}var i7=n7();const Bm=qe(i7);var _b,nC;
vendor: 259,501 bytes, lines 86-137
86function a7(){if(nC)return _b;nC=1;var t=b1(),e=Kn(),r=t2(),n=wr();function i(a,o){var l=n(a)?t:r;return l(a,e(o,3))}return _b=i,_b}var Nb,iC;function o7(){if(iC)return Nb;iC=1;var t=ZD(),e=a7();function r(n,i){return t(e(n,i),1)}return Nb=r,Nb}var s7=o7();const l7=qe(s7);var Ob,aC;function c7(){if(aC)return Ob;aC=1;var t=I1();function e(r,n){return t(r,n)}return Ob=e,Ob}var u7=c7();const Nu=qe(u7);var Qs=1e9,d7={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},sk,st=!0,Yr="[DecimalError] ",Za=Yr+"Invalid argument: ",ok=Yr+"Exponent out of range: ",Zs=Math.floor,Ba=Math.pow,f7=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Or,zt=1e7,at=7,G2=9007199254740991,vh=Zs(G2/at),me={};me.absoluteValue=me.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t};me.comparedTo=me.cmp=function(t){var e,r,n,i,a=this;if(t=new a.constructor(t),a.s!==t.s)return a.s||-t.s;if(a.e!==t.e)return a.e>t.e^a.s<0?1:-1;for(n=a.d.length,i=t.d.length,e=0,r=n<i?n:i;e<r;++e)if(a.d[e]!==t.d[e])return a.d[e]>t.d[e]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};me.decimalPlaces=me.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*at;if(e=t.d[e],e)for(;e%10==0;e/=10)r--;return r<0?0:r};me.dividedBy=me.div=function(t){return gi(this,new this.constructor(t))};me.dividedToIntegerBy=me.idiv=function(t){var e=this,r=e.constructor;return Ze(gi(e,new r(t),0,1),r.precision)};me.equals=me.eq=function(t){return!this.cmp(t)};me.exponent=function(){return Tt(this)};me.greaterThan=me.gt=function(t){return this.cmp(t)>0};me.greaterThanOrEqualTo=me.gte=function(t){return this.cmp(t)>=0};me.isInteger=me.isint=function(){return this.e>this.d.length-2};me.isNegative=me.isneg=function(){return this.s<0};me.isPositive=me.ispos=function(){return this.s>0};me.isZero=function(){return this.s===0};me.lessThan=me.lt=function(t){return this.cmp(t)<0};me.lessThanOrEqualTo=me.lte=function(t){return this.cmp(t)<1};me.logarithm=me.log=function(t){var e,r=this,n=r.constructor,i=n.precision,a=i+5;if(t===void 0)t=new n(10);else if(t=new n(t),t.s<1||t.eq(Or))throw Error(Yr+"NaN");if(r.s<1)throw Error(Yr+(r.s?"NaN":"-Infinity"));return r.eq(Or)?new n(0):(st=!1,e=gi(Fc(r,a),Fc(t,a),a),st=!0,Ze(e,i))};me.minus=me.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?X2(e,t):K2(e,(t.s=-t.s,t))};me.modulo=me.mod=function(t){var e,r=this,n=r.constructor,i=n.precision;if(t=new n(t),!t.s)throw Error(Yr+"NaN");return r.s?(st=!1,e=gi(r,t,0,1).times(t),st=!0,r.minus(e)):Ze(new n(r),i)};me.naturalExponential=me.exp=function(){return Y2(this)};me.naturalLogarithm=me.ln=function(){return Fc(this)};me.negated=me.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t};me.plus=me.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?K2(e,t):X2(e,(t.s=-t.s,t))};me.precision=me.sd=function(t){var e,r,n,i=this;if(t!==void 0&&t!==!!t&&t!==1&&t!==0)throw Error(Za+t);if(e=Tt(i)+1,n=i.d.length-1,r=n*at+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return t&&e>r?e:r};me.squareRoot=me.sqrt=function(){var t,e,r,n,i,a,o,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(Yr+"NaN")}for(t=Tt(l),st=!1,i=Math.sqrt(+l),i==0||i==1/0?(e=Mn(l.d),(e.length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=Zs((t+1)/2)-(t<0||t%2),i==1/0?e="5e"+t:(e=i.toExponential(),e=e.slice(0,e.indexOf("e")+1)+t),n=new u(e)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(a=n,n=a.plus(gi(l,a,o+2)).times(.5),Mn(a.d).slice(0,o)===(e=Mn(n.d)).slice(0,o)){if(e=e.slice(o-3,o+1),i==o&&e=="4999"){if(Ze(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if(e!="9999")break;o+=4}return st=!0,Ze(n,r)};me.times=me.mul=function(t){var e,r,n,i,a,o,l,u,d,h=this,m=h.constructor,g=h.d,v=(t=new m(t)).d;if(!h.s||!t.s)return new m(0);for(t.s*=h.s,r=h.e+t.e,u=g.length,d=v.length,u<d&&(a=g,g=v,v=a,o=u,u=d,d=o),a=[],o=u+d,n=o;n--;)a.push(0);for(n=d;--n>=0;){for(e=0,i=u+n;i>n;)l=a[i]+v[n]*g[i-n-1]+e,a[i--]=l%zt|0,e=l/zt|0;a[i]=(a[i]+e)%zt|0}for(;!a[--o];)a.pop();return e?++r:a.shift(),t.d=a,t.e=r,st?Ze(t,m.precision):t};me.toDecimalPlaces=me.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),t===void 0?r:(Un(t,0,Qs),e===void 0?e=n.rounding:Un(e,0,8),Ze(r,t+Tt(r)+1,e))};me.toExponential=function(t,e){var r,n=this,i=n.constructor;return t===void 0?r=ao(n,!0):(Un(t,0,Qs),e===void 0?e=i.rounding:Un(e,0,8),n=Ze(new i(n),t+1,e),r=ao(n,!0,t+1)),r};me.toFixed=function(t,e){var r,n,i=this,a=i.constructor;return t===void 0?ao(i):(Un(t,0,Qs),e===void 0?e=a.rounding:Un(e,0,8),n=Ze(new a(i),t+Tt(i)+1,e),r=ao(n.abs(),!1,t+Tt(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};me.toInteger=me.toint=function(){var t=this,e=t.constructor;return Ze(new e(t),Tt(t)+1,e.rounding)};me.toNumber=function(){return+this};me.toPower=me.pow=function(t){var e,r,n,i,a,o,l=this,u=l.constructor,d=12,h=+(t=new u(t));if(!t.s)return new u(Or);if(l=new u(l),!l.s){if(t.s<1)throw Error(Yr+"Infinity");return l}if(l.eq(Or))return l;if(n=u.precision,t.eq(Or))return Ze(l,n);if(e=t.e,r=t.d.length-1,o=e>=r,a=l.s,o){if((r=h<0?-h:h)<=G2){for(i=new u(Or),e=Math.ceil(n/at+4),st=!1;r%2&&(i=i.times(l),sC(i.d,e)),r=Zs(r/2),r!==0;)l=l.times(l),sC(l.d,e);return st=!0,t.s<0?new u(Or).div(i):Ze(i,n)}}else if(a<0)throw Error(Yr+"NaN");return a=a<0&&t.d[Math.max(e,r)]&1?-1:1,l.s=1,st=!1,i=t.times(Fc(l,n+d)),st=!0,i=Y2(i),i.s=a,i};me.toPrecision=function(t,e){var r,n,i=this,a=i.constructor;return t===void 0?(r=Tt(i),n=ao(i,r<=a.toExpNeg||r>=a.toExpPos)):(Un(t,1,Qs),e===void 0?e=a.rounding:Un(e,0,8),i=Ze(new a(i),t,e),r=Tt(i),n=ao(i,t<=r||r<=a.toExpNeg,t)),n};me.toSignificantDigits=me.tosd=function(t,e){var r=this,n=r.constructor;return t===void 0?(t=n.precision,e=n.rounding):(Un(t,1,Qs),e===void 0?e=n.rounding:Un(e,0,8)),Ze(new n(r),t,e)};me.toString=me.valueOf=me.val=me.toJSON=me[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=Tt(t),r=t.constructor;return ao(t,e<=r.toExpNeg||e>=r.toExpPos)};function K2(t,e){var r,n,i,a,o,l,u,d,h=t.constructor,m=h.precision;if(!t.s||!e.s)return e.s||(e=new h(t)),st?Ze(e,m):e;if(u=t.d,d=e.d,o=t.e,i=e.e,u=u.slice(),a=o-i,a){for(a<0?(n=u,a=-a,l=d.length):(n=d,i=o,l=u.length),o=Math.ceil(m/at),l=o>l?o+1:l+1,a>l&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(l=u.length,a=d.length,l-a<0&&(a=l,n=d,d=u,u=n),r=0;a;)r=(u[--a]=u[a]+d[a]+r)/zt|0,u[a]%=zt;for(r&&(u.unshift(r),++i),l=u.length;u[--l]==0;)u.pop();return e.d=u,e.e=i,st?Ze(e,m):e}function Un(t,e,r){if(t!==~~t||t<e||t>r)throw Error(Za+t)}function Mn(t){var e,r,n,i=t.length-1,a="",o=t[0];if(i>0){for(a+=o,e=1;e<i;e++)n=t[e]+"",r=at-n.length,r&&(a+=ea(r)),a+=n;o=t[e],n=o+"",r=at-n.length,r&&(a+=ea(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var gi=(function(){function t(n,i){var a,o=0,l=n.length;for(n=n.slice();l--;)a=n[l]*i+o,n[l]=a%zt|0,o=a/zt|0;return o&&n.unshift(o),n}function e(n,i,a,o){var l,u;if(a!=o)u=a>o?1:-1;else for(l=u=0;l<a;l++)if(n[l]!=i[l]){u=n[l]>i[l]?1:-1;break}return u}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*zt+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var l,u,d,h,m,g,v,b,w,x,k,P,A,E,T,_,O,I,R=n.constructor,D=n.s==i.s?1:-1,F=n.d,B=i.d;if(!n.s)return new R(n);if(!i.s)throw Error(Yr+"Division by zero");for(u=n.e-i.e,O=B.length,T=F.length,v=new R(D),b=v.d=[],d=0;B[d]==(F[d]||0);)++d;if(B[d]>(F[d]||0)&&--u,a==null?P=a=R.precision:o?P=a+(Tt(n)-Tt(i))+1:P=a,P<0)return new R(0);if(P=P/at+2|0,d=0,O==1)for(h=0,B=B[0],P++;(d<T||h)&&P--;d++)A=h*zt+(F[d]||0),b[d]=A/B|0,h=A%B|0;else{for(h=zt/(B[0]+1)|0,h>1&&(B=t(B,h),F=t(F,h),O=B.length,T=F.length),E=O,w=F.slice(0,O),x=w.length;x<O;)w[x++]=0;I=B.slice(),I.unshift(0),_=B[0],B[1]>=zt/2&&++_;do h=0,l=e(B,w,O,x),l<0?(k=w[0],O!=x&&(k=k*zt+(w[1]||0)),h=k/_|0,h>1?(h>=zt&&(h=zt-1),m=t(B,h),g=m.length,x=w.length,l=e(m,w,g,x),l==1&&(h--,r(m,O<g?I:B,g))):(h==0&&(l=h=1),m=B.slice()),g=m.length,g<x&&m.unshift(0),r(w,m,x),l==-1&&(x=w.length,l=e(B,w,O,x),l<1&&(h++,r(w,O<x?I:B,x))),x=w.length):l===0&&(h++,w=[0]),b[d++]=h,l&&w[0]?w[x++]=F[E]||0:(w=[F[E]],x=1);while((E++<T||w[0]!==void 0)&&P--)}return b[0]||b.shift(),v.e=u,Ze(v,o?a+Tt(v)+1:a)}})();function Y2(t,e){var r,n,i,a,o,l,u=0,d=0,h=t.constructor,m=h.precision;if(Tt(t)>16)throw Error(ok+Tt(t));if(!t.s)return new h(Or);for(st=!1,l=m,o=new h(.03125);t.abs().gte(.1);)t=t.times(o),d+=5;for(n=Math.log(Ba(2,d))/Math.LN10*2+5|0,l+=n,r=i=a=new h(Or),h.precision=l;;){if(i=Ze(i.times(t),l),r=r.times(++u),o=a.plus(gi(i,r,l)),Mn(o.d).slice(0,l)===Mn(a.d).slice(0,l)){for(;d--;)a=Ze(a.times(a),l);return h.precision=m,e==null?(st=!0,Ze(a,m)):a}a=o}}function Tt(t){for(var e=t.e*at,r=t.d[0];r>=10;r/=10)e++;return e}function Cb(t,e,r){if(e>t.LN10.sd())throw st=!0,r&&(t.precision=r),Error(Yr+"LN10 precision limit exceeded");return Ze(new t(t.LN10),e)}function ea(t){for(var e="";t--;)e+="0";return e}function Fc(t,e){var r,n,i,a,o,l,u,d,h,m=1,g=10,v=t,b=v.d,w=v.constructor,x=w.precision;if(v.s<1)throw Error(Yr+(v.s?"NaN":"-Infinity"));if(v.eq(Or))return new w(0);if(e==null?(st=!1,d=x):d=e,v.eq(10))return e==null&&(st=!0),Cb(w,d);if(d+=g,w.precision=d,r=Mn(b),n=r.charAt(0),a=Tt(v),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(t),r=Mn(v.d),n=r.charAt(0),m++;a=Tt(v),n>1?(v=new w("0."+r),a++):v=new w(n+"."+r.slice(1))}else return u=Cb(w,d+2,x).times(a+""),v=Fc(new w(n+"."+r.slice(1)),d-g).plus(u),w.precision=x,e==null?(st=!0,Ze(v,x)):v;for(l=o=v=gi(v.minus(Or),v.plus(Or),d),h=Ze(v.times(v),d),i=3;;){if(o=Ze(o.times(h),d),u=l.plus(gi(o,new w(i),d)),Mn(u.d).slice(0,d)===Mn(l.d).slice(0,d))return l=l.times(2),a!==0&&(l=l.plus(Cb(w,d+2,x).times(a+""))),l=gi(l,new w(m),d),w.precision=x,e==null?(st=!0,Ze(l,x)):l;l=u,i+=2}}function oC(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;e.charCodeAt(n)===48;)++n;for(i=e.length;e.charCodeAt(i-1)===48;)--i;if(e=e.slice(n,i),e){if(i-=n,r=r-n-1,t.e=Zs(r/at),t.d=[],n=(r+1)%at,r<0&&(n+=at),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=at;n<i;)t.d.push(+e.slice(n,n+=at));e=e.slice(n),n=at-e.length}else n-=i;for(;n--;)e+="0";if(t.d.push(+e),st&&(t.e>vh||t.e<-vh))throw Error(ok+r)}else t.s=0,t.e=0,t.d=[0];return t}function Ze(t,e,r){var n,i,a,o,l,u,d,h,m=t.d;for(o=1,a=m[0];a>=10;a/=10)o++;if(n=e-o,n<0)n+=at,i=e,d=m[h=0];else{if(h=Math.ceil((n+1)/at),a=m.length,h>=a)return t;for(d=a=m[h],o=1;a>=10;a/=10)o++;n%=at,i=n-at+o}if(r!==void 0&&(a=Ba(10,o-i-1),l=d/a%10|0,u=e<0||m[h+1]!==void 0||d%a,u=r<4?(l||u)&&(r==0||r==(t.s<0?3:2)):l>5||l==5&&(r==4||u||r==6&&(n>0?i>0?d/Ba(10,o-i):0:m[h-1])%10&1||r==(t.s<0?8:7))),e<1||!m[0])return u?(a=Tt(t),m.length=1,e=e-a-1,m[0]=Ba(10,(at-e%at)%at),t.e=Zs(-e/at)||0):(m.length=1,m[0]=t.e=t.s=0),t;if(n==0?(m.length=h,a=1,h--):(m.length=h+1,a=Ba(10,at-n),m[h]=i>0?(d/Ba(10,o-i)%Ba(10,i)|0)*a:0),u)for(;;)if(h==0){(m[0]+=a)==zt&&(m[0]=1,++t.e);break}else{if(m[h]+=a,m[h]!=zt)break;m[h--]=0,a=1}for(n=m.length;m[--n]===0;)m.pop();if(st&&(t.e>vh||t.e<-vh))throw Error(ok+Tt(t));return t}function X2(t,e){var r,n,i,a,o,l,u,d,h,m,g=t.constructor,v=g.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new g(t),st?Ze(e,v):e;if(u=t.d,m=e.d,n=e.e,d=t.e,u=u.slice(),o=d-n,o){for(h=o<0,h?(r=u,o=-o,l=m.length):(r=m,n=d,l=u.length),i=Math.max(Math.ceil(v/at),l)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=u.length,l=m.length,h=i<l,h&&(l=i),i=0;i<l;i++)if(u[i]!=m[i]){h=u[i]<m[i];break}o=0}for(h&&(r=u,u=m,m=r,e.s=-e.s),l=u.length,i=m.length-l;i>0;--i)u[l++]=0;for(i=m.length;i>o;){if(u[--i]<m[i]){for(a=i;a&&u[--a]===0;)u[a]=zt-1;--u[a],u[i]+=zt}u[i]-=m[i]}for(;u[--l]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(e.d=u,e.e=n,st?Ze(e,v):e):new g(0)}function ao(t,e,r){var n,i=Tt(t),a=Mn(t.d),o=a.length;return e?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+ea(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+ea(-i-1)+a,r&&(n=r-o)>0&&(a+=ea(n))):i>=o?(a+=ea(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+ea(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=ea(n))),t.s<0?"-"+a:a}function sC(t,e){if(t.length>e)return t.length=e,!0}function J2(t){var e,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Za+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return oC(o,a.toString())}else if(typeof a!="string")throw Error(Za+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,f7.test(a))oC(o,a);else throw Error(Za+a)}if(i.prototype=me,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=J2,i.config=i.set=h7,t===void 0&&(t={}),t)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],e=0;e<n.length;)t.hasOwnProperty(r=n[e++])||(t[r]=this[r]);return i.config(t),i}function h7(t){if(!t||typeof t!="object")throw Error(Yr+"Object expected");var e,r,n,i=["precision",1,Qs,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if((n=t[r=i[e]])!==void 0)if(Zs(n)===n&&n>=i[e+1]&&n<=i[e+2])this[r]=n;else throw Error(Za+r+": "+n);if((n=t[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Za+r+": "+n);return this}var sk=J2(d7);Or=new sk(1);const Ke=sk;function m7(t){return v7(t)||y7(t)||g7(t)||p7()}function p7(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 87In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g7(t,e){if(t){if(typeof t=="string")return Pw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pw(t,e)}}function y7(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function v7(t){if(Array.isArray(t))return Pw(t)}function Pw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var x7=function(e){return e},Q2={},Z2=function(e){return e===Q2},lC=function(e){return function r(){return arguments.length===0||arguments.length===1&&Z2(arguments.length<=0?void 0:arguments[0])?r:e.apply(void 0,arguments)}},b7=function t(e,r){return e===1?r:lC(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(l){return l!==Q2}).length;return o>=e?r.apply(void 0,i):t(e-o,lC(function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];var h=i.map(function(m){return Z2(m)?u.shift():m});return r.apply(void 0,m7(h).concat(u))}))})},zm=function(e){return b7(e.length,e)},Tw=function(e,r){for(var n=[],i=e;i<r;++i)n[i-e]=i;return n},w7=zm(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(r){return e[r]}).map(t)}),S7=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!r.length)return x7;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(l,u){return u(l)},a.apply(void 0,arguments))}},Aw=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},e$=function(e){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(l,u){return l===r[u]})||(r=a,n=e.apply(void 0,a)),n}};function k7(t){var e;return t===0?e=1:e=Math.floor(new Ke(t).abs().log(10).toNumber())+1,e}function j7(t,e,r){for(var n=new Ke(t),i=0,a=[];n.lt(e)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var P7=zm(function(t,e,r){var n=+t,i=+e;return n+r*(i-n)}),T7=zm(function(t,e,r){var n=e-+t;return n=n||1/0,(r-t)/n}),A7=zm(function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))});const Vm={rangeStep:j7,getDigitCount:k7,interpolateNumber:P7,uninterpolateNumber:T7,uninterpolateTruncation:A7};function Ew(t){return N7(t)||_7(t)||t$(t)||E7()}function E7(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 88In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _7(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function N7(t){if(Array.isArray(t))return _w(t)}function Bc(t,e){return I7(t)||C7(t,e)||t$(t,e)||O7()}function O7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 89In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t$(t,e){if(t){if(typeof t=="string")return _w(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _w(t,e)}}function _w(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function C7(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=t[Symbol.iterator](),l;!(n=(l=o.next()).done)&&(r.push(l.value),!(e&&r.length===e));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function I7(t){if(Array.isArray(t))return t}function r$(t){var e=Bc(t,2),r=e[0],n=e[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function n$(t,e,r){if(t.lte(0))return new Ke(0);var n=Vm.getDigitCount(t.toNumber()),i=new Ke(10).pow(n),a=t.div(i),o=n!==1?.05:.1,l=new Ke(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=l.mul(i);return e?u:new Ke(Math.ceil(u))}function R7(t,e,r){var n=1,i=new Ke(t);if(!i.isint()&&r){var a=Math.abs(t);a<1?(n=new Ke(10).pow(Vm.getDigitCount(t)-1),i=new Ke(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ke(Math.floor(t)))}else t===0?i=new Ke(Math.floor((e-1)/2)):r||(i=new Ke(Math.floor(t)));var o=Math.floor((e-1)/2),l=S7(w7(function(u){return i.add(new Ke(u-o).mul(n)).toNumber()}),Tw);return l(0,e)}function i$(t,e,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new Ke(0),tickMin:new Ke(0),tickMax:new Ke(0)};var a=n$(new Ke(e).sub(t).div(r-1),n,i),o;t<=0&&e>=0?o=new Ke(0):(o=new Ke(t).add(e).div(2),o=o.sub(new Ke(o).mod(a)));var l=Math.ceil(o.sub(t).div(a).toNumber()),u=Math.ceil(new Ke(e).sub(o).div(a).toNumber()),d=l+u+1;return d>r?i$(t,e,r,n,i+1):(d<r&&(u=e>0?u+(r-d):u,l=e>0?l:l+(r-d)),{step:a,tickMin:o.sub(new Ke(l).mul(a)),tickMax:o.add(new Ke(u).mul(a))})}function M7(t){var e=Bc(t,2),r=e[0],n=e[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),l=r$([r,n]),u=Bc(l,2),d=u[0],h=u[1];if(d===-1/0||h===1/0){var m=h===1/0?[d].concat(Ew(Tw(0,i-1).map(function(){return 1/0}))):[].concat(Ew(Tw(0,i-1).map(function(){return-1/0})),[h]);return r>n?Aw(m):m}if(d===h)return R7(d,i,a);var g=i$(d,h,o,a),v=g.step,b=g.tickMin,w=g.tickMax,x=Vm.rangeStep(b,w.add(new Ke(.1).mul(v)),v);return r>n?Aw(x):x}function L7(t,e){var r=Bc(t,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=r$([n,i]),l=Bc(o,2),u=l[0],d=l[1];if(u===-1/0||d===1/0)return[n,i];if(u===d)return[u];var h=Math.max(e,2),m=n$(new Ke(d).sub(u).div(h-1),a,0),g=[].concat(Ew(Vm.rangeStep(new Ke(u),new Ke(d).sub(new Ke(.99).mul(m)),m)),[d]);return n>i?Aw(g):g}var D7=e$(M7),$7=e$(L7),F7="Invariant failed";function oo(t,e){throw new Error(F7)}var B7=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ss(t){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ss(t)}function xh(){return xh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xh.apply(this,arguments)}function z7(t,e){return H7(t)||W7(t,e)||U7(t,e)||V7()}function V7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 90In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U7(t,e){if(t){if(typeof t=="string")return cC(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cC(t,e)}}function cC(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function W7(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(h){d=!0,i=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function H7(t){if(Array.isArray(t))return t}function q7(t,e){if(t==null)return{};var r=G7(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function G7(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function K7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y7(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s$(n.key),n)}}function X7(t,e,r){return e&&Y7(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function J7(t,e,r){return e=bh(e),Q7(t,a$()?Reflect.construct(e,r||[],bh(t).constructor):e.apply(t,r))}function Q7(t,e){if(e&&(Ss(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Z7(t)}function Z7(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a$(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a$=function(){return!!t})()}function bh(t){return bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bh(t)}function e9(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nw(t,e)}function Nw(t,e){return Nw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nw(t,e)}function o$(t,e,r){return e=s$(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s$(t){var e=t9(t,"string");return Ss(e)=="symbol"?e:e+""}function t9(t,e){if(Ss(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ss(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Ou=(function(t){function e(){return K7(this,e),J7(this,e,arguments)}return e9(e,t),X7(e,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,l=n.dataKey,u=n.data,d=n.dataPointFormatter,h=n.xAxis,m=n.yAxis,g=q7(n,B7),v=Se(g,!1);this.props.direction==="x"&&h.type!=="number"&&oo();var b=u.map(function(w){var x=d(w,l),k=x.x,P=x.y,A=x.value,E=x.errorVal;if(!E)return null;var T=[],_,O;if(Array.isArray(E)){var I=z7(E,2);_=I[0],O=I[1]}else _=O=E;if(a==="vertical"){var R=h.scale,D=P+i,F=D+o,B=D-o,G=R(A-_),Y=R(A+O);T.push({x1:Y,y1:F,x2:Y,y2:B}),T.push({x1:G,y1:D,x2:Y,y2:D}),T.push({x1:G,y1:F,x2:G,y2:B})}else if(a==="horizontal"){var z=m.scale,K=k+i,Q=K-o,q=K+o,Z=z(A-_),ee=z(A+O);T.push({x1:Q,y1:ee,x2:q,y2:ee}),T.push({x1:K,y1:Z,x2:K,y2:ee}),T.push({x1:Q,y1:Z,x2:q,y2:Z})}return $.createElement(He,xh({className:"recharts-errorBar",key:"bar-".concat(T.map(function(L){return"".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))},v),T.map(function(L){return $.createElement("line",xh({},L,{key:"line-".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))}))});return $.createElement(He,{className:"recharts-errorBars"},b)}}])})($.Component);o$(Ou,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});o$(Ou,"displayName","ErrorBar");function zc(t){"@babel/helpers - typeof";return zc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zc(t)}function uC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ia(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?uC(Object(r),!0).forEach(function(n){r9(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uC(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function r9(t,e,r){return e=n9(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function n9(t){var e=i9(t,"string");return zc(e)=="symbol"?e:e+""}function i9(t,e){if(zc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(zc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var l$=function(e){var r=e.children,n=e.formattedGraphicalItems,i=e.legendWidth,a=e.legendContent,o=_r(r,Dn);if(!o)return null;var l=Dn.defaultProps,u=l!==void 0?Ia(Ia({},l),o.props):{},d;return o.props&&o.props.payload?d=o.props&&o.props.payload:a==="children"?d=(n||[]).reduce(function(h,m){var g=m.item,v=m.props,b=v.sectors||v.data||[];return h.concat(b.map(function(w){return{type:o.props.iconType||g.props.legendType,value:w.name,color:w.fill,payload:w}}))},[]):d=(n||[]).map(function(h){var m=h.item,g=m.type.defaultProps,v=g!==void 0?Ia(Ia({},g),m.props):{},b=v.dataKey,w=v.name,x=v.legendType,k=v.hide;return{inactive:k,dataKey:b,type:u.iconType||x||"square",color:lk(m),value:w||b,payload:v}}),Ia(Ia(Ia({},u),Dn.getWithHeight(o,i)),{},{payload:d,item:o})};function Vc(t){"@babel/helpers - typeof";return Vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vc(t)}function dC(t){return l9(t)||s9(t)||o9(t)||a9()}function a9(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 91In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o9(t,e){if(t){if(typeof t=="string")return Ow(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ow(t,e)}}function s9(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function l9(t){if(Array.isArray(t))return Ow(t)}function Ow(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function fC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function yt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fC(Object(r),!0).forEach(function(n){as(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fC(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function as(t,e,r){return e=c9(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c9(t){var e=u9(t,"string");return Vc(e)=="symbol"?e:e+""}function u9(t,e){if(Vc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Vc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function cr(t,e,r){return Re(t)||Re(e)?r:It(e)?Wr(t,e,r):Ne(e)?e(t):r}function hc(t,e,r,n){var i=l7(t,function(l){return cr(l,e)});if(r==="number"){var a=i.filter(function(l){return ue(l)||parseFloat(l)});return a.length?[Bm(a),Fm(a)]:[1/0,-1/0]}var o=n?i.filter(function(l){return!Re(l)}):i;return o.map(function(l){return It(l)||l instanceof Date?l:""})}var d9=function(e){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var u=a.range,d=0;d<l;d++){var h=d>0?i[d-1].coordinate:i[l-1].coordinate,m=i[d].coordinate,g=d>=l-1?i[0].coordinate:i[d+1].coordinate,v=void 0;if(gn(m-h)!==gn(g-m)){var b=[];if(gn(g-m)===gn(u[1]-u[0])){v=g;var w=m+u[1]-u[0];b[0]=Math.min(w,(w+h)/2),b[1]=Math.max(w,(w+h)/2)}else{v=h;var x=g+u[1]-u[0];b[0]=Math.min(m,(x+m)/2),b[1]=Math.max(m,(x+m)/2)}var k=[Math.min(m,(v+m)/2),Math.max(m,(v+m)/2)];if(e>k[0]&&e<=k[1]||e>=b[0]&&e<=b[1]){o=i[d].index;break}}else{var P=Math.min(h,g),A=Math.max(h,g);if(e>(P+m)/2&&e<=(A+m)/2){o=i[d].index;break}}}else for(var E=0;E<l;E++)if(E===0&&e<=(n[E].coordinate+n[E+1].coordinate)/2||E>0&&E<l-1&&e>(n[E].coordinate+n[E-1].coordinate)/2&&e<=(n[E].coordinate+n[E+1].coordinate)/2||E===l-1&&e>(n[E].coordinate+n[E-1].coordinate)/2){o=n[E].index;break}return o},lk=function(e){var r,n=e,i=n.type.displayName,a=(r=e.type)!==null&&r!==void 0&&r.defaultProps?yt(yt({},e.type.defaultProps),e.props):e.props,o=a.stroke,l=a.fill,u;switch(i){case"Line":u=o;break;case"Area":case"Radar":u=o&&o!=="none"?o:l;break;default:u=l;break}return u},f9=function(e){var r=e.barSize,n=e.totalSize,i=e.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},l=Object.keys(a),u=0,d=l.length;u<d;u++)for(var h=a[l[u]].stackGroups,m=Object.keys(h),g=0,v=m.length;g<v;g++){var b=h[m[g]],w=b.items,x=b.cateAxisId,k=w.filter(function(O){return mi(O.type).indexOf("Bar")>=0});if(k&&k.length){var P=k[0].type.defaultProps,A=P!==void 0?yt(yt({},P),k[0].props):k[0].props,E=A.barSize,T=A[x];o[T]||(o[T]=[]);var _=Re(E)?r:E;o[T].push({item:k[0],stackList:k.slice(1),barSize:Re(_)?void 0:yn(_,n,0)})}}return o},h9=function(e){var r=e.barGap,n=e.barCategoryGap,i=e.bandSize,a=e.sizeList,o=a===void 0?[]:a,l=e.maxBarSize,u=o.length;if(u<1)return null;var d=yn(r,i,0,!0),h,m=[];if(o[0].barSize===+o[0].barSize){var g=!1,v=i/u,b=o.reduce(function(E,T){return E+T.barSize||0},0);b+=(u-1)*d,b>=i&&(b-=(u-1)*d,d=0),b>=i&&v>0&&(g=!0,v*=.9,b=u*v);var w=(i-b)/2>>0,x={offset:w-d,size:0};h=o.reduce(function(E,T){var _={item:T.item,position:{offset:x.offset+x.size+d,size:g?v:T.barSize}},O=[].concat(dC(E),[_]);return x=O[O.length-1].position,T.stackList&&T.stackList.length&&T.stackList.forEach(function(I){O.push({item:I,position:x})}),O},m)}else{var k=yn(n,i,0,!0);i-2*k-(u-1)*d<=0&&(d=0);var P=(i-2*k-(u-1)*d)/u;P>1&&(P>>=0);var A=l===+l?Math.min(P,l):P;h=o.reduce(function(E,T,_){var O=[].concat(dC(E),[{item:T.item,position:{offset:k+(P+d)*_+(P-A)/2,size:A}}]);return T.stackList&&T.stackList.length&&T.stackList.forEach(function(I){O.push({item:I,position:O[O.length-1].position})}),O},m)}return h},m9=function(e,r,n,i){var a=n.children,o=n.width,l=n.margin,u=o-(l.left||0)-(l.right||0),d=l$({children:a,legendWidth:u});if(d){var h=i||{},m=h.width,g=h.height,v=d.align,b=d.verticalAlign,w=d.layout;if((w==="vertical"||w==="horizontal"&&b==="middle")&&v!=="center"&&ue(e[v]))return yt(yt({},e),{},as({},v,e[v]+(m||0)));if((w==="horizontal"||w==="vertical"&&v==="center")&&b!=="middle"&&ue(e[b]))return yt(yt({},e),{},as({},b,e[b]+(g||0)))}return e},p9=function(e,r,n){return Re(r)?!0:e==="horizontal"?r==="yAxis":e==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},c$=function(e,r,n,i,a){var o=r.props.children,l=Hr(o,Ou).filter(function(d){return p9(i,a,d.props.direction)});if(l&&l.length){var u=l.map(function(d){return d.props.dataKey});return e.reduce(function(d,h){var m=cr(h,n);if(Re(m))return d;var g=Array.isArray(m)?[Bm(m),Fm(m)]:[m,m],v=u.reduce(function(b,w){var x=cr(h,w,0),k=g[0]-Math.abs(Array.isArray(x)?x[0]:x),P=g[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(k,b[0]),Math.max(P,b[1])]},[1/0,-1/0]);return[Math.min(v[0],d[0]),Math.max(v[1],d[1])]},[1/0,-1/0])}return null},g9=function(e,r,n,i,a){var o=r.map(function(l){return c$(e,l,n,a,i)}).filter(function(l){return!Re(l)});return o&&o.length?o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]):null},u$=function(e,r,n,i,a){var o=r.map(function(u){var d=u.props.dataKey;return n==="number"&&d&&c$(e,u,d,i)||hc(e,d,n,a)});if(n==="number")return o.reduce(function(u,d){return[Math.min(u[0],d[0]),Math.max(u[1],d[1])]},[1/0,-1/0]);var l={};return o.reduce(function(u,d){for(var h=0,m=d.length;h<m;h++)l[d[h]]||(l[d[h]]=!0,u.push(d[h]));return u},[])},d$=function(e,r){return e==="horizontal"&&r==="xAxis"||e==="vertical"&&r==="yAxis"||e==="centric"&&r==="angleAxis"||e==="radial"&&r==="radiusAxis"},f$=function(e,r,n,i){if(i)return e.map(function(u){return u.coordinate});var a,o,l=e.map(function(u){return u.coordinate===r&&(a=!0),u.coordinate===n&&(o=!0),u.coordinate});return a||l.push(r),o||l.push(n),l},ui=function(e,r,n){if(!e)return null;var i=e.scale,a=e.duplicateDomain,o=e.type,l=e.range,u=e.realScaleType==="scaleBand"?i.bandwidth()/2:2,d=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/u:0;if(d=e.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?gn(l[0]-l[1])*2*d:d,r&&(e.ticks||e.niceTicks)){var h=(e.ticks||e.niceTicks).map(function(m){var g=a?a.indexOf(m):m;return{coordinate:i(g)+d,value:m,offset:d}});return h.filter(function(m){return!ku(m.coordinate)})}return e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(m,g){return{coordinate:i(m)+d,value:m,index:g,offset:d}}):i.ticks&&!n?i.ticks(e.tickCount).map(function(m){return{coordinate:i(m)+d,value:m,offset:d}}):i.domain().map(function(m,g){return{coordinate:i(m)+d,value:a?a[m]:m,index:g,offset:d}})},Ib=new WeakMap,df=function(e,r){if(typeof r!="function")return e;Ib.has(e)||Ib.set(e,new WeakMap);var n=Ib.get(e);if(n.has(r))return n.get(r);var i=function(){e.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},h$=function(e,r,n){var i=e.scale,a=e.type,o=e.layout,l=e.axisType;if(i==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Rc(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:mh(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:fc(),realScaleType:"point"}:a==="category"?{scale:Rc(),realScaleType:"band"}:{scale:mh(),realScaleType:"linear"};if(io(i)){var u="scale".concat(Pm(i));return{scale:(JO[u]||fc)(),realScaleType:JO[u]?u:"point"}}return Ne(i)?{scale:i}:{scale:fc(),realScaleType:"point"}},hC=1e-4,m$=function(e){var r=e.domain();if(!(!r||r.length<=2)){var n=r.length,i=e.range(),a=Math.min(i[0],i[1])-hC,o=Math.max(i[0],i[1])+hC,l=e(r[0]),u=e(r[n-1]);(l<a||l>o||u<a||u>o)&&e.domain([r[0],r[n-1]])}},y9=function(e,r){if(!e)return null;for(var n=0,i=e.length;n<i;n++)if(e[n].item===r)return e[n].position;return null},v9=function(e,r){if(!r||r.length!==2||!ue(r[0])||!ue(r[1]))return e;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[e[0],e[1]];return(!ue(e[0])||e[0]<n)&&(a[0]=n),(!ue(e[1])||e[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},x9=function(e){var r=e.length;if(!(r<=0))for(var n=0,i=e[0].length;n<i;++n)for(var a=0,o=0,l=0;l<r;++l){var u=ku(e[l][n][1])?e[l][n][0]:e[l][n][1];u>=0?(e[l][n][0]=a,e[l][n][1]=a+u,a=e[l][n][1]):(e[l][n][0]=o,e[l][n][1]=o+u,o=e[l][n][1])}},b9=function(e){var r=e.length;if(!(r<=0))for(var n=0,i=e[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var l=ku(e[o][n][1])?e[o][n][0]:e[o][n][1];l>=0?(e[o][n][0]=a,e[o][n][1]=a+l,a=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}},w9={sign:x9,expand:l6,none:hs,silhouette:c6,wiggle:u6,positive:b9},S9=function(e,r,n){var i=r.map(function(l){return l.props.dataKey}),a=w9[n],o=s6().keys(i).value(function(l,u){return+cr(l,u,0)}).order(sw).offset(a);return o(e)},k9=function(e,r,n,i,a,o){if(!e)return null;var l=o?r.reverse():r,u={},d=l.reduce(function(m,g){var v,b=(v=g.type)!==null&&v!==void 0&&v.defaultProps?yt(yt({},g.type.defaultProps),g.props):g.props,w=b.stackId,x=b.hide;if(x)return m;var k=b[n],P=m[k]||{hasStack:!1,stackGroups:{}};if(It(w)){var A=P.stackGroups[w]||{numericAxisId:n,cateAxisId:i,items:[]};A.items.push(g),P.hasStack=!0,P.stackGroups[w]=A}else P.stackGroups[ju("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[g]};return yt(yt({},m),{},as({},k,P))},u),h={};return Object.keys(d).reduce(function(m,g){var v=d[g];if(v.hasStack){var b={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(w,x){var k=v.stackGroups[x];return yt(yt({},w),{},as({},x,{numericAxisId:n,cateAxisId:i,items:k.items,stackedData:S9(e,k.items,a)}))},b)}return yt(yt({},m),{},as({},g,v))},h)},p$=function(e,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,l=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var d=e.domain();if(!d.length)return null;var h=D7(d,a,l);return e.domain([Bm(h),Fm(h)]),{niceTicks:h}}if(a&&i==="number"){var m=e.domain(),g=$7(m,a,l);return{niceTicks:g}}return null};function mC(t){var e=t.axis,r=t.ticks,n=t.bandSize,i=t.entry,a=t.index,o=t.dataKey;if(e.type==="category"){if(!e.allowDuplicatedCategory&&e.dataKey&&!Re(i[e.dataKey])){var l=Yf(r,"value",i[e.dataKey]);if(l)return l.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var u=cr(i,Re(o)?e.dataKey:o);return Re(u)?null:e.scale(u)}var pC=function(e){var r=e.axis,n=e.ticks,i=e.offset,a=e.bandSize,o=e.entry,l=e.index;if(r.type==="category")return n[l]?n[l].coordinate+i:null;var u=cr(o,r.dataKey,r.domain[l]);return Re(u)?null:r.scale(u)-a/2+i},j9=function(e){var r=e.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},P9=function(e,r){var n,i=(n=e.type)!==null&&n!==void 0&&n.defaultProps?yt(yt({},e.type.defaultProps),e.props):e.props,a=i.stackId;if(It(a)){var o=r[a];if(o){var l=o.items.indexOf(e);return l>=0?o.stackedData[l]:null}}return null},T9=function(e){return e.reduce(function(r,n){return[Bm(n.concat([r[0]]).filter(ue)),Fm(n.concat([r[1]]).filter(ue))]},[1/0,-1/0])},g$=function(e,r,n){return Object.keys(e).reduce(function(i,a){var o=e[a],l=o.stackedData,u=l.reduce(function(d,h){var m=T9(h.slice(r,n+1));return[Math.min(d[0],m[0]),Math.max(d[1],m[1])]},[1/0,-1/0]);return[Math.min(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},gC=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,yC=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Cw=function(e,r,n){if(Ne(e))return e(r,n);if(!Array.isArray(e))return r;var i=[];if(ue(e[0]))i[0]=n?e[0]:Math.min(e[0],r[0]);else if(gC.test(e[0])){var a=+gC.exec(e[0])[1];i[0]=r[0]-a}else Ne(e[0])?i[0]=e[0](r[0]):i[0]=r[0];if(ue(e[1]))i[1]=n?e[1]:Math.max(e[1],r[1]);else if(yC.test(e[1])){var o=+yC.exec(e[1])[1];i[1]=r[1]+o}else Ne(e[1])?i[1]=e[1](r[1]):i[1]=r[1];return i},wh=function(e,r,n){if(e&&e.scale&&e.scale.bandwidth){var i=e.scale.bandwidth();if(!n||i>0)return i}if(e&&r&&r.length>=2){for(var a=M1(r,function(m){return m.coordinate}),o=1/0,l=1,u=a.length;l<u;l++){var d=a[l],h=a[l-1];o=Math.min((d.coordinate||0)-(h.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},vC=function(e,r,n){return!e||!e.length||Nu(e,Wr(n,"type.defaultProps.domain"))?r:e},y$=function(e,r){var n=e.type.defaultProps?yt(yt({},e.type.defaultProps),e.props):e.props,i=n.dataKey,a=n.name,o=n.unit,l=n.formatter,u=n.tooltipType,d=n.chartType,h=n.hide;return yt(yt({},Se(e,!1)),{},{dataKey:i,unit:o,formatter:l,name:a||i,color:lk(e),value:cr(r,i),type:u,payload:r,chartType:d,hide:h})};function Uc(t){"@babel/helpers - typeof";return Uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uc(t)}function xC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ai(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xC(Object(r),!0).forEach(function(n){v$(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xC(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function v$(t,e,r){return e=A9(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function A9(t){var e=E9(t,"string");return Uc(e)=="symbol"?e:e+""}function E9(t,e){if(Uc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Uc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _9(t,e){return I9(t)||C9(t,e)||O9(t,e)||N9()}function N9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 92In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O9(t,e){if(t){if(typeof t=="string")return bC(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bC(t,e)}}function bC(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function C9(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(h){d=!0,i=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function I9(t){if(Array.isArray(t))return t}var Sh=Math.PI/180,R9=function(e){return e*180/Math.PI},Ye=function(e,r,n,i){return{x:e+Math.cos(-Sh*i)*n,y:r+Math.sin(-Sh*i)*n}},M9=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},L9=function(e,r,n,i,a){var o=e.width,l=e.height,u=e.startAngle,d=e.endAngle,h=yn(e.cx,o,o/2),m=yn(e.cy,l,l/2),g=M9(o,l,n),v=yn(e.innerRadius,g,0),b=yn(e.outerRadius,g,g*.8),w=Object.keys(r);return w.reduce(function(x,k){var P=r[k],A=P.domain,E=P.reversed,T;if(Re(P.range))i==="angleAxis"?T=[u,d]:i==="radiusAxis"&&(T=[v,b]),E&&(T=[T[1],T[0]]);else{T=P.range;var _=T,O=_9(_,2);u=O[0],d=O[1]}var I=h$(P,a),R=I.realScaleType,D=I.scale;D.domain(A).range(T),m$(D);var F=p$(D,ai(ai({},P),{},{realScaleType:R})),B=ai(ai(ai({},P),F),{},{range:T,radius:b,realScaleType:R,scale:D,cx:h,cy:m,innerRadius:v,outerRadius:b,startAngle:u,endAngle:d});return ai(ai({},x),{},v$({},k,B))},{})},D9=function(e,r){var n=e.x,i=e.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},$9=function(e,r){var n=e.x,i=e.y,a=r.cx,o=r.cy,l=D9({x:n,y:i},{x:a,y:o});if(l<=0)return{radius:l};var u=(n-a)/l,d=Math.acos(u);return i>o&&(d=2*Math.PI-d),{radius:l,angle:R9(d),angleInRadian:d}},F9=function(e){var r=e.startAngle,n=e.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},B9=function(e,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),l=Math.min(a,o);return e+l*360},wC=function(e,r){var n=e.x,i=e.y,a=$9({x:n,y:i},r),o=a.radius,l=a.angle,u=r.innerRadius,d=r.outerRadius;if(o<u||o>d)return!1;if(o===0)return!0;var h=F9(r),m=h.startAngle,g=h.endAngle,v=l,b;if(m<=g){for(;v>g;)v-=360;for(;v<m;)v+=360;b=v>=m&&v<=g}else{for(;v>m;)v-=360;for(;v<g;)v+=360;b=v>=g&&v<=m}return b?ai(ai({},r),{},{radius:o,angle:B9(v,r)}):null},x$=function(e){return!N.isValidElement(e)&&!Ne(e)&&typeof e!="boolean"?e.className:""};function Wc(t){"@babel/helpers - typeof";return Wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wc(t)}var z9=["offset"];function V9(t){return q9(t)||H9(t)||W9(t)||U9()}function U9(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 93In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W9(t,e){if(t){if(typeof t=="string")return Iw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Iw(t,e)}}function H9(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function q9(t){if(Array.isArray(t))return Iw(t)}function Iw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function G9(t,e){if(t==null)return{};var r=K9(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function K9(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function SC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ot(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?SC(Object(r),!0).forEach(function(n){Y9(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):SC(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Y9(t,e,r){return e=X9(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function X9(t){var e=J9(t,"string");return Wc(e)=="symbol"?e:e+""}function J9(t,e){if(Wc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Wc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hc(){return Hc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hc.apply(this,arguments)}var Q9=function(e){var r=e.value,n=e.formatter,i=Re(e.children)?r:e.children;return Ne(n)?n(i):i},Z9=function(e,r){var n=gn(r-e),i=Math.min(Math.abs(r-e),360);return n*i},eY=function(e,r,n){var i=e.position,a=e.viewBox,o=e.offset,l=e.className,u=a,d=u.cx,h=u.cy,m=u.innerRadius,g=u.outerRadius,v=u.startAngle,b=u.endAngle,w=u.clockWise,x=(m+g)/2,k=Z9(v,b),P=k>=0?1:-1,A,E;i==="insideStart"?(A=v+P*o,E=w):i==="insideEnd"?(A=b-P*o,E=!w):i==="end"&&(A=b+P*o,E=w),E=k<=0?E:!E;var T=Ye(d,h,x,A),_=Ye(d,h,x,A+(E?1:-1)*359),O="M".concat(T.x,",").concat(T.y,` 94 A`).concat(x,",").concat(x,",0,1,").concat(E?0:1,`, 95 `).concat(_.x,",").concat(_.y),I=Re(e.id)?ju("recharts-radial-line-"):e.id;return $.createElement("text",Hc({},n,{dominantBaseline:"central",className:Ie("recharts-radial-bar-label",l)}),$.createElement("defs",null,$.createElement("path",{id:I,d:O})),$.createElement("textPath",{xlinkHref:"#".concat(I)},r))},tY=function(e){var r=e.viewBox,n=e.offset,i=e.position,a=r,o=a.cx,l=a.cy,u=a.innerRadius,d=a.outerRadius,h=a.startAngle,m=a.endAngle,g=(h+m)/2;if(i==="outside"){var v=Ye(o,l,d+n,g),b=v.x,w=v.y;return{x:b,y:w,textAnchor:b>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var x=(u+d)/2,k=Ye(o,l,x,g),P=k.x,A=k.y;return{x:P,y:A,textAnchor:"middle",verticalAnchor:"middle"}},rY=function(e){var r=e.viewBox,n=e.parentViewBox,i=e.offset,a=e.position,o=r,l=o.x,u=o.y,d=o.width,h=o.height,m=h>=0?1:-1,g=m*i,v=m>0?"end":"start",b=m>0?"start":"end",w=d>=0?1:-1,x=w*i,k=w>0?"end":"start",P=w>0?"start":"end";if(a==="top"){var A={x:l+d/2,y:u-m*i,textAnchor:"middle",verticalAnchor:v};return Ot(Ot({},A),n?{height:Math.max(u-n.y,0),width:d}:{})}if(a==="bottom"){var E={x:l+d/2,y:u+h+g,textAnchor:"middle",verticalAnchor:b};return Ot(Ot({},E),n?{height:Math.max(n.y+n.height-(u+h),0),width:d}:{})}if(a==="left"){var T={x:l-x,y:u+h/2,textAnchor:k,verticalAnchor:"middle"};return Ot(Ot({},T),n?{width:Math.max(T.x-n.x,0),height:h}:{})}if(a==="right"){var _={x:l+d+x,y:u+h/2,textAnchor:P,verticalAnchor:"middle"};return Ot(Ot({},_),n?{width:Math.max(n.x+n.width-_.x,0),height:h}:{})}var O=n?{width:d,height:h}:{};return a==="insideLeft"?Ot({x:l+x,y:u+h/2,textAnchor:P,verticalAnchor:"middle"},O):a==="insideRight"?Ot({x:l+d-x,y:u+h/2,textAnchor:k,verticalAnchor:"middle"},O):a==="insideTop"?Ot({x:l+d/2,y:u+g,textAnchor:"middle",verticalAnchor:b},O):a==="insideBottom"?Ot({x:l+d/2,y:u+h-g,textAnchor:"middle",verticalAnchor:v},O):a==="insideTopLeft"?Ot({x:l+x,y:u+g,textAnchor:P,verticalAnchor:b},O):a==="insideTopRight"?Ot({x:l+d-x,y:u+g,textAnchor:k,verticalAnchor:b},O):a==="insideBottomLeft"?Ot({x:l+x,y:u+h-g,textAnchor:P,verticalAnchor:v},O):a==="insideBottomRight"?Ot({x:l+d-x,y:u+h-g,textAnchor:k,verticalAnchor:v},O):Ys(a)&&(ue(a.x)||Ha(a.x))&&(ue(a.y)||Ha(a.y))?Ot({x:l+yn(a.x,d),y:u+yn(a.y,h),textAnchor:"end",verticalAnchor:"end"},O):Ot({x:l+d/2,y:u+h/2,textAnchor:"middle",verticalAnchor:"middle"},O)},nY=function(e){return"cx"in e&&ue(e.cx)};function Kt(t){var e=t.offset,r=e===void 0?5:e,n=G9(t,z9),i=Ot({offset:r},n),a=i.viewBox,o=i.position,l=i.value,u=i.children,d=i.content,h=i.className,m=h===void 0?"":h,g=i.textBreakAll;if(!a||Re(l)&&Re(u)&&!N.isValidElement(d)&&!Ne(d))return null;if(N.isValidElement(d))return N.cloneElement(d,i);var v;if(Ne(d)){if(v=N.createElement(d,i),N.isValidElement(v))return v}else v=Q9(i);var b=nY(a),w=Se(i,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return eY(i,v,w);var x=b?tY(i):rY(i);return $.createElement(vs,Hc({className:Ie("recharts-label",m)},w,x,{breakAll:g}),v)}Kt.displayName="Label";var b$=function(e){var r=e.cx,n=e.cy,i=e.angle,a=e.startAngle,o=e.endAngle,l=e.r,u=e.radius,d=e.innerRadius,h=e.outerRadius,m=e.x,g=e.y,v=e.top,b=e.left,w=e.width,x=e.height,k=e.clockWise,P=e.labelViewBox;if(P)return P;if(ue(w)&&ue(x)){if(ue(m)&&ue(g))return{x:m,y:g,width:w,height:x};if(ue(v)&&ue(b))return{x:v,y:b,width:w,height:x}}return ue(m)&&ue(g)?{x:m,y:g,width:0,height:0}:ue(r)&&ue(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:d||0,outerRadius:h||u||l||0,clockWise:k}:e.viewBox?e.viewBox:{}},iY=function(e,r){return e?e===!0?$.createElement(Kt,{key:"label-implicit",viewBox:r}):It(e)?$.createElement(Kt,{key:"label-implicit",viewBox:r,value:e}):N.isValidElement(e)?e.type===Kt?N.cloneElement(e,{key:"label-implicit",viewBox:r}):$.createElement(Kt,{key:"label-implicit",content:e,viewBox:r}):Ne(e)?$.createElement(Kt,{key:"label-implicit",content:e,viewBox:r}):Ys(e)?$.createElement(Kt,Hc({viewBox:r},e,{key:"label-implicit"})):null:null},aY=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var i=e.children,a=b$(e),o=Hr(i,Kt).map(function(u,d){return N.cloneElement(u,{viewBox:r||a,key:"label-".concat(d)})});if(!n)return o;var l=iY(e.label,r||a);return[l].concat(V9(o))};Kt.parseViewBox=b$;Kt.renderCallByParent=aY;var Rb,kC;function oY(){if(kC)return Rb;kC=1;function t(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}return Rb=t,Rb}var sY=oY();const w$=qe(sY);function qc(t){"@babel/helpers - typeof";return qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qc(t)}var lY=["valueAccessor"],cY=["data","dataKey","clockWise","id","textBreakAll"];function uY(t){return mY(t)||hY(t)||fY(t)||dY()}function dY(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 96In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fY(t,e){if(t){if(typeof t=="string")return Rw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rw(t,e)}}function hY(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function mY(t){if(Array.isArray(t))return Rw(t)}function Rw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function kh(){return kh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},kh.apply(this,arguments)}function jC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function PC(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?jC(Object(r),!0).forEach(function(n){pY(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jC(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function pY(t,e,r){return e=gY(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gY(t){var e=yY(t,"string");return qc(e)=="symbol"?e:e+""}function yY(t,e){if(qc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(qc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function TC(t,e){if(t==null)return{};var r=vY(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function vY(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var xY=function(e){return Array.isArray(e.value)?w$(e.value):e.value};function yi(t){var e=t.valueAccessor,r=e===void 0?xY:e,n=TC(t,lY),i=n.data,a=n.dataKey,o=n.clockWise,l=n.id,u=n.textBreakAll,d=TC(n,cY);return!i||!i.length?null:$.createElement(He,{className:"recharts-label-list"},i.map(function(h,m){var g=Re(a)?r(h,m):cr(h&&h.payload,a),v=Re(l)?{}:{id:"".concat(l,"-").concat(m)};return $.createElement(Kt,kh({},Se(h,!0),d,v,{parentViewBox:h.parentViewBox,value:g,textBreakAll:u,viewBox:Kt.parseViewBox(Re(o)?h:PC(PC({},h),{},{clockWise:o})),key:"label-".concat(m),index:m}))}))}yi.displayName="LabelList";function bY(t,e){return t?t===!0?$.createElement(yi,{key:"labelList-implicit",data:e}):$.isValidElement(t)||Ne(t)?$.createElement(yi,{key:"labelList-implicit",data:e,content:t}):Ys(t)?$.createElement(yi,kh({data:e},t,{key:"labelList-implicit"})):null:null}function wY(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var n=t.children,i=Hr(n,yi).map(function(o,l){return N.cloneElement(o,{data:e,key:"labelList-".concat(l)})});if(!r)return i;var a=bY(t.label,e);return[a].concat(uY(i))}yi.renderCallByParent=wY;function Gc(t){"@babel/helpers - typeof";return Gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gc(t)}function Mw(){return Mw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Mw.apply(this,arguments)}function AC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function EC(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?AC(Object(r),!0).forEach(function(n){SY(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):AC(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function SY(t,e,r){return e=kY(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kY(t){var e=jY(t,"string");return Gc(e)=="symbol"?e:e+""}function jY(t,e){if(Gc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Gc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var PY=function(e,r){var n=gn(r-e),i=Math.min(Math.abs(r-e),359.999);return n*i},ff=function(e){var r=e.cx,n=e.cy,i=e.radius,a=e.angle,o=e.sign,l=e.isExternal,u=e.cornerRadius,d=e.cornerIsExternal,h=u*(l?1:-1)+i,m=Math.asin(u/h)/Sh,g=d?a:a+o*m,v=Ye(r,n,h,g),b=Ye(r,n,i,g),w=d?a-o*m:a,x=Ye(r,n,h*Math.cos(m*Sh),w);return{center:v,circleTangency:b,lineTangency:x,theta:m}},S$=function(e){var r=e.cx,n=e.cy,i=e.innerRadius,a=e.outerRadius,o=e.startAngle,l=e.endAngle,u=PY(o,l),d=o+u,h=Ye(r,n,a,o),m=Ye(r,n,a,d),g="M ".concat(h.x,",").concat(h.y,` 97 A `).concat(a,",").concat(a,`,0, 98 `).concat(+(Math.abs(u)>180),",").concat(+(o>d),`, 99 `).concat(m.x,",").concat(m.y,` 100 `);if(i>0){var v=Ye(r,n,i,o),b=Ye(r,n,i,d);g+="L ".concat(b.x,",").concat(b.y,` 101 A `).concat(i,",").concat(i,`,0, 102 `).concat(+(Math.abs(u)>180),",").concat(+(o<=d),`, 103 `).concat(v.x,",").concat(v.y," Z")}else g+="L ".concat(r,",").concat(n," Z");return g},TY=function(e){var r=e.cx,n=e.cy,i=e.innerRadius,a=e.outerRadius,o=e.cornerRadius,l=e.forceCornerRadius,u=e.cornerIsExternal,d=e.startAngle,h=e.endAngle,m=gn(h-d),g=ff({cx:r,cy:n,radius:a,angle:d,sign:m,cornerRadius:o,cornerIsExternal:u}),v=g.circleTangency,b=g.lineTangency,w=g.theta,x=ff({cx:r,cy:n,radius:a,angle:h,sign:-m,cornerRadius:o,cornerIsExternal:u}),k=x.circleTangency,P=x.lineTangency,A=x.theta,E=u?Math.abs(d-h):Math.abs(d-h)-w-A;if(E<0)return l?"M ".concat(b.x,",").concat(b.y,` 104 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 105 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 106 `):S$({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:d,endAngle:h});var T="M ".concat(b.x,",").concat(b.y,` 107 A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(v.x,",").concat(v.y,` 108 A`).concat(a,",").concat(a,",0,").concat(+(E>180),",").concat(+(m<0),",").concat(k.x,",").concat(k.y,` 109 A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(P.x,",").concat(P.y,` 110 `);if(i>0){var _=ff({cx:r,cy:n,radius:i,angle:d,sign:m,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),O=_.circleTangency,I=_.lineTangency,R=_.theta,D=ff({cx:r,cy:n,radius:i,angle:h,sign:-m,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),F=D.circleTangency,B=D.lineTangency,G=D.theta,Y=u?Math.abs(d-h):Math.abs(d-h)-R-G;if(Y<0&&o===0)return"".concat(T,"L").concat(r,",").concat(n,"Z");T+="L".concat(B.x,",").concat(B.y,` 111 A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(F.x,",").concat(F.y,` 112 A`).concat(i,",").concat(i,",0,").concat(+(Y>180),",").concat(+(m>0),",").concat(O.x,",").concat(O.y,` 113 A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(I.x,",").concat(I.y,"Z")}else T+="L".concat(r,",").concat(n,"Z");return T},AY={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},k$=function(e){var r=EC(EC({},AY),e),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,l=r.cornerRadius,u=r.forceCornerRadius,d=r.cornerIsExternal,h=r.startAngle,m=r.endAngle,g=r.className;if(o<a||h===m)return null;var v=Ie("recharts-sector",g),b=o-a,w=yn(l,b,0,!0),x;return w>0&&Math.abs(h-m)<360?x=TY({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(w,b/2),forceCornerRadius:u,cornerIsExternal:d,startAngle:h,endAngle:m}):x=S$({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:h,endAngle:m}),$.createElement("path",Mw({},Se(r,!0),{className:v,d:x,role:"img"}))};function Kc(t){"@babel/helpers - typeof";return Kc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kc(t)}function Lw(){return Lw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Lw.apply(this,arguments)}function _C(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function NC(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_C(Object(r),!0).forEach(function(n){EY(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_C(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function EY(t,e,r){return e=_Y(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _Y(t){var e=NY(t,"string");return Kc(e)=="symbol"?e:e+""}function NY(t,e){if(Kc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Kc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var OC={curveBasisClosed:XW,curveBasisOpen:JW,curveBasis:YW,curveBumpX:MW,curveBumpY:LW,curveLinearClosed:QW,curveLinear:Am,curveMonotoneX:ZW,curveMonotoneY:e6,curveNatural:t6,curveStep:r6,curveStepAfter:i6,curveStepBefore:n6},hf=function(e){return e.x===+e.x&&e.y===+e.y},Ql=function(e){return e.x},Zl=function(e){return e.y},OY=function(e,r){if(Ne(e))return e;var n="curve".concat(Pm(e));return(n==="curveMonotone"||n==="curveBump")&&r?OC["".concat(n).concat(r==="vertical"?"Y":"X")]:OC[n]||Am},CY=function(e){var r=e.type,n=r===void 0?"linear":r,i=e.points,a=i===void 0?[]:i,o=e.baseLine,l=e.layout,u=e.connectNulls,d=u===void 0?!1:u,h=OY(n,l),m=d?a.filter(function(w){return hf(w)}):a,g;if(Array.isArray(o)){var v=d?o.filter(function(w){return hf(w)}):o,b=m.map(function(w,x){return NC(NC({},w),{},{base:v[x]})});return l==="vertical"?g=nf().y(Zl).x1(Ql).x0(function(w){return w.base.x}):g=nf().x(Ql).y1(Zl).y0(function(w){return w.base.y}),g.defined(hf).curve(h),g(b)}return l==="vertical"&&ue(o)?g=nf().y(Zl).x1(Ql).x0(o):ue(o)?g=nf().x(Ql).y1(Zl).y0(o):g=SD().x(Ql).y(Zl),g.defined(hf).curve(h),g(m)},Dw=function(e){var r=e.className,n=e.points,i=e.path,a=e.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?CY(e):i;return N.createElement("path",Lw({},Se(e,!1),Xf(e),{className:Ie("recharts-curve",r),d:o,ref:a}))},Mb={exports:{}},Lb,CC;function IY(){if(CC)return Lb;CC=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Lb=t,Lb}var Db,IC;function RY(){if(IC)return Db;IC=1;var t=IY();function e(){}function r(){}return r.resetWarningCache=e,Db=function(){function n(o,l,u,d,h,m){if(m!==t){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:e};return a.PropTypes=a,a},Db}var RC;function MY(){return RC||(RC=1,Mb.exports=RY()()),Mb.exports}var LY=MY();const We=qe(LY),{getOwnPropertyNames:DY,getOwnPropertySymbols:$Y}=Object,{hasOwnProperty:FY}=Object.prototype;function $b(t,e){return function(n,i,a){return t(n,i,a)&&e(n,i,a)}}function mf(t){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return t(r,n,i);const{cache:a}=i,o=a.get(r),l=a.get(n);if(o&&l)return o===n&&l===r;a.set(r,n),a.set(n,r);const u=t(r,n,i);return a.delete(r),a.delete(n),u}}function BY(t){return t!=null?t[Symbol.toStringTag]:void 0}function MC(t){return DY(t).concat($Y(t))}const zY=Object.hasOwn||((t,e)=>FY.call(t,e));function go(t,e){return t===e||!t&&!e&&t!==t&&e!==e}const VY="__v",UY="__o",WY="_owner",{getOwnPropertyDescriptor:LC,keys:DC}=Object;function HY(t,e){return t.byteLength===e.byteLength&&jh(new Uint8Array(t),new Uint8Array(e))}function qY(t,e,r){let n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function GY(t,e){return t.byteLength===e.byteLength&&jh(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function KY(t,e){return go(t.getTime(),e.getTime())}function YY(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function XY(t,e){return t===e}function $C(t,e,r){const n=t.size;if(n!==e.size)return!1;if(!n)return!0;const i=new Array(n),a=t.entries();let o,l,u=0;for(;(o=a.next())&&!o.done;){const d=e.entries();let h=!1,m=0;for(;(l=d.next())&&!l.done;){if(i[m]){m++;continue}const g=o.value,v=l.value;if(r.equals(g[0],v[0],u,m,t,e,r)&&r.equals(g[1],v[1],g[0],v[0],t,e,r)){h=i[m]=!0;break}m++}if(!h)return!1;u++}return!0}const JY=go;function QY(t,e,r){const n=DC(t);let i=n.length;if(DC(e).length!==i)return!1;for(;i-- >0;)if(!j$(t,e,r,n[i]))return!1;return!0}function ec(t,e,r){const n=MC(t);let i=n.length;if(MC(e).length!==i)return!1;let a,o,l;for(;i-- >0;)if(a=n[i],!j$(t,e,r,a)||(o=LC(t,a),l=LC(e,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function ZY(t,e){return go(t.valueOf(),e.valueOf())}function eX(t,e){return t.source===e.source&&t.flags===e.flags}function FC(t,e,r){const n=t.size;if(n!==e.size)return!1;if(!n)return!0;const i=new Array(n),a=t.values();let o,l;for(;(o=a.next())&&!o.done;){const u=e.values();let d=!1,h=0;for(;(l=u.next())&&!l.done;){if(!i[h]&&r.equals(o.value,l.value,o.value,l.value,t,e,r)){d=i[h]=!0;break}h++}if(!d)return!1}return!0}function jh(t,e){let r=t.byteLength;if(e.byteLength!==r||t.byteOffset!==e.byteOffset)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function tX(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function j$(t,e,r,n){return(n===WY||n===UY||n===VY)&&(t.$$typeof||e.$$typeof)?!0:zY(e,n)&&r.equals(t[n],e[n],n,n,t,e,r)}const rX="[object ArrayBuffer]",nX="[object Arguments]",iX="[object Boolean]",aX="[object DataView]",oX="[object Date]",sX="[object Error]",lX="[object Map]",cX="[object Number]",uX="[object Object]",dX="[object RegExp]",fX="[object Set]",hX="[object String]",mX={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},pX="[object URL]",gX=Object.prototype.toString;function yX({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:u,arePrimitiveWrappersEqual:d,areRegExpsEqual:h,areSetsEqual:m,areTypedArraysEqual:g,areUrlsEqual:v,unknownTagComparators:b}){return function(x,k,P){if(x===k)return!0;if(x==null||k==null)return!1;const A=typeof x;if(A!==typeof k)return!1;if(A!=="object")return A==="number"?l(x,k,P):A==="function"?a(x,k,P):!1;const E=x.constructor;if(E!==k.constructor)return!1;if(E===Object)return u(x,k,P);if(Array.isArray(x))return e(x,k,P);if(E===Date)return n(x,k,P);if(E===RegExp)return h(x,k,P);if(E===Map)return o(x,k,P);if(E===Set)return m(x,k,P);const T=gX.call(x);if(T===oX)return n(x,k,P);if(T===dX)return h(x,k,P);if(T===lX)return o(x,k,P);if(T===fX)return m(x,k,P);if(T===uX)return typeof x.then!="function"&&typeof k.then!="function"&&u(x,k,P);if(T===pX)return v(x,k,P);if(T===sX)return i(x,k,P);if(T===nX)return u(x,k,P);if(mX[T])return g(x,k,P);if(T===rX)return t(x,k,P);if(T===aX)return r(x,k,P);if(T===iX||T===cX||T===hX)return d(x,k,P);if(b){let _=b[T];if(!_){const O=BY(x);O&&(_=b[O])}if(_)return _(x,k,P)}return!1}}function vX({circular:t,createCustomConfig:e,strict:r}){let n={areArrayBuffersEqual:HY,areArraysEqual:r?ec:qY,areDataViewsEqual:GY,areDatesEqual:KY,areErrorsEqual:YY,areFunctionsEqual:XY,areMapsEqual:r?$b($C,ec):$C,areNumbersEqual:JY,areObjectsEqual:r?ec:QY,arePrimitiveWrappersEqual:ZY,areRegExpsEqual:eX,areSetsEqual:r?$b(FC,ec):FC,areTypedArraysEqual:r?$b(jh,ec):jh,areUrlsEqual:tX,unknownTagComparators:void 0};if(e&&(n=Object.assign({},n,e(n))),t){const i=mf(n.areArraysEqual),a=mf(n.areMapsEqual),o=mf(n.areObjectsEqual),l=mf(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:l})}return n}function xX(t){return function(e,r,n,i,a,o,l){return t(e,r,l)}}function bX({circular:t,comparator:e,createState:r,equals:n,strict:i}){if(r)return function(l,u){const{cache:d=t?new WeakMap:void 0,meta:h}=r();return e(l,u,{cache:d,equals:n,meta:h,strict:i})};if(t)return function(l,u){return e(l,u,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(l,u){return e(l,u,a)}}const wX=ga();ga({strict:!0});ga({circular:!0});ga({circular:!0,strict:!0});ga({createInternalComparator:()=>go});ga({strict:!0,createInternalComparator:()=>go});ga({circular:!0,createInternalComparator:()=>go});ga({circular:!0,createInternalComparator:()=>go,strict:!0});function ga(t={}){const{circular:e=!1,createInternalComparator:r,createState:n,strict:i=!1}=t,a=vX(t),o=yX(a),l=r?r(o):xX(o);return bX({circular:e,comparator:o,createState:n,equals:l,strict:i})}function SX(t){typeof requestAnimationFrame<"u"&&requestAnimationFrame(t)}function BC(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>e?(t(a),r=-1):SX(i)};requestAnimationFrame(n)}function $w(t){"@babel/helpers - typeof";return $w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$w(t)}function kX(t){return AX(t)||TX(t)||PX(t)||jX()}function jX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 114In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PX(t,e){if(t){if(typeof t=="string")return zC(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zC(t,e)}}function zC(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function TX(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function AX(t){if(Array.isArray(t))return t}function EX(){var t={},e=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,l=kX(o),u=l[0],d=l.slice(1);if(typeof u=="number"){BC(i.bind(null,d),u);return}i(u),BC(i.bind(null,d));return}$w(a)==="object"&&(t=a,e(t)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return e=a,function(){e=function(){return null}}}}}function Yc(t){"@babel/helpers - typeof";return Yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yc(t)}function VC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function UC(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?VC(Object(r),!0).forEach(function(n){P$(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VC(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function P$(t,e,r){return e=_X(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _X(t){var e=NX(t,"string");return Yc(e)==="symbol"?e:String(e)}function NX(t,e){if(Yc(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Yc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var OX=function(e,r){return[Object.keys(e),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},CX=function(e){return e},IX=function(e){return e.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},mc=function(e,r){return Object.keys(r).reduce(function(n,i){return UC(UC({},n),{},P$({},i,e(i,r[i])))},{})},WC=function(e,r,n){return e.map(function(i){return"".concat(IX(i)," ").concat(r,"ms ").concat(n)}).join(",")};function RX(t,e){return DX(t)||LX(t,e)||T$(t,e)||MX()}function MX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 115In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LX(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(h){d=!0,i=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function DX(t){if(Array.isArray(t))return t}function $X(t){return zX(t)||BX(t)||T$(t)||FX()}function FX(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 116In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T$(t,e){if(t){if(typeof t=="string")return Fw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fw(t,e)}}function BX(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function zX(t){if(Array.isArray(t))return Fw(t)}function Fw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ph=1e-4,A$=function(e,r){return[0,3*e,3*r-6*e,3*e-3*r+1]},E$=function(e,r){return e.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},HC=function(e,r){return function(n){var i=A$(e,r);return E$(i,n)}},VX=function(e,r){return function(n){var i=A$(e,r),a=[].concat($X(i.map(function(o,l){return o*l}).slice(1)),[0]);return E$(a,n)}},qC=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],l=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,l=1;break;case"ease":i=.25,a=.1,o=.25,l=1;break;case"ease-in":i=.42,a=0,o=1,l=1;break;case"ease-out":i=.42,a=0,o=.58,l=1;break;case"ease-in-out":i=0,a=0,o=.58,l=1;break;default:{var u=r[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var d=u[1].split(")")[0].split(",").map(function(x){return parseFloat(x)}),h=RX(d,4);i=h[0],a=h[1],o=h[2],l=h[3]}}}var m=HC(i,o),g=HC(a,l),v=VX(i,o),b=function(k){return k>1?1:k<0?0:k},w=function(k){for(var P=k>1?1:k,A=P,E=0;E<8;++E){var T=m(A)-P,_=v(A);if(Math.abs(T-P)<Ph||_<Ph)return g(A);A=b(A-T/_)}return g(A)};return w.isStepper=!1,w},UX=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.stiff,n=r===void 0?100:r,i=e.damping,a=i===void 0?8:i,o=e.dt,l=o===void 0?17:o,u=function(h,m,g){var v=-(h-m)*n,b=g*a,w=g+(v-b)*l/1e3,x=g*l/1e3+h;return Math.abs(x-m)<Ph&&Math.abs(w)<Ph?[m,0]:[x,w]};return u.isStepper=!0,u.dt=l,u},WX=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return qC(i);case"spring":return UX();default:if(i.split("(")[0]==="cubic-bezier")return qC(i)}return typeof i=="function"?i:null};function Xc(t){"@babel/helpers - typeof";return Xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xc(t)}function GC(t){return GX(t)||qX(t)||_$(t)||HX()}function HX(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 117In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qX(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function GX(t){if(Array.isArray(t))return zw(t)}function KC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function qt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?KC(Object(r),!0).forEach(function(n){Bw(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):KC(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Bw(t,e,r){return e=KX(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function KX(t){var e=YX(t,"string");return Xc(e)==="symbol"?e:String(e)}function YX(t,e){if(Xc(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Xc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function XX(t,e){return ZX(t)||QX(t,e)||_$(t,e)||JX()}function JX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 118In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _$(t,e){if(t){if(typeof t=="string")return zw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zw(t,e)}}function zw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function QX(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(h){d=!0,i=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function ZX(t){if(Array.isArray(t))return t}var Th=function(e,r,n){return e+(r-e)*n},Vw=function(e){var r=e.from,n=e.to;return r!==n},eJ=function t(e,r,n){var i=mc(function(a,o){if(Vw(o)){var l=e(o.from,o.to,o.velocity),u=XX(l,2),d=u[0],h=u[1];return qt(qt({},o),{},{from:d,velocity:h})}return o},r);return n<1?mc(function(a,o){return Vw(o)?qt(qt({},o),{},{velocity:Th(o.velocity,i[a].velocity,n),from:Th(o.from,i[a].from,n)}):o},r):t(e,i,n-1)};const tJ=(function(t,e,r,n,i){var a=OX(t,e),o=a.reduce(function(x,k){return qt(qt({},x),{},Bw({},k,[t[k],e[k]]))},{}),l=a.reduce(function(x,k){return qt(qt({},x),{},Bw({},k,{from:t[k],velocity:0,to:e[k]}))},{}),u=-1,d,h,m=function(){return null},g=function(){return mc(function(k,P){return P.from},l)},v=function(){return!Object.values(l).filter(Vw).length},b=function(k){d||(d=k);var P=k-d,A=P/r.dt;l=eJ(r,l,A),i(qt(qt(qt({},t),e),g())),d=k,v()||(u=requestAnimationFrame(m))},w=function(k){h||(h=k);var P=(k-h)/n,A=mc(function(T,_){return Th.apply(void 0,GC(_).concat([r(P)]))},o);if(i(qt(qt(qt({},t),e),A)),P<1)u=requestAnimationFrame(m);else{var E=mc(function(T,_){return Th.apply(void 0,GC(_).concat([r(1)]))},o);i(qt(qt(qt({},t),e),E))}};return m=r.isStepper?b:w,function(){return requestAnimationFrame(m),function(){cancelAnimationFrame(u)}}});function ks(t){"@babel/helpers - typeof";return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ks(t)}var rJ=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function nJ(t,e){if(t==null)return{};var r=iJ(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function iJ(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function Fb(t){return lJ(t)||sJ(t)||oJ(t)||aJ()}function aJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 119In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oJ(t,e){if(t){if(typeof t=="string")return Uw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uw(t,e)}}function sJ(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function lJ(t){if(Array.isArray(t))return Uw(t)}function Uw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function YC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ln(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?YC(Object(r),!0).forEach(function(n){cc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):YC(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function cc(t,e,r){return e=N$(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cJ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uJ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,N$(n.key),n)}}function dJ(t,e,r){return e&&uJ(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function N$(t){var e=fJ(t,"string");return ks(e)==="symbol"?e:String(e)}function fJ(t,e){if(ks(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ks(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function hJ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ww(t,e)}function Ww(t,e){return Ww=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ww(t,e)}function mJ(t){var e=pJ();return function(){var n=Ah(t),i;if(e){var a=Ah(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Hw(this,i)}}function Hw(t,e){if(e&&(ks(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qw(t)}function qw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pJ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ah(t){return Ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ah(t)}var Wn=(function(t){hJ(r,t);var e=mJ(r);function r(n,i){var a;cJ(this,r),a=e.call(this,n,i);var o=a.props,l=o.isActive,u=o.attributeName,d=o.from,h=o.to,m=o.steps,g=o.children,v=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(qw(a)),a.changeStyle=a.changeStyle.bind(qw(a)),!l||v<=0)return a.state={style:{}},typeof g=="function"&&(a.state={style:h}),Hw(a);if(m&&m.length)a.state={style:m[0].style};else if(d){if(typeof g=="function")return a.state={style:d},Hw(a);a.state={style:u?cc({},u,d):d}}else a.state={style:{}};return a}return dJ(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,l=a.canBegin,u=a.attributeName,d=a.shouldReAnimate,h=a.to,m=a.from,g=this.state.style;if(l){if(!o){var v={style:u?cc({},u,h):h};this.state&&g&&(u&&g[u]!==h||!u&&g!==h)&&this.setState(v);return}if(!(wX(i.to,h)&&i.canBegin&&i.isActive)){var b=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=b||d?m:i.to;if(this.state&&g){var x={style:u?cc({},u,w):w};(u&&g[u]!==w||!u&&g!==w)&&this.setState(x)}this.runAnimation(ln(ln({},this.props),{},{from:w,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,l=i.to,u=i.duration,d=i.easing,h=i.begin,m=i.onAnimationEnd,g=i.onAnimationStart,v=tJ(o,l,WX(d),u,this.changeStyle),b=function(){a.stopJSAnimation=v()};this.manager.start([g,h,b,u,m])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,l=i.begin,u=i.onAnimationStart,d=o[0],h=d.style,m=d.duration,g=m===void 0?0:m,v=function(w,x,k){if(k===0)return w;var P=x.duration,A=x.easing,E=A===void 0?"ease":A,T=x.style,_=x.properties,O=x.onAnimationEnd,I=k>0?o[k-1]:x,R=_||Object.keys(T);if(typeof E=="function"||E==="spring")return[].concat(Fb(w),[a.runJSAnimation.bind(a,{from:I.style,to:T,duration:P,easing:E}),P]);var D=WC(R,P,E),F=ln(ln(ln({},I.style),T),{},{transition:D});return[].concat(Fb(w),[F,P,O]).filter(CX)};return this.manager.start([u].concat(Fb(o.reduce(v,[h,Math.max(g,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=EX());var a=i.begin,o=i.duration,l=i.attributeName,u=i.to,d=i.easing,h=i.onAnimationStart,m=i.onAnimationEnd,g=i.steps,v=i.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof d=="function"||typeof v=="function"||d==="spring"){this.runJSAnimation(i);return}if(g.length>1){this.runStepAnimation(i);return}var w=l?cc({},l,u):u,x=WC(Object.keys(w),o,d);b.start([h,a,ln(ln({},w),{},{transition:x}),o,m])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=nJ(i,rJ),d=N.Children.count(a),h=this.state.style;if(typeof a=="function")return a(h);if(!l||d===0||o<=0)return a;var m=function(v){var b=v.props,w=b.style,x=w===void 0?{}:w,k=b.className,P=N.cloneElement(v,ln(ln({},u),{},{style:ln(ln({},x),h),className:k}));return P};return d===1?m(N.Children.only(a)):$.createElement("div",null,N.Children.map(a,function(g){return m(g)}))}}]),r})(N.PureComponent);Wn.displayName="Animate";Wn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Wn.propTypes={from:We.oneOfType([We.object,We.string]),to:We.oneOfType([We.object,We.string]),attributeName:We.string,duration:We.number,begin:We.number,easing:We.oneOfType([We.string,We.func]),steps:We.arrayOf(We.shape({duration:We.number.isRequired,style:We.object.isRequired,easing:We.oneOfType([We.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),We.func]),properties:We.arrayOf("string"),onAnimationEnd:We.func})),children:We.oneOfType([We.node,We.func]),isActive:We.bool,canBegin:We.bool,onAnimationEnd:We.func,shouldReAnimate:We.bool,onAnimationStart:We.func,onAnimationReStart:We.func};function Jc(t){"@babel/helpers - typeof";return Jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jc(t)}function Eh(){return Eh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Eh.apply(this,arguments)}function gJ(t,e){return bJ(t)||xJ(t,e)||vJ(t,e)||yJ()}function yJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 120In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vJ(t,e){if(t){if(typeof t=="string")return XC(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return XC(t,e)}}function XC(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xJ(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(h){d=!0,i=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function bJ(t){if(Array.isArray(t))return t}function JC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function QC(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?JC(Object(r),!0).forEach(function(n){wJ(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):JC(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function wJ(t,e,r){return e=SJ(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function SJ(t){var e=kJ(t,"string");return Jc(e)=="symbol"?e:e+""}function kJ(t,e){if(Jc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Jc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ZC=function(e,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),l=i>=0?1:-1,u=n>=0?1:-1,d=i>=0&&n>=0||i<0&&n<0?1:0,h;if(o>0&&a instanceof Array){for(var m=[0,0,0,0],g=0,v=4;g<v;g++)m[g]=a[g]>o?o:a[g];h="M".concat(e,",").concat(r+l*m[0]),m[0]>0&&(h+="A ".concat(m[0],",").concat(m[0],",0,0,").concat(d,",").concat(e+u*m[0],",").concat(r)),h+="L ".concat(e+n-u*m[1],",").concat(r),m[1]>0&&(h+="A ".concat(m[1],",").concat(m[1],",0,0,").concat(d,`, 121 `).concat(e+n,",").concat(r+l*m[1])),h+="L ".concat(e+n,",").concat(r+i-l*m[2]),m[2]>0&&(h+="A ".concat(m[2],",").concat(m[2],",0,0,").concat(d,`, 122 `).concat(e+n-u*m[2],",").concat(r+i)),h+="L ".concat(e+u*m[3],",").concat(r+i),m[3]>0&&(h+="A ".concat(m[3],",").concat(m[3],",0,0,").concat(d,`, 123 `).concat(e,",").concat(r+i-l*m[3])),h+="Z"}else if(o>0&&a===+a&&a>0){var b=Math.min(o,a);h="M ".concat(e,",").concat(r+l*b,` 124 A `).concat(b,",").concat(b,",0,0,").concat(d,",").concat(e+u*b,",").concat(r,` 125 L `).concat(e+n-u*b,",").concat(r,` 126 A `).concat(b,",").concat(b,",0,0,").concat(d,",").concat(e+n,",").concat(r+l*b,` 127 L `).concat(e+n,",").concat(r+i-l*b,` 128 A `).concat(b,",").concat(b,",0,0,").concat(d,",").concat(e+n-u*b,",").concat(r+i,` 129 L `).concat(e+u*b,",").concat(r+i,` 130 A `).concat(b,",").concat(b,",0,0,").concat(d,",").concat(e,",").concat(r+i-l*b," Z")}else h="M ".concat(e,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return h},jJ=function(e,r){if(!e||!r)return!1;var n=e.x,i=e.y,a=r.x,o=r.y,l=r.width,u=r.height;if(Math.abs(l)>0&&Math.abs(u)>0){var d=Math.min(a,a+l),h=Math.max(a,a+l),m=Math.min(o,o+u),g=Math.max(o,o+u);return n>=d&&n<=h&&i>=m&&i<=g}return!1},PJ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ck=function(e){var r=QC(QC({},PJ),e),n=N.useRef(),i=N.useState(-1),a=gJ(i,2),o=a[0],l=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var E=n.current.getTotalLength();E&&l(E)}catch{}},[]);var u=r.x,d=r.y,h=r.width,m=r.height,g=r.radius,v=r.className,b=r.animationEasing,w=r.animationDuration,x=r.animationBegin,k=r.isAnimationActive,P=r.isUpdateAnimationActive;if(u!==+u||d!==+d||h!==+h||m!==+m||h===0||m===0)return null;var A=Ie("recharts-rectangle",v);return P?$.createElement(Wn,{canBegin:o>0,from:{width:h,height:m,x:u,y:d},to:{width:h,height:m,x:u,y:d},duration:w,animationEasing:b,isActive:P},function(E){var T=E.width,_=E.height,O=E.x,I=E.y;return $.createElement(Wn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:w,isActive:k,easing:b},$.createElement("path",Eh({},Se(r,!0),{className:A,d:ZC(O,I,T,_,g),ref:n})))}):$.createElement("path",Eh({},Se(r,!0),{className:A,d:ZC(u,d,h,m,g)}))},TJ=["points","className","baseLinePoints","connectNulls"];function Xo(){return Xo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Xo.apply(this,arguments)}function AJ(t,e){if(t==null)return{};var r=EJ(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function EJ(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function eI(t){return CJ(t)||OJ(t)||NJ(t)||_J()}function _J(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 131In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NJ(t,e){if(t){if(typeof t=="string")return Gw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gw(t,e)}}function OJ(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function CJ(t){if(Array.isArray(t))return Gw(t)}function Gw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var tI=function(e){return e&&e.x===+e.x&&e.y===+e.y},IJ=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return e.forEach(function(n){tI(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),tI(e[0])&&r[r.length-1].push(e[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},pc=function(e,r){var n=IJ(e);r&&(n=[n.reduce(function(a,o){return[].concat(eI(a),eI(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,l,u){return"".concat(o).concat(u===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},RJ=function(e,r,n){var i=pc(e,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(pc(r.reverse(),n).slice(1))},O$=function(e){var r=e.points,n=e.className,i=e.baseLinePoints,a=e.connectNulls,o=AJ(e,TJ);if(!r||!r.length)return null;var l=Ie("recharts-polygon",n);if(i&&i.length){var u=o.stroke&&o.stroke!=="none",d=RJ(r,i,a);return $.createElement("g",{className:l},$.createElement("path",Xo({},Se(o,!0),{fill:d.slice(-1)==="Z"?o.fill:"none",stroke:"none",d})),u?$.createElement("path",Xo({},Se(o,!0),{fill:"none",d:pc(r,a)})):null,u?$.createElement("path",Xo({},Se(o,!0),{fill:"none",d:pc(i,a)})):null)}var h=pc(r,a);return $.createElement("path",Xo({},Se(o,!0),{fill:h.slice(-1)==="Z"?o.fill:"none",className:l,d:h}))};function Kw(){return Kw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Kw.apply(this,arguments)}var Cu=function(e){var r=e.cx,n=e.cy,i=e.r,a=e.className,o=Ie("recharts-dot",a);return r===+r&&n===+n&&i===+i?N.createElement("circle",Kw({},Se(e,!1),Xf(e),{className:o,cx:r,cy:n,r:i})):null};function Qc(t){"@babel/helpers - typeof";return Qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qc(t)}var MJ=["x","y","top","left","width","height","className"];function Yw(){return Yw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Yw.apply(this,arguments)}function rI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function LJ(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?rI(Object(r),!0).forEach(function(n){DJ(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rI(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function DJ(t,e,r){return e=$J(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $J(t){var e=FJ(t,"string");return Qc(e)=="symbol"?e:e+""}function FJ(t,e){if(Qc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Qc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function BJ(t,e){if(t==null)return{};var r=zJ(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function zJ(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var VJ=function(e,r,n,i,a,o){return"M".concat(e,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},UJ=function(e){var r=e.x,n=r===void 0?0:r,i=e.y,a=i===void 0?0:i,o=e.top,l=o===void 0?0:o,u=e.left,d=u===void 0?0:u,h=e.width,m=h===void 0?0:h,g=e.height,v=g===void 0?0:g,b=e.className,w=BJ(e,MJ),x=LJ({x:n,y:a,top:l,left:d,width:m,height:v},w);return!ue(n)||!ue(a)||!ue(m)||!ue(v)||!ue(l)||!ue(d)?null:$.createElement("path",Yw({},Se(x,!0),{className:Ie("recharts-cross",b),d:VJ(n,a,m,v,l,d)}))},WJ=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function Zc(t){"@babel/helpers - typeof";return Zc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zc(t)}function HJ(t,e){if(t==null)return{};var r=qJ(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function qJ(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function wi(){return wi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},wi.apply(this,arguments)}function nI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function eu(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?nI(Object(r),!0).forEach(function(n){GJ(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nI(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function GJ(t,e,r){return e=KJ(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function KJ(t){var e=YJ(t,"string");return Zc(e)=="symbol"?e:e+""}function YJ(t,e){if(Zc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Zc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var XJ=function(e,r,n,i){var a="";return i.forEach(function(o,l){var u=Ye(r,n,e,o);l?a+="L ".concat(u.x,",").concat(u.y):a+="M ".concat(u.x,",").concat(u.y)}),a+="Z",a},JJ=function(e){var r=e.cx,n=e.cy,i=e.innerRadius,a=e.outerRadius,o=e.polarAngles,l=e.radialLines;if(!o||!o.length||!l)return null;var u=eu({stroke:"#ccc"},Se(e,!1));return $.createElement("g",{className:"recharts-polar-grid-angle"},o.map(function(d){var h=Ye(r,n,i,d),m=Ye(r,n,a,d);return $.createElement("line",wi({},u,{key:"line-".concat(d),x1:h.x,y1:h.y,x2:m.x,y2:m.y}))}))},QJ=function(e){var r=e.cx,n=e.cy,i=e.radius,a=e.index,o=eu(eu({stroke:"#ccc"},Se(e,!1)),{},{fill:"none"});return $.createElement("circle",wi({},o,{className:Ie("recharts-polar-grid-concentric-circle",e.className),key:"circle-".concat(a),cx:r,cy:n,r:i}))},ZJ=function(e){var r=e.radius,n=e.index,i=eu(eu({stroke:"#ccc"},Se(e,!1)),{},{fill:"none"});return $.createElement("path",wi({},i,{className:Ie("recharts-polar-grid-concentric-polygon",e.className),key:"path-".concat(n),d:XJ(r,e.cx,e.cy,e.polarAngles)}))},eQ=function(e){var r=e.polarRadius,n=e.gridType;return!r||!r.length?null:$.createElement("g",{className:"recharts-polar-grid-concentric"},r.map(function(i,a){var o=a;return n==="circle"?$.createElement(QJ,wi({key:o},e,{radius:i,index:a})):$.createElement(ZJ,wi({key:o},e,{radius:i,index:a}))}))},C$=function(e){var r=e.cx,n=r===void 0?0:r,i=e.cy,a=i===void 0?0:i,o=e.innerRadius,l=o===void 0?0:o,u=e.outerRadius,d=u===void 0?0:u,h=e.gridType,m=h===void 0?"polygon":h,g=e.radialLines,v=g===void 0?!0:g,b=HJ(e,WJ);return d<=0?null:$.createElement("g",{className:"recharts-polar-grid"},$.createElement(JJ,wi({cx:n,cy:a,innerRadius:l,outerRadius:d,gridType:m,radialLines:v},b)),$.createElement(eQ,wi({cx:n,cy:a,innerRadius:l,outerRadius:d,gridType:m,radialLines:v},b)))};C$.displayName="PolarGrid";var Bb,iI;function tQ(){if(iI)return Bb;iI=1;var t=$m(),e=H2(),r=Kn();function n(i,a){return i&&i.length?t(i,r(a,2),e):void 0}return Bb=n,Bb}var rQ=tQ();const nQ=qe(rQ);var zb,aI;function iQ(){if(aI)return zb;aI=1;var t=$m(),e=Kn(),r=q2();function n(i,a){return i&&i.length?t(i,e(a,2),r):void 0}return zb=n,zb}var aQ=iQ();const oQ=qe(aQ);var sQ=["cx","cy","angle","ticks","axisLine"],lQ=["ticks","tick","angle","tickFormatter","stroke"];function js(t){"@babel/helpers - typeof";return js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},js(t)}function gc(){return gc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gc.apply(this,arguments)}function oI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ra(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?oI(Object(r),!0).forEach(function(n){Um(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oI(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function sI(t,e){if(t==null)return{};var r=cQ(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function cQ(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function uQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,R$(n.key),n)}}function dQ(t,e,r){return e&&lI(t.prototype,e),r&&lI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function fQ(t,e,r){return e=_h(e),hQ(t,I$()?Reflect.construct(e,r||[],_h(t).constructor):e.apply(t,r))}function hQ(t,e){if(e&&(js(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mQ(t)}function mQ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function I$(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I$=function(){return!!t})()}function _h(t){return _h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_h(t)}function pQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xw(t,e)}function Xw(t,e){return Xw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xw(t,e)}function Um(t,e,r){return e=R$(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function R$(t){var e=gQ(t,"string");return js(e)=="symbol"?e:e+""}function gQ(t,e){if(js(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(js(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Iu=(function(t){function e(){return uQ(this,e),fQ(this,e,arguments)}return pQ(e,t),dQ(e,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,l=a.cx,u=a.cy;return Ye(l,u,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,l=n.ticks,u=nQ(l,function(h){return h.coordinate||0}),d=oQ(l,function(h){return h.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:d.coordinate||0,outerRadius:u.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,l=n.ticks,u=n.axisLine,d=sI(n,sQ),h=l.reduce(function(b,w){return[Math.min(b[0],w.coordinate),Math.max(b[1],w.coordinate)]},[1/0,-1/0]),m=Ye(i,a,h[0],o),g=Ye(i,a,h[1],o),v=Ra(Ra(Ra({},Se(d,!1)),{},{fill:"none"},Se(u,!1)),{},{x1:m.x,y1:m.y,x2:g.x,y2:g.y});return $.createElement("line",gc({className:"recharts-polar-radius-axis-line"},v))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,l=i.angle,u=i.tickFormatter,d=i.stroke,h=sI(i,lQ),m=this.getTickTextAnchor(),g=Se(h,!1),v=Se(o,!1),b=a.map(function(w,x){var k=n.getTickValueCoord(w),P=Ra(Ra(Ra(Ra({textAnchor:m,transform:"rotate(".concat(90-l,", ").concat(k.x,", ").concat(k.y,")")},g),{},{stroke:"none",fill:d},v),{},{index:x},k),{},{payload:w});return $.createElement(He,gc({className:Ie("recharts-polar-radius-axis-tick",x$(o)),key:"tick-".concat(w.coordinate)},fs(n.props,w,x)),e.renderTickItem(o,P,u?u(w.value,x):w.value))});return $.createElement(He,{className:"recharts-polar-radius-axis-ticks"},b)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:$.createElement(He,{className:Ie("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Kt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return $.isValidElement(n)?o=$.cloneElement(n,i):Ne(n)?o=n(i):o=$.createElement(vs,gc({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(N.PureComponent);Um(Iu,"displayName","PolarRadiusAxis");Um(Iu,"axisType","radiusAxis");Um(Iu,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Ps(t){"@babel/helpers - typeof";return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ps(t)}function Wa(){return Wa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Wa.apply(this,arguments)}function cI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ma(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?cI(Object(r),!0).forEach(function(n){Wm(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cI(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function yQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,L$(n.key),n)}}function vQ(t,e,r){return e&&uI(t.prototype,e),r&&uI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function xQ(t,e,r){return e=Nh(e),bQ(t,M$()?Reflect.construct(e,r||[],Nh(t).constructor):e.apply(t,r))}function bQ(t,e){if(e&&(Ps(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wQ(t)}function wQ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function M$(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M$=function(){return!!t})()}function Nh(t){return Nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nh(t)}function SQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jw(t,e)}function Jw(t,e){return Jw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jw(t,e)}function Wm(t,e,r){return e=L$(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function L$(t){var e=kQ(t,"string");return Ps(e)=="symbol"?e:e+""}function kQ(t,e){if(Ps(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ps(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var jQ=Math.PI/180,dI=1e-5,Ru=(function(t){function e(){return yQ(this,e),xQ(this,e,arguments)}return SQ(e,t),vQ(e,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,l=i.radius,u=i.orientation,d=i.tickSize,h=d||8,m=Ye(a,o,l,n.coordinate),g=Ye(a,o,l+(u==="inner"?-1:1)*h,n.coordinate);return{x1:m.x,y1:m.y,x2:g.x,y2:g.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*jQ),o;return a>dI?o=i==="outer"?"start":"end":a<-dI?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,l=n.axisLine,u=n.axisLineType,d=Ma(Ma({},Se(this.props,!1)),{},{fill:"none"},Se(l,!1));if(u==="circle")return $.createElement(Cu,Wa({className:"recharts-polar-angle-axis-line"},d,{cx:i,cy:a,r:o}));var h=this.props.ticks,m=h.map(function(g){return Ye(i,a,o,g.coordinate)});return $.createElement(O$,Wa({className:"recharts-polar-angle-axis-line"},d,{points:m}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,l=i.tickLine,u=i.tickFormatter,d=i.stroke,h=Se(this.props,!1),m=Se(o,!1),g=Ma(Ma({},h),{},{fill:"none"},Se(l,!1)),v=a.map(function(b,w){var x=n.getTickLineCoord(b),k=n.getTickTextAnchor(b),P=Ma(Ma(Ma({textAnchor:k},h),{},{stroke:"none",fill:d},m),{},{index:w,payload:b,x:x.x2,y:x.y2});return $.createElement(He,Wa({className:Ie("recharts-polar-angle-axis-tick",x$(o)),key:"tick-".concat(b.coordinate)},fs(n.props,b,w)),l&&$.createElement("line",Wa({className:"recharts-polar-angle-axis-tick-line"},g,x)),o&&e.renderTickItem(o,P,u?u(b.value,w):b.value))});return $.createElement(He,{className:"recharts-polar-angle-axis-ticks"},v)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:$.createElement(He,{className:Ie("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return $.isValidElement(n)?o=$.cloneElement(n,i):Ne(n)?o=n(i):o=$.createElement(vs,Wa({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(N.PureComponent);Wm(Ru,"displayName","PolarAngleAxis");Wm(Ru,"axisType","angleAxis");Wm(Ru,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Vb,fI;function PQ(){if(fI)return Vb;fI=1;var t=HD(),e=t(Object.getPrototypeOf,Object);return Vb=e,Vb}var Ub,hI;function TQ(){if(hI)return Ub;hI=1;var t=Ai(),e=PQ(),r=Ei(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,l=a.hasOwnProperty,u=o.call(Object);function d(h){if(!r(h)||t(h)!=n)return!1;var m=e(h);if(m===null)return!0;var g=l.call(m,"constructor")&&m.constructor;return typeof g=="function"&&g instanceof g&&o.call(g)==u}return Ub=d,Ub}var AQ=TQ();const EQ=qe(AQ);var Wb,mI;function _Q(){if(mI)return Wb;mI=1;var t=Ai(),e=Ei(),r="[object Boolean]";function n(i){return i===!0||i===!1||e(i)&&t(i)==r}return Wb=n,Wb}var NQ=_Q();const OQ=qe(NQ);function tu(t){"@babel/helpers - typeof";return tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tu(t)}function Oh(){return Oh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Oh.apply(this,arguments)}function CQ(t,e){return LQ(t)||MQ(t,e)||RQ(t,e)||IQ()}function IQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 132In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RQ(t,e){if(t){if(typeof t=="string")return pI(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pI(t,e)}}function pI(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function MQ(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(h){d=!0,i=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function LQ(t){if(Array.isArray(t))return t}function gI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function yI(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?gI(Object(r),!0).forEach(function(n){DQ(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gI(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function DQ(t,e,r){return e=$Q(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $Q(t){var e=FQ(t,"string");return tu(e)=="symbol"?e:e+""}function FQ(t,e){if(tu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(tu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var vI=function(e,r,n,i,a){var o=n-i,l;return l="M ".concat(e,",").concat(r),l+="L ".concat(e+n,",").concat(r),l+="L ".concat(e+n-o/2,",").concat(r+a),l+="L ".concat(e+n-o/2-i,",").concat(r+a),l+="L ".concat(e,",").concat(r," Z"),l},BQ={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zQ=function(e){var r=yI(yI({},BQ),e),n=N.useRef(),i=N.useState(-1),a=CQ(i,2),o=a[0],l=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var A=n.current.getTotalLength();A&&l(A)}catch{}},[]);var u=r.x,d=r.y,h=r.upperWidth,m=r.lowerWidth,g=r.height,v=r.className,b=r.animationEasing,w=r.animationDuration,x=r.animationBegin,k=r.isUpdateAnimationActive;if(u!==+u||d!==+d||h!==+h||m!==+m||g!==+g||h===0&&m===0||g===0)return null;var P=Ie("recharts-trapezoid",v);return k?$.createElement(Wn,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:g,x:u,y:d},to:{upperWidth:h,lowerWidth:m,height:g,x:u,y:d},duration:w,animationEasing:b,isActive:k},function(A){var E=A.upperWidth,T=A.lowerWidth,_=A.height,O=A.x,I=A.y;return $.createElement(Wn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:w,easing:b},$.createElement("path",Oh({},Se(r,!0),{className:P,d:vI(O,I,E,T,_),ref:n})))}):$.createElement("g",null,$.createElement("path",Oh({},Se(r,!0),{className:P,d:vI(u,d,h,m,g)})))},VQ=["option","shapeType","propTransformer","activeClassName","isActive"];function ru(t){"@babel/helpers - typeof";return ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ru(t)}function UQ(t,e){if(t==null)return{};var r=WQ(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function WQ(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function xI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ch(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xI(Object(r),!0).forEach(function(n){HQ(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xI(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function HQ(t,e,r){return e=qQ(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qQ(t){var e=GQ(t,"string");return ru(e)=="symbol"?e:e+""}function GQ(t,e){if(ru(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ru(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function KQ(t,e){return Ch(Ch({},e),t)}function YQ(t,e){return t==="symbols"}function bI(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return $.createElement(ck,r);case"trapezoid":return $.createElement(zQ,r);case"sector":return $.createElement(k$,r);case"symbols":if(YQ(e))return $.createElement(A1,r);break;default:return null}}function XQ(t){return N.isValidElement(t)?t.props:t}function JQ(t){var e=t.option,r=t.shapeType,n=t.propTransformer,i=n===void 0?KQ:n,a=t.activeClassName,o=a===void 0?"recharts-active-shape":a,l=t.isActive,u=UQ(t,VQ),d;if(N.isValidElement(e))d=N.cloneElement(e,Ch(Ch({},u),XQ(e)));else if(Ne(e))d=e(u);else if(EQ(e)&&!OQ(e)){var h=i(e,u);d=$.createElement(bI,{shapeType:r,elementProps:h})}else{var m=u;d=$.createElement(bI,{shapeType:r,elementProps:m})}return l?$.createElement(He,{className:o},d):d}function Hm(t,e){return e!=null&&"trapezoids"in t.props}function qm(t,e){return e!=null&&"sectors"in t.props}function nu(t,e){return e!=null&&"points"in t.props}function QQ(t,e){var r,n,i=t.x===(e==null||(r=e.labelViewBox)===null||r===void 0?void 0:r.x)||t.x===e.x,a=t.y===(e==null||(n=e.labelViewBox)===null||n===void 0?void 0:n.y)||t.y===e.y;return i&&a}function ZQ(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function eZ(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function tZ(t,e){var r;return Hm(t,e)?r=QQ:qm(t,e)?r=ZQ:nu(t,e)&&(r=eZ),r}function rZ(t,e){var r;return Hm(t,e)?r="trapezoids":qm(t,e)?r="sectors":nu(t,e)&&(r="points"),r}function nZ(t,e){if(Hm(t,e)){var r;return(r=e.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(qm(t,e)){var n;return(n=e.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return nu(t,e)?e.payload:{}}function iZ(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=rZ(r,e),a=nZ(r,e),o=n.filter(function(u,d){var h=Nu(a,u),m=r.props[i].filter(function(b){var w=tZ(r,e);return w(b,e)}),g=r.props[i].indexOf(m[m.length-1]),v=d===g;return h&&v}),l=n.indexOf(o[o.length-1]);return l}var Hb,wI;function aZ(){if(wI)return Hb;wI=1;function t(e){return e&&e.length?e[0]:void 0}return Hb=t,Hb}var qb,SI;function oZ(){return SI||(SI=1,qb=aZ()),qb}var sZ=oZ();const lZ=qe(sZ);var cZ=["key"];function Ts(t){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ts(t)}function uZ(t,e){if(t==null)return{};var r=dZ(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function dZ(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Ih(){return Ih=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ih.apply(this,arguments)}function kI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ir(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?kI(Object(r),!0).forEach(function(n){oi(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kI(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function fZ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,$$(n.key),n)}}function hZ(t,e,r){return e&&jI(t.prototype,e),r&&jI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function mZ(t,e,r){return e=Rh(e),pZ(t,D$()?Reflect.construct(e,r||[],Rh(t).constructor):e.apply(t,r))}function pZ(t,e){if(e&&(Ts(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gZ(t)}function gZ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function D$(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D$=function(){return!!t})()}function Rh(t){return Rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rh(t)}function yZ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qw(t,e)}function Qw(t,e){return Qw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qw(t,e)}function oi(t,e,r){return e=$$(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $$(t){var e=vZ(t,"string");return Ts(e)=="symbol"?e:e+""}function vZ(t,e){if(Ts(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ts(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Mu=(function(t){function e(){var r;fZ(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=mZ(this,e,[].concat(i)),oi(r,"state",{isAnimationFinished:!1}),oi(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Ne(o)&&o()}),oi(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Ne(o)&&o()}),oi(r,"handleMouseEnter",function(o){var l=r.props.onMouseEnter;l&&l(r.props,o)}),oi(r,"handleMouseLeave",function(o){var l=r.props.onMouseLeave;l&&l(r.props,o)}),r}return yZ(e,t),hZ(e,[{key:"renderDots",value:function(n){var i=this.props,a=i.dot,o=i.dataKey,l=Se(this.props,!1),u=Se(a,!0),d=n.map(function(h,m){var g=ir(ir(ir({key:"dot-".concat(m),r:3},l),u),{},{dataKey:o,cx:h.x,cy:h.y,index:m,payload:h});return e.renderDotItem(a,g)});return $.createElement(He,{className:"recharts-radar-dots"},d)}},{key:"renderPolygonStatically",value:function(n){var i=this.props,a=i.shape,o=i.dot,l=i.isRange,u=i.baseLinePoints,d=i.connectNulls,h;return $.isValidElement(a)?h=$.cloneElement(a,ir(ir({},this.props),{},{points:n})):Ne(a)?h=a(ir(ir({},this.props),{},{points:n})):h=$.createElement(O$,Ih({},Se(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:n,baseLinePoints:l?u:null,connectNulls:d})),$.createElement(He,{className:"recharts-radar-polygon"},h,o?this.renderDots(n):null)}},{key:"renderPolygonWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,d=i.animationEasing,h=i.animationId,m=this.state.prevPoints;return $.createElement(Wn,{begin:l,duration:u,isActive:o,easing:d,from:{t:0},to:{t:1},key:"radar-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var v=g.t,b=m&&m.length/a.length,w=a.map(function(x,k){var P=m&&m[Math.floor(k*b)];if(P){var A=ar(P.x,x.x),E=ar(P.y,x.y);return ir(ir({},x),{},{x:A(v),y:E(v)})}var T=ar(x.cx,x.x),_=ar(x.cy,x.y);return ir(ir({},x),{},{x:T(v),y:_(v)})});return n.renderPolygonStatically(w)})}},{key:"renderPolygon",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=n.isRange,l=this.state.prevPoints;return a&&i&&i.length&&!o&&(!l||!Nu(l,i))?this.renderPolygonWithAnimation():this.renderPolygonStatically(i)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.className,o=n.points,l=n.isAnimationActive;if(i||!o||!o.length)return null;var u=this.state.isAnimationFinished,d=Ie("recharts-radar",a);return $.createElement(He,{className:d},this.renderPolygon(),(!l||u)&&yi.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"renderDotItem",value:function(n,i){var a;if($.isValidElement(n))a=$.cloneElement(n,i);else if(Ne(n))a=n(i);else{var o=i.key,l=uZ(i,cZ);a=$.createElement(Cu,Ih({},l,{key:o,className:Ie("recharts-radar-dot",typeof n!="boolean"?n.className:"")}))}return a}}])})(N.PureComponent);oi(Mu,"displayName","Radar");oi(Mu,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!ho.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});oi(Mu,"getComposedData",function(t){var e=t.radiusAxis,r=t.angleAxis,n=t.displayedData,i=t.dataKey,a=t.bandSize,o=r.cx,l=r.cy,u=!1,d=[],h=r.type!=="number"?a??0:0;n.forEach(function(g,v){var b=cr(g,r.dataKey,v),w=cr(g,i),x=r.scale(b)+h,k=Array.isArray(w)?w$(w):w,P=Re(k)?void 0:e.scale(k);Array.isArray(w)&&w.length>=2&&(u=!0),d.push(ir(ir({},Ye(o,l,P,x)),{},{name:b,value:w,cx:o,cy:l,radius:P,angle:x,payload:g}))});var m=[];return u&&d.forEach(function(g){if(Array.isArray(g.value)){var v=lZ(g.value),b=Re(v)?void 0:e.scale(v);m.push(ir(ir({},g),{},{radius:b},Ye(o,l,b,g.angle)))}else m.push(g)}),{points:d,isRange:u,baseLinePoints:m}});var Gb,PI;function xZ(){if(PI)return Gb;PI=1;var t=Math.ceil,e=Math.max;function r(n,i,a,o){for(var l=-1,u=e(t((i-n)/(a||1)),0),d=Array(u);u--;)d[o?u:++l]=n,n+=a;return d}return Gb=r,Gb}var Kb,TI;function F$(){if(TI)return Kb;TI=1;var t=s2(),e=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=t(i),i===e||i===-e){var a=i<0?-1:1;return a*r}return i===i?i:0}return Kb=n,Kb}var Yb,AI;function bZ(){if(AI)return Yb;AI=1;var t=xZ(),e=Om(),r=F$();function n(i){return function(a,o,l){return l&&typeof l!="number"&&e(a,o,l)&&(o=l=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),l=l===void 0?a<o?1:-1:r(l),t(a,o,l,i)}}return Yb=n,Yb}var Xb,EI;function wZ(){if(EI)return Xb;EI=1;var t=bZ(),e=t();return Xb=e,Xb}var SZ=wZ();const Mh=qe(SZ);function iu(t){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iu(t)}function _I(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function NI(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_I(Object(r),!0).forEach(function(n){B$(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_I(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function B$(t,e,r){return e=kZ(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kZ(t){var e=jZ(t,"string");return iu(e)=="symbol"?e:e+""}function jZ(t,e){if(iu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(iu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var PZ=["Webkit","Moz","O","ms"],TZ=function(e,r){var n=e.replace(/(\w)/,function(a){return a.toUpperCase()}),i=PZ.reduce(function(a,o){return NI(NI({},a),{},B$({},o+n,r))},{});return i[e]=r,i};function As(t){"@babel/helpers - typeof";return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},As(t)}function Lh(){return Lh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Lh.apply(this,arguments)}function OI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Jb(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?OI(Object(r),!0).forEach(function(n){Ar(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):OI(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function AZ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,V$(n.key),n)}}function EZ(t,e,r){return e&&CI(t.prototype,e),r&&CI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function _Z(t,e,r){return e=Dh(e),NZ(t,z$()?Reflect.construct(e,r||[],Dh(t).constructor):e.apply(t,r))}function NZ(t,e){if(e&&(As(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OZ(t)}function OZ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function z$(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z$=function(){return!!t})()}function Dh(t){return Dh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dh(t)}function CZ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zw(t,e)}function Zw(t,e){return Zw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zw(t,e)}function Ar(t,e,r){return e=V$(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function V$(t){var e=IZ(t,"string");return As(e)=="symbol"?e:e+""}function IZ(t,e){if(As(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(As(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var RZ=function(e){var r=e.data,n=e.startIndex,i=e.endIndex,a=e.x,o=e.width,l=e.travellerWidth;if(!r||!r.length)return{};var u=r.length,d=fc().domain(Mh(0,u)).range([a,a+o-l]),h=d.domain().map(function(m){return d(m)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(n),endX:d(i),scale:d,scaleValues:h}},II=function(e){return e.changedTouches&&!!e.changedTouches.length},Es=(function(t){function e(r){var n;return AZ(this,e),n=_Z(this,e,[r]),Ar(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ar(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ar(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,l=i.startIndex;o==null||o({endIndex:a,startIndex:l})}),n.detachDragEndListener()}),Ar(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ar(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ar(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ar(n,"handleSlideDragStart",function(i){var a=II(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return CZ(e,t),EZ(e,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,l=this.props,u=l.gap,d=l.data,h=d.length-1,m=Math.min(i,a),g=Math.max(i,a),v=e.getIndexInRange(o,m),b=e.getIndexInRange(o,g);return{startIndex:v-v%u,endIndex:b===h?h:b-b%u}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,l=i.dataKey,u=cr(a[n],l,n);return Ne(o)?o(u,n):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,l=i.endX,u=this.props,d=u.x,h=u.width,m=u.travellerWidth,g=u.startIndex,v=u.endIndex,b=u.onChange,w=n.pageX-a;w>0?w=Math.min(w,d+h-m-l,d+h-m-o):w<0&&(w=Math.max(w,d-o,d-l));var x=this.getIndex({startX:o+w,endX:l+w});(x.startIndex!==g||x.endIndex!==v)&&b&&b(x),this.setState({startX:o+w,endX:l+w,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=II(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,l=i.endX,u=i.startX,d=this.state[o],h=this.props,m=h.x,g=h.width,v=h.travellerWidth,b=h.onChange,w=h.gap,x=h.data,k={startX:this.state.startX,endX:this.state.endX},P=n.pageX-a;P>0?P=Math.min(P,m+g-v-d):P<0&&(P=Math.max(P,m-d)),k[o]=d+P;var A=this.getIndex(k),E=A.startIndex,T=A.endIndex,_=function(){var I=x.length-1;return o==="startX"&&(l>u?E%w===0:T%w===0)||l<u&&T===I||o==="endX"&&(l>u?T%w===0:E%w===0)||l>u&&T===I};this.setState(Ar(Ar({},o,d+P),"brushMoveStartX",n.pageX),function(){b&&_()&&b(A)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,l=o.scaleValues,u=o.startX,d=o.endX,h=this.state[i],m=l.indexOf(h);if(m!==-1){var g=m+n;if(!(g===-1||g>=l.length)){var v=l[g];i==="startX"&&v>=d||i==="endX"&&v<=u||this.setState(Ar({},i,v),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.fill,d=n.stroke;return $.createElement("rect",{stroke:d,fill:u,x:i,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.data,d=n.children,h=n.padding,m=N.Children.only(d);return m?$.cloneElement(m,{x:i,y:a,width:o,height:l,margin:h,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,l=this,u=this.props,d=u.y,h=u.travellerWidth,m=u.height,g=u.traveller,v=u.ariaLabel,b=u.data,w=u.startIndex,x=u.endIndex,k=Math.max(n,this.props.x),P=Jb(Jb({},Se(this.props,!1)),{},{x:k,y:d,width:h,height:m}),A=v||"Min value: ".concat((a=b[w])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=b[x])===null||o===void 0?void 0:o.name);return $.createElement(He,{tabIndex:0,role:"slider","aria-label":A,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(T){["ArrowLeft","ArrowRight"].includes(T.key)&&(T.preventDefault(),T.stopPropagation(),l.handleTravellerMoveKeyboard(T.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(g,P))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,l=a.height,u=a.stroke,d=a.travellerWidth,h=Math.min(n,i)+d,m=Math.max(Math.abs(i-n)-d,0);return $.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:h,y:o,width:m,height:l})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,l=n.height,u=n.travellerWidth,d=n.stroke,h=this.state,m=h.startX,g=h.endX,v=5,b={pointerEvents:"none",fill:d};return $.createElement(He,{className:"recharts-brush-texts"},$.createElement(vs,Lh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(m,g)-v,y:o+l/2},b),this.getTextOfTick(i)),$.createElement(vs,Lh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(m,g)+u+v,y:o+l/2},b),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,l=n.x,u=n.y,d=n.width,h=n.height,m=n.alwaysShowText,g=this.state,v=g.startX,b=g.endX,w=g.isTextActive,x=g.isSlideMoving,k=g.isTravellerMoving,P=g.isTravellerFocused;if(!i||!i.length||!ue(l)||!ue(u)||!ue(d)||!ue(h)||d<=0||h<=0)return null;var A=Ie("recharts-brush",a),E=$.Children.count(o)===1,T=TZ("userSelect","none");return $.createElement(He,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:T},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(v,b),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(b,"endX"),(w||x||k||P||m)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,l=n.height,u=n.stroke,d=Math.floor(a+l/2)-1;return $.createElement($.Fragment,null,$.createElement("rect",{x:i,y:a,width:o,height:l,fill:u,stroke:"none"}),$.createElement("line",{x1:i+1,y1:d,x2:i+o-1,y2:d,fill:"none",stroke:"#fff"}),$.createElement("line",{x1:i+1,y1:d+2,x2:i+o-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return $.isValidElement(n)?a=$.cloneElement(n,i):Ne(n)?a=n(i):a=e.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,l=n.x,u=n.travellerWidth,d=n.updateId,h=n.startIndex,m=n.endIndex;if(a!==i.prevData||d!==i.prevUpdateId)return Jb({prevData:a,prevTravellerWidth:u,prevUpdateId:d,prevX:l,prevWidth:o},a&&a.length?RZ({data:a,width:o,x:l,travellerWidth:u,startIndex:h,endIndex:m}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||l!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([l,l+o-u]);var g=i.scale.domain().map(function(v){return i.scale(v)});return{prevData:a,prevTravellerWidth:u,prevUpdateId:d,prevX:l,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:g}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,l=a-1;l-o>1;){var u=Math.floor((o+l)/2);n[u]>i?l=u:o=u}return i>=n[l]?l:o}}])})(N.PureComponent);Ar(Es,"displayName","Brush");Ar(Es,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Qb,RI;function MZ(){if(RI)return Qb;RI=1;var t=R1();function e(r,n){var i;return t(r,function(a,o,l){return i=n(a,o,l),!i}),!!i}return Qb=e,Qb}var Zb,MI;function LZ(){if(MI)return Zb;MI=1;var t=$D(),e=Kn(),r=MZ(),n=wr(),i=Om();function a(o,l,u){var d=n(o)?t:r;return u&&i(o,l,u)&&(l=void 0),d(o,e(l,3))}return Zb=a,Zb}var DZ=LZ();const $Z=qe(DZ);var Fn=function(e,r){var n=e.alwaysShow,i=e.ifOverflow;return n&&(i="extendDomain"),i===r},e0,LI;function FZ(){if(LI)return e0;LI=1;var t=r2();function e(r,n,i){n=="__proto__"&&t?t(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return e0=e,e0}var t0,DI;function BZ(){if(DI)return t0;DI=1;var t=FZ(),e=e2(),r=Kn();function n(i,a){var o={};return a=r(a,3),e(i,function(l,u,d){t(o,u,a(l,u,d))}),o}return t0=n,t0}var zZ=BZ();const VZ=qe(zZ);var r0,$I;function UZ(){if($I)return r0;$I=1;function t(e,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(!r(e[n],n,e))return!1;return!0}return r0=t,r0}var n0,FI;function WZ(){if(FI)return n0;FI=1;var t=R1();function e(r,n){var i=!0;return t(r,function(a,o,l){return i=!!n(a,o,l),i}),i}return n0=e,n0}var i0,BI;function HZ(){if(BI)return i0;BI=1;var t=UZ(),e=WZ(),r=Kn(),n=wr(),i=Om();function a(o,l,u){var d=n(o)?t:e;return u&&i(o,l,u)&&(l=void 0),d(o,r(l,3))}return i0=a,i0}var qZ=HZ();const U$=qe(qZ);var GZ=["x","y"];function au(t){"@babel/helpers - typeof";return au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},au(t)}function eS(){return eS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},eS.apply(this,arguments)}function zI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function tc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zI(Object(r),!0).forEach(function(n){KZ(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zI(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function KZ(t,e,r){return e=YZ(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function YZ(t){var e=XZ(t,"string");return au(e)=="symbol"?e:e+""}function XZ(t,e){if(au(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function JZ(t,e){if(t==null)return{};var r=QZ(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function QZ(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function ZZ(t,e){var r=t.x,n=t.y,i=JZ(t,GZ),a="".concat(r),o=parseInt(a,10),l="".concat(n),u=parseInt(l,10),d="".concat(e.height||i.height),h=parseInt(d,10),m="".concat(e.width||i.width),g=parseInt(m,10);return tc(tc(tc(tc(tc({},e),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:h,width:g,name:e.name,radius:e.radius})}function VI(t){return $.createElement(JQ,eS({shapeType:"rectangle",propTransformer:ZZ,activeClassName:"recharts-active-bar"},t))}var eee=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof e=="number")return e;var a=ue(n)||rW(n);return a?e(n,i):(a||oo(),r)}},tee=["value","background"],W$;function _s(t){"@babel/helpers - typeof";return _s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_s(t)}function ree(t,e){if(t==null)return{};var r=nee(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function nee(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function $h(){return $h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$h.apply(this,arguments)}function UI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function kt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?UI(Object(r),!0).forEach(function(n){oa(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):UI(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function iee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function WI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,q$(n.key),n)}}function aee(t,e,r){return e&&WI(t.prototype,e),r&&WI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function oee(t,e,r){return e=Fh(e),see(t,H$()?Reflect.construct(e,r||[],Fh(t).constructor):e.apply(t,r))}function see(t,e){if(e&&(_s(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lee(t)}function lee(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function H$(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H$=function(){return!!t})()}function Fh(t){return Fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fh(t)}function cee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tS(t,e)}function tS(t,e){return tS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tS(t,e)}function oa(t,e,r){return e=q$(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function q$(t){var e=uee(t,"string");return _s(e)=="symbol"?e:e+""}function uee(t,e){if(_s(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(_s(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Bn=(function(t){function e(){var r;iee(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=oee(this,e,[].concat(i)),oa(r,"state",{isAnimationFinished:!1}),oa(r,"id",ju("recharts-bar-")),oa(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),oa(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return cee(e,t),aee(e,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,l=a.dataKey,u=a.activeIndex,d=a.activeBar,h=Se(this.props,!1);return n&&n.map(function(m,g){var v=g===u,b=v?d:o,w=kt(kt(kt({},h),m),{},{isActive:v,option:b,index:g,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return $.createElement(He,$h({className:"recharts-bar-rectangle"},fs(i.props,m,g),{key:"rectangle-".concat(m==null?void 0:m.x,"-").concat(m==null?void 0:m.y,"-").concat(m==null?void 0:m.value,"-").concat(g)}),$.createElement(VI,w))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,l=i.isAnimationActive,u=i.animationBegin,d=i.animationDuration,h=i.animationEasing,m=i.animationId,g=this.state.prevData;return $.createElement(Wn,{begin:u,duration:d,isActive:l,easing:h,from:{t:0},to:{t:1},key:"bar-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var b=v.t,w=a.map(function(x,k){var P=g&&g[k];if(P){var A=ar(P.x,x.x),E=ar(P.y,x.y),T=ar(P.width,x.width),_=ar(P.height,x.height);return kt(kt({},x),{},{x:A(b),y:E(b),width:T(b),height:_(b)})}if(o==="horizontal"){var O=ar(0,x.height),I=O(b);return kt(kt({},x),{},{y:x.y+x.height-I,height:I})}var R=ar(0,x.width),D=R(b);return kt(kt({},x),{},{width:D})});return $.createElement(He,null,n.renderRectanglesStatically(w))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Nu(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,l=i.activeIndex,u=Se(this.props.background,!1);return a.map(function(d,h){d.value;var m=d.background,g=ree(d,tee);if(!m)return null;var v=kt(kt(kt(kt(kt({},g),{},{fill:"#eee"},m),u),fs(n.props,d,h)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:h,className:"recharts-bar-background-rectangle"});return $.createElement(VI,$h({key:"background-bar-".concat(h),option:n.props.background,isActive:h===l},v))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,l=a.xAxis,u=a.yAxis,d=a.layout,h=a.children,m=Hr(h,Ou);if(!m)return null;var g=d==="vertical"?o[0].height/2:o[0].width/2,v=function(x,k){var P=Array.isArray(x.value)?x.value[1]:x.value;return{x:x.x,y:x.y,value:P,errorVal:cr(x,k)}},b={clipPath:n?"url(#clipPath-".concat(i,")"):null};return $.createElement(He,b,m.map(function(w){return $.cloneElement(w,{key:"error-bar-".concat(i,"-").concat(w.props.dataKey),data:o,xAxis:l,yAxis:u,layout:d,offset:g,dataPointFormatter:v})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,l=n.xAxis,u=n.yAxis,d=n.left,h=n.top,m=n.width,g=n.height,v=n.isAnimationActive,b=n.background,w=n.id;if(i||!a||!a.length)return null;var x=this.state.isAnimationFinished,k=Ie("recharts-bar",o),P=l&&l.allowDataOverflow,A=u&&u.allowDataOverflow,E=P||A,T=Re(w)?this.id:w;return $.createElement(He,{className:k},P||A?$.createElement("defs",null,$.createElement("clipPath",{id:"clipPath-".concat(T)},$.createElement("rect",{x:P?d:d-m/2,y:A?h:h-g/2,width:P?m:m*2,height:A?g:g*2}))):null,$.createElement(He,{className:"recharts-bar-rectangles",clipPath:E?"url(#clipPath-".concat(T,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(E,T),(!v||x)&&yi.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(N.PureComponent);W$=Bn;oa(Bn,"displayName","Bar");oa(Bn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ho.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});oa(Bn,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,a=t.xAxis,o=t.yAxis,l=t.xAxisTicks,u=t.yAxisTicks,d=t.stackedData,h=t.dataStartIndex,m=t.displayedData,g=t.offset,v=y9(n,r);if(!v)return null;var b=e.layout,w=r.type.defaultProps,x=w!==void 0?kt(kt({},w),r.props):r.props,k=x.dataKey,P=x.children,A=x.minPointSize,E=b==="horizontal"?o:a,T=d?E.scale.domain():null,_=j9({numericAxis:E}),O=Hr(P,D1),I=m.map(function(R,D){var F,B,G,Y,z,K;d?F=v9(d[h+D],T):(F=cr(R,k),Array.isArray(F)||(F=[_,F]));var Q=eee(A,W$.defaultProps.minPointSize)(F[1],D);if(b==="horizontal"){var q,Z=[o.scale(F[0]),o.scale(F[1])],ee=Z[0],L=Z[1];B=pC({axis:a,ticks:l,bandSize:i,offset:v.offset,entry:R,index:D}),G=(q=L??ee)!==null&&q!==void 0?q:void 0,Y=v.size;var W=ee-L;if(z=Number.isNaN(W)?0:W,K={x:B,y:o.y,width:Y,height:o.height},Math.abs(Q)>0&&Math.abs(z)<Math.abs(Q)){var V=gn(z||Q)*(Math.abs(Q)-Math.abs(z));G-=V,z+=V}}else{var re=[a.scale(F[0]),a.scale(F[1])],de=re[0],Pe=re[1];if(B=de,G=pC({axis:o,ticks:u,bandSize:i,offset:v.offset,entry:R,index:D}),Y=Pe-de,z=v.size,K={x:a.x,y:G,width:a.width,height:z},Math.abs(Q)>0&&Math.abs(Y)<Math.abs(Q)){var De=gn(Y||Q)*(Math.abs(Q)-Math.abs(Y));Y+=De}}return kt(kt(kt({},R),{},{x:B,y:G,width:Y,height:z,value:d?F:F[1],payload:R,background:K},O&&O[D]&&O[D].props),{},{tooltipPayload:[y$(r,R)],tooltipPosition:{x:B+Y/2,y:G+z/2}})});return kt({data:I,layout:b},g)});function ou(t){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ou(t)}function dee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,G$(n.key),n)}}function fee(t,e,r){return e&&HI(t.prototype,e),r&&HI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function qI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function hn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qI(Object(r),!0).forEach(function(n){Gm(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qI(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Gm(t,e,r){return e=G$(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function G$(t){var e=hee(t,"string");return ou(e)=="symbol"?e:e+""}function hee(t,e){if(ou(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ou(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var K$=function(e,r,n,i,a){var o=e.width,l=e.height,u=e.layout,d=e.children,h=Object.keys(r),m={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:l-n.bottom,bottomMirror:l-n.bottom},g=!!_r(d,Bn);return h.reduce(function(v,b){var w=r[b],x=w.orientation,k=w.domain,P=w.padding,A=P===void 0?{}:P,E=w.mirror,T=w.reversed,_="".concat(x).concat(E?"Mirror":""),O,I,R,D,F;if(w.type==="number"&&(w.padding==="gap"||w.padding==="no-gap")){var B=k[1]-k[0],G=1/0,Y=w.categoricalDomain.sort(aW);if(Y.forEach(function(re,de){de>0&&(G=Math.min((re||0)-(Y[de-1]||0),G))}),Number.isFinite(G)){var z=G/B,K=w.layout==="vertical"?n.height:n.width;if(w.padding==="gap"&&(O=z*K/2),w.padding==="no-gap"){var Q=yn(e.barCategoryGap,z*K),q=z*K/2;O=q-Q-(q-Q)/K*Q}}}i==="xAxis"?I=[n.left+(A.left||0)+(O||0),n.left+n.width-(A.right||0)-(O||0)]:i==="yAxis"?I=u==="horizontal"?[n.top+n.height-(A.bottom||0),n.top+(A.top||0)]:[n.top+(A.top||0)+(O||0),n.top+n.height-(A.bottom||0)-(O||0)]:I=w.range,T&&(I=[I[1],I[0]]);var Z=h$(w,a,g),ee=Z.scale,L=Z.realScaleType;ee.domain(k).range(I),m$(ee);var W=p$(ee,hn(hn({},w),{},{realScaleType:L}));i==="xAxis"?(F=x==="top"&&!E||x==="bottom"&&E,R=n.left,D=m[_]-F*w.height):i==="yAxis"&&(F=x==="left"&&!E||x==="right"&&E,R=m[_]-F*w.width,D=n.top);var V=hn(hn(hn({},w),W),{},{realScaleType:L,x:R,y:D,scale:ee,width:i==="xAxis"?n.width:w.width,height:i==="yAxis"?n.height:w.height});return V.bandSize=wh(V,W),!w.hide&&i==="xAxis"?m[_]+=(F?-1:1)*V.height:w.hide||(m[_]+=(F?-1:1)*V.width),hn(hn({},v),{},Gm({},b,V))},{})},Y$=function(e,r){var n=e.x,i=e.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},mee=function(e){var r=e.x1,n=e.y1,i=e.x2,a=e.y2;return Y$({x:r,y:n},{x:i,y:a})},X$=(function(){function t(e){dee(this,t),this.scale=e}return fee(t,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new t(r)}}])})();Gm(X$,"EPS",1e-4);var uk=function(e){var r=Object.keys(e).reduce(function(n,i){return hn(hn({},n),{},Gm({},i,X$.create(e[i])))},{});return hn(hn({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return VZ(i,function(u,d){return r[d].apply(u,{bandAware:o,position:l})})},isInRange:function(i){return U$(i,function(a,o){return r[o].isInRange(a)})}})};function pee(t){return(t%180+180)%180}var gee=function(e){var r=e.width,n=e.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=pee(i),o=a*Math.PI/180,l=Math.atan(n/r),u=o>l&&o<Math.PI-l?n/Math.sin(o):r/Math.cos(o);return Math.abs(u)},a0,GI;function yee(){if(GI)return a0;GI=1;var t=Kn(),e=Pu(),r=_m();function n(i){return function(a,o,l){var u=Object(a);if(!e(a)){var d=t(o,3);a=r(a),o=function(m){return d(u[m],m,u)}}var h=i(a,o,l);return h>-1?u[d?a[h]:h]:void 0}}return a0=n,a0}var o0,KI;function vee(){if(KI)return o0;KI=1;var t=F$();function e(r){var n=t(r),i=n%1;return n===n?i?n-i:n:0}return o0=e,o0}var s0,YI;function xee(){if(YI)return s0;YI=1;var t=YD(),e=Kn(),r=vee(),n=Math.max;function i(a,o,l){var u=a==null?0:a.length;if(!u)return-1;var d=l==null?0:r(l);return d<0&&(d=n(u+d,0)),t(a,e(o,3),d)}return s0=i,s0}var l0,XI;function bee(){if(XI)return l0;XI=1;var t=yee(),e=xee(),r=t(e);return l0=r,l0}var wee=bee();const See=qe(wee);var kee=dD();const jee=qe(kee);var Pee=jee(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),dk=N.createContext(void 0),fk=N.createContext(void 0),J$=N.createContext(void 0),Q$=N.createContext({}),Z$=N.createContext(void 0),eF=N.createContext(0),tF=N.createContext(0),JI=function(e){var r=e.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=e.clipPathId,l=e.children,u=e.width,d=e.height,h=Pee(a);return $.createElement(dk.Provider,{value:n},$.createElement(fk.Provider,{value:i},$.createElement(Q$.Provider,{value:a},$.createElement(J$.Provider,{value:h},$.createElement(Z$.Provider,{value:o},$.createElement(eF.Provider,{value:d},$.createElement(tF.Provider,{value:u},l)))))))},Tee=function(){return N.useContext(Z$)},rF=function(e){var r=N.useContext(dk);r==null&&oo();var n=r[e];return n==null&&oo(),n},Aee=function(){var e=N.useContext(dk);return ta(e)},Eee=function(){var e=N.useContext(fk),r=See(e,function(n){return U$(n.domain,Number.isFinite)});return r||ta(e)},nF=function(e){var r=N.useContext(fk);r==null&&oo();var n=r[e];return n==null&&oo(),n},_ee=function(){var e=N.useContext(J$);return e},Nee=function(){return N.useContext(Q$)},hk=function(){return N.useContext(tF)},mk=function(){return N.useContext(eF)};function Ns(t){"@babel/helpers - typeof";return Ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ns(t)}function Oee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cee(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,aF(n.key),n)}}function Iee(t,e,r){return e&&Cee(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ree(t,e,r){return e=Bh(e),Mee(t,iF()?Reflect.construct(e,r||[],Bh(t).constructor):e.apply(t,r))}function Mee(t,e){if(e&&(Ns(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lee(t)}function Lee(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function iF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iF=function(){return!!t})()}function Bh(t){return Bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bh(t)}function Dee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rS(t,e)}function rS(t,e){return rS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rS(t,e)}function QI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ZI(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?QI(Object(r),!0).forEach(function(n){pk(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):QI(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function pk(t,e,r){return e=aF(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aF(t){var e=$ee(t,"string");return Ns(e)=="symbol"?e:e+""}function $ee(t,e){if(Ns(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ns(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Fee(t,e){return Uee(t)||Vee(t,e)||zee(t,e)||Bee()}function Bee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 133In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zee(t,e){if(t){if(typeof t=="string")return eR(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eR(t,e)}}function eR(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Vee(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(h){d=!0,i=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function Uee(t){if(Array.isArray(t))return t}function nS(){return nS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},nS.apply(this,arguments)}var Wee=function(e,r){var n;return $.isValidElement(e)?n=$.cloneElement(e,r):Ne(e)?n=e(r):n=$.createElement("line",nS({},r,{className:"recharts-reference-line-line"})),n},Hee=function(e,r,n,i,a,o,l,u,d){var h=a.x,m=a.y,g=a.width,v=a.height;if(n){var b=d.y,w=e.y.apply(b,{position:o});if(Fn(d,"discard")&&!e.y.isInRange(w))return null;var x=[{x:h+g,y:w},{x:h,y:w}];return u==="left"?x.reverse():x}if(r){var k=d.x,P=e.x.apply(k,{position:o});if(Fn(d,"discard")&&!e.x.isInRange(P))return null;var A=[{x:P,y:m+v},{x:P,y:m}];return l==="top"?A.reverse():A}if(i){var E=d.segment,T=E.map(function(_){return e.apply(_,{position:o})});return Fn(d,"discard")&&$Z(T,function(_){return!e.isInRange(_)})?null:T}return null};function qee(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,a=t.yAxisId,o=t.shape,l=t.className,u=t.alwaysShow,d=Tee(),h=rF(i),m=nF(a),g=_ee();if(!d||!g)return null;pi(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=uk({x:h.scale,y:m.scale}),b=It(e),w=It(r),x=n&&n.length===2,k=Hee(v,b,w,x,g,t.position,h.orientation,m.orientation,t);if(!k)return null;var P=Fee(k,2),A=P[0],E=A.x,T=A.y,_=P[1],O=_.x,I=_.y,R=Fn(t,"hidden")?"url(#".concat(d,")"):void 0,D=ZI(ZI({clipPath:R},Se(t,!0)),{},{x1:E,y1:T,x2:O,y2:I});return $.createElement(He,{className:Ie("recharts-reference-line",l)},Wee(o,D),Kt.renderCallByParent(t,mee({x1:E,y1:T,x2:O,y2:I})))}var Km=(function(t){function e(){return Oee(this,e),Ree(this,e,arguments)}return Dee(e,t),Iee(e,[{key:"render",value:function(){return $.createElement(qee,this.props)}}])})($.Component);pk(Km,"displayName","ReferenceLine");pk(Km,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function iS(){return iS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},iS.apply(this,arguments)}function Os(t){"@babel/helpers - typeof";return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Os(t)}function tR(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function rR(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?tR(Object(r),!0).forEach(function(n){Ym(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tR(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Gee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kee(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sF(n.key),n)}}function Yee(t,e,r){return e&&Kee(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Xee(t,e,r){return e=zh(e),Jee(t,oF()?Reflect.construct(e,r||[],zh(t).constructor):e.apply(t,r))}function Jee(t,e){if(e&&(Os(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qee(t)}function Qee(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oF=function(){return!!t})()}function zh(t){return zh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zh(t)}function Zee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&aS(t,e)}function aS(t,e){return aS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},aS(t,e)}function Ym(t,e,r){return e=sF(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sF(t){var e=ete(t,"string");return Os(e)=="symbol"?e:e+""}function ete(t,e){if(Os(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Os(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var tte=function(e){var r=e.x,n=e.y,i=e.xAxis,a=e.yAxis,o=uk({x:i.scale,y:a.scale}),l=o.apply({x:r,y:n},{bandAware:!0});return Fn(e,"discard")&&!o.isInRange(l)?null:l},Xm=(function(t){function e(){return Gee(this,e),Xee(this,e,arguments)}return Zee(e,t),Yee(e,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,l=n.alwaysShow,u=n.clipPathId,d=It(i),h=It(a);if(pi(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!h)return null;var m=tte(this.props);if(!m)return null;var g=m.x,v=m.y,b=this.props,w=b.shape,x=b.className,k=Fn(this.props,"hidden")?"url(#".concat(u,")"):void 0,P=rR(rR({clipPath:k},Se(this.props,!0)),{},{cx:g,cy:v});return $.createElement(He,{className:Ie("recharts-reference-dot",x)},e.renderDot(w,P),Kt.renderCallByParent(this.props,{x:g-o,y:v-o,width:2*o,height:2*o}))}}])})($.Component);Ym(Xm,"displayName","ReferenceDot");Ym(Xm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Ym(Xm,"renderDot",function(t,e){var r;return $.isValidElement(t)?r=$.cloneElement(t,e):Ne(t)?r=t(e):r=$.createElement(Cu,iS({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"})),r});function oS(){return oS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oS.apply(this,arguments)}function Cs(t){"@babel/helpers - typeof";return Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cs(t)}function nR(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function iR(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?nR(Object(r),!0).forEach(function(n){Jm(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nR(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function rte(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nte(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,cF(n.key),n)}}function ite(t,e,r){return e&&nte(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ate(t,e,r){return e=Vh(e),ote(t,lF()?Reflect.construct(e,r||[],Vh(t).constructor):e.apply(t,r))}function ote(t,e){if(e&&(Cs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ste(t)}function ste(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lF=function(){return!!t})()}function Vh(t){return Vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vh(t)}function lte(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sS(t,e)}function sS(t,e){return sS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sS(t,e)}function Jm(t,e,r){return e=cF(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cF(t){var e=cte(t,"string");return Cs(e)=="symbol"?e:e+""}function cte(t,e){if(Cs(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Cs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var ute=function(e,r,n,i,a){var o=a.x1,l=a.x2,u=a.y1,d=a.y2,h=a.xAxis,m=a.yAxis;if(!h||!m)return null;var g=uk({x:h.scale,y:m.scale}),v={x:e?g.x.apply(o,{position:"start"}):g.x.rangeMin,y:n?g.y.apply(u,{position:"start"}):g.y.rangeMin},b={x:r?g.x.apply(l,{position:"end"}):g.x.rangeMax,y:i?g.y.apply(d,{position:"end"}):g.y.rangeMax};return Fn(a,"discard")&&(!g.isInRange(v)||!g.isInRange(b))?null:Y$(v,b)},Qm=(function(t){function e(){return rte(this,e),ate(this,e,arguments)}return lte(e,t),ite(e,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,l=n.y2,u=n.className,d=n.alwaysShow,h=n.clipPathId;pi(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=It(i),g=It(a),v=It(o),b=It(l),w=this.props.shape;if(!m&&!g&&!v&&!b&&!w)return null;var x=ute(m,g,v,b,this.props);if(!x&&!w)return null;var k=Fn(this.props,"hidden")?"url(#".concat(h,")"):void 0;return $.createElement(He,{className:Ie("recharts-reference-area",u)},e.renderRect(w,iR(iR({clipPath:k},Se(this.props,!0)),x)),Kt.renderCallByParent(this.props,x))}}])})($.Component);Jm(Qm,"displayName","ReferenceArea");Jm(Qm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Jm(Qm,"renderRect",function(t,e){var r;return $.isValidElement(t)?r=$.cloneElement(t,e):Ne(t)?r=t(e):r=$.createElement(ck,oS({},e,{className:"recharts-reference-area-rect"})),r});function uF(t,e,r){if(e<1)return[];if(e===1&&r===void 0)return t;for(var n=[],i=0;i<t.length;i+=e)n.push(t[i]);return n}function dte(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return gee(n,r)}function fte(t,e,r){var n=r==="width",i=t.x,a=t.y,o=t.width,l=t.height;return e===1?{start:n?i:a,end:n?i+o:a+l}:{start:n?i+o:a+l,end:n?i:a}}function Uh(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var a=r();return t*(e-t*a/2-n)>=0&&t*(e+t*a/2-i)<=0}function hte(t,e){return uF(t,e+1)}function mte(t,e,r,n,i){for(var a=(n||[]).slice(),o=e.start,l=e.end,u=0,d=1,h=o,m=function(){var b=n==null?void 0:n[u];if(b===void 0)return{v:uF(n,d)};var w=u,x,k=function(){return x===void 0&&(x=r(b,w)),x},P=b.coordinate,A=u===0||Uh(t,P,k,h,l);A||(u=0,h=o,d+=1),A&&(h=P+t*(k()/2+i),u+=d)},g;d<=a.length;)if(g=m(),g)return g.v;return[]}function su(t){"@babel/helpers - typeof";return su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},su(t)}function aR(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function er(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?aR(Object(r),!0).forEach(function(n){pte(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aR(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function pte(t,e,r){return e=gte(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gte(t){var e=yte(t,"string");return su(e)=="symbol"?e:e+""}function yte(t,e){if(su(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(su(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vte(t,e,r,n,i){for(var a=(n||[]).slice(),o=a.length,l=e.start,u=e.end,d=function(g){var v=a[g],b,w=function(){return b===void 0&&(b=r(v,g)),b};if(g===o-1){var x=t*(v.coordinate+t*w()/2-u);a[g]=v=er(er({},v),{},{tickCoord:x>0?v.coordinate-x*t:v.coordinate})}else a[g]=v=er(er({},v),{},{tickCoord:v.coordinate});var k=Uh(t,v.tickCoord,w,l,u);k&&(u=v.tickCoord-t*(w()/2+i),a[g]=er(er({},v),{},{isShow:!0}))},h=o-1;h>=0;h--)d(h);return a}function xte(t,e,r,n,i,a){var o=(n||[]).slice(),l=o.length,u=e.start,d=e.end;if(a){var h=n[l-1],m=r(h,l-1),g=t*(h.coordinate+t*m/2-d);o[l-1]=h=er(er({},h),{},{tickCoord:g>0?h.coordinate-g*t:h.coordinate});var v=Uh(t,h.tickCoord,function(){return m},u,d);v&&(d=h.tickCoord-t*(m/2+i),o[l-1]=er(er({},h),{},{isShow:!0}))}for(var b=a?l-1:l,w=function(P){var A=o[P],E,T=function(){return E===void 0&&(E=r(A,P)),E};if(P===0){var _=t*(A.coordinate-t*T()/2-u);o[P]=A=er(er({},A),{},{tickCoord:_<0?A.coordinate-_*t:A.coordinate})}else o[P]=A=er(er({},A),{},{tickCoord:A.coordinate});var O=Uh(t,A.tickCoord,T,u,d);O&&(u=A.tickCoord+t*(T()/2+i),o[P]=er(er({},A),{},{isShow:!0}))},x=0;x<b;x++)w(x);return o}function gk(t,e,r){var n=t.tick,i=t.ticks,a=t.viewBox,o=t.minTickGap,l=t.orientation,u=t.interval,d=t.tickFormatter,h=t.unit,m=t.angle;if(!i||!i.length||!n)return[];if(ue(u)||ho.isSsr)return hte(i,typeof u=="number"&&ue(u)?u:0);var g=[],v=l==="top"||l==="bottom"?"width":"height",b=h&&v==="width"?dc(h,{fontSize:e,letterSpacing:r}):{width:0,height:0},w=function(A,E){var T=Ne(d)?d(A.value,E):A.value;return v==="width"?dte(dc(T,{fontSize:e,letterSpacing:r}),b,m):dc(T,{fontSize:e,letterSpacing:r})[v]},x=i.length>=2?gn(i[1].coordinate-i[0].coordinate):1,k=fte(a,x,v);return u==="equidistantPreserveStart"?mte(x,k,w,i,o):(u==="preserveStart"||u==="preserveStartEnd"?g=xte(x,k,w,i,o,u==="preserveStartEnd"):g=vte(x,k,w,i,o),g.filter(function(P){return P.isShow}))}var bte=["viewBox"],wte=["viewBox"],Ste=["ticks"];function Is(t){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Is(t)}function Jo(){return Jo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Jo.apply(this,arguments)}function oR(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function _t(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?oR(Object(r),!0).forEach(function(n){yk(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oR(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function c0(t,e){if(t==null)return{};var r=kte(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function kte(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function jte(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,fF(n.key),n)}}function Pte(t,e,r){return e&&sR(t.prototype,e),r&&sR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tte(t,e,r){return e=Wh(e),Ate(t,dF()?Reflect.construct(e,r||[],Wh(t).constructor):e.apply(t,r))}function Ate(t,e){if(e&&(Is(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ete(t)}function Ete(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dF=function(){return!!t})()}function Wh(t){return Wh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wh(t)}function _te(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lS(t,e)}function lS(t,e){return lS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lS(t,e)}function yk(t,e,r){return e=fF(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fF(t){var e=Nte(t,"string");return Is(e)=="symbol"?e:e+""}function Nte(t,e){if(Is(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Is(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var el=(function(t){function e(r){var n;return jte(this,e),n=Tte(this,e,[r]),n.state={fontSize:"",letterSpacing:""},n}return _te(e,t),Pte(e,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=c0(n,bte),l=this.props,u=l.viewBox,d=c0(l,wte);return!ns(a,u)||!ns(o,d)||!ns(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,l=i.width,u=i.height,d=i.orientation,h=i.tickSize,m=i.mirror,g=i.tickMargin,v,b,w,x,k,P,A=m?-1:1,E=n.tickSize||h,T=ue(n.tickCoord)?n.tickCoord:n.coordinate;switch(d){case"top":v=b=n.coordinate,x=o+ +!m*u,w=x-A*E,P=w-A*g,k=T;break;case"left":w=x=n.coordinate,b=a+ +!m*l,v=b-A*E,k=v-A*g,P=T;break;case"right":w=x=n.coordinate,b=a+ +m*l,v=b+A*E,k=v+A*g,P=T;break;default:v=b=n.coordinate,x=o+ +m*u,w=x+A*E,P=w+A*g,k=T;break}return{line:{x1:v,y1:w,x2:b,y2:x},tick:{x:k,y:P}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.orientation,d=n.mirror,h=n.axisLine,m=_t(_t(_t({},Se(this.props,!1)),Se(h,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var g=+(u==="top"&&!d||u==="bottom"&&d);m=_t(_t({},m),{},{x1:i,y1:a+g*l,x2:i+o,y2:a+g*l})}else{var v=+(u==="left"&&!d||u==="right"&&d);m=_t(_t({},m),{},{x1:i+v*o,y1:a,x2:i+v*o,y2:a+l})}return $.createElement("line",Jo({},m,{className:Ie("recharts-cartesian-axis-line",Wr(h,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,l=this.props,u=l.tickLine,d=l.stroke,h=l.tick,m=l.tickFormatter,g=l.unit,v=gk(_t(_t({},this.props),{},{ticks:n}),i,a),b=this.getTickTextAnchor(),w=this.getTickVerticalAnchor(),x=Se(this.props,!1),k=Se(h,!1),P=_t(_t({},x),{},{fill:"none"},Se(u,!1)),A=v.map(function(E,T){var _=o.getTickLineCoord(E),O=_.line,I=_.tick,R=_t(_t(_t(_t({textAnchor:b,verticalAnchor:w},x),{},{stroke:"none",fill:d},k),I),{},{index:T,payload:E,visibleTicksCount:v.length,tickFormatter:m});return $.createElement(He,Jo({className:"recharts-cartesian-axis-tick",key:"tick-".concat(E.value,"-").concat(E.coordinate,"-").concat(E.tickCoord)},fs(o.props,E,T)),u&&$.createElement("line",Jo({},P,O,{className:Ie("recharts-cartesian-axis-tick-line",Wr(u,"className"))})),h&&e.renderTickItem(h,R,"".concat(Ne(m)?m(E.value,T):E.value).concat(g||"")))});return $.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,l=i.height,u=i.ticksGenerator,d=i.className,h=i.hide;if(h)return null;var m=this.props,g=m.ticks,v=c0(m,Ste),b=g;return Ne(u)&&(b=g&&g.length>0?u(this.props):u(v)),o<=0||l<=0||!b||!b.length?null:$.createElement(He,{className:Ie("recharts-cartesian-axis",d),ref:function(x){n.layerReference=x}},a&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),Kt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,l=Ie(i.className,"recharts-cartesian-axis-tick-value");return $.isValidElement(n)?o=$.cloneElement(n,_t(_t({},i),{},{className:l})):Ne(n)?o=n(_t(_t({},i),{},{className:l})):o=$.createElement(vs,Jo({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(N.Component);yk(el,"displayName","CartesianAxis");yk(el,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Ote=["x1","y1","x2","y2","key"],Cte=["offset"];function so(t){"@babel/helpers - typeof";return so=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},so(t)}function lR(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function tr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?lR(Object(r),!0).forEach(function(n){Ite(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lR(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ite(t,e,r){return e=Rte(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rte(t){var e=Mte(t,"string");return so(e)=="symbol"?e:e+""}function Mte(t,e){if(so(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(so(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ka(){return Ka=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ka.apply(this,arguments)}function cR(t,e){if(t==null)return{};var r=Lte(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Lte(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var Dte=function(e){var r=e.fill;if(!r||r==="none")return null;var n=e.fillOpacity,i=e.x,a=e.y,o=e.width,l=e.height,u=e.ry;return $.createElement("rect",{x:i,y:a,ry:u,width:o,height:l,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function hF(t,e){var r;if($.isValidElement(t))r=$.cloneElement(t,e);else if(Ne(t))r=t(e);else{var n=e.x1,i=e.y1,a=e.x2,o=e.y2,l=e.key,u=cR(e,Ote),d=Se(u,!1);d.offset;var h=cR(d,Cte);r=$.createElement("line",Ka({},h,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:l}))}return r}function $te(t){var e=t.x,r=t.width,n=t.horizontal,i=n===void 0?!0:n,a=t.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(l,u){var d=tr(tr({},t),{},{x1:e,y1:l,x2:e+r,y2:l,key:"line-".concat(u),index:u});return hF(i,d)});return $.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Fte(t){var e=t.y,r=t.height,n=t.vertical,i=n===void 0?!0:n,a=t.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(l,u){var d=tr(tr({},t),{},{x1:l,y1:e,x2:l,y2:e+r,key:"line-".concat(u),index:u});return hF(i,d)});return $.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Bte(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,i=t.y,a=t.width,o=t.height,l=t.horizontalPoints,u=t.horizontal,d=u===void 0?!0:u;if(!d||!e||!e.length)return null;var h=l.map(function(g){return Math.round(g+i-i)}).sort(function(g,v){return g-v});i!==h[0]&&h.unshift(0);var m=h.map(function(g,v){var b=!h[v+1],w=b?i+o-g:h[v+1]-g;if(w<=0)return null;var x=v%e.length;return $.createElement("rect",{key:"react-".concat(v),y:g,x:n,height:w,width:a,stroke:"none",fill:e[x],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return $.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function zte(t){var e=t.vertical,r=e===void 0?!0:e,n=t.verticalFill,i=t.fillOpacity,a=t.x,o=t.y,l=t.width,u=t.height,d=t.verticalPoints;if(!r||!n||!n.length)return null;var h=d.map(function(g){return Math.round(g+a-a)}).sort(function(g,v){return g-v});a!==h[0]&&h.unshift(0);var m=h.map(function(g,v){var b=!h[v+1],w=b?a+l-g:h[v+1]-g;if(w<=0)return null;var x=v%n.length;return $.createElement("rect",{key:"react-".concat(v),x:g,y:o,width:w,height:u,stroke:"none",fill:n[x],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return $.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var Vte=function(e,r){var n=e.xAxis,i=e.width,a=e.height,o=e.offset;return f$(gk(tr(tr(tr({},el.defaultProps),n),{},{ticks:ui(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},Ute=function(e,r){var n=e.yAxis,i=e.width,a=e.height,o=e.offset;return f$(gk(tr(tr(tr({},el.defaultProps),n),{},{ticks:ui(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Ho={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function bn(t){var e,r,n,i,a,o,l=hk(),u=mk(),d=Nee(),h=tr(tr({},t),{},{stroke:(e=t.stroke)!==null&&e!==void 0?e:Ho.stroke,fill:(r=t.fill)!==null&&r!==void 0?r:Ho.fill,horizontal:(n=t.horizontal)!==null&&n!==void 0?n:Ho.horizontal,horizontalFill:(i=t.horizontalFill)!==null&&i!==void 0?i:Ho.horizontalFill,vertical:(a=t.vertical)!==null&&a!==void 0?a:Ho.vertical,verticalFill:(o=t.verticalFill)!==null&&o!==void 0?o:Ho.verticalFill,x:ue(t.x)?t.x:d.left,y:ue(t.y)?t.y:d.top,width:ue(t.width)?t.width:d.width,height:ue(t.height)?t.height:d.height}),m=h.x,g=h.y,v=h.width,b=h.height,w=h.syncWithTicks,x=h.horizontalValues,k=h.verticalValues,P=Aee(),A=Eee();if(!ue(v)||v<=0||!ue(b)||b<=0||!ue(m)||m!==+m||!ue(g)||g!==+g)return null;var E=h.verticalCoordinatesGenerator||Vte,T=h.horizontalCoordinatesGenerator||Ute,_=h.horizontalPoints,O=h.verticalPoints;if((!_||!_.length)&&Ne(T)){var I=x&&x.length,R=T({yAxis:A?tr(tr({},A),{},{ticks:I?x:A.ticks}):void 0,width:l,height:u,offset:d},I?!0:w);pi(Array.isArray(R),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(so(R),"]")),Array.isArray(R)&&(_=R)}if((!O||!O.length)&&Ne(E)){var D=k&&k.length,F=E({xAxis:P?tr(tr({},P),{},{ticks:D?k:P.ticks}):void 0,width:l,height:u,offset:d},D?!0:w);pi(Array.isArray(F),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(so(F),"]")),Array.isArray(F)&&(O=F)}return $.createElement("g",{className:"recharts-cartesian-grid"},$.createElement(Dte,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),$.createElement($te,Ka({},h,{offset:d,horizontalPoints:_,xAxis:P,yAxis:A})),$.createElement(Fte,Ka({},h,{offset:d,verticalPoints:O,xAxis:P,yAxis:A})),$.createElement(Bte,Ka({},h,{horizontalPoints:_})),$.createElement(zte,Ka({},h,{verticalPoints:O})))}bn.displayName="CartesianGrid";var Wte=["type","layout","connectNulls","ref"],Hte=["key"];function Rs(t){"@babel/helpers - typeof";return Rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rs(t)}function uR(t,e){if(t==null)return{};var r=qte(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function qte(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function yc(){return yc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yc.apply(this,arguments)}function dR(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Tr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?dR(Object(r),!0).forEach(function(n){mn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dR(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qo(t){return Xte(t)||Yte(t)||Kte(t)||Gte()}function Gte(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 134In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kte(t,e){if(t){if(typeof t=="string")return cS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cS(t,e)}}function Yte(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Xte(t){if(Array.isArray(t))return cS(t)}function cS(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Jte(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pF(n.key),n)}}function Qte(t,e,r){return e&&fR(t.prototype,e),r&&fR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zte(t,e,r){return e=Hh(e),ere(t,mF()?Reflect.construct(e,r||[],Hh(t).constructor):e.apply(t,r))}function ere(t,e){if(e&&(Rs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tre(t)}function tre(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mF=function(){return!!t})()}function Hh(t){return Hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hh(t)}function rre(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&uS(t,e)}function uS(t,e){return uS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uS(t,e)}function mn(t,e,r){return e=pF(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pF(t){var e=nre(t,"string");return Rs(e)=="symbol"?e:e+""}function nre(t,e){if(Rs(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Rs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Rt=(function(t){function e(){var r;Jte(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Zte(this,e,[].concat(i)),mn(r,"state",{isAnimationFinished:!0,totalLength:0}),mn(r,"generateSimpleStrokeDasharray",function(o,l){return"".concat(l,"px ").concat(o-l,"px")}),mn(r,"getStrokeDasharray",function(o,l,u){var d=u.reduce(function(k,P){return k+P});if(!d)return r.generateSimpleStrokeDasharray(l,o);for(var h=Math.floor(o/d),m=o%d,g=l-o,v=[],b=0,w=0;b<u.length;w+=u[b],++b)if(w+u[b]>m){v=[].concat(qo(u.slice(0,b)),[m-w]);break}var x=v.length%2===0?[0,g]:[g];return[].concat(qo(e.repeat(u,h)),qo(v),x).map(function(k){return"".concat(k,"px")}).join(", ")}),mn(r,"id",ju("recharts-line-")),mn(r,"pathRef",function(o){r.mainCurve=o}),mn(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),mn(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return rre(e,t),Qte(e,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,l=a.xAxis,u=a.yAxis,d=a.layout,h=a.children,m=Hr(h,Ou);if(!m)return null;var g=function(w,x){return{x:w.x,y:w.y,value:w.value,errorVal:cr(w.payload,x)}},v={clipPath:n?"url(#clipPath-".concat(i,")"):null};return $.createElement(He,v,m.map(function(b){return $.cloneElement(b,{key:"bar-".concat(b.props.dataKey),data:o,xAxis:l,yAxis:u,layout:d,dataPointFormatter:g})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,u=l.dot,d=l.points,h=l.dataKey,m=Se(this.props,!1),g=Se(u,!0),v=d.map(function(w,x){var k=Tr(Tr(Tr({key:"dot-".concat(x),r:3},m),g),{},{index:x,cx:w.x,cy:w.y,value:w.value,dataKey:h,payload:w.payload,points:d});return e.renderDotItem(u,k)}),b={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return $.createElement(He,yc({className:"recharts-line-dots",key:"dots"},b),v)}},{key:"renderCurveStatically",value:function(n,i,a,o){var l=this.props,u=l.type,d=l.layout,h=l.connectNulls;l.ref;var m=uR(l,Wte),g=Tr(Tr(Tr({},Se(m,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:u,layout:d,connectNulls:h});return $.createElement(Dw,yc({},g,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,l=o.points,u=o.strokeDasharray,d=o.isAnimationActive,h=o.animationBegin,m=o.animationDuration,g=o.animationEasing,v=o.animationId,b=o.animateNewValues,w=o.width,x=o.height,k=this.state,P=k.prevPoints,A=k.totalLength;return $.createElement(Wn,{begin:h,duration:m,isActive:d,easing:g,from:{t:0},to:{t:1},key:"line-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(E){var T=E.t;if(P){var _=P.length/l.length,O=l.map(function(B,G){var Y=Math.floor(G*_);if(P[Y]){var z=P[Y],K=ar(z.x,B.x),Q=ar(z.y,B.y);return Tr(Tr({},B),{},{x:K(T),y:Q(T)})}if(b){var q=ar(w*2,B.x),Z=ar(x/2,B.y);return Tr(Tr({},B),{},{x:q(T),y:Z(T)})}return Tr(Tr({},B),{},{x:B.x,y:B.y})});return a.renderCurveStatically(O,n,i)}var I=ar(0,A),R=I(T),D;if(u){var F="".concat(u).split(/[,\s]+/gim).map(function(B){return parseFloat(B)});D=a.getStrokeDasharray(R,A,F)}else D=a.generateSimpleStrokeDasharray(A,R);return a.renderCurveStatically(l,n,i,{strokeDasharray:D})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,l=a.isAnimationActive,u=this.state,d=u.prevPoints,h=u.totalLength;return l&&o&&o.length&&(!d&&h>0||!Nu(d,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,l=i.points,u=i.className,d=i.xAxis,h=i.yAxis,m=i.top,g=i.left,v=i.width,b=i.height,w=i.isAnimationActive,x=i.id;if(a||!l||!l.length)return null;var k=this.state.isAnimationFinished,P=l.length===1,A=Ie("recharts-line",u),E=d&&d.allowDataOverflow,T=h&&h.allowDataOverflow,_=E||T,O=Re(x)?this.id:x,I=(n=Se(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},R=I.r,D=R===void 0?3:R,F=I.strokeWidth,B=F===void 0?2:F,G=mW(o)?o:{},Y=G.clipDot,z=Y===void 0?!0:Y,K=D*2+B;return $.createElement(He,{className:A},E||T?$.createElement("defs",null,$.createElement("clipPath",{id:"clipPath-".concat(O)},$.createElement("rect",{x:E?g:g-v/2,y:T?m:m-b/2,width:E?v:v*2,height:T?b:b*2})),!z&&$.createElement("clipPath",{id:"clipPath-dots-".concat(O)},$.createElement("rect",{x:g-K/2,y:m-K/2,width:v+K,height:b+K}))):null,!P&&this.renderCurve(_,O),this.renderErrorBar(_,O),(P||o)&&this.renderDots(_,z,O),(!w||k)&&yi.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(qo(n),[0]):n,o=[],l=0;l<i;++l)o=[].concat(qo(o),qo(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if($.isValidElement(n))a=$.cloneElement(n,i);else if(Ne(n))a=n(i);else{var o=i.key,l=uR(i,Hte),u=Ie("recharts-line-dot",typeof n!="boolean"?n.className:"");a=$.createElement(Cu,yc({key:o},l,{className:u}))}return a}}])})(N.PureComponent);mn(Rt,"displayName","Line");mn(Rt,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ho.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});mn(Rt,"getComposedData",function(t){var e=t.props,r=t.xAxis,n=t.yAxis,i=t.xAxisTicks,a=t.yAxisTicks,o=t.dataKey,l=t.bandSize,u=t.displayedData,d=t.offset,h=e.layout,m=u.map(function(g,v){var b=cr(g,o);return h==="horizontal"?{x:mC({axis:r,ticks:i,bandSize:l,entry:g,index:v}),y:Re(b)?null:n.scale(b),value:b,payload:g}:{x:Re(b)?null:r.scale(b),y:mC({axis:n,ticks:a,bandSize:l,entry:g,index:v}),value:b,payload:g}});return Tr({points:m,layout:h},d)});function Ms(t){"@babel/helpers - typeof";return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ms(t)}function ire(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function are(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,vF(n.key),n)}}function ore(t,e,r){return e&&are(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function sre(t,e,r){return e=qh(e),lre(t,gF()?Reflect.construct(e,r||[],qh(t).constructor):e.apply(t,r))}function lre(t,e){if(e&&(Ms(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cre(t)}function cre(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gF=function(){return!!t})()}function qh(t){return qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qh(t)}function ure(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dS(t,e)}function dS(t,e){return dS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dS(t,e)}function yF(t,e,r){return e=vF(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vF(t){var e=dre(t,"string");return Ms(e)=="symbol"?e:e+""}function dre(t,e){if(Ms(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ms(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function fS(){return fS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fS.apply(this,arguments)}function fre(t){var e=t.xAxisId,r=hk(),n=mk(),i=rF(e);return i==null?null:N.createElement(el,fS({},i,{className:Ie("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return ui(o,!0)}}))}var xr=(function(t){function e(){return ire(this,e),sre(this,e,arguments)}return ure(e,t),ore(e,[{key:"render",value:function(){return N.createElement(fre,this.props)}}])})(N.Component);yF(xr,"displayName","XAxis");yF(xr,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Ls(t){"@babel/helpers - typeof";return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ls(t)}function hre(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mre(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wF(n.key),n)}}function pre(t,e,r){return e&&mre(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function gre(t,e,r){return e=Gh(e),yre(t,xF()?Reflect.construct(e,r||[],Gh(t).constructor):e.apply(t,r))}function yre(t,e){if(e&&(Ls(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vre(t)}function vre(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xF=function(){return!!t})()}function Gh(t){return Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gh(t)}function xre(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hS(t,e)}function hS(t,e){return hS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hS(t,e)}function bF(t,e,r){return e=wF(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wF(t){var e=bre(t,"string");return Ls(e)=="symbol"?e:e+""}function bre(t,e){if(Ls(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ls(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function mS(){return mS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},mS.apply(this,arguments)}var wre=function(e){var r=e.yAxisId,n=hk(),i=mk(),a=nF(r);return a==null?null:N.createElement(el,mS({},a,{className:Ie("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(l){return ui(l,!0)}}))},br=(function(t){function e(){return hre(this,e),gre(this,e,arguments)}return xre(e,t),pre(e,[{key:"render",value:function(){return N.createElement(wre,this.props)}}])})(N.Component);bF(br,"displayName","YAxis");bF(br,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function hR(t){return Pre(t)||jre(t)||kre(t)||Sre()}function Sre(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 135In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kre(t,e){if(t){if(typeof t=="string")return pS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pS(t,e)}}function jre(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Pre(t){if(Array.isArray(t))return pS(t)}function pS(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var gS=function(e,r,n,i,a){var o=Hr(e,Km),l=Hr(e,Xm),u=[].concat(hR(o),hR(l)),d=Hr(e,Qm),h="".concat(i,"Id"),m=i[0],g=r;if(u.length&&(g=u.reduce(function(w,x){if(x.props[h]===n&&Fn(x.props,"extendDomain")&&ue(x.props[m])){var k=x.props[m];return[Math.min(w[0],k),Math.max(w[1],k)]}return w},g)),d.length){var v="".concat(m,"1"),b="".concat(m,"2");g=d.reduce(function(w,x){if(x.props[h]===n&&Fn(x.props,"extendDomain")&&ue(x.props[v])&&ue(x.props[b])){var k=x.props[v],P=x.props[b];return[Math.min(w[0],k,P),Math.max(w[1],k,P)]}return w},g)}return a&&a.length&&(g=a.reduce(function(w,x){return ue(x)?[Math.min(w[0],x),Math.max(w[1],x)]:w},g)),g},u0={exports:{}},mR;function Tre(){return mR||(mR=1,(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(u,d,h){this.fn=u,this.context=d,this.once=h||!1}function a(u,d,h,m,g){if(typeof h!="function")throw new TypeError("The listener must be a function");var v=new i(h,m||u,g),b=r?r+d:d;return u._events[b]?u._events[b].fn?u._events[b]=[u._events[b],v]:u._events[b].push(v):(u._events[b]=v,u._eventsCount++),u}function o(u,d){--u._eventsCount===0?u._events=new n:delete u._events[d]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var d=[],h,m;if(this._eventsCount===0)return d;for(m in h=this._events)e.call(h,m)&&d.push(r?m.slice(1):m);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(h)):d},l.prototype.listeners=function(d){var h=r?r+d:d,m=this._events[h];if(!m)return[];if(m.fn)return[m.fn];for(var g=0,v=m.length,b=new Array(v);g<v;g++)b[g]=m[g].fn;return b},l.prototype.listenerCount=function(d){var h=r?r+d:d,m=this._events[h];return m?m.fn?1:m.length:0},l.prototype.emit=function(d,h,m,g,v,b){var w=r?r+d:d;if(!this._events[w])return!1;var x=this._events[w],k=arguments.length,P,A;if(x.fn){switch(x.once&&this.removeListener(d,x.fn,void 0,!0),k){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,h),!0;case 3:return x.fn.call(x.context,h,m),!0;case 4:return x.fn.call(x.context,h,m,g),!0;case 5:return x.fn.call(x.context,h,m,g,v),!0;case 6:return x.fn.call(x.context,h,m,g,v,b),!0}for(A=1,P=new Array(k-1);A<k;A++)P[A-1]=arguments[A];x.fn.apply(x.context,P)}else{var E=x.length,T;for(A=0;A<E;A++)switch(x[A].once&&this.removeListener(d,x[A].fn,void 0,!0),k){case 1:x[A].fn.call(x[A].context);break;case 2:x[A].fn.call(x[A].context,h);break;case 3:x[A].fn.call(x[A].context,h,m);break;case 4:x[A].fn.call(x[A].context,h,m,g);break;default:if(!P)for(T=1,P=new Array(k-1);T<k;T++)P[T-1]=arguments[T];x[A].fn.apply(x[A].context,P)}}return!0},l.prototype.on=function(d,h,m){return a(this,d,h,m,!1)},l.prototype.once=function(d,h,m){return a(this,d,h,m,!0)},l.prototype.removeListener=function(d,h,m,g){var v=r?r+d:d;if(!this._events[v])return this;if(!h)return o(this,v),this;var b=this._events[v];if(b.fn)b.fn===h&&(!g||b.once)&&(!m||b.context===m)&&o(this,v);else{for(var w=0,x=[],k=b.length;w<k;w++)(b[w].fn!==h||g&&!b[w].once||m&&b[w].context!==m)&&x.push(b[w]);x.length?this._events[v]=x.length===1?x[0]:x:o(this,v)}return this},l.prototype.removeAllListeners=function(d){var h;return d?(h=r?r+d:d,this._events[h]&&o(this,h)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,t.exports=l})(u0)),u0.exports}var Are=Tre();const Ere=qe(Are);var d0=new Ere,f0="recharts.syncMouseEvents";function lu(t){"@babel/helpers - typeof";return lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lu(t)}function _re(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nre(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,SF(n.key),n)}}function Ore(t,e,r){return e&&Nre(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function h0(t,e,r){return e=SF(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function SF(t){var e=Cre(t,"string");return lu(e)=="symbol"?e:e+""}function Cre(t,e){if(lu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(lu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Ire=(function(){function t(){_re(this,t),h0(this,"activeIndex",0),h0(this,"coordinateList",[]),h0(this,"layout","horizontal")}return Ore(t,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,l=o===void 0?null:o,u=r.layout,d=u===void 0?null:u,h=r.offset,m=h===void 0?null:h,g=r.mouseHandlerCallback,v=g===void 0?null:g;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=l??this.container,this.layout=d??this.layout,this.offset=m??this.offset,this.mouseHandlerCallback=v??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,l=i.height,u=this.coordinateList[this.activeIndex].coordinate,d=((r=window)===null||r===void 0?void 0:r.scrollX)||0,h=((n=window)===null||n===void 0?void 0:n.scrollY)||0,m=a+u+d,g=o+this.offset.top+l/2+h;this.mouseHandlerCallback({pageX:m,pageY:g})}}}])})();function Rre(t,e,r){if(r==="number"&&e===!0&&Array.isArray(t)){var n=t==null?void 0:t[0],i=t==null?void 0:t[1];if(n&&i&&ue(n)&&ue(i))return!0}return!1}function Mre(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:t==="horizontal"?e.x-i:r.left+.5,y:t==="horizontal"?r.top+.5:e.y-i,width:t==="horizontal"?n:r.width-1,height:t==="horizontal"?r.height-1:n}}function kF(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,a=t.endAngle,o=Ye(e,r,n,i),l=Ye(e,r,n,a);return{points:[o,l],cx:e,cy:r,radius:n,startAngle:i,endAngle:a}}function Lre(t,e,r){var n,i,a,o;if(t==="horizontal")n=e.x,a=n,i=r.top,o=r.top+r.height;else if(t==="vertical")i=e.y,o=i,n=r.left,a=r.left+r.width;else if(e.cx!=null&&e.cy!=null)if(t==="centric"){var l=e.cx,u=e.cy,d=e.innerRadius,h=e.outerRadius,m=e.angle,g=Ye(l,u,d,m),v=Ye(l,u,h,m);n=g.x,i=g.y,a=v.x,o=v.y}else return kF(e);return[{x:n,y:i},{x:a,y:o}]}function cu(t){"@babel/helpers - typeof";return cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cu(t)}function pR(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function pf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pR(Object(r),!0).forEach(function(n){Dre(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pR(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Dre(t,e,r){return e=$re(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $re(t){var e=Fre(t,"string");return cu(e)=="symbol"?e:e+""}function Fre(t,e){if(cu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(cu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Bre(t){var e,r,n=t.element,i=t.tooltipEventType,a=t.isActive,o=t.activeCoordinate,l=t.activePayload,u=t.offset,d=t.activeTooltipIndex,h=t.tooltipAxisBandSize,m=t.layout,g=t.chartName,v=(e=n.props.cursor)!==null&&e!==void 0?e:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!v||!a||!o||g!=="ScatterChart"&&i!=="axis")return null;var b,w=Dw;if(g==="ScatterChart")b=o,w=UJ;else if(g==="BarChart")b=Mre(m,o,u,h),w=ck;else if(m==="radial"){var x=kF(o),k=x.cx,P=x.cy,A=x.radius,E=x.startAngle,T=x.endAngle;b={cx:k,cy:P,startAngle:E,endAngle:T,innerRadius:A,outerRadius:A},w=k$}else b={points:Lre(m,o,u)},w=Dw;var _=pf(pf(pf(pf({stroke:"#ccc",pointerEvents:"none"},u),b),Se(v,!1)),{},{payload:l,payloadIndex:d,className:Ie("recharts-tooltip-cursor",v.className)});return N.isValidElement(v)?N.cloneElement(v,_):N.createElement(w,_)}var zre=["item"],Vre=["children","className","width","height","style","compact","title","desc"];function Ds(t){"@babel/helpers - typeof";return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ds(t)}function Qo(){return Qo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Qo.apply(this,arguments)}function gR(t,e){return Hre(t)||Wre(t,e)||PF(t,e)||Ure()}function Ure(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 136In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wre(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(h){d=!0,i=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function Hre(t){if(Array.isArray(t))return t}function yR(t,e){if(t==null)return{};var r=qre(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function qre(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Gre(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kre(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,TF(n.key),n)}}function Yre(t,e,r){return e&&Kre(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Xre(t,e,r){return e=Kh(e),Jre(t,jF()?Reflect.construct(e,r||[],Kh(t).constructor):e.apply(t,r))}function Jre(t,e){if(e&&(Ds(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qre(t)}function Qre(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jF=function(){return!!t})()}function Kh(t){return Kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kh(t)}function Zre(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yS(t,e)}function yS(t,e){return yS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yS(t,e)}function $s(t){return rne(t)||tne(t)||PF(t)||ene()}function ene(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 137In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PF(t,e){if(t){if(typeof t=="string")return vS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vS(t,e)}}function tne(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function rne(t){if(Array.isArray(t))return vS(t)}function vS(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function vR(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vR(Object(r),!0).forEach(function(n){Te(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vR(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Te(t,e,r){return e=TF(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function TF(t){var e=nne(t,"string");return Ds(e)=="symbol"?e:e+""}function nne(t,e){if(Ds(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ds(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ine={xAxis:["bottom","top"],yAxis:["left","right"]},ane={width:"100%",height:"100%"},AF={x:0,y:0};function gf(t){return t}var one=function(e,r){return r==="horizontal"?e.x:r==="vertical"?e.y:r==="centric"?e.angle:e.radius},sne=function(e,r,n,i){var a=r.find(function(h){return h&&h.index===n});if(a){if(e==="horizontal")return{x:a.coordinate,y:i.y};if(e==="vertical")return{x:i.x,y:a.coordinate};if(e==="centric"){var o=a.coordinate,l=i.radius;return ne(ne(ne({},i),Ye(i.cx,i.cy,l,o)),{},{angle:o,radius:l})}var u=a.coordinate,d=i.angle;return ne(ne(ne({},i),Ye(i.cx,i.cy,u,d)),{},{angle:d,radius:u})}return AF},Zm=function(e,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(l,u){var d=u.props.data;return d&&d.length?[].concat($s(l),$s(d)):l},[]);return o.length>0?o:e&&e.length&&ue(i)&&ue(a)?e.slice(i,a+1):[]};function EF(t){return t==="number"?[0,"auto"]:void 0}var xS=function(e,r,n,i){var a=e.graphicalItems,o=e.tooltipAxis,l=Zm(r,e);return n<0||!a||!a.length||n>=l.length?null:a.reduce(function(u,d){var h,m=(h=d.props.data)!==null&&h!==void 0?h:r;m&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(m=m.slice(e.dataStartIndex,e.dataEndIndex+1));var g;if(o.dataKey&&!o.allowDuplicatedCategory){var v=m===void 0?l:m;g=Yf(v,o.dataKey,i)}else g=m&&m[n]||l[n];return g?[].concat($s(u),[y$(d,g)]):u},[])},xR=function(e,r,n,i){var a=i||{x:e.chartX,y:e.chartY},o=one(a,n),l=e.orderedTooltipTicks,u=e.tooltipAxis,d=e.tooltipTicks,h=d9(o,l,d,u);if(h>=0&&d){var m=d[h]&&d[h].value,g=xS(e,r,h,m),v=sne(n,l,h,a);return{activeTooltipIndex:h,activeLabel:m,activePayload:g,activeCoordinate:v}}return null},lne=function(e,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,u=r.dataStartIndex,d=r.dataEndIndex,h=e.layout,m=e.children,g=e.stackOffset,v=d$(h,a);return n.reduce(function(b,w){var x,k=w.type.defaultProps!==void 0?ne(ne({},w.type.defaultProps),w.props):w.props,P=k.type,A=k.dataKey,E=k.allowDataOverflow,T=k.allowDuplicatedCategory,_=k.scale,O=k.ticks,I=k.includeHidden,R=k[o];if(b[R])return b;var D=Zm(e.data,{graphicalItems:i.filter(function(W){var V,re=o in W.props?W.props[o]:(V=W.type.defaultProps)===null||V===void 0?void 0:V[o];return re===R}),dataStartIndex:u,dataEndIndex:d}),F=D.length,B,G,Y;Rre(k.domain,E,P)&&(B=Cw(k.domain,null,E),v&&(P==="number"||_!=="auto")&&(Y=hc(D,A,"category")));var z=EF(P);if(!B||B.length===0){var K,Q=(K=k.domain)!==null&&K!==void 0?K:z;if(A){if(B=hc(D,A,P),P==="category"&&v){var q=iW(B);T&&q?(G=B,B=Mh(0,F)):T||(B=vC(Q,B,w).reduce(function(W,V){return W.indexOf(V)>=0?W:[].concat($s(W),[V])},[]))}else if(P==="category")T?B=B.filter(function(W){return W!==""&&!Re(W)}):B=vC(Q,B,w).reduce(function(W,V){return W.indexOf(V)>=0||V===""||Re(V)?W:[].concat($s(W),[V])},[]);else if(P==="number"){var Z=g9(D,i.filter(function(W){var V,re,de=o in W.props?W.props[o]:(V=W.type.defaultProps)===null||V===void 0?void 0:V[o],Pe="hide"in W.props?W.props.hide:(re=W.type.defaultProps)===null||re===void 0?void 0:re.hide;return de===R&&(I||!Pe)}),A,a,h);Z&&(B=Z)}v&&(P==="number"||_!=="auto")&&(Y=hc(D,A,"category"))}else v?B=Mh(0,F):l&&l[R]&&l[R].hasStack&&P==="number"?B=g==="expand"?[0,1]:g$(l[R].stackGroups,u,d):B=u$(D,i.filter(function(W){var V=o in W.props?W.props[o]:W.type.defaultProps[o],re="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return V===R&&(I||!re)}),P,h,!0);if(P==="number")B=gS(m,B,R,a,O),Q&&(B=Cw(Q,B,E));else if(P==="category"&&Q){var ee=Q,L=B.every(function(W){return ee.indexOf(W)>=0});L&&(B=ee)}}return ne(ne({},b),{},Te({},R,ne(ne({},k),{},{axisType:a,domain:B,categoricalDomain:Y,duplicateDomain:G,originalDomain:(x=k.domain)!==null&&x!==void 0?x:z,isCategorical:v,layout:h})))},{})},cne=function(e,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,u=r.dataStartIndex,d=r.dataEndIndex,h=e.layout,m=e.children,g=Zm(e.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:d}),v=g.length,b=d$(h,a),w=-1;return n.reduce(function(x,k){var P=k.type.defaultProps!==void 0?ne(ne({},k.type.defaultProps),k.props):k.props,A=P[o],E=EF("number");if(!x[A]){w++;var T;return b?T=Mh(0,v):l&&l[A]&&l[A].hasStack?(T=g$(l[A].stackGroups,u,d),T=gS(m,T,A,a)):(T=Cw(E,u$(g,n.filter(function(_){var O,I,R=o in _.props?_.props[o]:(O=_.type.defaultProps)===null||O===void 0?void 0:O[o],D="hide"in _.props?_.props.hide:(I=_.type.defaultProps)===null||I===void 0?void 0:I.hide;return R===A&&!D}),"number",h),i.defaultProps.allowDataOverflow),T=gS(m,T,A,a)),ne(ne({},x),{},Te({},A,ne(ne({axisType:a},i.defaultProps),{},{hide:!0,orientation:Wr(ine,"".concat(a,".").concat(w%2),null),domain:T,originalDomain:E,isCategorical:b,layout:h})))}return x},{})},une=function(e,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,l=r.stackGroups,u=r.dataStartIndex,d=r.dataEndIndex,h=e.children,m="".concat(i,"Id"),g=Hr(h,a),v={};return g&&g.length?v=lne(e,{axes:g,graphicalItems:o,axisType:i,axisIdKey:m,stackGroups:l,dataStartIndex:u,dataEndIndex:d}):o&&o.length&&(v=cne(e,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:m,stackGroups:l,dataStartIndex:u,dataEndIndex:d})),v},dne=function(e){var r=ta(e),n=ui(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:M1(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:wh(r,n)}},bR=function(e){var r=e.children,n=e.defaultShowTooltip,i=_r(r,Es),a=0,o=0;return e.data&&e.data.length!==0&&(o=e.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},fne=function(e){return!e||!e.length?!1:e.some(function(r){var n=mi(r&&r.type);return n&&n.indexOf("Bar")>=0})},wR=function(e){return e==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:e==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:e==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},hne=function(e,r){var n=e.props,i=e.graphicalItems,a=e.xAxisMap,o=a===void 0?{}:a,l=e.yAxisMap,u=l===void 0?{}:l,d=n.width,h=n.height,m=n.children,g=n.margin||{},v=_r(m,Es),b=_r(m,Dn),w=Object.keys(u).reduce(function(T,_){var O=u[_],I=O.orientation;return!O.mirror&&!O.hide?ne(ne({},T),{},Te({},I,T[I]+O.width)):T},{left:g.left||0,right:g.right||0}),x=Object.keys(o).reduce(function(T,_){var O=o[_],I=O.orientation;return!O.mirror&&!O.hide?ne(ne({},T),{},Te({},I,Wr(T,"".concat(I))+O.height)):T},{top:g.top||0,bottom:g.bottom||0}),k=ne(ne({},x),w),P=k.bottom;v&&(k.bottom+=v.props.height||Es.defaultProps.height),b&&r&&(k=m9(k,i,n,r));var A=d-k.left-k.right,E=h-k.top-k.bottom;return ne(ne({brushBottom:P},k),{},{width:Math.max(A,0),height:Math.max(E,0)})},mne=function(e,r){if(r==="xAxis")return e[r].width;if(r==="yAxis")return e[r].height},vk=function(e){var r=e.chartName,n=e.GraphicalChild,i=e.defaultTooltipEventType,a=i===void 0?"axis":i,o=e.validateTooltipEventTypes,l=o===void 0?["axis"]:o,u=e.axisComponents,d=e.legendContent,h=e.formatAxisMap,m=e.defaultProps,g=function(k,P){var A=P.graphicalItems,E=P.stackGroups,T=P.offset,_=P.updateId,O=P.dataStartIndex,I=P.dataEndIndex,R=k.barSize,D=k.layout,F=k.barGap,B=k.barCategoryGap,G=k.maxBarSize,Y=wR(D),z=Y.numericAxisName,K=Y.cateAxisName,Q=fne(A),q=[];return A.forEach(function(Z,ee){var L=Zm(k.data,{graphicalItems:[Z],dataStartIndex:O,dataEndIndex:I}),W=Z.type.defaultProps!==void 0?ne(ne({},Z.type.defaultProps),Z.props):Z.props,V=W.dataKey,re=W.maxBarSize,de=W["".concat(z,"Id")],Pe=W["".concat(K,"Id")],De={},Oe=u.reduce(function(dr,Zr){var vo=P["".concat(Zr.axisType,"Map")],ol=W["".concat(Zr.axisType,"Id")];vo&&vo[ol]||Zr.axisType==="zAxis"||oo();var sl=vo[ol];return ne(ne({},dr),{},Te(Te({},Zr.axisType,sl),"".concat(Zr.axisType,"Ticks"),ui(sl)))},De),le=Oe[K],we=Oe["".concat(K,"Ticks")],Ce=E&&E[de]&&E[de].hasStack&&P9(Z,E[de].stackGroups),oe=mi(Z.type).indexOf("Bar")>=0,Xe=wh(le,we),$e=[],ht=Q&&f9({barSize:R,stackGroups:E,totalSize:mne(Oe,K)});if(oe){var mt,Dt,Qr=Re(re)?G:re,Pn=(mt=(Dt=wh(le,we,!0))!==null&&Dt!==void 0?Dt:Qr)!==null&&mt!==void 0?mt:0;$e=h9({barGap:F,barCategoryGap:B,bandSize:Pn!==Xe?Pn:Xe,sizeList:ht[Pe],maxBarSize:Qr}),Pn!==Xe&&($e=$e.map(function(dr){return ne(ne({},dr),{},{position:ne(ne({},dr.position),{},{offset:dr.position.offset-Pn/2})})}))}var Tn=Z&&Z.type&&Z.type.getComposedData;Tn&&q.push({props:ne(ne({},Tn(ne(ne({},Oe),{},{displayedData:L,props:k,dataKey:V,item:Z,bandSize:Xe,barPosition:$e,offset:T,stackedData:Ce,layout:D,dataStartIndex:O,dataEndIndex:I}))),{},Te(Te(Te({key:Z.key||"item-".concat(ee)},z,Oe[z]),K,Oe[K]),"animationId",_)),childIndex:yW(Z,k.children),item:Z})}),q},v=function(k,P){var A=k.props,E=k.dataStartIndex,T=k.dataEndIndex,_=k.updateId;if(!CE({props:A}))return null;var O=A.children,I=A.layout,R=A.stackOffset,D=A.data,F=A.reverseStackOrder,B=wR(I),G=B.numericAxisName,Y=B.cateAxisName,z=Hr(O,n),K=k9(D,z,"".concat(G,"Id"),"".concat(Y,"Id"),R,F),Q=u.reduce(function(W,V){var re="".concat(V.axisType,"Map");return ne(ne({},W),{},Te({},re,une(A,ne(ne({},V),{},{graphicalItems:z,stackGroups:V.axisType===G&&K,dataStartIndex:E,dataEndIndex:T}))))},{}),q=hne(ne(ne({},Q),{},{props:A,graphicalItems:z}),P==null?void 0:P.legendBBox);Object.keys(Q).forEach(function(W){Q[W]=h(A,Q[W],q,W.replace("Map",""),r)});var Z=Q["".concat(Y,"Map")],ee=dne(Z),L=g(A,ne(ne({},Q),{},{dataStartIndex:E,dataEndIndex:T,updateId:_,graphicalItems:z,stackGroups:K,offset:q}));return ne(ne({formattedGraphicalItems:L,graphicalItems:z,offset:q,stackGroups:K},ee),Q)},b=(function(x){function k(P){var A,E,T;return Gre(this,k),T=Xre(this,k,[P]),Te(T,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Te(T,"accessibilityManager",new Ire),Te(T,"handleLegendBBoxUpdate",function(_){if(_){var O=T.state,I=O.dataStartIndex,R=O.dataEndIndex,D=O.updateId;T.setState(ne({legendBBox:_},v({props:T.props,dataStartIndex:I,dataEndIndex:R,updateId:D},ne(ne({},T.state),{},{legendBBox:_}))))}}),Te(T,"handleReceiveSyncEvent",function(_,O,I){if(T.props.syncId===_){if(I===T.eventEmitterSymbol&&typeof T.props.syncMethod!="function")return;T.applySyncEvent(O)}}),Te(T,"handleBrushChange",function(_){var O=_.startIndex,I=_.endIndex;if(O!==T.state.dataStartIndex||I!==T.state.dataEndIndex){var R=T.state.updateId;T.setState(function(){return ne({dataStartIndex:O,dataEndIndex:I},v({props:T.props,dataStartIndex:O,dataEndIndex:I,updateId:R},T.state))}),T.triggerSyncEvent({dataStartIndex:O,dataEndIndex:I})}}),Te(T,"handleMouseEnter",function(_){var O=T.getMouseInfo(_);if(O){var I=ne(ne({},O),{},{isTooltipActive:!0});T.setState(I),T.triggerSyncEvent(I);var R=T.props.onMouseEnter;Ne(R)&&R(I,_)}}),Te(T,"triggeredAfterMouseMove",function(_){var O=T.getMouseInfo(_),I=O?ne(ne({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};T.setState(I),T.triggerSyncEvent(I);var R=T.props.onMouseMove;Ne(R)&&R(I,_)}),Te(T,"handleItemMouseEnter",function(_){T.setState(function(){return{isTooltipActive:!0,activeItem:_,activePayload:_.tooltipPayload,activeCoordinate:_.tooltipPosition||{x:_.cx,y:_.cy}}})}),Te(T,"handleItemMouseLeave",function(){T.setState(function(){return{isTooltipActive:!1}})}),Te(T,"handleMouseMove",function(_){_.persist(),T.throttleTriggeredAfterMouseMove(_)}),Te(T,"handleMouseLeave",function(_){T.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};T.setState(O),T.triggerSyncEvent(O);var I=T.props.onMouseLeave;Ne(I)&&I(O,_)}),Te(T,"handleOuterEvent",function(_){var O=gW(_),I=Wr(T.props,"".concat(O));if(O&&Ne(I)){var R,D;/.*touch.*/i.test(O)?D=T.getMouseInfo(_.changedTouches[0]):D=T.getMouseInfo(_),I((R=D)!==null&&R!==void 0?R:{},_)}}),Te(T,"handleClick",function(_){var O=T.getMouseInfo(_);if(O){var I=ne(ne({},O),{},{isTooltipActive:!0});T.setState(I),T.triggerSyncEvent(I);var R=T.props.onClick;Ne(R)&&R(I,_)}}),Te(T,"handleMouseDown",function(_){var O=T.props.onMouseDown;if(Ne(O)){var I=T.getMouseInfo(_);O(I,_)}}),Te(T,"handleMouseUp",function(_){var O=T.props.onMouseUp;if(Ne(O)){var I=T.getMouseInfo(_);O(I,_)}}),Te(T,"handleTouchMove",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&T.throttleTriggeredAfterMouseMove(_.changedTouches[0])}),Te(T,"handleTouchStart",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&T.handleMouseDown(_.changedTouches[0])}),Te(T,"handleTouchEnd",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&T.handleMouseUp(_.changedTouches[0])}),Te(T,"handleDoubleClick",function(_){var O=T.props.onDoubleClick;if(Ne(O)){var I=T.getMouseInfo(_);O(I,_)}}),Te(T,"handleContextMenu",function(_){var O=T.props.onContextMenu;if(Ne(O)){var I=T.getMouseInfo(_);O(I,_)}}),Te(T,"triggerSyncEvent",function(_){T.props.syncId!==void 0&&d0.emit(f0,T.props.syncId,_,T.eventEmitterSymbol)}),Te(T,"applySyncEvent",function(_){var O=T.props,I=O.layout,R=O.syncMethod,D=T.state.updateId,F=_.dataStartIndex,B=_.dataEndIndex;if(_.dataStartIndex!==void 0||_.dataEndIndex!==void 0)T.setState(ne({dataStartIndex:F,dataEndIndex:B},v({props:T.props,dataStartIndex:F,dataEndIndex:B,updateId:D},T.state)));else if(_.activeTooltipIndex!==void 0){var G=_.chartX,Y=_.chartY,z=_.activeTooltipIndex,K=T.state,Q=K.offset,q=K.tooltipTicks;if(!Q)return;if(typeof R=="function")z=R(q,_);else if(R==="value"){z=-1;for(var Z=0;Z<q.length;Z++)if(q[Z].value===_.activeLabel){z=Z;break}}var ee=ne(ne({},Q),{},{x:Q.left,y:Q.top}),L=Math.min(G,ee.x+ee.width),W=Math.min(Y,ee.y+ee.height),V=q[z]&&q[z].value,re=xS(T.state,T.props.data,z),de=q[z]?{x:I==="horizontal"?q[z].coordinate:L,y:I==="horizontal"?W:q[z].coordinate}:AF;T.setState(ne(ne({},_),{},{activeLabel:V,activeCoordinate:de,activePayload:re,activeTooltipIndex:z}))}else T.setState(_)}),Te(T,"renderCursor",function(_){var O,I=T.state,R=I.isTooltipActive,D=I.activeCoordinate,F=I.activePayload,B=I.offset,G=I.activeTooltipIndex,Y=I.tooltipAxisBandSize,z=T.getTooltipEventType(),K=(O=_.props.active)!==null&&O!==void 0?O:R,Q=T.props.layout,q=_.key||"_recharts-cursor";return $.createElement(Bre,{key:q,activeCoordinate:D,activePayload:F,activeTooltipIndex:G,chartName:r,element:_,isActive:K,layout:Q,offset:B,tooltipAxisBandSize:Y,tooltipEventType:z})}),Te(T,"renderPolarAxis",function(_,O,I){var R=Wr(_,"type.axisType"),D=Wr(T.state,"".concat(R,"Map")),F=_.type.defaultProps,B=F!==void 0?ne(ne({},F),_.props):_.props,G=D&&D[B["".concat(R,"Id")]];return N.cloneElement(_,ne(ne({},G),{},{className:Ie(R,G.className),key:_.key||"".concat(O,"-").concat(I),ticks:ui(G,!0)}))}),Te(T,"renderPolarGrid",function(_){var O=_.props,I=O.radialLines,R=O.polarAngles,D=O.polarRadius,F=T.state,B=F.radiusAxisMap,G=F.angleAxisMap,Y=ta(B),z=ta(G),K=z.cx,Q=z.cy,q=z.innerRadius,Z=z.outerRadius;return N.cloneElement(_,{polarAngles:Array.isArray(R)?R:ui(z,!0).map(function(ee){return ee.coordinate}),polarRadius:Array.isArray(D)?D:ui(Y,!0).map(function(ee){return ee.coordinate}),cx:K,cy:Q,innerRadius:q,outerRadius:Z,key:_.key||"polar-grid",radialLines:I})}),Te(T,"renderLegend",function(){var _=T.state.formattedGraphicalItems,O=T.props,I=O.children,R=O.width,D=O.height,F=T.props.margin||{},B=R-(F.left||0)-(F.right||0),G=l$({children:I,formattedGraphicalItems:_,legendWidth:B,legendContent:d});if(!G)return null;var Y=G.item,z=yR(G,zre);return N.cloneElement(Y,ne(ne({},z),{},{chartWidth:R,chartHeight:D,margin:F,onBBoxUpdate:T.handleLegendBBoxUpdate}))}),Te(T,"renderTooltip",function(){var _,O=T.props,I=O.children,R=O.accessibilityLayer,D=_r(I,Vt);if(!D)return null;var F=T.state,B=F.isTooltipActive,G=F.activeCoordinate,Y=F.activePayload,z=F.activeLabel,K=F.offset,Q=(_=D.props.active)!==null&&_!==void 0?_:B;return N.cloneElement(D,{viewBox:ne(ne({},K),{},{x:K.left,y:K.top}),active:Q,label:z,payload:Q?Y:[],coordinate:G,accessibilityLayer:R})}),Te(T,"renderBrush",function(_){var O=T.props,I=O.margin,R=O.data,D=T.state,F=D.offset,B=D.dataStartIndex,G=D.dataEndIndex,Y=D.updateId;return N.cloneElement(_,{key:_.key||"_recharts-brush",onChange:df(T.handleBrushChange,_.props.onChange),data:R,x:ue(_.props.x)?_.props.x:F.left,y:ue(_.props.y)?_.props.y:F.top+F.height+F.brushBottom-(I.bottom||0),width:ue(_.props.width)?_.props.width:F.width,startIndex:B,endIndex:G,updateId:"brush-".concat(Y)})}),Te(T,"renderReferenceElement",function(_,O,I){if(!_)return null;var R=T,D=R.clipPathId,F=T.state,B=F.xAxisMap,G=F.yAxisMap,Y=F.offset,z=_.type.defaultProps||{},K=_.props,Q=K.xAxisId,q=Q===void 0?z.xAxisId:Q,Z=K.yAxisId,ee=Z===void 0?z.yAxisId:Z;return N.cloneElement(_,{key:_.key||"".concat(O,"-").concat(I),xAxis:B[q],yAxis:G[ee],viewBox:{x:Y.left,y:Y.top,width:Y.width,height:Y.height},clipPathId:D})}),Te(T,"renderActivePoints",function(_){var O=_.item,I=_.activePoint,R=_.basePoint,D=_.childIndex,F=_.isRange,B=[],G=O.props.key,Y=O.item.type.defaultProps!==void 0?ne(ne({},O.item.type.defaultProps),O.item.props):O.item.props,z=Y.activeDot,K=Y.dataKey,Q=ne(ne({index:D,dataKey:K,cx:I.x,cy:I.y,r:4,fill:lk(O.item),strokeWidth:2,stroke:"#fff",payload:I.payload,value:I.value},Se(z,!1)),Xf(z));return B.push(k.renderActiveDot(z,Q,"".concat(G,"-activePoint-").concat(D))),R?B.push(k.renderActiveDot(z,ne(ne({},Q),{},{cx:R.x,cy:R.y}),"".concat(G,"-basePoint-").concat(D))):F&&B.push(null),B}),Te(T,"renderGraphicChild",function(_,O,I){var R=T.filterFormatItem(_,O,I);if(!R)return null;var D=T.getTooltipEventType(),F=T.state,B=F.isTooltipActive,G=F.tooltipAxis,Y=F.activeTooltipIndex,z=F.activeLabel,K=T.props.children,Q=_r(K,Vt),q=R.props,Z=q.points,ee=q.isRange,L=q.baseLine,W=R.item.type.defaultProps!==void 0?ne(ne({},R.item.type.defaultProps),R.item.props):R.item.props,V=W.activeDot,re=W.hide,de=W.activeBar,Pe=W.activeShape,De=!!(!re&&B&&Q&&(V||de||Pe)),Oe={};D!=="axis"&&Q&&Q.props.trigger==="click"?Oe={onClick:df(T.handleItemMouseEnter,_.props.onClick)}:D!=="axis"&&(Oe={onMouseLeave:df(T.handleItemMouseLeave,_.props.onMouseLeave),onMouseEnter:df(T.handleItemMouseEnter,_.props.onMouseEnter)});var le=N.cloneElement(_,ne(ne({},R.props),Oe));function we(Zr){return typeof G.dataKey=="function"?G.dataKey(Zr.payload):null}if(De)if(Y>=0){var Ce,oe;if(G.dataKey&&!G.allowDuplicatedCategory){var Xe=typeof G.dataKey=="function"?we:"payload.".concat(G.dataKey.toString());Ce=Yf(Z,Xe,z),oe=ee&&L&&Yf(L,Xe,z)}else Ce=Z==null?void 0:Z[Y],oe=ee&&L&&L[Y];if(Pe||de){var $e=_.props.activeIndex!==void 0?_.props.activeIndex:Y;return[N.cloneElement(_,ne(ne(ne({},R.props),Oe),{},{activeIndex:$e})),null,null]}if(!Re(Ce))return[le].concat($s(T.renderActivePoints({item:R,activePoint:Ce,basePoint:oe,childIndex:Y,isRange:ee})))}else{var ht,mt=(ht=T.getItemByXY(T.state.activeCoordinate))!==null&&ht!==void 0?ht:{graphicalItem:le},Dt=mt.graphicalItem,Qr=Dt.item,Pn=Qr===void 0?_:Qr,Tn=Dt.childIndex,dr=ne(ne(ne({},R.props),Oe),{},{activeIndex:Tn});return[N.cloneElement(Pn,dr),null,null]}return ee?[le,null,null]:[le,null]}),Te(T,"renderCustomized",function(_,O,I){return N.cloneElement(_,ne(ne({key:"recharts-customized-".concat(I)},T.props),T.state))}),Te(T,"renderMap",{CartesianGrid:{handler:gf,once:!0},ReferenceArea:{handler:T.renderReferenceElement},ReferenceLine:{handler:gf},ReferenceDot:{handler:T.renderReferenceElement},XAxis:{handler:gf},YAxis:{handler:gf},Brush:{handler:T.renderBrush,once:!0},Bar:{handler:T.renderGraphicChild},Line:{handler:T.renderGraphicChild},Area:{handler:T.renderGraphicChild},Radar:{handler:T.renderGraphicChild},RadialBar:{handler:T.renderGraphicChild},Scatter:{handler:T.renderGraphicChild},Pie:{handler:T.renderGraphicChild},Funnel:{handler:T.renderGraphicChild},Tooltip:{handler:T.renderCursor,once:!0},PolarGrid:{handler:T.renderPolarGrid,once:!0},PolarAngleAxis:{handler:T.renderPolarAxis},PolarRadiusAxis:{handler:T.renderPolarAxis},Customized:{handler:T.renderCustomized}}),T.clipPathId="".concat((A=P.id)!==null&&A!==void 0?A:ju("recharts"),"-clip"),T.throttleTriggeredAfterMouseMove=l2(T.triggeredAfterMouseMove,(E=P.throttleDelay)!==null&&E!==void 0?E:1e3/60),T.state={},T}return Zre(k,x),Yre(k,[{key:"componentDidMount",value:function(){var A,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var A=this.props,E=A.children,T=A.data,_=A.height,O=A.layout,I=_r(E,Vt);if(I){var R=I.props.defaultIndex;if(!(typeof R!="number"||R<0||R>this.state.tooltipTicks.length-1)){var D=this.state.tooltipTicks[R]&&this.state.tooltipTicks[R].value,F=xS(this.state,T,R,D),B=this.state.tooltipTicks[R].coordinate,G=(this.state.offset.top+_)/2,Y=O==="horizontal",z=Y?{x:B,y:G}:{y:B,x:G},K=this.state.formattedGraphicalItems.find(function(q){var Z=q.item;return Z.type.name==="Scatter"});K&&(z=ne(ne({},z),K.props.points[R].tooltipPosition),F=K.props.points[R].tooltipPayload);var Q={activeTooltipIndex:R,isTooltipActive:!0,activeLabel:D,activePayload:F,activeCoordinate:z};this.setState(Q),this.renderCursor(I),this.accessibilityManager.setIndex(R)}}}},{key:"getSnapshotBeforeUpdate",value:function(A,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==A.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==A.margin){var T,_;this.accessibilityManager.setDetails({offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0}})}return null}},{key:"componentDidUpdate",value:function(A){ew([_r(A.children,Vt)],[_r(this.props.children,Vt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var A=_r(this.props.children,Vt);if(A&&typeof A.props.shared=="boolean"){var E=A.props.shared?"axis":"item";return l.indexOf(E)>=0?E:a}return a}},{key:"getMouseInfo",value:function(A){if(!this.container)return null;var E=this.container,T=E.getBoundingClientRect(),_=n8(T),O={chartX:Math.round(A.pageX-_.left),chartY:Math.round(A.pageY-_.top)},I=T.width/E.offsetWidth||1,R=this.inRange(O.chartX,O.chartY,I);if(!R)return null;var D=this.state,F=D.xAxisMap,B=D.yAxisMap,G=this.getTooltipEventType(),Y=xR(this.state,this.props.data,this.props.layout,R);if(G!=="axis"&&F&&B){var z=ta(F).scale,K=ta(B).scale,Q=z&&z.invert?z.invert(O.chartX):null,q=K&&K.invert?K.invert(O.chartY):null;return ne(ne({},O),{},{xValue:Q,yValue:q},Y)}return Y?ne(ne({},O),Y):null}},{key:"inRange",value:function(A,E){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=this.props.layout,O=A/T,I=E/T;if(_==="horizontal"||_==="vertical"){var R=this.state.offset,D=O>=R.left&&O<=R.left+R.width&&I>=R.top&&I<=R.top+R.height;return D?{x:O,y:I}:null}var F=this.state,B=F.angleAxisMap,G=F.radiusAxisMap;if(B&&G){var Y=ta(B);return wC({x:O,y:I},Y)}return null}},{key:"parseEventsOfWrapper",value:function(){var A=this.props.children,E=this.getTooltipEventType(),T=_r(A,Vt),_={};T&&E==="axis"&&(T.props.trigger==="click"?_={onClick:this.handleClick}:_={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=Xf(this.props,this.handleOuterEvent);return ne(ne({},O),_)}},{key:"addListener",value:function(){d0.on(f0,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){d0.removeListener(f0,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(A,E,T){for(var _=this.state.formattedGraphicalItems,O=0,I=_.length;O<I;O++){var R=_[O];if(R.item===A||R.props.key===A.key||E===mi(R.item.type)&&T===R.childIndex)return R}return null}},{key:"renderClipPath",value:function(){var A=this.clipPathId,E=this.state.offset,T=E.left,_=E.top,O=E.height,I=E.width;return $.createElement("defs",null,$.createElement("clipPath",{id:A},$.createElement("rect",{x:T,y:_,height:O,width:I})))}},{key:"getXScales",value:function(){var A=this.state.xAxisMap;return A?Object.entries(A).reduce(function(E,T){var _=gR(T,2),O=_[0],I=_[1];return ne(ne({},E),{},Te({},O,I.scale))},{}):null}},{key:"getYScales",value:function(){var A=this.state.yAxisMap;return A?Object.entries(A).reduce(function(E,T){var _=gR(T,2),O=_[0],I=_[1];return ne(ne({},E),{},Te({},O,I.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(A){var E;return(E=this.state.xAxisMap)===null||E===void 0||(E=E[A])===null||E===void 0?void 0:E.scale}},{key:"getYScaleByAxisId",value:function(A){var E;return(E=this.state.yAxisMap)===null||E===void 0||(E=E[A])===null||E===void 0?void 0:E.scale}},{key:"getItemByXY",value:function(A){var E=this.state,T=E.formattedGraphicalItems,_=E.activeItem;if(T&&T.length)for(var O=0,I=T.length;O<I;O++){var R=T[O],D=R.props,F=R.item,B=F.type.defaultProps!==void 0?ne(ne({},F.type.defaultProps),F.props):F.props,G=mi(F.type);if(G==="Bar"){var Y=(D.data||[]).find(function(q){return jJ(A,q)});if(Y)return{graphicalItem:R,payload:Y}}else if(G==="RadialBar"){var z=(D.data||[]).find(function(q){return wC(A,q)});if(z)return{graphicalItem:R,payload:z}}else if(Hm(R,_)||qm(R,_)||nu(R,_)){var K=iZ({graphicalItem:R,activeTooltipItem:_,itemData:B.data}),Q=B.activeIndex===void 0?K:B.activeIndex;return{graphicalItem:ne(ne({},R),{},{childIndex:Q}),payload:nu(R,_)?B.data[K]:R.props.data[K]}}}return null}},{key:"render",value:function(){var A=this;if(!CE(this))return null;var E=this.props,T=E.children,_=E.className,O=E.width,I=E.height,R=E.style,D=E.compact,F=E.title,B=E.desc,G=yR(E,Vre),Y=Se(G,!1);if(D)return $.createElement(JI,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},$.createElement(rw,Qo({},Y,{width:O,height:I,title:F,desc:B}),this.renderClipPath(),RE(T,this.renderMap)));if(this.props.accessibilityLayer){var z,K;Y.tabIndex=(z=this.props.tabIndex)!==null&&z!==void 0?z:0,Y.role=(K=this.props.role)!==null&&K!==void 0?K:"application",Y.onKeyDown=function(q){A.accessibilityManager.keyboardEvent(q)},Y.onFocus=function(){A.accessibilityManager.focus()}}var Q=this.parseEventsOfWrapper();return $.createElement(JI,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},$.createElement("div",Qo({className:Ie("recharts-wrapper",_),style:ne({position:"relative",curs
137or:"default",width:O,height:I},R)},Q,{ref:function(Z){A.container=Z}}),$.createElement(rw,Qo({},Y,{width:O,height:I,title:F,desc:B,style:ane}),this.renderClipPath(),RE(T,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(N.Component);Te(b,"displayName",r),Te(b,"defaultProps",ne({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),Te(b,"getDerivedStateFromProps",function(x,k){var P=x.dataKey,A=x.data,E=x.children,T=x.width,_=x.height,O=x.layout,I=x.stackOffset,R=x.margin,D=k.dataStartIndex,F=k.dataEndIndex;if(k.updateId===void 0){var B=bR(x);return ne(ne(ne({},B),{},{updateId:0},v(ne(ne({props:x},B),{},{updateId:0}),k)),{},{prevDataKey:P,prevData:A,prevWidth:T,prevHeight:_,prevLayout:O,prevStackOffset:I,prevMargin:R,prevChildren:E})}if(P!==k.prevDataKey||A!==k.prevData||T!==k.prevWidth||_!==k.prevHeight||O!==k.prevLayout||I!==k.prevStackOffset||!ns(R,k.prevMargin)){var G=bR(x),Y={chartX:k.chartX,chartY:k.chartY,isTooltipActive:k.isTooltipActive},z=ne(ne({},xR(k,A,O)),{},{updateId:k.updateId+1}),K=ne(ne(ne({},G),Y),z);return ne(ne(ne({},K),v(ne({props:x},K),k)),{},{prevDataKey:P,prevData:A,prevWidth:T,prevHeight:_,prevLayout:O,prevStackOffset:I,prevMargin:R,prevChildren:E})}if(!ew(E,k.prevChildren)){var Q,q,Z,ee,L=_r(E,Es),W=L&&(Q=(q=L.props)===null||q===void 0?void 0:q.startIndex)!==null&&Q!==void 0?Q:D,V=L&&(Z=(ee=L.props)===null||ee===void 0?void 0:ee.endIndex)!==null&&Z!==void 0?Z:F,re=W!==D||V!==F,de=!Re(A),Pe=de&&!re?k.updateId:k.updateId+1;return ne(ne({updateId:Pe},v(ne(ne({props:x},k),{},{updateId:Pe,dataStartIndex:W,dataEndIndex:V}),k)),{},{prevChildren:E,dataStartIndex:W,dataEndIndex:V})}return null}),Te(b,"renderActiveDot",function(x,k,P){var A;return N.isValidElement(x)?A=N.cloneElement(x,k):Ne(x)?A=x(k):A=$.createElement(Cu,k),$.createElement(He,{className:"recharts-active-dot",key:P},A)});var w=N.forwardRef(function(k,P){return $.createElement(b,Qo({},k,{ref:P}))});return w.displayName=b.displayName,w},Si=vk({chartName:"LineChart",GraphicalChild:Rt,axisComponents:[{axisType:"xAxis",AxisComp:xr},{axisType:"yAxis",AxisComp:br}],formatAxisMap:K$}),_F=vk({chartName:"BarChart",GraphicalChild:Bn,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:xr},{axisType:"yAxis",AxisComp:br}],formatAxisMap:K$}),pne=vk({chartName:"RadarChart",GraphicalChild:Mu,axisComponents:[{axisType:"angleAxis",AxisComp:Ru},{axisType:"radiusAxis",AxisComp:Iu}],formatAxisMap:L9,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function NF({className:t="",height:e=160,period:r,title:n="Traffic trend"}){const{config:i}=Gs(),a=r??i.statsPeriod,[o,l]=N.useState([]);return N.useEffect(()=>{let u=!0;return rs(`${i.apiBase}/stats?period=${a}`).then(d=>{u&&l(d.trend??[])}).catch(()=>{u&&l([])}),()=>{u=!1}},[i.apiBase,a]),o.every(u=>u.views===0)?null:f.jsxs("div",{className:t,children:[n&&f.jsx("p",{className:"mb-2 text-sm font-medium opacity-80",children:n}),f.jsx(qr,{width:"100%",height:e,children:f.jsxs(Si,{data:o,margin:{top:4,right:8,left:0,bottom:0},children:[f.jsx(bn,{strokeDasharray:"3 3",stroke:"currentColor",opacity:.1}),f.jsx(xr,{dataKey:"date",tick:{fontSize:10},tickFormatter:u=>u.slice(5),stroke:"currentColor",opacity:.5}),f.jsx(br,{tick:{fontSize:10},width:32,stroke:"currentColor",opacity:.5}),f.jsx(Vt,{contentStyle:{fontSize:12},labelFormatter:u=>String(u)}),f.jsx(Rt,{type:"monotone",dataKey:"views",stroke:"currentColor",strokeWidth:2,dot:!1,activeDot:{r:4}})]})})]})}function gne(t){switch(t){case"human":return"Human";case"search_bot":return"Search (SEO)";case"agent_bot":return"Agent (AEO/GEO)";case"preview_bot":return"Preview";case"unknown":return"Unknown";case"all":return"All";default:return t}}var yne=Object.defineProperty,vne=(t,e)=>{for(var r in e)yne(t,r,{get:e[r],enumerable:!0})},xne={};vne(xne,{UpstashError:()=>OF,UpstashJSONParseError:()=>wne,UrlError:()=>bne});var OF=class extends Error{constructor(t,e){super(t,e),this.name="UpstashError"}}
137,bne=class extends Error{constructor(t){super(`Upstash Redis client was passed an invalid URL. You should pass a URL starting with https. Received: "${t}". `),this.name="UrlError"}},wne=class extends OF{constructor(t,e){const r=t.length>200?t.slice(0,200)+"...":t;super(`Unable to parse response body: ${r}`,e),this.name="UpstashJSONParseError"}};typeof atob>"u"&&(global.atob=t=>Buffer.from(t,"base64").toString("utf8"));function Sne({className:t="",authToken:e,period:r=7}){const{config:n}=Gs(),[i,a]=N.useState(null),[o,l]=N.useState(!0),[u,d]=N.useState(null),h=N.useCallback(async()=>{l(!0),d(null);try{const m={};e&&(m.Authorization=`Bearer ${e}`);const g=await rs(`${n.apiBase}/admin?period=${r}`,{headers:m});a(g)}catch(m){d(m instanceof Error?m.message:"Failed to load stats")}finally{l(!1)}},[e,n.apiBase,r]);return N.useEffect(()=>{h()},[h]),o?f.jsx("p",{className:`text-sm opacity-70 ${t}`.trim(),children:"Loading traffic dataâ¦"}):u?f.jsx("p",{className:`text-sm text-red-600 ${t}`.trim(),children:u}):i?f.jsxs("div",{className:`space-y-6 ${t}`.trim(),children:[f.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[f.jsx(yf,{label:"Total views",value:i.totalViews}),f.jsx(yf,{label:"Today",value:i.todayViews}),f.jsx(yf,{label:`Last ${r}d`,value:i.periodViews}),f.jsx(yf,{label:"Avg / day",value:Math.round(i.periodViews/Math.max(r,1))})]}),f.jsx(NF,{period:r,title:`Daily views (${r}d)`,height:220}),i.entityBreakdown&&i.entityBreakdown.length>0&&f.jsxs("section",{children:[f.jsx("h3",{className:"mb-2 text-sm font-semibold",children:"Entity breakdown"}),f.jsx("div",{className:"grid gap-2 sm:grid-cols-2 lg:grid-cols-3",children:i.entityBreakdown.map(m=>f.jsxs("div",{className:"flex items-center justify-between rounded border px-3 py-2 text-sm",children:[f.jsx("span",{children:gne(m.entityType)}),f.jsx("span",{className:"font-medium tabular-nums",children:xm(m.views)})]},m.entityType))})]}),f.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[f.jsx(SR,{title:"Top pages",rows:i.topPages}),f.jsx(SR,{title:"Top content",rows:i.topContent})]})]}):null}function yf({label:t,value:e}){return f.jsxs("div",{className:"rounded border px-4 py-3",children:[f.jsx("p",{className:"text-xs opacity-70",children:t}),f.jsx("p",{className:"text-xl font-bold tabular-nums",children:xm(e)})]})}function SR({title:t,rows:e}){return e.length===0?null:f.jsxs("section",{children:[f.jsx("h3",{className:"mb-2 text-sm font-semibold",children:t}),f.jsx("div",{className:"overflow-x-auto rounded border",children:f.jsxs("table",{className:"w-full text-left text-sm",children:[f.jsx("thead",{className:"border-b bg-black/5 text-xs uppercase opacity-70",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-3 py-2",children:"Name"}),f.jsx("th",{className:"px-3 py-2 text-right",children:"Views"})]})}),f.jsx("tbody",{children:e.map(r=>f.jsxs("tr",{className:"border-b last:border-0",children:[f.jsx("td",{className:"max-w-[200px] truncate px-3 py-2",title:r.label,children:r.label}),f.jsx("td",{className:"px-3 py-2 text-right tabular-nums",children:xm(r.views)})]},r.key))})]})})]})}class kne extends N.Component{constructor(){super(...arguments);nA(this,"state",{error:null})}static getDerivedStateFromError(r){return{error:r}}componentDidCatch(r,n){console.error("[ErrorBoundary]",r,n.componentStack)}render(){return this.state.error?f.jsxs("div",{className:"mx-auto max-w-lg px-4 py-16 text-center",children:[f.jsx("h1",{className:"font-serif text-xl font-bold text-primary",children:"Something went wrong"}),f.jsx("p",{className:"mt-3 text-sm text-muted",children:"íì´ì§ë¥¼ ë¶ë¬ì¤ë ì¤ ì¤ë¥ê° ë°ìíìµëë¤. ìë¡ê³ 침íê±°ë ì ì í ë¤ì ìëí´ ì£¼ì¸ì."}),f.jsx("p",{className:"mt-4 rounded-lg border border-border bg-card p-3 font-mono text-left text-xs text-risk-high",children:this.state.error.message}),f.jsx("button",{type:"button",className:"btn-primary mt-6",onClick:()=>window.location.reload(),children:"ìë¡ê³ 침"})]}):this.props.children}}const jne=(t,e,r,n)=>{var a,o,l,u;const i=[r,{code:e,...n||{}}];if((o=(a=t==null?void 0:t.services)==null?void 0:a.logger)!=null&&o.forward)return t.services.logger.forward(i,"warn","react-i18next::",!0);eo(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(u=(l=t==null?void 0:t.services)==null?void 0:l.logger)!=null&&u.warn?t.services.logger.warn(...i):console!=null&&console.warn&&console.warn(...i)},kR={},bS=(t,e,r,n)=>{eo(r)&&kR[r]||(eo(r)&&(kR[r]=new Date),jne(t,e,r,n))},CF=(t,e)=>()=>{if(t.isInitialized)e();else{const r=()=>{setTimeout(()=>{t.off("initialized",r)},0),e()};t.on("initialized",r)}},wS=(t,e,r)=>{t.loadNamespaces(e,CF(t,r))},jR=(t,e,r,n)=>{if(eo(r)&&(r=[r]),t.options.preload&&t.options.preload.indexOf(e)>-1)return wS(t,r,n);r.forEach(i=>
137{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,CF(t,n))},Pne=(t,e,r={})=>!e.languages||!e.languages.length?(bS(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:r.lng,precheck:(n,i)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!i(n.isLanguageChangingTo,t))return!1}}),eo=t=>typeof t=="string",Tne=t=>typeof t=="object"&&t!==null,Ane=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ene={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},_ne=t=>Ene[t],Nne=t=>t.replace(Ane,_ne);let SS={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Nne};const One=(t={})=>{SS={...SS,...t}},Cne=()=>SS;let IF;const Ine=t=>{IF=t},Rne=()=>IF,Mne={type:"3rdParty",init(t){One(t.options.react),Ine(t)}},Lne=N.createContext();class Dne{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const $ne=(t,e)=>{const r=N.useRef();return N.useEffect(()=>{r.current=t},[t,e]),r.current},RF=(t,e,r,n)=>t.getFixedT(e,r,n),Fne=(t,e,r,n)=>N.useCallback(RF(t,e,r,n),[t,e,r,n]),ye=(t,e={})=>{var E,T,_,O;const{i18n:r}=e,{i18n:n,defaultNS:i}=N.useContext(Lne)||{},a=r||n||Rne();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Dne),!a){bS(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const I=(D,F)=>eo(F)?F:Tne(F)&&eo(F.defaultValue)?F.defaultValue:Array.isArray(D)?D[D.length-1]:D,R=[I,{},!1];return R.t=I,R.i18n={},R.ready=!1,R}(E=a.options.react)!=null&&E.wait&&bS(a,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...Cne(),...a.options.react,...e},{useSuspense:l,keyPrefix:u}=o;let d=i||((T=a.options)==null?void 0:T.defaultNS);d=eo(d)?[d]:d||["translation"],(O=(_=a.reportNamespaces).addUsedNamespaces)==null||O.call(_,d);const h=(a.isInitialized||a.initializedStoreOnce)&&d.every(I=>Pne(I,a,o)),m=Fne(a,e.lng||null,o.nsMode==="fallback"?d:d[0],u),g=()=>m,v=()=>RF(a,e.lng||null,o.nsMode==="fallback"?d:d[0],u),[b,w]=N.useState(g);let x=d.join();e.lng&&(x=`${e.lng}${x}`);const k=$ne(x),P=N.useRef(!0);N.useEffect(()=>{const{bindI18n:I,bindI18nStore:R}=o;P.current=!0,!h&&!l&&(e.lng?jR(a,e.lng,d,()=>{P.current&&w(v)}):wS(a,d,()=>{P.current&&w(v)})),h&&k&&k!==x&&P.current&&w(v);const D=()=>{P.current&&w(v)};return I&&(a==null||a.on(I,D)),R&&(a==null||a.store.on(R,D)),()=>{P.current=!1,a&&I&&(I==null||I.split(" ").forEach(F=>a.off(F,D))),R&&a&&R.split(" ").forEach(F=>a.store.off(F,D))}},[a,x]),N.useEffect(()=>{P.current&&h&&w(g)},[a,u,h]);const A=[b,a,h];if(A.t=b,A.i18n=a,A.ready=h,h||!h&&!l)return A;throw new Promise(I=>{e.lng?jR(a,e.lng,d,()=>I()):wS(a,d,()=>I())})},PR="ws-audit-pro-device-id";function Bne(){if(typeof window>"u")return"server";let t=localStorage.getItem(PR);return t||(t=crypto.randomUUID(),localStorage.setItem(PR,t)),t}const zne=["Leaders","Challengers","Drifters","Relics"],TR={"Titan Elite":"Leaders","Strong Buy":"Leaders",Buy:"Challengers",Hold:"Drifters",Weak:"Relics"};function m0(t){return zne.includes(t)}function p0(t){return t>=80?"Leaders":t>=70?"Challengers":t>=60?"Drifters":"Relics"}function ep(t,e){return typeof e=="string"?m0(e)?e:TR[e]??p0(t):e!=null&&e.status&&m0(e.status)?e.status:e!=null&&e.grade?m0(e.grade)?e.grade:TR[e.grade]??p0(t):p0(t)}function Vne(t){return{...t,status:t.status??ep(t.titanScore,t.grade)}}const AR=t=>{let e;const r=new Set,n=(d,h)=>{const m=typeof d=="function"?d(e):d;if(!Object.is(m,e)){const g=e;e=h??(typeof m!="object"||m===null)?m:Object.assign({},e,m),r.forEach(v=>v(e,g))}},i=()=>e,l={setState:n,getState:i,getInitialState:()=>u,subscribe:d=>(r.add(d),()=>r.delete(d))},u=e=t(n,i,l);return l},Une=(t=>t?AR(t):AR),Wne=t=>t;function Hne(t,e=Wne){const r=$.useSyncExternalStore(t.subscribe,$.useCallback(()=>e(t.getState()),[t,e]),$.useCallback(()=>e(t.getInitialState()),[t,e]));return $.useDebugValue(r),r}const ER=t=>{const e=Une(t),r=n=>Hne(e,n);return Object.assign(r,e),r},tp=(t=>t?ER(t):ER),qne="ed1.";function xk(t){return t.startsWith(qne)}const Gne=()=>{};var _R={};/** 138 * @license 139 * Copyright 2017 Google LLC 140 * 141 * Licensed under the Apache License, Version 2.0 (the "License");
142 * you may not use this file except in compliance with the License. 143 * You may obtain a copy of the License at 144 * 145 * http://www.apache.org/licenses/LICENSE-2.0 146 * 147 * Unless required by applicable law or agreed to in writing, software 148 * distributed under the License is distributed on an "AS IS" BASIS, 149 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 150 * See the License for the specific language governing permissions and 151 * limitations under the License. 152 */const MF=function(t){const e=[];let r=0;for(let n=0;n<t.length;n++){let i=t.charCodeAt(n);i<128?e[r++]=i:i<2048?(e[r++]=i>>6|192,e[r++]=i&63|128):(i&64512)===55296&&n+1<t.length&&(t.charCodeAt(n+1)&64512)===56320?(i=65536+((i&1023)<<10)+(t.charCodeAt(++n)&1023),e[r++]=i>>18|240,e[r++]=i>>12&63|128,e[r++]=i>>6&63|128,e[r++]=i&63|128):(e[r++]=i>>12|224,e[r++]=i>>6&63|128,e[r++]=i&63|128)}return e},Kne=function(t){const e=[];let r=0,n=0;for(;r<t.length;){const i=t[r++];if(i<128)e[n++]=String.fromCharCode(i);else if(i>191&&i<224){const a=t[r++];e[n++]=String.fromCharCode((i&31)<<6|a&63)}else if(i>239&&i<365){const a=t[r++],o=t[r++],l=t[r++],u=((i&7)<<18|(a&63)<<12|(o&63)<<6|l&63)-65536;e[n++]=String.fromCharCode(55296+(u>>10)),e[n++]=String.fromCharCode(56320+(u&1023))}else{const a=t[r++],o=t[r++];e[n++]=String.fromCharCode((i&15)<<12|(a&63)<<6|o&63)}}return e.join("")},LF={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const r=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let i=0;i<t.length;i+=3){const a=t[i],o=i+1<t.length,l=o?t[i+1]:0,u=i+2<t.length,d=u?t[i+2]:0,h=a>>2,m=(a&3)<<4|l>>4;let g=(l&15)<<2|d>>6,v=d&63;u||(v=64,o||(g=64)),n.push(r[h],r[m],r[g],r[v])}return n.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(MF(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):Kne(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const r=e?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let i=0;i<t.length;){const a=r[t.charAt(i++)],l=i<t.length?r[t.charAt(i)]:0;++i;const d=i<t.length?r[t.charAt(i)]:64;++i;const m=i<t.length?r[t.charAt(i)]:64;if(++i,a==null||l==null||d==null||m==null)throw new Yne;const g=a<<2|l>>4;if(n.push(g),d!==64){const v=l<<4&240|d>>2;if(n.push(v),m!==64){const b=d<<6&192|m;n.push(b)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class Yne extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Xne=function(t){const e=MF(t);return LF.encodeByteArray(e,!0)},DF=function(t){return Xne(t).replace(/\./g,"")},$F=function(t){try{return LF.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/** 153 * @license 154 * Copyright 2022 Google LLC 155 * 156 * Licensed under the Apache License, Version 2.0 (the "License"); 157 * you may not use this file except in compliance with the License. 158 * You may obtain a copy of the License at 159 * 160 * http://www.apache.org/licenses/LICENSE-2.0 161 * 162 * Unless required by applicable law or agreed to in writing, software 163 * distributed under the License is distributed on an "AS IS" BASIS, 164 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 165 * See the License for the specific language governing permissions and 166 * limitations under the License.
167 */function Jne(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** 168 * @license 169 * Copyright 2022 Google LLC 170 * 171 * Licensed under the Apache License, Version 2.0 (the "License"); 172 * you may not use this file except in compliance with the License. 173 * You may obtain a copy of the License at 174 * 175 * http://www.apache.org/licenses/LICENSE-2.0 176 * 177 * Unless required by applicable law or agreed to in writing, software 178 * distributed under the License is distributed on an "AS IS" BASIS, 179 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 180 * See the License for the specific language governing permissions and 181 * limitations under the License. 182 */const Qne=()=>Jne().__FIREBASE_DEFAULTS__,Zne=()=>{if(typeof process>"u"||typeof _R>"u")return;const t=_R.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},eie=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&$F(t[1]);return e&&JSON.parse(e)},bk=()=>{try{return Gne()||Qne()||Zne()||eie()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},tie=t=>{var e,r;return(r=(e=bk())==null?void 0:e.emulatorHosts)==null?void 0:r[t]},FF=()=>{var t;return(t=bk())==null?void 0:t.config},BF=t=>{var e;return(e=bk())==null?void 0:e[`_${t}`]};/** 183 * @license 184 * Copyright 2017 Google LLC 185 * 186 * Licensed under the Apache License, Version 2.0 (the "License"); 187 * you may not use this file except in compliance with the License. 188 * You may obtain a copy of the License at 189 * 190 * http://www.apache.org/licenses/LICENSE-2.0 191 * 192 * Unless required by applicable law or agreed to in writing, software 193 * distributed under the License is distributed on an "AS IS" BASIS, 194 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 195 * See the License for the specific language governing permissions and 196 * limitations under the License. 197 */class rie{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,r)=>{this.resolve=e,this.reject=r})}wrapCallback(e){return(r,n)=>{r?this.reject(r):this.resolve(n),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(r):e(r,n))}}}/** 198 * @license 199 * Copyright 2017 Google LLC 200 * 201 * Licensed under the Apache License, Version 2.0 (the "License"); 202 * you may not use this file except in compliance with the License. 203 * You may obtain a copy of the License at 204 * 205 * http://www.apache.org/licenses/LICENSE-2.0 206 * 207 * Unless required by applicable law or agreed to in writing, software 208 * distributed under the License is distributed on an "AS IS" BASIS, 209 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 210 * See the License for the specific language governing permissions and 211 * limitations under the License. 212 */function ur(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function nie(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(ur())}function iie(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function aie(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function oie(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function sie(){const t=ur();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function lie(){try{return typeof indexedDB=="object"}catch{return!1}}function cie(){return new Promise((t,e)=>{try{let r=!0;const n="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(n);i.onsuccess=()=>{i.result.close(),r||self.indexedDB.deleteDatabase(n),t(!0)},i.onupgradeneeded=()=>{r=!1},i.onerror=()=>{var a;e(((a=i.error)==null?void 0:a.message)||"")}}catch(r){e(r)}})}/** 213 * @license 214 * Copyright 2017 Google LLC 215 * 216 * Licensed under the Apache License, Version 2.0 (the "License"); 217 * you may not use this file except in compliance with the License. 218 * You may obtain a copy of the License at 219 * 220 * http://www.apache.org/licenses/LICENSE-2.0 221 * 222 * Unless required by applicable law or agreed to in writing, softw
222are 223 * distributed under the License is distributed on an "AS IS" BASIS, 224 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 225 * See the License for the specific language governing permissions and 226 * limitations under the License. 227 */const uie="FirebaseError";class ya extends Error{constructor(e,r,n){super(r),this.code=e,this.customData=n,this.name=uie,Object.setPrototypeOf(this,ya.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Lu.prototype.create)}}class Lu{constructor(e,r,n){this.service=e,this.serviceName=r,this.errors=n}create(e,...r){const n=r[0]||{},i=`${this.service}/${e}`,a=this.errors[e],o=a?die(a,n):"Error",l=`${this.serviceName}: ${o} (${i}).`;return new ya(i,l,n)}}function die(t,e){try{let r=0,n="";for(;r<t.length;){const i=t.indexOf("{$",r);if(i===-1){n+=t.substring(r);break}const a=t.indexOf("}",i+2);if(a===-1){n+=t.substring(r);break}const o=t.substring(i+2,a),l=e[o];n+=t.substring(r,i)+(l!=null?String(l):`<${o}?>`),r=a+1}return n}catch{return t}}function fie(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function Fs(t,e){if(t===e)return!0;const r=Object.keys(t),n=Object.keys(e);for(const i of r){if(!n.includes(i))return!1;const a=t[i],o=e[i];if(NR(a)&&NR(o)){if(!Fs(a,o))return!1}else if(a!==o)return!1}for(const i of n)if(!r.includes(i))return!1;return!0}function NR(t){return t!==null&&typeof t=="object"}/** 228 * @license 229 * Copyright 2017 Google LLC 230 * 231 * Licensed under the Apache License, Version 2.0 (the "License"); 232 * you may not use this file except in compliance with the License. 233 * You may obtain a copy of the License at 234 * 235 * http://www.apache.org/licenses/LICENSE-2.0 236 * 237 * Unless required by applicable law or agreed to in writing, software 238 * distributed under the License is distributed on an "AS IS" BASIS, 239 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 240 * See the License for the specific language governing permissions and 241 * limitations under the License. 242 */function Du(t){const e=[];for(const[r,n]of Object.entries(t))Array.isArray(n)?n.forEach(i=>{e.push(encodeURIComponent(r)+"="+encodeURIComponent(i))}):e.push(encodeURIComponent(r)+"="+encodeURIComponent(n));return e.length?"&"+e.join("&"):""}function hie(t,e){const r=new mie(t,e);return r.subscribe.bind(r)}class mie{constructor(e,r){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=r,this.task.then(()=>{e(this)}).catch(n=>{this.error(n)})}next(e){this.forEachObserver(r=>{r.next(e)})}error(e){this.forEachObserver(r=>{r.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,r,n){let i;if(e===void 0&&r===void 0&&n===void 0)throw new Error("Missing Observer.");pie(e,["next","error","complete"])?i=e:i={next:e,error:r,complete:n},i.next===void 0&&(i.next=g0),i.error===void 0&&(i.error=g0),i.complete===void 0&&(i.complete=g0);const a=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch{}}),this.observers.push(i),a}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let r=0;r<this.observers.length;r++)this.sendOne(r,e)}sendOne(e,r){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{r(this.observers[e])}catch(n){typeof console<"u"&&console.error&&console.error(n)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function pie(t,e){if(typeof t!="object"||t===null)return!1;for(const r of e)if(r in t&&typeof t[r]=="function")return!0;return!1}function g0(){}/** 243 * @license 244 * Copyright 2021 Google LLC 245 * 246 * Licensed under the Apache License, Version 2.0 (the "License"); 247 * you may not use this file except in compliance with the License. 248 * You may obtain a copy of the License at 249 * 250 * http://www.apache.org/licenses/LICENSE-2.0 251 * 252 * Unless required by applicable law or agreed to in writing, softw
252are 253 * distributed under the License is distributed on an "AS IS" BASIS, 254 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 255 * See the License for the specific language governing permissions and 256 * limitations under the License. 257 */function va(t){return t&&t._delegate?t._delegate:t}/** 258 * @license 259 * Copyright 2025 Google LLC 260 * 261 * Licensed under the Apache License, Version 2.0 (the "License"); 262 * you may not use this file except in compliance with the License. 263 * You may obtain a copy of the License at 264 * 265 * http://www.apache.org/licenses/LICENSE-2.0 266 * 267 * Unless required by applicable law or agreed to in writing, software 268 * distributed under the License is distributed on an "AS IS" BASIS, 269 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 270 * See the License for the specific language governing permissions and 271 * limitations under the License. 272 */function wk(t){try{return(t.startsWith("http://")||t.startsWith("https://")?new URL(t).hostname:t).endsWith(".cloudworkstations.dev")}catch{return!1}}async function gie(t){return(await fetch(t,{credentials:"include"})).ok}class Bs{constructor(e,r,n){this.name=e,this.instanceFactory=r,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/** 273 * @license 274 * Copyright 2019 Google LLC 275 * 276 * Licensed under the Apache License, Version 2.0 (the "License"); 277 * you may not use this file except in compliance with the License. 278 * You may obtain a copy of the License at 279 * 280 * http://www.apache.org/licenses/LICENSE-2.0 281 * 282 * Unless required by applicable law or agreed to in writing, software 283 * distributed under the License is distributed on an "AS IS" BASIS, 284 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 285 * See the License for the specific language governing permissions and 286 * limitations under the License. 287 */const za="[DEFAULT]";/** 288 * @license 289 * Copyright 2019 Google LLC 290 * 291 * Licensed under the Apache License, Version 2.0 (the "License"); 292 * you may not use this file except in compliance with the License. 293 * You may obtain a copy of the License at 294 * 295 * http://www.apache.org/licenses/LICENSE-2.0 296 * 297 * Unless required by applicable law or agreed to in writing, software 298 * distributed under the License is distributed on an "AS IS" BASIS, 299 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 300 * See the License for the specific language governing permissions and 301 * limitations under the License. 302 */class yie{constructor(e,r){this.name=e,this.container=r,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const r=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(r)){const n=new rie;if(this.instancesDeferred.set(r,n),this.isInitialized(r)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:r});i&&n.resolve(i)}catch{}}return this.instancesDeferred.get(r).promise}getImmediate(e){const r=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),n=(e==null?void 0:e.optional)??!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(i){if(n)return null;throw i}else{if(n)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(xie(e))try{this.getOrInitializeService({instanceIdentifier:za})}catch{}for(const[r,n]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(r);try{const a=this.getOrInitializeService({instanceIdentifier:i});n.resolve(a)}catch{}}}}clearInstance(e=za){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(r=>"INTERNAL"in r).map(r=>r.INTERNAL.delete()),...e.filter(r=>"_delete"in r).map(r=>r._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=za){return this.instances.has(e)}getOptions(e=za){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:r={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:n,options:r});
302for(const[a,o]of this.instancesDeferred.entries()){const l=this.normalizeInstanceIdentifier(a);n===l&&o.resolve(i)}return i}onInit(e,r){const n=this.normalizeInstanceIdentifier(r),i=this.onInitCallbacks.get(n)??new Set;i.add(e),this.onInitCallbacks.set(n,i);const a=this.instances.get(n);return a&&e(a,n),()=>{i.delete(e)}}invokeOnInitCallbacks(e,r){const n=this.onInitCallbacks.get(r);if(n)for(const i of n)try{i(e,r)}catch{}}getOrInitializeService({instanceIdentifier:e,options:r={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:vie(e),options:r}),this.instances.set(e,n),this.instancesOptions.set(e,r),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}return n||null}normalizeInstanceIdentifier(e=za){return this.component?this.component.multipleInstances?e:za:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function vie(t){return t===za?void 0:t}function xie(t){return t.instantiationMode==="EAGER"}/** 303 * @license 304 * Copyright 2019 Google LLC 305 * 306 * Licensed under the Apache License, Version 2.0 (the "License"); 307 * you may not use this file except in compliance with the License. 308 * You may obtain a copy of the License at 309 * 310 * http://www.apache.org/licenses/LICENSE-2.0 311 * 312 * Unless required by applicable law or agreed to in writing, software 313 * distributed under the License is distributed on an "AS IS" BASIS, 314 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 315 * See the License for the specific language governing permissions and 316 * limitations under the License. 317 */class bie{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const r=this.getProvider(e.name);if(r.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);r.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const r=new yie(e,this);return this.providers.set(e,r),r}getProviders(){return Array.from(this.providers.values())}}/** 318 * @license 319 * Copyright 2017 Google LLC 320 * 321 * Licensed under the Apache License, Version 2.0 (the "License"); 322 * you may not use this file except in compliance with the License. 323 * You may obtain a copy of the License at 324 * 325 * http://www.apache.org/licenses/LICENSE-2.0 326 * 327 * Unless required by applicable law or agreed to in writing, software 328 * distributed under the License is distributed on an "AS IS" BASIS, 329 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 330 * See the License for the specific language governing permissions and 331 * limitations under the License. 332 */var Je;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(Je||(Je={}));const wie={debug:Je.DEBUG,verbose:Je.VERBOSE,info:Je.INFO,warn:Je.WARN,error:Je.ERROR,silent:Je.SILENT},Sie=Je.INFO,kie={[Je.DEBUG]:"log",[Je.VERBOSE]:"log",[Je.INFO]:"info",[Je.WARN]:"warn",[Je.ERROR]:"error"},jie=(t,e,...r)=>{if(e<t.logLevel)return;const n=new Date().toISOString(),i=kie[e];if(i)console[i](`[${n}] ${t.name}:`,...r);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};let zF=class{constructor(e){this.name=e,this._logLevel=Sie,this._logHandler=jie,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Je))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?wie[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Je.DEBUG,...e),this._logHandler(this,Je.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Je.VERBOSE,...e),this._logHandler(this,Je.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Je.INFO,...e),this._logHandler(this,Je.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Je.WARN,...e),this._logHandler(this,Je.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Je.ERROR,...e),this._logHandler(this,Je.ERROR,...e)}};const Pie=(t,e)=>e.some(r=>t instanceof r);let OR,CR;function Tie(){return OR||(OR=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}
vendor: 2,550 bytes, line 332
332function Aie(){return CR||(CR=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const VF=new WeakMap,kS=new WeakMap,UF=new WeakMap,y0=new WeakMap,Sk=new WeakMap;function Eie(t){const e=new Promise((r,n)=>{const i=()=>{t.removeEventListener("success",a),t.removeEventListener("error",o)},a=()=>{r(ua(t.result)),i()},o=()=>{n(t.error),i()};t.addEventListener("success",a),t.addEventListener("error",o)});return e.then(r=>{r instanceof IDBCursor&&VF.set(r,t)}).catch(()=>{}),Sk.set(e,t),e}function _ie(t){if(kS.has(t))return;const e=new Promise((r,n)=>{const i=()=>{t.removeEventListener("complete",a),t.removeEventListener("error",o),t.removeEventListener("abort",o)},a=()=>{r(),i()},o=()=>{n(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",a),t.addEventListener("error",o),t.addEventListener("abort",o)});kS.set(t,e)}let jS={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return kS.get(t);if(e==="objectStoreNames")return t.objectStoreNames||UF.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return ua(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Nie(t){jS=t(jS)}function Oie(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(v0(this),e,...r);return UF.set(n,e.sort?e.sort():[e]),ua(n)}:Aie().includes(t)?function(...e){return t.apply(v0(this),e),ua(VF.get(this))}:function(...e){return ua(t.apply(v0(this),e))}}function Cie(t){return typeof t=="function"?Oie(t):(t instanceof IDBTransaction&&_ie(t),Pie(t,Tie())?new Proxy(t,jS):t)}function ua(t){if(t instanceof IDBRequest)return Eie(t);if(y0.has(t))return y0.get(t);const e=Cie(t);return e!==t&&(y0.set(t,e),Sk.set(e,t)),e}const v0=t=>Sk.get(t);function Iie(t,e,{blocked:r,upgrade:n,blocking:i,terminated:a}={}){const o=indexedDB.open(t,e),l=ua(o);return n&&o.addEventListener("upgradeneeded",u=>{n(ua(o.result),u.oldVersion,u.newVersion,ua(o.transaction),u)}),r&&o.addEventListener("blocked",u=>r(u.oldVersion,u.newVersion,u)),l.then(u=>{a&&u.addEventListener("close",()=>a()),i&&u.addEventListener("versionchange",d=>i(d.oldVersion,d.newVersion,d))}).catch(()=>{}),l}const Rie=["get","getKey","getAll","getAllKeys","count"],Mie=["put","add","delete","clear"],x0=new Map;function IR(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(x0.get(e))return x0.get(e);
332const r=e.replace(/FromIndex$/,""),n=e!==r,i=Mie.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||Rie.includes(r)))return;const a=async function(o,...l){const u=this.transaction(o,i?"readwrite":"readonly");let d=u.store;return n&&(d=d.index(l.shift())),(await Promise.all([d[r](...l),i&&u.done]))[0]};return x0.set(e,a),a}Nie(t=>({...t,get:(e,r,n)=>IR(e,r)||t.get(e,r,n),has:(e,r)=>!!IR(e,r)||t.has(e,r)}));/** 333 * @license 334 * Copyright 2019 Google LLC 335 * 336 * Licensed under the Apache License, Version 2.0 (the "License"); 337 * you may not use this file except in compliance with the License. 338 * You may obtain a copy of the License at 339 * 340 * http://www.apache.org/licenses/LICENSE-2.0 341 * 342 * Unless required by applicable law or agreed to in writing, software 343 * distributed under the License is distributed on an "AS IS" BASIS, 344 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 345 * See the License for the specific language governing permissions and 346 * limitations under the License. 347 */class Lie{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(r=>{if(Die(r)){const n=r.getImmediate();return`${n.library}/${n.version}`}else return null}).filter(r=>r).join(" ")}}function Die(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const PS="@firebase/app",RR="0.16.0";/** 348 * @license 349 * Copyright 2019 Google LLC 350 * 351 * Licensed under the Apache License, Version 2.0 (the "License"); 352 * you may not use this file except in compliance with the License. 353 * You may obtain a copy of the License at 354 * 355 * http://www.apache.org/licenses/LICENSE-2.0 356 * 357 * Unless required by applicable law or agreed to in writing, software 358 * distributed under the License is distributed on an "AS IS" BASIS, 359 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 360 * See the License for the specific language governing permissions and 361 * limitations under the License. 362 */const ki=new zF("@firebase/app"),$ie="@firebase/app-compat",Fie="@firebase/analytics-compat",Bie="@firebase/analytics",zie="@firebase/app-check-compat",Vie="@firebase/app-check",Uie="@firebase/auth",Wie="@firebase/auth-compat",Hie="@firebase/database",qie="@firebase/data-connect",Gie="@firebase/database-compat",Kie="@firebase/functions",Yie="@firebase/functions-compat",Xie="@firebase/installations",Jie="@firebase/installations-compat",Qie="@firebase/messaging",Zie="@firebase/messaging-compat",eae="@firebase/performance",tae="@firebase/performance-compat",rae="@firebase/remote-config",nae="@firebase/remote-config-compat",iae="@firebase/storage",aae="@firebase/storage-compat",oae="@firebase/firestore",sae="@firebase/ai",lae="@firebase/firestore-compat",cae="firebase",uae="12.17.0";/** 363 * @license 364 * Copyright 2019 Google LLC 365 * 366 * Licensed under the Apache License, Version 2.0 (the "License"); 367 * you may not use this file except in compliance with the License. 368 * You may obtain a copy of the License at 369 * 370 * http://www.apache.org/licenses/LICENSE-2.0 371 * 372 * Unless required by applicable law or agreed to in writing, software 373 * distributed under the License is distributed on an "AS IS" BASIS, 374 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 375 * See the License for the specific language governing permissions and 376 * limitations under the License. 377 */const TS="[DEFAULT]",dae={[PS]:"fire-core",[$ie]:"fire-core-compat",[Bie]:"fire-analytics",[Fie]:"fire-analytics-compat",[Vie]:"fire-app-check",[zie]:"fire-app-check-compat",[Uie]:"fire-auth",[Wie]:"fire-auth-compat",[Hie]:"fire-rtdb",[qie]:"fire-data-connect",[Gie]:"fire-rtdb-compat",[Kie]:"fire-fn",[Yie]:"fire-fn-compat",[Xie]:"fire-iid",[Jie]:"fire-iid-compat",[Qie]:"fire-fcm",[Zie]:"fire-fcm-compat",[eae]:"fire-perf",[tae]:"fire-perf-compat",[rae]:"fire-rc",[nae]:"fire-rc-compat",[iae]:"fire-gcs",[aae]:"fire-gcs-compat",[oae]:"fire-fst",[lae]:"fire-fst-compat",[sae]:"fire-vertex","fire-js":"fire-js",[cae]:"fire-js-all"};/** 378 * @license 379 * Copyright 2019 Google LLC 380 * 381 * Licensed under the Apache License, Version 2.0 (the "License");
382 * you may not use this file except in compliance with the License. 383 * You may obtain a copy of the License at 384 * 385 * http://www.apache.org/licenses/LICENSE-2.0 386 * 387 * Unless required by applicable law or agreed to in writing, software 388 * distributed under the License is distributed on an "AS IS" BASIS, 389 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 390 * See the License for the specific language governing permissions and 391 * limitations under the License. 392 */const uu=new Map,fae=new Map,AS=new Map;function MR(t,e){try{t.container.addComponent(e)}catch(r){ki.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,r)}}function du(t){const e=t.name;if(AS.has(e))return ki.debug(`There were multiple attempts to register component ${e}.`),!1;AS.set(e,t);for(const r of uu.values())MR(r,t);for(const r of fae.values())MR(r,t);return!0}function WF(t,e){const r=t.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),t.container.getProvider(e)}function Rn(t){return t==null?!1:t.settings!==void 0}/** 393 * @license 394 * Copyright 2019 Google LLC 395 * 396 * Licensed under the Apache License, Version 2.0 (the "License"); 397 * you may not use this file except in compliance with the License. 398 * You may obtain a copy of the License at 399 * 400 * http://www.apache.org/licenses/LICENSE-2.0 401 * 402 * Unless required by applicable law or agreed to in writing, software 403 * distributed under the License is distributed on an "AS IS" BASIS, 404 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 405 * See the License for the specific language governing permissions and 406 * limitations under the License. 407 */const hae={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different {$mismatchedParam}. Existing: '{$oldValue}'. New: '{$newValue}'.","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
407d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},di=new Lu("app","Firebase",hae);/** 408 * @license 409 * Copyright 2019 Google LLC 410 * 411 * Licensed under the Apache License, Version 2.0 (the "License"); 412 * you may not use this file except in compliance with the License. 413 * You may obtain a copy of the License at 414 * 415 * http://www.apache.org/licenses/LICENSE-2.0 416 * 417 * Unless required by applicable law or agreed to in writing, software 418 * distributed under the License is distributed on an "AS IS" BASIS, 419 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 420 * See the License for the specific language governing permissions and 421 * limitations under the License. 422 */class mae{constructor(e,r,n){this._isDeleted=!1,this._options={...e},this._config={...r},this._name=r.name,this._automaticDataCollectionEnabled=r.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new Bs("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw di.create("app-deleted",{appName:this._name})}}/** 423 * @license 424 * Copyright 2019 Google LLC 425 * 426 * Licensed under the Apache License, Version 2.0 (the "License"); 427 * you may not use this file except in compliance with the License. 428 * You may obtain a copy of the License at 429 * 430 * http://www.apache.org/licenses/LICENSE-2.0 431 * 432 * Unless required by applicable law or agreed to in writing, software 433 * distributed under the License is distributed on an "AS IS" BASIS, 434 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 435 * See the License for the specific language governing permissions and 436 * limitations under the License. 437 */const $u=uae;function HF(t,e={}){let r=t;typeof e!="object"&&(e={name:e});const n={name:TS,automaticDataCollectionEnabled:!0,...e},i=n.name;if(typeof i!="string"||!i)throw di.create("bad-app-name",{appName:String(i)});if(r||(r=FF()),!r)throw di.create("no-options");const a=uu.get(i);if(a)if(Fs(r,a.options)){if(Fs(n,a.config))return a;throw di.create("duplicate-app",{appName:i,mismatchedParam:"config",oldValue:JSON.stringify(a.config),newValue:JSON.stringify(n)})}else throw di.create("duplicate-app",{appName:i,mismatchedParam:"options",oldValue:JSON.stringify(a.options),newValue:JSON.stringify(r)});const o=new bie(i);for(const u of AS.values())o.addComponent(u);const l=new mae(r,n,o);return uu.set(i,l),l}function pae(t=TS){const e=uu.get(t);if(!e&&t===TS&&FF())return HF();if(!e)throw di.create("no-app",{appName:t});return e}function gae(){return Array.from(uu.values())}function os(t,e,r){let n=dae[t]??t;r&&(n+=`-${r}`);const i=n.match(/\s|\//),a=e.match(/\s|\//);if(i||a){const o=[`Unable to register library "${n}" with version "${e}":`];i&&o.push(`library name "${n}" contains illegal characters (whitespace or "/")`),i&&a&&o.push("and"),a&&o.push(`version name "${e}" contains illegal characters (whitespace or "/")`),ki.warn(o.join(" "));return}du(new Bs(`${n}-version`,()=>({library:n,version:e}),"VERSION"))}/** 438 * @license 439 * Copyright 2021 Google LLC 440 * 441 * Licensed under the Apache License, Version 2.0 (the "License");
442 * you may not use this file except in compliance with the License. 443 * You may obtain a copy of the License at 444 * 445 * http://www.apache.org/licenses/LICENSE-2.0 446 * 447 * Unless required by applicable law or agreed to in writing, software 448 * distributed under the License is distributed on an "AS IS" BASIS, 449 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 450 * See the License for the specific language governing permissions and 451 * limitations under the License. 452 */const yae="firebase-heartbeat-database",vae=1,fu="firebase-heartbeat-store";let b0=null;function qF(){return b0||(b0=Iie(yae,vae,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(fu)}catch(r){console.warn(r)}}}}).catch(t=>{throw di.create("idb-open",{originalErrorMessage:t.message})})),b0}async function xae(t){try{const r=(await qF()).transaction(fu),n=await r.objectStore(fu).get(GF(t));return await r.done,n}catch(e){if(e instanceof ya)ki.warn(e.message);else{const r=di.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});ki.warn(r.message)}}}async function LR(t,e){try{const n=(await qF()).transaction(fu,"readwrite");await n.objectStore(fu).put(e,GF(t)),await n.done}catch(r){if(r instanceof ya)ki.warn(r.message);else{const n=di.create("idb-set",{originalErrorMessage:r==null?void 0:r.message});ki.warn(n.message)}}}function GF(t){return`${t.name}!${t.options.appId}`}/** 453 * @license 454 * Copyright 2021 Google LLC 455 * 456 * Licensed under the Apache License, Version 2.0 (the "License"); 457 * you may not use this file except in compliance with the License. 458 * You may obtain a copy of the License at 459 * 460 * http://www.apache.org/licenses/LICENSE-2.0 461 * 462 * Unless required by applicable law or agreed to in writing, software 463 * distributed under the License is distributed on an "AS IS" BASIS, 464 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 465 * See the License for the specific language governing permissions and 466 * limitations under the License. 467 */const bae=1024,wae=30;class Sae{constructor(e){this.container=e,this._heartbeatsCache=null;const r=this.container.getProvider("app").getImmediate();this._storage=new jae(r),this._heartbeatsCachePromise=this._storage.read().then(n=>(this._heartbeatsCache=n,n))}async triggerHeartbeat(){var e,r;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),a=DR();if(((e=this._heartbeatsCache)==null?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((r=this._heartbeatsCache)==null?void 0:r.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===a||this._heartbeatsCache.heartbeats.some(o=>o.date===a))return;if(this._heartbeatsCache.heartbeats.push({date:a,agent:i}),this._heartbeatsCache.heartbeats.length>wae){const o=Pae(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(o,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(n){ki.warn(n)}}async getHeartbeatsHeader(){var e;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((e=this._heartbeatsCache)==null?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const r=DR(),{heartbeatsToSend:n,unsentEntries:i}=kae(this._heartbeatsCache.heartbeats),a=DF(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=r,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),a}catch(r){return ki.warn(r),""}}}function DR(){return new Date().toISOString().substring(0,10)}function kae(t,e=bae){const r=[];let n=t.slice();for(const i of t){const a=r.find(o=>o.agent===i.agent);if(a){if(a.dates.push(i.date),$R(r)>e){a.dates.pop();break}}else if(r.push({agent:i.agent,dates:[i.date]}),$R(r)>e){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}class jae{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return lie()?cie().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const r=await xae(this.app);return r!=null&&r.heartbeats?r:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){if(await this._canUseIndexedDBPromise){const n=await this.read();return LR(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){if(await this._canUseIndexedDBPromise){const n=await this.read();return LR(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}else return}}function $R(t){return DF(JSON.stringify({version:2,heartbeats:t})).length}function Pae(t){if(t.length===0)return-1;let e=0,r=t[0].date;for(let n=1;n<t.length;n++)t[n].date<r&&(r=t[n].date,e=n);return e}/** 468 * @license 469 * Copyright 2019 Google LLC 470 * 471 * Licensed under the Apache License, Version 2.0 (the "License");
472 * you may not use this file except in compliance with the License. 473 * You may obtain a copy of the License at 474 * 475 * http://www.apache.org/licenses/LICENSE-2.0 476 * 477 * Unless required by applicable law or agreed to in writing, software 478 * distributed under the License is distributed on an "AS IS" BASIS, 479 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 480 * See the License for the specific language governing permissions and 481 * limitations under the License. 482 */function Tae(t){du(new Bs("platform-logger",e=>new Lie(e),"PRIVATE")),du(new Bs("heartbeat",e=>new Sae(e),"PRIVATE")),os(PS,RR,t),os(PS,RR,"esm2020"),os("fire-js","")}/** 483 * @license 484 * Copyright 2019 Google LLC 485 * 486 * Licensed under the Apache License, Version 2.0 (the "License"); 487 * you may not use this file except in compliance with the License. 488 * You may obtain a copy of the License at 489 * 490 * http://www.apache.org/licenses/LICENSE-2.0 491 * 492 * Unless required by applicable law or agreed to in writing, software 493 * distributed under the License is distributed on an "AS IS" BASIS, 494 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 495 * See the License for the specific language governing permissions and 496 * limitations under the License. 497 */Tae("");var Aae="firebase",Eae="12.17.1";/** 498 * @license 499 * Copyright 2020 Google LLC 500 * 501 * Licensed under the Apache License, Version 2.0 (the "License"); 502 * you may not use this file except in compliance with the License. 503 * You may obtain a copy of the License at 504 * 505 * http://www.apache.org/licenses/LICENSE-2.0 506 * 507 * Unless required by applicable law or agreed to in writing, software 508 * distributed under the License is distributed on an "AS IS" BASIS, 509 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 510 * See the License for the specific language governing permissions and 511 * limitations under the License. 512 */os(Aae,Eae,"app");function KF(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const _ae=KF,YF=new Lu("auth","Firebase",KF());/** 513 * @license 514 * Copyright 2020 Google LLC 515 * 516 * Licensed under the Apache License, Version 2.0 (the "License"); 517 * you may not use this file except in compliance with the License. 518 * You may obtain a copy of the License at 519 * 520 * http://www.apache.org/licenses/LICENSE-2.0 521 * 522 * Unless required by applicable law or agreed to in writing, software 523 * distributed under the License is distributed on an "AS IS" BASIS, 524 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 525 * See the License for the specific language governing permissions and 526 * limitations under the License. 527 */const Yh=new zF("@firebase/auth");function XF(t,...e){Yh.logLevel<=Je.WARN&&Yh.warn(`Auth (${$u}): ${t}`,...e)}function If(t,...e){Yh.logLevel<=Je.ERROR&&Yh.error(`Auth (${$u}): ${t}`,...e)}/** 528 * @license 529 * Copyright 2020 Google LLC 530 * 531 * Licensed under the Apache License, Version 2.0 (the "License"); 532 * you may not use this file except in compliance with the License. 533 * You may obtain a copy of the License at 534 * 535 * http://www.apache.org/licenses/LICENSE-2.0 536 * 537 * Unless required by applicable law or agreed to in writing, software 538 * distributed under the License is distributed on an "AS IS" BASIS, 539 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 540 * See the License for the specific language governing permissions and 541 * limitations under the License. 542 */function Hn(t,...e){throw jk(t,...e)}function wn(t,...e){return jk(t,...e)}function kk(t,e,r){const n={..._ae(),[e]:r};return new Lu("auth","Firebase",n).create(e,{appName:t.name})}function to(t){return kk(t,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Nae(t,e,r){const n=r;if(!(e instanceof n))throw n.name!==e.constructor.name&&Hn(t,"argument-error"),kk(t,"argument-error",`Type of ${e.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function jk(t,...e){if(typeof t!="string"){const r=e[0],n=[...e.slice(1)];return n[0]&&(n[0].appName=t.name),t._errorFactory.create(r,...n)}return YF.create(t,...e)}function Ee(t,e,...r){if(!t)throw jk(e,...r)}function fi(t){const e="INTERNAL ASSERTION FAILED: "+t;throw If(e),new Error(e)}function ji(t,e){t||fi(e)}/** 543 * @license 544 * Copyright 2020 Google LLC 545 * 546 * Licensed under the Apache License, Version 2.0 (the "License");
547 * you may not use this file except in compliance with the License. 548 * You may obtain a copy of the License at 549 * 550 * http://www.apache.org/licenses/LICENSE-2.0 551 * 552 * Unless required by applicable law or agreed to in writing, software 553 * distributed under the License is distributed on an "AS IS" BASIS, 554 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 555 * See the License for the specific language governing permissions and 556 * limitations under the License. 557 */function ES(){var t;return typeof self<"u"&&((t=self.location)==null?void 0:t.href)||""}function Oae(){return FR()==="http:"||FR()==="https:"}function FR(){var t;return typeof self<"u"&&((t=self.location)==null?void 0:t.protocol)||null}/** 558 * @license 559 * Copyright 2020 Google LLC 560 * 561 * Licensed under the Apache License, Version 2.0 (the "License"); 562 * you may not use this file except in compliance with the License. 563 * You may obtain a copy of the License at 564 * 565 * http://www.apache.org/licenses/LICENSE-2.0 566 * 567 * Unless required by applicable law or agreed to in writing, software 568 * distributed under the License is distributed on an "AS IS" BASIS, 569 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 570 * See the License for the specific language governing permissions and 571 * limitations under the License. 572 */function Cae(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(Oae()||aie()||"connection"in navigator)?navigator.onLine:!0}function Iae(){if(typeof navigator>"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}/** 573 * @license 574 * Copyright 2020 Google LLC 575 * 576 * Licensed under the Apache License, Version 2.0 (the "License"); 577 * you may not use this file except in compliance with the License. 578 * You may obtain a copy of the License at 579 * 580 * http://www.apache.org/licenses/LICENSE-2.0 581 * 582 * Unless required by applicable law or agreed to in writing, software 583 * distributed under the License is distributed on an "AS IS" BASIS, 584 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 585 * See the License for the specific language governing permissions and 586 * limitations under the License. 587 */class Fu{constructor(e,r){this.shortDelay=e,this.longDelay=r,ji(r>e,"Short delay should be less than long delay!"),this.isMobile=nie()||oie()}get(){return Cae()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** 588 * @license 589 * Copyright 2020 Google LLC 590 * 591 * Licensed under the Apache License, Version 2.0 (the "License"); 592 * you may not use this file except in compliance with the License. 593 * You may obtain a copy of the License at 594 * 595 * http://www.apache.org/licenses/LICENSE-2.0 596 * 597 * Unless required by applicable law or agreed to in writing, software 598 * distributed under the License is distributed on an "AS IS" BASIS, 599 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 600 * See the License for the specific language governing permissions and 601 * limitations under the License. 602 */function Pk(t,e){ji(t.emulator,"Emulator should always be set here");const{url:r}=t.emulator;return e?`${r}${e.startsWith("/")?e.slice(1):e}`:r}/** 603 * @license 604 * Copyright 2020 Google LLC 605 * 606 * Licensed under the Apache License, Version 2.0 (the "License"); 607 * you may not use this file except in compliance with the License. 608 * You may obtain a copy of the License at 609 * 610 * http://www.apache.org/licenses/LICENSE-2.0 611 * 612 * Unless required by applicable law or agreed to in writing, software 613 * distributed under the License is distributed on an "AS IS" BASIS, 614 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 615 * See the License for the specific language governing permissions and 616 * limitations under the License. 617 */class JF{static initialize(e,r,n){this.fetchImpl=e,r&&(this.headersImpl=r),n&&(this.responseImpl=n)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;fi("Could not find fetch implementation, make sure you call FetchProvi
617der.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;fi("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;fi("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** 618 * @license 619 * Copyright 2020 Google LLC 620 * 621 * Licensed under the Apache License, Version 2.0 (the "License"); 622 * you may not use this file except in compliance with the License. 623 * You may obtain a copy of the License at 624 * 625 * http://www.apache.org/licenses/LICENSE-2.0 626 * 627 * Unless required by applicable law or agreed to in writing, software 628 * distributed under the License is distributed on an "AS IS" BASIS, 629 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 630 * See the License for the specific language governing permissions and 631 * limitations under the License. 632 */const Rae={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/** 633 * @license 634 * Copyright 2020 Google LLC 635 * 636 * Licensed under the Apache License, Version 2.0 (the "License"); 637 * you may not use this file except in compliance with the License. 638 * You may obtain a copy of the License at 639 * 640 * http://www.apache.org/licenses/LICENSE-2.0 641 * 642 * Unless required by applicable law or agreed to in writing, software 643 * distributed under the License is distributed on an "AS IS" BASIS, 644 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 645 * See the License for the specific language governing permissions and 646 * limitations under the License. 647 */const Mae=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],Lae=new Fu(3e4,6e4);function Tk(t,e){return t.tenantId&&!e.tenantId?{...e,tenantId:t.tenantId}:e}async function tl(t,e,r,n,i={}){return QF(t,i,async()=>{let a={},o={};n&&(e==="GET"?o=n:a={body:JSON.stringify(n)});const l=Du({...o,key:t.config.apiKey}).slice(1),u=await t._getAdditionalHeaders();u["Content-Type"]="application/json",t.languageCode&&(u["X-Firebase-Locale"]=t.languageCode);const d={method:e,headers:u,...a};
647return iie()||(d.referrerPolicy="strict-origin-when-cross-origin"),t.emulatorConfig&&wk(t.emulatorConfig.host)&&(d.credentials="include"),JF.fetch()(await ZF(t,t.config.apiHost,r,l),d)})}async function QF(t,e,r){t._canInitEmulator=!1;const n={...Rae,...e};try{const i=new $ae(t),a=await Promise.race([r(),i.promise]);i.clearNetworkTimeout();const o=await a.json();if("needConfirmation"in o)throw vf(t,"account-exists-with-different-credential",o);if(a.ok&&!("errorMessage"in o))return o;{const l=a.ok?o.errorMessage:o.error.message,[u,d]=l.split(" : ");if(u==="FEDERATED_USER_ID_ALREADY_LINKED")throw vf(t,"credential-already-in-use",o);if(u==="EMAIL_EXISTS")throw vf(t,"email-already-in-use",o);if(u==="USER_DISABLED")throw vf(t,"user-disabled",o);const h=n[u]||u.toLowerCase().replace(/[_\s]+/g,"-");if(d)throw kk(t,h,d);Hn(t,h)}}catch(i){if(i instanceof ya)throw i;Hn(t,"network-request-failed",{message:String(i)})}}async function Dae(t,e,r,n,i={}){const a=await tl(t,e,r,n,i);return"mfaPendingCredential"in a&&Hn(t,"multi-factor-auth-required",{_serverResponse:a}),a}async function ZF(t,e,r,n){const i=`${e}${r}?${n}`,a=t,o=a.config.emulator?Pk(t.config,i):`${t.config.apiScheme}://${i}`;return Mae.includes(r)&&(await a._persistenceManagerAvailable,a._getPersistenceType()==="COOKIE")?a._getPersistence()._getFinalTarget(o).toString():o}class $ae{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((r,n)=>{this.timer=setTimeout(()=>n(wn(this.auth,"network-request-failed")),Lae.get())})}}function vf(t,e,r){const n={appName:t.name};r.email&&(n.email=r.email),r.phoneNumber&&(n.phoneNumber=r.phoneNumber);const i=wn(t,e,n);return i.customData._tokenResponse=r,i}/** 648 * @license 649 * Copyright 2020 Google LLC 650 * 651 * Licensed under the Apache License, Version 2.0 (the "License"); 652 * you may not use this file except in compliance with the License. 653 * You may obtain a copy of the License at 654 * 655 * http://www.apache.org/licenses/LICENSE-2.0 656 * 657 * Unless required by applicable law or agreed to in writing, software 658 * distributed under the License is distributed on an "AS IS" BASIS, 659 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 660 * See the License for the specific language governing permissions and 661 * limitations under the License. 662 */async function Fae(t,e){return tl(t,"POST","/v1/accounts:delete",e)}async function Xh(t,e){return tl(t,"POST","/v1/accounts:lookup",e)}/** 663 * @license 664 * Copyright 2020 Google LLC 665 * 666 * Licensed under the Apache License, Version 2.0 (the "License"); 667 * you may not use this file except in compliance with the License. 668 * You may obtain a copy of the License at 669 * 670 * http://www.apache.org/licenses/LICENSE-2.0 671 * 672 * Unless required by applicable law or agreed to in writing, software 673 * distributed under the License is distributed on an "AS IS" BASIS, 674 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 675 * See the License for the specific language governing permissions and 676 * limitations under the License. 677 */function vc(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function Bae(t,e=!1){const r=va(t),n=await r.getIdToken(e),i=Ak(n);Ee(i&&i.exp&&i.auth_time&&i.iat,r.auth,"internal-error");const a=typeof i.firebase=="object"?i.firebase:void 0,o=a==null?void 0:a.sign_in_provider;return{claims:i,token:n,authTime:vc(w0(i.auth_time)),issuedAtTime:vc(w0(i.iat)),expirationTime:vc(w0(i.exp)),signInProvider:o||null,signInSecondFactor:(a==null?void 0:a.sign_in_second_factor)||null}}function w0(t){return Number(t)*1e3}function Ak(t){const[e,r,n]=t.split(".");if(e===void 0||r===void 0||n===void 0)return If("JWT malformed, contained fewer than 3 sections"),null;try{const i=$F(r);return i?JSON.parse(i):(If("Failed to decode base64 JWT payload"),null)}catch(i){return If("Caught error parsing JWT payload as JSON",i==null?void 0:i.toString()),null}}function BR(t){const e=Ak(t);return Ee(e,"internal-error"),Ee(typeof e.exp<"u","internal-error"),Ee(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}/** 678 * @license 679 * Copyright 2020 Google LLC 680 * 681 * Licensed under the Apache License, Version 2.0 (the "License");
682 * you may not use this file except in compliance with the License. 683 * You may obtain a copy of the License at 684 * 685 * http://www.apache.org/licenses/LICENSE-2.0 686 * 687 * Unless required by applicable law or agreed to in writing, software 688 * distributed under the License is distributed on an "AS IS" BASIS, 689 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 690 * See the License for the specific language governing permissions and 691 * limitations under the License. 692 */async function hu(t,e,r=!1){if(r)return e;try{return await e}catch(n){throw n instanceof ya&&zae(n)&&t.auth.currentUser===t&&await t.auth.signOut(),n}}function zae({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}/** 693 * @license 694 * Copyright 2020 Google LLC 695 * 696 * Licensed under the Apache License, Version 2.0 (the "License"); 697 * you may not use this file except in compliance with the License. 698 * You may obtain a copy of the License at 699 * 700 * http://www.apache.org/licenses/LICENSE-2.0 701 * 702 * Unless required by applicable law or agreed to in writing, software 703 * distributed under the License is distributed on an "AS IS" BASIS, 704 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 705 * See the License for the specific language governing permissions and 706 * limitations under the License. 707 */class Vae{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){if(e){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const n=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,n)}}schedule(e=!1){if(!this.isRunning)return;const r=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},r)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){(e==null?void 0:e.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/** 708 * @license 709 * Copyright 2020 Google LLC 710 * 711 * Licensed under the Apache License, Version 2.0 (the "License"); 712 * you may not use this file except in compliance with the License. 713 * You may obtain a copy of the License at 714 * 715 * http://www.apache.org/licenses/LICENSE-2.0 716 * 717 * Unless required by applicable law or agreed to in writing, software 718 * distributed under the License is distributed on an "AS IS" BASIS, 719 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 720 * See the License for the specific language governing permissions and 721 * limitations under the License. 722 */class _S{constructor(e,r){this.createdAt=e,this.lastLoginAt=r,this._initializeTime()}_initializeTime(){this.lastSignInTime=vc(this.lastLoginAt),this.creationTime=vc(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/** 723 * @license 724 * Copyright 2019 Google LLC 725 * 726 * Licensed under the Apache License, Version 2.0 (the "License"); 727 * you may not use this file except in compliance with the License. 728 * You may obtain a copy of the License at 729 * 730 * http://www.apache.org/licenses/LICENSE-2.0 731 * 732 * Unless required by applicable law or agreed to in writing, software 733 * distributed under the License is distributed on an "AS IS" BASIS, 734 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 735 * See the License for the specific language governing permissions and 736 * limitations under the License. 737 */async function Jh(t){var m;const e=t.auth,r=await t.getIdToken(),n=await hu(t,Xh(e,{idToken:r}));Ee(n==null?void 0:n.users.length,e,"internal-error");const i=n.users[0];t._notifyReloadListener(i);const a=(m=i.providerUserInfo)!=null&&m.length?eB(i.providerUserInfo):[],o=Wae(t.providerData,a),l=t.isAnonymous,u=!(t.email&&i.passwordHash)&&!(o!=null&&o.length),d=l?u:!1,h={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:o,metadata:new _S(i.createdAt,i.lastLoginAt),isAnonymous:d};Object.assign(t,h)}async function Uae(t){const e=va(t);await Jh(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function Wae(t,e){return[...t.filter(n=>
737!e.some(i=>i.providerId===n.providerId)),...e]}function eB(t){return t.map(({providerId:e,...r})=>({providerId:e,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}))}/** 738 * @license 739 * Copyright 2020 Google LLC 740 * 741 * Licensed under the Apache License, Version 2.0 (the "License"); 742 * you may not use this file except in compliance with the License. 743 * You may obtain a copy of the License at 744 * 745 * http://www.apache.org/licenses/LICENSE-2.0 746 * 747 * Unless required by applicable law or agreed to in writing, software 748 * distributed under the License is distributed on an "AS IS" BASIS, 749 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 750 * See the License for the specific language governing permissions and 751 * limitations under the License. 752 */async function Hae(t,e){const r=await QF(t,{},async()=>{const n=Du({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:i,apiKey:a}=t.config,o=await ZF(t,i,"/v1/token",`key=${a}`),l=await t._getAdditionalHeaders();l["Content-Type"]="application/x-www-form-urlencoded";const u={method:"POST",headers:l,body:n};return t.emulatorConfig&&wk(t.emulatorConfig.host)&&(u.credentials="include"),JF.fetch()(o,u)});return{accessToken:r.access_token,expiresIn:r.expires_in,refreshToken:r.refresh_token}}async function qae(t,e){return tl(t,"POST","/v2/accounts:revokeToken",Tk(t,e))}/** 753 * @license 754 * Copyright 2020 Google LLC 755 * 756 * Licensed under the Apache License, Version 2.0 (the "License"); 757 * you may not use this file except in compliance with the License. 758 * You may obtain a copy of the License at 759 * 760 * http://www.apache.org/licenses/LICENSE-2.0 761 * 762 * Unless required by applicable law or agreed to in writing, software 763 * distributed under the License is distributed on an "AS IS" BASIS, 764 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 765 * See the License for the specific language governing permissions and 766 * limitations under the License. 767 */class ss{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Ee(e.idToken,"internal-error"),Ee(typeof e.idToken<"u","internal-error"),Ee(typeof e.refreshToken<"u","internal-error");const r="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):BR(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,r)}updateFromIdToken(e){Ee(e.length!==0,"internal-error");const r=BR(e);this.updateTokensAndExpiration(e,null,r)}async getToken(e,r=!1){return!r&&this.accessToken&&!this.isExpired?this.accessToken:(Ee(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(e,r){const{accessToken:n,refreshToken:i,expiresIn:a}=await Hae(e,r);this.updateTokensAndExpiration(n,i,Number(a))}updateTokensAndExpiration(e,r,n){this.refreshToken=r||null,this.accessToken=e||null,this.expirationTime=Date.now()+n*1e3}static fromJSON(e,r){const{refreshToken:n,accessToken:i,expirationTime:a}=r,o=new ss;return n&&(Ee(typeof n=="string","internal-error",{appName:e}),o.refreshToken=n),i&&(Ee(typeof i=="string","internal-error",{appName:e}),o.accessToken=i),a&&(Ee(typeof a=="number","internal-error",{appName:e}),o.expirationTime=a),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new ss,this.toJSON())}_performRefresh(){return fi("not implemented")}}/** 768 * @license 769 * Copyright 2020 Google LLC 770 * 771 * Licensed under the Apache License, Version 2.0 (the "License"); 772 * you may not use this file except in compliance with the License. 773 * You may obtain a copy of the License at 774 * 775 * http://www.apache.org/licenses/LICENSE-2.0 776 * 777 * Unless required by applicable law or agreed to in writing, softw
777are 778 * distributed under the License is distributed on an "AS IS" BASIS, 779 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 780 * See the License for the specific language governing permissions and 781 * limitations under the License. 782 */function Yi(t,e){Ee(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}class vn{constructor({uid:e,auth:r,stsTokenManager:n,...i}){this.providerId="firebase",this.proactiveRefresh=new Vae(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=e,this.auth=r,this.stsTokenManager=n,this.accessToken=n.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new _S(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const r=await hu(this,this.stsTokenManager.getToken(this.auth,e));return Ee(r,this.auth,"internal-error"),this.accessToken!==r&&(this.accessToken=r,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),r}getIdTokenResult(e){return Bae(this,e)}reload(){return Uae(this)}_assign(e){this!==e&&(Ee(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(r=>({...r})),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const r=new vn({...this,auth:e,stsTokenManager:this.stsTokenManager._clone()});return r.metadata._copy(this.metadata),r}_onReload(e){Ee(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,r=!1){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),r&&await Jh(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Rn(this.auth.app))return Promise.reject(to(this.auth));const e=await this.getIdToken();return await hu(this,Fae(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return{uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>({...e})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId,...this.metadata.toJSON(),apiKey:this.auth.config.apiKey,appName:this.auth.name}}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,r){const n=r.displayName??void 0,i=r.email??void 0,a=r.phoneNumber??void 0,o=r.photoURL??void 0,l=r.tenantId??void 0,u=r._redirectEventId??void 0,d=r.createdAt??void 0,h=r.lastLoginAt??void 0,{uid:m,emailVerified:g,isAnonymous:v,providerData:b,stsTokenManager:w}=r;Ee(m&&w,e,"internal-error");const x=ss.fromJSON(this.name,w);Ee(typeof m=="string",e,"internal-error"),Yi(n,e.name),Yi(i,e.name),Ee(typeof g=="boolean",e,"internal-error"),Ee(typeof v=="boolean",e,"internal-error"),Yi(a,e.name),Yi(o,e.name),Yi(l,e.name),Yi(u,e.name),Yi(d,e.name),Yi(h,e.name);const k=new vn({uid:m,auth:e,email:i,emailVerified:g,displayName:n,isAnonymous:v,photoURL:o,phoneNumber:a,tenantId:l,stsTokenManager:x,createdAt:d,lastLoginAt:h});return b&&Array.isArray(b)&&(k.providerData=b.map(P=>({...P}))),u&&(k._redirectEventId=u),k}static async _fromIdTokenResponse(e,r,n=!1){const i=new ss;i.updateFromServerResponse(r);const a=new vn({uid:r.localId,auth:e,stsTokenManager:i,isAnonymous:n});return await Jh(a),a}static async _fromGetAccountInfoResponse(e,r,n){const i=r.users[0];Ee(i.localId!==void 0,"internal-error");const a=i.providerUserInfo!==void 0?eB(i.providerUserInfo):[],o=!(i.email&&i.passwordHash)&&!(a!=null&&a.length),l=new ss;l.updateFromIdToken(n);const u=new vn({uid:i.localId,auth:e,stsTokenManager:l,isAnonymous:o}),d={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:a,metadata:new _S(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash)&&!(a!=null&&a.length)};return Object.assign(u,d),u}}/** 783 * @license 784 * Copyright 2020 Google LLC 785 * 786 * Licensed under the Apache License, Version 2.0 (the "License");
787 * you may not use this file except in compliance with the License. 788 * You may obtain a copy of the License at 789 * 790 * http://www.apache.org/licenses/LICENSE-2.0 791 * 792 * Unless required by applicable law or agreed to in writing, software 793 * distributed under the License is distributed on an "AS IS" BASIS, 794 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 795 * See the License for the specific language governing permissions and 796 * limitations under the License. 797 */const zR=new Map;function hi(t){ji(t instanceof Function,"Expected a class definition");let e=zR.get(t);return e?(ji(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,zR.set(t,e),e)}/** 798 * @license 799 * Copyright 2019 Google LLC 800 * 801 * Licensed under the Apache License, Version 2.0 (the "License"); 802 * you may not use this file except in compliance with the License. 803 * You may obtain a copy of the License at 804 * 805 * http://www.apache.org/licenses/LICENSE-2.0 806 * 807 * Unless required by applicable law or agreed to in writing, software 808 * distributed under the License is distributed on an "AS IS" BASIS, 809 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 810 * See the License for the specific language governing permissions and 811 * limitations under the License. 812 */class tB{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,r){this.storage[e]=r}async _get(e){const r=this.storage[e];return r===void 0?null:r}async _remove(e){delete this.storage[e]}_addListener(e,r){}_removeListener(e,r){}}tB.type="NONE";const VR=tB;/** 813 * @license 814 * Copyright 2019 Google LLC 815 * 816 * Licensed under the Apache License, Version 2.0 (the "License"); 817 * you may not use this file except in compliance with the License. 818 * You may obtain a copy of the License at 819 * 820 * http://www.apache.org/licenses/LICENSE-2.0 821 * 822 * Unless required by applicable law or agreed to in writing, software 823 * distributed under the License is distributed on an "AS IS" BASIS, 824 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 825 * See the License for the specific language governing permissions and 826 * limitations under the License. 827 */function Rf(t,e,r){return`firebase:${t}:${e}:${r}`}class ls{constructor(e,r,n){this.persistence=e,this.auth=r,this.userKey=n;const{config:i,name:a}=this.auth;this.fullUserKey=Rf(this.userKey,i.apiKey,a),this.fullPersistenceKey=Rf("persistence",i.apiKey,a),this.boundEventHandler=r._onStorageEvent.bind(r),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);if(!e)return null;if(typeof e=="string"){const r=await Xh(this.auth,{idToken:e}).catch(()=>{});return r?vn._fromGetAccountInfoResponse(this.auth,r,e):null}return vn._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const r=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,r)return this.setCurrentUser(r)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,r,n="authUser"){if(!r.length)return new ls(hi(VR),e,n);const i=(await Promise.all(r.map(async d=>{if(await d._isAvailable())return d}))).filter(d=>d);let a=i[0]||hi(VR);const o=Rf(n,e.config.apiKey,e.name);let l=null;for(const d of r)try{const h=await d._get(o);if(h){let m;if(typeof h=="string"){const g=await Xh(e,{idToken:h}).catch(()=>{});if(!g)break;m=await vn._fromGetAccountInfoResponse(e,g,h)}else m=vn._fromJSON(e,h);d!==a&&(l=m),a=d;break}}catch{}const u=i.filter(d=>d._shouldAllowMigration);return!a._shouldAllowMigration||!u.length?new ls(a,e,n):(a=u[0],l&&await a._set(o,l.toJSON()),await Promise.all(r.map(async d=>{if(d!==a)try{await d._remove(o)}catch{}})),new ls(a,e,n))}}/** 828 * @license 829 * Copyright 2020 Google LLC 830 * 831 * Licensed under the Apache License, Version 2.0 (the "License");
832 * you may not use this file except in compliance with the License. 833 * You may obtain a copy of the License at 834 * 835 * http://www.apache.org/licenses/LICENSE-2.0 836 * 837 * Unless required by applicable law or agreed to in writing, software 838 * distributed under the License is distributed on an "AS IS" BASIS, 839 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 840 * See the License for the specific language governing permissions and 841 * limitations under the License. 842 */function UR(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(aB(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(rB(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(sB(e))return"Blackberry";if(lB(e))return"Webos";if(nB(e))return"Safari";if((e.includes("chrome/")||iB(e))&&!e.includes("edge/"))return"Chrome";if(oB(e))return"Android";{const r=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=t.match(r);if((n==null?void 0:n.length)===2)return n[1]}return"Other"}function rB(t=ur()){return/firefox\//i.test(t)}function nB(t=ur()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function iB(t=ur()){return/crios\//i.test(t)}function aB(t=ur()){return/iemobile/i.test(t)}function oB(t=ur()){return/android/i.test(t)}function sB(t=ur()){return/blackberry/i.test(t)}function lB(t=ur()){return/webos/i.test(t)}function Ek(t=ur()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function Gae(t=ur()){var e;return Ek(t)&&!!((e=window.navigator)!=null&&e.standalone)}function Kae(){return sie()&&document.documentMode===10}function cB(t=ur()){return Ek(t)||oB(t)||lB(t)||sB(t)||/windows phone/i.test(t)||aB(t)}/** 843 * @license 844 * Copyright 2020 Google LLC 845 * 846 * Licensed under the Apache License, Version 2.0 (the "License"); 847 * you may not use this file except in compliance with the License. 848 * You may obtain a copy of the License at 849 * 850 * http://www.apache.org/licenses/LICENSE-2.0 851 * 852 * Unless required by applicable law or agreed to in writing, software 853 * distributed under the License is distributed on an "AS IS" BASIS, 854 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 855 * See the License for the specific language governing permissions and 856 * limitations under the License. 857 */function uB(t,e=[]){let r;switch(t){case"Browser":r=UR(ur());break;case"Worker":r=`${UR(ur())}-${t}`;break;default:r=t}const n=e.length?e.join(","):"FirebaseCore-web";return`${r}/JsCore/${$u}/${n}`}/** 858 * @license 859 * Copyright 2022 Google LLC 860 * 861 * Licensed under the Apache License, Version 2.0 (the "License"); 862 * you may not use this file except in compliance with the License. 863 * You may obtain a copy of the License at 864 * 865 * http://www.apache.org/licenses/LICENSE-2.0 866 * 867 * Unless required by applicable law or agreed to in writing, software 868 * distributed under the License is distributed on an "AS IS" BASIS, 869 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 870 * See the License for the specific language governing permissions and 871 * limitations under the License. 872 */class Yae{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,r){const n=a=>new Promise((o,l)=>{try{const u=e(a);o(u)}catch(u){l(u)}});n.onAbort=r,this.queue.push(n);const i=this.queue.length-1;return()=>{this.queue[i]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const r=[];try{for(const n of this.queue)await n(e),n.onAbort&&r.push(n.onAbort)}catch(n){r.reverse();for(const i of r)try{i()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:n==null?void 0:n.message})}}}/** 873 * @license 874 * Copyright 2023 Google LLC 875 * 876 * Licensed under the Apache License, Version 2.0 (the "License"); 877 * you may not use this file except in compliance with the License. 878 * You may obtain a copy of the License at 879 * 880 * http://www.apache.org/licenses/LICENSE-2.0 881 * 882 * Unless required by applicable law or agreed to in writing, softw
882are 883 * distributed under the License is distributed on an "AS IS" BASIS, 884 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 885 * See the License for the specific language governing permissions and 886 * limitations under the License. 887 */async function Xae(t,e={}){return tl(t,"GET","/v2/passwordPolicy",Tk(t,e))}/** 888 * @license 889 * Copyright 2023 Google LLC 890 * 891 * Licensed under the Apache License, Version 2.0 (the "License"); 892 * you may not use this file except in compliance with the License. 893 * You may obtain a copy of the License at 894 * 895 * http://www.apache.org/licenses/LICENSE-2.0 896 * 897 * Unless required by applicable law or agreed to in writing, software 898 * distributed under the License is distributed on an "AS IS" BASIS, 899 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 900 * See the License for the specific language governing permissions and 901 * limitations under the License. 902 */const Jae=6;class Qae{constructor(e){var n;const r=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=r.minPasswordLength??Jae,r.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=r.maxPasswordLength),r.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=r.containsLowercaseCharacter),r.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=r.containsUppercaseCharacter),r.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=r.containsNumericCharacter),r.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=r.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=((n=e.allowedNonAlphanumericCharacters)==null?void 0:n.join(""))??"",this.forceUpgradeOnSignin=e.forceUpgradeOnSignin??!1,this.schemaVersion=e.schemaVersion}validatePassword(e){const r={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,r),this.validatePasswordCharacterOptions(e,r),r.isValid&&(r.isValid=r.meetsMinPasswordLength??!0),r.isValid&&(r.isValid=r.meetsMaxPasswordLength??!0),r.isValid&&(r.isValid=r.containsLowercaseLetter??!0),r.isValid&&(r.isValid=r.containsUppercaseLetter??!0),r.isValid&&(r.isValid=r.containsNumericCharacter??!0),r.isValid&&(r.isValid=r.containsNonAlphanumericCharacter??!0),r}validatePasswordLengthOptions(e,r){const n=this.customStrengthOptions.minPasswordLength,i=this.customStrengthOptions.maxPasswordLength;n&&(r.meetsMinPasswordLength=e.length>=n),i&&(r.meetsMaxPasswordLength=e.length<=i)}validatePasswordCharacterOptions(e,r){this.updatePasswordCharacterOptionsStatuses(r,!1,!1,!1,!1);let n;for(let i=0;i<e.length;i++)n=e.charAt(i),this.updatePasswordCharacterOptionsStatuses(r,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,r,n,i,a){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=r)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=i)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=a))}}/** 903 * @license 904 * Copyright 2020 Google LLC 905 * 906 * Licensed under the Apache License, Version 2.0 (the "License"); 907 * you may not use this file except in compliance with the License. 908 * You may obtain a copy of the License at 909 * 910 * http://www.apache.org/licenses/LICENSE-2.0 911 * 912 * Unless required by applicable law or agreed to in writing, software 913 * distributed under the License is distributed on an "AS IS" BASIS, 914 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 915 * See the License for the specific language governing permissions and 916 * limitations under the License. 917 */class Zae{constructor(e,r,n,i){this.app=e,this.heartbeatServiceProvider=r,this.appCheckServiceProvider=n,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new WR(this),this.idTokenSubscription=new WR(this),this.beforeStateQueue=new Yae(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=YF,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=i.sdkClientVersion,this._persistenceManagerAvailable=new Promise(a=>this._resolvePersistenceManagerAvailable=a)}_initializeWithPersistence(e,r){return r&&(this._popupRedirectResolver=hi(r)),this._initializationPromise=this.queue(async()=>{var n,i,a;if(!this._deleted&&(this.persistenceManager=await ls.create(this,e),(n=this._resolvePersistenceManagerAvailable)==null||n.call(this),!this._deleted)){if
917((i=this._popupRedirectResolver)!=null&&i._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(r),this.lastNotifiedUid=((a=this.currentUser)==null?void 0:a.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUserFromIdToken(e){try{const r=await Xh(this,{idToken:e}),n=await vn._fromGetAccountInfoResponse(this,r,e);await this.directlySetCurrentUser(n)}catch(r){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",r),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var a;if(Rn(this.app)){const o=this.app.settings.authIdToken;return o?new Promise(l=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(o).then(l,l))}):this.directlySetCurrentUser(null)}const r=await this.assertedPersistence.getCurrentUser();let n=r,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const o=(a=this.redirectUser)==null?void 0:a._redirectEventId,l=n==null?void 0:n._redirectEventId,u=await this.tryRedirectSignIn(e);(!o||o===l)&&(u!=null&&u.user)&&(n=u.user,i=!0)}if(!n)return this.directlySetCurrentUser(null);if(!n._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(n)}catch(o){n=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(o))}return n?this.reloadAndSetCurrentUserOrClear(n):this.directlySetCurrentUser(null)}return Ee(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===n._redirectEventId?this.directlySetCurrentUser(n):this.reloadAndSetCurrentUserOrClear(n)}async tryRedirectSignIn(e){let r=null;try{r=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return r}async reloadAndSetCurrentUserOrClear(e){try{await Jh(e)}catch(r){if((r==null?void 0:r.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=Iae()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if(Rn(this.app))return Promise.reject(to(this));const r=e?va(e):null;return r&&Ee(r.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(r&&r._clone(this))}async _updateCurrentUser(e,r=!1){if(!this._deleted)return e&&Ee(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),r||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return Rn(this.app)?Promise.reject(to(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return Rn(this.app)?Promise.reject(to(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(hi(e))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const r=this._getPasswordPolicyInternal();return r.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):r.validatePassword(e)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await Xae(this),r=new Qae(e);this.tenantId===null?this._projectPasswordPolicy=r:this._tenantPasswordPolicies[this.tenantId]=r}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new Lu("auth","Firebase",e())}onAuthStateChanged(e,r,n){return this.registerStateListener(this.authStateSubscription,e,r,n)}beforeAuthStateChanged(e,r){return this.beforeStateQueue.pushCallback(e,r)}onIdTokenChanged(e,r,n){return this.registerStateListener(this.idTokenSubscription,e,r,n)}authStateReady(){return new Promise((e,r)=>{if(this.currentUser)e();else{const n=this.onAuthStateChanged(()=>{n(),e()},r)}})}async revokeAccessToken(e){if(this.currentUser){const r=await this.currentUser.getIdToken(),n={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:r};this.tenantId!=null&&(n.tenantId=this.tenantId),await qae(this,n)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)==null?void 0:e.toJSON()}}async _setRedirectUser(e,r){const n=await this.getOrInitRedirectPersistenceManager(r);return e===null?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const r=e&&hi(e)||this._popupRedirectResolver;Ee(r,this,"argument-error"),this.redirectPersistenceManager=await ls.create(this,[hi(r._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var r,n;return this._isInitialized&&await this.queue(async()=>{}),((r=this._currentUser)==null?void 0:r._redirectEventId)===e?this._currentUser:((n=this.redirectUser)==null?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var r;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const e=((r=this.currentUser)==null?void 0:r.uid)??null;this.lastNotifiedUid!==e&&(this.lastNotifiedUid=e,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,r,n,i){if(this._deleted)return()=>{};const a=typeof r=="function"?r:r.next.bind(r);let o=!1;const l=this._isInitialized?Promise.resolve():this._initializationPromise;if(Ee(l,this,"internal-error"),l.then(()=>{o||a(this.currentUser)}),typeof r=="function"){const u=e.addObserver(r,n,i);return()=>{o=!0,u()}}else{const u=e.addObserver(r);return()=>{o=!0,u()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return Ee(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=uB(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var i;const e={"X-Client-Version":this.clientVersion};this.app.options.appId&&(e["X-Firebase-gmpid"]=this.app.options.appId);const r=await((i=this.heartbeatServiceProvider.getImmediate({optional:!0}))==null?void 0:i.getHeartbeatsHeader());r&&(e["X-Firebase-Client"]=r);const n=await this._getAppCheckToken();return n&&(e["X-Firebase-AppCheck"]=n),e}async _getAppCheckToken(){var r;if(Rn(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const e=await((r=this.appCheckServiceProvider.getImmediate({optional:!0}))==null?void 0:r.getToken());return e!=null&&e.error&&XF(`Error while retrieving App Check token: ${e.error}`),e==null?void 0:e.token}}function rp(t){return va(t)}class WR{constructor(e){this.auth=e,this.observer=null,this.addObserver=hie(r=>this.observer=r)}get next(){return Ee(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** 918 * @license 919 * Copyright 2020 Google LLC 920 * 921 * Licensed under the Apache License, Version 2.0 (the "License");
922 * you may not use this file except in compliance with the License. 923 * You may obtain a copy of the License at 924 * 925 * http://www.apache.org/licenses/LICENSE-2.0 926 * 927 * Unless required by applicable law or agreed to in writing, software 928 * distributed under the License is distributed on an "AS IS" BASIS, 929 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 930 * See the License for the specific language governing permissions and 931 * limitations under the License. 932 */let _k={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function eoe(t){_k=t}function toe(t){return _k.loadJS(t)}function roe(){return _k.gapiScript}function noe(t){return`__${t}${Math.floor(Math.random()*1e6)}`}/** 933 * @license 934 * Copyright 2020 Google LLC 935 * 936 * Licensed under the Apache License, Version 2.0 (the "License"); 937 * you may not use this file except in compliance with the License. 938 * You may obtain a copy of the License at 939 * 940 * http://www.apache.org/licenses/LICENSE-2.0 941 * 942 * Unless required by applicable law or agreed to in writing, software 943 * distributed under the License is distributed on an "AS IS" BASIS, 944 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 945 * See the License for the specific language governing permissions and 946 * limitations under the License. 947 */function ioe(t,e){const r=WF(t,"auth");if(r.isInitialized()){const i=r.getImmediate(),a=r.getOptions();if(Fs(a,e??{}))return i;Hn(i,"already-initialized")}return r.initialize({options:e})}function aoe(t,e){const r=(e==null?void 0:e.persistence)||[],n=(Array.isArray(r)?r:[r]).map(hi);e!=null&&e.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(n,e==null?void 0:e.popupRedirectResolver)}function ooe(t,e,r){const n=rp(t);Ee(/^https?:\/\//.test(e),n,"invalid-emulator-scheme");const i=!1,a=dB(e),{host:o,port:l}=soe(e),u=l===null?"":`:${l}`,d={url:`${a}//${o}${u}/`},h=Object.freeze({host:o,port:l,protocol:a.replace(":",""),options:Object.freeze({disableWarnings:i})});if(!n._canInitEmulator){Ee(n.config.emulator&&n.emulatorConfig,n,"emulator-config-failed"),Ee(Fs(d,n.config.emulator)&&Fs(h,n.emulatorConfig),n,"emulator-config-failed");return}n.config.emulator=d,n.emulatorConfig=h,n.settings.appVerificationDisabledForTesting=!0,wk(o)?gie(`${a}//${o}${u}`):loe()}function dB(t){const e=t.indexOf(":");return e<0?"":t.substr(0,e+1)}function soe(t){const e=dB(t),r=/(\/\/)?([^?#/]+)/.exec(t.substr(e.length));if(!r)return{host:"",port:null};const n=r[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(n);if(i){const a=i[1];return{host:a,port:HR(n.substr(a.length+1))}}else{const[a,o]=n.split(":");return{host:a,port:HR(o)}}}function HR(t){if(!t)return null;const e=Number(t);return isNaN(e)?null:e}function loe(){function t(){const e=document.createElement("p"),r=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",r.position="fixed",r.width="100%",r.backgroundColor="#ffffff",r.border=".1em solid #000000",r.color="#b50000",r.bottom="0px",r.left="0px",r.margin="0px",r.zIndex="10000",r.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",t):t())}/** 948 * @license 949 * Copyright 2020 Google LLC 950 * 951 * Licensed under the Apache License, Version 2.0 (the "License"); 952 * you may not use this file except in compliance with the License. 953 * You may obtain a copy of the License at 954 * 955 * http://www.apache.org/licenses/LICENSE-2.0 956 * 957 * Unless required by applicable law or agreed to in writing, software 958 * distributed under the License is distributed on an "AS IS" BASIS, 959 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 960 * See the License for the specific language governing permissions and 961 * limitations under the License. 962 */class fB{constructor(e,r){this.providerId=e,this.signInMethod=r}toJSON(){return fi("not implemented")}_getIdTokenResponse(e){return fi("not implemented")}_linkToIdToken(e,r){return fi("not implemented")}_getReauthenticationResolver(e){return fi("not implemented")}}/** 963 * @license 964 * Copyright 2020 Google LLC 965 * 966 * Licensed under the Apache License, Version 2.0 (the "License");
967 * you may not use this file except in compliance with the License. 968 * You may obtain a copy of the License at 969 * 970 * http://www.apache.org/licenses/LICENSE-2.0 971 * 972 * Unless required by applicable law or agreed to in writing, software 973 * distributed under the License is distributed on an "AS IS" BASIS, 974 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 975 * See the License for the specific language governing permissions and 976 * limitations under the License. 977 */async function cs(t,e){return Dae(t,"POST","/v1/accounts:signInWithIdp",Tk(t,e))}/** 978 * @license 979 * Copyright 2020 Google LLC 980 * 981 * Licensed under the Apache License, Version 2.0 (the "License"); 982 * you may not use this file except in compliance with the License. 983 * You may obtain a copy of the License at 984 * 985 * http://www.apache.org/licenses/LICENSE-2.0 986 * 987 * Unless required by applicable law or agreed to in writing, software 988 * distributed under the License is distributed on an "AS IS" BASIS, 989 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 990 * See the License for the specific language governing permissions and 991 * limitations under the License. 992 */const coe="http://localhost";class lo extends fB{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const r=new lo(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(r.idToken=e.idToken),e.accessToken&&(r.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(r.nonce=e.nonce),e.pendingToken&&(r.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(r.accessToken=e.oauthToken,r.secret=e.oauthTokenSecret):Hn("argument-error"),r}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
992once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const r=typeof e=="string"?JSON.parse(e):e,{providerId:n,signInMethod:i,...a}=r;if(!n||!i)return null;const o=new lo(n,i);return o.idToken=a.idToken||void 0,o.accessToken=a.accessToken||void 0,o.secret=a.secret,o.nonce=a.nonce,o.pendingToken=a.pendingToken||null,o}_getIdTokenResponse(e){const r=this.buildRequest();return cs(e,r)}_linkToIdToken(e,r){const n=this.buildRequest();return n.idToken=r,cs(e,n)}_getReauthenticationResolver(e){const r=this.buildRequest();return r.autoCreate=!1,cs(e,r)}buildRequest(){const e={requestUri:coe,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const r={};this.idToken&&(r.id_token=this.idToken),this.accessToken&&(r.access_token=this.accessToken),this.secret&&(r.oauth_token_secret=this.secret),r.providerId=this.providerId,this.nonce&&!this.pendingToken&&(r.nonce=this.nonce),e.postBody=Du(r)}return e}}/** 993 * @license 994 * Copyright 2020 Google LLC 995 * 996 * Licensed under the Apache License, Version 2.0 (the "License"); 997 * you may not use this file except in compliance with the License. 998 * You may obtain a copy of the License at 999 * 1000 * http://www.apache.org/licenses/LICENSE-2.0 1001 * 1002 * Unless required by applicable law or agreed to in writing, software 1003 * distributed under the License is distributed on an "AS IS" BASIS, 1004 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1005 * See the License for the specific language governing permissions and 1006 * limitations under the License. 1007 */class Nk{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}/** 1008 * @license 1009 * Copyright 2019 Google LLC 1010 * 1011 * Licensed under the Apache License, Version 2.0 (the "License"); 1012 * you may not use this file except in compliance with the License. 1013 * You may obtain a copy of the License at 1014 * 1015 * http://www.apache.org/licenses/LICENSE-2.0 1016 * 1017 * Unless required by applicable law or agreed to in writing, software 1018 * distributed under the License is distributed on an "AS IS" BASIS, 1019 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1020 * See the License for the specific language governing permissions and 1021 * limitations under the License. 1022 */class Bu extends Nk{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}/** 1023 * @license 1024 * Copyright 2020 Google LLC 1025 * 1026 * Licensed under the Apache License, Version 2.0 (the "License"); 1027 * you may not use this file except in compliance with the License. 1028 * You may obtain a copy of the License at 1029 * 1030 * http://www.apache.org/licenses/LICENSE-2.0 1031 * 1032 * Unless required by applicable law or agreed to in writing, software 1033 * distributed under the License is distributed on an "AS IS" BASIS, 1034 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1035 * See the License for the specific language governing permissions and 1036 * limitations under the License. 1037 */class ra extends Bu{constructor(){super("facebook.com")}static credential(e){return lo._fromParams({providerId:ra.PROVIDER_ID,signInMethod:ra.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return ra.credentialFromTaggedObject(e)}static credentialFromError(e){return ra.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return ra.credential(e.oauthAccessToken)}catch{return null}}}ra.FACEBOOK_SIGN_IN_METHOD="facebook.com";ra.PROVIDER_ID="facebook.com";/** 1038 * @license 1039 * Copyright 2020 Google LLC 1040 * 1041 * Licensed under the Apache License, Version 2.0 (the "License"); 1042 * you may not use this file except in compliance with the License. 1043 * You may obtain a copy of the License at 1044 * 1045 * http://www.apache.org/licenses/LICENSE-2.0 1046 * 1047 * Unless required by applicable law or agreed to in writing, softw
1047are 1048 * distributed under the License is distributed on an "AS IS" BASIS, 1049 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1050 * See the License for the specific language governing permissions and 1051 * limitations under the License. 1052 */class si extends Bu{constructor(){super("google.com"),this.addScope("profile")}static credential(e,r){return lo._fromParams({providerId:si.PROVIDER_ID,signInMethod:si.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:r})}static credentialFromResult(e){return si.credentialFromTaggedObject(e)}static credentialFromError(e){return si.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:r,oauthAccessToken:n}=e;if(!r&&!n)return null;try{return si.credential(r,n)}catch{return null}}}si.GOOGLE_SIGN_IN_METHOD="google.com";si.PROVIDER_ID="google.com";/** 1053 * @license 1054 * Copyright 2020 Google LLC 1055 * 1056 * Licensed under the Apache License, Version 2.0 (the "License"); 1057 * you may not use this file except in compliance with the License. 1058 * You may obtain a copy of the License at 1059 * 1060 * http://www.apache.org/licenses/LICENSE-2.0 1061 * 1062 * Unless required by applicable law or agreed to in writing, software 1063 * distributed under the License is distributed on an "AS IS" BASIS, 1064 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1065 * See the License for the specific language governing permissions and 1066 * limitations under the License. 1067 */class na extends Bu{constructor(){super("github.com")}static credential(e){return lo._fromParams({providerId:na.PROVIDER_ID,signInMethod:na.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return na.credentialFromTaggedObject(e)}static credentialFromError(e){return na.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return na.credential(e.oauthAccessToken)}catch{return null}}}na.GITHUB_SIGN_IN_METHOD="github.com";na.PROVIDER_ID="github.com";/** 1068 * @license 1069 * Copyright 2020 Google LLC 1070 * 1071 * Licensed under the Apache License, Version 2.0 (the "License"); 1072 * you may not use this file except in compliance with the License. 1073 * You may obtain a copy of the License at 1074 * 1075 * http://www.apache.org/licenses/LICENSE-2.0 1076 * 1077 * Unless required by applicable law or agreed to in writing, software 1078 * distributed under the License is distributed on an "AS IS" BASIS, 1079 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1080 * See the License for the specific language governing permissions and 1081 * limitations under the License. 1082 */class ia extends Bu{constructor(){super("twitter.com")}static credential(e,r){return lo._fromParams({providerId:ia.PROVIDER_ID,signInMethod:ia.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:r})}static credentialFromResult(e){return ia.credentialFromTaggedObject(e)}static credentialFromError(e){return ia.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:r,oauthTokenSecret:n}=e;if(!r||!n)return null;try{return ia.credential(r,n)}catch{return null}}}ia.TWITTER_SIGN_IN_METHOD="twitter.com";ia.PROVIDER_ID="twitter.com";/** 1083 * @license 1084 * Copyright 2020 Google LLC 1085 * 1086 * Licensed under the Apache License, Version 2.0 (the "License"); 1087 * you may not use this file except in compliance with the License. 1088 * You may obtain a copy of the License at 1089 * 1090 * http://www.apache.org/licenses/LICENSE-2.0 1091 * 1092 * Unless required by applicable law or agreed to in writing, software 1093 * distributed under the License is distributed on an "AS IS" BASIS, 1094 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1095 * See the License for the specific language governing permissions and 1096 * limitations under the License. 1097 */class zs{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,r,n,i=!1){const a=await vn._fromIdTokenResponse(e,n,i),o=qR(n);return new zs({user:a,providerId:o,_tokenResponse:n,operationType:r})}static async _forOperation(e,r,n){await e._updateTokensIfNecessary(n,!0);const i=qR(n);return new zs({user:e,providerId:i,_tokenResponse:n,operationType:r})}}function qR(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}/** 1098 * @license 1099 * Copyright 2020 Google LLC 1100 * 1101 * Licensed under the Apache License, Version 2.0 (the "License");
1102 * you may not use this file except in compliance with the License. 1103 * You may obtain a copy of the License at 1104 * 1105 * http://www.apache.org/licenses/LICENSE-2.0 1106 * 1107 * Unless required by applicable law or agreed to in writing, software 1108 * distributed under the License is distributed on an "AS IS" BASIS, 1109 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1110 * See the License for the specific language governing permissions and 1111 * limitations under the License. 1112 */class Qh extends ya{constructor(e,r,n,i){super(r.code,r.message),this.operationType=n,this.user=i,Object.setPrototypeOf(this,Qh.prototype),this.customData={appName:e.name,tenantId:e.tenantId??void 0,_serverResponse:r.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,r,n,i){return new Qh(e,r,n,i)}}function hB(t,e,r,n){return(e==="reauthenticate"?r._getReauthenticationResolver(t):r._getIdTokenResponse(t)).catch(a=>{throw a.code==="auth/multi-factor-auth-required"?Qh._fromErrorAndOperation(t,a,e,n):a})}async function uoe(t,e,r=!1){const n=await hu(t,e._linkToIdToken(t.auth,await t.getIdToken()),r);return zs._forOperation(t,"link",n)}/** 1113 * @license 1114 * Copyright 2019 Google LLC 1115 * 1116 * Licensed under the Apache License, Version 2.0 (the "License"); 1117 * you may not use this file except in compliance with the License. 1118 * You may obtain a copy of the License at 1119 * 1120 * http://www.apache.org/licenses/LICENSE-2.0 1121 * 1122 * Unless required by applicable law or agreed to in writing, software 1123 * distributed under the License is distributed on an "AS IS" BASIS, 1124 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1125 * See the License for the specific language governing permissions and 1126 * limitations under the License. 1127 */async function doe(t,e,r=!1){const{auth:n}=t;if(Rn(n.app))return Promise.reject(to(n));const i="reauthenticate";try{const a=await hu(t,hB(n,i,e,t),r);Ee(a.idToken,n,"internal-error");const o=Ak(a.idToken);Ee(o,n,"internal-error");const{sub:l}=o;return Ee(t.uid===l,n,"user-mismatch"),zs._forOperation(t,i,a)}catch(a){throw(a==null?void 0:a.code)==="auth/user-not-found"&&Hn(n,"user-mismatch"),a}}/** 1128 * @license 1129 * Copyright 2020 Google LLC 1130 * 1131 * Licensed under the Apache License, Version 2.0 (the "License"); 1132 * you may not use this file except in compliance with the License. 1133 * You may obtain a copy of the License at 1134 * 1135 * http://www.apache.org/licenses/LICENSE-2.0 1136 * 1137 * Unless required by applicable law or agreed to in writing, software 1138 * distributed under the License is distributed on an "AS IS" BASIS, 1139 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1140 * See the License for the specific language governing permissions and 1141 * limitations under the License. 1142 */async function foe(t,e,r=!1){if(Rn(t.app))return Promise.reject(to(t));const n="signIn",i=await hB(t,n,e),a=await zs._fromIdTokenResponse(t,n,i);return r||await t._updateCurrentUser(a.user),a}function mB(t,e,r,n){return va(t).onIdTokenChanged(e,r,n)}function hoe(t,e,r){return va(t).beforeAuthStateChanged(e,r)}function moe(t,e,r,n){return va(t).onAuthStateChanged(e,r,n)}function poe(t){return va(t).signOut()}const Zh="__sak";/** 1143 * @license 1144 * Copyright 2019 Google LLC 1145 * 1146 * Licensed under the Apache License, Version 2.0 (the "License"); 1147 * you may not use this file except in compliance with the License. 1148 * You may obtain a copy of the License at 1149 * 1150 * http://www.apache.org/licenses/LICENSE-2.0 1151 * 1152 * Unless required by applicable law or agreed to in writing, software 1153 * distributed under the License is distributed on an "AS IS" BASIS, 1154 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1155 * See the License for the specific language governing permissions and 1156 * limitations under the License. 1157 */class pB{constructor(e,r){this.storageRetriever=e,this.type=r}_isAvailable(){try{return this.storage?(this.storage.setItem(Zh,"1"),this.storage.removeItem(Zh),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,r){return this.storage.setItem(e,JSON.stringify(r)),Promise.resolve()}_get(e){const r=this.storage.getItem(e);return Promise.resolve(r?JSON.parse(r):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}/** 1158 * @license 1159 * Copyright 2020 Google LLC 1160 * 1161 * Licensed under the Apache License, Version 2.0 (the "License");
1162 * you may not use this file except in compliance with the License. 1163 * You may obtain a copy of the License at 1164 * 1165 * http://www.apache.org/licenses/LICENSE-2.0 1166 * 1167 * Unless required by applicable law or agreed to in writing, software 1168 * distributed under the License is distributed on an "AS IS" BASIS, 1169 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1170 * See the License for the specific language governing permissions and 1171 * limitations under the License. 1172 */const goe=1e3,yoe=10;class gB extends pB{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,r)=>this.onStorageEvent(e,r),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=cB(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const r of Object.keys(this.listeners)){const n=this.storage.getItem(r),i=this.localCache[r];n!==i&&e(r,i,n)}}onStorageEvent(e,r=!1){if(!e.key){this.forAllChangedKeys((o,l,u)=>{this.notifyListeners(o,u)});return}const n=e.key;r?this.detachListener():this.stopPolling();const i=()=>{const o=this.storage.getItem(n);!r&&this.localCache[n]===o||this.notifyListeners(n,o)},a=this.storage.getItem(n);Kae()&&a!==e.newValue&&e.newValue!==e.oldValue?setTimeout(i,yoe):i()}notifyListeners(e,r){this.localCache[e]=r;const n=this.listeners[e];if(n)for(const i of Array.from(n))i(r&&JSON.parse(r))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,r,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:r,newValue:n}),!0)})},goe)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,r){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(r)}_removeListener(e,r){this.listeners[e]&&(this.listeners[e].delete(r),this.listeners[e].size===0&&delete this.listeners[e]),Ob
1172ject.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(e,r){await super._set(e,r),this.localCache[e]=JSON.stringify(r)}async _get(e){const r=await super._get(e);return this.localCache[e]=JSON.stringify(r),r}async _remove(e){await super._remove(e),delete this.localCache[e]}}gB.type="LOCAL";const voe=gB;/** 1173 * @license 1174 * Copyright 2020 Google LLC 1175 * 1176 * Licensed under the Apache License, Version 2.0 (the "License"); 1177 * you may not use this file except in compliance with the License. 1178 * You may obtain a copy of the License at 1179 * 1180 * http://www.apache.org/licenses/LICENSE-2.0 1181 * 1182 * Unless required by applicable law or agreed to in writing, software 1183 * distributed under the License is distributed on an "AS IS" BASIS, 1184 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1185 * See the License for the specific language governing permissions and 1186 * limitations under the License. 1187 */class yB extends pB{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,r){}_removeListener(e,r){}}yB.type="SESSION";const vB=yB;/** 1188 * @license 1189 * Copyright 2019 Google LLC 1190 * 1191 * Licensed under the Apache License, Version 2.0 (the "License"); 1192 * you may not use this file except in compliance with the License. 1193 * You may obtain a copy of the License at 1194 * 1195 * http://www.apache.org/licenses/LICENSE-2.0 1196 * 1197 * Unless required by applicable law or agreed to in writing, software 1198 * distributed under the License is distributed on an "AS IS" BASIS, 1199 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1200 * See the License for the specific language governing permissions and 1201 * limitations under the License. 1202 */function xoe(t){return Promise.all(t.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(r){return{fulfilled:!1,reason:r}}}))}/** 1203 * @license 1204 * Copyright 2019 Google LLC 1205 * 1206 * Licensed under the Apache License, Version 2.0 (the "License"); 1207 * you may not use this file except in compliance with the License. 1208 * You may obtain a copy of the License at 1209 * 1210 * http://www.apache.org/licenses/LICENSE-2.0 1211 * 1212 * Unless required by applicable law or agreed to in writing, software 1213 * distributed under the License is distributed on an "AS IS" BASIS, 1214 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1215 * See the License for the specific language governing permissions and 1216 * limitations under the License. 1217 */class np{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const r=this.receivers.find(i=>i.isListeningto(e));if(r)return r;const n=new np(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const r=e,{eventId:n,eventType:i,data:a}=r.data,o=this.handlersMap[i];if(!(o!=null&&o.size))return;r.ports[0].postMessage({status:"ack",eventId:n,eventType:i});const l=Array.from(o).map(async d=>d(r.origin,a)),u=await xoe(l);r.ports[0].postMessage({status:"done",eventId:n,eventType:i,response:u})}_subscribe(e,r){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(r)}_unsubscribe(e,r){this.handlersMap[e]&&r&&this.handlersMap[e].delete(r),(!r||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}np.receivers=[];/** 1218 * @license 1219 * Copyright 2020 Google LLC 1220 * 1221 * Licensed under the Apache License, Version 2.0 (the "License"); 1222 * you may not use this file except in compliance with the License. 1223 * You may obtain a copy of the License at 1224 * 1225 * http://www.apache.org/licenses/LICENSE-2.0 1226 * 1227 * Unless required by applicable law or agreed to in writing, software 1228 * distributed under the License is distributed on an "AS IS" BASIS, 1229 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1230 * See the License for the specific language governing permissions and 1231 * limitations under the License. 1232 */function Ok(t="",e=10){let r="";for(let n=0;n<e;n++)r+=Math.floor(Math.random()*10);return t+r}/** 1233 * @license 1234 * Copyright 2019 Google LLC 1235 * 1236 * Licensed under the Apache License, Version 2.0 (the "License");
1237 * you may not use this file except in compliance with the License. 1238 * You may obtain a copy of the License at 1239 * 1240 * http://www.apache.org/licenses/LICENSE-2.0 1241 * 1242 * Unless required by applicable law or agreed to in writing, software 1243 * distributed under the License is distributed on an "AS IS" BASIS, 1244 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1245 * See the License for the specific language governing permissions and 1246 * limitations under the License. 1247 */class boe{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,r,n=50){const i=typeof MessageChannel<"u"?new MessageChannel:null;if(!i)throw new Error("connection_unavailable");let a,o;return new Promise((l,u)=>{const d=Ok("",20);i.port1.start();const h=setTimeout(()=>{u(new Error("unsupported_event"))},n);o={messageChannel:i,onMessage(m){const g=m;if(g.data.eventId===d)switch(g.data.status){case"ack":clearTimeout(h),a=setTimeout(()=>{u(new Error("timeout"))},3e3);break;case"done":clearTimeout(a),l(g.data.response);break;default:clearTimeout(h),clearTimeout(a),u(new Error("invalid_response"));break}}},this.handlers.add(o),i.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:d,data:r},[i.port2])}).finally(()=>{o&&this.removeMessageHandler(o)})}}/** 1248 * @license 1249 * Copyright 2020 Google LLC 1250 * 1251 * Licensed under the Apache License, Version 2.0 (the "License"); 1252 * you may not use this file except in compliance with the License. 1253 * You may obtain a copy of the License at 1254 * 1255 * http://www.apache.org/licenses/LICENSE-2.0 1256 * 1257 * Unless required by applicable law or agreed to in writing, software 1258 * distributed under the License is distributed on an "AS IS" BASIS, 1259 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1260 * See the License for the specific language governing permissions and 1261 * limitations under the License. 1262 */function zn(){return window}function woe(t){zn().location.href=t}/** 1263 * @license 1264 * Copyright 2020 Google LLC. 1265 * 1266 * Licensed under the Apache License, Version 2.0 (the "License"); 1267 * you may not use this file except in compliance with the License. 1268 * You may obtain a copy of the License at 1269 * 1270 * http://www.apache.org/licenses/LICENSE-2.0 1271 * 1272 * Unless required by applicable law or agreed to in writing, software 1273 * distributed under the License is distributed on an "AS IS" BASIS, 1274 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1275 * See the License for the specific language governing permissions and 1276 * limitations under the License. 1277 */function xB(){return typeof zn().WorkerGlobalScope<"u"&&typeof zn().importScripts=="function"}async function Soe(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function koe(){var t;return((t=navigator==null?void 0:navigator.serviceWorker)==null?void 0:t.controller)||null}function joe(){return xB()?self:null}/** 1278 * @license 1279 * Copyright 2019 Google LLC 1280 * 1281 * Licensed under the Apache License, Version 2.0 (the "License"); 1282 * you may not use this file except in compliance with the License. 1283 * You may obtain a copy of the License at 1284 * 1285 * http://www.apache.org/licenses/LICENSE-2.0 1286 * 1287 * Unless required by applicable law or agreed to in writing, software 1288 * distributed under the License is distributed on an "AS IS" BASIS, 1289 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1290 * See the License for the specific language governing permissions and 1291 * limitations under the License. 1292 */const bB="firebaseLocalStorageDb",Poe=1,em="firebaseLocalStorage",wB="fbase_key";class zu{constructor(e){this.request=e}toPromise(){return new Promise((e,r)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{r(this.request.error)})})}}function ip(t,e){return t.transaction([em],e?"readwrite":"readonly").objectStore(em)}function Toe(){const t=indexedDB.deleteDatabase(bB);
1292return new zu(t).toPromise()}function SB(){const t=indexedDB.open(bB,Poe);return new Promise((e,r)=>{t.addEventListener("error",()=>{r(t.error)}),t.addEventListener("upgradeneeded",()=>{const n=t.result;try{n.createObjectStore(em,{keyPath:wB})}catch(i){r(i)}}),t.addEventListener("success",async()=>{const n=t.result;n.objectStoreNames.contains(em)?e(n):(n.close(),await Toe(),e(await SB()))})})}async function GR(t,e,r){const n=ip(t,!0).put({[wB]:e,value:r});return new zu(n).toPromise()}async function Aoe(t,e){const r=ip(t,!1).get(e),n=await new zu(r).toPromise();return n===void 0?null:n.value}function KR(t,e){const r=ip(t,!0).delete(e);return new zu(r).toPromise()}const Eoe=800,_oe=3;class kB{registerLifecycleListeners(){typeof window<"u"&&typeof window.addEventListener=="function"&&(window.addEventListener("pagehide",this.onPageHide),window.addEventListener("pageshow",this.onPageShow)),typeof document<"u"&&typeof document.addEventListener=="function"&&document.addEventListener("visibilitychange",this.onVisibilityChange)}unregisterLifecycleListeners(){typeof window<"u"&&typeof window.removeEventListener=="function"&&(window.removeEventListener("pagehide",this.onPageHide),window.removeEventListener("pageshow",this.onPageShow)),typeof document<"u"&&typeof document.removeEventListener=="function"&&document.removeEventListener("visibilitychange",this.onVisibilityChange)}constructor(){this.type="LOCAL",this.dbPromise=null,this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.isHiding=!1,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this.onPageHide=()=>{this.isHiding=!0,this.stopPolling(),this.dbPromise&&(this.dbPromise.then(e=>e.close()).catch(()=>{}),this.dbPromise=null)},this.onPageShow=()=>{this.isHiding&&(this.isHiding=!1,Object.keys(this.listeners).length>0&&this.startPolling())},this.onVisibilityChange=()=>{typeof document<"u"&&(document.visibilityState==="hidden"?this.onPageHide():document.visibilityState==="visible"&&this.onPageShow())},this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){if(this.isHiding)throw new Error("Database is closing/hidden");return this.dbPromise?this.dbPromise:(this.dbPromise=SB(),this.dbPromise.catch(()=>{this.dbPromise=null}),this.dbPromise)}async _withRetries(e){let r=0;for(;;)try{const n=await this._openDb();return await e(n)}catch(n){if(this.isHiding||r++>_oe)throw n;this.dbPromise&&((await this.dbPromise).close(),this.dbPromise=null)}}async initializeServiceWorkerMessaging(){return xB()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=np._getInstance(joe()),this.receiver._subscribe("keyChanged",async(e,r)=>({keyProcessed:(await this._poll()).includes(r.key)})),this.receiver._subscribe("ping",async(e,r)=>["keyChanged"])}async initializeSender(){var r,n;if(this.activeServiceWorker=await Soe(),!this.activeServiceWorker)return;this.sender=new boe(this.activeServiceWorker);const e=await this.sender._send("ping",{},800);e&&(r=e[0])!=null&&r.fulfilled&&(n=e[0])!=null&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(!(!this.sender||!this.activeServiceWorker||koe()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{return indexedDB?(await this._withRetries(async e=>{await GR(e,Zh,"1"),await KR(e,Zh)}),!0):!1}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,r){return this._withPendingWrite(async()=>(await this._withRetries(n=>GR(n,e,r)),this.localCache[e]=r,this.notifyServiceWorker(e)))}async _get(e){const r=await this._withRetries(n=>Aoe(n,e));return this.localCache[e]=r,r}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(r=>KR(r,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){if(this.isHiding)return[];try{const e=await this._withRetries(i=>{const a=ip(i,!1).getAll();return new zu(a).toPromise()});if(this.isHiding)return[];if(!e)return[];if(this.pendingWrites!==0)return[];const r=[],n=new Set;if(e.length!==0)for(const{fbase_key:i,value:a}of e)n.add(i),JSON.stringify(this.localCache[i])!==JSON.stringify(a)&&(this.notifyListeners(i,a),r.push(i));for(const i of Object.keys(this.localCache))this.localCache[i]&&!n.has(i)&&(this.notifyListeners(i,null),r.push(i));return r}catch(e){return this.isHiding||XF(`Firebase Auth cross-tab polling failed with error: ${e}`),[]}}notifyListeners(e,r){this.localCache[e]=r;
1292const n=this.listeners[e];if(n)for(const i of Array.from(n))i(r)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),Eoe)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,r){Object.keys(this.listeners).length===0&&(this.startPolling(),this.registerLifecycleListeners()),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(r)}_removeListener(e,r){this.listeners[e]&&(this.listeners[e].delete(r),this.listeners[e].size===0&&delete this.listeners[e]),Object.keys(this.listeners).length===0&&(this.stopPolling(),this.unregisterLifecycleListeners())}}kB.type="LOCAL";const Noe=kB;new Fu(3e4,6e4);/** 1293 * @license 1294 * Copyright 2021 Google LLC 1295 * 1296 * Licensed under the Apache License, Version 2.0 (the "License"); 1297 * you may not use this file except in compliance with the License. 1298 * You may obtain a copy of the License at 1299 * 1300 * http://www.apache.org/licenses/LICENSE-2.0 1301 * 1302 * Unless required by applicable law or agreed to in writing, software 1303 * distributed under the License is distributed on an "AS IS" BASIS, 1304 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1305 * See the License for the specific language governing permissions and 1306 * limitations under the License. 1307 */function jB(t,e){return e?hi(e):(Ee(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}/** 1308 * @license 1309 * Copyright 2019 Google LLC 1310 * 1311 * Licensed under the Apache License, Version 2.0 (the "License"); 1312 * you may not use this file except in compliance with the License. 1313 * You may obtain a copy of the License at 1314 * 1315 * http://www.apache.org/licenses/LICENSE-2.0 1316 * 1317 * Unless required by applicable law or agreed to in writing, software 1318 * distributed under the License is distributed on an "AS IS" BASIS, 1319 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1320 * See the License for the specific language governing permissions and 1321 * limitations under the License. 1322 */class Ck extends fB{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return cs(e,this._buildIdpRequest())}_linkToIdToken(e,r){return cs(e,this._buildIdpRequest(r))}_getReauthenticationResolver(e){return cs(e,this._buildIdpRequest())}_buildIdpRequest(e){const r={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(r.idToken=e),r}}function Ooe(t){return foe(t.auth,new Ck(t),t.bypassAuthState)}function Coe(t){const{auth:e,user:r}=t;return Ee(r,e,"internal-error"),doe(r,new Ck(t),t.bypassAuthState)}async function Ioe(t){const{auth:e,user:r}=t;return Ee(r,e,"internal-error"),uoe(r,new Ck(t),t.bypassAuthState)}/** 1323 * @license 1324 * Copyright 2020 Google LLC 1325 * 1326 * Licensed under the Apache License, Version 2.0 (the "License"); 1327 * you may not use this file except in compliance with the License. 1328 * You may obtain a copy of the License at 1329 * 1330 * http://www.apache.org/licenses/LICENSE-2.0 1331 * 1332 * Unless required by applicable law or agreed to in writing, software 1333 * distributed under the License is distributed on an "AS IS" BASIS, 1334 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1335 * See the License for the specific language governing permissions and 1336 * limitations under the License. 1337 */class PB{constructor(e,r,n,i,a=!1){this.auth=e,this.resolver=n,this.user=i,this.bypassAuthState=a,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(r)?r:[r]}execute(){return new Promise(async(e,r)=>{this.pendingPromise={resolve:e,reject:r};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(n){this.reject(n)}})}async onAuthEvent(e){const{urlResponse:r,sessionId:n,postBody:i,tenantId:a,error:o,type:l}=e;if(o){this.reject(o);return}const u={auth:this.auth,requestUri:r,sessionId:n,tenantId:a||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(l)(u))}catch(d){this.reject(d)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return Ooe;case"linkViaPopup":case"linkViaRedirect":return Ioe;case"reauthViaPopup":case"reauthViaRedirect":return Coe;default:Hn(this.auth,"internal-error")}}resolve(e){ji(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){ji(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/** 1338 * @license 1339 * Copyright 2020 Google LLC 1340 * 1341 * Licensed under the Apache License, Version 2.0 (the "License");
1342 * you may not use this file except in compliance with the License. 1343 * You may obtain a copy of the License at 1344 * 1345 * http://www.apache.org/licenses/LICENSE-2.0 1346 * 1347 * Unless required by applicable law or agreed to in writing, software 1348 * distributed under the License is distributed on an "AS IS" BASIS, 1349 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1350 * See the License for the specific language governing permissions and 1351 * limitations under the License. 1352 */const Roe=new Fu(2e3,1e4);async function Moe(t,e,r){if(Rn(t.app))return Promise.reject(wn(t,"operation-not-supported-in-this-environment"));const n=rp(t);Nae(t,e,Nk);const i=jB(n,r);return new Ya(n,"signInViaPopup",e,i).executeNotNull()}class Ya extends PB{constructor(e,r,n,i,a){super(e,r,i,a),this.provider=n,this.authWindow=null,this.pollId=null,Ya.currentPopupAction&&Ya.currentPopupAction.cancel(),Ya.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return Ee(e,this.auth,"internal-error"),e}async onExecution(){ji(this.filter.length===1,"Popup operations only handle one event");const e=Ok();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(r=>{this.reject(r)}),this.resolver._isIframeWebStorageSupported(this.auth,r=>{r||this.reject(wn(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return((e=this.authWindow)==null?void 0:e.associatedEvent)||null}cancel(){this.reject(wn(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Ya.currentPopupAction=null}pollUserCancellation(){const e=()=>{var r,n;if((n=(r=this.authWindow)==null?void 0:r.window)!=null&&n.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(wn(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,Roe.get())};e()}}Ya.currentPopupAction=null;/** 1353 * @license 1354 * Copyright 2020 Google LLC 1355 * 1356 * Licensed under the Apache License, Version 2.0 (the "License"); 1357 * you may not use this file except in compliance with the License. 1358 * You may obtain a copy of the License at 1359 * 1360 * http://www.apache.org/licenses/LICENSE-2.0 1361 * 1362 * Unless required by applicable law or agreed to in writing, software 1363 * distributed under the License is distributed on an "AS IS" BASIS, 1364 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1365 * See the License for the specific language governing permissions and 1366 * limitations under the License. 1367 */const Loe="pendingRedirect",Mf=new Map;class Doe extends PB{constructor(e,r,n=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],r,void 0,n),this.eventId=null}async execute(){let e=Mf.get(this.auth._key());if(!e){try{const n=await $oe(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(n)}catch(r){e=()=>Promise.reject(r)}Mf.set(this.auth._key(),e)}return this.bypassAuthState||Mf.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if(e.type==="signInViaRedirect")return super.onAuthEvent(e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){const r=await this.auth._redirectUserForId(e.eventId);if(r)return this.user=r,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function $oe(t,e){const r=zoe(e),n=Boe(t);if(!await n._isAvailable())return!1;const i=await n._get(r)==="true";return await n._remove(r),i}function Foe(t,e){Mf.set(t._key(),e)}function Boe(t){return hi(t._redirectPersistence)}function zoe(t){return Rf(Loe,t.config.apiKey,t.name)}async function Voe(t,e,r=!1){if(Rn(t.app))return Promise.reject(to(t));const n=rp(t),i=jB(n,e),o=await new Doe(n,i,r).execute();return o&&!r&&(delete o.user._redirectEventId,await n._persistUserIfCurrent(o.user),await n._setRedirectUser(null,e)),o}/** 1368 * @license 1369 * Copyright 2020 Google LLC 1370 * 1371 * Licensed under the Apache License, Version 2.0 (the "License");
1372 * you may not use this file except in compliance with the License. 1373 * You may obtain a copy of the License at 1374 * 1375 * http://www.apache.org/licenses/LICENSE-2.0 1376 * 1377 * Unless required by applicable law or agreed to in writing, software 1378 * distributed under the License is distributed on an "AS IS" BASIS, 1379 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1380 * See the License for the specific language governing permissions and 1381 * limitations under the License. 1382 */const Uoe=600*1e3;class Woe{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let r=!1;return this.consumers.forEach(n=>{this.isEventForConsumer(e,n)&&(r=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!Hoe(e)||(this.hasHandledPotentialRedirect=!0,r||(this.queuedRedirectEvent=e,r=!0)),r}sendToConsumer(e,r){var n;if(e.error&&!TB(e)){const i=((n=e.error.code)==null?void 0:n.split("auth/")[1])||"internal-error";r.onError(wn(this.auth,i))}else r.onAuthEvent(e)}isEventForConsumer(e,r){const n=r.eventId===null||!!e.eventId&&e.eventId===r.eventId;return r.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=Uoe&&this.cachedEventUids.clear(),this.cachedEventUids.has(YR(e))}saveEventToCache(e){this.cachedEventUids.add(YR(e)),this.lastProcessedEventTime=Date.now()}}function YR(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function TB({type:t,error:e}){return t==="unknown"&&(e==null?void 0:e.code)==="auth/no-auth-event"}function Hoe(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return TB(t);default:return!1}}/** 1383 * @license 1384 * Copyright 2020 Google LLC 1385 * 1386 * Licensed under the Apache License, Version 2.0 (the "License"); 1387 * you may not use this file except in compliance with the License. 1388 * You may obtain a copy of the License at 1389 * 1390 * http://www.apache.org/licenses/LICENSE-2.0 1391 * 1392 * Unless required by applicable law or agreed to in writing, software 1393 * distributed under the License is distributed on an "AS IS" BASIS, 1394 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1395 * See the License for the specific language governing permissions and 1396 * limitations under the License. 1397 */async function qoe(t,e={}){return tl(t,"GET","/v1/projects",e)}/** 1398 * @license 1399 * Copyright 2020 Google LLC 1400 * 1401 * Licensed under the Apache License, Version 2.0 (the "License"); 1402 * you may not use this file except in compliance with the License. 1403 * You may obtain a copy of the License at 1404 * 1405 * http://www.apache.org/licenses/LICENSE-2.0 1406 * 1407 * Unless required by applicable law or agreed to in writing, software 1408 * distributed under the License is distributed on an "AS IS" BASIS, 1409 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1410 * See the License for the specific language governing permissions and 1411 * limitations under the License. 1412 */const Goe=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Koe=/^https?/;async function Yoe(t){if(t.config.emulator)return;const{authorizedDomains:e}=await qoe(t);for(const r of e)try{if(Xoe(r))return}catch{}Hn(t,"unauthorized-domain")}function Xoe(t){const e=ES(),{protocol:r,hostname:n}=new URL(e);if(t.startsWith("chrome-extension://")){const o=new URL(t);return o.hostname===""&&n===""?r==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):r==="chrome-extension:"&&o.hostname===n}if(!Koe.test(r))return!1;if(Goe.test(t))return n===t;const i=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(n)}/** 1413 * @license 1414 * Copyright 2020 Google LLC. 1415 * 1416 * Licensed under the Apache License, Version 2.0 (the "License");
1417 * you may not use this file except in compliance with the License. 1418 * You may obtain a copy of the License at 1419 * 1420 * http://www.apache.org/licenses/LICENSE-2.0 1421 * 1422 * Unless required by applicable law or agreed to in writing, software 1423 * distributed under the License is distributed on an "AS IS" BASIS, 1424 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1425 * See the License for the specific language governing permissions and 1426 * limitations under the License. 1427 */const Joe=new Fu(3e4,6e4);function XR(){const t=zn().___jsl;if(t!=null&&t.H){for(const e of Object.keys(t.H))if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=[...t.H[e].L],t.CP)for(let r=0;r<t.CP.length;r++)t.CP[r]=null}}function Qoe(t){return new Promise((e,r)=>{var i,a,o;function n(){XR(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{XR(),r(wn(t,"network-request-failed"))},timeout:Joe.get()})}if((a=(i=zn().gapi)==null?void 0:i.iframes)!=null&&a.Iframe)e(gapi.iframes.getContext());else if((o=zn().gapi)!=null&&o.load)n();else{const l=noe("iframefcb");return zn()[l]=()=>{gapi.load?n():r(wn(t,"network-request-failed"))},toe(`${roe()}?onload=${l}`).catch(u=>r(u))}}).catch(e=>{throw Lf=null,e})}let Lf=null;function Zoe(t){return Lf=Lf||Qoe(t),Lf}/** 1428 * @license 1429 * Copyright 2020 Google LLC. 1430 * 1431 * Licensed under the Apache License, Version 2.0 (the "License"); 1432 * you may not use this file except in compliance with the License. 1433 * You may obtain a copy of the License at 1434 * 1435 * http://www.apache.org/licenses/LICENSE-2.0 1436 * 1437 * Unless required by applicable law or agreed to in writing, software 1438 * distributed under the License is distributed on an "AS IS" BASIS, 1439 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1440 * See the License for the specific language governing permissions and 1441 * limitations under the License. 1442 */const ese=new Fu(5e3,15e3),tse="__/auth/iframe",rse="emulator/auth/iframe",nse={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},ise=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function ase(t){const e=t.config;Ee(e.authDomain,t,"auth-domain-config-required");const r=e.emulator?Pk(e,rse):`https://${t.config.authDomain}/${tse}`,n={apiKey:e.apiKey,appName:t.name,v:$u},i=ise.get(t.config.apiHost);i&&(n.eid=i);const a=t._getFrameworks();return a.length&&(n.fw=a.join(",")),`${r}?${Du(n).slice(1)}`}async function ose(t){const e=await Zoe(t),r=zn().gapi;return Ee(r,t,"internal-error"),e.open({where:document.body,url:ase(t),messageHandlersFilter:r.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:nse,dontclear:!0},n=>new Promise(async(i,a)=>{await n.restyle({setHideOnLeave:!1});const o=wn(t,"network-request-failed"),l=zn().setTimeout(()=>{a(o)},ese.get());function u(){zn().clearTimeout(l),i(n)}n.ping(u).then(u,()=>{a(o)})}))}/** 1443 * @license 1444 * Copyright 2020 Google LLC. 1445 * 1446 * Licensed under the Apache License, Version 2.0 (the "License"); 1447 * you may not use this file except in compliance with the License. 1448 * You may obtain a copy of the License at 1449 * 1450 * http://www.apache.org/licenses/LICENSE-2.0 1451 * 1452 * Unless required by applicable law or agreed to in writing, software 1453 * distributed under the License is distributed on an "AS IS" BASIS, 1454 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1455 * See the License for the specific language governing permissions and 1456 * limitations under the License. 1457 */const sse={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},lse=500,cse=600,use="_blank",dse="http://localhost";class JR{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function fse(t,e,r,n=lse,i=cse){const a=Math.max((window.screen.availHeight-i)/2,0).toString(),o=Math.max((window.screen.availWidth-n)/2,0).toString();let l="";const u={...sse,width:n.toString(),height:i.toString(),top:a,left:o},d=ur().toLowerCase();r&&(l=iB(d)?use:r),rB(d)&&(e=e||dse,u.scrollbars="yes");const h=Object.entries(u).reduce((g,[v,b])=>`${g}${v}=${b},`,"");if(Gae(d)&&l!=="_self")return hse(e||"",l),new JR(null);const m=window.open(e||"",l,h);Ee(m,t,"popup-blocked");try{m.focus()}catch{}return new JR(m)}function hse(t,e){const r=document.createElement("a");r.href=t,r.target=e;const n=document.createEvent("MouseEvent");
1457n.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),r.dispatchEvent(n)}/** 1458 * @license 1459 * Copyright 2021 Google LLC 1460 * 1461 * Licensed under the Apache License, Version 2.0 (the "License"); 1462 * you may not use this file except in compliance with the License. 1463 * You may obtain a copy of the License at 1464 * 1465 * http://www.apache.org/licenses/LICENSE-2.0 1466 * 1467 * Unless required by applicable law or agreed to in writing, software 1468 * distributed under the License is distributed on an "AS IS" BASIS, 1469 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1470 * See the License for the specific language governing permissions and 1471 * limitations under the License. 1472 */const mse="__/auth/handler",pse="emulator/auth/handler",gse=encodeURIComponent("fac");async function QR(t,e,r,n,i,a){Ee(t.config.authDomain,t,"auth-domain-config-required"),Ee(t.config.apiKey,t,"invalid-api-key");const o={apiKey:t.config.apiKey,appName:t.name,authType:r,redirectUrl:n,v:$u,eventId:i};if(e instanceof Nk){e.setDefaultLanguage(t.languageCode),o.providerId=e.providerId||"",fie(e.getCustomParameters())||(o.customParameters=JSON.stringify(e.getCustomParameters()));for(const[h,m]of Object.entries({}))o[h]=m}if(e instanceof Bu){const h=e.getScopes().filter(m=>m!=="");h.length>0&&(o.scopes=h.join(","))}t.tenantId&&(o.tid=t.tenantId);const l=o;for(const h of Object.keys(l))l[h]===void 0&&delete l[h];const u=await t._getAppCheckToken(),d=u?`#${gse}=${encodeURIComponent(u)}`:"";return`${yse(t)}?${Du(l).slice(1)}${d}`}function yse({config:t}){return t.emulator?Pk(t,pse):`https://${t.authDomain}/${mse}`}/** 1473 * @license 1474 * Copyright 2020 Google LLC 1475 * 1476 * Licensed under the Apache License, Version 2.0 (the "License"); 1477 * you may not use this file except in compliance with the License. 1478 * You may obtain a copy of the License at 1479 * 1480 * http://www.apache.org/licenses/LICENSE-2.0 1481 * 1482 * Unless required by applicable law or agreed to in writing, software 1483 * distributed under the License is distributed on an "AS IS" BASIS, 1484 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1485 * See the License for the specific language governing permissions and 1486 * limitations under the License. 1487 */const S0="webStorageSupport";class vse{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=vB,this._completeRedirectFn=Voe,this._overrideRedirectResult=Foe}async _openPopup(e,r,n,i){var o;ji((o=this.eventManagers[e._key()])==null?void 0:o.manager,"_initialize() not called before _openPopup()");const a=await QR(e,r,n,ES(),i);return fse(e,a,Ok())}async _openRedirect(e,r,n,i){await this._originValidation(e);const a=await QR(e,r,n,ES(),i);return woe(a),new Promise(()=>{})}_initialize(e){const r=e._key();if(this.eventManagers[r]){const{manager:i,promise:a}=this.eventManagers[r];return i?Promise.resolve(i):(ji(a,"If manager is not set, promise should be"),a)}const n=this.initAndGetManager(e);return this.eventManagers[r]={promise:n},n.catch(()=>{delete this.eventManagers[r]}),n}async initAndGetManager(e){const r=await ose(e),n=new Woe(e);return r.register("authEvent",i=>(Ee(i==null?void 0:i.authEvent,e,"invalid-auth-event"),{status:n.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=r,n}_isIframeWebStorageSupported(e,r){this.iframes[e._key()].send(S0,{type:S0},i=>{var o;const a=(o=i==null?void 0:i[0])==null?void 0:o[S0];a!==void 0&&r(!!a),Hn(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const r=e._key();return this.originValidationPromises[r]||(this.originValidationPromises[r]=Yoe(e)),this.originValidationPromises[r]}get _shouldInitProactively(){return cB()||nB()||Ek()}}const xse=vse;var ZR="@firebase/auth",eM="1.13.4";/** 1488 * @license 1489 * Copyright 2020 Google LLC 1490 * 1491 * Licensed under the Apache License, Version 2.0 (the "License"); 1492 * you may not use this file except in compliance with the License. 1493 * You may obtain a copy of the License at 1494 * 1495 * http://www.apache.org/licenses/LICENSE-2.0 1496 * 1497 * Unless required by applicable law or agreed to in writing, softw
1497are 1498 * distributed under the License is distributed on an "AS IS" BASIS, 1499 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1500 * See the License for the specific language governing permissions and 1501 * limitations under the License. 1502 */class bse{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),((e=this.auth.currentUser)==null?void 0:e.uid)||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const r=this.auth.onIdTokenChanged(n=>{e((n==null?void 0:n.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,r),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const r=this.internalListeners.get(e);r&&(this.internalListeners.delete(e),r(),this.updateProactiveRefresh())}assertAuthConfigured(){Ee(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** 1503 * @license 1504 * Copyright 2020 Google LLC 1505 * 1506 * Licensed under the Apache License, Version 2.0 (the "License"); 1507 * you may not use this file except in compliance with the License. 1508 * You may obtain a copy of the License at 1509 * 1510 * http://www.apache.org/licenses/LICENSE-2.0 1511 * 1512 * Unless required by applicable law or agreed to in writing, software 1513 * distributed under the License is distributed on an "AS IS" BASIS, 1514 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1515 * See the License for the specific language governing permissions and 1516 * limitations under the License. 1517 */function wse(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function Sse(t){du(new Bs("auth",(e,{options:r})=>{const n=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),a=e.getProvider("app-check-internal"),{apiKey:o,authDomain:l}=n.options;Ee(o&&!o.includes(":"),"invalid-api-key",{appName:n.name});const u={apiKey:o,authDomain:l,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:uB(t)},d=new Zae(n,i,a,u);return aoe(d,r),d},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,r,n)=>{e.getProvider("auth-internal").initialize()})),du(new Bs("auth-internal",e=>{const r=rp(e.getProvider("auth").getImmediate());return(n=>new bse(n))(r)},"PRIVATE").setInstantiationMode("EXPLICIT")),os(ZR,eM,wse(t)),os(ZR,eM,"esm2020")}/** 1518 * @license 1519 * Copyright 2021 Google LLC 1520 * 1521 * Licensed under the Apache License, Version 2.0 (the "License"); 1522 * you may not use this file except in compliance with the License. 1523 * You may obtain a copy of the License at 1524 * 1525 * http://www.apache.org/licenses/LICENSE-2.0 1526 * 1527 * Unless required by applicable law or agreed to in writing, software 1528 * distributed under the License is distributed on an "AS IS" BASIS, 1529 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1530 * See the License for the specific language governing permissions and 1531 * limitations under the License. 1532 */const kse=300,jse=BF("authIdTokenMaxAge")||kse;let tM=null;const Pse=t=>async e=>{const r=e&&await e.getIdTokenResult(),n=r&&(new Date().getTime()-Date.parse(r.issuedAtTime))/1e3;if(n&&n>jse)return;const i=r==null?void 0:r.token;tM!==i&&(tM=i,await fetch(t,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))};function Tse(t=pae()){const e=WF(t,"auth");if(e.isInitialized())return e.getImmediate();const r=ioe(t,{popupRedirectResolver:xse,persistence:[Noe,voe,vB]}),n=BF("authTokenSyncURL");if(n&&typeof isSecureContext=="boolean"&&isSecureContext){const a=new URL(n,location.origin);if(location.origin===a.origin){const o=Pse(a.toString());hoe(r,o,()=>o(r.currentUser)),mB(r,l=>o(l))}}const i=tie("auth");return i&&ooe(r,`http://${i}`),r}function Ase(){var t;return((t=document.getElementsByTagName("head"))==null?void 0:t[0])??document}eoe({loadJS(t){return new Promise((e,r)=>{const n=document.createElement("script");n.setAttribute("src",t),n.onload=e,n.onerror=i=>{const a=wn("internal-error");a.customData=i,r(a)},n.type="text/javascript",n.charset="UTF-8",Ase().appendChild(n)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});Sse("Browser");function AB(){return{apiKey:"AIzaSyD0vscD3WiOsurbQRvU8HsC86ICMBZ0sxA",authDomain:"nextprimus.firebaseapp.com",projectId:"nextprimus",storageBucket:"nextprimus.firebasestorage.app",messagingSenderId:"889
1532611619969",appId:"1:889611619969:web:19408b08fe8075c18b0780",measurementId:"G-Z1BSDX0T6K"}}function co(){return!!AB().appId}let xf=null,bf=null;function Ese(){if(xf)return xf;if(!co())throw new Error("Firebase is not configured (missing VITE_FIREBASE_* env)");const t=AB();return xf=gae()[0]??HF({apiKey:t.apiKey,authDomain:t.authDomain,projectId:t.projectId,storageBucket:t.storageBucket,messagingSenderId:t.messagingSenderId,appId:t.appId,measurementId:t.measurementId}),xf}function Vu(){return bf||(bf=Tse(Ese()),bf)}async function _se(){const t=new si;return t.setCustomParameters({prompt:"select_account"}),(await Moe(Vu(),t)).user}async function rM(){co()&&await poe(Vu())}async function EB(t=!1){const e=Vu().currentUser;return e?e.getIdToken(t):null}function Nse(t){return co()?moe(Vu(),t):(t(null),()=>{})}function Ose(t){return co()?mB(Vu(),t):(t(null),()=>{})}function Cse(t){if(!(t!=null&&t.trim()))return!1;const e=t.trim().toLowerCase(),r="",n=new Set(r.split(",").map(o=>o.trim().toLowerCase()).filter(Boolean)),i="[email protected]".trim().toLowerCase();i&&n.add(i);const a="[email protected]".trim().toLowerCase();return a&&n.add(a),n.has(e)}const tm="titantrail_auth_v1";function Er(t){if(!(typeof window>"u")){if(!t){localStorage.removeItem(tm);return}localStorage.setItem(tm,JSON.stringify(t))}}function nM(){if(typeof window>"u")return null;try{const t=localStorage.getItem(tm);if(!t)return null;const e=JSON.parse(t);if(!(e!=null&&e.email)||!e.token||!e.role)return null;if(typeof e.exp=="number"&&e.exp<Date.now())return localStorage.removeItem(tm),null;const r=e.provider==="password"||xk(e.token)?"password":"firebase";return{role:e.role,email:e.email,displayName:e.displayName||e.email.split("@")[0]||"User",token:e.token,localOnly:!!e.localOnly,exp:typeof e.exp=="number"?e.exp:Date.now()+3300*1e3,uid:e.uid,provider:r}}catch{return null}}function Ise(t){return Cse(t)?"editor":"reader"}async function k0(t){var i,a;const e=(i=t.email)==null?void 0:i.trim();if(!e)return null;const r=await t.getIdToken();return{role:Ise(e),email:e,displayName:((a=t.displayName)==null?void 0:a.trim())||e.split("@")[0]||"User",token:r,localOnly:!1,exp:Date.now()+3300*1e3,uid:t.uid,provider:"firebase"}}let wf=null,Sf=null;const ze=tp((t,e)=>({session:null,loading:!1,error:null,loginModalOpen:!1,hydrate:()=>{if(typeof window>"u")return;const r=nM();if((r==null?void 0:r.provider)==="password"&&(Er(r),t({session:r})),!co()){(r==null?void 0:r.provider)!=="password"&&(Er(null),t({session:null}));return}wf==null||wf(),Sf==null||Sf(),wf=Nse(n=>{(async()=>{var i,a;if(!n){if(((i=e().session)==null?void 0:i.provider)==="password")return;const o=nM();if((o==null?void 0:o.provider)==="password"){t({session:o});return}Er(null),t({session:null});return}try{const o=await k0(n);Er(o),t({session:o})}catch{if(((a=e().session)==null?void 0:a.provider)==="password")return;Er(null),t({session:null})}})()}),Sf=Ose(n=>{(async()=>{var i;if(n&&((i=e().session)==null?void 0:i.provider)!=="password")try{const a=await k0(n);if(!a)return;Er(a),t({session:a})}catch{}})()})},openLogin:()=>t({loginModalOpen:!0,error:null}),closeLogin:()=>t({loginModalOpen:!1,error:null}),clearError:()=>t({error:null}),loginWithGoogle:async()=>{t({loading:!0,error:null});try{if(!co())throw new Error("Firebase is not configured");const r=await _se(),n=await k0(r);if(!n)throw await rM(),new Error("Google account has no email");Er(n),t({session:n,loading:!1,loginModalOpen:!1})}catch(r){const n=r instanceof Error?r.message.includes("auth/popup-closed-by-user")?"Sign-in cancelled":r.message:"Login failed";throw t({loading:!1,error:n}),r}},loginWithPassword:async({email:r,password:n,voucherCode:i})=>{t({loading:!0,error:null});try{const a=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:r,password:n,voucherCode:i})}),o=await a.json().catch(()=>({}));if(!a.ok||!o.token||o.role!=="editor"||!o.email)throw new Error(o.error||"Invalid credentials");const l={role:"editor",email:o.email,displayName:o.displayName||"Editor",token:o.token,localOnly:!1,exp:typeof o.exp=="number"?o.exp:Date.now()+720*60*1e3,provider:"password"};Er(l),t({session:l,loading:!1,loginModalOpen:!1})}catch(a){const o=a instanceof Error?a.message:"Login failed";throw t({loading:!1,error:o}),a}},logout:async()=>{var n;if(((n=e().session)==null?void 0:n.provider)!=="password")try{await rM()}catch{}Er(null),t({session:null,error:null})}}));function jn(){return ze(t=>{var e;return((e=t.session)==null?void 0:e.role)==="editor"})}function Rse(){return ze(t=>{var e,r;return((e=t.session)==null?void 0:e.role)==="reader"||((r=t.session)==null?void 0:r.role)==="editor"})}function Mse(){return Rse()}async function Lse(){const t=ze.getState().session;if(!t||t.role!=="editor")return null;if(t.provider==="password"||xk(t.token))return t.exp<Date.now()?(Er(null),ze.setState({session:null}),null):t.token;try{const e=await EB(!1);if(e){if(e!==t.token){const r={...t,token:e,exp:Date.now()+33e5};Er(r),ze.setState({session:r})}return e}}catch{}return t.token}async function Df(){const t=ze.getState().session;if(!t||t.role!=="editor")return null;if(t.provider==="password"||xk(t.token))return t.exp<Date.now()?(Er(null),ze.setState({session:null}),null):t.token;try{const e=await EB(!0);if(!e)return null;const r={...t,token:e,exp:Date.now()+3300*1e3};return Er(r),ze.setState({session:r}),e}catch{return null}}function mu(t){return{...t,price:t.price??null,marketCap:t.marketCap??null,peRatio:t.peRatio??null,changePct:t.changePct??null,yearTrend:Array.isArray(t.yearTrend)?t.yearTrend:[],relativeStrength:t.relativeStrength??null,riskScore:t.riskScore??null,sectorCapShare:t.sectorCapShare??null}}function Dse(t){const e=t.rows.map(mu),r=t.sectors?Object.fromEntries(Object.entries(t.sectors).map(([n,i])=>[n,i.map(mu)])):void 0;return{...t,rows:e,sectors:r}}async function $se(t=!1){const e={"Content-Type":"application/json"},r=t?await Df():await Lse();return r&&(e.Authorization=`Bearer ${r}`),e}async function Me(t,e){const r=async a=>{var h;const o=new Headers(e==null?void 0:e.headers);for(const[m,g]of Object.entries(await $se(a)))o.has(m)||o.set(m,g);const l=await fetch(t,{...e,headers:o}),u=await l.text();let d;try{d=u?JSON.parse(u):{}}catch{const m=(h=u.match(/Cannot GET ([^\s<]+)/))==null?void 0:h[1];throw m?new Error(`API ê²½ë¡ë¥¼ ì°¾ì ì ììµëë¤ (${m}). API ìë²ë¥¼ ì¬ììíì¸ì: npm run dev:api (ëë npm run dev:full)`):u.includes("<!DOCTYPE")||u.includes("<html")?new Error("API ìë²ê° JSON ëì HTMLì ë°ííìµëë¤. dev:api(í¬í¸ 3001)ê° ì¤í ì¤ì¸ì§ íì¸íì¸ì."):new Error(u.startsWith("A server error")||u.startsWith("An error")?"Server error. Please try again shortly.":u.slice(0,200)||"Request failed")}return{res:l,data:d}};let{res:n,data:i}=await r(!1);if(n.status===401){const a=await r(!0);n=a.res,i=a.data}if(!n.ok){const a=i,o=a.code?`${a.error??"Request failed"} (${a.code})`:a.error;throw new Error(o??`Request failed (${n.status})`)}return i}
1532async function _B(t,e=[]){const r=new URLSearchParams({q:t});return e.length>0&&r.set("exclude",e.join(",")),(await Me(`/api/companies/search?${r}`)).results}async function NB(){return(await Me("/api/featured-stocks")).stocks}async function Fse(t){return(await Me("/api/featured-stocks",{method:"POST",body:JSON.stringify(t)})).stock}async function Bse(t){return Me("/api/featured-stocks",{method:"POST",body:JSON.stringify({stocks:t})})}async function zse(t){return Me("/api/companies/from-image",{method:"POST",body:JSON.stringify(t)})}async function Vse(t){await Me(`/api/featured-stocks?ticker=${encodeURIComponent(t)}`,{method:"DELETE"})}async function Use(t){return Me("/api/analyze",{method:"POST",body:JSON.stringify(t)})}async function Wse(){return Me("/api/reports")}async function OB(t=20){const e=await Me(`/api/top100?limit=${t}`);return{...e,rows:e.rows.map(r=>Vne(r))}}async function Hse(t){return Me(`/api/reports/${encodeURIComponent(t)}`)}async function qse(t,e){await Me(`/api/reports/${encodeURIComponent(t)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e})})}function CB(t,e,r){const n=new URLSearchParams;t&&n.set("refresh","1"),e&&n.set("cacheOnly","1"),r&&n.set("lang",r);const i=n.toString();return i?`?${i}`:""}async function NS(t){return Me(`/api/macro${CB(t==null?void 0:t.refresh,t==null?void 0:t.cacheOnly)}`)}async function IB(t){const e=new URLSearchParams;t!=null&&t.indicatorKey&&t.indicatorKey!=="all"&&e.set("indicator",t.indicatorKey),(t==null?void 0:t.limit)!=null&&e.set("limit",String(t.limit));const r=e.toString();return Me(`/api/macro/reports${r?`?${r}`:""}`)}async function RB(t){return Me(`/api/macro/reports/${encodeURIComponent(t)}`)}async function Gse(t,e="5Y"){const r=new URLSearchParams({indicatorKey:t,range:e});return Me(`/api/macro/history?${r}`)}async function MB(t){return Me("/api/macro/analyze",{method:"POST",body:JSON.stringify({indicatorKey:t})})}async function xn(t="mega",e){var a;const r=new URLSearchParams({scope:t});e!=null&&e.refresh&&r.set("refresh","1"),e!=null&&e.cacheOnly&&r.set("cacheOnly","1"),(a=e==null?void 0:e.tickers)!=null&&a.length&&r.set("tickers",e.tickers.join(",")),e!=null&&e.sectorGroup&&r.set("sectorGroup",e.sectorGroup);const n=new AbortController,i=setTimeout(()=>n.abort(),12e4);try{const o=await Me(`/api/market?${r}`,{signal:n.signal});return Dse(o)}catch(o){throw o instanceof Error&&o.name==="AbortError"?new Error("Alpha Vantage ìì¸ ìì² ìê°ì´ ì´ê³¼ëììµëë¤. ì ì í [ìµì ì ë³´ ê°ì ¸ì¤ê¸°]를 ë¤ì ëë¬ì£¼ì¸ì."):o}finally{clearTimeout(i)}}async function LB(t,e="1Y"){return Me(`/api/market/${encodeURIComponent(t)}/chart?range=${e}`)}async function iM(t){return Me(`/api/news/market${CB(t==null?void 0:t.refresh,t==null?void 0:t.cacheOnly,t==null?void 0:t.lang)}`)}async function DB(t=52){return Me(`/api/news/market/editions?limit=${t}`)}async function $B(t){return Me(`/api/news/market/editions/${encodeURIComponent(t)}`)}async function FB(t="en"){return Me("/api/news/market/generate",{method:"POST",body:JSON.stringify({lang:t})})}async function Kse(){return Me("/api/status/nightly")}function Ik(){return{"Content-Type":"application/json","x-device-id":Bne()}}async function Yse(){return(await Me("/api/watchlist",{headers:Ik()})).items}async function Xse(t){return(await Me("/api/watchlist",{method:"POST",headers:Ik(),body:JSON.stringify(t)})).item}async function Jse(t){await Me(`/api/watchlist?ticker=${encodeURIComponent(t)}`,{method:"DELETE",headers:Ik()})}async function Qse(t=50){return Me(`/api/alerts?limit=${encodeURIComponent(String(t))}`)}async function Zse(){return Me("/api/alerts/universe")}function ele(t){return t?"?refresh=1":""}async function Rk(t){const e=new URLSearchParams;t!=null&&t.refresh&&e.set("refresh","1"),t!=null&&t.signal&&e.set("signal",t.signal),t!=null&&t.sector&&e.set("sector",t.sector),t!=null&&t.limit&&e.set("limit",String(t.limit));const r=e.toString();return Me(`/api/strategy/top100${r?`?${r}`:""}`)}async function Mk(t,e=!1){return Me(`/api/strategy/ticker/${encodeURIComponent(t)}${ele(e)}`)}
1532async function tle(t,e=90){return Me(`/api/strategy/ticker/${encodeURIComponent(t)}/history?days=${encodeURIComponent(String(e))}`)}async function BB(t="en",e=20){return Me(`/api/journal?lang=${encodeURIComponent(t)}&limit=${encodeURIComponent(String(e))}`)}async function rle(t){return Me(`/api/journal/${encodeURIComponent(t)}`)}async function nle(){return Me("/api/journal/admin")}async function ile(t){return Me("/api/journal",{method:"POST",body:JSON.stringify(t)})}async function ale(t,e){return Me(`/api/journal/${encodeURIComponent(t)}`,{method:"PUT",body:JSON.stringify(e)})}async function ole(t){return Me(`/api/journal/${encodeURIComponent(t)}/publish`,{method:"POST"})}async function sle(t){return Me(`/api/journal/${encodeURIComponent(t)}/unpublish`,{method:"POST"})}async function lle(t){return Me(`/api/journal/${encodeURIComponent(t)}`,{method:"DELETE"})}async function cle(t){return Me("/api/journal/ai-draft",{method:"POST",body:JSON.stringify({...t,save:!0})})}function ule(){const{t}=ye(),e=ze(k=>k.loginModalOpen),r=ze(k=>k.loading),n=ze(k=>k.error),i=ze(k=>k.loginWithGoogle),a=ze(k=>k.loginWithPassword),o=ze(k=>k.closeLogin),l=ze(k=>k.clearError),u=co(),[d,h]=N.useState(""),[m,g]=N.useState(""),[v,b]=N.useState("");if(N.useEffect(()=>{e||(l(),h(""),g(""),b(""))},[e,l]),!e)return null;const w=async()=>{try{await i()}catch{}},x=async k=>{k.preventDefault();try{await a({email:d,password:m,voucherCode:v})}catch{}};return f.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/40 p-4",role:"dialog","aria-modal":"true","aria-labelledby":"login-modal-title",children:f.jsxs("div",{className:"card w-full max-w-md
1532shadow-lg",children:[f.jsxs("div",{className:"mb-4 flex items-start justify-between gap-4",children:[f.jsxs("div",{children:[f.jsx("h2",{id:"login-modal-title",className:"font-serif text-lg font-bold text-primary",children:t("auth.loginTitle")}),f.jsx("p",{className:"mt-1 text-sm text-muted",children:t("auth.loginSubtitle")})]}),f.jsx("button",{type:"button",className:"text-muted hover:text-foreground",onClick:o,"aria-label":t("auth.close"),children:"â"})]}),!u&&f.jsx("p",{className:"mb-4 text-sm text-risk-high",role:"alert",children:t("auth.firebaseNotConfigured")}),n&&f.jsx("p",{className:"mb-4 text-sm text-risk-high",role:"alert",children:n}),f.jsxs("button",{type:"button",className:"btn-primary flex w-full items-center justify-center gap-2",disabled:r||!u,onClick:()=>void w(),children:[f.jsx(dle,{}),r?"â¦":t("auth.signInWithGoogle")]}),f.jsxs("div",{className:"my-5 flex items-center gap-3",children:[f.jsx("div",{className:"h-px flex-1 bg-border"}),f.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wide text-muted",children:t("auth.orEditor")}),f.jsx("div",{className:"h-px flex-1 bg-border"})]}),f.jsxs("form",{className:"space-y-3",onSubmit:k=>void x(k),children:[f.jsxs("label",{className:"block text-sm",children:[f.jsx("span",{className:"mb-1 block text-xs font-semibold text-muted",children:t("auth.email")}),f.jsx("input",{type:"email",autoComplete:"username",className:"w-full rounded-lg border border-border bg-white px-3 py-2 text-sm",value:d,onChange:k=>h(k.target.value),disabled:r,required:!0})]}),f.jsxs("label",{className:"block text-sm",children:[f.jsx("span",{className:"mb-1 block text-xs font-semibold text-muted",children:t("auth.password")}),f.jsx("input",{type:"password",autoComplete:"current-password",className:"w-full rounded-lg border border-border bg-white px-3 py-2 text-sm",value:m,onChange:k=>g(k.target.value),disabled:r,required:!0})]}),f.jsxs("label",{className:"block text-sm",children:[f.jsx("span",{className:"mb-1 block text-xs font-semibold text-muted",children:t("auth.voucherCode")}),f.jsx("input",{type:"password",autoComplete:"one-time-code",className:"w-full rounded-lg border border-border bg-white px-3 py-2 text-sm",value:v,onChange:k=>b(k.target.value),disabled:r,required:!0})]}),f.jsx("button",{type:"submit",className:"btn-secondary w-full",disabled:r,children:r?"â¦":t("auth.editorSignIn")})]}),f.jsx("p",{className:"mt-4 text-xs text-muted",children:t("auth.hint")}),f.jsx("div",{className:"mt-4 flex justify-end",children:f.jsx("button",{type:"button",className:"btn-secondary",onClick:o,disabled:r,children:t("auth.cancel")})})]})})}function dle(){return f.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 48 48","aria-hidden":!0,children:[f.jsx("path",{fill:"#FFC107",d:"M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.3 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3 0 5.8 1.1 7.9 3l5.7-5.7C34.2 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.2-.1-2.3-.4-3.5z"}),f.jsx("path",{fill:"#FF3D00",d:"M6.3 14.7l6.6 4.8C14.7 16 19 12 24 12c3 0 5.8 1.1 7.9 3l5.7-5.7C34.2 6.1 29.3 4 24 4 16.1 4 9.2 8.5 6.3 14.7z"}),f.jsx("path",{fill:"#4CAF50",d:"M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.3 26.7 36 24 36c-5.3 0-9.7-3.3-11.3-7.9l-6.5 5C9.1 39.5 16 44 24 44z"}),f.jsx("path",{fill:"#1976D2",d:"M43.6 20.5H42V20H24v8h11.3c-1.1 3.1-3.5 5.5-6.1 7.1l.1.1 6.2 5.2C37.2 39.2 44 34 44 24c0-1.2-.1-2.3-.4-3.5z"})]})}var j0={};const _e=t=>typeof t=="string",rc=()=>{let t,e;const r=new Promise((n,i)=>{t=n,e=i});return r.resolve=t,r.reject=e,r},aM=t=>t==null?"":""+t,fle=(t,e,r)=>{t.forEach(n=>{e[n]&&(r[n]=e[n])})},hle=/###/g,oM=t=>t&&t.indexOf("###")>-1?t.replace(hle,"."):t,sM=t=>!t||_e(t),xc=(t,e,r)=>{const n=_e(e)?e.split("."):e;let i=0;for(;i<n.length-1;){if(sM(t))return{};const a=oM(n[i]);!t[a]&&r&&(t[a]=new r),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={},++i}return sM(t)?{}:{obj:t,k:oM(n[i])}},lM=(t,e,r)=>{const{obj:n,k:i}=xc(t,e,Object);if(n!==void 0||e.length===1){n[i]=r;return}let a=e[e.length-1],o=e.slice(0,e.length-1),l=xc(t,o,Object);for(;l.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),l=xc(t,o,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=r},mle=(t,e,r,n)=>{const{obj:i,k:a}=xc(t,e,Object);i[a]=i[a]||[],i[a].push(r)},rm=(t,e)=>{const{obj:r,k:n}=xc(t,e);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},ple=(t,e,r)=>{const n=rm(t,r);return n!==void 0?n:rm(e,r)},zB=(t,e,r)=>{for(const n in e)n!=="__proto__"&&n!=="constructor"&&(n in t?_e(t[n])||t[n]instanceof String||_e(e[n])||e[n]instanceof String?r&&(t[n]=e[n]):zB(t[n],e[n],r):t[n]=e[n]);return t},La=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var gle={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const yle=t=>_e(t)?t.replace(/[&<>
1532"'\/]/g,e=>gle[e]):t;class vle{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const r=this.regExpMap.get(e);if(r!==void 0)return r;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const xle=[" ",",","?","!",";"],ble=new vle(20),wle=(t,e,r)=>{e=e||"",r=r||"";const n=xle.filter(o=>e.indexOf(o)<0&&r.indexOf(o)<0);if(n.length===0)return!0;const i=ble.getRegExp(`(${n.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!i.test(t);if(!a){const o=t.indexOf(r);o>0&&!i.test(t.substring(0,o))&&(a=!0)}return a},OS=(t,e,r=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const n=e.split(r);let i=t;for(let a=0;a<n.length;){if(!i||typeof i!="object")return;let o,l="";for(let u=a;u<n.length;++u)if(u!==a&&(l+=r),l+=n[u],o=i[l],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&u<n.length-1)continue;a+=u-a+1;break}i=o}return i},pu=t=>t==null?void 0:t.replace(/_/g,"-"),Sle={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){var r,n;(n=(r=console==null?void 0:console[t])==null?void 0:r.apply)==null||n.call(r,console,e)}};class nm{constructor(e,r={}){this.init(e,r)}init(e,r={}){this.prefix=r.prefix||"i18next:",this.logger=e||Sle,this.options=r,this.debug=r.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,r,n,i){return i&&!this.debug?null:(_e(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[r](e))}create(e){return new nm(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new nm(this.logger,e)}}var Ln=new nm;class ap{constructor(){this.observers={}}on(e,r){return e.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const i=this.observers[n].get(r)||0;this.observers[n].set(r,i+1)}),this}off(e,r){if(this.observers[e]){if(!r){delete this.observers[e];return}this.observers[e].delete(r)}}emit(e,...r){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([i,a])=>{for(let o=0;o<a;o++)i(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,a])=>{for(let o=0;o<a;o++)i.apply(i,[e,...r])})}}class cM extends ap{constructor(e,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const r=this.options.ns.indexOf(e);r>-1&&this.options.ns.splice(r,1)}getResource(e,r,n,i={}){var d,h;const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,r],n&&(Array.isArray(n)?l.push(...n):_e(n)&&a?l.push(...n.split(a)):l.push(n)));const u=rm(this.data,l);return!u&&!r&&!n&&e.indexOf(".")>-1&&(e=l[0],r=l[1],n=l.slice(2).join(".")),u||!o||!_e(n)?u:OS((h=(d=this.data)==null?void 0:d[e])==null?void 0:h[r],n,a)}addResource(e,r,n,i,a={silent:!1}){const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let l=[e,r];
vendor: 2,027 bytes, line 1532
1532n&&(l=l.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(l=e.split("."),i=r,r=l[1]),this.addNamespaces(r),lM(this.data,l,i),a.silent||this.emit("added",e,r,n,i)}addResources(e,r,n,i={silent:!1}){for(const a in n)(_e(n[a])||Array.isArray(n[a]))&&this.addResource(e,r,a,n[a],{silent:!0});i.silent||this.emit("added",e,r,n)}addResourceBundle(e,r,n,i,a,o={silent:!1,skipCopy:!1}){let l=[e,r];e.indexOf(".")>-1&&(l=e.split("."),i=n,n=r,r=l[1]),this.addNamespaces(r);let u=rm(this.data,l)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?zB(u,n,a):u={...u,...n},lM(this.data,l,u),o.silent||this.emit("added",e,r,n)}removeResourceBundle(e,r){this.hasResourceBundle(e,r)&&delete this.data[e][r],this.removeNamespaces(r),this.emit("removed",e,r)}hasResourceBundle(e,r){return this.getResource(e,r)!==void 0}getResourceBundle(e,r){return r||(r=this.options.defaultNS),this.getResource(e,r)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const r=this.getDataByLanguage(e);return!!(r&&Object.keys(r)||[]).find(i=>r[i]&&Object.keys(r[i]).length>0)}toJSON(){return this.data}}var VB={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,r,n,i){return t.forEach(a=>{var o;e=((o=this.processors[a])==null?void 0:o.process(e,r,n,i))??e}),e}};const UB=Symbol("i18next/PATH_KEY");function kle(){const t=[],e=Object.create(null);let r;return e.get=(n,i)=>{var a;return(a=r==null?void 0:r.revoke)==null||a.call(r),i===UB?t:(t.push(i),r=Proxy.revocable(n,e),r.proxy)},Proxy.revocable(Object.create(null),e).proxy}function us(t,e){const{[UB]:r}=t(kle()),n=(e==null?void 0:e.keySeparator)??".",i=(e==null?void 0:e.nsSeparator)??":";if(r.length>1&&i){const a=e==null?void 0:e.ns,o=Array.isArray(a)?a:null;if(o&&o.length>1&&o.slice(1).includes(r[0]))return`${r[0]}${i}${r.slice(1).join(n)}`}return r.join(n)}const uM={},P0=t=>!_e(t)&&typeof t!="boolean"&&typeof t!="number";class im extends ap{constructor(e,r={}){super(),fle(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1532i18nFormat","utils"],e,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ln.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,r={interpolation:{}}){const n={...r};if(e==null)return!1;const i=this.resolve(e,n);if((i==null?void 0:i.res)===void 0)return!1;const a=P0(i.res);return!(n.returnObjects===!1&&a)}extractFromKey(e,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let a=r.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!wle(e,n,i);if(o&&!l){const u=e.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:e,namespaces:_e(a)?[a]:a};const d=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(d[0])>-1)&&(a=d.shift()),e=d.join(i)}return{key:e,namespaces:_e(a)?[a]:a}}translate(e,r,n){let i=typeof r=="object"?{...r}:r;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),e==null)return"";typeof e=="function"&&(e=us(e,{...this.options,...i})),Array.isArray(e)||(e=[String(e)]),e=e.map(G=>typeof G=="function"?us(G,{...this.options,...i}):String(G));const a=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:l,namespaces:u}=this.extractFromKey(e[e.length-1],i),d=u[u.length-1];let h=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;h===void 0&&(h=":");const m=i.lng||this.language,g=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((m==null?void 0:m.toLowerCase())==="cimode")return g?a?{res:`${d}${h}${l}`,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:d,usedParams:this.getUsedParamsDetails(i)}:`${d}${h}${l}`:a?{res:l,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:d,usedParams:this.getUsedParamsDetails(i)}:l;const v=this.resolve(e,i);let b=v==null?void 0:v.res;const w=(v==null?void 0:v.usedKey)||l,x=(v==null?void 0:v.exactUsedKey)||l,k=["[object Number]","[object Function]","[object RegExp]"],P=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,E=i.count!==void 0&&!_e(i.count),T=im.hasDefaultValue(i),_=E?this.pluralResolver.getSuffix(m,i.count,i):"",O=i.ordinal&&E?this.pluralResolver.getSuffix(m,i.count,{ordinal:!1}):"",I=E&&!i.ordinal&&i.count===0,R=I&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${_}`]||i[`defaultValue${O}`]||i.defaultValue;let D=b;A&&!b&&T&&(D=R);const F=P0(D),B=Object.prototype.toString.apply(D);if(A&&D&&F&&k.indexOf(B)<0&&!(_e(P)&&Array.isArray(D))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const G=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,D,{...i,ns:u}):`key '${l} (${this.language})' returned an object instead of string.`;return a?(v.res=G,v.usedParams=this.getUsedParamsDetails(i),v):G}if(o){const G=Array.isArray(D),Y=G?[]:{},z=G?x:w;for(const K in D)if(Object.prototype.hasOwnProperty.call(D,K)){const Q=`${z}${o}${K}`;T&&!b?Y[K]=this.translate(Q,{...i,defaultValue:P0(R)?R[K]:void 0,joinArrays:!1,ns:u}):Y[K]=this.translate(Q,{...i,joinArrays:!1,ns:u}),Y[K]===Q&&(Y[K]=D[K])}b=Y}}else if(A&&_e(P)&&Array.isArray(b))b=b.join(P),b&&(b=this.extendTranslation(b,e,i,n));else{let G=!1,Y=!1;!this.isValidLookup(b)&&T&&(G=!0,b=R),this.isValidLookup(b)||(Y=!0,b=l);const K=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Y?void 0:b,Q=T&&R!==b&&this.options.updateMissing;if(Y||G||Q){if(this.logger.log(Q?"updateKey":"missingKey",m,d,l,Q?R:b),o){const L=this.resolve(l,{...i,keySeparator:!1});L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let q=[];const Z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Z&&Z[0])for(let L=0;L<Z.length;L++)q.push(Z[L]);else this.options.saveMissingTo==="all"?q=this.languageUtils.toResolveHierarchy(i.lng||this.language):q.push(i.lng||this.language);const ee=(L,W,V)=>{var de;const re=T&&V!==b?V:K;this.options.missingKeyHandler?this.options.missingKeyHandler(L,d,W,re,Q,i):(de=this.backendConnector)!=null&&de.saveMissing&&this.backendConnector.saveMissing(L,d,W,re,Q,i),this.emit
vendor: 4,317 bytes, line 1532
1532("missingKey",L,d,W,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?q.forEach(L=>{const W=this.pluralResolver.getSuffixes(L,i);I&&i[`defaultValue${this.options.pluralSeparator}zero`]&&W.indexOf(`${this.options.pluralSeparator}zero`)<0&&W.push(`${this.options.pluralSeparator}zero`),W.forEach(V=>{ee([L],l+V,i[`defaultValue${V}`]||R)})}):ee(q,l,R))}b=this.extendTranslation(b,e,i,v,n),Y&&b===l&&this.options.appendNamespaceToMissingKey&&(b=`${d}${h}${l}`),(Y||G)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${h}${l}`:l,G?b:void 0,i))}return a?(v.res=b,v.usedParams=this.getUsedParamsDetails(i),v):b}extendTranslation(e,r,n,i,a){var u,d;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const h=_e(e)&&(((d=n==null?void 0:n.interpolation)==null?void 0:d.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(h){const v=e.match(this.interpolator.nestingRegexp);m=v&&v.length}let g=n.replace&&!_e(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),e=this.interpolator.interpolate(e,g,n.lng||this.language||i.usedLng,n),h){const v=e.match(this.interpolator.nestingRegexp),b=v&&v.length;m<b&&(n.nest=!1)}!n.lng&&i&&i.res&&(n.lng=this.language||i.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...v)=>(a==null?void 0:a[0])===v[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${r[0]}`),null):this.translate(...v,r),n)),n.interpolation&&this.interpolator.reset()}const o=n.postProcess||this.options.postProcess,l=_e(o)?[o]:o;return e!=null&&(l!=null&&l.length)&&n.applyPostProcessor!==!1&&(e=VB.handle(l,e,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,r={}){let n,i,a,o,l;return _e(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(u=>typeof u=="function"?us(u,{...this.options,...r}):u)),e.forEach(u=>{if(this.isValidLookup(n))return;const d=this.extractFromKey(u,r),h=d.key;i=h;let m=d.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const g=r.count!==void 0&&!_e(r.count),v=g&&!r.ordinal&&r.count===0,b=r.context!==void 0&&(_e(r.context)||typeof r.context=="number")&&r.context!=="",w=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);m.forEach(x=>{var k,P;this.isValidLookup(n)||(l=x,!uM[`${w[0]}-${x}`]&&((k=this.utils)!=null&&k.hasLoadedNamespace)&&!((P=this.utils)!=null&&P.hasLoadedNamespace(l))&&(uM[`${w[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${w.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(A=>{var _;if(this.isValidLookup(n))return;o=A;const E=[h];if((_=this.i18nFormat)!=null&&_.addLookupKeys)this.i18nFormat.addLookupKeys(E,h,A,x,r);else{let O;g&&(O=this.pluralResolver.getSuffix(A,r.count,r));const I=`${this.options.pluralSeparator}zero`,R=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(r.ordinal&&O.indexOf(R)===0&&E.push(h+O.replace(R,this.options.pluralSeparator)),E.push(h+O),v&&E.push(h+I)),b){const D=`${h}${this.options.contextSeparator||"_"}${r.context}`;E.push(D),g&&(r.ordinal&&O.indexOf(R)===0&&E.push(D+O.replace(R,this.options.pluralSeparator)),E.push(D+O),v&&E.push(D+I))}}let T;for(;T=E.pop();)this.isValidLookup(n)||(a=T,n=this.getResource(A,x,T,r))}))})}),{res:n,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,r,n,i={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(e,r,n,i):this.resourceStore.getResource(e,r,n,i)}
vendor: 16,514 bytes, line 1532
1532getUsedParamsDetails(e={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!_e(e.replace);let i=n?e.replace:e;if(n&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(const a of r)delete i[a]}return i}static hasDefaultValue(e){const r="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r===n.substring(0,r.length)&&e[n]!==void 0)return!0;return!1}}class dM{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ln.create("languageUtils")}getScriptPartFromCode(e){if(e=pu(e),!e||e.indexOf("-")<0)return null;const r=e.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(e){if(e=pu(e),!e||e.indexOf("-")<0)return e;const r=e.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(e){if(_e(e)&&e.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(e)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let r;return e.forEach(n=>{if(r)return;const i=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(i))&&(r=i)}),!r&&this.options.supportedLngs&&e.forEach(n=>{if(r)return;const i=this.getScriptPartFromCode(n);if(this.isSupportedCode(i))return r=i;const a=this.getLanguagePartFromCode(n);if(this.isSupportedCode(a))return r=a;r=this.options.supportedLngs.find(o=>{if(o===a)return o;if(!(o.indexOf("-")<0&&a.indexOf("-")<0)&&(o.indexOf("-")>0&&a.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===a||o.indexOf(a)===0&&a.length>1))return o})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),_e(e)&&(e=[e]),Array.isArray(e))return e;if(!r)return e.default||[];let n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}toResolveHierarchy(e,r){const n=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],e),i=[],a=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return _e(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):_e(e)&&a(this.formatLanguageCode(e)),n.forEach(o=>{i.indexOf(o)<0&&a(this.formatLanguageCode(o))}),i}}const fM={zero:0,one:1,two:2,few:3,many:4,other:5},hM={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class jle{constructor(e,r={}){this.languageUtils=e,this.options=r,this.logger=Ln.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,r={}){const n=pu(e==="dev"?"en":e),i=r.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:n,type:i});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let o;try{o=new Intl.PluralRules(n,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),hM;if(!e.match(/-|_/))return hM;const u=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(u,r)}return this.pluralRulesCache[a]=o,o}needsPlural(e,r={}){let n=this.getRule(e,r);return n||(n=this.getRule("dev",r)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,r,n={}){return this.getSuffixes(e,n).map(i=>`${r}${i}`)}getSuffixes(e,r={}){let n=this.getRule(e,r);return n||(n=this.getRule("dev",r)),n?n.resolvedOptions().pluralCategories.sort((i,a)=>fM[i]-fM[a]).map(i=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(e,r,n={}){const i=this.getRule(e,n);return i?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(r)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",r,n))}}const mM=(t,e,r,n=".",i=!0)=>{let a=ple(t,e,r);return!a&&i&&_e(r)&&(a=OS(t,r,n),a===void 0&&(a=OS(e,r,n))),a},T0=t=>t.replace(/\$/g,"$$$$");class pM{constructor(e={}){var r;this.logger=Ln.create("interpolator"),this.options=e,this.format=((r=e==null?void 0:e.interpolation)==null?void 0:r.format)||(n=>n),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:i,prefix:a,prefixEscaped:o,suffix:l,suffixEscaped:u,formatSeparator:d,unescapeSuffix:h,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:v,nestingSuffix:b,nestingSuffixEscaped:w,nestingOptionsSeparator:x,maxReplaces:k,alwaysFormat:P}=e.interpolation;this.escape=r!==void 0?r:yle,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?La(a):o||"{{",this.suffix=l?La(l):u||"}}",this.formatSeparator=d||",",this.unescapePrefix=h?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=g?La(g):v||La("$t("),this.nestingSuffix=b?La(b):w||La(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=k||1e3,this.alwaysFormat=P!==void 0?P:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(r,n)=>(r==null?void 0:r.source)===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,r,n,i){var v;let a,o,l;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=b=>{if(b.indexOf(this.formatSeparator)<0){const P=mM(r,u,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(P,void 0,n,{...i,...r,interpolationkey:b}):P}const w=b.split(this.formatSeparator),x=w.shift().trim(),k=w.join(this.formatSeparator).trim();return this.format(mM(r,u,x,this.options.keySeparator,this.options.ignoreJSONStructure),k,n,{...i,...r,interpolationkey:x})};this.resetRegExp();const h=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,m=((v=i==null?void 0:i.interpolation)==null?void 0:v.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>T0(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?T0(this.escape(b)):T0(b)}].forEach(b=>{for(l=0;a=b.regex.exec(e);){const w=a[1].trim();if(o=d(w),o===void 0)if(typeof h=="function"){const k=h(e,a,i);o=_e(k)?k:""}else if(i&&Object.prototype.hasOwnProperty.call(i,w))o="";else if(m){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`),o="";else!_e(o)&&!this.useRawValueToEscape&&(o=aM(o));const x=b.safeValue(o);if(e=e.replace(a[0],x),m?(b.regex.lastIndex+=o.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,r,n={}){let i,a,o;const l=(u,d)=>{const h=this.nestingOptionsSeparator;if(u.indexOf(h)<0)return u;const m=u.split(new RegExp(`${La(h)}[ ]*{`));let g=`{${m[1]}`;u=m[0],g=this.interpolate(g,o);const v=g.match(/'/g),b=g.match(/"/g);(((v==null?void 0:v.length)??0)%2===0&&!b||((b==null?void 0:b.length)??0)%2!==0)&&(g=g.replace(/'/g,'"'));try{o=JSON.parse(g),d&&(o={...d,...o})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,w),`${u}${h}${g}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,u};for(;i=this.nestingRegexp.exec(e);){let u=[];o={...n},o=o.replace&&!_e(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const d=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(d!==-1&&(u=i[1].slice(d).split(this.formatSeparator).map(h=>h.trim()).filter(Boolean),i[1]=i[1].slice(0,d)),a=r(l.call(this,i[1].trim(),o),o),a&&i[0]===e&&!_e(a))return a;_e(a)||(a=aM(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),a=""),u.length&&(a=u.reduce((h,m)=>this.format(h,m,n.lng,{...n,interpolationkey:i[1].trim()}),a.trim())),e=e.replace(i[0],a),this.regexp.lastIndex=0}return e}}const Ple=t=>{let e=t.toLowerCase().trim();const r={};if(t.indexOf("(")>-1){const n=t.split("(");e=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);e==="currency"&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach(o=>{if(o){const[l,...u]=o.split(":"),d=u.join(":").trim().replace(/^'+|'+$/g,""),h=l.trim();r[h]||(r[h]=d),d==="false"&&(r[h]=!1),d==="true"&&(r[h]=!0),isNaN(d)||(r[h]=parseInt(d,10))}})}return{formatName:e,formatOptions:r}},gM=t=>{const e={};return(r,n,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});const o=n+JSON.stringify(a);let l=e[o];return l||(l=t(pu(n),i),e[o]=l),l(r)}},Tle=t=>(e,r,n)=>t(pu(r),n)(e);class Ale{constructor(e={}){this.logger=Ln.create("formatter"),this.options=e,this.init(e)}init(e,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const n=r.cacheInBuiltFormats?gM:Tle;this.formats={number:n((i,a)=>{const o=new Intl.NumberFormat(i,{...a});return l=>o.format(l)}),currency:n((i,a)=>{const o=new Intl.NumberFormat(i,{...a,style:"currency"});return l=>o.format(l)}),datetime:n((i,a)=>{const o=new Intl.DateTimeFormat(i,{...a});return l=>o.format(l)}),relativetime:n((i,a)=>{const o=new Intl.RelativeTimeFormat(i,{...a});return l=>o.format(l,a.range||"day")}),list:n((i,a)=>{const o=new Intl.ListFormat(i,{...a});return l=>o.format(l)})}}add(e,r){this.formats[e.toLowerCase().trim()]=r}addCached(e,r){this.formats[e.toLowerCase().trim()]=gM(r)}format(e,r,n,i={}){const a=r.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){const l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{var m;const{formatName:d,formatOptions:h}=Ple(u);if(this.formats[d]){let g=l;try{const v=((m=i==null?void 0:i.formatParams)==null?void 0:m[i.interpolationkey])||{},b=v.locale||v.lng||i.locale||i.lng||n;g=this.formats[d](l,b,{...h,...i,...v})}catch(v){this.logger.warn(v)}return g}else this.logger.warn(`there was no format function for ${d}`);return l},e)}}const Ele=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class _le extends ap{constructor(e,r,n,i={}){var a,o;super(),this.backend=e,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=Ln.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(o=(a=this.backend)==null?void 0:a.init)==null||o.call(a,n,i.backend,i)}queueLoad(e,r,n,i){const a={},o={},l={},u={};return e.forEach(d=>{let h=!0;r.forEach(m=>{const g=`${d}|${m}`;!n.reload&&this.store.hasResourceBundle(d,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?o[g]===void 0&&(o[g]=!0):(this.state[g]=1,h=!1,o[g]===void 0&&(o[g]=!0),a[g]===void 0&&(a[g]=!0),u[m]===void 0&&(u[m]=!0)))}),h||(l[d]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(e,r,n){const i=e.split("|"),a=i[0],o=i[1];r&&this.emit("failedLoading",a,o,r),!r&&n&&this.store.addResourceBundle(a,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=r?-1:2,r&&n&&(this.state[e]=0);const l={};this.queue.forEach(u=>{mle(u.loaded,[a],o),Ele(u,e),r&&u.errors.push(r),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(d=>{l[d]||(l[d]={});const h=u.loaded[d];h.length&&h.forEach(m=>{l[d][m]===void 0&&(l[d][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(e,r,n,i=0,a=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:r,fcName:n,tried:i,wait:a,callback:o});return}this.readingCalls++;const l=(d,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(d&&h&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,e,r,n,i+1,a*2,o)},a);return}o(d,h)},u=this.backend[n].bind(this.backend);if(u.length===2){try{const d=u(e,r);d&&typeof d.then=="function"?d.then(h=>l(null,h)).catch(l):l(null,d)}catch(d){l(d)}return}return u(e,r,l)}prepareLoading(e,r,n={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();_e(e)&&(e=this.languageUtils.toResolveHierarchy(e)),_e(r)&&(r=[r]);const a=this.queueLoad(e,r,n,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(e,r,n){this.prepareLoading(e,r,{},n)}reload(e,r,n){this.prepareLoading(e,r,{reload:!0},n)}loadOne(e,r=""){const n=e.split("|"),i=n[0],a=n[1];this.read(i,a,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${r}loading namespace ${a} for language ${i} failed`,o),!o&&l&&this.logger.log(`${r}loaded namespace ${a} for language ${i}`,l),this.loaded(e,o,l)})}saveMissing(e,r,n,i,a,o={},l=()=>{}){var u,d,h,m,g;if((d=(u=this.services)==null?void 0:u.utils)!=null&&d.hasLoadedNamespace&&!((m=(h=this.services)==null?void 0:h.utils)!=null&&m.hasLoadedNamespace(r))){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if((g=this.backend)!=null&&g.create){const v={...o,isUpdate:a},b=this.backend.create.bind(this.backend);if(b.length<6)try{let w;b.length===5?w=b(e,r,n,i,v):w=b(e,r,n,i),w&&typeof w.then=="function"?w.then(x=>l(null,x)).catch(l):l(null,w)}catch(w){l(w)}else b(e,r,n,i,l,v)}!e||!e[0]||this.store.addResource(e[0],r,n,i)}}}const A0=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),_e(t[1])&&(e.defaultValue=t[1]),_e(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(n=>{e[n]=r[n]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),yM=t=>{var e,r;return _e(t.ns)&&(t.ns=[t.ns]),_e(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),_e(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),((r=(e=t.supportedLngs)==null?void 0:e.indexOf)==null?void 0:r.call(e,"cimode"))<0&&(t.supp
1532ortedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t},kf=()=>{},Nle=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(r=>{typeof t[r]=="function"&&(t[r]=t[r].bind(t))})},WB="__i18next_supportNoticeShown",Ole=()=>!!(typeof globalThis<"u"&&globalThis[WB]||typeof process<"u"&&j0&&j0.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&j0),Cle=()=>{typeof globalThis<"u"&&(globalThis[WB]=!0)},Ile=t=>{var e,r,n,i,a,o,l,u,d,h,m,g,v;return!!(((n=(r=(e=t==null?void 0:t.modules)==null?void 0:e.backend)==null?void 0:r.name)==null?void 0:n.indexOf("Locize"))>0||((l=(o=(a=(i=t==null?void 0:t.modules)==null?void 0:i.backend)==null?void 0:a.constructor)==null?void 0:o.name)==null?void 0:l.indexOf("Locize"))>0||(d=(u=t==null?void 0:t.options)==null?void 0:u.backend)!=null&&d.backends&&t.options.backend.backends.some(b=>{var w,x,k;return((w=b==null?void 0:b.name)==null?void 0:w.indexOf("Locize"))>0||((k=(x=b==null?void 0:b.constructor)==null?void 0:x.name)==null?void 0:k.indexOf("Locize"))>0})||(m=(h=t==null?void 0:t.options)==null?void 0:h.backend)!=null&&m.projectId||(v=(g=t==null?void 0:t.options)==null?void 0:g.backend)!=null&&v.backendOptions&&t.options.backend.backendOptions.some(b=>b==null?void 0:b.projectId))};class bc extends ap{constructor(e={},r){if(super(),this.options=yM(e),this.services={},this.logger=Ln,this.modules={external:[]},Nle(this),r&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,r),this;setTimeout(()=>{this.init(e,r)},0)}}init(e={},r){this.isInitializing=!0,typeof e=="function"&&(r=e,e={}),e.defaultNS==null&&e.ns&&(_e(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=A0();this.options={...n,...this.options,...yM(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!Ile(this)&&!Ole()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("ð i18next is made possible by our own product, Locize â consider powering your project with managed localization (AI, CDN, integrations): https://locize.com ð"),Cle());const i=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Ln.init(i(this.modules.logger),this.options):Ln.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=Ale;const h=new dM(this.options);this.store=new cM(this.options.resources,this.options);const m=this.services;m.logger=Ln,m.resourceStore=this.store,m.languageUtils=h,m.pluralResolver=new jle(h,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),d&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(m.formatter=i(d),m.formatter.init&&m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new pM(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new _le(i(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",(v,...b)=>{this.emit(v,...b)}),this.modules.languageDetector&&(m.languageDetector=i(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=i(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new im(this.services,this.options),this.translator.on("*",(v,...b)=>{this.emit(v,...b)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,r||(r=kf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=(...h)=>this.store[d](...h)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...h)=>(this.store[d](...h),this)});const l=rc(),u=()=>{const d=(h,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit
vendor: 4,538 bytes, line 1532
1532("initialized",this.options),l.resolve(m),r(h,m)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),l}loadResources(e,r=kf){var a,o;let n=r;const i=_e(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const l=[],u=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(m=>{m!=="cimode"&&l.indexOf(m)<0&&l.push(m)})};i?u(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>u(h)),(o=(a=this.options.preload)==null?void 0:a.forEach)==null||o.call(a,d=>u(d)),this.services.backendConnector.load(l,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(d)})}else n(null)}reloadResources(e,r,n){const i=rc();return typeof e=="function"&&(n=e,e=void 0),typeof r=="function"&&(n=r,r=void 0),e||(e=this.languages),r||(r=this.options.ns),n||(n=kf),this.services.backendConnector.reload(e,r,a=>{i.resolve(),n(a)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&VB.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,r){this.isLanguageChangingTo=e;const n=rc();this.emit("languageChanging",e);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,u)=>{u?this.isLanguageChangingTo===e&&(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,n.resolve((...d)=>this.t(...d)),r&&r(l,(...d)=>this.t(...d))},o=l=>{var h,m;!e&&!l&&this.services.languageDetector&&(l=[]);const u=_e(l)?l:l&&l[0],d=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(_e(l)?[l]:l);d&&(this.language||i(d),this.translator.language||this.translator.changeLanguage(d),(m=(h=this.services.languageDetector)==null?void 0:h.cacheUserLanguage)==null||m.call(h,d)),this.loadResources(d,g=>{a(g,d)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),n}getFixedT(e,r,n){const i=(a,o,...l)=>{let u;typeof o!="object"?u=this.options.overloadTranslationOptionHandler([a,o].concat(l)):u={...o},u.lng=u.lng||i.lng,u.lngs=u.lngs||i.lngs,u.ns=u.ns||i.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||n||i.keyPrefix);const d={...this.options,...u};typeof u.keyPrefix=="function"&&(u.keyPrefix=us(u.keyPrefix,d));const h=this.options.keySeparator||".";let m;return u.keyPrefix&&Array.isArray(a)?m=a.map(g=>(typeof g=="function"&&(g=us(g,d)),`${u.keyPrefix}${h}${g}`)):(typeof a=="function"&&(a=us(a,d)),m=u.keyPrefix?`${u.keyPrefix}${h}${a}`:a),this.t(m,u)};return _e(e)?i.lng=e:i.lngs=e,i.ns=r,i.keyPrefix=n,i}t(...e){var r;return(r=this.translator)==null?void 0:r.translate(...e)}exists(...e){var r;return(r=this.translator)==null?void 0:r.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
vendor: 4,233 bytes, line 1532
1532if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const o=(l,u)=>{const d=this.services.backendConnector.state[`${l}|${u}`];return d===-1||d===0||d===2};if(r.precheck){const l=r.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(n,e)&&(!i||o(a,e)))}loadNamespaces(e,r){const n=rc();return this.options.ns?(_e(e)&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}loadLanguages(e,r){const n=rc();_e(e)&&(e=[e]);const i=this.options.preload||[],a=e.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return a.length?(this.options.preload=i.concat(a),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}dir(e){var i,a;if(e||(e=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!e)return"rtl";try{const o=new Intl.Locale(e);if(o&&o.getTextInfo){const l=o.getTextInfo();if(l&&l.direction)return l.direction}}catch{}const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=((a=this.services)==null?void 0:a.languageUtils)||new dM(A0());return e.toLowerCase().indexOf("-latn")>1?"ltr":r.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},r){const n=new bc(e,r);return n.createInstance=bc.createInstance,n}cloneInstance(e={},r=kf){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},a=new bc(i);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n){const l=Object.keys(this.store.data).reduce((u,d)=>(u[d]={...this.store.data[d]},u[d]=Object.keys(u[d]).reduce((h,m)=>(h[m]={...u[d][m]},h),u[d]),u),{});a.store=new cM(l,i),a.services.resourceStore=a.store}if(e.interpolation){const u={...A0().interpolation,...this.options.interpolation,...e.interpolation},d={...i,interpolation:u};a.services.interpolator=new pM(d)}return a.translator=new im(a.services,i),a.translator.on("*",(l,...u)=>{a.emit(l,...u)}),a.init(i,r),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ft=bc.createInstance();ft.createInstance;ft.dir;ft.init;ft.loadResources;ft.reloadResources;ft.use;ft.changeLanguage;ft.getFixedT;ft.t;ft.exists;ft.setDefaultNamespace;ft.hasLoadedNamespace;ft.loadNamespaces;ft.loadLanguages;const Rle="NextPrimus",Mle="Investment Intelligence",Lle={brand:Rle,tagline:Mle,"nav.analyze":"Start Analysis","nav.top100":"Top 20","nav.watchlist":"Watchlist","nav.market":"Market","nav.discover":"Discover","nav.compounders":"Compounders","nav.trail":"Trail","nav.journal":"Journal","nav.menu":"Menu","nav.language":"Language","auth.logIn":"Log in","auth.logOut":"Log out","auth.loginTitle":"Sign in","auth.loginSubtitle":"Sign in with Google, or use Editor email, password, and voucher code.","auth.email":"Email","auth.password":"Password","auth.submit":"Sign in","auth.cancel":"Cancel","auth.close":"Close","auth.editorLabel":"Editor {{name}}","auth.welcomeEditor":"Welcome Editor {{name}}","auth.hint":"Google accounts sign in as Reader unless allowlisted. Editor password login also requires the voucher co
1532de.","auth.readerLocalHint":"Signed in as Reader. Watchlist and likes stay in this browser.","auth.editorOnly":"New analyses require an Editor account.","auth.watchlistLogin":"Sign in as Reader or Editor to use your watchlist.","hero.title":"Follow the Trail of Market Primus","hero.subtitle":"Macro · Sector · Trend · Compounder Intelligence","hero.cta":"Analyze a Mega Cap","hero.ctaMarket":"Explore Today's Market","hero.ctaCompounders":"Explore Compounders","hero.photoCredit":"Beautiful photo by","hero.topPick":"Today's Top Pick","hero.koreanLead":"We follow companies that could become tomorrow's market titans in US equities.","magazine.seo.homeTitle":"NextPrimus â US Stock Market Intelligence","magazine.seo.homeDescription":"An AI-powered US stock intelligence magazine tracking macro trends, sector leadership, company quality, and trend reversals.","magazine.seo.marketTitle":"NextPrimus | Market Intelligence","magazine.seo.marketDescription":"Today's market regime, weekly market story, and sector rotation for US equities.","magazine.seo.trailTitle":"NextPrimus | Trail â Momentum & Trend Compounders","magazine.seo.trailDescription":"Prime Movers and Trend Compounder Radar â where quality meets trend reversal.","magazine.seo.compoundersTitle":"NextPrimus | Compounders","magazine.seo.compoundersDescription":"Prime Trail watchlist, Mega Cap quality, and AI audit insights behind the numbers.","magazine.seo.journalTitle":"NextPrimus | Investment Journal","magazine.seo.journalDescription":"Editor-approved market notes â what we're watching, what changed, and what we're not doing.","journal.hubTitle":"Investment Journal","journal.hubLead":"Editor-approved notes on regime, watchlist names, and decision context â never auto-published.","journal.archiveTitle":"Journal archive","journal.archiveSubtitle":"Published entries only.","journal.empty":"No published journal entries yet.","journal.emptyAdmin":"No drafts or published entries yet.","journal.defaultTitle":"Investment Journal","journal.regime":"Market Regime","journal.watching":"What I'm Watching","journal.whatChanged":"What Changed","journal.whatImNotDoing":"What I'm Not Doing","journal.myStrategy":"My Strategy","journal.nextReview":"Next Review","journal.backToArchive":"Back to Journal","journal.readEntry":"Read entry","journal.notFound":"Journal entry not found.","journal.manage":"Manage Journal","journal.manageLead":"Draft, review, and publish Journal entries. AI does not auto-publish.","journal.newEntry":"New entry","journal.editEntry":"Edit entry","journal.entries":"Entries","journal.saveDraft":"Save draft","journal.saveAiDraft":"Save AI-assisted Draft","journal.aiDraftRunning":"Writing AI draftâ¦","journal.aiDraftSaved":"AI-assisted draft saved (not published).","journal.aiDraftHint":"AI expands your notes with Perplexity research + GPT polish. Does not invent scores or auto-publish.","journal.publish":"Publish","journal.unpublish":"Unpublish","journal.delete":"Delete","journal.confirmDelete":"Delete this journal entry?","journal.prefill":"Prefill from Strategy","journal.prefilled":"Regime and watching tickers prefilled from Strategy cache.","journal.saved":"Draft saved.","journal.created":"Draft created.","journal.published":"Entry published.","journal.unpublished":"Entry unpublished.","journal.deleted":"Entry deleted.","journal.fieldDate":"Entry date","journal.fieldLang":"Language","journal.fieldTitle":"Title","journal.fieldRegimeScore":"Regime score","journal.fieldRegimeLabel":"Regime label","journal.fieldWatching":"Watching tickers","journal.watchingLimit":"Select up to {{count}} tickers","journal.maxWatchingTickers":"You can select up to {{count}} watching tickers.","journal.compounderWatch":"Compounder Watch","journal.tickerSignals":"Selected ticker TRP · Signal","journal.loadingTickerSignals":"Loading cached Strategy metricsâ¦","journal.tickerSignalUnavailable":"No cached TRP · Signal data is available.","magazine.prime.title":"Today's Prime","magazine.prime.subtitle":"Market regime, macro context, and the story shaping today's tape.","magazine.prime.regimeIdle":"Market Regime not cached yet. Editor refresh may be required.","magazine.prime.storyLabel":"Today's Market Story","magazine.prime.storyIdle":"Weekly market story not available yet.","magazine.prime.readStory":"Read Market Story","magazine.prime.highlight":"Highlight","magazine.story.title":"Market Story","magazine.story.subtitle":"Weekly US market intelligence across Market, AI, and Rates.","magazine.story.idle":"No market story edition is available yet.","magazine.movers.title":"Prime Movers","magazine.movers.subtitle":"Momentum and trend acceleration â not a simple return ranking.","magazine.movers.empty":"Prime Mover data is not available yet.","magazine.radar.title":"Trend Compounder Radar","magazine.radar.subtitle":"Where quality companies meet rising trend reversal.","magazine.radar.empty":"Strategy radar data is not available yet.","magazine.radar.why":"Why We're Watching","magazine.radar.viewAll":"Open Strategy Dashboard","magazine.sector.title":"Sector Rotation","magazine.sector.subtitle":"Relative strength and short-term leadership across US sectors.","magazine.sector.empty":"Sector quotes are not cached yet.","magazine.watch.title":"Compounder Watch","magazine.watch.subtitle":"Editor-curated quality names with PrimeHealth and relative strength.","magazine.watch.empty":"No curated compounders yet.","magazine.audit.title":"Behind the Numbers","magazine.audit.subtitle":"AI reviews accounting quality, cash flow, and financial risk.","magazine.audit.empty":"No audit reports yet.","magazine.hub.marketLead":"Understand what is happening in US markets right now.","magazine.hub.trailLead":"Follow where attention and rising trends are moving.","magazine.hub.compoundersLead":"Find companies worth tracking for the long term.","magazine.refresh":"Refresh","magazine.viewDiscover":"Open Discover","magazine.viewStrategy":"Open Strategy","magazine.viewMacro":"Open Macro","dashboard.macro":"Macro Dashboard","dashboard.macroSub":"Five core indicators shaping US equity markets","dashboard.news":"Market News Intelligence","dashboard.newsSub":"Weekly AI summary of market, AI, and rate news","dashboard.topPicks":"Top 5 Strong Momentum Stocks","dashboard.featured":"Prime Trail Top 20","dashboard.featuredSub":"NextPrimus Editor Jun's watchlist â P/E · RS · PrimeHealth","featured.editorHint":"Search by ticker or company name, or upload a portfolio screenshot (max 20).","featured.searchPlaceholder":"e.g. PLTR, Palantir","featured.add":"Add to list","featured.adding":"Addingâ¦","featured.pickCompany":"Select a company from search results.","featured.limitReached":"You can add up to 20 stocks.","featured.addFailed":"Failed to add stock.","featured.removeFailed":"Failed to remove stock.","featured.remove":"Remove {{ticker}}","featured.count":"{{count}} / {{max}} stocks","featured.emptyPublic":"No curated stocks yet.","featured.emptyEditor":"Add stocks via search or image upload to display them here.","featured.imageUploadTitle":"Import from portfolio screenshot","featured.imageUploadHint":"Upload a brokerage portfolio list (Korean or English). GPT extracts tickers for your review.","featured.imageUploadButton":"Cho
1532ose image","featured.imageExtracting":"Extractingâ¦","featured.imageExtractFailed":"Failed to extract tickers from image.","featured.imageReviewHint":"Review extracted tickers and select which to add:","featured.imageUnresolved":"Could not resolve","featured.imagePickOne":"Select at least one ticker to add.","featured.imageSlotsExceeded":"Only {{slots}} slot(s) remaining.","featured.imageAddSelected":"Add {{count}} selected","featured.bulkSkipped":"{{count}} item(s) skipped (duplicate or limit).","dashboard.topPicksSub":"Growth · Momentum · Quality · Sentiment â Risk â PrimeScore rankings from audited Mega Cap leaders","dashboard.topPicksRefresh":"Refresh rankings","dashboard.megaCap":"US Mega Cap Top 20","dashboard.megaCapSub":"Price flow, relative strength vs SPY, PrimeScore, and PrimeHealth (accounting quality)","dashboard.sector":"US Sector Top 24","dashboard.sectorSub":"Six sectors à four leaders â Technology, Communication Services, Healthcare, Financial, Consumer, Industrial","macro.empty":"Macro data unavailable. Configure FRED_API_KEY and refresh.","macro.fredOpenOnFred":"Open {{title}} on FRED","macro.fredAxisPercent":"Percent","macro.fredAxisIndex":"Index","macroAnalysis.title":"Macro Analysis","macroAnalysis.back":"Back to dashboard","macroAnalysis.currentReading":"Current reading","macroAnalysis.asOf":"As of","macroAnalysis.percentile5y":"5Y Percentile","macroAnalysis.marketRegime":"Market Regime","macroAnalysis.titanView":"PrimeView","macroAnalysis.impact":"Impact","macroAnalysis.chartTrend":"Trend","macroAnalysis.range1Y":"1Y","macroAnalysis.range5Y":"5Y","macroAnalysis.range10Y":"10Y","macroAnalysis.rangeMax":"Max","macroAnalysis.chartLoading":"Loading chartâ¦","macroAnalysis.noChart":"No chart data available.","macroAnalysis.memo":"Macro Intelligence","macroAnalysis.generate":"Generate report","macroAnalysis.generateFirst":"Generate first report","macroAnalysis.generateAll":"Generate all macro reports","macroAnalysis.generateFailed":"Failed to generate report.","macroAnalysis.copyMd":"Copy Markdown","macroAnalysis.copied":"Copied!","macroAnalysis.downloadMd":"Download .md","macroAnalysis.reportList":"Report archive","macroAnalysis.filterAll":"All indicators","macroAnalysis.listEmpty":"No macro reports yet.","macroAnalysis.col.date":"Date","macroAnalysis.col.indicator":"Indicator","macroAnalysis.col.regime":"Regime","macroAnalysis.col.view":"PrimeView","macroAnalysis.col.report":"Report","macroAnalysis.openReport":"Open","macroAnalysis.empty":"No macro analysis report for this indicator yet.","macroAnalysis.loadFailed":"Failed to load macro report.","macroAnalysis.notFound":"Report not found.","macroAnalysis.invalidIndicator":"Unknown macro indicator.","news.market.title":"Weekly Market Intelligence","news.market.empty":"Market news summary unavailable.","news.category.market":"Market","news.category.ai":"AI","news.category.rates":"Rates","news.intelligence.title":"Market News Intelligence","news.intelligence.back":"Back to dashboard","news.intelligence.insightTitle":"Weekly Market Insight","news.intelligence.archive":"Archive","news.intelligence.archiveEmpty":"No past editions yet.","news.intelligence.viewArchive":"View archive","news.intelligence.empty":"No weekly editions yet.","news.intelligence.generate":"Generate this week","news.intelligence.generateFirst":"Generate first edition","news.intelligence.generateFailed":"Failed to generate market news.","news.intelligence.loadFailed":"Failed to load market news.","news.intelligence.notFound":"Edition not found.","market.col.company":"Company","market.col.price":"Price","market.col.marketCap":"Mkt cap","market.col.pe":"P/E","market.col.change":"1Y Change","market.col.rs":"RS vs SPY","market.col.risk":"Risk","market.col.titanHealth":"PrimeHealth","market.col.titanScore":"PrimeScore","market.col.watch":"Watch","market.stale":"Some quotes are updating from cache.","market.remainingQuotes":"{{count}} symbols remain (Alpha Vantage free tier). The next batch loads in about a minute.","market.loadingMore":"(loading moreâ¦)","market.loadMore":"Load more quotes","market.loadingBatch":"Loading market quotesâ¦","market.analyze":"Analyze","market.sort.asc":"Sort ascending","market.sort.desc":"Sort descending","market.sectorShare":"{{pct}}% of sector mkt cap","watchlist.title":"Your Watchlist","watchlist.subtitle":"Track long-term quality stocks with price trends and PrimeHealth","wat
1532chlist.add":"Add to Watchlist","watchlist.remove":"Remove","watchlist.watching":"Watching","watchlist.empty":"No stocks in your watchlist yet.","watchlist.explore":"Explore Dashboard","watchlist.viewReport":"View Audit Report","sector.technology":"Technology","sector.healthcare":"Healthcare","sector.financial":"Financial","sector.consumer":"Consumer","sector.industrial":"Industrial","sector.communicationServices":"Communication Services","charts.price.title":"Price & Macro Overlay","admin.dashboard":"Admin Intelligence Dashboard","admin.dashboardHint":"Cached data loads automatically · Editors can refresh from source APIs","dashboard.idle":"No cached data for this section yet. Editors can fetch the latest using the button on the right.","dashboard.fetchEditorOnly":"Editor login required to fetch the latest data","dashboard.source":"Source","dashboard.fetchedAt":"Updated","dashboard.fetch.fred":"Fetch latest from FRED","dashboard.fetch.perplexity":"Fetch latest from Perplexity","dashboard.fetch.alphavantage":"Fetch latest market quotes","market.fetchError":"Failed to load market quotes. Check Alpha Vantage / Finnhub API keys and rate limits.","reports.selectAnalyze":"Select stock & risk analysis","reports.pickerTitle":"Select a Mega Cap stock","reports.runAnalysis":"Run risk analysis","reports.cancel":"Cancel","reports.emptyAdmin":"No audit reports yet. Use [Select stock & risk analysis] to analyze a company.","reports.title":"Latest Risk Reports","reports.subtitle":"Pre-computed AI audit memos for Mega Cap leaders","reports.empty":"No reports yet. Run your first analysis.","reports.cta":"Start First Analysis","stats.views":"Total Views","stats.reportReads":"Report reads","stats.downloads":"Downloads","stats.shares":"Shares","nexus.siteViews":"Site views","nexus.siteViewsHint":"Unique page visits across NextPrimus","nexus.trafficTrend":"Traffic trend (7 days)","nexus.adminTitle":"Traffic dashboard","nexus.adminSubtitle":"Page views, entity breakdown, and content performance","nexus.adminLink":"Traffic dashboard","nexus.editorRequired":"Editor login is required to view traffic analytics.","nexus.exportCsv":"Export CSV (30d)","nav.home":"Home","analyze.title":"Company Risk Analysis","analyze.subtitle":"Search within the US Mega Cap Top 20 universe","analyze.searchLabel":"Ticker or company name","analyze.searchPlaceholder":"e.g. NVDA, Apple, Tesla","analyze.searching":"Searching...","analyze.selected":"Selected","analyze.uploadPhase2":"SEC filing upload (Phase 2)","analyze.uploadHint":"PDF, XBRL â coming soon","analyze.start":"Run Analysis","analyze.errorEmpty":"Enter or select a company from the Top 20 list.","analyze.errorGeneric":"Analysis failed. Please try again.","report.notFound":"Report not found.","report.newAnalysis":"New Analysis","report.riskScore":"Risk Score","report.titanHealth":"PrimeHealth","report.titanScore":"PrimeScore","report.summary":"Risk Summary","report.auditMemo":"AI Audit Memo","report.anomalies":"Anomaly Heatmap","report.news":"News & Market Context","report.metrics":"Financial Metrics","report.print":"Print / PDF","report.share":"Share","report.like":"Like","report.back":"All Reports","risk.high":"High Risk","risk.medium":"Caution","risk.low":"Stable","loading.fetching":"Fetching SEC & market data...","loading.calculating":"Computing Beneish, Altman, FCF...","loading.analyzing":"GPT audit memo generation...","footer.developed":"Developed by NextPlatform","footer.updated":"Last Updated","footer.scope":"NextPrimus · Macro · Sector · Audit · Compounder Intelligence · NextPlatform","metrics.beneish.label":"Beneish M-Score","metrics.beneish.info":"Detects potential earnings manipulation using eight financial ratios. Values above -2.22 suggest a higher risk of creative accounting.","metrics.beneish.hint.manipulator":"Manipulator signal","metrics.beneish.hint.normal":"Normal","metrics.altman.label":"Altman Z-Score","metrics.altman.info":"Measures bankruptcy risk from liquidity, profitability, leverage, and activity. Above 2.99 is generally safe; below 1.81 indicates distress.","metrics.altman.zone.safe":"safe","metrics.altman.zone.grey":"grey zone","metrics.altman.zone.distress":"distress","metrics.debtRatio.label":"Debt Ratio","metrics.debtRatio.info":"Total liabilities divided by total assets. Higher leverage increases solvency and refinancing risk.","metrics.debtRatio.hint":"Liabilities / Assets","metrics.ocfNi.label":"OCF / NI","metrics.ocfNi.info":"Operating cash flow relative to net income. Values near or above 1.0 indicate stronger cash-backed earnings quality.","metrics.ocfNi.hint":"Cash earnings quality","metrics.compare.line":"Top 20 avg: {{avg}} · {{relation}}","metrics.compare.better":"{{diff}} better than avg","metrics.compare.worse":"{{diff}} worse than avg","metrics.compare.inLine":"in line with avg","charts.radar.liquidity":"Liquidity","charts.radar.profitability":"Profitability","charts.radar.leverage":"Leverage","charts.radar.growth":"Growth","charts.radar.cashFlow":"Cash Flow","charts.radar.series":"Financial stability","charts.cashflow.title":"Cash Flow","charts.cashflow.operating":"Operating CF","charts.cashflow.investing":"Investing CF","charts.cashflow.financing":"Financing CF","charts.cashflow.fcf":"FCF","charts.debt.title":"Debt Structure","charts.debt.shortTerm":"Short-term debt","charts.debt.longTerm":"Long-term debt","charts.debt.equity":"Equity","charts.heatmap.empty":"No anomaly data","severity.low":"Low","severity.medium":"Medium","severity.high":"High","top100.empty":"No ranked stocks yet. Run an analysis to build PrimeScore rankings.","top100.viewAll":"View full Top 20 â","top100.loadMore":"Load more","top100.pageTitle":"Top 20 AI Momentum Stocks","top100.pageSubtitle":"PrimeScore rankings for the Mega Cap Top 20 universe â Growth · Momentum · Quality · Sentiment â Risk","top100.filter.grade":"Grade","to
1532p100.filter.titanStatus":"TitanStatus","top100.filter.theme":"Theme","top100.filter.allGrades":"All grades","top100.filter.allStatuses":"All statuses","top100.filter.allThemes":"All themes","top100.showing":"Showing {{count}} of {{total}} stocks","top100.col.rank":"Rank","top100.col.company":"Company","top100.col.theme":"Theme","top100.col.titanScore":"PrimeScore","top100.col.grade":"Grade","top100.col.titanStatus":"TitanStatus","titan.grade.elite":"Titan Elite","titan.grade.strongBuy":"Strong Buy","titan.grade.buy":"Buy","titan.grade.hold":"Hold","titan.grade.weak":"Weak","titan.status.leaders":"Leaders","titan.status.challengers":"Challengers","titan.status.drifters":"Drifters","titan.status.relics":"Relics","titan.breakdown.title":"PrimeScore Breakdown","titan.breakdown.growth":"Growth","titan.breakdown.momentum":"Momentum","titan.breakdown.quality":"Quality","titan.breakdown.sentiment":"Sentiment","titan.breakdown.risk":"Risk","titan.breakdown.formula":"PrimeScore = 25% Growth + 30% Momentum + 20% Quality + 15% Sentiment â 10% Risk","titan.breakdown.unavailable":"Detailed sub-scores are available after a new analysis run with PrimeScore v2.","titan.report.dualHint":"PrimeScore = long-term outperform potential · PrimeHealth = accounting quality","sector.titanLeader":"Titan Leader","sector.refresh":"Refresh sector quotes","strategy.pageTitle":"Trend Compounder","strategy.pageSubtitle":"PrimeScore + TRP + Market Regime + Position Sizing â compounders in reversal with market confirmation.","strategy.ctaTitle":"Trend Compounder Strategy","strategy.ctaSubtitle":"Find quality companies transitioning into uptrends with progressive position sizing guidance.","strategy.ctaButton":"Open Strategy Dashboard","strategy.refresh":"Refresh strategy data","strategy.refreshing":"Refreshingâ¦","strategy.staleHint":"Partial refresh â API rate limits may defer some tickers.","strategy.filterSignal":"Signal","strategy.filterSector":"Sector","strategy.filterAll":"All","strategy.noData":"Strategy data not available. Editor refresh may be required.","strategy.backToDashboard":"Back to Strategy","strategy.signal":"Signal","strategy.position":"Position","strategy.confidence":"Confidence","strategy.targetWeight":"Target weight","strategy.viewDetail":"View detail","strategy.viewReport":"View risk report","strategy.summaryTitle":"Trend Compounder Signal","strategy.summarySubtitle":"TRP reversal pulse with position tier recommendation","strategy.detailSubtitle":"PrimeScore, TRP velocity, and position guidance for this ticker.","strategy.chartTitle":"{{symbol}} price chart","strategy.chartRange":"6M · Daily","strategy.chartCaption":"Chart by TradingView. Default view: last 6 months of daily candles with Volume, EMA 20/50/100/200, and MACD (momentum companion). Change range or interval in the widget if needed.","strategy.chartUnavailable":"Chart symbol is unavailable.","strategy.chartLoadError":"TradingView chart could not be loaded. Check your network connection and try again.","strategy.historyTitle":"Signal History","strategy.historySubtitle":"Last {{days}} days · {{count}} snapshots","strategy.historyEmpty":"Not enough snapshots yet. Refresh this ticker on different days to build a real history.","strategy.historyScores":"PrimeScore · TRP · Market Regime","strategy.historyVelocity":"Velocity (7d)","strategy.historySignal":"Signal","strategy.historyPrime":"PrimeScore","strategy.historyTrp":"TRP","strategy.historyRegime":"Market Regime","auth.signInWithGoogle":"Continue with Google","auth.firebaseNotConfigured":"Firebase is not configured. Add VITE_FIREBASE_* to your environment.","auth.editorOnlyGoogle":"Editor actions require an allowlisted Google account.","nav.intro":"About","intro.seoTitle":"NextPrimus | About â Investment Intelligence","intro.seoDescription":"From investment data to investment intelligence â how NextPrimus helps investors judge faster and deeper with AI.","intro.eyebrow":"Investment Intelligence","intro.heroHeadline":"From Investment Data to Investment Intelligence","intro.heroLead":"Not an AI that invests for you â an AI intelligence service that helps you judge faster and deeper.","intro.ctaMarket":"Explore the market","intro.ctaJournal":"Read Journal","intro.ctaHome":"Back to home","intro.quote":"Investors donât need more information. They need context.","intro.quoteSupport":"What matters, how it connects, and what it means for your judgment â that is where NextPrimus begins.","intro.problemEyebrow":"01 · The problem","intro.problemTitle":"More data isnât the answer. Context is.","intro.problemBody1":"Earnings, indicators, sector news, broker notes, flows, global headlines, price and volume â the list never stops growing. The issue is rarely a shortage of information.","intro.problemBody2":"In a flood of signals, it becomes hard to know what matters, how pieces relate, and what they mean for the decision in front of you.","intro.problemQuestion":"âSo how should I look at this company right now?â","intro.valueEyebrow":"02 · Core value","intro.value1Title":"Connect scattered data into one point of view","intro.value1Body":"NextPrimus is not a price-only product. Market data, company fundamentals, news, industry context, and investor flows are linked into a single investment narrative.","intro.value1Points":["What is the recent price trend?","How are volume and flows changing?","Are sales and operating profit improving?","Is the core business growing?","Where is the industry heading?","What news actually matters?","How is the market pricing the future?"],"intro.value1Close":"Not one datapoint â the relationships between datapoints.","intro.value2Title":"AI that turns complexity into clear language","intro.value2Body":"We donât stop at âoperating profit rose 35% YoY.â We ask why it improved, whether the change is structural, how it compares to expectations, and which variables still matter.","intro.value2Close"
1532:"From summarizing information to understanding investment context.","intro.featuresEyebrow":"03 · Capabilities","intro.featuresTitle":"What NextPrimus helps you see","intro.featuresLead":"Four lenses â market, company, signal, and research â that keep judgment in the investorâs hands.","intro.feature1Title":"AI Market Intelligence","intro.feature1Body":"Indicators, price action, volume, flows, and major news are combined so you can see what matters in todayâs market at a glance.","intro.feature2Title":"AI Company Intelligence","intro.feature2Body":"Basics, price & volume, financials, growth, profitability, valuation, news, industry, thesis, and risks â connected to answer: what is changing in this company now?","intro.feature3Title":"Investment Signal","intro.feature3Body":"Volume spikes, trend shifts, flow changes, earnings revisions, policy moves, and events surface as signals worth a second look â not auto buy/sell orders.","intro.feature4Title":"AI Investment Research","intro.feature4Body":"Ask in natural language: Is the improvement structural? How does valuation compare to history? What changed in the last month? AI gathers and frames the context.","intro.diffEyebrow":"04 · Difference","intro.diffTitle":"Not a stock-picking chatbot","intro.diffBody":"Instead of âbuy this,â NextPrimus focuses on why a name is in focus, which data supports the idea, and which risks cut the other way.","intro.diffClose":"Recommendation less. Intelligence more.","intro.assistantEyebrow":"05 · Direction","intro.assistantTitle":"Your personal AI research assistant","intro.assistantBody":"You set names and themes of interest. AI keeps watching. When something important shifts â earnings beats, multi-day foreign buying, policy changes, a shift in news tone â it brings the signal to you.","intro.assistantClose":"From hunting every feed yourself to having AI bring what matters.","intro.archEyebrow":"06 · Architecture","intro.archTitle":"Agent-based investment intelligence","intro.archBody":"Not a single chatbot answer â specialized agents collect, analyze, validate, and synthesize across market, company, news, financials, and signals.","intro.archFlow":["Mar
1532ket Data","Data Collection Agents","Financial / News / Industry / Technical Analysis","AI Research Agents","Cross Validation","Investment Intelligence","Investor"],"intro.agentMarket":"Market Agent","intro.agentMarketDesc":"Tracks market-wide moves and key indicators.","intro.agentCompany":"Company Agent","intro.agentCompanyDesc":"Analyzes financial and business changes for each firm.","intro.agentNews":"News Agent","intro.agentNewsDesc":"Collects events and filters what is material.","intro.agentFinancial":"Financial Agent","intro.agentFinancialDesc":"Reads performance and valuation context.","intro.agentSignal":"Signal Agent","intro.agentSignalDesc":"Detects meaningful shifts in market data.","intro.agentResearch":"Research Agent","intro.agentResearchDesc":"Synthesizes findings into investor-ready language.","intro.closingTagline":"From Investment Data to Investment Intelligence","intro.closingBody":"The edge is no longer collecting more feeds. It is spotting important change and understanding what it means.","intro.closingQuestions":["What is changing in the market right now?","Which companies and industries does that change touch?","What does that change mean for an investor?"],"intro.closingFinal":"AI does not replace the investor. It helps the investor judge better.","intro.disclaimer":"Information and analysis on NextPrimus are for reference only. They are not investment advice and do not guarantee returns or recommend buying or selling any security.","auth.orEditor":"Or Editor email","auth.voucherCode":"Voucher code","auth.editorSignIn":"Editor sign in","journal.authorTitle":"About the author","journal.authorName":"Jun","journal.authorEmail":"[email protected]","journal.authorBio":"AI·í´ë¼ì°ë ìí¤í í¸ì´ì AI ìëì ìµì íë í¬ì ìì¬ê²°ì ì§ììì¤í ë¹ë. NextPlatformì íµí´ AI·í´ë¼ì°ë 기ì ì ì°êµ¬íê³ ì¤ë¬´ì ì ì©íë©°, NextPrimus를 íµí´ ìì¥Â·ê¸°ì ·ì°ì ë°ì´í°ë¥¼ AIë¡ ì°ê²°í´ í¬ììê° ë ë¹ ë¥´ê³ ê¹ì´ ìê² íë¨í ì ìë Investment Intelligence íê²½ì ë§ë¤ì´ê°ê³ ììµëë¤.","journal.authorBioChaewon":"NextPrimus Editor. Helps shape Investment Intelligence content so investors can judge markets and companies with more clarity and speed.","intro.glossaryEyebrow":"07 · Glossary","intro.glossaryTitle":"NextPrimus Glossary","intro.glossaryLead":"Core terms you will see across Market, Compounders, Journal, and Strategy â explained for first-time visitors.","intro.glossaryItems":[{term:"Market Regime",body:`A 0â100 score summarizing whether the overall stock market favors risk-taking (Risk-on) or caution (Risk-off). 1533 1534Unlike PrimeScore (which rates a single company), Market Regime asks: is the market environment itself constructive for equity exposure right now? 1535 1536NextPrimus blends S&P 500 and Nasdaq trend, VIX, market breadth, interest rates, a credit placeholder, and sector leadership into a weighted score, then maps it to labels: RISK_ON (80+), BULLISH (65â79), NEUTRAL (50â64), CAUTION (35â49), RISK_OFF (below 35). 1537 1538Example: 57 / 100 sits in NEUTRAL â neither clear bull nor clear risk-off. Investors may still find opportunities, but full aggression (large sizing, leverage) is usually less justified than in BULLISH or RISK_ON regimes. In the product, Regime mainly conditions signals and position sizing rather than rewriting rankings.`},{term:"PrimeScore",body:`A company-level quality and attractiveness score (0â100) that combines growth, momentum, quality, sentiment, and risk into one grade. 1539 1540Grades run from ELITE and STRONG through ATTRACTIVE and WATCH down to WEAK. It answers âhow strong is this name as a long-horizon compounder candidate?â â not âbuy or sell today.â 1541 1542When an audit report exists, PrimeScore is derived from Titan sub-scores; otherwise a price/momentum fallback is used so the Strategy universe stays complete.`},{term:"TRP (Trend Reversal Potential)",body:`A 0â100 score estimating how constructive a stockâs price structure and momentum look for trend continuation or recovery. 1543 1544It blends short- and medium-term slope, higher-low structure, distance from recent lows, moving-average stacking, RSI, and returns. Phases such as EARLY, CONFIRMED, and STRONG describe how advanced that setup is. 1545 1546TRP focuses on path and timing of the chart; PrimeScore focuses on business quality. Together they separate âgood companyâ from âimproving setup.â`},{term:"Compounder",body:`A business that can compound shareholder value over a long horizon through durable growth, returns on capital, and reinvestment â not a short-term trade. 1547 1548NextPrimus âTrend Compounderâ screens and ranks names using PrimeScore, TRP, Market Regime, and related signals so investors can follow a trail of high-quality leaders rather than chase noise. 1549 1550Compounder Watch on Journal and landing surfaces is the curated short list of those names under review.`},{term:"Prime Signal",body:`An actionable status that combines PrimeScore, TRP (and its velocity), and Market Regime into labels such as EARLY_ENTRY, CONFIRMED_ENTRY, HOLD, REDUCE, or EXIT. 1551 1552It is a decision frame â what deserves a second look, what to build, what to trim â not an automated buy/sell order. 1553 1554Reasons attached to each signal (for example low PrimeScore or fading TRP momentum) keep the âwhyâ visible so judgment stays with the investor.`},{term:"Position Sizing",body:`How large a portfolio weight the system suggests for a name, given its PrimeScore, Prime Signal, and a maximum single-position cap. 1555 1556Tiers such as WATCH, START, BUILD, CORE, and MAX describe conviction bands. Stronger quality and signals allow larger suggested weights;
1556 weaker setups stay small or observational. 1557 1558Sizing turns intelligence into risk discipline: even a high-PrimeScore name should not dominate the book when Regime or Signal argue for caution.`}],"glossary.infoAria":"Open {{term}} in the NextPrimus Glossary","glossary.terms.market-regime":"Market Regime","glossary.terms.primescore":"PrimeScore","glossary.terms.trp":"TRP","glossary.terms.compounder":"Compounder","glossary.terms.prime-signal":"Prime Signal","glossary.terms.position-sizing":"Position Sizing","strategy.rebuiltHint":"Ranking rebuilt from cached ticker snapshots. Run an Editor refresh when quote APIs are healthy for a full update.","strategy.emptyNeedsRefresh":"No ranked tickers in cache. Open a few ticker detail pages or run Editor âRefresh strategy dataâ when market quote APIs are available.","strategy.emptyQuoteLimited":"Refresh produced no rankings â market quote APIs may be rate-limited. Wait and retry Editor refresh, or open individual tickers (e.g. /strategy/MSFT) to seed caches.","strategy.emptyFiltered":"No tickers match the current signal/sector filters.","nav.alerts":"Alerts","alerts.pageTitle":"Market Alerts","alerts.pageSubtitle":"Bottom-reversal watches (TRP/Signal + Squeeze/EMA) and SKY FALL breadth warnings for the alert universe.","alerts.empty":"No alerts yet. The daily alert-scan cron will populate this feed when signals fire.","alerts.loadError":"Could not load alerts.","alerts.bottomReversal":"Bottom reversal","alerts.viewTicker":"Open strategy chart","alerts.universeTitle":"Watch universe","alerts.return5d":"5d return","alerts.squeezeUp":"Squeeze turning up","alerts.emaStretch":"EMA stretch"},Dle="NextPrimus",$le="Investment Intelligence",Fle={brand:Dle,tagline:$le,"nav.analyze":"ë¶ì ìì","nav.top100":"Top 20","nav.watchlist":"ìì¹ë¦¬ì¤í¸","nav.market":"Market","nav.discover":"Discover","nav.compounders":"Compounders","nav.trail":"Trail","nav.journal":"Journal","nav.menu":"ë©ë´","nav.language":"ì¸ì´","auth.logIn":"ë¡ê·¸ì¸","auth.logOut":"ë¡ê·¸ìì","auth.loginTitle":"ë¡ê·¸ì¸","auth.loginSubtitle":"Googleë¡ ë¡ê·¸ì¸íê±°ë, Editor ì´ë©ì¼Â·ë¹ë°ë²í¸Â·ë°ì°ì² ì½ë를 ì¬ì©íì¸ì.","auth.email":"ì´ë©ì¼","auth.password":"ë¹ë°ë²í¸","auth.submit":"ë¡ê·¸ì¸","auth.cancel":"ì·¨ì","auth.close":"ë«ê¸°","auth.editorLabel":"Editor {{name}}","auth.welcomeEditor":"Editor {{name}}ë, íìí©ëë¤","auth.hint":"ì¼ë° Google ê³ì ì Readerì ëë¤. Editor ë¹ë°ë²í¸ ë¡ê·¸ì¸ìë ë°ì°ì² ì½ëê° íìí©ëë¤.","auth.readerLocalHint":"Readerë¡ ë¡ê·¸ì¸ë¨. ê´ì¬ì¢ 목·íëì ì´ ë¸ë¼ì°ì ìë§ ì ì¥ë©ëë¤.","auth.editorOnly":"ì ë¶ìì Editor ê³ì ì´ íìí©ëë¤.","auth.watchlistLogin":"ìì¹ë¦¬ì¤í¸ë¥¼ ì¬ì©íë ¤ë©´ Reader ëë Editorë¡ ë¡ê·¸ì¸íì¸ì.","hero.title":"Follow the Trail of Market Primus","hero.subtitle":"Macro · Sector · Trend · Compounder Intelligence","hero.cta":"ë©ê°ìº¡ ë¶ìí기","hero.ctaMarket":"ì¤ëì ìì¥ ì´í´ë³´ê¸°","hero.ctaCompounders":"Compounders ì´í´ë³´ê¸°","hero.photoCredit":"Beautiful photo by","hero.topPick":"ì¤ëì Top Pick","hero.koreanLead":"ë¯¸êµ ì¦ììì ë¤ì ìì¥ì ê±°ì¸ì´ ë 기ì ì ì°¾ìê°ëë¤.","magazine.seo.homeTitle":"NextPrimus â US Stock Market Intelligence","magazine.seo.homeDescription":"매í¬ë¡, ì¹í° 리ëì, 기ì íì§ê³¼ ì¶ì¸ ë³í를 ì¶ì í´ ë¤ì Compounder를 ë°ê²¬íë AI í¬ì ì¸ì¬ì´í¸ 매거ì§.","magazine.seo.marketTitle":"NextPrimus | Market Intelligence","magazine.seo.marketDescription":"ì¤ëì ìì¥ ë ì§, ì£¼ê° ë§ì¼ ì¤í 리, ì¹í° ë¡í ì´ì .","magazine.seo.trailTitle":"NextPrimus | Trail â Momentum & Trend Compounders","magazine.seo.trailDescription":"Prime Moversì Trend Compounder Radar â íì§ê³¼ ì¶ì¸ ì íì´ ë§ëë ì§ì .","magazine.seo.compoundersTitle":"NextPrimus | Compounders","magazine.seo.compoundersDescription":"Prime Trail ê´ì¬ ì¢ ëª©, Mega Cap íì§, Behind the Numbers ê°ì¬ ì¸ì¬ì´í¸.","magazine.seo.journalTitle":"NextPrimus | Investment Journal","magazine.seo.journalDescription":"Editorê° ì¹ì¸í ìì¥ ë ¸í¸ â ê´ì¬ ì¢ ëª©, ë³í, íì§ ìë ì¼.","journal.hubTitle":"Investment Journal","journal.hubLead":"ë ì§Â·ê´ì¬ ì¢ ëª©Â·ìì¬ê²°ì ë§¥ë½ì ëí Editor ì¹ì¸ ë ¸í¸. ìë ê²ìëì§ ììµëë¤.","journal.archiveTitle":"Journal archive","journal.archiveSubtitle":"ê²ìë íëª©ë§ íìë©ëë¤.","journal.empty":"ìì§ ê²ìë Journalì´ ììµëë¤.","journal.emptyAdmin":"ì´
1558ì·ê²ì íëª©ì´ ìì§ ììµëë¤.","journal.defaultTitle":"Investment Journal","journal.regime":"Market Regime","journal.watching":"What I'm Watching","journal.whatChanged":"What Changed","journal.whatImNotDoing":"What I'm Not Doing","journal.myStrategy":"My Strategy","journal.nextReview":"Next Review","journal.backToArchive":"Journalë¡ ëìê°ê¸°","journal.readEntry":"ê¸ ì½ê¸°","journal.notFound":"Journal í목ì ì°¾ì ì ììµëë¤.","journal.manage":"Journal ê´ë¦¬","journal.manageLead":"ì´ì ìì±Â·ê²í ·ê²ì. AIë ìë ê²ìíì§ ììµëë¤.","journal.newEntry":"ì í목","journal.editEntry":"í목 ìì ","journal.entries":"í목 목ë¡","journal.saveDraft":"ì´ì ì ì¥","journal.saveAiDraft":"Save AI-assisted Draft","journal.aiDraftRunning":"AI ì´ì ìì± ì¤â¦","journal.aiDraftSaved":"AI ë³´ì¡° ì´ìì´ ì ì¥ëììµëë¤ (미ê²ì).","journal.aiDraftHint":"ë¨ì를 Perplexity 리ìì¹ + GPTë¡ ë¤ë¬ìµëë¤. ì ì를 ë§ë¤ì§ ìì¼ë©° ìë ê²ìíì§ ììµëë¤.","journal.publish":"ê²ì","journal.unpublish":"ê²ì ì·¨ì","journal.delete":"ìì ","journal.confirmDelete":"ì´ Journal í목ì ìì í ê¹ì?","journal.prefill":"Strategyìì í리í","journal.prefilled":"Regimeê³¼ watching í°ì»¤ë¥¼ Strategy ìºììì ì±ì ìµëë¤.","journal.saved":"ì´ìì´ ì ì¥ëììµëë¤.","journal.created":"ì´ìì´ ìì±ëììµëë¤.","journal.published":"ê²ìëììµëë¤.","journal.unpublished":"ê²ìê° ì·¨ìëììµëë¤.","journal.deleted":"ìì ëììµëë¤.","journal.fieldDate":"ìì±ì¼","journal.fieldLang":"ì¸ì´","journal.fieldTitle":"ì 목","journal.fieldRegimeScore":"Regime score","journal.fieldRegimeLabel":"Regime label","journal.fieldWatching":"Watching tickers","journal.watchingLimit":"ìµë {{count}}ê° ì í","journal.maxWatchingTickers":"Watching tickersë ìµë {{count}}ê°ê¹ì§ ì íí ì ììµëë¤.","journal.compounderWatch":"Compounder Watch","journal.tickerSignals":"ì í ì¢
목ì TRP · Signal","journal.loadingTickerSignals":"ìºìë Strategy ì§í ë¶ë¬ì¤ë ì¤â¦","journal.tickerSignalUnavailable":"ìºìë TRP·Signal ë°ì´í°ê° ììµëë¤.","magazine.prime.title":"Today's Prime","magazine.prime.subtitle":"ìì¥ ë ì§, 매í¬ë¡ ë§¥ë½, ê·¸ë¦¬ê³ ì¤ëì ìì¥ ì´ì¼ê¸°.","magazine.prime.regimeIdle":"Market Regime ìºìê° ìì§ ììµëë¤. Editor refreshê° íìí ì ììµëë¤.","magazine.prime.storyLabel":"Today's Market Story","magazine.prime.storyIdle":"ì£¼ê° ë§ì¼ ì¤í ë¦¬ê° ìì§ ììµëë¤.","magazine.prime.readStory":"Market Story ì½ê¸°","magazine.prime.highlight":"Highlight","magazine.story.title":"Market Story","magazine.story.subtitle":"Market · AI · Rates를 ìì°ë¥´ë ì£¼ê° ë¯¸êµ ì¦ì ì¸í
리ì ì¤.","magazine.story.idle":"ë§ì¼ ì¤í 리 Editionì´ ìì§ ììµëë¤.","magazine.movers.title":"Prime Movers","magazine.movers.subtitle":"ë¨ì ììµë¥ ì´ ìëë¼ ëª¨ë©í
·ì¶ì¸ ê°ìì´ ê°íëë ì¢
목.","magazine.movers.empty":"Prime Mover ë°ì´í°ê° ìì§ ììµëë¤.","magazine.radar.title":"Trend Compounder Radar","magazine.radar.subtitle":"ì¢ì 기ì
ê³¼ ìì¹ ì¶ì¸ì ë³íê° ë§ëë ì§ì .","magazine.radar.empty":"Strategy Radar ë°ì´í°ê° ìì§ ììµëë¤.","magazine.radar.why":"Why We're Watching","magazine.radar.viewAll":"Strategy ëìë³´ë ì´ê¸°","magazine.sector.title":"Sector Rotation","magazine.sector.subtitle":"ë¯¸êµ ì¹í°ì ìëê°ë·ë¨ê¸° 리ëì.","magazine.sector.empty":"ì¹í° ìì¸ ìºìê° ìì§ ììµëë¤.","magazine.watch.title":"Compounder Watch","magazine.watch.subtitle":"Editorê° íë ì´ì
í ì°ë ì¢
목 â PrimeHealthì ìëê°ë.","magazine.watch.empty":"ìì§ íë ì´ì
ë Compounderê° ììµëë¤.","magazine.audit.title":"Behind the Numbers","magazine.audit.subtitle":"AIê° íê³ íì§, íê¸íë¦, ì¬ë¬´ 리ì¤í¬ë¥¼ ì´í´ë´
ëë¤.","magazine.audit.empty":"ìì§ ê°ì¬ 리í¬í¸ê° ììµëë¤.","magazine.hub.marketLead":"ì§ê¸ ë¯¸êµ ì¦ììì ë¬´ì¨ ì¼ì´ ì¼ì´ëê³ ìëê°.","magazine.hub.trailLead":"ê´ì¬ê³¼ ìì¹ ì¶ì¸ë ì´ëë¡ ì´ëíê³ ìëê°.","magazine.hub.compoundersLead":"ì¥ê¸°ì ì¼ë¡ ì¶ì í ê°ì¹ê° ìë 기ì
ì 무ìì¸ê°.","magazine.refresh":"ìë¡ê³ 침","magazine.viewDiscover":"Discover ì´ê¸°","magazine.viewStrategy":"Strategy ì´ê¸°","magazine.viewMacro":"Macro ì´ê¸°","dashboard.macro":"매í¬ë¡ ëìë³´ë","dashboard.macroSub":"ë¯¸êµ ì¦ì를 ìì§ì´ë íµì¬ ì§í 5ì¢
","dashboard.news":"ìì¥ ë´ì¤ ì¸í
리ì ì¤","dashboard.newsSub":"ìì¥Â·AI·ê¸ë¦¬ ë´ì¤ ì£¼ê° AI ìì½","dashboard.topPicks":"Top 5 Strong Momentum Stocks","dashboard.featured":"Prime Trail Top 20","dashboard.featuredSub":"NextPrimusì ìëí° Junì ê´ì¬ ì¢
목 - P/E · RS · PrimeHealth","featured.editorHint":"í°ì»¤/기ì
ëª
ê²ì ëë í¬í¸í´ë¦¬ì¤ ì¤í¬ë¦°ì· ì
ë¡ë (ìµë 20ê°).","featured.searchPlaceholder":"ì: PLTR, Palantir","featured.add":"목ë¡ì ì¶ê°","featured.adding":"ì¶ê° ì¤â¦","featured.pickCompany":"ê²ì ê²°ê
1558³¼ìì ì¢
목ì ì ííì¸ì.","featured.limitReached":"ìµë 20ê°ê¹ì§ ì¶ê°í ì ììµëë¤.","featured.addFailed":"ì¢
목 ì¶ê°ì ì¤í¨íìµëë¤.","featured.removeFailed":"ì¢
목 ì ê±°ì ì¤í¨íìµëë¤.","featured.remove":"{{ticker}} ì ê±°","featured.count":"{{count}} / {{max}} ì¢
목","featured.emptyPublic":"ìì§ ì ì ë ì¢
ëª©ì´ ììµëë¤.","featured.emptyEditor":"ê²ì ëë ì´ë¯¸ì§ ì
ë¡ëë¡ ì¢
목ì ì¶ê°íë©´ ì¬ê¸°ì íìë©ëë¤.","featured.imageUploadTitle":"í¬í¸í´ë¦¬ì¤ ì¤í¬ë¦°ì·ìì ê°ì ¸ì¤ê¸°","featured.imageUploadHint":"ì¦ê¶ì± í¬í¸í´ë¦¬ì¤ ëª©ë¡ ì´ë¯¸ì§ë¥¼ ì
ë¡ëíì¸ì. GPTê° í°ì»¤ë¥¼ ì¶ì¶í©ëë¤.","featured.imageUploadButton":"ì´ë¯¸ì§ ì í","featured.imageExtracting":"ì¶ì¶ ì¤â¦","featured.imageExtractFailed":"ì´ë¯¸ì§ìì í°ì»¤ ì¶ì¶ì ì¤í¨íìµëë¤.","featured.imageReviewHint":"ì¶ì¶ë ì¢
목ì íì¸íê³ ì¶ê°í í목ì ì ííì¸ì:","featured.imageUnresolved":"ë§¤ì¹ ì¤í¨","featured.imagePickOne":"ì¶ê°í ì¢
목ì íë ì´ì ì ííì¸ì.","featured.imageSlotsExceeded":"ë¨ì ì¬ë¡¯ {{slots}}ê°ë§ ì¶ê°í ì ììµëë¤.","featured.imageAddSelected":"ì í {{count}}ê° ì¶ê°","featured.bulkSkipped":"{{count}}ê° íëª©ì´ ê±´ëë°ì´ì¡ìµëë¤ (ì¤ë³µ ëë íë).","dashboard.topPicksSub":"Growth · Momentum · Quality · Sentiment â Risk â ê°ì¬ ìë£ Mega Cap Top 20 PrimeScore ìì","dashboard.topPicksRefresh":"ìì ìë¡ê³ 침","dashboard.megaCap":"US Mega Cap Top 20","dashboard.megaCapSub":"ê°ê²© íë¦, SPY ëë¹ ìë ê°ë, PrimeScore, PrimeHealth(íê³ íì§)","dashboard.sector":"US Sector Top 24","dashboard.sectorSub":"6ë ì
ì¢
à 4ì¢
â Technology, Communication Services, Healthcare, Financial, Consumer, Industrial","macro.empty":"매í¬ë¡ ë°ì´í°ë¥¼ ë¶ë¬ì¬ ì ììµëë¤. FRED_API_KEY를 ì¤ì íì¸ì.","macro.fredOpenOnFred":"FREDìì {{title}} ì´ê¸°","macro.fredAxisPercent":"Percent","macro.fredAxisIndex":"Index","macroAnalysis.title":"Macro Analysis","macroAnalysis.back":"ëìë³´ëë¡","macroAnalysis.currentReading":"íì¬ ìì¹","macroAnalysis.asOf":"기ì¤ì¼","macroAnalysis.percentile5y":"5ë
ë°±ë¶ì","macroAnalysis.marketRegime":"Market Regime","macroAnalysis.titanView":"PrimeView","macroAnalysis.impact":"Impact","macroAnalysis.chartTrend":"ì¶ì¸","macroAnalysis.range1Y":"1Y","macroAnalysis.range5Y":"5Y","macroAnalysis.range10Y":"10Y","macroAnalysis.rangeMax":"Max","macroAnalysis.chartLoading":"ì°¨í¸ ë¶ë¬ì¤ë ì¤â¦","macroAnalysis.noChart":"ì°¨í¸ ë°ì´í° ìì","macroAnalysis.memo":"Macro Intelligence","macroAnalysis.generate":"ë³´ê³ ì ìì±","macroAnalysis.generateFirst":"첫 ë³´ê³ ì ìì±","macroAnalysis.generateAll":"매í¬ë¡ ë³´ê³ ì ì ì²´ ìì±","macroAnalysis.generateFailed":"ë³´ê³ ì ìì± ì¤í¨","macroAnalysis.copyMd":"Markdown ë³µì¬","macroAnalysis.copied":"ë³µì¬ë¨!","macroAnalysis.downloadMd":".md ë¤ì´ë¡ë","macroAnalysis.reportList":"ë³´ê³ ì 목ë¡","macroAnalysis.filterAll":"ì ì²´ ì§í","macroAnalysis.listEmpty":"매í¬ë¡ ë³´ê³ ì ìì","macroAnalysis.col.date":"ë ì§","macroAnalysis.col.indicator":"ì§í","macroAnalysis.col.regime":"Regime","macroAnalysis.col.view":"PrimeView","macroAnalysis.col.report":"ë³´ê³ ì","macroAnalysis.openReport":"ì´ê¸°","macroAnalysis.empty":"ì´ ì§íì 매í¬ë¡ ë¶ì ë³´ê³ ìê° ìì§ ììµëë¤.","macroAnalysis.loadFailed":"ë³´ê³ ì를 ë¶ë¬ì¤ì§ 못íìµëë¤.","macroAnalysis.notFound":"ë³´ê³ ì를 ì°¾ì ì ììµëë¤.","macroAnalysis.invalidIndicator":"ì ì ìë 매í¬ë¡ ì§íì
ëë¤.","news.market.title":"ì£¼ê° ìì¥ ì¸í
리ì ì¤","news.market.empty":"ìì¥ ë´ì¤ ìì½ì ë¶ë¬ì¬ ì ììµëë¤.","news.category.market":"ìì¥","news.category.ai":"AI","news.category.rates":"ê¸ë¦¬","news.intelligence.title":"Market News Intelligence","news.intelligence.back":"ëìë³´ëë¡ ëìê°ê¸°","news.intelligence.insightTitle":"ì£¼ê° ìì¥ ì¸ì¬ì´í¸","news.intelligence.archive":"ìì¹´ì´ë¸","news.intelligence.archiveEmpty":"ì´ì Editionì´ ììµëë¤.","news.intelligence.viewArchive":"ìì¹´ì´ë¸ 보기","news.intelligence.empty":"ì£¼ê° Editionì´ ìì§ ììµëë¤.","news.intelligence.generate":"ì´ë² 주 ìì±","news.intelligence.generateFirst":"첫 Edition ìì±","news.intelligence.generateFailed":"ìì¥ ë´ì¤ ìì±ì ì¤í¨íìµëë¤.","news.intelligence.loadFailed":"ìì¥ ë´ì¤ë¥¼ ë¶ë¬ì¤ì§ 못íìµëë¤.","news.intelligence.notFound":"Editionì ì°¾ì ì ììµëë¤.","market.col.company":"기ì
","market.col.price":"ê°ê²©","market.col.marketCap":"ìê°ì´ì¡","market.col.pe":"P/E","market.col.change":"1ë
ììµë¥ ","market.col.rs":"SPY ëë¹ RS","market.col.risk":"리ì¤í¬","market.col.titanHealth":"PrimeHealth","market.col.titanScore":"PrimeScore","market.col.watch":"ê´ì¬","market.stale":"ì¼ë¶ ìì¸ë ìºììì ê°±ì ì¤ì
ëë¤.","market.remainingQuotes":"Alpha Vantage ë¬´ë£ íëë¡ {{count}}ê° ì¢
목 ìì¸ê° ë¨ììµëë¤. ì½ 1ë¶ í ìëì¼ë¡ ì´ì´ ë°ìµëë¤.","market.loadingMore":"(ì¶ê° ë¡ë ì¤â¦)","market.loadMore":"ì ë³´ ë ê°ì ¸ì
1558¤ê¸°","market.loadingBatch":"ìì¸ë¥¼ ë¶ë¬ì¤ë ì¤â¦","market.analyze":"ë¶ì","market.sort.asc":"ì¤ë¦ì°¨ì ì ë ¬","market.sort.desc":"ë´ë¦¼ì°¨ì ì ë ¬","market.sectorShare":"ì¹í° ìì´ ë¹ì¤ {{pct}}%","watchlist.title":"ìì¹ë¦¬ì¤í¸","watchlist.subtitle":"ì¥ê¸° ì°ë주를 ê°ê²© ì¶ì¸ì PrimeHealthë¡ ì¶ì ","watchlist.add":"ìì¹ë¦¬ì¤í¸ ì¶ê°","watchlist.remove":"ìì ","watchlist.watching":"ì¶ì ì¤","watchlist.empty":"ìì¹ë¦¬ì¤í¸ì ë±ë¡ë ì¢
ëª©ì´ ììµëë¤.","watchlist.explore":"ëìë³´ë íì","watchlist.viewReport":"ê°ì¬ 리í¬í¸ 보기","sector.technology":"기ì ","sector.healthcare":"í¬ì¤ì¼ì´","sector.financial":"ê¸ìµ","sector.consumer":"ìë¹ì¬","sector.industrial":"ì°ì
","sector.communicationServices":"커뮤ëì¼ì´ì
ìë¹ì¤","charts.price.title":"주ê°Â·ë§¤í¬ë¡ ì¤ë²ë ì´","admin.dashboard":"ì´ë민 ì¸í
리ì ì¤ ëìë³´ë","admin.dashboardHint":"ì ì¥ë ìºìë ìëì¼ë¡ íìë©ëë¤ Â· ìµì ê°±ì ì Editorë§ ê°ë¥í©ëë¤","dashboard.idle":"ì´ ì¹ì
ì ì ì¥ë ìºìê° ììµëë¤. Editorê° ì°ì¸¡ ë²í¼ì¼ë¡ ìµì ì 보를 ê°ì ¸ì¬ ì ììµëë¤.","dashboard.fetchEditorOnly":"ìµì ì ë³´ ê°ì ¸ì¤ê¸°ë Editor ë¡ê·¸ì¸ì´ íìí©ëë¤","dashboard.source":"ë°ì´í° ìì²","dashboard.fetchedAt":"ê°±ì ìê°","dashboard.fetch.fred":"FREDìì ìµì ì ë³´ ê°ì ¸ì¤ê¸°","dashboard.fetch.perplexity":"Perplexityìì ìµì ì ë³´ ê°ì ¸ì¤ê¸°","dashboard.fetch.alphavantage":"ìì¸ ìµì ì ë³´ ê°ì ¸ì¤ê¸°","market.fetchError":"ìì¸ë¥¼ ë¶ë¬ì¤ì§ 못íìµëë¤. Alpha Vantage / Finnhub API í¤ì í¸ì¶ ì íì íì¸íì¸ì.","reports.selectAnalyze":"ì¢
목 ì í ë° ë¦¬ì¤í¬ ë¶ì","reports.pickerTitle":"ë©ê°ìº¡ ì¢
목 ì í","reports.runAnalysis":"리ì¤í¬ ë¶ì ì¤í","reports.cancel":"ì·¨ì","reports.emptyAdmin":"ìì§ ê°ì¬ 리í¬í¸ê° ììµëë¤. [ì¢
목 ì í ë° ë¦¬ì¤í¬ ë¶ì]ì¼ë¡ ë¶ìì ììíì¸ì.","reports.title":"ìµì 리ì¤í¬ 리í¬í¸","reports.subtitle":"ì¬ì ìì±ë AI ê°ì¬ ë©ëª¨","reports.empty":"ìì§ ë¦¬í¬í¸ê° ììµëë¤.","reports.cta":"첫 ë¶ì ìì","stats.views":"ëì ì¡°í","stats.reportReads":"리í¬í¸ ì¡°í","stats.downloads":"ë¤ì´ë¡ë","stats.shares":"ê³µì ","nexus.siteViews":"ì¬ì´í¸ 방문","nexus.siteViewsHint":"NextPrimus ì ì²´ íì´ì§ 방문 ì","nexus.trafficTrend":"í¸ëí½ ì¶ì´ (7ì¼)","nexus.adminTitle":"í¸ëí½ ëìë³´ë","nexus.adminSubtitle":"íì´ì§ ë·°, ìí°í° 구ë¶, ì½í
ì¸ ì±ê³¼","nexus.adminLink":"í¸ëí½ ëìë³´ë","nexus.editorRequired":"í¸ëí½ ë¶ìì ë³´ë ¤ë©´ Editor ë¡ê·¸ì¸ì´ íìí©ëë¤.","nexus.exportCsv":"CSV ë´ë³´ë´ê¸° (30ì¼)","nav.home":"í","analyze.title":"기ì
리ì¤í¬ ë¶ì","analyze.subtitle":"ë¯¸êµ ë©ê°ìº¡ Top 20 ë´ìì ê²ì","analyze.searchLabel":"í°ì»¤ ëë 기ì
ëª
","analyze.searchPlaceholder":"ì: NVDA, Apple, Tesla","analyze.searching":"ê²ì ì¤...","analyze.selected":"ì í","analyze.uploadPhase2":"SEC ê³µì ì
ë¡ë (Phase 2)","analyze.uploadHint":"PDF, XBRL â ì¤ë¹ ì¤","analyze.start":"ë¶ì ìì","analyze.errorEmpty":"Top 20 목ë¡ìì 기ì
ì ì ííì¸ì.","analyze.errorGeneric":"ë¶ì ì¤ ì¤ë¥ê° ë°ìíìµëë¤.","report.notFound":"리í¬í¸ë¥¼ ì°¾ì ì ììµëë¤.","report.newAnalysis":"ì ë¶ì","report.riskScore":"리ì¤í¬ ì ì","report.titanHealth":"PrimeHealth","report.titanScore":"PrimeScore","report.summary":"리ì¤í¬ ìì½","report.auditMemo":"AI ê°ì¬ ë©ëª¨","report.anomalies":"ì´ìì§í íí¸ë§µ","report.news":"ë´ì¤Â·ìì¥ ì»¨í
ì¤í¸","report.metrics":"ì¬ë¬´ ì§í","report.print":"ì¸ì / PDF","report.share":"ê³µì ","report.like":"ì¢ìì","report.back":"ì ì²´ 리í¬í¸","risk.high":"ê³ ìí","risk.medium":"주ì","risk.low":"ìì ","loading.fetching":"SEC·ìì¥ ë°ì´í° ìì§ ì¤...","loading.calculating":"Beneish, Altman, FCF ê³ì° ì¤...","loading.analyzing":"GPT ê°ì¬ ë©ëª¨ ìì± ì¤...","footer.developed":"Developed by NextPlatform","footer.updated":"ìµì¢
ì
ë°ì´í¸","footer.scope":"NextPrimus · Macro · Sector · Audit · Compounder Intelligence · NextPlatform","metrics.beneish.label":"Beneish M-Score","metrics.beneish.info":"8ê° ì¬ë¬´ë¹ì¨ë¡ ììµ ì¡°ì ê°ë¥ì±ì íì§í©ëë¤. -2.22를 ì´ê³¼íë©´ ë¶ìíê³ ìí ì í¸ë¡ í´ìë©ëë¤.","metrics.beneish.hint.manipulator":"ì¡°ì ê°ë¥ì± ì í¸","metrics.beneish.hint.normal":"ì ì","metrics.altman.label":"Altman Z-Score","metrics.altman.info":"ì ëì±Â·ììµì±Â·ë ë²ë¦¬ì§ ë±ì ì¢
í©í´ ë¶ë ìíì íê°í©ëë¤. 2.99 ì´ìì ìì , 1.81 미ë§ì ìí 구ê°ì
ëë¤.","metrics.altman.zone.safe":"ìì ","metrics.altman.zone.grey":"주ì 구ê°","metrics.altman.zone.distress":"ë¶ë ìí","metrics.debtRatio.label":"ë¶ì±ë¹ì¨","metrics.debtRatio.info":"ì´ë¶ì±ë¥¼ ì´ìì°ì¼ë¡ ëë ë¹ì¨ì
ëë¤. ëììë¡ ì¬ë¬´ ë ë²ë¦¬ì§ì ìí ë¶ë´ì´ 커ì§ëë¤.","metrics.debtRatio.hint":"ë¶ì± / ìì°","metrics.ocfNi.label":"OCF / NI","metrics.ocfNi.info":"ìì
íê¸íë¦ ëë¹ ìì´ìµ ë¹ì¨ì
ëë¤. 1ì ê°ê¹ì¸ìë¡ íê¸ ì°½ì¶ë ¥ì´ ììµê³¼ ì í©ì ì
ëë¤.","metrics.ocfNi.hint":"íê¸ ììµ íì§","metrics.compare.line":"Top 20 íê· : {{avg}} · {{relation}}","metrics.compare.better":"íê· ëë¹ {{diff}} ì°ì","metrics.compare.worse":"íê· ëë¹ {{diff}} ì´ì","metrics.compare.inLine":"íê· ê³¼ ì ì¬","charts.radar.liquidity":"ì ëì±","charts.radar.profitability":"ììµì±","charts.radar.leverage":"ë ë²ë¦¬ì§","charts.radar.growth":"ì±ì¥","charts.radar.cashFlow":"íê¸íë¦","charts.radar.series":"ì¬ë¬´ ìì ì±","charts.cashflow.title":"íê¸íë¦","charts.cashflow.operating":"ìì
CF","charts.cashflow.investing":"í¬ìCF","charts.cashflow.financing":"ì¬ë¬´CF","charts.cashflow.fcf":"FCF","charts.debt.title":"ë¶ì± 구조","charts.debt.shortTerm":"ë¨ê¸°ë¶ì±","charts.debt.longTerm":"ì¥ê¸°ë¶ì±","charts.debt.equity":"ì본","charts.heatmap.empty":"ì´ìì§í ë°ì´í° ìì","severity.low":"ë®ì","severity.medium":"ì¤ê°","severity.high":"ëì","top100.empty":"ìì ë°ì´í°ê° ììµëë¤. ë¶ìì ì¤ííë©´ PrimeScore ììê° ìì±ë©ëë¤.","top100.viewAll":"Top 20 ì ì²´ 보기 â","top100.loadMore":"ë 보기","top100.pageTitle":"Top 20 AI Momentum Stocks","top100.pageSubtitle":"Mega Cap Top 20 ì ëë²ì¤ PrimeScore ìì â Growth · Momentum · Quality · Sentiment â Risk","top100.filter.grade":"ë±ê¸","top100.filter.titanStatus":"TitanStatus","top100.filter.theme":"í
ë§","top100.filter.allGrades":"ì ì²´ ë±ê¸","top100.filter.allStatuses":"ì ì²´ ìí","top100.filter.allThemes":"ì ì²´ í
ë§","top100.showing":"{{total}}ê° ì¤ {{count}}ê° íì","top100.col.rank":"ìì","top100.col.company":"기ì
","top100.col.theme":"í
ë§","top100.col.titanScore":"PrimeScore","top100.col.grade":"ë±ê¸","top100.col.titanStatus":"TitanStatus","titan.grade.elite":"Titan Elite","titan.grade.strongBuy":"Strong Buy","titan.grade.buy":"Buy","titan.grade.hold":"Hold","titan.grade.weak":"Weak","titan.status.leaders":"Leaders","titan.status.challengers":"Challengers","titan.status.drifters":"Drifters","titan.status.relics":"Relics","titan.breakdown.title":"PrimeScore êµ¬ì± ìì","titan.breakdown.growth":"Growth","titan.breakdown.momentum":"Momentum","titan.breakdown.quality":"Quality","titan.breakdown.sentiment":"Sentiment","titan.breakdown.risk":"Risk","titan.breakdown.formula":"PrimeScore = Growth 25% + Momentum 30% + Quality 20% + Sentiment 15% â Risk 10%","titan.breakdown.unavailable":"ì¸ë¶ ìë¸ì¤ì½ì´ë PrimeScore v2ë¡ ì ë¶ìì ì¤ííë©´ íìë©ëë¤.","titan.report.dualHint":"PrimeScore = ì¥ê¸° ì´ê³¼ììµ ê°ë¥ì± · PrimeHealth = íê³ íì§","sector.titanLeader":"Titan Leader","sector.refresh":"ì¹í° ìì¸ ìë¡ê³ 침","strategy.pageTitle":"Trend Compounder","strategy.pageSubtitle":"PrimeScore + TRP
1558+ Market Regime + Position Sizing â ì¶ì¸ ì í 복리 ì±ì¥ ì¢
목 íì.","strategy.ctaTitle":"Trend Compounder Strategy","strategy.ctaSubtitle":"ì°ë 기ì
ì ìì¹ ì¶ì¸ ì íê³¼ ë¨ê³ì ë¹ì¤ ê°ì´ë를 íì¸íì¸ì.","strategy.ctaButton":"Strategy ëìë³´ë ì´ê¸°","strategy.refresh":"ì ëµ ë°ì´í° ìë¡ê³ 침","strategy.refreshing":"ìë¡ê³ 침 ì¤â¦","strategy.staleHint":"ì¼ë¶ ì¢
목ì API íëë¡ ì¸í´ ë¤ì refreshê¹ì§ ì§ì°ë ì ììµëë¤.","strategy.filterSignal":"ì í¸","strategy.filterSector":"ì¹í°","strategy.filterAll":"ì ì²´","strategy.noData":"ì ëµ ë°ì´í°ê° ììµëë¤. Editor refreshê° íìí ì ììµëë¤.","strategy.backToDashboard":"Strategyë¡ ëìê°ê¸°","strategy.signal":"ì í¸","strategy.position":"ë¹ì¤","strategy.confidence":"ì 뢰ë","strategy.targetWeight":"목í ë¹ì¤","strategy.viewDetail":"ìì¸ ë³´ê¸°","strategy.viewReport":"리ì¤í¬ 리í¬í¸ 보기","strategy.summaryTitle":"Trend Compounder ì í¸","strategy.summarySubtitle":"TRP ë°ì íì¤ì í¬ì§ì
í°ì´ ì¶ì²","strategy.detailSubtitle":"ì´ ì¢
목ì PrimeScore, TRP Velocity, í¬ì§ì
ê°ì´ë를 íì¸íì¸ì.","strategy.chartTitle":"{{symbol}} ê°ê²© ì°¨í¸","strategy.chartRange":"6ê°ì · ì¼ë´","strategy.chartCaption":"TradingView ì ê³µ ì°¨í¸ì
ëë¤. 기본 보기: ìµê·¼ 6ê°ì ì¼ë´ + Volume, EMA 20/50/100/200, MACD(모ë©í
ë³´ì¡°). ìì ¯ìì 기ê°Â·ì£¼ê¸°ë¥¼ ë°ê¿ ì ììµëë¤.","strategy.chartUnavailable":"ì°¨í¸ ì¬ë³¼ì ì¬ì©í ì ììµëë¤.","strategy.chartLoadError":"TradingView ì°¨í¸ë¥¼ ë¶ë¬ì¤ì§ 못íìµëë¤. ë¤í¸ìí¬ë¥¼ íì¸í ë¤ ë¤ì ìëí´ ì£¼ì¸ì.","strategy.historyTitle":"Signal History","strategy.historySubtitle":"ìµê·¼ {{days}}ì¼ Â· ì¤ë
ì· {{count}}ê±´","strategy.historyEmpty":"ì¤ì¸¡ ì¤ë
ì·ì´ ìì§ ë¶ì¡±í©ëë¤. ë ì§ë¥¼ ë°ê¿ ìë¡ê³ 침íë©´ ì´ë ¥ì´ ìì
ëë¤.","strategy.historyScores":"PrimeScore · TRP · Market Regime","strategy.historyVelocity":"Velocity (7ì¼)","strategy.historySignal":"Signal","strategy.historyPrime":"PrimeScore","strategy.historyTrp":"TRP","strategy.historyRegime":"Market Regime","auth.signInWithGoogle":"Googleë¡ ê³ìí기","auth.firebaseNotConfigured":"Firebaseê° ì¤ì ëì§ ìììµëë¤. VITE_FIREBASE_* íê²½ ë³ì를 ì¶ê°íì¸ì.","auth.editorOnlyGoogle":"Editor ìì
ì íì©ë Google ê³ì ì´ íìí©ëë¤.","nav.intro":"About","intro.seoTitle":"NextPrimus | About â Investment Intelligence","intro.seoDescription":"í¬ì ë°ì´í°ë¥¼ í¬ì ì¸í
리ì ì¤ë¡ â NextPrimusê° AIë¡ ë ë¹ ë¥´ê³ ê¹ì íë¨ì ëë ë°©ë².","intro.eyebrow":"Investment Intelligence","intro.heroHeadline":"í¬ì ì 보를 ëì´, í¬ì íë¨ì ìí ì¸í
리ì ì¤","intro.heroLead":"í¬ìì를 ëì í´ í¬ìíë ìë¹ì¤ê° ìëë¼, ë ë¹ ë¥´ê³ ê¹ì´ ìê² íë¨í ì ìëë¡ ëë AI í¬ì ì¸í
리ì ì¤ì
ëë¤.","intro.ctaMarket":"ìì¥ ì´í´ë³´ê¸°","intro.ctaJournal":"Journal ì½ê¸°","intro.ctaHome":"íì¼ë¡","intro.quote":"í¬ìììê² ë íìí ê²ì ì ë³´ê° ìëë¼ âë§¥ë½âì
ëë¤.","intro.quoteSupport":"무ìì´ ì¤ìíì§, ìë¡ ì´ë¤ ê´ê³ê° ìëì§, ì§ê¸ íë¨ì ì´ë¤ ì미ì¸ì§ â NextPrimusë ì¬ê¸°ì ì¶ë°í©ëë¤.","intro.problemEyebrow":"01 · 문ì ","intro.problemTitle":"ì ë³´ê° ë¶ì¡±í´ìê° ìëëë¤","intro.problemBody1":"ì¤ì , ê²½ì ì§í, ì°ì
ë´ì¤, 리í¬í¸, ìê¸, ê¸ë¡ë² ì´ì, 주ê°ì ê±°ëëê¹ì§ â ì´í´ë´ì¼ í ë°ì´í°ë ê³ì ëì´ë©ëë¤.","intro.problemBody2":"문ì ë ì ë³´ ë¶ì¡±ì´ ìëë¼, ë무 ë§ì ì ë³´ ììì ì¤ìëì ê´ê³, ê·¸ë¦¬ê³ ë´ íë¨ì ëí ì미를 íì
í기 ì´ë µë¤ë ì ì
ëë¤.","intro.problemQuestion":"âê·¸ëì ì§ê¸ ì´ ê¸°ì
ì ì´ë»ê² ë°ë¼ë´ì¼ íëê°?â","intro.valueEyebrow":"02 · íµì¬ ê°ì¹","intro.value1Title":"ìë§ì í¬ì ì 보를 íëì ê´ì ì¼ë¡ ì°ê²°","intro.value1Body":"NextPrimusë ì£¼ê° ë°ì´í°ë§ ë³´ë ìë¹ì¤ê° ìëëë¤. ìì¥Â·ê¸°ì
·ë´ì¤Â·ì°ì
·ìê¸ì ì°ê²°í´ íëì í¬ì ë§¥ë½ì ë§ëëë¤.","intro.value1Points":["ìµê·¼ 주ê°ë ì´ë¤ ì¶ì¸ì¸ê°?","ê±°ëëê³¼ ìê¸ì ì´ë»ê² ë³ííê³ ìëê°?","매ì¶ê³¼ ìì
ì´ìµì ê°ì ëê³ ìëê°?","기ì
ì íµì¬ ì¬ì
ì ì±ì¥íê³ ìëê°?","ì°ì
ì ì²´ì ë°©í¥ì ì´ë¤ê°?","ìµê·¼ ì¤ìí ë´ì¤ë 무ìì¸ê°?","ìì¥ì ì´ ê¸°ì
ì 미ë를 ì´ë»ê² íê°íê³ ìëê°?"],"intro.value1Close":"íëì ë°ì´í°ê° ìëë¼, ë°ì´í° ì¬ì´ì ê´ê³ë¥¼ ë´
ëë¤.","intro.value2Title":"AIê° ë³µì¡í ì 보를 ì´í´í기 ì¬ì´ ì¸ì´ë¡","intro.value2Body":"âìì
ì´ìµì´ ì ë
ëë¹ 35% ì¦ê°âìì ë©ì¶ì§ ììµëë¤. ìì¸, 구조ì±, 기ëìì ì°¨ì´, ìì¼ë¡ì ë³ì를 í¨ê» 묻ìµëë¤.","intro.value2Close"
1558:"ì ë³´ì ìì½ìì í¬ì ë§¥ë½ì ì´í´ë¡.","intro.featuresEyebrow":"03 · 주ì 기ë¥","intro.featuresTitle":"NextPrimusê° ë³´ì¬ì£¼ë ë¤ ê°ì§ ìì ","intro.featuresLead":"ìì¥Â·ê¸°ì
·ìê·¸ë·리ìì¹ â ìµì¢
íë¨ì ì¸ì ë í¬ììì 몫ì
ëë¤.","intro.feature1Title":"AI Market Intelligence","intro.feature1Body":"ì§í, 주ê°, ê±°ëë, ìê¸, 주ì ë´ì¤ë¥¼ ì¢
í©í´ ì¤ë ìì¥ìì 무ìì´ ì¤ìíì§ íëì íì
íëë¡ ëìµëë¤.","intro.feature2Title":"AI Company Intelligence","intro.feature2Body":"기본ì ë³´ë¶í° ì¬ë¬´Â·ì±ì¥Â·ë°¸ë¥ìì´ì
·ë´ì¤Â·ì°ì
·리ì¤í¬ê¹ì§ ì°ê²°í´ âì§ê¸ 무ìì´ ë³íê³ ìëê°?â를 ë°ê²¬í©ëë¤.","intro.feature3Title":"Investment Signal","intro.feature3Body":"ê±°ëë ê¸ì¦, ì¶ì¸Â·ìê¸Â·ì¤ì ·ì ì±
·ì´ë²¤í¸ ë³í를 âí ë² ë ì´í´ë³¼ ê°ì¹âë¡ ì ìí©ëë¤. ìë 매ì·매ë ì í¸ê° ìëëë¤.","intro.feature4Title":"AI Investment Research","intro.feature4Body":"구조ì ë³íì¸ì§, ë°¸ë¥ìì´ì
ë¹êµ, í ë¬ê°ì íµì¬ ë³íì²ë¼ ìì°ì´ë¡ ë¬»ê³ AIê° ë§¥ë½ì ì 리í©ëë¤.","intro.diffEyebrow":"04 · ì°¨ë³ì ","intro.diffTitle":"ì¢
목 ì¶ì² AIê° ìëëë¤","intro.diffBody":"âì´ ì¢
목ì ì¬ì¸ìâë³´ë¤, ì 주목ë°ëì§Â·ì´ë¤ ë°ì´í°ê° ë·ë°ì¹¨íëì§Â·ì´ë¤ ìíì´ ìëì§ë¥¼ ì´í´íëë¡ ëìµëë¤.","intro.diffClose":"Recommendationë³´ë¤ Intelligence.","intro.assistantEyebrow":"05 · ë°©í¥","intro.assistantTitle":"í¬ììì ê°ì¸ AI Research Assistant","intro.assistantBody":"ê´ì¬ ì¢
목과 ì°ì
ì ë±ë¡íë©´ AIê° ê´ì°°ì ì´ì´ê°ëë¤. ì¤ì ìíë¼ì´ì¦, ì°ì ìê¸, ì ì±
ë³í, ë´ì¤ í¤ ë³íì²ë¼ ëì¹ê¸° ì¬ì´ ì í¸ë¥¼ ê°ì ¸ìµëë¤.","intro.assistantClose":"ì 보를 ì°¾ìë¤ëë ë°©ììì, AIê° ì¤ìí ì 보를 ê°ì ¸ì¤ë ë°©ìì¼ë¡.","intro.archEyebrow":"06 · ìí¤í
ì²","intro.archTitle":"AI Agent ê¸°ë° Intelligence","intro.archBody":"ë¨ì¼ ì±ë´ ëµë³ì´ ìëë¼, ìì§Â·ë¶ì·êµì°¨ê²ì¦Â·ì¢
í©ì ìííë ìì´ì í¸ êµ¬ì¡°ë¡ í¬ì ì¸í
리ì ì¤ë¥¼ ë§ëëë¤.","intro.archFlow":["Mar
1558ket Data","Data Collection Agents","Financial / News / Industry / Technical Analysis","AI Research Agents","Cross Validation","Investment Intelligence","Investor"],"intro.agentMarket":"Market Agent","intro.agentMarketDesc":"ìì¥ ì ì²´ì ë³íì 주ì ì§í를 ë¶ìí©ëë¤.","intro.agentCompany":"Company Agent","intro.agentCompanyDesc":"ê°ë³ 기ì ì ì¬ë¬´ ë° ì¬ì ë³í를 ë¶ìí©ëë¤.","intro.agentNews":"News Agent","intro.agentNewsDesc":"ë´ì¤ì ì´ë²¤í¸ë¥¼ ìì§íê³ ì¤ìí ë´ì©ì ì ë³í©ëë¤.","intro.agentFinancial":"Financial Agent","intro.agentFinancialDesc":"ì¬ë¬´ì±ê³¼ì ë°¸ë¥ìì´ì ì ë¶ìí©ëë¤.","intro.agentSignal":"Signal Agent","intro.agentSignalDesc":"ìì¥ ë°ì´í°ìì ì미 ìë ë³í를 íì§í©ëë¤.","intro.agentResearch":"Research Agent","intro.agentResearchDesc":"ì¬ë¬ ë¶ì 결과를 í¬ììê° ì´í´í기 ì½ê² ì 리í©ëë¤.","intro.closingTagline":"From Investment Data to Investment Intelligence","intro.closingBody":"ìì¼ë¡ì ê²½ìë ¥ì ë ë§ì ì ë³´ê° ìëë¼, ì¤ìí ë³í를 ë°ê²¬íê³ ê·¸ ì미를 ì´í´íë ë¥ë ¥ì ììµëë¤.","intro.closingQuestions":["âì§ê¸ ìì¥ìì 무ìì´ ë³íê³ ìëê°?â","âê·¸ ë³íë ì´ë¤ 기ì ê³¼ ì°ì ì ìí¥ì 미ì¹ëê°?â","âê·¸ ë³íê° í¬ìììê² ì미íë ê²ì 무ìì¸ê°?â"],"intro.closingFinal":"AIê° í¬ìì를 ëì íë ê²ì´ ìëë¼, ë ëì íë¨ì í ì ìëë¡ ëìµëë¤.","intro.disclaimer":"NextPrimusê° ì ê³µíë ì ë³´ì ë¶ìì í¬ì íë¨ì ìí ì°¸ê³ ìë£ì´ë©°, í¹ì ê¸ìµìíì 매ì·매ë ëë í¬ìììµì ë³´ì¥íë í¬ìì문ì ì미íì§ ììµëë¤.","auth.orEditor":"ëë Editor ì´ë©ì¼","auth.voucherCode":"ë°ì°ì² ì½ë","auth.editorSignIn":"Editor ë¡ê·¸ì¸","journal.authorTitle":"ìì±ì ìê°","journal.authorName":"Jun","journal.authorEmail":"[email protected]","journal.authorBio":"AI·í´ë¼ì°ë ìí¤í í¸ì´ì AI ìëì ìµì íë í¬ì ìì¬ê²°ì ì§ììì¤í ë¹ë. NextPlatformì íµí´ AI·í´ë¼ì°ë 기ì ì ì°êµ¬íê³ ì¤ë¬´ì ì ì©íë©°, NextPrimus를 íµí´ ìì¥Â·ê¸°ì ·ì°ì ë°ì´í°ë¥¼ AIë¡ ì°ê²°í´ í¬ììê° ë ë¹ ë¥´ê³ ê¹ì´ ìê² íë¨í ì ìë Investment Intelligence íê²½ì ë§ë¤ì´ê°ê³ ììµëë¤.","journal.authorBioChaewon":"NextPrimus Editor. í¬ììê° ìì¥ê³¼ 기ì ì ë ë¹ ë¥´ê³ ëª ííê² íë¨í ì ìëë¡ Investment Intelligence ì½í ì¸ ë¥¼ í¨ê» ë§ë¤ì´ê°ê³ ììµëë¤.","intro.glossaryEyebrow":"07 · Glossary","intro.glossaryTitle":"NextPrimus Glossary","intro.glossaryLead":"Market·Compounders·Journal·Strategyìì ë°ë³µëë íµì¬ ì©ì´ë¥¼ ì²ì 방문íë ë¶ë¤ì ìí´ ì 리íìµëë¤.","intro.glossaryItems":[{term:"Market Regime",body:`주ììì¥ ì ì²´ê° ìí ì í¸(Risk-on)ì¸ì§ ìí íí¼(Risk-off)ì ê°ê¹ì´ì§ë¥¼ 0â100 ì ìë¡ ìì½í ì§íì ëë¤. 1559 1560ê°ë³ 기ì íì§ì ë³´ë PrimeScoreì ë¬ë¦¬, âì§ê¸ ìì¥ íê²½ ìì²´ê° ì£¼ì ë ¸ì¶ì ì 리íê°?â를 묻ìµëë¤. 1561 1562S&P500·Nasdaq ì¶ì¸, VIX, ìì¥ Breadth, ê¸ë¦¬, Credit(íì¬ íë ì´ì¤íë), ì¹í° 리ëìì ê°ì¤ íê· í ë¤ RISK_ON(80+), BULLISH(65â79), NEUTRAL(50â64), CAUTION(35â49), RISK_OFF(35 미ë§) ë¼ë²¨ë¡ 매íí©ëë¤. 1563 1564ì: 57 / 100ì NEUTRALì ëë¤. ëë ·í ê°ì¸ë ì½ì¸ë ìëë¯ë¡ 기íë ìì¼ë ì ë 공격ì íë·ë ë²ë¦¬ì§ë ì ì¤í ë³´ë íê²½ì ê°ê¹ìµëë¤. ì±ììë ì£¼ë¡ ì í¸ì í¬ì§ì ì¬ì´ì¦ ì¡°ê±´ì¼ë¡ ì°ì´ë©°, ëí¹ ì체를 ë°ê¾¸ê¸°ë³´ë¤ âì¼ë§ë 공격ì ì¼ë¡ ê°ì ¸ê°ì§âì ê°ê¹ìµëë¤.`},{term:"PrimeScore",body:`ì±ì¥Â·ëª¨ë©í ·íì§Â·ì¼í°ë¨¼í¸Â·ë¦¬ì¤í¬ë¥¼ íëì 0â100 ì ìì ë±ê¸ì¼ë¡ ìì¶í ì¢ ëª© ë¨ì íì§ ì§íì ëë¤. 1565 1566ë±ê¸ì ELITE·STRONG·ATTRACTIVE·WATCH·WEAKë¡ ëë©ëë¤. âì¥ê¸° Compounder íë³´ë¡ì ì¼ë§ë ê°íê°?âì ëµíë©°, âì¤ë 매ì/매ëâ를 ì§ìíì§ ììµëë¤. 1567 1568ê°ì¬ 리í¬í¸ê° ìì¼ë©´ Titan íì ì ììì íìíê³ , ìì¼ë©´ ê°ê²©Â·ëª¨ë©í í´ë°±ì¼ë¡ Strategy ì ëë²ì¤ë¥¼ ì±ìëë¤.`},{term:"TRP (Trend Reversal Potential)",body:`ê°ê²© 구조ì 모ë©í ì´ ì¶ì¸ ì§ì·íë³µì ì¼ë§ë ì°í¸ì ì¸ì§ë¥¼ 0â100ì¼ë¡ ì¶ì íë ì ìì ëë¤. 1569 1570ë¨ê¸°Â·ì¤ê¸° 기ì¸ê¸°, higher-low 구조, ìµê·¼ ì ì ëë¹ ìì¹, ì´ëíê· ì ë ¬, RSI, ììµë¥ ì ê²°í©íë©° EARLY·CONFIRMED·STRONG ê°ì êµë©´ì¼ë¡ ì±ìë를 ííí©ëë¤. 1571 1572TRPë ì°¨í¸ì ê²½ë¡Â·íì´ë°ì, PrimeScoreë ì¬ì íì§ì ì´ì ì ë¡ëë¤. ëì í¨ê» ë³´ë©´ âì¢ì íì¬âì âê°ì ì¤ì¸ ì ì âì 구ë¶í ì ììµëë¤.`},{term:"Compounder",body:`ì§ì ê°ë¥í ì±ì¥Â·ì본ììµë¥ ·ì¬í¬ì를 íµí´ ì¥ê¸°ì ì¼ë¡ 주주 ê°ì¹ë¥¼ ë³µë¦¬ë¡ í¤ì¸ ì ìë 기ì ì ë§í©ëë¤. ë¨ê¸° í¸ë ì´ëìë ë¤ë¦ ëë¤. 1573 1574NextPrimusì Trend Compounderë PrimeScore·TRP·Market Regime ë±ì¼ë¡ í보를 ì ë³Â·ëí¹í´, ë ¸ì´ì¦ë¥¼ ì«ê¸°ë³´ë¤ ì°ë 리ëì 궤ì ì ë°ë¥´ëë¡ ëìµëë¤. 1575 1576Journal·ëë©ì Compounder Watchë ê·¸ ê²í 목ë¡ì íë ì´ì ì리ì¤í¸ì ëë¤.`},{term:"Prime Signal",body:`PrimeScore, TRP(ë° velocity), Market Regimeì ê²°í©í´ EARLY_ENTRY·CONFIRMED_ENTRY·HOLD·REDUCE·EXIT ê°ì ìí ë¼ë²¨ë¡ ííí ìì¬ê²°ì íë ìì ëë¤. 1577
1578ìë 매매 ì£¼ë¬¸ì´ ìëë¼ âë¤ì ë³¼ ê°ì¹ê° ìëì§, ë¹ì¤ì í¤ì¸ì§Â·ì¤ì¼ì§â를 ì 리í©ëë¤. 1579 1580ê° ì í¸ì ë¶ë ì¬ì (ì: ë®ì PrimeScore, ì½í´ì§ë TRP 모ë©í )ë¡ âìâ를 ëë¬ë´ íë¨ì í¬ìììê² ë¨ê¹ëë¤.`},{term:"Position Sizing",body:`PrimeScore·Prime Signal·ë¨ì¼ ì¢ ëª© ë¹ì¤ ìíì ë°íì¼ë¡, í¬í¸í´ë¦¬ì¤ìì ì ìíë ë¹ì¤ í¬ê¸°ì ëë¤. 1581 1582WATCH·START·BUILD·CORE·MAX ê°ì í°ì´ê° íì ë°´ë를 ëíë ëë¤. íì§Â·ì í¸ê° ê°í ìë¡ ì ì ë¹ì¤ì´ 커ì§ê³ , ì½í ì ì ì ê´ë§Â·ìì¡ì ë¨¸ë¬´ë¦ ëë¤. 1583 1584ì¬ì´ì§ì ì¸í 리ì ì¤ë¥¼ 리ì¤í¬ ê·ì¨ë¡ ë°ê¿ëë¤. Regimeì´ë Signalì´ ì ì¤ì ì구íë©´ ëì PrimeScoreì¬ë í¬í¸í´ë¦¬ì¤ë¥¼ ë ì íì§ ìê² í©ëë¤.`}],"glossary.infoAria":"NextPrimus Glossaryìì {{term}} ì¤ëª 보기","glossary.terms.market-regime":"Market Regime","glossary.terms.primescore":"PrimeScore","glossary.terms.trp":"TRP","glossary.terms.compounder":"Compounder","glossary.terms.prime-signal":"Prime Signal","glossary.terms.position-sizing":"Position Sizing","strategy.rebuiltHint":"ì¢ ëª©ë³ ìºì ì¤ë ì·ì¼ë¡ ìì를 ë¤ì 구ì±íìµëë¤. ìì¸ APIê° ì ìì¼ ë Editorìì ì ëµ ë°ì´í°ë¥¼ ìë¡ê³ 침íë©´ ì ì²´ê° ê°±ì ë©ëë¤.","strategy.emptyNeedsRefresh":"ìºìì ìì ì¢ ëª©ì´ ììµëë¤. ì¢ ëª© ìì¸ë¥¼ ëª ê° ì´ê±°ë, ìì¸ APIê° ê°ë¥í ë Editorìì âì ëµ ë°ì´í° ìë¡ê³ 침âì ì¤íí´ ì£¼ì¸ì.","strategy.emptyQuoteLimited":"ìë¡ê³ 침 ê²°ê³¼ê° ë¹ììµëë¤. ìì¸ API íë(rate limit) ê°ë¥ì±ì´ í½ëë¤. ì ì í Editor refresh를 ë¤ì ìëíê±°ë, /strategy/MSFT ë± ê°ë³ ì¢ ëª©ì ì´ì´ ìºì를 ì±ì 주ì¸ì.","strategy.emptyFiltered":"íì¬ ì í¸/ì¹í° íí°ì ë§ë ì¢ ëª©ì´ ììµëë¤.","nav.alerts":"ì림","alerts.pageTitle":"ìì¥ ì림","alerts.pageSubtitle":"ê´ì¬ ì ëë²ì¤ì ë°ë¥Â·ë°ì (TRP/Signal + Squeeze/EMA)ê³¼ SKY FALL ê´ì ê¸ë½ ê²½ê³ ì ëë¤.","alerts.empty":"ìì§ ìë¦¼ì´ ììµëë¤. ì¼ì¼ alert-scan í¬ë¡ ì´ ì í¸ë¥¼ ê°ì§íë©´ ì¬ê¸°ì ìì ëë¤.","alerts.loadError":"ì림ì ë¶ë¬ì¤ì§ 못íìµëë¤.","alerts.bottomReversal":"ë°ë¥ ë°ì ","alerts.viewTicker":"ì ëµ ì°¨í¸ ë³´ê¸°","alerts.universeTitle":"ê´ì¬ ì ëë²ì¤","alerts.return5d":"5ì¼ ììµë¥ ","alerts.squeezeUp":"Squeeze ìí¥","alerts.emaStretch":"EMA 괴리"},Ble="NextPrimus",zle="Investment Intelligence",Vle={brand:Ble,tagline:zle,"nav.analyze":"åæéå§","nav.top100":"Top 20","nav.watchlist":"ã¦ã©ãããªã¹ã","nav.market":"Market","nav.discover":"Discover","nav.compounders":"Compounders","nav.trail":"Trail","nav.journal":"Journal","nav.menu":"ã¡ãã¥ã¼","nav.language":"è¨èª","auth.logIn":"ãã°ã¤ã³","auth.logOut":"ãã°ã¢ã¦ã","auth.loginTitle":"ãã°ã¤ã³","auth.loginSubtitle":"Googleã§ãµã¤ã³ã¤ã³ããããEditorã®ã¡ã¼ã«ã»ãã¹ã¯ã¼ãã»ãã¦ãã£ã¼ã³ã¼ãã使ç¨ãã¾ãã","auth.email":"ã¡ã¼ã«","auth.password":"ãã¹ã¯ã¼ã","auth.submit":"ãã°ã¤ã³","auth.cancel":"ãã£ã³ã»ã«","auth.close":"éãã","auth.editorLabel":"Editor {{name}}","auth.welcomeEditor":"Editor {{name}} æ§ããããã","auth.hint":"é常ã®Googleã¢ã«ã¦ã³ãã¯Readerã§ããEditorãã¹ã¯ã¼ããã°ã¤ã³ã«ã¯ãã¦ãã£ã¼ã³ã¼ããå¿ è¦ã§ãã","auth.readerLocalHint":"Readerã¨ãã¦ãµã¤ã³ã¤ã³ä¸ãã¦ã©ãããªã¹ãã¨æ´»åã¯ãã®ãã©ã¦ã¶ã«ã®ã¿ä¿åããã¾ãã","auth.editorOnly":"æ°è¦åæã«ã¯Editorã¢ã«ã¦ã³ããå¿ è¦ã§ãã","auth.watchlistLogin":"ã¦ã©ãããªã¹ãã«ã¯Readerã¾ãã¯Editorã§ãã°ã¤ã³ãã¦ãã ããã","hero.title":"Follow the Trail of Market Primus","hero.subtitle":"Macro · Sector · Trend · Compounder Intelligence","hero.cta":"ã¡ã¬ãã£ãããåæ","hero.ctaMarket":"仿¥ã®å¸å ´ãè¦ã","hero.ctaCompounders":"Compoundersãè¦ã","hero.photoCredit":"Beautiful photo by","hero.topPick":"Today's Top Pick","hero.koreanLead":"ç±³å½æ ªã§æ¬¡ã®å¸å ´ã®å·¨äººã¨ãªããã伿¥ã辿ãã¾ãã","magazine.seo.homeTitle":"NextPrimus â US Stock Market Intelligence","magazine.seo.homeDescription":"ãã¯ãã»ã»ã¯ã¿ã¼ã»ä¼æ¥å質ã»ãã¬ã³ã転æã追跡ããAIæè³ã¤ã³ãµã¤ããã¬ã¸ã³ã","magazine.seo.marketTitle":"NextPrimus | Market Intelligence","magazine.seo.marketDescription":"å¸å ´ã¬ã¸ã¼ã ãé±éãã¼ã±ããã¹ãã¼ãªã¼ãã»ã¯ã¿ã¼ãã¼ãã¼ã·ã§ã³ã","magazine.seo.trailTitle":"NextPrimus | Trail â Momentum & Trend Compounders","magazine.seo.trailDescription":"Prime Moversã¨Trend Compounder Radarã","magazine.seo.compoundersTitle":"NextPrimus | Compounders","magazine.seo.compoundersDescription":"Prime TrailãMega CapãBehind the Numbersã","magazine.seo.journalTitle":"NextPrimus | Investment Journal","magazine.seo.journalDescription":"Editoræ¿èªã®å¸å ´ãã¼ã â æ³¨ç®éæãå¤åããããªããã¨ã","journal.hubTitle":"Investment Journal","journal.hubLead":"Regimeã»æ³¨ç®éæã»å¤ææèã«é¢ããEditoræ¿èªãã¼ããèªåå ¬éã¯ãã¾ããã","journal.archiveTitle":"Journal archive","journal.archiveSubtitle":"å ¬éæ¸ã¿ã®ã
1584¿è¡¨ç¤ºã","journal.empty":"å
¬éæ¸ã¿Journalã¯ã¾ã ããã¾ããã","journal.emptyAdmin":"䏿¸ãã»å
¬éé
ç®ã¯ã¾ã ããã¾ããã","journal.defaultTitle":"Investment Journal","journal.regime":"Market Regime","journal.watching":"What I'm Watching","journal.whatChanged":"What Changed","journal.whatImNotDoing":"What I'm Not Doing","journal.myStrategy":"My Strategy","journal.nextReview":"Next Review","journal.backToArchive":"Journalã«æ»ã","journal.readEntry":"è¨äºãèªã","journal.notFound":"Journalãè¦ã¤ããã¾ããã","journal.manage":"Journal管ç","journal.manageLead":"䏿¸ãã»ã¬ãã¥ã¼ã»å
¬éãAIã¯èªåå
¬éãã¾ããã","journal.newEntry":"æ°è¦ä½æ","journal.editEntry":"ç·¨é","journal.entries":"ä¸è¦§","journal.saveDraft":"䏿¸ãä¿å","journal.saveAiDraft":"Save AI-assisted Draft","journal.aiDraftRunning":"AI䏿¸ã使ä¸â¦","journal.aiDraftSaved":"AIè£å©ä¸æ¸ããä¿åãã¾ããï¼æªå
¬éï¼ã","journal.aiDraftHint":"ã¡ã¢ãPerplexityèª¿æ» + GPTã§æ´ãã¾ããã¹ã³ã¢æé ã»èªåå
¬éã¯ãã¾ããã","journal.publish":"å
¬é","journal.unpublish":"éå
¬é","journal.delete":"åé¤","journal.confirmDelete":"ãã®Journalãåé¤ãã¾ããï¼","journal.prefill":"Strategyããããªãã£ã«","journal.prefilled":"Regimeã¨watchingãã£ãã«ã¼ãStrategyãã£ãã·ã¥ããå
¥åãã¾ããã","journal.saved":"䏿¸ããä¿åãã¾ããã","journal.created":"䏿¸ãã使ãã¾ããã","journal.published":"å
¬éãã¾ããã","journal.unpublished":"éå
¬éã«ãã¾ããã","journal.deleted":"åé¤ãã¾ããã","journal.fieldDate":"æ¥ä»","journal.fieldLang":"è¨èª","journal.fieldTitle":"ã¿ã¤ãã«","journal.fieldRegimeScore":"Regime score","journal.fieldRegimeLabel":"Regime label","journal.fieldWatching":"Watching tickers","journal.watchingLimit":"æå¤§{{count}}éæã鏿","journal.maxWatchingTickers":"Watching tickersã¯æå¤§{{count}}éæã¾ã§é¸æã§ãã¾ãã","journal.compounderWatch":"Compounder Watch","journal.tickerSignals":"鏿éæã®TRP · Signal","journal.loadingTickerSignals":"ãã£ãã·ã¥æ¸ã¿Strategyææ¨ãèªã¿è¾¼ã¿ä¸â¦","journal.tickerSignalUnavailable":"ãã£ãã·ã¥æ¸ã¿TRPã»Signalãã¼ã¿ã¯ããã¾ããã","magazine.prime.title":"Today's Prime","magazine.prime.subtitle":"å¸å ´ã¬ã¸ã¼ã ããã¯ãæèã仿¥ã®ã¹ãã¼ãªã¼ã","magazine.prime.regimeIdle":"Market Regimeãã£ãã·ã¥ãã¾ã ããã¾ããã","magazine.prime.storyLabel":"Today's Market Story","magazine.prime.storyIdle":"é±éãã¼ã±ããã¹ãã¼ãªã¼ã¯ã¾ã ããã¾ããã","magazine.prime.readStory":"Market Storyãèªã","magazine.prime.highlight":"Highlight","magazine.story.title":"Market Story","magazine.story.subtitle":"Marketã»AIã»Ratesã®é±éç±³å½æ ªã¤ã³ããªã¸ã§ã³ã¹ã","magazine.story.idle":"Market Story Editionã¯ã¾ã ããã¾ããã","magazine.movers.title":"Prime Movers","magazine.movers.subtitle":"åç´ãªã¿ã¼ã³ã§ã¯ãªãã¢ã¡ã³ã¿ã ã¨ãã¬ã³ãå éã","magazine.movers.empty":"Prime Moverãã¼ã¿ã¯ã¾ã ããã¾ããã","magazine.radar.title":"Trend Compounder Radar","magazine.radar.subtitle":"åªè¯ä¼æ¥ã¨ä¸æãã¬ã³ã転æã交ããå°ç¹ã","magazine.radar.empty":"Strategy Radarãã¼ã¿ã¯ã¾ã ããã¾ããã","magazine.radar.why":"Why We're Watching","magazine.radar.viewAll":"Strategyããã·ã¥ãã¼ã","magazine.sector.title":"Sector Rotation","magazine.sector.subtitle":"ç±³å½ã»ã¯ã¿ã¼ã®ç¸å¯¾å¼·åº¦ã¨çæãªã¼ãã¼ã·ããã","magazine.sector.empty":"ã»ã¯ã¿ã¼ç¸å ´ãã£ãã·ã¥ã¯ã¾ã ããã¾ããã","magazine.watch.title":"Compounder Watch","magazine.watch.subtitle":"Editorå³é¸ã®åªè¯éæ â PrimeHealthã¨ç¸å¯¾å¼·åº¦ã","magazine.watch.empty":"å³é¸Compounderã¯ã¾ã ããã¾ããã","magazine.audit.title":"Behind the Numbers","magazine.audit.subtitle":"AIãä¼è¨å質ã»ãã£ãã·ã¥ããã¼ã»è²¡åãªã¹ã¯ãç¹æ¤ã","magazine.audit.empty":"ç£æ»ã¬ãã¼ãã¯ã¾ã ããã¾ããã","magazine.hub.marketLead":"ä»ã®ç±³å½å¸å ´ã§ä½ãèµ·ãã¦ãããã","magazine.hub.trailLead":"注ç®ã¨ä¸æãã¬ã³ãã¯ã©ãã¸åãããã","magazine.hub.compoundersLead":"é·æã§è¿½ã価å¤ã®ãã伿¥ã¯ä½ãã","magazine.refresh":"æ´æ°","magazine.viewDiscover":"Discoverãéã","magazine.viewStrategy":"Strategyãéã","magazine.viewMacro":"Macroãéã","dashboard.macro":"ãã¯ãããã·ã¥ãã¼ã","dashboard.macroSub":"ç±³å½æ ªå¼å¸å ´ãåãã5ã¤ã®æ ¸å¿ææ¨","dashboard.news":"å¸å ´ãã¥ã¼ã¹ã¤ã³ããªã¸ã§ã³ã¹","dashboard.newsSub":"å¸å ´ã»AIã»éå©ãã¥ã¼ã¹ã®é±æ¬¡AIè¦ç´","dashboard.topPicks":"Top 5 Strong Momentum Stocks","dashboard.featured":"Prime Trail Top 20","dashboard.featuredSub":"NextPrimusã¨ãã£ã¿ã¼Junã®æ³¨ç®éæ â P/E · RS · PrimeHealth","featured.editorHint":"ãã£ãã«ã¼/伿¥åæ¤ç´¢ã¾ãã¯ãã¼ããã©ãªãªç»åã¢ãããã¼ãï¼æå¤§20ä»¶ï¼ã","featured.searchPlaceholder":"ä¾: PLTR, Palantir","featured.add":"ãªã¹ãã«è¿½å ","featured.adding":"追å ä¸â¦","featured.pickCompany":"æ¤ç´¢çµæã
1584ãéæã鏿ãã¦ãã ããã","featured.limitReached":"æå¤§20ä»¶ã¾ã§è¿½å ã§ãã¾ãã","featured.addFailed":"éæã®è¿½å ã«å¤±æãã¾ããã","featured.removeFailed":"éæã®åé¤ã«å¤±æãã¾ããã","featured.remove":"{{ticker}} ãåé¤","featured.count":"{{count}} / {{max}} éæ","featured.emptyPublic":"ã¾ã é¸å®ãããéæãããã¾ããã","featured.emptyEditor":"æ¤ç´¢ã¾ãã¯ç»åããéæã追å ããã¨ããã«è¡¨ç¤ºããã¾ãã","featured.imageUploadTitle":"ãã¼ããã©ãªãªç»åããã¤ã³ãã¼ã","featured.imageUploadHint":"証å¸ã¢ããªã®ãã¼ããã©ãªãªä¸è¦§ç»åãã¢ãããã¼ããGPTããã£ãã«ã¼ãæ½åºãã¾ãã","featured.imageUploadButton":"ç»åã鏿","featured.imageExtracting":"æ½åºä¸â¦","featured.imageExtractFailed":"ç»åããã®ãã£ãã«ã¼æ½åºã«å¤±æãã¾ããã","featured.imageReviewHint":"æ½åºçµæã確èªãã追å ããéæã鏿:","featured.imageUnresolved":"解決ã§ãã¾ããã§ãã","featured.imagePickOne":"1件以ä¸é¸æãã¦ãã ããã","featured.imageSlotsExceeded":"æ®ã{{slots}}ä»¶ã®ã¿è¿½å å¯è½ã§ãã","featured.imageAddSelected":"鏿{{count}}ä»¶ã追å ","featured.bulkSkipped":"{{count}}ä»¶ã¹ãããï¼éè¤ã¾ãã¯ä¸éï¼ã","dashboard.topPicksSub":"Growth · Momentum · Quality · Sentiment â Risk â ç£æ»æ¸ã¿ Mega Cap ã® AI Momentum ã©ã³ãã³ã°","dashboard.topPicksRefresh":"ã©ã³ãã³ã°æ´æ°","dashboard.megaCap":"US Mega Cap Top 20","dashboard.megaCapSub":"ä¾¡æ ¼æ¨ç§»ãSPY対æ¯RSãPrimeScoreãPrimeHealthï¼ä¼è¨å質ï¼","dashboard.sector":"US Sector Top 24","dashboard.sectorSub":"6ã»ã¯ã¿ã¼ à 4éæ â Technology, Communication Services, Healthcare, Financial, Consumer, Industrial","macro.empty":"ãã¯ããã¼ã¿ãåå¾ã§ãã¾ãããFRED_API_KEYãè¨å®ãã¦ãã ããã","macro.fredOpenOnFred":"FREDã§{{title}}ãéã","macro.fredAxisPercent":"Percent","macro.fredAxisIndex":"Index","macroAnalysis.title":"Macro Analysis","macroAnalysis.back":"ããã·ã¥ãã¼ãã¸","macroAnalysis.currentReading":"Current reading","macroAnalysis.asOf":"As of","macroAnalysis.percentile5y":"5Y Percentile","macroAnalysis.marketRegime":"Market Regime","macroAnalysis.titanView":"PrimeView","macroAnalysis.impact":"Impact","macroAnalysis.chartTrend":"Trend","macroAnalysis.range1Y":"1Y","macroAnalysis.range5Y":"5Y","macroAnalysis.range10Y":"10Y","macroAnalysis.rangeMax":"Max","macroAnalysis.chartLoading":"Loading chartâ¦","macroAnalysis.noChart":"No chart data available.","macroAnalysis.memo":"Macro Intelligence","macroAnalysis.generate":"Generate report","macroAnalysis.generateFirst":"Generate first report","macroAnalysis.generateAll":"Generate all macro reports","macroAnalysis.generateFailed":"Failed to generate report.","macroAnalysis.copyMd":"Copy Markdown","macroAnalysis.copied":"Copied!","macroAnalysis.downloadMd":"Download .md","macroAnalysis.reportList":"Report archive","macroAnalysis.filterAll":"All indicators","macroAnalysis.listEmpty":"No macro reports yet.","macroAnalysis.col.date":"Date","macroAnalysis.col.indicator":"Indicator","macroAnalysis.col.regime":"Regime","macroAnalysis.col.view":"PrimeView","macroAnalysis.col.report":"Report","macroAnalysis.openReport":"Open","macroAnalysis.empty":"No macro analysis report for this indicator yet.","macroAnalysis.loadFailed":"Failed to load macro report.","macroAnalysis.notFound":"Report not found.","macroAnalysis.invalidIndicator":"Unknown macro indicator.","news.market.title":"鱿¬¡å¸å ´ã¤ã³ããªã¸ã§ã³ã¹","news.market.empty":"å¸å ´ãã¥ã¼ã¹è¦ç´ãåå¾ã§ãã¾ããã","news.category.market":"å¸å ´","news.category.ai":"AI","news.category.rates":"éå©","news.intelligence.title":"Market News Intelligence","news.intelligence.back":"Back to dashboard","news.intelligence.insightTitle":"é±éãã¼ã±ããã¤ã³ãµã¤ã","news.intelligence.archive":"Archive","news.intelligence.archiveEmpty":"No past editions yet.","news.intelligence.viewArchive":"View archive","news.intelligence.empty":"No weekly editions yet.","news.intelligence.generate":"Generate this week","news.intelligence.generateFirst":"Generate first edition","news.intelligence.generateFailed":"Failed to generate market news.","news.intelligence.loadFailed":"Failed to load market news.","news.intelligence.notFound":"Edition not found.","market.col.company":"伿¥","market.col.price":"ä¾¡æ ¼","market.col.marketCap":"æä¾¡ç·é¡","market.col.pe":"P/E","market.col.change":"1年騰è½","market.col.rs":"SPY対æ¯RS","market.col.risk":"ãªã¹ã¯","market.col.titanHealth":"PrimeHealth","market.col.titanScore":"PrimeScore","market.col.watch":"ç£è¦","market.stale":"ä¸é¨ã®æ ªä¾¡ã¯ãã£ãã·ã¥ããæ´æ°ä¸ã§ãã","market.remainingQuotes":"Alpha Vantageç¡ææ ã®ãããæ®ã{{count}}éæã§ããç´1åå¾ã«èªåã§ç¶è¡ãã¾ãã","market.loadingMore":"ï¼è¿½å èªè¾¼ä¸â¦ï¼","market.loadMore":"ããã«åå¾","market.loadingBatch":"æ ªä¾¡ãèªã¿è¾¼ã¿ä¸â¦","market.analyze":"åæ","market.sort.asc":"æé ã§ä¸¦ã¹æ¿ã","market.sort.desc":"éé ã§ä¸¦ã¹æ¿ã","market.sectorShare":"ã»ã¯ã¿ã¼æä¾¡ç·é¡æ¯ {{pct}}%","watchlist.title":"ã¦ã©ãããªã¹ã","watchlist.subtitle":"é·æåªè¯æ ªãä¾¡æ ¼ãã¬ã³ãã¨PrimeHealthã§è¿½è·¡","watchlist.add":"ã¦ã©ãããªã¹ãã«è¿½å ","watchlist.remove":"åé¤","watchlist.watching":"追跡ä¸","
1584watchlist.empty":"ã¦ã©ãããªã¹ãã«éæãããã¾ããã","watchlist.explore":"ããã·ã¥ãã¼ããè¦ã","watchlist.viewReport":"ç£æ»ã¬ãã¼ããè¦ã","sector.technology":"ãã¯ããã¸ã¼","sector.healthcare":"ãã«ã¹ã±ã¢","sector.financial":"éè","sector.consumer":"æ¶è²»","sector.industrial":"ã¤ã³ãã¹ããªã¢ã«","sector.communicationServices":"ã³ãã¥ãã±ã¼ã·ã§ã³ã»ãµã¼ãã¹","charts.price.title":"æ ªä¾¡ã»ãã¯ããªã¼ãã¼ã¬ã¤","admin.dashboard":"管çè
ã¤ã³ããªã¸ã§ã³ã¹ããã·ã¥ãã¼ã","admin.dashboardHint":"ãã£ãã·ã¥ã¯èªå表示 · ææ°åå¾ã¯Editorã®ã¿","dashboard.idle":"ãã®ã»ã¯ã·ã§ã³ã®ãã£ãã·ã¥ãããã¾ãããEditorãå³ã®ãã¿ã³ã§ææ°ãã¼ã¿ãåå¾ã§ãã¾ãã","dashboard.fetchEditorOnly":"ææ°åå¾ã«ã¯Editorãã°ã¤ã³ãå¿
è¦ã§ã","dashboard.source":"ãã¼ã¿ã½ã¼ã¹","dashboard.fetchedAt":"æ´æ°","dashboard.fetch.fred":"FREDããææ°æ
å ±ãåå¾","dashboard.fetch.perplexity":"Perplexityããææ°æ
å ±ãåå¾","dashboard.fetch.alphavantage":"æ ªä¾¡ã®ææ°æ
å ±ãåå¾","market.fetchError":"å¸å ´ãã¼ã¿ã®åå¾ã«å¤±æãã¾ããã","reports.selectAnalyze":"éæé¸æã¨ãªã¹ã¯åæ","reports.pickerTitle":"ã¡ã¬ãã£ããéæã鏿","reports.runAnalysis":"ãªã¹ã¯åæãå®è¡","reports.cancel":"ãã£ã³ã»ã«","reports.emptyAdmin":"ã¬ãã¼ããããã¾ããããã¿ã³ããåæãéå§ãã¦ãã ããã","reports.title":"ææ°ãªã¹ã¯ã¬ãã¼ã","reports.subtitle":"äºåçæãããAIç£æ»ã¡ã¢","reports.empty":"ã¬ãã¼ããããã¾ããã","reports.cta":"æåã®åæãéå§","stats.views":"é²è¦§æ°","stats.reportReads":"ã¬ãã¼ãé²è¦§","stats.downloads":"ãã¦ã³ãã¼ã","stats.shares":"å
±æ","nexus.siteViews":"ãµã¤ãé²è¦§","nexus.siteViewsHint":"NextPrimuså
¨ä½ã®ãã¼ã¸è¨ªåæ°","nexus.trafficTrend":"ãã©ãã£ãã¯æ¨ç§»ï¼7æ¥ï¼","nexus.adminTitle":"ãã©ãã£ãã¯ããã·ã¥ãã¼ã","nexus.adminSubtitle":"ãã¼ã¸ãã¥ã¼ãã¨ã³ãã£ãã£å
訳ãã³ã³ãã³ãææ","nexus.adminLink":"ãã©ãã£ãã¯","nexus.editorRequired":"ãã©ãã£ãã¯åæã«ã¯Editorãã°ã¤ã³ãå¿
è¦ã§ãã","nexus.exportCsv":"CSVã¨ã¯ã¹ãã¼ãï¼30æ¥ï¼","nav.home":"ãã¼ã ","analyze.title":"伿¥ãªã¹ã¯åæ","analyze.subtitle":"ç±³å½ã¡ã¬ãã£ããTop20å
ã§æ¤ç´¢","analyze.searchLabel":"ãã£ãã«ã¼ã¾ãã¯ä¼æ¥å","analyze.searchPlaceholder":"ä¾: NVDA, Apple, Tesla","analyze.searching":"æ¤ç´¢ä¸...","analyze.selected":"鏿","analyze.uploadPhase2":"SECæåºæ¸é¡ã¢ãããã¼ãï¼Phase 2ï¼","analyze.uploadHint":"PDFãXBRL â æºåä¸","analyze.start":"åæéå§","analyze.errorEmpty":"Top20ãªã¹ããã伿¥ã鏿ãã¦ãã ããã","analyze.errorGeneric":"åæä¸ã«ã¨ã©ã¼ãçºçãã¾ããã","report.notFound":"ã¬ãã¼ããè¦ã¤ããã¾ããã","report.newAnalysis":"æ°è¦åæ","report.riskScore":"ãªã¹ã¯ã¹ã³ã¢","report.titanHealth":"PrimeHealth","report.titanScore":"PrimeScore","report.summary":"ãªã¹ã¯æ¦è¦","report.auditMemo":"AIç£æ»ã¡ã¢","report.anomalies":"ç°å¸¸ãã¼ãããã","report.news":"ãã¥ã¼ã¹ã»å¸å ´ã³ã³ããã¹ã","report.metrics":"è²¡åææ¨","report.print":"å°å· / PDF","report.share":"å
±æ","report.like":"ããã","report.back":"ãã¹ã¦ã®ã¬ãã¼ã","risk.high":"é«ãªã¹ã¯","risk.medium":"注æ","risk.low":"å®å®","loading.fetching":"SECã»å¸å ´ãã¼ã¿åå¾ä¸...","loading.calculating":"BeneishãAltmanãFCFè¨ç®ä¸...","loading.analyzing":"GPTç£æ»ã¡ã¢çæä¸...","footer.developed":"Developed by NextPlatform","footer.updated":"æçµæ´æ°","footer.scope":"NextPrimus · Macro · Sector · Audit · Compounder Intelligence","metrics.beneish.label":"Beneish M-Score","metrics.beneish.info":"8ã¤ã®è²¡åæ¯çã§å©çæä½ã®å¯è½æ§ãæ¤åºãã¾ãã-2.22ãè¶
ããã¨ç²é£¾ãªã¹ã¯ã®ã·ã°ãã«ã¨ã¿ãªããã¾ãã","metrics.beneish.hint.manipulator":"æä½ãªã¹ã¯ã·ã°ãã«","metrics.beneish.hint.normal":"æ£å¸¸","metrics.altman.label":"Altman Z-Score","metrics.altman.info":"æµåæ§ã»åçæ§ã»ã¬ãã¬ãã¸çããåç£ãªã¹ã¯ãè©ä¾¡ãã¾ãã2.99以ä¸ã¯å®å®ã1.81æªæºã¯å±éºåã§ãã","metrics.altman.zone.safe":"å®å®","metrics.altman.zone.grey":"注æå","metrics.altman.zone.distress":"å±éº","metrics.debtRatio.label":"è² åµæ¯ç","metrics.debtRatio.info":"ç·è² åµãç·è³ç£ã§å²ã£ãæ¯çãé«ãã»ã©è²¡åã¬ãã¬ãã¸ã¨è¿æ¸ãªã¹ã¯ãå¢ãã¾ãã","metrics.debtRatio.hint":"è² åµ / è³ç£","metrics.ocfNi.label":"OCF / NI","metrics.ocfNi.info":"å¶æ¥CF対ç´å©çã®æ¯çã1ã«è¿ãã»ã©ãã£ãã·ã¥ã®è£ä»ããå¼·ãåçã¨ã¿ãªã
1584ãã¾ãã","metrics.ocfNi.hint":"ãã£ãã·ã¥åçå質","metrics.compare.line":"Top20å¹³å: {{avg}} · {{relation}}","metrics.compare.better":"å¹³åãã{{diff}}è¯å¥½","metrics.compare.worse":"å¹³åãã{{diff}}å£ã","metrics.compare.inLine":"å¹³åã¨åç¨åº¦","charts.radar.liquidity":"æµåæ§","charts.radar.profitability":"åçæ§","charts.radar.leverage":"ã¬ãã¬ãã¸","charts.radar.growth":"æé·","charts.radar.cashFlow":"ãã£ãã·ã¥ããã¼","charts.radar.series":"財åå®å®æ§","charts.cashflow.title":"ãã£ãã·ã¥ããã¼","charts.cashflow.operating":"å¶æ¥CF","charts.cashflow.investing":"æè³CF","charts.cashflow.financing":"財åCF","charts.cashflow.fcf":"FCF","charts.debt.title":"è² åµæ§é ","charts.debt.shortTerm":"çæè² åµ","charts.debt.longTerm":"é·æè² åµ","charts.debt.equity":"è³æ¬","charts.heatmap.empty":"ç°å¸¸ãã¼ã¿ãªã","severity.low":"ä½","severity.medium":"ä¸","severity.high":"é«","top100.empty":"ã©ã³ãã³ã°ãã¼ã¿ãããã¾ãããåæãå®è¡ãã㨠PrimeScore é ä½ãçæããã¾ãã","top100.col.rank":"é ä½","top100.col.company":"伿¥","top100.col.theme":"ãã¼ã","top100.col.titanScore":"PrimeScore","top100.col.grade":"ã°ã¬ã¼ã","top100.col.titanStatus":"TitanStatus","titan.grade.elite":"Titan Elite","titan.grade.strongBuy":"Strong Buy","titan.grade.buy":"Buy","titan.grade.hold":"Hold","titan.grade.weak":"Weak","titan.status.leaders":"Leaders","titan.status.challengers":"Challengers","titan.status.drifters":"Drifters","titan.status.relics":"Relics","top100.viewAll":"View full Top 20 â","top100.loadMore":"Load more","top100.pageTitle":"Top 20 AI Momentum Stocks","top100.pageSubtitle":"Mega Cap Top 20 universe PrimeScore rankings","top100.filter.grade":"Grade","top100.filter.titanStatus":"TitanStatus","top100.filter.theme":"Theme","top100.filter.allGrades":"All grades","top100.filter.allStatuses":"All statuses","top100.filter.allThemes":"All themes","top100.showing":"Showing {{count}} of {{total}}","titan.breakdown.title":"PrimeScore Breakdown","titan.breakdown.growth":"Growth","titan.breakdown.momentum":"Momentum","titan.breakdown.quality":"Quality","titan.breakdown.sentiment":"Sentiment","titan.breakdown.risk":"Risk","titan.breakdown.formula":"PrimeScore = 25% Growth + 30% Momentum + 20% Quality + 15% Sentiment â 10% Risk","titan.breakdown.unavailable":"Sub-scores available after a new PrimeScore v2 analysis.","titan.report.dualHint":"PrimeScore = outperform potential · PrimeHealth = accounting quality","sector.titanLeader":"Titan Leader","sector.refresh":"ã»ã¯ã¿ã¼æ ªä¾¡ãæ´æ°","strategy.pageTitle":"Trend Compounder","strategy.pageSubtitle":"PrimeScore + TRP + Market Regime + Position Sizing","strategy.ctaTitle":"Trend Compounder Strategy","strategy.ctaSubtitle":"質ã®é«ã伿¥ã®ä¸æãã¬ã³ã転æã¨æ®µéçãã¸ã·ã§ã³ã¬ã¤ã","strategy.ctaButton":"Strategyããã·ã¥ãã¼ã","strategy.refresh":"æ´æ°","strategy.refreshing":"æ´æ°ä¸â¦","strategy.staleHint":"APIå¶éã«ããä¸é¨éæã¯æ¬¡åæ´æ°ã¾ã§ä¿çãããå ´åãããã¾ãã","strategy.filterSignal":"ã·ã°ãã«","strategy.filterSector":"ã»ã¯ã¿ã¼","strategy.filterAll":"ãã¹ã¦","strategy.noData":"æ¦ç¥ãã¼ã¿ãããã¾ããã","strategy.backToDashboard":"Strategyã«æ»ã","strategy.signal":"ã·ã°ãã«","strategy.position":"ãã¸ã·ã§ã³","strategy.confidence":"ä¿¡é ¼åº¦","strategy.targetWeight":"ç®æ¨ã¦ã§ã¤ã","strategy.viewDetail":"詳細","strategy.viewReport":"ãªã¹ã¯ã¬ãã¼ã","strategy.summaryTitle":"Trend Compounder Signal","strategy.summarySubtitle":"TRPå転ãã«ã¹ã¨ãã¸ã·ã§ã³ãã£ã¢","strategy.detailSubtitle":"ãã®éæã®PrimeScoreãTRP Velocityããã¸ã·ã§ã³ã¬ã¤ãã","strategy.chartTitle":"{{symbol}} ä¾¡æ ¼ãã£ã¼ã","strategy.chartRange":"6M · æ¥è¶³","strategy.chartCaption":"TradingViewæä¾ãã£ã¼ããæ¢å®è¡¨ç¤º: ç´è¿6ãæã®æ¥è¶³ + VolumeãEMA 20/50/100/200ãMACDï¼ã¢ã¡ã³ã¿ã è£å©ï¼ãã¦ã£ã¸ã§ããã§æéã»è¶³ã夿´ã§ãã¾ãã","strategy.chartUnavailable":"ãã£ã¼ãã·ã³ãã«ãå©ç¨ã§ãã¾ããã","strategy.chartLoadError":"TradingViewãã£ã¼ããèªã¿è¾¼ãã¾ããã§ããããããã¯ã¼ã¯ã確èªãã¦å試
1584è¡ãã¦ãã ããã","strategy.historyTitle":"Signal History","strategy.historySubtitle":"ç´è¿{{days}}æ¥ Â· ã¹ãããã·ã§ãã {{count}}ä»¶","strategy.historyEmpty":"宿¸¬ã¹ãããã·ã§ãããä¸è¶³ãã¦ãã¾ããæ¥ä»ãå¤ãã¦æ´æ°ããã¨å±¥æ´ãèç©ããã¾ãã","strategy.historyScores":"PrimeScore · TRP · Market Regime","strategy.historyVelocity":"Velocity (7æ¥)","strategy.historySignal":"Signal","strategy.historyPrime":"PrimeScore","strategy.historyTrp":"TRP","strategy.historyRegime":"Market Regime","auth.signInWithGoogle":"Googleã§ç¶è¡","auth.firebaseNotConfigured":"Firebaseãæªè¨å®ã§ããVITE_FIREBASE_* ãç°å¢å¤æ°ã«è¿½å ãã¦ãã ããã","auth.editorOnlyGoogle":"Editoræä½ã«ã¯è¨±å¯ãããGoogleã¢ã«ã¦ã³ããå¿
è¦ã§ãã","nav.intro":"About","intro.seoTitle":"NextPrimus | About â Investment Intelligence","intro.seoDescription":"From investment data to investment intelligence â how NextPrimus helps investors judge faster and deeper with AI.","intro.eyebrow":"Investment Intelligence","intro.heroHeadline":"æè³ãã¼ã¿ããæè³ã¤ã³ããªã¸ã§ã³ã¹ã¸","intro.heroLead":"代ããã«æè³ããAIã§ã¯ãªããããéãæ·±ã夿ã§ããããæ¯ããAIæè³ã¤ã³ããªã¸ã§ã³ã¹ã§ãã","intro.ctaMarket":"å¸å ´ãè¦ã","intro.ctaJournal":"Journalãèªã","intro.ctaHome":"ãã¼ã ã¸","intro.quote":"Investors donât need more information. They need context.","intro.quoteSupport":"What matters, how it connects, and what it means for your judgment â that is where NextPrimus begins.","intro.problemEyebrow":"01 · The problem","intro.problemTitle":"More data isnât the answer. Context is.","intro.problemBody1":"Earnings, indicators, sector news, broker notes, flows, global headlines, price and volume â the list never stops growing. The issue is rarely a shortage of information.","intro.problemBody2":"In a flood of signals, it becomes hard to know what matters, how pieces relate, and what they mean for the decision in front of you.","intro.problemQuestion":"âSo how should I look at this company right now?â","intro.valueEyebrow":"02 · Core value","intro.value1Title":"Connect scattered data into one point of view","intro.value1Body":"NextPrimus is not a price-only product. Market data, company fundamentals, news, industry context, and investor flows are linked into a single investment narrative.","intro.value1Points":["What is the recent price trend?","How are volume and flows changing?","Are sales and operating profit improving?","Is the core business growing?","Where is the industry heading?","What news actually matters?","How is the market pricing the future?"],"intro.value1Close":"Not one datapoint â the relationships between datapoints.","intro.value2Title":"AI that turns complexity into clear language","intro.value2Body":"We donât stop at âoperating profit rose 35% YoY.â We ask why it improved, whether the change is structural, how it compares to expectations, and which variables still matter.","intro.value2Close":"From summarizing information to understanding investment context.","intro.featuresEyebrow":"03 · Capabilities","intro.featuresTitle":"What NextPrimus helps you see","intro.featuresLead":"Four lenses â market, company, signal, and research â that keep judgment in the investorâs hands.","intro.feature1Title":"AI Market Intelligence","intro.feature1Body":"Indicators, price action, volume, flows, and major news are combined so you can see what matters in todayâs market at a glance.","intro.feature2Title":"AI Company Intelligence","intro.feature2Body":"Basics, price & volume, financials, growth, profitability, valuation, news, industry, thesis, and risks â connected to answer: what is changing in this company now?","intro.feature3Title":"Investment Signal","intro.feature3Body":"Volume spikes, trend shifts, flow changes, earnings revisions, policy moves, and events surface as signals worth a second look â not auto buy/sell orders.","intro.feature4Title":"AI Investment Research","intro.feature4Body":"Ask in natural language: Is the improvement structural? How does valuation compare to history? What changed in the last month? AI gathers and frames the context.","intro.diffEyebrow":"04 · Difference","intro.diffTitle":"Not a stock-picking chatbot","intro.diffBody":"Instead of âbuy this,â NextPrimus focuses on why a name is in focus, which data supports the idea, and which risks cut the other way.","intro.diffClose"
1584:"Recommendation less. Intelligence more.","intro.assistantEyebrow":"05 · Direction","intro.assistantTitle":"Your personal AI research assistant","intro.assistantBody":"You set names and themes of interest. AI keeps watching. When something important shifts â earnings beats, multi-day foreign buying, policy changes, a shift in news tone â it brings the signal to you.","intro.assistantClose":"From hunting every feed yourself to having AI bring what matters.","intro.archEyebrow":"06 · Architecture","intro.archTitle":"Agent-based investment intelligence","intro.archBody":"Not a single chatbot answer â specialized agents collect, analyze, validate, and synthesize across market, company, news, financials, and signals.","intro.archFlow":["Market Data","Data Collection Agents","Financial / News / Industry / Technical Analysis","AI Research Agents","Cross Validation","Investment Intelligence","Investor"],"intro.agentMarket":"Market Agent","intro.agentMarketDesc":"Tracks market-wide moves and key indicators.","intro.agentCompany":"Company Agent","intro.agentCompanyDesc":"Analyzes financial and business changes for each firm.","intro.agentNews":"News Agent","intro.agentNewsDesc":"Collects events and filters what is material.","intro.agentFinancial":"Financial Agent","intro.agentFinancialDesc":"Reads performance and valuation context.","intro.agentSignal":"Signal Agent","intro.agentSignalDesc":"Detects meaningful shifts in market data.","intro.agentResearch":"Research Agent","intro.agentResearchDesc":"Synthesizes findings into investor-ready language.","intro.closingTagline":"From Investment Data to Investment Intelligence","intro.closingBody":"The edge is no longer collecting more feeds. It is spotting important change and understanding what it means.","intro.closingQuestions":["What is changing in the market right now?","Which companies and industries does that change touch?","What does that change mean for an investor?"],"intro.closingFinal":"AI does not replace the investor. It helps the investor judge better.","intro.disclaimer":"Information and analysis on NextPrimus are for reference only. They are not investment advice and do not guarantee returns or recommend buying or selling any security.","auth.orEditor":"ã¾ã㯠Editor ã¡ã¼ã«","auth.voucherCode":"ãã¦ãã£ã¼ã³ã¼ã","auth.editorSignIn":"Editor ãµã¤ã³ã¤ã³","journal.authorTitle":"èè ã«ã¤ãã¦","journal.authorName":"Jun","journal.authorEmail":"[email protected]","journal.authorBio":"AI·í´ë¼ì°ë ìí¤í í¸ì´ì AI ìëì ìµì íë í¬ì ìì¬ê²°ì ì§ììì¤í ë¹ë. NextPlatformì íµí´ AI·í´ë¼ì°ë 기ì ì ì°êµ¬íê³ ì¤ë¬´ì ì ì©íë©°, NextPrimus를 íµí´ ìì¥Â·ê¸°ì ·ì°ì ë°ì´í°ë¥¼ AIë¡ ì°ê²°í´ í¬ììê° ë ë¹ ë¥´ê³ ê¹ì´ ìê² íë¨í ì ìë Investment Intelligence íê²½ì ë§ë¤ì´ê°ê³ ììµëë¤.","journal.authorBioChaewon":"NextPrimus Editorãæè³å®¶ãå¸å ´ã¨ä¼æ¥ãããéããããæç¢ºã«å¤æã§ãããã Investment Intelligence ã³ã³ãã³ãã¥ããã«æºãã£ã¦ãã¾ãã","intro.glossaryEyebrow":"07 · Glossary","intro.glossaryTitle":"NextPrimus Glossary","intro.glossaryLead":"Marketã»Compoundersã»Journalã»Strategyã§ç¹°ãè¿ãç»å ´ããç¨èªããåãã¦ã®æ¹åãã«æ´çãã¾ããã","intro.glossaryItems":[{term:"Market Regime",body:`æ ªå¼å¸å ´å ¨ä½ããªã¹ã¯é¸å¥½ï¼Risk-onï¼ããªã¹ã¯åé¿ï¼Risk-offï¼ã«è¿ããã 0â100 ã§è¦ç´ããææ¨ã§ãã 1585 1586åå¥ä¼æ¥ã®è³ªãè¦ã PrimeScore ã¨ã¯ç°ãªãããä»ã®å¸å ´ç°å¢èªä½ãæ ªå¼ã¨ã¯ã¹ãã¼ã¸ã£ã¼ã«åãã¦ãããããåãã¾ãã 1587 1588S&P500ã»Nasdaq ãã¬ã³ããVIXãå¸å ´ãã¬ããã¹ãéå©ãã¯ã¬ã¸ããï¼ç¾ç¶ãã¬ã¼ã¹ãã«ãï¼ãã»ã¯ã¿ã¼ã»ãªã¼ãã¼ã·ãããå éå¹³åããRISK_ONï¼80+ï¼ãBULLISHï¼65â79ï¼ãNEUTRALï¼50â64ï¼ãCAUTIONï¼35â49ï¼ãRISK_OFFï¼35æªæºï¼ã«å¯¾å¿ã¥ãã¾ãã 1589 1590ä¾: 57 / 100 㯠NEUTRALãæç¢ºãªå¼·æ°ã§ãå¼±æ°ã§ããªããããæ©ä¼ã¯ãããå ¨é¢çãªæ»æãã¬ãã¬ãã¸ã¯æ éã«è¦ãå±é¢ã§ããã¢ããªã§ã¯ä¸»ã«ã·ã°ãã«ã¨ãã¸ã·ã§ã³ãµã¤ãºã®æ¡ä»¶ã¨ãã¦ä½¿ããã©ã³ãã³ã°èªä½ãæ¸ãæãããããã©ã
1590ã ãæ»ããããã«è¿ãå½¹å²ã§ãã`},{term:"PrimeScore",body:`æé·ã»ã¢ã¡ã³ã¿ã ã»å質ã»ã»ã³ãã¡ã³ãã»ãªã¹ã¯ã 0â100 ã¨çç´ã«å§ç¸®ããéæåä½ã®å質ã¹ã³ã¢ã§ãã 1591 1592çç´ã¯ ELITEã»STRONGã»ATTRACTIVEã»WATCHã»WEAKãé·æ Compounder åè£ã¨ãã¦ã®å¼·ãã示ãã彿¥ã®å£²è²·æç¤ºã§ã¯ããã¾ããã 1593 1594ç£æ»ã¬ãã¼ããããã° Titan ãµãã¹ã³ã¢ããæ´¾çãããªããã°ä¾¡æ ¼ã»ã¢ã¡ã³ã¿ã ã®ãã©ã¼ã«ããã¯ã§ Strategy ã¦ããã¼ã¹ãåãã¾ãã`},{term:"TRP (Trend Reversal Potential)",body:`ä¾¡æ ¼æ§é ã¨ã¢ã¡ã³ã¿ã ããã¬ã³ãç¶ç¶ã»å復ã«ã©ãã ãæå©ãã 0â100 ã§æ¨å®ããã¹ã³ã¢ã§ãã 1595 1596çæã»ä¸æã¹ãã¼ããhigher-lowãç´è¿å®å¤ããã®ä½ç½®ãç§»åå¹³åã®ä¸¦ã³ãRSIããªã¿ã¼ã³ãçµã¿åãããEARLYã»CONFIRMEDã»STRONG ãªã©ã®å±é¢ã§æç度ã表ãã¾ãã 1597 1598TRP ã¯ãã£ã¼ãã®çµè·¯ã¨ã¿ã¤ãã³ã°ãPrimeScore ã¯äºæ¥ã®è³ªã«ç¦ç¹ãå½ã¦ã¾ãã両è ã§ãè¯ãä¼ç¤¾ãã¨ãæ¹åä¸ã®ã»ããã¢ããããåãã¦è¦ããã¾ãã`},{term:"Compounder",body:`æç¶çãªæé·ã»è³æ¬åççã»åæè³ãéãã¦é·æã«æ ªä¸»ä¾¡å¤ãè¤å©ã§å¢ãããã伿¥ã§ããçæãã¬ã¼ãã¨ã¯ç°ãªãã¾ãã 1599 1600NextPrimus ã® Trend Compounder 㯠PrimeScoreã»TRPã»Market Regime ãªã©ã§åè£ãé¸å¥ã»ã©ã³ãã³ã°ãããã¤ãºã追ãããåªè¯ãªã¼ãã¼ã®è»è·¡ã追ãå©ãã«ãªãã¾ãã 1601 1602Journalã»ã©ã³ãã£ã³ã°ã® Compounder Watch ã¯ãã®æ¤è¨ãªã¹ãã®ãã¥ã¬ã¼ã·ã§ã³ã§ãã`},{term:"Prime Signal",body:`PrimeScoreãTRPï¼ããã³ velocityï¼ãMarket Regime ãçµã¿åãããEARLY_ENTRYã»CONFIRMED_ENTRYã»HOLDã»REDUCEã»EXIT ãªã©ã®ç¶æ ã©ãã«ã«ããæææ±ºå®ãã¬ã¼ã ã§ãã 1603 1604èªå売買注æã§ã¯ãªãããå確èªãã価å¤ãããããæ¯éãå¢ãããã»æ¸ãããããæ´çãã¾ãã 1605 1606åã·ã°ãã«ã®çç±ï¼ä¾: ä½ã PrimeScoreãå¼±ã¾ã TRP ã¢ã¡ã³ã¿ã ï¼ã§ããªãããå¯è¦åããå¤æã¯æè³å®¶ã«æ®ãã¾ãã`},{term:"Position Sizing",body:`PrimeScoreã»Prime Signalã»åä¸éæä¸éã«åºã¥ãããã¼ããã©ãªãªã§ææ¡ããæ¯éã®å¤§ããã§ãã 1607 1608WATCHã»STARTã»BUILDã»COREã»MAX ãªã©ã®ãã£ã¢ã確信ãã³ãã示ãã¾ããå質ã¨ã·ã°ãã«ãå¼·ãã»ã©ææ¡æ¯éã¯å¤§ãããå¼±ãã»ããã¢ããã¯è¦³å¯ã»å°é¡ã«çã¾ãã¾ãã 1609 1610ãµã¤ã¸ã³ã°ã¯ã¤ã³ããªã¸ã§ã³ã¹ããªã¹ã¯è¦å¾ã«å¤ããRegime ã Signal ãæ éãæ±ããã¨ãã¯é« PrimeScore ã§ããã¼ããã©ãªãªãç¬å ããã¾ããã`}],"glossary.infoAria":"NextPrimus Glossaryã§{{term}}ã®èª¬æãè¦ã","glossary.terms.market-regime":"Market Regime","glossary.terms.primescore":"PrimeScore","glossary.terms.trp":"TRP","glossary.terms.compounder":"Compounder","glossary.terms.prime-signal":"Prime Signal","glossary.terms.position-sizing":"Position Sizing","strategy.rebuiltHint":"éæãã£ãã·ã¥ããã©ã³ãã³ã°ãåæ§ç¯ãã¾ãããç¸å ´APIãæ£å¸¸ãªã¨ãã« Editor ã§æ¦ç¥ãã¼ã¿ãæ´æ°ãã¦ãã ããã","strategy.emptyNeedsRefresh":"ãã£ãã·ã¥ã«é ä½éæãããã¾ãããéæè©³ç´°ãéãããç¸å ´APIã使ããã¨ãã« Editor ã§æ¦ç¥ãã¼ã¿ãæ´æ°ãã¦ãã ããã","strategy.emptyQuoteLimited":"æ´æ°çµæã空ã§ããç¸å ´APIã®ã¬ã¼ãå¶éã®å¯è½æ§ãããã¾ããæéãããã¦åæ´æ°ããããåå¥éæãã¼ã¸ã§ãã£ãã·ã¥ã温ãã¦ãã ããã","strategy.emptyFiltered":"ç¾å¨ã®ã·ã°ãã«/ã»ã¯ã¿ã¼æ¡ä»¶ã«ä¸è´ããéæãããã¾ããã","nav.alerts":"ã¢ã©ã¼ã","alerts.pageTitle":"ãã¼ã±ããã¢ã©ã¼ã","alerts.pageSubtitle":"ç£è¦ã¦ããã¼ã¹ã®åºå¤å転ï¼TRP/Signal + Squeeze/EMAï¼ã¨ SKY FALL åºåæ¥è½è¦åã§ãã","alerts.empty":"ã¾ã ã¢ã©ã¼ãã¯ããã¾ãããæ¥æ¬¡ alert-scan ãã·ã°ãã«ãæ¤åºããã¨è¡¨ç¤ºããã¾ãã","alerts.loadError":"ã¢ã©ã¼ããèªã¿è¾¼ãã¾ããã§ããã","alerts.bottomReversal":"åºå¤å転","alerts.viewTicker":"æ¦ç¥ãã£ã¼ããéã","alerts.universeTitle":"ç£è¦ã¦ããã¼ã¹","alerts.return5d":"5æ¥ãªã¿ã¼ã³","alerts.squeezeUp":"Squeeze ä¸åã","alerts.emaStretch":"EMAä¹é¢"},Ule="NextPrimus",Wle="Investment Intelligence",Hle={brand:Ule,tagline:Wle,"nav.analyze":"å¼å§åæ","nav.top100":"Top 20","nav.watchlist":"è§å¯å表","nav.market":"Market","nav.discover":"Discover","nav.compounders":"Compounders","nav.trail":"Trail","nav.journal":"Journal","nav.menu":"èå","nav.language":"è¯è¨","auth.logIn":"ç»å½","auth.logOut":"éåº","auth.loginTitle":"ç»å½","auth.loginSubtitle":"ä½¿ç¨ Google ç»å½ï¼æä½¿ç¨ Editor é®ç®±ãå¯ç ååè¯ç ã","auth.email":"é®ç®±","auth.password":"å¯ç ","auth.submit":"ç»å½","auth.cancel":"åæ¶","auth.close":"å ³é","auth.editorLabel":"Editor {{name}}","auth.welcomeEditor":"æ¬¢è¿ Editor {{name}}","auth.hint":"æ®é Google è´¦æ·ä¸º ReaderãEditor å¯ç ç»å½è¿éè¦åè¯ç ã","auth.readerLocalHint":"已以 Reader 身份ç»å½ãå ³æ³¨å表ä¸äºå¨ä» ä¿å卿¬æµè§å¨ã","auth.editorOnly":"æ°å»ºåæéè¦ Editor è´¦æ·ã","auth.watchlistLogin":"è¯·ä½¿ç¨ Reader æ Editor ç»å½ä»¥ä½¿ç¨è§å¯å表ã","hero.title":"Follow the Trail of Market Primus","hero.subtitle":"Macro · Sector · Trend · Compounder Intelligence","hero.cta":"åæ Mega Cap","hero.ctaMarket":"æ¢ç´¢ä»æ¥å¸åº","hero.ctaCompounders":"æ¢ç´¢ C
1610ompounders","hero.photoCredit":"Beautiful photo by","hero.topPick":"Today's Top Pick","hero.koreanLead":"å¨ç¾å½è¡å¸å¯»æ¾å¯è½æä¸ºææ¥å¸åºå·¨æçå
¬å¸ã","magazine.seo.homeTitle":"NextPrimus â US Stock Market Intelligence","magazine.seo.homeDescription":"追踪å®è§ãè¡ä¸é¢å¯¼åãå
¬å¸è´¨éä¸è¶å¿å转ç AI æèµæ´å¯æå¿ã","magazine.seo.marketTitle":"NextPrimus | Market Intelligence","magazine.seo.marketDescription":"仿¥å¸åºä½å¶ãæ¯å¨å¸åºæ
äºä¸è¡ä¸è½®å¨ã","magazine.seo.trailTitle":"NextPrimus | Trail â Momentum & Trend Compounders","magazine.seo.trailDescription":"Prime Movers ä¸ Trend Compounder Radarã","magazine.seo.compoundersTitle":"NextPrimus | Compounders","magazine.seo.compoundersDescription":"Prime TrailãMega Cap ä¸ Behind the Numbersã","magazine.seo.journalTitle":"NextPrimus | Investment Journal","magazine.seo.journalDescription":"Editor å®¡æ ¸çå¸åºç¬è®° â å
³æ³¨æ çãåå䏿ä¸åçäºã","journal.hubTitle":"Investment Journal","journal.hubLead":"å
³äºä½å¶ãå
³æ³¨ååä¸å³çèæ¯ç Editor å®¡æ ¸ç¬è®°ãä¸ä¼èªå¨åå¸ã","journal.archiveTitle":"Journal archive","journal.archiveSubtitle":"ä»
æ¾ç¤ºå·²å叿¡ç®ã","journal.empty":"å°æ å·²åå¸ Journalã","journal.emptyAdmin":"å°æ è稿æå·²å叿¡ç®ã","journal.defaultTitle":"Investment Journal","journal.regime":"Market Regime","journal.watching":"What I'm Watching","journal.whatChanged":"What Changed","journal.whatImNotDoing":"What I'm Not Doing","journal.myStrategy":"My Strategy","journal.nextReview":"Next Review","journal.backToArchive":"è¿å Journal","journal.readEntry":"é
读æ¡ç®","journal.notFound":"æªæ¾å° Journal æ¡ç®ã","journal.manage":"管ç Journal","journal.manageLead":"èµ·èã审é
ä¸åå¸ãAI ä¸ä¼èªå¨åå¸ã","journal.newEntry":"æ°å»º","journal.editEntry":"ç¼è¾","journal.entries":"æ¡ç®å表","journal.saveDraft":"ä¿åè稿","journal.saveAiDraft":"Save AI-assisted Draft","journal.aiDraftRunning":"æ£å¨çæ AI è稿â¦","journal.aiDraftSaved":"AI è¾
å©è稿已ä¿åï¼æªåå¸ï¼ã","journal.aiDraftHint":"ç¨ Perplexity ç ç©¶ + GPT 润è²ä½ çç¬è®°ãä¸ä¼ç¼é åæ°ï¼ä¹ä¸ä¼èªå¨åå¸ã","journal.publish":"åå¸","journal.unpublish":"åæ¶åå¸","journal.delete":"å é¤","journal.confirmDelete":"å 餿¤ Journal æ¡ç®ï¼","journal.prefill":"ä» Strategy é¢å¡«","journal.prefilled":"å·²ä» Strategy ç¼åé¢å¡« Regime ä¸ watching 代ç ã","journal.saved":"è稿已ä¿åã","journal.created":"è稿已å建ã","journal.published":"å·²åå¸ã","journal.unpublished":"已忶åå¸ã","journal.deleted":"å·²å é¤ã","journal.fieldDate":"æ¥æ","journal.fieldLang":"è¯è¨","journal.fieldTitle":"æ é¢","journal.fieldRegimeScore":"Regime score","journal.fieldRegimeLabel":"Regime label","journal.fieldWatching":"Watching tickers","journal.watchingLimit":"æå¤éæ© {{count}} 个代ç ","journal.maxWatchingTickers":"Watching tickers æå¤å¯éæ© {{count}} 个ã","journal.compounderWatch":"Compounder Watch","journal.tickerSignals":"æé代ç ç TRP · Signal","journal.loadingTickerSignals":"æ£å¨å è½½ç¼åç Strategy ææ â¦","journal.tickerSignalUnavailable":"没æç¼åç TRP · Signal æ°æ®ã","magazine.prime.title":"Today's Prime","magazine.prime.subtitle":"å¸åºä½å¶ãå®è§èæ¯ä¸ä»æ¥æ
äºã","magazine.prime.regimeIdle":"å°æªç¼å Market Regimeã","magazine.prime.storyLabel":"Today's Market Story","magazine.prime.storyIdle":"å°æ æ¯å¨å¸åºæ
äºã","magazine.prime.readStory":"é
读 Market Story","magazine.prime.highlight":"Highlight","magazine.story.title":"Market Story","magazine.story.subtitle":"è¦ç Market · AI · Rates çæ¯å¨ç¾è¡æ
æ¥ã","magazine.story.idle":"å°æ Market Story Editionã","magazine.movers.title":"Prime Movers","magazine.movers.subtitle":"å
³æ³¨å¨éä¸è¶å¿å éï¼èéå纯æ¶çæåã","magazine.movers.empty":"å°æ Prime Mover æ°æ®ã","magazine.radar.title":"Trend Compounder Radar","magazine.radar.subtitle":"ä¼è´¨å
¬å¸ä¸ä¸åè¶å¿è½¬æ¢ç交æ±ç¹ã","magazine.radar.empty":"å°æ Strategy Radar æ°æ®ã","magazine.radar.why":"Why We're Watching","magazine.radar.viewAll":"æå¼ Strategy 颿¿","magazine.sector.title":"Sector Rotation","magazine.sector.subtitle":"ç¾å½è¡ä¸çç¸å¯¹å¼ºåº¦ä¸çæé¢å¯¼åã","magazine.sector.empty":"å°æ è¡ä¸è¡æ
ç¼åã","magazine.watch.title":"Compounder Watch","magazine.watch.subtitle":"Editor ç²¾éä¼è´¨æ ç â PrimeHealth ä¸ç¸å¯¹å¼ºåº¦ã","magazine.watch.empty":"å°æ ç²¾é Compounderã","magazine.audit.title":"Behind the Numbers","magazine.audit.subtitle":"AI æ£è§ä¼è®¡è´¨éãç°éæµä¸è´¢å¡é£é©ã","magazine.audit.empty":"å°æ 审计æ¥åã","magazine.hub.marketLead":"å½ä¸ç¾å½å¸åºæ£å¨åçä»ä¹ã","magazine.hub.trailLead":"å
³æ
1610³¨ä¸ä¸åè¶å¿æ£å¨æµååªéã","magazine.hub.compoundersLead":"åªäºå
¬å¸å¼å¾é¿æè·è¸ªã","magazine.refresh":"å·æ°","magazine.viewDiscover":"æå¼ Discover","magazine.viewStrategy":"æå¼ Strategy","magazine.viewMacro":"æå¼ Macro","dashboard.macro":"å®è§ä»ªè¡¨æ¿","dashboard.macroSub":"å½±åç¾å½è¡å¸çäºå¤§æ ¸å¿ææ ","dashboard.news":"å¸åºæ°é»æ
æ¥","dashboard.newsSub":"å¸åºãAIãå©çæ°é»çæ¯å¨ AI æè¦","dashboard.topPicks":"Top 5 Strong Momentum Stocks","dashboard.featured":"Prime Trail Top 20","dashboard.featuredSub":"NextPrimus ç¼è¾ Jun çå
³æ³¨æ ç â P/E · RS · PrimeHealth","featured.editorHint":"æä»£ç /å
¬å¸åæç´¢æä¸ä¼ æèµç»åæªå¾ï¼æå¤20åªï¼ã","featured.searchPlaceholder":"ä¾ï¼PLTR, Palantir","featured.add":"æ·»å å°å表","featured.adding":"æ·»å ä¸â¦","featured.pickCompany":"è¯·ä»æç´¢ç»æä¸éæ©è¡ç¥¨ã","featured.limitReached":"æå¤å¯æ·»å 20 åªè¡ç¥¨ã","featured.addFailed":"æ·»å è¡ç¥¨å¤±è´¥ã","featured.removeFailed":"ç§»é¤è¡ç¥¨å¤±è´¥ã","featured.remove":"ç§»é¤ {{ticker}}","featured.count":"{{count}} / {{max}} åª","featured.emptyPublic":"ææ ç²¾éè¡ç¥¨ã","featured.emptyEditor":"éè¿æç´¢æå¾çä¸ä¼ æ·»å è¡ç¥¨åå°æ¾ç¤ºå¨æ¤å¤ã","featured.imageUploadTitle":"仿èµç»åæªå¾å¯¼å
¥","featured.imageUploadHint":"ä¸ä¼ å¸å App æä»å表æªå¾ï¼GPT å°æåè¡ç¥¨ä»£ç ã","featured.imageUploadButton":"éæ©å¾ç","featured.imageExtracting":"æåä¸â¦","featured.imageExtractFailed":"æ æ³ä»å¾çæåè¡ç¥¨ä»£ç ã","featured.imageReviewHint":"è¯·æ ¸å¯¹æåç»æå¹¶éæ©è¦æ·»å çè¡ç¥¨ï¼","featured.imageUnresolved":"æ æ³å¹é
","featured.imagePickOne":"请è³å°éæ©ä¸åªè¡ç¥¨ã","featured.imageSlotsExceeded":"ä»
å© {{slots}} 个空ä½ã","featured.imageAddSelected":"æ·»å å·²é {{count}} åª","featured.bulkSkipped":"è·³è¿ {{count}} 项ï¼é夿è¶
åºä¸éï¼ã","dashboard.topPicksSub":"Growth · Momentum · Quality · Sentiment â Risk â 已审计 Mega Cap ç AI Momentum æå","dashboard.topPicksRefresh":"å·æ°æå","dashboard.megaCap":"US Mega Cap Top 20","dashboard.megaCapSub":"ä»·æ ¼èµ°å¿ãç¸å¯¹ SPY 强度ãPrimeScoreãPrimeHealthï¼ä¼è®¡è´¨éï¼","dashboard.sector":"US Sector Top 24","dashboard.sectorSub":"å
大è¡ä¸ à ååªè¡ç¥¨ â Technology, Communication Services, Healthcare, Financial, Consumer, Industrial","macro.empty":"æ æ³å è½½å®è§æ°æ®ã请é
ç½® FRED_API_KEYã","macro.fredOpenOnFred":"å¨ FRED æå¼ {{title}}","macro.fredAxisPercent":"Percent","macro.fredAxisIndex":"Index","macroAnalysis.title":"Macro Analysis","macroAnalysis.back":"è¿å仪表ç","macroAnalysis.currentReading":"Current reading","macroAnalysis.asOf":"As of","macroAnalysis.percentile5y":"5Y Percentile","macroAnalysis.marketRegime":"Market Regime","macroAnalysis.titanView":"PrimeView","macroAnalysis.impact":"Impact","macroAnalysis.chartTrend":"Trend","macroAnalysis.range1Y":"1Y","macroAnalysis.range5Y":"5Y","macroAnalysis.range10Y":"10Y","macroAnalysis.rangeMax":"Max","macroAnalysis.chartLoading":"Loading chartâ¦","macroAnalysis.noChart":"No chart data available.","macroAnalysis.memo":"Macro Intelligence","macroAnalysis.generate":"Generate report","macroAnalysis.generateFirst":"Generate first report","macroAnalysis.generateAll":"Generate all macro reports","macroAnalysis.generateFailed":"Failed to generate report.","macroAnalysis.copyMd":"Copy Markdown","macroAnalysis.copied":"Copied!","macroAnalysis.downloadMd":"Download .md","macroAnalysis.reportList":"Report archive","macroAnalysis.filterAll":"All indicators","macroAnalysis.listEmpty":"No macro reports yet.","macroAnalysis.col.date":"Date","macroAnalysis.col.indicator":"Indicator","macroAnalysis.col.regime":"Regime","macroAnalysis.col.view":"PrimeView","macroAnalysis.col.report":"Report","macroAnalysis.openReport":"Open","macroAnalysis.empty":"No macro analysis report for this indicator yet.","macroAnalysis.loadFailed":"Failed to load macro report.","macroAnalysis.notFound":"Report not found.","macroAnalysis.invalidIndicator":"Unknown macro indicator.","news.market.title":"æ¯å¨å¸åºæ
æ¥","news.market.empty":"æ æ³å è½½å¸åºæ°é»æè¦ã","news.category.market":"å¸åº","
1610news.category.ai":"AI","news.category.rates":"å©ç","news.intelligence.title":"Market News Intelligence","news.intelligence.back":"Back to dashboard","news.intelligence.insightTitle":"æ¯å¨å¸åºæ´å¯","news.intelligence.archive":"Archive","news.intelligence.archiveEmpty":"No past editions yet.","news.intelligence.viewArchive":"View archive","news.intelligence.empty":"No weekly editions yet.","news.intelligence.generate":"Generate this week","news.intelligence.generateFirst":"Generate first edition","news.intelligence.generateFailed":"Failed to generate market news.","news.intelligence.loadFailed":"Failed to load market news.","news.intelligence.notFound":"Edition not found.","market.col.company":"å
¬å¸","market.col.price":"ä»·æ ¼","market.col.marketCap":"å¸å¼","market.col.pe":"å¸çç","market.col.change":"1年涨è·","market.col.rs":"ç¸å¯¹SPY","market.col.risk":"é£é©","market.col.titanHealth":"PrimeHealth","market.col.titanScore":"PrimeScore","market.col.watch":"å
³æ³¨","market.stale":"é¨åæ¥ä»·æ£å¨ä»ç¼åæ´æ°ã","market.remainingQuotes":"Alpha Vantage å
è´¹é¢åº¦ä¸å°æ {{count}} åªè¡ç¥¨ï¼çº¦ 1 åéåèªå¨ç»§ç»å è½½ã","market.loadingMore":"ï¼æ£å¨å è½½æ´å¤â¦ï¼","market.loadMore":"å è½½æ´å¤è¡æ
","market.loadingBatch":"æ£å¨å è½½è¡æ
â¦","market.analyze":"åæ","market.sort.asc":"ååºæåº","market.sort.desc":"éåºæåº","market.sectorShare":"æ¿åå¸å¼å æ¯ {{pct}}%","watchlist.title":"è§å¯å表","watchlist.subtitle":"ä»¥ä»·æ ¼è¶å¿å PrimeHealth è·è¸ªé¿æä¼è´¨è¡","watchlist.add":"å å
¥è§å¯å表","watchlist.remove":"ç§»é¤","watchlist.watching":"è·è¸ªä¸","watchlist.empty":"è§å¯åè¡¨ä¸ææ è¡ç¥¨ã","watchlist.explore":"æµè§ä»ªè¡¨æ¿","watchlist.viewReport":"æ¥ç审计æ¥å","sector.technology":"ç§æ","sector.healthcare":"å»ç","sector.financial":"éè","sector.consumer":"æ¶è´¹","sector.industrial":"å·¥ä¸","sector.communicationServices":"éä¿¡æå¡","charts.price.title":"è¡ä»·ä¸å®è§å å ","admin.dashboard":"管çåæ
æ¥ä»ªè¡¨æ¿","admin.dashboardHint":"ç¼åèªå¨æ¾ç¤º · ä»
Editor å¯ä»æ°æ®æºå·æ°","dashboard.idle":"æ¬æ¿åææ ç¼åãEditor å¯ä½¿ç¨å³ä¾§æé®è·åææ°æ°æ®ã","dashboard.fetchEditorOnly":"è·åææ°æ°æ®éè¦ Editor ç»å½","dashboard.source":"æ°æ®æ¥æº","dashboard.fetchedAt":"æ´æ°æ¶é´","dashboard.fetch.fred":"ä» FRED è·åææ°ä¿¡æ¯","dashboard.fetch.perplexity":"ä» Perplexity è·åææ°ä¿¡æ¯","dashboard.fetch.alphavantage":"è·åææ°è¡æ
","market.fetchError":"æ æ³å è½½è¡æ
ï¼è¯·æ£æ¥ API å¯é¥ã","reports.selectAnalyze":"éæ©è¡ç¥¨å¹¶è¿è¡é£é©åæ","reports.pickerTitle":"éæ© Mega Cap è¡ç¥¨","reports.runAnalysis":"è¿è¡é£é©åæ","reports.cancel":"åæ¶","reports.emptyAdmin":"å°æ æ¥åï¼è¯·ä½¿ç¨æé®å¼å§åæã","reports.title":"ææ°é£é©æ¥å","reports.subtitle":"é¢çæç AI 审计å¤å¿å½","reports.empty":"å°æ æ¥åã","reports.cta":"å¼å§é¦æ¬¡åæ","stats.views":"æ»æµè§é","stats.reportReads":"æ¥åé
读","stats.downloads":"ä¸è½½","stats.shares":"å享","nexus.siteViews":"ç«ç¹è®¿é®","nexus.siteViewsHint":"NextPrimus å
¨ç«é¡µé¢è®¿é®é","nexus.trafficTrend":"æµéè¶å¿ï¼7天ï¼","nexus.adminTitle":"æµé仪表æ¿","nexus.adminSubtitle":"页颿µè§ãå®ä½åå¸ä¸å
容表ç°","nexus.adminLink":"æµé仪表æ¿","nexus.editorRequired":"æ¥çæµéåæéè¦ Editor ç»å½ã","nexus.exportCsv":"å¯¼åº CSVï¼30天ï¼","nav.home":"é¦é¡µ","analyze.title":"ä¼ä¸é£é©åæ","analyze.subtitle":"å¨ç¾å½ Mega Cap Top 20 èå´å
æç´¢","analyze.searchLabel":"è¡ç¥¨ä»£ç æå
¬å¸åç§°","analyze.searchPlaceholder":"ä¾å¦ NVDAãAppleãTesla","analyze.searching":"æç´¢ä¸...","analyze.selected":"å·²é","analyze.uploadPhase2":"SEC æä»¶ä¸ä¼ ï¼Phase 2ï¼","analyze.uploadHint":"PDFãXBRL â å³å°æ¨åº","analyze.start":"å¼å§åæ","analyze.errorEmpty":"è¯·ä» Top 20 å表ä¸éæ©å
¬å¸ã","analyze.errorGeneric":"åæå¤±è´¥ï¼è¯·éè¯ã","report.notFound":"æªæ¾å°æ¥åã","report.newAnalysis":"æ°åæ","report.riskScore":"é£é©è¯å","report.titanHealth":"PrimeHealth","report.titanScore":"PrimeScore","report.summary":"é£é©æè¦","report.auditMemo":"AI 审计å¤å¿å½","report.anomalies":"å¼å¸¸çåå¾","report.news":"æ°é»ä¸å¸åºèæ¯","report.metrics":"è´¢å¡ææ ","report.print":"æå° / PDF","report.share":"å享","report.like":"ç¹èµ","report.back":"å
¨é¨æ¥å","risk.high":"é«é£é©","risk.medium":"注æ","risk.low":"稳å®","loading.fetching":"æ£å¨è·å SEC ä¸å¸åºæ°æ®...","loading.calculating":"æ£å¨è®¡ç® BeneishãAltmanãFCF...","loading.analyzing":"æ£å¨çæ GPT 审计å¤å¿å½...","footer.developed":"Developed by NextPlatform","footer.updated":"æåæ´æ°","footer.scope":"NextPrimus · Macro · Sector · Audit · Compounder Intelligence","metrics.beneish.label":"Beneish M-Score","metrics.beneish.info":"éè¿å
«é¡¹è´¢å¡æ¯çæ£æµçä½æçºµå¯è½ãé«äº -2.22 é常表示ç²é¥°æ¥è¡¨é£é©ã","metrics.beneish.hint.manipulator":"æçºµä¿¡å·","metrics.beneish.hint.normal":"æ£å¸¸","metrics.altman.label":"Altman Z-Score","metrics.altman.info":"ç»¼åæµå¨æ§ãçå©è½å䏿 æè¯ä¼°ç ´äº§é£é©ãé«äº 2.99 è¾å®å
¨ï¼ä½äº 1.81 为å±é©åºã","metrics.altman.zone.safe":"å®å
¨","metrics.altman.zone.grey":"ç°è²åºé´","metrics.altman.zone.distress":"å°å¢","metrics.debtRatio.label":"è´åºæ¯ç","metrics.debtRatio.info":"æ»è´åºé¤ä»¥æ»èµäº§ãæ¯çè¶é«ï¼è´¢å¡æ æä¸å¿åºååè¶å¤§ã","metrics.debtRatio.hint":"è´åº / èµäº§","metrics.ocfNi.label":"OCF / NI","metrics.ocfNi.info":"ç»è¥ç°éæµä¸å婿¶¦ä¹æ¯ãæ¥è¿æé«äº 1 表示çå©ç°éå«éè¾å¥½ã","metrics.ocfNi.hint":"ç°éçå©è´¨é","metrics.compare.line":"Top 20 å¹³å: {{avg}} · {{relation}}","metrics.compare.better":"è¾å¹³åä¼ {{diff}}","metrics.compare.worse":"è¾å¹³åå·® {{diff}}","metrics.compare.inLine":"ä¸å¹³åæ¥è¿","charts.radar.liquidity":"æµå¨æ§","charts.radar.profitability":"çå©è½å","charts.radar.leverage":"æ æ","charts.radar.growth":"å¢é¿","charts.radar.cashFlow":"ç°éæµ","charts.radar.series":"è´¢å¡ç¨³å®æ§","charts.cashflow.title":"ç°éæµ","charts.cashflow.operating":"ç»è¥ CF","charts.cashflow.investing":"æèµ CF","charts.cashflow.financing":"ç¹èµ CF","charts.cashflow.fcf":"FCF","charts.debt.title":"åºå¡ç»æ","charts.debt.shortTerm":"çæåºå¡","charts.debt.longTerm":"é¿æåºå¡","charts.debt.equity":"æç","charts.heatmap.empty":"æ å¼å¸¸æ°æ®","severity.low":"ä½","severity.medium":"ä¸","severity.high":"é«","top100.empty":"ææ æåæ°æ®ãè¿è¡åæåå°çæ PrimeScore æåã","top100.col.rank":"æå","top100.col.company":"å
¬å¸","top100.col.theme":"主é¢","top100.col.titanScore":"PrimeScore","top100.col.grade":"ç级","top100.col.titanStatus":"TitanStatus","titan.grade.elite":"Titan Elite","titan.grade.strongBuy":"Strong Buy","titan.grade.buy":"Buy","titan.grade.hold":"Hold","titan.grade.weak":"Weak","titan.status.leaders":"Leaders","titan.status.challengers":"Challengers","titan.status.drifters":"Drifters","titan.status.relics":"Relics","top100.viewAll":"View full Top 20 â","top100.loadMore":"Load more","top100.pageTitle":"Top 20 AI Momentum Stocks","top100.pageSubtitle":"Mega Cap Top 20 universe PrimeScore rankings","top100.filter.grade":"Grade","to
1610p100.filter.titanStatus":"TitanStatus","top100.filter.theme":"Theme","top100.filter.allGrades":"All grades","top100.filter.allStatuses":"All statuses","top100.filter.allThemes":"All themes","top100.showing":"Showing {{count}} of {{total}}","titan.breakdown.title":"PrimeScore Breakdown","titan.breakdown.growth":"Growth","titan.breakdown.momentum":"Momentum","titan.breakdown.quality":"Quality","titan.breakdown.sentiment":"Sentiment","titan.breakdown.risk":"Risk","titan.breakdown.formula":"PrimeScore = 25% Growth + 30% Momentum + 20% Quality + 15% Sentiment â 10% Risk","titan.breakdown.unavailable":"Sub-scores available after a new PrimeScore v2 analysis.","titan.report.dualHint":"PrimeScore = outperform potential · PrimeHealth = accounting quality","sector.titanLeader":"Titan Leader","sector.refresh":"å·æ°è¡ä¸è¡æ
","strategy.pageTitle":"Trend Compounder","strategy.pageSubtitle":"PrimeScore + TRP + Market Regime + Position Sizing","strategy.ctaTitle":"Trend Compounder Strategy","strategy.ctaSubtitle":"ä¼è´¨å
¬å¸çä¸åè¶å¿è½¬æ¢ä¸åé¶æ®µä»ä½æå¯¼","strategy.ctaButton":"æå¼ Strategy 颿¿","strategy.refresh":"å·æ°çç¥æ°æ®","strategy.refreshing":"å·æ°ä¸â¦","strategy.staleHint":"é¨åè¡ç¥¨å¯è½å API éå¶å»¶è¿æ´æ°ã","strategy.filterSignal":"ä¿¡å·","strategy.filterSector":"è¡ä¸","strategy.filterAll":"å
¨é¨","strategy.noData":"ææ çç¥æ°æ®ã","strategy.backToDashboard":"è¿å Strategy","strategy.signal":"ä¿¡å·","strategy.position":"ä»ä½","strategy.confidence":"置信度","strategy.targetWeight":"ç®æ æé","strategy.viewDetail":"æ¥ç详æ
","strategy.viewReport":"æ¥çé£é©æ¥å","strategy.summaryTitle":"Trend Compounder ä¿¡å·","strategy.summarySubtitle":"TRP å转èå²ä¸ä»ä½å±çº§å»ºè®®","strategy.detailSubtitle":"æ¥ç该è¡ç¥¨ç PrimeScoreãTRP Velocity ä¸ä»ä½æå¼ã","strategy.chartTitle":"{{symbol}} ä»·æ ¼å¾","strategy.chartRange":"6个æ · æ¥çº¿","strategy.chartCaption":"ç± TradingView æä¾ãé»è®¤è§å¾ï¼è¿ 6 ä¸ªææ¥çº¿ + VolumeãEMA 20/50/100/200ãMACDï¼å¨éè¾
å©ï¼ãå¯å¨ç»ä»¶å
æ´æ¹åºé´ä¸å¨æã","strategy.chartUnavailable":"æ æ³ä½¿ç¨å¾è¡¨ä»£ç ã","strategy.chartLoadError":"æ æ³å è½½ TradingView å¾è¡¨ãè¯·æ£æ¥ç½ç»åéè¯ã","strategy.historyTitle":"Signal History","strategy.historySubtitle":"è¿ {{days}} 天 · {{count}} æ¡å¿«ç
§","strategy.historyEmpty":"宿µå¿«ç
§ä¸è¶³ãå¨ä¸åæ¥æå·æ°åæä¼ç´¯ç§¯çå®åå²ã","strategy.historyScores":"PrimeScore · TRP · Market Regime","strategy.historyVelocity":"Velocity (7æ¥)","strategy.historySignal":"Signal","strategy.historyPrime":"PrimeScore","strategy.historyTrp":"TRP","strategy.historyRegime":"Market Regime","auth.signInWithGoogle":"ä½¿ç¨ Google ç»§ç»","auth.firebaseNotConfigured":"æªé
ç½® Firebaseã请添å VITE_FIREBASE_* ç¯å¢åéã","auth.editorOnlyGoogle":"Editor æä½éè¦ç½åå Google è´¦å·ã","nav.intro":"About","intro.seoTitle":"NextPrimus | About â Investment Intelligence","intro.seoDescription":"From investment data to investment intelligence â how NextPrimus helps investors judge faster and deeper with AI.","intro.eyebrow":"Investment Intelligence","intro.heroHeadline":"ä»æèµæ°æ®å°æèµæºè½","intro.heroLead":"䏿¯æ¿ä½ æèµç AIï¼èæ¯å¸®å©ä½ æ´å¿«ãæ´æ·±å¤æçæèµæºè½æå¡ã","intro.ctaMarket":"æ¥çå¸åº","intro.ctaJournal":"é
读 Journal","intro.ctaHome":"è¿åé¦é¡µ","intro.quote":"Investors donât need more information. They need context.","intro.quoteSupport":"What matters, how it connects, and what it means for your judgment â that is where NextPrimus begins.","intro.problemEyebrow":"01 · The problem","intro.problemTitle":"More data isnât the answer. Context is.","intro.problemBody1":"Earnings, indicators, sector news, broker notes, flows, global headlines, price and volume â the list never stops growing. The issue is rarely a shortage of information.","intro.problemBody2":"In a flood of signals, it becomes hard to know what matters, how pieces relate, and what they mean for the decision in front of you.","intro.problemQuestion":"âSo how should I look at this company right now?â","intro.valueEyebrow":"02 · Core value","intro.value1Title":"Connect scattered data into one point of view","intro.value1Body":"NextPrimus is not a price-only product. Market data, company fundamentals, news, industry context, and investor flows are linked into a single investment narrative.","intro.value1Points":["What is the recent price trend?","How are volume and flows changing?","Are sales and operating profit improving?","Is the core business growing?","Where is the industry heading?","What news actually matters?","How is the market pricing the future?"],"intro.value1Close":"Not one datapoint â the relationships between datapoints.","intro.value2Title":"AI that turns complexity into clear language","intro.value2Body":"We donât stop at âoperating profit rose 35% YoY.â We ask why it improved, whether the change is structural, how it compares to expectations, and which variables still matter.","intro.value2Close"
1610:"From summarizing information to understanding investment context.","intro.featuresEyebrow":"03 · Capabilities","intro.featuresTitle":"What NextPrimus helps you see","intro.featuresLead":"Four lenses â market, company, signal, and research â that keep judgment in the investorâs hands.","intro.feature1Title":"AI Market Intelligence","intro.feature1Body":"Indicators, price action, volume, flows, and major news are combined so you can see what matters in todayâs market at a glance.","intro.feature2Title":"AI Company Intelligence","intro.feature2Body":"Basics, price & volume, financials, growth, profitability, valuation, news, industry, thesis, and risks â connected to answer: what is changing in this company now?","intro.feature3Title":"Investment Signal","intro.feature3Body":"Volume spikes, trend shifts, flow changes, earnings revisions, policy moves, and events surface as signals worth a second look â not auto buy/sell orders.","intro.feature4Title":"AI Investment Research","intro.feature4Body":"Ask in natural language: Is the improvement structural? How does valuation compare to history? What changed in the last month? AI gathers and frames the context.","intro.diffEyebrow":"04 · Difference","intro.diffTitle":"Not a stock-picking chatbot","intro.diffBody":"Instead of âbuy this,â NextPrimus focuses on why a name is in focus, which data supports the idea, and which risks cut the other way.","intro.diffClose":"Recommendation less. Intelligence more.","intro.assistantEyebrow":"05 · Direction","intro.assistantTitle":"Your personal AI research assistant","intro.assistantBody":"You set names and themes of interest. AI keeps watching. When something important shifts â earnings beats, multi-day foreign buying, policy changes, a shift in news tone â it brings the signal to you.","intro.assistantClose":"From hunting every feed yourself to having AI bring what matters.","intro.archEyebrow":"06 · Architecture","intro.archTitle":"Agent-based investment intelligence","intro.archBody":"Not a single chatbot answer â specialized agents collect, analyze, validate, and synthesize across market, company, news, financials, and signals.","intro.archFlow":["Mar
1610ket Data","Data Collection Agents","Financial / News / Industry / Technical Analysis","AI Research Agents","Cross Validation","Investment Intelligence","Investor"],"intro.agentMarket":"Market Agent","intro.agentMarketDesc":"Tracks market-wide moves and key indicators.","intro.agentCompany":"Company Agent","intro.agentCompanyDesc":"Analyzes financial and business changes for each firm.","intro.agentNews":"News Agent","intro.agentNewsDesc":"Collects events and filters what is material.","intro.agentFinancial":"Financial Agent","intro.agentFinancialDesc":"Reads performance and valuation context.","intro.agentSignal":"Signal Agent","intro.agentSignalDesc":"Detects meaningful shifts in market data.","intro.agentResearch":"Research Agent","intro.agentResearchDesc":"Synthesizes findings into investor-ready language.","intro.closingTagline":"From Investment Data to Investment Intelligence","intro.closingBody":"The edge is no longer collecting more feeds. It is spotting important change and understanding what it means.","intro.closingQuestions":["What is changing in the market right now?","Which companies and industries does that change touch?","What does that change mean for an investor?"],"intro.closingFinal":"AI does not replace the investor. It helps the investor judge better.","intro.disclaimer":"Information and analysis on NextPrimus are for reference only. They are not investment advice and do not guarantee returns or recommend buying or selling any security.","auth.orEditor":"æ Editor é®ç®±","auth.voucherCode":"åè¯ç ","auth.editorSignIn":"Editor ç»å½","journal.authorTitle":"å ³äºä½è ","journal.authorName":"Jun","journal.authorEmail":"[email protected]","journal.authorBio":"AI·í´ë¼ì°ë ìí¤í í¸ì´ì AI ìëì ìµì íë í¬ì ìì¬ê²°ì ì§ììì¤í ë¹ë. NextPlatformì íµí´ AI·í´ë¼ì°ë 기ì ì ì°êµ¬íê³ ì¤ë¬´ì ì ì©íë©°, NextPrimus를 íµí´ ìì¥Â·ê¸°ì ·ì°ì ë°ì´í°ë¥¼ AIë¡ ì°ê²°í´ í¬ììê° ë ë¹ ë¥´ê³ ê¹ì´ ìê² íë¨í ì ìë Investment Intelligence íê²½ì ë§ë¤ì´ê°ê³ ììµëë¤.","journal.authorBioChaewon":"NextPrimus Editorãå䏿é Investment Intelligence å 容ï¼å¸®å©æèµè æ´å¿«éãæ´æ¸ æ°å°çè§£å¸åºä¸ä¼ä¸ã","intro.glossaryEyebrow":"07 · Glossary","intro.glossaryTitle":"NextPrimus Glossary","intro.glossaryLead":"æ´ç MarketãCompoundersãJournalãStrategy ä¸åå¤åºç°çæ ¸å¿æ¯è¯ï¼æ¹ä¾¿é¦æ¬¡è®¿é®çç¨æ·çè§£ã","intro.glossaryItems":[{term:"Market Regime",body:`ç¨ 0â100 åæ¦æ¬æ´ä½è¡å¸æ´åé£é©å好ï¼Risk-onï¼è¿æ¯é£é©è§é¿ï¼Risk-offï¼çææ ã 1611 1612ä¸è¡¡éåå®¶å ¬å¸è´¨éç PrimeScore ä¸åï¼å®é®çæ¯ï¼å½åå¸åºç¯å¢æ¬èº«æ¯å¦æå©äºè¡ç¥¨æå£ï¼ 1613 1614综å S&P500 ä¸ Nasdaq è¶å¿ãVIXãå¸åºå¹¿åº¦ãå©çãä¿¡ç¨ï¼ç®å为å ä½ï¼ãæ¿åé¢å¯¼åå æåï¼æ å°ä¸º RISK_ONï¼80+ï¼ãBULLISHï¼65â79ï¼ãNEUTRALï¼50â64ï¼ãCAUTIONï¼35â49ï¼ãRISK_OFFï¼ä½äº 35ï¼ã 1615 1616ä¾ï¼57 / 100 å±äº NEUTRALââæ¢éæç¡®å¼ºå¿ä¹éæç¡®é¿é©ï¼ä»å¯å¯»æ¾æºä¼ï¼ä½å ¨é¢å ä»ä¸æ æéå¸¸éæ´è°¨æ ãåºç¨ä¸å®ä¸»è¦ç¨äºä¿¡å·ä¸ä»ä½æ¡ä»¶ï¼è䏿¯æ¹åæåæ¬èº«ã`},{term:"PrimeScore",body:`æå¢é¿ãå¨éãè´¨éãæ ç»ªä¸é£é©åæ 0â100 åä¸ç级çå ¬å¸çº§è´¨éåæ°ã 1617 1618ççº§å æ¬ ELITEãSTRONGãATTRACTIVEãWATCHãWEAKãåççæ¯âä½ä¸ºé¿æ Compounder åéæå¤å¼ºâï¼è䏿¯âä»å¤©ä¹°åâã 1619 1620æå®¡è®¡æ¥åæ¶ç± Titan ååæ°æ¨å¯¼ï¼å¦åç¨ä»·æ ¼/å¨éåéï¼ä¿è¯ Strategy å®å®å®æ´ã`},{term:"TRP (Trend Reversal Potential)",body:`ä¼°è®¡ä»·æ ¼ç»æä¸å¨é对è¶å¿å»¶ç»æä¿®å¤æå¤æå©ç 0â100 åæ°ã 1621 1622ç»åç䏿æçãhigher-lowãç¸å¯¹è¿æä½ç¹ä½ç½®ãå线æåãRSI 䏿¶çï¼å¹¶ç¨ EARLYãCONFIRMEDãSTRONG çé¶æ®µæè¿°æç度ã 1623 1624TRP çå¾è¡¨è·¯å¾ä¸æ¶æºï¼PrimeScore ççæè´¨éï¼ä¸¤è ä¸èµ·å¯åºåâå¥½å ¬å¸âä¸âæ£å¨æ¹åçç»æâã`},{term:"Compounder",body:`è½éè¿å¯æç»å¢é¿ãèµæ¬åæ¥ä¸åæèµï¼å¨é¿æå¤å©æ©å¤§è¡ä¸ä»·å¼çä¼ä¸ââ䏿¯ççº¿äº¤ææ çã 1625 1626NextPrimus ç Trend Compounder ç¨ PrimeScoreãTRPãMarket Regime ççé䏿åºï¼å¸®å©è·éä¼è´¨é¾å¤´è½¨è¿¹ï¼è䏿¯è¿½éåªé³ã 1627 1628Journal ä¸è½å°é¡µç Compounder Watch æ¯è¯¥è§å¯ååçç²¾éçå表ã`},{term:"Prime Signal",body:`æ PrimeScoreãTRPï¼å velocityï¼ä¸ Market Regime åæ EARLY_ENTRYãCONFI
1628RMED_ENTRYãHOLDãREDUCEãEXIT çç¶ææ ç¾çå³çæ¡æ¶ã 1629 1630䏿¯èªå¨ä¹°åæä»¤ï¼èæ¯æ´çâæ¯å¦å¼å¾åçãåºå ä»è¿æ¯åä»âã 1631 1632æ¯æ¡ä¿¡å·é带åå ï¼å¦ä½ PrimeScoreãåå¼±ç TRP å¨éï¼ï¼æâ为ä»ä¹âè¯´æ¸ æ¥ï¼å¤æä»çç»æèµè ã`},{term:"Position Sizing",body:`æ ¹æ® PrimeScoreãPrime Signal ä¸å䏿ä»ä¸éï¼å»ºè®®å¨ç»åä¸çä»ä½å¤§å°ã 1633 1634WATCHãSTARTãBUILDãCOREãMAX çæ¡£ä½è¡¨ç¤ºä¿¡å¿åºé´ãè´¨éä¸ä¿¡å·è¶å¼ºï¼å»ºè®®ä»ä½è¶å¤§ï¼å¼±ç»æåä¿æè§å¯æå°ä»ã 1635 1636ä»ä½ææºè½åæé£æ§çºªå¾ï¼å½ Regime æ Signal æç¤ºè°¨æ æ¶ï¼å³ä½¿é« PrimeScore ä¹ä¸åºç¬å ç»åã`}],"glossary.infoAria":"å¨ NextPrimus Glossary 䏿¥ç {{term}}","glossary.terms.market-regime":"Market Regime","glossary.terms.primescore":"PrimeScore","glossary.terms.trp":"TRP","glossary.terms.compounder":"Compounder","glossary.terms.prime-signal":"Prime Signal","glossary.terms.position-sizing":"Position Sizing","strategy.rebuiltHint":"å·²ä»ä¸ªè¡ç¼åå¿«ç §é建æåãè¡æ API æ£å¸¸æ¶è¯·å¨ Editor å·æ°çç¥æ°æ®ä»¥å®æ´æ´æ°ã","strategy.emptyNeedsRefresh":"ç¼å䏿²¡ææåæ çã请æå¼è¥å¹²ä¸ªè¡è¯¦æ ï¼æå¨è¡æ API å¯ç¨æ¶äº Editor å·æ°çç¥æ°æ®ã","strategy.emptyQuoteLimited":"å·æ°æªäº§çæåââå¯è½è§¦åè¡æ API éæµã请ç¨åéè¯ Editor å·æ°ï¼ææå¼ä¸ªè¡é¡µï¼å¦ /strategy/MSFTï¼é¢çç¼åã","strategy.emptyFiltered":"没æç¬¦åå½åä¿¡å·/è¡ä¸çéçæ çã","nav.alerts":"æé","alerts.pageTitle":"å¸åºæé","alerts.pageSubtitle":"å ³æ³¨æ± çåºé¨å转ï¼TRP/Signal + Squeeze/EMAï¼ä¸ SKY FALL 广度æ¥è·é¢è¦ã","alerts.empty":"å°æ æéãæ¥æ´ alert-scan æ£æµå°ä¿¡å·å伿¾ç¤ºå¨æ¤ã","alerts.loadError":"æ æ³å è½½æéã","alerts.bottomReversal":"åºé¨å转","alerts.viewTicker":"æå¼çç¥å¾è¡¨","alerts.universeTitle":"å ³æ³¨æ± ","alerts.return5d":"5æ¥æ¶ç","alerts.squeezeUp":"Squeeze 转ä¸","alerts.emaStretch":"EMAå离"},qle=typeof localStorage<"u"?localStorage.getItem("ws-lang"):null;ft.use(Mne).init({resources:{en:{translation:Lle},ko:{translation:Fle},ja:{translation:Vle},zh:{translation:Hle}},lng:qle??"en",fallbackLng:"en",interpolation:{escapeValue:!1}});ft.on("languageChanged",t=>{typeof localStorage<"u"&&localStorage.setItem("ws-lang",t)});const Gle=[{code:"en",label:"EN"},{code:"ko",label:"KR"},{code:"ja",label:"JP"},{code:"zh",label:"CN"}];function Kle(){return f.jsx("div",{className:"flex gap-1 rounded-lg border border-border bg-card p-1",children:Gle.map(({code:t,label:e})=>f.jsx("button",{type:"button",className:`lang-btn ${ft.language===t?"lang-btn-active":""}`,onClick:()=>ft.changeLanguage(t),children:e},t))})}const $f={id:"jun",name:"Jun",email:"[email protected]",imageSrc:"/images/editor-jun.png",bioKey:"journal.authorBio"},E0={id:"chaewon",name:"Chaewon",email:"[email protected]",imageSrc:"/images/editor-chaewon.png?v=20260816c",bioKey:"journal.authorBioChaewon"};function Yle(){const t=new Map([[$f.email.toLowerCase(),$f],[E0.email.toLowerCase(),E0]]),e="[email protected]".trim().toLowerCase(),r="[email protected]".trim().toLowerCase();return e&&t.set(e,{...$f,email:e}),r&&t.set(r,{...E0,email:r,name:"Chaewon"}),t}const Xle=Yle();function HB(t){return t!=null&&t.trim()?Xle.get(t.trim().toLowerCase())??null:null}function Jle(t){const e=HB(t);return e||(t!=null&&t.trim()?null:$f)}function Qle(){const{t}=ye(),e=ze(u=>u.session),r=ze(u=>u.openLogin),n=ze(u=>u.logout),[i,a]=N.useState(!1),o=N.useRef(null),l=(e==null?void 0:e.role)==="editor"?HB(e.email):null;return N.useEffect(()=>{if(!i)return;const u=h=>{o.current&&!o.current.contains(h.target)&&a(!1)},d=h=>{h.key==="Escape"&&a(!1)};return document.addEventListener("mousedown",u),document.addEventListener("keydown",d),()=>{document.removeEventListener("mousedown",u),document.removeEventListener("keydown",d)}},[i]),f.jsxs("div",{ref:o,className:"relative",children:[f.jsx("button",{type:"button",className:"inline-flex h-10 w-10 items-center justify-center rounded-lg border border-border bg-card text-primary transition hover:bg-white",onClick:()=>a(u=>!u),"aria-expanded":i,"aria-haspopup":"true","aria-label":t("nav.menu"),children:f.jsx(Zle,{open:i})}),i&&f.jsxs("div",{className:"absolute right-0 top-full z-[60] mt-1 min-w-[12rem] rounded-lg border border-border bg-white p-3 shadow-lg",role:"menu",children:[f.jsx("p",{className:"mb-2 text-[10px] font-bold uppercase tracking-wide text-muted",children:t("nav.language")}),f.jsx("div",{className:"mb-3 flex justify-center",children:f.jsx(Kle,{})}),f.jsx("div",{className:"border-t border-border pt-2",children:e?f.jsxs(f.Fragment,{children:[e.role==="editor"&&l&&f.jsx("div",{className:"mb-2 flex flex-col items-center gap-2 px-1",children:f.jsx("img",{src:l.imageSrc,alt:"",className:"h-14 w-14 roun
1636ded-full border border-border object-cover"})}),f.jsx("p",{className:"mb-2 truncate px-1 text-center text-xs text-muted",title:e.email,children:e.role==="editor"?t("auth.editorLabel",{name:(l==null?void 0:l.name)||e.displayName}):e.email}),f.jsx(be,{to:"/watchlist",role:"menuitem",className:"lang-btn mb-1 block w-full rounded-md px-2 py-1.5 text-center",onClick:()=>a(!1),children:t("nav.watchlist")}),f.jsx(be,{to:"/alerts",role:"menuitem",className:"lang-btn mb-1 block w-full rounded-md px-2 py-1.5 text-center",onClick:()=>a(!1),children:t("nav.alerts")}),e.role==="editor"&&f.jsxs(f.Fragment,{children:[f.jsx(be,{to:"/journal/manage",role:"menuitem",className:"lang-btn mb-1 block w-full rounded-md px-2 py-1.5 text-center",onClick:()=>a(!1),children:t("journal.manage")}),f.jsx(be,{to:"/admin/traffic",role:"menuitem",className:"lang-btn mb-1 block w-full rounded-md px-2 py-1.5 text-center",onClick:()=>a(!1),children:t("nexus.adminLink")})]}),f.jsx("button",{type:"button",role:"menuitem",className:"lang-btn w-full rounded-md px-2 py-1.5 text-center",onClick:()=>{a(!1),n()},children:t("auth.logOut")})]}):f.jsx("button",{type:"button",role:"menuitem",className:"lang-btn w-full rounded-md px-2 py-2 text-center",onClick:()=>{a(!1),r()},children:t("auth.logIn")})})]})]})}function Zle({open:t}){return f.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,className:"text-current",children:t?f.jsx("path",{d:"M5 5l10 10M15 5L5 15",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"}):f.jsxs(f.Fragment,{children:[f.jsx("path",{d:"M4 6h12",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"}),f.jsx("path",{d:"M4 10h12",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"}),f.jsx("path",{d:"M4 14h12",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})]})})}function ece(){const{t}=ye(),e=ze(r=>r.session);return!e||e.role!=="reader"?null:f.jsx("div",{className:"border-b border-amber-200/80 bg-amber-50/90",children:f.jsx("div",{className:"mx-auto max-w-7xl px-4 py-2.5 text-center text-xs text-amber-950 sm:px-6 sm:text-left",children:t("auth.readerLocalHint")})})}const tce=!1,qB="titantrail_watchlist_v1";function Lk(){if(typeof window>"u")return[];try{const t=localStorage.getItem(qB);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e:[]}catch{return[]}}function GB(t){typeof window>"u"||localStorage.setItem(qB,JSON.stringify(t))}function rce(t){const e=Lk().filter(n=>n.ticker!==t.ticker),r={id:crypto.randomUUID(),ticker:t.ticker,corpName:t.corpName,slug:t.slug??null,sector:t.sector??null,note:null,createdAt:new Date().toISOString()};return GB([...e,r]),r}function nce(t){GB(Lk().filter(e=>e.ticker!==t))}function Xi(t){return{items:t,tickers:new Set(t.map(e=>e.ticker))}}const gu=tp((t,e)=>({items:[],loading:!1,error:null,tickers:new Set,clearError:()=>t({error:null}),load:async()=>{var n;const r=(n=ze.getState().session)==null?void 0:n.role;if(!r){t(Xi([]));return}t({loading:!0,error:null});try{if(r==="reader")t(Xi(Lk()));else{const i=await Yse();t(Xi(i))}}catch(i){t({...Xi([]),error:i instanceof Error?i.message:"Watchlist load failed"})}finally{t({loading:!1})}},add:async r=>{var i;const n=(i=ze.getState().session)==null?void 0:i.role;if(!n)throw ze.getState().openLogin(),new Error("Login required");t({loading:!0,error:null});try{if(n==="reader"){const a=rce(r),o=[...e().items.filter(l=>l.ticker!==a.ticker),a];t(Xi(o))}else{const a=await Xse(r),o=[...e().items.filter(l=>l.ticker!==a.ticker),a];t(Xi(o))}}catch(a){const o=a instanceof Error?a.message:"Watchlist add failed";throw t({error:o}),a}finally{t({loading:!1})}},remove:async r=>{var i;const n=(i=ze.getState().session)==null?void 0:i.role;if(n){t({loading:!0,error:null});try{if(n==="reader"){nce(r);const a=e().items.filter(o=>o.ticker!==r);t(Xi(a))}else{await Jse(r);const a=e().items.filter(o=>o.ticker!==r);t(Xi(a))}}catch(a){const o=a instanceof Error?a.message:"Watchlist remove failed";throw t({error:o}),a}finally{t({loading:!1})}}},isWatching:r=>e().tickers.has(r)})),ice=[{to:"/market",labelKey:"nav.market",icon:cce},{to:"/trail",labelKey:"nav.discover",icon:uce},{to:"/compounders",labelKey:"nav.compounders",icon:dce},{to:"/journal",labelKey:"nav.journal",icon:fce},{to:"/about",labelKey:"nav.intro",icon:lce}];function ace({children:t}){const{t:e}=ye(),[r,n]=N.useState(()=>new Date().toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}).replace(/\//g,".")),i=ze(l=>l.hydrate),a=ze(l=>l.session),o=gu(l=>l.load);return N.useEffect(()=>{i()},[i]),N.useEffect(()=>{a?o():gu.setState({items:[],tickers:new Set,error:null})},[a,o]),N.useEffect(()=>{Kse().then(l=>{l.completedAt&&n(new Date(l.completedAt).toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}).replace(/\//g,"."))}).catch(()=>{})},[]),f.jsxs("div",{className:"flex min-h-screen flex-col",children:[f.jsx("header",{className:"sticky top-0 z-50 border-b border-border bg-white/95 backdrop-blur",children:f.jsx(oce,{t:e})}),f.jsx(ece,{}),f.jsx("main",{className:"flex-1",children:t}),f.jsx(ule,{}),f.jsxs("footer",{className:"border-t border-border bg-card",children:[f.jsxs("div",{className:"mx-auto flex max-w-7xl flex-col gap-2 px-4 py-8 sm:flex-row sm:items-center sm:justify-between sm:px-6",children:[f.jsx("p",{className:"text-sm font-medium text-foreground",children:f.jsx("a",{href:"https://nextplatform.net/",target:"_blank",rel:"noopener noreferrer",className:"transition hover:text-primary hover:underline",children:e("footer.developed")})}),f.jsxs("div",{className:"flex flex-col gap-2 sm:items-end",children:[f.jsx(sce,{t:e}),f.jsxs("p",{className:"text-sm text-muted",children:[e("footer.updated"),": ",r]})]})]}),f.jsx("p",{className:"mx-auto max-w-7xl px-4 pb-6 text-center text-xs text-muted sm:px-6 sm:text-left",children:e("footer.scope")})]})]})}function oce({t}){const e=f1();return f.jsxs("div",{className:"relative mx-auto flex max-w-7xl items-center justify-between gap-3 px-4 py-3 sm:px-6 sm:py-4",children:[f.jsxs(be,{to:"/",className:"relative z-10 flex min-w-0 shrink-0 items-center gap-3",children:[f.jsx("img",{src:"/images/logo-nextprime.png",alt:"NextPrimus",className:"h-10 w-10 rounded object-cover",width:40,height:40}),f.jsxs("div",{className:"hidden min-w-0 sm:block",children:[f.jsx("div",{className:"font-serif-display text-xl text-primary",children:t("brand")}),f.jsx("div",{className:"truncate text-xs text-muted",children:t("tagline")})]})]}),f.jsx("nav",{className:"absolute left-1/2 top-1/2 z-10 flex -translate-x-1/2 -translate-y-1/2 items-center gap-0.5 sm:gap-1","aria-label":"Magazine",children:ice.map(r=>{const n=r.icon;return f.jsxs(c5,{to:r.to,title:t(r.labelKey),"aria-label":t(r.labelKey),className:({isActive:i})=>["inline-flex items-center gap-1.5 rounded-md px-2 py-1.5 text-sm font-medium transition sm:gap-1.5 sm:px-2.5",i?"bg-primary/10 text-primary":"text-muted hover:bg-card hover:text-primary"].join(" "),children:[f.jsx(n,{className:"h-5 w-5 shrink-0"}),f.jsx("span",{className:"hidden sm:inline",children:t(r.labelKey)})]},r.to)})}),f.jsxs("div",{className:"relative z-10 flex shrink-0 items-center gap-2 sm:gap-3",children:[e==="header"&&f.jsx(m1,{className:"hidden text-muted lg:block",label:t("nexus.siteViews"),showLabel:!1}),tce,f.jsx(Qle,{})]})]})}function sce({t}){return f1()!=="footer"?null:f.jsx(m1,{className:"text-muted",label:t("nexus.siteViews"),showLabel:!0})}function lce({className:t}){return f.jsxs("svg",{className:t,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,
1636children:[f.jsx("circle",{cx:"12",cy:"12",r:"8.25",stroke:"currentColor",strokeWidth:"1.75"}),f.jsx("path",{d:"M12 10.5v6M12 7.75h.01",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})]})}function cce({className:t}){return f.jsxs("svg",{className:t,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[f.jsx("path",{d:"M4 19V5M4 19h16",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"}),f.jsx("path",{d:"M8 16V11M12 16V8M16 16v-5M20 16V6",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})]})}function uce({className:t}){return f.jsxs("svg",{className:t,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[f.jsx("circle",{cx:"12",cy:"12",r:"8.25",stroke:"currentColor",strokeWidth:"1.75"}),f.jsx("path",{d:"M14.8 9.2 13.1 13.1 9.2 14.8l1.7-3.9L14.8 9.2Z",stroke:"currentColor",strokeWidth:"1.75",strokeLinejoin:"round"})]})}function dce({className:t}){return f.jsxs("svg",{className:t,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[f.jsx("path",{d:"M4 16c3-1.5 5-4.5 5-8 0 0 1.5 3 4 4.5C15.5 14 18 15 20 15.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M16.5 11.5 20 15.5l-4 1",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M4 19h16",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})]})}function fce({className:t}){return f.jsxs("svg",{className:t,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[f.jsx("path",{d:"M7 4.75h9.5A2.75 2.75 0 0 1 19.25 7.5v11A1.75 1.75 0 0 1 17.5 20.25H7A2.25 2.25 0 0 1 4.75 18V7A2.25 2.25 0 0 1 7 4.75Z",stroke:"currentColor",strokeWidth:"1.75",strokeLinejoin:"round"}),f.jsx("path",{d:"M8.5 9h7M8.5 12.5h7M8.5 16h4.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})]})}function hce(){const t=ft.language;return t==="ko"?"ko-KR":t==="ja"?"ja-JP":t==="zh"?"zh-CN":"en-US"}function am(t){const e=Math.abs(t),r=hce();return r.startsWith("en")?e>=1e12?`$${(t/1e12).toFixed(2)}T`:e>=1e9?`$${(t/1e9).toFixed(2)}B`:e>=1e6?`$${(t/1e6).toFixed(1)}M`:t.toLocaleString(r):e>=1e12?`${(t/1e12).toFixed(1)}ì¡°`:e>=1e8?`${(t/1e8).toFixed(0)}ìµ`:e>=1e4?`${(t/1e4).toFixed(0)}ë§`:t.toLocaleString(r)}function rl(t){return`/audit/${t}`}function Gr(t){const e=Math.max(0,Math.min(100,t));return Math.round(100-e*.5)}function Dk(t){return t<65?"text-risk":t<80?"text-warning":"text-safe"}function mce(t){return(Math.max(50,Math.min(100,t))-50)/50}function op(t){return t<60?"text-risk":t<80?"text-warning":"text-safe"}function pce(t){return t<60?"#dc2626":t<80?"#f97316":"#16a34a"}function gce(t){return Math.max(0,Math.min(100,t))/100}function cn(t,e,r){let n=document.querySelector(`meta[${t}="${e}"]`);n||(n=document.createElement("meta"),n.setAttribute(t,e),document.head.appendChild(n)),n.setAttribute("content",r)}function xt({title:t,description:e,slug:r,path:n,image:i,corpName:a,ticker:o,riskScore:l,auditMemo:u}){const d=l!==void 0?Gr(l):void 0;return N.useEffect(()=>{document.title=t,cn("name","description",e);const h=window.location.origin,m=r?`${h}${rl(r)}`:n?`${h}${n.startsWith("/")?n:`/${n}`}`:window.location.href;let g=document.querySelector('link[rel="canonical"]');g||(g=document.createElement("link"),g.rel="canonical",document.head.appendChild(g)),g.href=m;const v=i?i.startsWith("http")?i:`${h}${i.startsWith("/")?i:`/${i}`}`:`${h}/images/logo-nextprime.png`;cn("property","og:type",r?"article":"website"),cn("property","og:site_name","NextPrimus"),cn("property","og:title",t),cn("property","og:description",e),cn("property","og:url",m),cn("property","og:image",v),cn("name","twitter:card","summary_large_image"),cn("name","twitter:title",t),cn("name","twitter:description",e),cn("name","twitter:image",v);const b=[];r?b.push({"@context":"https://schema.org","@type":"Article",headline:t,description:e,url:m,author:{"@type":"Organization",name:"NextPlatform"},publisher:{"@type":"Organization",name:"NextPrimus"},datePublished:new Date().toISOString(),about:a}):b.push({"@context":"https://schema.org","@type":"WebPage",name:t,description:e,url:m,isPartOf:{"@type":"WebSite",name:"NextPrimus",url:h}}),r&&a&&d!==void 0&&b.push({"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:`What is ${a} (${o??""}
1636) PrimeHealth on NextPrimus?`,acceptedAnswer:{"@type":"Answer",text:`${a} has a PrimeHealth score of ${d}/100 on NextPrimus (50â100 scale; higher indicates stronger accounting quality).`}},{"@type":"Question",name:`What are key audit concerns for ${a}?`,acceptedAnswer:{"@type":"Answer",text:u??e}}]});const w=document.getElementById("seo-jsonld");if(w&&w.remove(),b.length){const x=document.createElement("script");x.id="seo-jsonld",x.type="application/ld+json",x.textContent=JSON.stringify(b.length===1?b[0]:b),document.head.appendChild(x)}return()=>{var x;(x=document.getElementById("seo-jsonld"))==null||x.remove()}},[t,e,r,n,i,a,o,d,u]),null}function yce({children:t,rootMargin:e="200px",placeholder:r=null}){const n=N.useRef(null),[i,a]=N.useState(!1);return N.useEffect(()=>{const o=n.current;if(!o||i)return;const l=new IntersectionObserver(([u])=>{u.isIntersecting&&(a(!0),l.disconnect())},{rootMargin:e});return l.observe(o),()=>l.disconnect()},[e,i]),f.jsx("div",{ref:n,children:i?t:r})}function Pt({title:t,subtitle:e,eyebrow:r,action:n,children:i,className:a=""}){return f.jsxs("section",{className:`mx-auto max-w-7xl px-4 py-10 sm:px-6 ${a}`,children:[f.jsxs("div",{className:"mb-6 flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",children:[f.jsxs("div",{className:"max-w-3xl",children:[r&&f.jsx("p",{className:"mb-1 text-xs font-bold uppercase tracking-[0.14em] text-primary/70",children:r}),f.jsx("h2",{className:"font-serif-display text-2xl text-primary sm:text-3xl",children:t}),e&&f.jsx("p",{className:"mt-2 text-sm leading-relaxed text-muted",children:e})]}),n&&f.jsxs(be,{to:n.to,className:"shrink-0 text-sm font-medium text-primary hover:underline",children:[n.label," â"]})]}),i]})}const $k={"market-regime":"glossary-market-regime",primescore:"glossary-primescore",trp:"glossary-trp",compounder:"glossary-compounder","prime-signal":"glossary-prime-signal","position-sizing":"glossary-position-sizing"};function vce(t){const e=t.trim().toLowerCase().replace(/\s+/g," ");return e==="market regime"?"market-regime":e==="primescore"||e==="prime score"?"primescore":e==="trp"||e.startsWith("trp (")?"trp":e==="compounder"||e==="trend compounder"?"compounder":e==="prime signal"?"prime-signal":e==="position sizing"?"position-sizing":null}function xce(t){return`/about#${$k[t]}`}function KB(t){const e=t.replace(/^#/,"");if(!e.startsWith("glossary-"))return!1;const r=document.getElementById(e);return r?(r.scrollIntoView({behavior:"smooth",block:"start"}),r.classList.add("glossary-term--flash"),window.setTimeout(()=>r.classList.remove("glossary-term--flash"),1600),!0):!1}function bce({term:t,className:e="",label:r}){const{t:n}=ye(),i=Xr(),a=wu(),o=$k[t],l=xce(t),u=r??n("glossary.infoAria",{term:n(`glossary.terms.${t}`,{defaultValue:t})}),d=h=>{if(h.preventDefault(),h.stopPropagation(),i.pathname==="/about"){i.hash!==`#${o}`&&a(`/about#${o}`,{replace:!0}),requestAnimationFrame(()=>{KB(o)});return}a(l)};return f.jsx(be,{to:l,onClick:d,className:`glossary-info-icon inline-flex h-[1.125rem] w-[1.125rem] shrink-0 items-center justify-center rounded-full border border-primary/35 bg-primary/[0.06] text-[0.65rem] font-bold lowercase leading-none text-primary/80 transition hover:border-primary/60 hover:bg-primary/10 hover:text-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary ${e}`,"aria-label":u,title:u,children:f.jsx("span",{"aria-hidden":!0,children:"i"})})}function Mt({term:t,children:e,className:r=""}){return f.jsxs("span",{className:`inline-flex items-center gap-1.5 ${r}`,children:[e,f.jsx(bce,{term:t})]})}const vM={RISK_ON:"bg-emerald-600 text-white",BULLISH:"bg-green-500 text-white",NEUTRAL:"bg-slate-500 text-white",CAUTION:"bg-amber-500 text-white",RISK_OFF:"bg-red-600 text-white"};function Fk({regime:t}){const e=t.regime.replace("_","-"),r=vM[t.regime]??vM.NEUTRAL;return f.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[f.jsx("div",{className:`rounded-lg px-4 py-2 font-serif text-lg font-bold ${r}`,children:e}),f.jsxs("div",{children:[f.jsx("p",{className:"text-xs uppercase tracking-wide text-muted",children:f.jsx(Mt,{term:"market-regime",children:"Market Regime"})}),f.jsx("p",{className:"font-serif text-3xl font-bold text-primary",children:t.score}),f.jsx("p",{className:"text-xs text-muted",children:"/ 100"})]})]})}function sp(t){return t.replace(/_ENTRY$/,"").replace(/_/g," ")}function lp(t){const e=t.toUpperCase();return e.includes("STRONG")||e.includes("CONFIRMED")?"text-emerald-700":e.includes("EARLY")?"text-amber-700":e==="WATCH"?"text-slate-600":e==="REDUCE"||e==="EXIT"?"text-red-700":"text-foreground"}function YB(t){return t==null?"â":t>0?`+${t} â`:t<0?`${t} â`:"0 â"}function XB(t){return t==null?"text-muted":t>0?"text-emerald-700":t<0?"text-red-700":"text-muted"}function _0(t,e){const r=t==null?void 0:t.indicators.find(n=>n.key===e);return!r||r.value==null?null:`${r.value}${r.unit?` ${r.unit}`:""}`}function JB({regime:t,macro:e,news:r,topPick:n,radarPreview:i}){var h;const{t:a}=ye(),o=_0(e,"vix"),l=_0(e,"treasury10y"),u=_0(e,"fedFunds"),d=(h=r==null?void 0:r.insight)==null?void 0:h.trim();return f.jsx("div",{className:"rounded-2xl border border-border bg-white p-6 shadow-sm sm:p-8",children:f.jsxs("div",{className:"flex flex-col gap-6 lg:flex-row lg:items-start lg:justify-between",children:[f.jsxs("div",{className:"min-w-0 flex-1",children:[t?f.jsx(Fk,{regime:t}):f.jsx("p",{className:"text-sm text-muted",children:a("magazine.prime.regimeIdle")}
1636),f.jsx("div",{className:"mt-6 grid grid-cols-3 gap-3 sm:max-w-md",children:[{label:"VIX",value:o},{label:"10Y",value:l},{label:"Fed Funds",value:u}].map(m=>f.jsxs("div",{className:"rounded-lg border border-border/70 bg-card/50 px-3 py-2",children:[f.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wide text-muted",children:m.label}),f.jsx("p",{className:"mt-1 text-sm font-semibold text-foreground",children:m.value??"â"})]},m.label))})]}),f.jsxs("div",{className:"min-w-0 flex-1 space-y-4",children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-wide text-muted",children:a("magazine.prime.storyLabel")}),d?f.jsx("p",{className:"mt-2 font-serif text-base font-semibold leading-relaxed text-foreground",children:d.length>220?`${d.slice(0,220)}â¦`:d}):f.jsx("p",{className:"mt-2 text-sm text-muted",children:a("magazine.prime.storyIdle")}),(r==null?void 0:r.slug)&&f.jsxs(be,{to:"/news/market",className:"mt-3 inline-block text-sm font-medium text-primary hover:underline",children:[a("magazine.prime.readStory")," â"]})]}),(n||i)&&f.jsxs("div",{className:"rounded-lg border border-primary/15 bg-primary/5 px-4 py-3",children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-wide text-primary/80",children:a("magazine.prime.highlight")}),i?f.jsxs("div",{className:"mt-2 flex flex-wrap items-baseline gap-x-3 gap-y-1",children:[f.jsx(be,{to:`/strategy/${i.ticker}`,className:"font-serif text-xl font-bold text-primary hover:underline",children:i.ticker}),f.jsx("span",{className:"text-sm text-muted",children:i.corpName}),f.jsx("span",{className:`text-sm font-semibold ${lp(i.signal.signal)}`,children:sp(i.signal.signal)})]}):n?f.jsxs("div",{className:"mt-2 flex flex-wrap items-baseline gap-x-3 gap-y-1",children:[f.jsx("span",{className:"font-serif text-xl font-bold text-primary",children:n.ticker}),f.jsx("span",{className:"text-sm text-muted",children:n.companyName}),f.jsxs("span",{className:"text-sm font-semibold",children:["PrimeScore ",n.titanScore]})]}):null]})]})]})})}function wce(t){return Sce(t).split(` 1637`).map(r=>r.trim()).filter(Boolean).map(r=>{const n=r.match(/^\[(Market|AI|Rates)\]\s*(.+)/i);return n?{category:n[1],text:n[2]}:{category:"Market",text:r.replace(/^[-*â¢]\s*/,"")}})}function Sce(t){const e=t.search(/WEEKLY MARKET INSIGHT:/i);return e===-1?t:t.slice(0,e).trim()}const kce=6,xM={Market:"bg-primary/10 text-primary",AI:"bg-purple-100 text-purple-800",Rates:"bg-amber-100 text-amber-900"};function QB({summary:t}){const{t:e}=ye(),r=wce(t).slice(0,kce);return r.length===0?null:f.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:r.map((n,i)=>f.jsxs("li",{className:"flex min-h-[8.5rem] flex-col rounded-lg border border-border bg-card/60 p-4",children:[f.jsx("span",{className:`mb-3 w-fit rounded px-2 py-0.5 text-xs font-medium ${xM[n.category]??xM.Market}`,children:e(`news.category.${n.category.toLowerCase()}`,{defaultValue:n.category})}),f.jsx("p",{className:"text-sm leading-relaxed text-foreground",children:n.text})]},i))})}function ZB({news:t,idle:e,error:r}){const{t:n}=ye();return r?f.jsx("p",{className:"text-sm text-risk",children:r}):e||!(t!=null&&t.summary)?f.jsx("p",{className:"text-sm text-muted",children:n("magazine.story.idle")}):f.jsxs("div",{className:"space-y-6",children:[f.jsx(QB,{summary:t.summary}),t.insight&&f.jsxs("div",{className:"border-l-4 border-primary pl-4",children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-wide text-muted",children:n("news.intelligence.insightTitle")}),f.jsx("p",{className:"mt-2 font-serif text-sm font-bold leading-[1.7875] text-foreground",children:f.jsx("span",{className:"box-decoration-clone bg-sky-200/70 px-1 py-0.5",children:t.insight})})]}),f.jsx("div",{className:"flex justify-end",children:f.jsxs(be,{to:"/news/market",className:"text-sm font-medium text-primary hover:underline",children:[n("news.intelligence.viewArchive")," â"]})})]})}function ez({rows:t,limit:e=5}){const{t:r}=ye(),n=t.slice(0,e);return n.length===0?f.jsx("p",{className:"text-sm text-muted",children:r("magazine.movers.empty")}):f.jsx("div",{className:"-mx-4 flex gap-3 overflow-x-auto px-4 pb-2 sm:mx-0 sm:grid sm:grid-cols-2 sm:overflow-visible sm:px-0 lg:grid-cols-5",children:n.map(i=>f.jsxs(be,{to:`/strategy/${i.ticker}`,className:"min-w-[11.5rem] shrink-0 rounded-xl border border-border bg-white p-4 transition hover:border-primary/30 hover:shadow-sm sm:min-w-0",children:[f.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[f.jsx("span",{className:"font-serif text-lg font-bold text-primary",children:i.ticker}),f.jsxs("span",{className:"text-xs text-muted",children:["#",i.rank]})]}),f.jsx("p",{className:"mt-1 truncate text-xs text-muted",children:i.corpName}),f.jsxs("dl",{className:"mt-4 space-y-1.5 text-xs",children:[f.jsxs("div",{className:"flex justify-between gap-2",children:[f.jsx("dt",{className:"text-muted",children:"PrimeScore"}),f.jsx("dd",{className:"font-semibold",children:i.prime.primeScore})]}),f.jsxs("div",{className:"flex justify-between gap-2",children:[f.jsx("dt",{className:"text-muted",children:"TRP"}),f.jsx("dd",{className:"font-semibold",children:i.trp.trp})]}),f.jsxs("div",{className:"flex justify-between gap-2",children:[f.jsx("dt",{className:"text-muted",children:"Velocity"}),f.jsx("dd",{className:`font-semibold ${XB(i.trp.trpVelocity7d)}`,children:YB(i.trp.trpVelocity7d)})]}),f.jsxs("div",{className:"flex justify-between gap-2",children:[f.jsx("dt",{className:"text-muted",children:"RS"}),f.jsx("dd",{className:"font-semibold",children:i.features.relativeStrengthSPY!=null?`${i.features.relativeStrengthSPY>0?"+":""}${i.features.relativeStrengthSPY.toFixed(1)}`:"â"})]}),f.jsxs("div",{className:"flex justify-between gap-2",children:[f.jsx("dt",{className:"text-muted",children:r("strategy.signal")}),f.jsx("dd",{className:`font-semibold ${lp(i.signal.signal)}`,children:sp(i.signal.signal)}
1637)]})]})]},i.ticker))})}function tz({rows:t,regime:e,limit:r=4}){const{t:n}=ye(),i=t.slice(0,r);return i.length===0?f.jsx("p",{className:"text-sm text-muted",children:n("magazine.radar.empty")}):f.jsx("div",{className:"grid gap-4 sm:grid-cols-2",children:i.map(a=>f.jsxs("article",{className:"rounded-xl border border-border bg-white p-5 shadow-sm",children:[f.jsxs("div",{className:"flex items-start justify-between gap-3",children:[f.jsxs("div",{children:[f.jsx(be,{to:`/strategy/${a.ticker}`,className:"font-serif text-2xl font-bold text-primary hover:underline",children:a.ticker}),f.jsx("p",{className:"text-sm text-muted",children:a.corpName})]}),f.jsx("span",{className:`text-sm font-bold ${lp(a.signal.signal)}`,children:sp(a.signal.signal)})]}),f.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-3 text-sm sm:grid-cols-4",children:[f.jsx(jf,{label:"PrimeScore",glossary:"primescore",value:String(a.prime.primeScore)}),f.jsx(jf,{label:"TRP",glossary:"trp",value:String(a.trp.trp)}),f.jsx(jf,{label:"Velocity",value:YB(a.trp.trpVelocity7d),className:XB(a.trp.trpVelocity7d)}),f.jsx(jf,{label:n("strategy.historyRegime"),glossary:"market-regime",value:e?String(e.score):"â"})]}),a.signal.reasons.length>0&&f.jsxs("div",{className:"mt-4",children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-wide text-muted",children:n("magazine.radar.why")}),f.jsx("ul",{className:"mt-2 space-y-1",children:a.signal.reasons.slice(0,4).map(o=>f.jsxs("li",{className:"flex gap-2 text-sm text-foreground",children:[f.jsx("span",{className:"text-emerald-600",children:"â"}),f.jsx("span",{children:o})]},o))})]})]},a.ticker))})}function jf({label:t,value:e,className:r="",glossary:n}){return f.jsxs("div",{children:[f.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wide text-muted",children:n?f.jsx(Mt,{term:n,children:t}):t}),f.jsx("p",{className:`mt-0.5 font-semibold ${r}`,children:e})]})}function jce(t){const e=t.filter(n=>n.relativeStrength!=null);if(e.length>0)return e.reduce((n,i)=>n+(i.relativeStrength??0),0)/e.length;const r=t.filter(n=>n.changePct!=null);return r.length===0?null:r.reduce((n,i)=>n+(i.changePct??0),0)/r.length}function rz({sectors:t}){const{t:e}=ye(),r=N.useMemo(()=>{const n=Object.entries(t).map(([o,l])=>({name:o,score:jce(l),count:l.length})),i=n.filter(o=>o.score!=null);if(i.length===0)return n.map(o=>({...o,width:8}));const a=Math.max(...i.map(o=>Math.abs(o.score)),1);return n.map(o=>({...o,width:o.score==null?8:Math.max(12,Math.round(Math.abs(o.score)/a*100))}))},[t]);return r.length===0?f.jsx("p",{className:"text-sm text-muted",children:e("magazine.sector.empty")}):f.jsx("ul",{className:"space-y-3",children:r.map(n=>f.jsxs("li",{className:"flex items-center gap-3",children:[f.jsx("span",{className:"w-36 shrink-0 truncate text-sm font-medium text-foreground sm:w-44",children:n.name}),f.jsx("div",{className:"h-2.5 min-w-0 flex-1 rounded-full bg-card",children:f.jsx("div",{className:`h-2.5 rounded-full ${(n.score??0)>=0?"bg-primary":"bg-amber-500"}`,style:{width:`${n.width}%`}})}),f.jsx("span",{className:"w-14 shrink-0 text-right text-xs font-semibold tabular-nums text-muted",children:n.score==null?"â":`${n.score>0?"+":""}${n.score.toFixed(1)}`})]},n.name))})}function cp({ticker:t,corpName:e,slug:r,sector:n,compact:i,iconOnly:a}){const{t:o}=ye(),{load:l,isWatching:u,add:d,remove:h,loading:m,error:g,clearError:v}=gu(),b=ze(A=>A.session),w=ze(A=>A.openLogin);N.useEffect(()=>{l()},[l]);const x=u(t),k=async()=>{if(!b){w();return}v();try{x?await h(t):await d({ticker:t,corpName:e,slug:r,sector:n})}catch{}},P=i||a;return f.jsxs("span",{className:`inline-flex flex-col gap-1 ${a?"items-center":"items-end"}`,children:[f.jsxs("button",{type:"button",disabled:m,onClick:()=>void k(),className:`transition ${a?"border-0 bg-transparent p-0 text-lg leading-none text-muted hover:text-primary":`rounded border ${i?"px-2 py-1 text-xs":"px-3 py-1.5 text-sm"} ${x?"border-primary bg-primary/10 text-primary":"border-border bg-card text-muted hover:border-primary hover:text-primary"}`} ${a&&x?"text-primary":""}`,title:o(x?"watchlist.remove":"watchlist.add"),"aria-label":o(x?"watchlist.watching":"watchlist.add"),children:[x?"â
":"â",!P&&f.jsx("span",{className:"ml-1",children:o(x?"watchlist.watching":"watchlist.add")})]}),g&&!P&&f.jsx("span",{className:"max-w-[12rem] text-right text-xs text-risk-high",role:"alert",children:g})]})}function nz({rows:t,limit:e=8}){const{t:r}=ye(),n=t.filter(i=>i.price!=null||i.ticker).slice(0,e);return n.length===0?f.jsx("p",{className:"text-sm text-muted",children:r("magazine.watch.empty")}):f.jsx("div",{className:"-mx-4 flex gap-3 overflow-x-auto px-4 pb-2 sm:mx-0 sm:grid sm:grid-cols-2 sm:overflow-visible sm:px-0 lg:grid-cols-4",children:n.map(i=>{const a=i.riskScore!=null?Gr(i.riskScore):null;return f.jsxs("article",{className:"min-w-[14rem] shrink-0 rounded-xl border border-border bg-white p-4 sm:min-w-0",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx(be,{to:i.slug?`/audit/${i.slug}`:"/compounders",className:"font-serif text-lg font-bold text-primary hover:underline",children:i.ticker}),f.jsx("p",{className:"truncate text-xs text-muted",children:i.corpName})]}),f.jsx(cp,{ticker:i.ticker,corpName:i.corpName,slug:i.slug,sector:i.sector})]}),f.jsxs("dl",{className:"mt-3 space-y-1 text-xs",children:[f.jsx(Pf,{label:"P/E",value:i.peRatio!=null?i.peRatio.toFixed(1):"â"}),f.jsx(Pf,{label:"RS",value:i.relativeStrength!=null?`${i.relativeStrength>0?"+":""}${i.relativeStrength.toFixed(1)}`:"â"}),f.jsx(Pf,{label:"PrimeHealth",value:a!=null?String(a):"â"}),f.jsx(Pf,{label:"1Y",value:i.changePct!=null?`${i.changePct>0?"+":""}${i.changePct.toFixed(1)}%`:"â"})]})]},i.ticker)})})}function Pf({label:t,value:e}){return f.jsxs("div",{className:"flex justify-between gap-2",children:[f.jsx("dt",{className:"text-muted",children:t}),f.jsx("dd",{className:"font-semibold",children:e})]})}const Pce={Leaders:"titan.status.leaders",Challengers:"titan.status.challengers",Drifters:"titan.status.drifters",Relics:"titan.status.relics"};function iz(t){return ft.t(Pce[t])}const Tce={Leaders:"bg-emerald-100 text-emerald-900 ring-emerald-200",Challengers:"bg-sky-100 text-sky-900 ring-sky-200",Drifters:"bg-amber-100 text-amber-900 ring-amber-200",Relics:"bg-red-100 text-red-800 ring-red-200"};function az({status:t,className:e=""}){return f.jsx("span",{className:`inline-flex rounded-full px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide ring-1 ring-inset ${Tce[t]} ${e}`,children:iz(t)})}function oz({reports:t,limit:e=6}){const{t:r}=ye(),n=[...t].sort((i,a)=>(a.titanScore??Gr(a.riskScore))-(i.titanScore??Gr(i.riskScore))).slice(0,e);return n.length===0?f.jsx("p",{className:"text-sm text-muted",children:r("magazine.audit.empty")}):f.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:n.map(i=>{const a=Gr(i.riskScore),o=i.titanScore??a,l=ep(o,i.titanStatus??i.titanGrade);return f.jsxs(be,{to:rl(i.slug),className:"rounded-xl border border-border bg-white p-4 transition hover:border-primary/30 hover:shadow-sm",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2",children:[f.jsxs("div",{children:[f.jsx("p",{className:"font-serif text-lg font-bold text-primary",children:i.ticker}),f.jsx("p",{className:"text-xs text-muted",children:i.corpName})]}),f.jsx(az,{status:l})]}),f.jsxs("div",{className:"mt-3 flex gap-4 text-sm",children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-[10px] uppercase text-muted",children:"PrimeScore"}),f.jsx("p",{className:"font-semibold",children:o})]}),f.jsxs("div",{children:[f.jsx("p",{className:"text-[10px] uppercase text-muted",children:"PrimeHealth"}),f.jsx("p",{className:"font-semibold",children:a})]})]}),i.industry&&f.jsx("p",{className:"mt-3 line-clamp-2 text-xs leading-relaxed text-muted",children:i.industry})]},i.slug)})})}function vt({tall:t=!1}){return f.jsx("div",{className:`card animate-pulse bg-card ${t?"h-64":"h-40"}`})}function CS({message:t}){return f.jsx("div",{className:"card border border-dashed border-border py-12 text-center text-sm text-muted",children:t})}function Bk({message:t}){return f.jsxs("div",{className:"card border border-risk-high/30 bg-risk-high/5 py-6 px-4 text-sm text-risk-high",children:[f.jsx("p",{className:"font-semibold",children:"ì¤ë¥"}),f.jsx("p",{className:"mt-2 leading-relaxed",children:t})]})}function zk({source:t,fetchedAt:e}){const{t:r}=ye();return!t&&!e?null:f.jsxs("p",{className:"mb-3 text-xs text-muted",children:[t&&f.jsxs("span",{children:[r("dashboard.source"),": ",t]}),t&&e&&f.jsx("span",{className:"mx-2",children:"·"}),e&&f.jsxs("span",{children:[r("dashboard.fetchedAt"),": ",new Date(e).toLocaleStr
1637ing()]})]})}function bM(t){return t.includes("ì ì¥ë")||t.includes("stored")||t.includes("click")||t.includes("í´ë¦")}const Ff=20,Go={scope:"featured",rows:[],fetchedAt:new Date().toISOString(),stale:!0};function Ace(t,e){const r=(e==null?void 0:e.autoHydrate)!==!1,[n,i]=N.useState([]),[a,o]=N.useState(Go),[l,u]=N.useState(r),[d,h]=N.useState(!1),[m,g]=N.useState(new Set),[v,b]=N.useState(),w=N.useRef(!1),x=N.useCallback(async O=>{try{const I=await xn("featured",{cacheOnly:O});return o(I),I}catch(I){if(O)return o(Go),Go;throw I}},[]),k=N.useCallback(async()=>{const O=await NB();return i(O),O},[]),P=N.useCallback(async()=>{u(!0),b(void 0);try{(await k()).length>0?await x(!0):o(Go)}catch(O){b(O instanceof Error?O.message:"Failed to load featured stocks")}finally{u(!1)}},[k,x]);N.useEffect(()=>{},[r,P]);const A=N.useCallback(async()=>{if(!t||w.current)return;const O=n.map(I=>I.ticker);if(O.length!==0){w.current=!0,b(void 0),h(!0),g(new Set(O));try{await xn("featured",{refresh:!0,tickers:O}),await x(!0)}catch(I){b(I instanceof Error?I.message:"Failed to refresh quotes")}finally{h(!1),g(new Set),w.current=!1}}},[t,n,x]),E=N.useCallback(async O=>{b(void 0);const I=await Fse(O),R=await k();if(i(R),t&&R.length>0){g(new Set([I.ticker]));try{await xn("featured",{refresh:!0,tickers:[I.ticker]}),await x(!0)}finally{g(new Set)}}else await x(!0);return I},[t,k,x]),T=N.useCallback(async O=>{b(void 0),await Vse(O);const I=await k();i(I),I.length===0?o(Go):await x(!0)},[k,x]),_=N.useCallback(async O=>{b(void 0);const I=await Bse(O);i(I.stocks);const R=I.added.map(D=>D.ticker);if(t&&R.length>0){g(new Set(R));try{await xn("featured",{refresh:!0,tickers:R}),await x(!0)}finally{g(new Set)}}else I.stocks.length>0?await x(!0):o(Go);return I},[t,x]);return{stocks:n,data:a,displayRows:a.rows,loading:l,fetching:d,loadingTickers:m,error:v,hydrate:P,refreshQuotes:A,addStock:E,addStocksBulk:_,removeStock:T,hasStocks:n.length>0,isFull:n.length>=Ff,limit:Ff,remainingSlots:Math.max(0,Ff-n.length)}}const yo=[{ticker:"NVDA",cik:"0001045810",corpName:"NVIDIA Corporation",sector:"Technology",slugBase:"nvidia",marketCapRank:1},{ticker:"MSFT",cik:"0000789019",corpName:"Microsoft Corporation",sector:"Technology",slugBase:"microsoft",marketCapRank:2},{ticker:"AAPL",cik:"0000320193",corpName:"Apple Inc.",sector:"Technology",slugBase:"apple",marketCapRank:3},{ticker:"GOOGL",cik:"0001652044",corpName:"Alphabet Inc.",sector:"Technology",slugBase:"alphabet",marketCapRank:4},{ticker:"AMZN",cik:"0001018724",corpName:"Amazon.com Inc.",sector:"Consumer Cyclical",slugBase:"amazon",marketCapRank:5},{ticker:"META",cik:"0001326801",corpName:"Meta Platforms Inc.",sector:"Technology",slugBase:"meta",marketCapRank:6},{ticker:"AVGO",cik:"0001730168",corpName:"Broadcom Inc.",sector:"Technology",slugBase:"broadcom",marketCapRank:7},{ticker:"TSLA",cik:"0001318605",corpName:"Tesla Inc.",sector:"Consumer Cyclical",slugBase:"tesla",marketCapRank:8},{ticker:"BRK.B",cik:"0001067983",corpName:"Berkshire Hathaway Inc.",sector:"Financial",slugBase:"berkshire-hathaway",marketCapRank:9},{ticker:"WMT",cik:"0000104169",corpName:"Walmart Inc.",sector:"Consumer Defensive",slugBase:"walmart",marketCapRank:10},{ticker:"JPM",cik:"0000019617",corpName:"JPMorgan Chase & Co.",sector:"Financial",slugBase:"jpmorgan",marketCapRank:11},{ticker:"V",cik:"0001403161",corpName:"Visa Inc.",sector:"Financial",slugBase:"visa",marketCapRank:12},{ticker:"LLY",cik:"0000059478",corpName:"Eli Lilly and Company",sector:"Healthcare",slugBase:"eli-lilly",marketCapRank:13},{ticker:"MA",cik:"0001141391",corpName:"Mastercard Inc.",sector:"Financial",slugBase:"mastercard",marketCapRank:14},{ticker:"UNH",cik:"0000731766",corpName:"UnitedHealth Group Inc.",sector:"Healthcare",slugBase:"unitedhealth",marketCapRank:15},{ticker:"COST",cik:"0000909832",corpName:"Costco Wholesale Corporation",sector:"Consumer Defensive",slugBase:"costco",marketCapRank:16},{ticker:"XOM",cik:"0000034088",corpName:"Exxon Mobil Corporation",sector:"Energy",slugBase:"exxon-mobil",marketCapRank:17},{ticker:"ORCL",cik:"0001341439",corpName:"Oracle Corporation",sector:"Technology",slugBase:"oracle",marketCapRank:18},{ticker:"HD",cik:"0000354950",corpName:"The Home Depot Inc.",sector:"Consumer Cyclical",slugBase:"home-depot",marketCapRank:19},{ticker:"PG",cik:"0000080424",corpName:"Procter & Gamble Co.",sector:"Consumer Defensive",slugBase:"procter-gamble",marketCapRank:20}];function Ece(t){return{cik:t.cik,corpName:t.corpName,ticker:t.ticker,sector:t.sector}}function _ce(t){const e=t.trim().toUpperCase();return yo.find(r=>r.ticker===e)??null}function Nce(t){const e=new Date().getFullYear();return`${t.slugBase}-financial-risk-${e}`}const Vk=["Technology","CommunicationServices","Healthcare","Financial","Consumer","Industrial"],IS=[{ticker:"NVDA",cik:"0001045810",corpName:"NVIDIA Corporation",sector:"Technology",slugBase:"nvidia"},{ticker:"MSFT",cik:"0000789019",corpName:"Microsoft Corporation",sector:"Technology",slugBase:"microsoft"},{ticker:"AVGO",cik:"0001730168",corpName:"Broadcom Inc.",sector:"Technology",slugBase:"broadcom"},{ticker:"ORCL",cik:"0001341439",corpName:"Oracle Corporation",sector:"Technology",slugBase:"oracle"}
1637,{ticker:"GOOGL",cik:"0001652044",corpName:"Alphabet Inc.",sector:"CommunicationServices",slugBase:"alphabet"},{ticker:"META",cik:"0001326801",corpName:"Meta Platforms Inc.",sector:"CommunicationServices",slugBase:"meta"},{ticker:"NFLX",cik:"0001065280",corpName:"Netflix Inc.",sector:"CommunicationServices",slugBase:"netflix"},{ticker:"DIS",cik:"0001001039",corpName:"The Walt Disney Company",sector:"CommunicationServices",slugBase:"disney"},{ticker:"LLY",cik:"0000059478",corpName:"Eli Lilly and Company",sector:"Healthcare",slugBase:"eli-lilly"},{ticker:"UNH",cik:"0000731766",corpName:"UnitedHealth Group Inc.",sector:"Healthcare",slugBase:"unitedhealth"},{ticker:"JNJ",cik:"0000200406",corpName:"Johnson & Johnson",sector:"Healthcare",slugBase:"johnson-johnson"},{ticker:"ABBV",cik:"0001551152",corpName:"AbbVie Inc.",sector:"Healthcare",slugBase:"abbvie"},{ticker:"JPM",cik:"0000019617",corpName:"JPMorgan Chase & Co.",sector:"Financial",slugBase:"jpmorgan"},{ticker:"V",cik:"0001403161",corpName:"Visa Inc.",sector:"Financial",slugBase:"visa"},{ticker:"MA",cik:"0001141391",corpName:"Mastercard Inc.",sector:"Financial",slugBase:"mastercard"},{ticker:"BRK.B",cik:"0001067983",corpName:"Berkshire Hathaway Inc.",sector:"Financial",slugBase:"berkshire-hathaway"},{ticker:"COST",cik:"0000909832",corpName:"Costco Wholesale Corporation",sector:"Consumer",slugBase:"costco"},{ticker:"WMT",cik:"0000104169",corpName:"Walmart Inc.",sector:"Consumer",slugBase:"walmart"},{ticker:"PG",cik:"0000080424",corpName:"Procter & Gamble Co.",sector:"Consumer",slugBase:"procter-gamble"},{ticker:"KO",cik:"0000021344",corpName:"The Coca-Cola Company",sector:"Consumer",slugBase:"coca-cola"},{ticker:"GE",cik:"0000040545",corpName:"GE Aerospace",sector:"Industrial",slugBase:"ge-aerospace"},{ticker:"CAT",cik:"0000018230",corpName:"Caterpillar Inc.",sector:"Industrial",slugBase:"caterpillar"},{ticker:"HON",cik:"0000773840",corpName:"Honeywell International Inc.",sector:"Industrial",slugBase:"honeywell"},{ticker:"UPS",cik:"0001090727",corpName:"United Parcel Service Inc.",sector:"Industrial",slugBase:"ups"}];function Oce(t){return`${t.slugBase}-${t.ticker.toLowerCase().replace(".","-")}-audit`}const Nr=5;function wM(){const t=yo.map(r=>r.ticker),e=[];for(let r=0;r<t.length;r+=Nr)e.push(t.slice(r,r+Nr));return e}function SM(){return[...Vk]}function sz(t){return{ticker:t.ticker,corpName:t.corpName,sector:t.sector,slug:Nce(t),price:null,marketCap:null,peRatio:null,changePct:null,yearTrend:[],relativeStrength:null,riskScore:null,sectorCapShare:null}}function RS(t){return{ticker:t.ticker,corpName:t.corpName,sector:t.sector,slug:Oce(t),price:null,marketCap:null,peRatio:null,changePct:null,yearTrend:[],relativeStrength:null,riskScore:null,sectorCapShare:null}}function kM(t=Nr){return{scope:"mega",rows:yo.slice(0,t).map(sz),fetchedAt:new Date().toISOString(),stale:!0,cached:!1}}function jM(){const t={};for(const e of Vk)t[e]=IS.filter(r=>r.sector===e).map(RS);return{scope:"sector",rows:IS.map(RS),sectors:t,fetchedAt:new Date().toISOString(),stale:!0,cached:!1}}function PM(t,e,r){const n=new Map(e.rows.map(a=>[a.ticker,mu(a)])),i=yo.slice(0,r).map(a=>{const o=n.get(a.ticker)??(t==null?void 0:t.rows.find(l=>l.ticker===a.ticker))??sz(a);return mu(o)});return{...e,rows:i,scope:"mega"}}function TM(t,e){const r={...(t==null?void 0:t.sectors)??{},...e.sectors??{}};for(const n of Vk)r[n]?r[n]=r[n].map(mu):r[n]=IS.filter(i=>i.sector===n).map(RS);return{...e,sectors:r,scope:"sector"}}function Cce(t){let e=0;for(const r of yo){const n=t.find(i=>i.ticker===r.ticker);if((n==null?void 0:n.price)!=null)e++;else break}return e===0?Nr:Math.min(20,Math.max(Nr,Math.ceil(e/Nr)*Nr))}function Ice(t=!0){const[e,r]=N.useState(()=>kM()),[n,i]=N.useState(Nr),[a,o]=N.useState(new Set),[l,u]=N.useState(!1),[d,h]=N.useState(),m=N.useRef(!1),g=N.useCallback(async A=>{const E=await xn("mega",{cacheOnly:!0});return r(T=>PM(T,E,A)),E},[]),v=N.useCallback(async(A,E)=>{o(T=>new Set([...T,...A]));try{t&&await xn("mega",{refresh:!0,tickers:A}),await g(E)}catch(T){throw h(T instanceof Error?T.message:"Failed to load quotes"),T}finally{o(T=>{const _=new Set(T);return A.forEach(O=>_.delete(O)),_})}},[t,g]),b=N.useCallback(async()=>{try{const A=await xn("mega",{cacheOnly:!0});if(!A.rows.some(T=>T.price!=null))return;const E=Cce(A.rows);i(E),r(PM(void 0,A,E))}catch{}},[]),w=N.useCallback(async()=>
1637{if(!t||m.current)return;m.current=!0,h(void 0),u(!0),i(Nr),r(kM(Nr));const A=wM();try{await v(A[0],Nr),A[1]&&(i(10),await v(A[1],10))}finally{u(!1),m.current=!1}},[t,v]),x=N.useCallback(async()=>{if(m.current||n>=20)return;m.current=!0,h(void 0),u(!0);const A=wM(),E=Math.floor(n/Nr);try{const T=Math.min(n+Nr,20);i(T),t&&A[E]?await v(A[E],T):await g(T)}finally{u(!1),m.current=!1}},[t,v,g,n]),k=e.rows.slice(0,n),P=n<20&&a.size===0;return{data:e,displayRows:k,visibleCount:n,loadingTickers:a,fetching:l,error:d,canLoadMore:P,hydrateFromCache:b,startFetch:w,loadMore:x}}function Rce(t=!0){const[e,r]=N.useState(()=>jM()),[n,i]=N.useState(new Set),[a,o]=N.useState(new Set),[l,u]=N.useState(!1),[d,h]=N.useState(),m=N.useRef(!1),g=N.useCallback(async()=>{const k=await xn("sector",{cacheOnly:!0});return r(P=>TM(P,k)),k},[]),v=N.useCallback(async k=>{i(P=>new Set([...P,k]));try{t&&await xn("sector",{refresh:!0,sectorGroup:k}),await g(),o(P=>new Set([...P,k]))}catch(P){throw h(P instanceof Error?P.message:"Failed to load sector"),P}finally{i(P=>{const A=new Set(P);return A.delete(k),A})}},[t,g]),b=N.useCallback(async()=>{var k;try{const P=await xn("sector",{cacheOnly:!0});if(!Object.values(P.sectors??{}).flat().some(T=>T.price!=null))return;r(TM(void 0,P));const E=new Set;for(const T of SM())(((k=P.sectors)==null?void 0:k[T])??[]).every(_=>_.price!=null)&&E.add(T);o(E)}catch{}},[]),w=N.useCallback(async()=>{if(!t||m.current)return;m.current=!0,h(void 0),u(!0),r(jM()),o(new Set);const k=SM();try{for(const P of k)await v(P)}finally{u(!1),m.current=!1}},[t,v]),x=N.useCallback(async k=>{t&&await v(k)},[t,v]);return{data:e,loadingSectors:n,loadedSectors:a,fetching:l,error:d,hydrateFromCache:b,startFetch:w,refreshSector:x}}function up(){var L;const{t,i18n:e}=ye(),r=jn(),n=((L=e.language)==null?void 0:L.split("-")[0])??"en",[i,a]=N.useState({status:"idle"}),[o,l]=N.useState({status:"idle"}),[u,d]=N.useState(null),[h,m]=N.useState(!0),[g,v]=N.useState(!1),[b,w]=N.useState([]),[x,k]=N.useState(!0),[P,A]=N.useState([]),[E,T]=N.useState(!0),[_,O]=N.useState({totalViews:0,totalDownloads:0,totalShares:0}),I=Ace(r,{autoHydrate:!1}),R=Rce(r),D=Ice(r),F=N.useCallback(async()=>{var W;try{const V=await NS({cacheOnly:!0});(W=V.indicators)!=null&&W.length?a({status:"loaded",data:V}):a({status:"idle"})}catch(V){const re=V instanceof Error?V.message:"";a(bM(re)?{status:"idle"}:{status:"error",error:re||t("macro.empty")})}},[t]),B=N.useCallback(async W=>{var V;a({status:"loading"});try{const re=await NS({refresh:W.refresh});if(!((V=re.indicators)!=null&&V.length)){a({status:"error",error:t("macro.empty")});return}a({status:"loaded",data:re})}catch(re){a({status:"error",error:re instanceof Error?re.message:t("macro.empty")})}},[t]),G=N.useCallback(async()=>{try{const W=await iM({cacheOnly:!0,lang:n});W.summary?l({status:"loaded",data:W}):l({status:"idle"})}catch(W){const V=W instanceof Error?W.message:"";l(bM(V)?{status:"idle"}:{status:"error",error:V||t("news.market.empty")})}},[n,t]),Y=N.useCallback(async W=>{l({status:"loading"});try{const V=await iM({refresh:W.refresh,lang:n});if(!V.summary){l({status:"error",error:t("news.market.empty")});return}l({status:"loaded",data:V})}catch(V){l({status:"error",error:V instanceof Error?V.message:t("news.market.empty")})}},[n,t]),z=N.useCallback((W=!1)=>{W?v(!0):m(!0),Rk({refresh:W,limit:20}).then(d).catch(()=>d(null)).finally(()=>{m(!1),v(!1)})},[]),K=N.useCallback(()=>{T(!0),Wse().then(({reports:W,stats:V})=>{A(W),O(V)}).catch(()=>{}).finally(()=>T(!1))},[]);N.useEffect(()=>{F(),G(),z(!1),k(!0),OB(5).then(W=>w(W.rows)).catch(()=>w([])).finally(()=>k(!1))},[F,G,z]),N.useEffect(()=>{G()},[G]);const Q=I.hydrate,q=R.hydrateFromCache,Z=D.hydrateFromCache,ee=N.useCallback(()=>{Q(),q(),Z(),K()},[Q,q,Z,K]);return{isEditor:r,newsLang:n,macro:i,news:o,strategy:u,strategyLoading:h,strategyRefreshing:g,topPicks:b,topPicksLoading:x,reports:P,reportsLoading:E,stats:_,featuredMarket:I,sectorMarket:R,megaMarket:D,loadMacro:B,loadNews:Y,loadStrategy:z,loadReports:K,hydrateSecondary:ee}}function Mce(){var l,u;const{t}=ye(),e=f1(),r=up(),n=N.useRef(!1),i=((l=r.strategy)==null?void 0:l.rows)??[],a=((u=r.strategy)==null?void 0:u.marketRegime)??null,o=()=>{n.current||(n.current=!0,r.hydrateSecondary())};return f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:t("magazine.seo.homeTitle"),description:t("magazine.seo.homeDescription"),path:"/"}),f.jsxs("div",{className:"hero-landing relative isolate min-h-[280px] overflow-hidden border-b border-border sm:min-h-[320px] lg:min-h-[360px]",style:{backgroundImage:"url('/images/bg-hero-mountains.jpg')"},children:[f.jsx("div",{className:"hero-landing__scrim pointer-events-none absolute inset-0","aria-hidden":!0}),f.jsx("div",{className:"relative z-10 flex min-h-[inherit] flex-col justify-center",children:f.jsxs("div",{className:"mx-auto w-full max-w-7xl px-4 py-10 text-center sm:px-6 sm:py-14",children:[f.jsx("h1",{className:"font-serif-display mx-auto max-w-4xl text-3xl text-primary drop-shadow-sm sm:text-4xl lg:text-5xl",children:t("hero.title")}),f.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-muted",children:t("hero.subtitle")}),f.jsx("p",{className:"mx-auto mt-2 max-w-xl text-sm text-muted/90",children:t("hero.koreanLead")}),f.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:[f.jsx(be,{to:"/market",className:"btn-primary inline-flex",children:t("hero.ctaMarket")}),f.jsx(be,{to:"/compounders",className:"btn-secondary inline-flex",children:t("hero.ctaCompounders")})]})]})}),f.jsxs("p",{className:"absolute bottom-3 left-1/2 z-20 w-full max-w-7xl -translate-x-1/2 px-4 text-center text-xs opacity-60 sm:bottom-4 sm:left-auto sm:right-6 sm:translate-x-0 sm:px-0 sm:text-right",children:[f.jsxs("span",{className:"text-muted",children:[t("hero.photoCredit")," "]}),f.jsx("a",{href:"https://unsplash.com/@luobulinka",target:"_blank",rel:"noopener noreferrer",className:"font-medium text-primary/60 underline decoration-primary/20 underline-offset-2 hover:text-primary/80",children:"Luobulinka"})]})]}),f.jsxs(Pt,{title:t("magazine.prime.title"),subtitle:t("magazine.prime.subtitle"),action:{to:"/market",label:t("nav.market")},children:[r.isEditor&&f.jsxs("div",{className:"mb-4 flex flex-wrap justify-end gap-2",children:[f.jsxs("button",{type:"button",className:"btn-secondary text-sm",disabled:r.macro.status==="loading",onClick:()=>void r.loadMacro({refresh:!0}),children:[t("magazine.refresh")," Macro"]}),f.jsxs("button",{type:"button",className:"btn-secondary text-sm",disabled:r.news.status==="loading",onClick:()=>void r.loadNews({refresh:!0}),children:[t("magazine.refresh")," Story"]}),f.jsxs("button",{type:"button",className:"btn-secondary text-sm",disabled:r.strategyRefreshing,onClick:()=>r.loadStrategy(!0),children:[t("magazine.refresh")," Strategy"]}
1637)]}),(r.strategyLoading||r.topPicksLoading)&&!r.strategy?f.jsx(vt,{}):f.jsx(JB,{regime:a,macro:r.macro.data??null,news:r.news.data??null,topPick:r.topPicks[0]??null,radarPreview:i[0]??null})]}),f.jsxs(Pt,{title:t("magazine.story.title"),subtitle:t("magazine.story.subtitle"),action:{to:"/news/market",label:t("news.intelligence.viewArchive")},children:[r.news.status==="loading"&&f.jsx(vt,{tall:!0}),r.news.status!=="loading"&&f.jsx(ZB,{news:r.news.data??null,idle:r.news.status==="idle",error:r.news.status==="error"?r.news.error:null})]}),f.jsx(Pt,{title:t("magazine.movers.title"),subtitle:t("magazine.movers.subtitle"),action:{to:"/trail",label:t("nav.trail")},children:r.strategyLoading?f.jsx(vt,{}):f.jsx(ez,{rows:i,limit:5})}),f.jsx(Pt,{title:t("magazine.radar.title"),subtitle:t("magazine.radar.subtitle"),action:{to:"/strategy",label:t("magazine.radar.viewAll")},children:r.strategyLoading?f.jsx(vt,{}):f.jsx(tz,{rows:i,regime:a,limit:4})}),f.jsx(yce,{placeholder:f.jsx("div",{className:"mx-auto max-w-7xl px-4 py-16 sm:px-6"}),children:f.jsx(Lce,{mag:r,onMount:o})}),f.jsx("section",{className:"border-t border-border bg-card",children:f.jsxs("div",{className:"mx-auto flex max-w-7xl flex-col gap-8 px-4 py-8 sm:px-6",children:[e==="landing"&&f.jsxs("div",{className:"grid gap-6 lg:grid-cols-[1fr_2fr]",children:[f.jsxs("div",{children:[f.jsx(m1,{className:"text-2xl font-bold text-foreground [&_svg]:h-5 [&_svg]:w-5",label:t("nexus.siteViews"),showLabel:!0}),f.jsx("div",{className:"mt-1 text-sm text-muted",children:t("nexus.siteViewsHint")})]}),f.jsx(NF,{className:"text-foreground",title:t("nexus.trafficTrend"),height:140})]}),f.jsxs("div",{className:"flex gap-8",children:[f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold",children:r.stats.totalViews.toLocaleString()}),f.jsx("div",{className:"text-sm text-muted",children:t("stats.reportReads")})]}),f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold",children:r.stats.totalDownloads.toLocaleString()}),f.jsx("div",{className:"text-sm text-muted",children:t("stats.downloads")})]}),f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold",children:r.stats.totalShares.toLocaleString()}),f.jsx("div",{className:"text-sm text-muted",children:t("stats.shares")})]})]})]})})]})}function Lce({mag:t,onMount:e}){const r=N.useRef(!1);N.useEffect(()=>{r.current||(r.current=!0,e())},[e]);const{t:n}=ye();return f.jsxs(f.Fragment,{children:[f.jsxs(Pt,{title:n("magazine.sector.title"),subtitle:n("magazine.sector.subtitle"),action:{to:"/market",label:n("nav.market")},children:[t.isEditor&&f.jsx("div",{className:"mb-4 flex justify-end",children:f.jsx("button",{type:"button",className:"btn-secondary text-sm",disabled:t.sectorMarket.fetching,onClick:()=>void t.sectorMarket.startFetch(),children:n("magazine.refresh")})}),f.jsx(rz,{sectors:t.sectorMarket.data.sectors??{}})]}),f.jsxs(Pt,{title:n("magazine.watch.title"),subtitle:n("magazine.watch.subtitle"),action:{to:"/compounders",label:n("nav.compounders")},children:[t.isEditor&&t.featuredMarket.hasStocks&&f.jsx("div",{className:"mb-4 flex justify-end",children:f.jsx("button",{type:"button",className:"btn-secondary text-sm",disabled:t.featuredMarket.fetching,onClick:()=>void t.featuredMarket.refreshQuotes(),children:n("magazine.refresh")})}),t.featuredMarket.loading?f.jsx(vt,{}):f.jsx(nz,{rows:t.featuredMarket.displayRows,limit:8})]}),f.jsx(Pt,{title:n("magazine.audit.title"),subtitle:n("magazine.audit.subtitle"),action:{to:"/compounders",label:n("nav.compounders")},children:t.reportsLoading?f.jsx(vt,{}):f.jsx(oz,{reports:t.reports,limit:6})}),f.jsx(Dce,{})]})}function Dce(){var l,u;const{t,i18n:e}=ye(),r=((l=e.language)==null?void 0:l.split("-")[0])??"en",[n,i]=N.useState(null),[a,o]=N.useState(!1);return N.useEffect(()=>{BB(r,1).then(({entries:d})=>i(d[0]??null)).catch(()=>i(null)).finally(()=>o(!0))},[r]),!a||!n?null:f.jsx(Pt,{title:t("journal.hubTitle"),subtitle:t("journal.hubLead"),action:{to:"/journal",label:t("nav.journal")},children:f.jsxs(be,{to:`/journal/${n.slug}`,className:"block rounded-2xl border border-border bg-white p-6 shadow-sm transition hover:border-primary/30",children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-wide text-muted",children:n.entryDate}),f.jsx("p",{className:"font-serif-display mt-2 text-2xl text-primary",children:((u=n.title)==null?void 0:u.trim())||t("journal.defaultTitle")}),n.watchingTickers.length>0&&f.jsx("p",{className:"mt-2 text-sm text-muted",children:n.watchingTickers.join(" · ")}),f.jsxs("p",{className:"mt-4 text-sm font-medium text-primary",children:[t("journal.readEntry")," â"]})]})})}const $ce=["fetching","calculating","analyzing"];function Fce({currentStep:t}){const{t:e}=ye(),n=["fetching","calculating","analyzing","complete"].indexOf(t),i={idle:"",fetching:e("loading.fetching"),calculating:e("loading.calculating"),analyzing:e("loading.analyzing"),complete:"",error:""};return f.jsxs("div",{className:"card mx-auto max-w-lg",children:[f.jsx("h3",{className:"mb-4 font-serif text-lg font-semibold text-primary",children:e("analyze.start")}),f.jsx("div",{className:"space-y-3",children:$ce.map((a,o)=>{const l=n>o,u=n===o;return f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:`flex h-8 w-8 items-center justify-center rounded-full text-sm font-medium ${l?"bg-safe text-white":u?"bg-primary text-white animate-pulse":"bg-card text-muted"}`,children:l?"â":o+1}),f.jsx("span",{className:u?"font-medium text-foreground":"text-muted",children:i[a]})]},a)})})]})}const Bce=tp(t=>({query:"",results:[],selected:null,step:"idle",error:null,setQuery:e=>t({query:e}),setResults:e=>t({results:e}),setSelected:e=>t({selected:e}),setStep:e=>t({step:e}),setError:e=>t({error:e}),reset:()=>t({query:"",results:[],selected:null,step:"idle",error:null})}));function zce(t,e){let r;try{r=t()}catch{return}return{getItem:i=>{var a;const o=u=>u===null?null:JSON.parse(u,void 0),l=(a=r.getItem(i))!=null?a:null;return l instanceof Promise?l.then(o):o(l)},setItem:(i,a)=>r.setItem(i,JSON.stringify(a,void 0)),removeItem:i=>r.removeItem(i)}}const MS=t=>e=>{try{const r=t(e);return r instanceof Promise?r:{then(n){return MS(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return MS(n)(r)}}}},Vce=(t,e)=>(r,n,i)=>{let a={storage:zce(()=>window.localStorage),partialize:x=>x,version:0,merge:(x,k)=>({...k,...x}),...e},o=!1,l=0;const u=new Set,d=new Set;let h=a.storage;if(!h)return t((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...x)},n,i);const m=()=>{const x=a.partialize({...n()});return h.setItem(a.name,{state:x,version:a.version})},g=i.setState;i.setState=(x,k)=>(g(x,k),m());const v=t((...x)=>
1637(r(...x),m()),n,i);i.getInitialState=()=>v;let b;const w=()=>{var x,k;if(!h)return;const P=++l;o=!1,u.forEach(E=>{var T;return E((T=n())!=null?T:v)});const A=((k=a.onRehydrateStorage)==null?void 0:k.call(a,(x=n())!=null?x:v))||void 0;return MS(h.getItem.bind(h))(a.name).then(E=>{if(E)if(typeof E.version=="number"&&E.version!==a.version){if(a.migrate){const T=a.migrate(E.state,E.version);return T instanceof Promise?T.then(_=>[!0,_]):[!0,T]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,E.state];return[!1,void 0]}).then(E=>{var T;if(P!==l)return;const[_,O]=E;if(b=a.merge(O,(T=n())!=null?T:v),r(b,!0),_)return m()}).then(()=>{P===l&&(A==null||A(n(),void 0),b=n(),o=!0,d.forEach(E=>E(b)))}).catch(E=>{P===l&&(A==null||A(void 0,E))})};return i.persist={setOptions:x=>{a={...a,...x},x.storage&&(h=x.storage)},clearStorage:()=>{h==null||h.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>w(),hasHydrated:()=>o,onHydrate:x=>(u.add(x),()=>{u.delete(x)}),onFinishHydration:x=>(d.add(x),()=>{d.delete(x)})},a.skipHydration||w(),b||v},Uce=Vce,lz=tp()(Uce((t,e)=>({reports:{},setReport:r=>t(n=>({reports:{...n.reports,[r.slug]:r}})),getReport:r=>e().reports[r]??null}),{name:"ws-audit-reports",partialize:t=>({reports:t.reports})}));function cz(t,e=300){const[r,n]=N.useState(t);return N.useEffect(()=>{const i=setTimeout(()=>n(t),e);return()=>clearTimeout(i)},[t,e]),r}function Wce({selectedTicker:t,onSelect:e}){return f.jsx("div",{className:"mb-3 grid grid-cols-5 gap-2 rounded-lg border border-border bg-card/60 p-3",role:"group","aria-label":"Mega Cap Top 20 tickers",children:yo.map(r=>{const n=t===r.ticker;return f.jsx("button",{type:"button",title:r.corpName,onClick:()=>e(r.ticker),className:`rounded-md border px-1 py-2 text-center font-mono text-xs font-semibold transition ${n?"border-primary bg-primary text-white shadow-sm":"border-border bg-white text-foreground hover:border-primary hover:bg-card"}`,children:r.ticker},r.ticker)})})}function Hce(){const{t}=ye(),e=jn(),r=ze(_=>_.openLogin),n=wu(),{query:i,results:a,selected:o,step:l,error:u,setQuery:d,setResults:h,setSelected:m,setStep:g,setError:v}=Bce(),b=lz(_=>_.setReport),w=cz(i,300),[x,k]=N.useState(!1),P=l!=="idle"&&l!=="complete"&&l!=="error";N.useEffect(()=>{if(w.length<1){h([]);return}k(!0),_B(w).then(h).catch(()=>h([])).finally(()=>k(!1))},[w,h]);const A=_=>{m(_),d(`${_.corpName} (${_.ticker})`),h([])},E=_=>{const O=_ce(_);O&&(A(Ece(O)),v(null))},T=async()=>{if(!o&&!i.trim()){v(t("analyze.errorEmpty"));return}v(null),g("fetching");try{await new Promise(O=>setTimeout(O,400)),g("calculating"),await new Promise(O=>setTimeout(O,400)),g("analyzing");const _=await Use({ticker:o==null?void 0:o.ticker,cik:o==null?void 0:o.cik,corpName:(o==null?void 0:o.corpName)??i.trim()});_.report&&b(_.report),g("complete"),n(rl(_.slug))}catch(_){g("error"),v(_ instanceof Error?_.message:t("analyze.errorGeneric"))}};return e?f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:"Analyze Mega Cap | NextPrimus",description:"Search US Mega Cap Top 20 tickers and run AI accounting risk analysis."}),f.jsxs("div",{className:"mx-auto max-w-2xl px-4 py-12 sm:px-6",children:[f.jsxs("div",{className:"mb-8 text-center",children:[f.jsx("h1",{className:"font-serif text-2xl font-bold text-primary",children:t("analyze.title")}),f.jsx("p",{className:"mt-2 text-sm text-muted",children:t("analyze.subtitle")})]}),P?f.jsx(Fce,{currentStep:l}):f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"card relative",children:[f.jsx("label",{htmlFor:"company-search",className:"mb-2 block text-sm font-medium",children:t("analyze.searchLabel")}),f.jsx(Wce,{selectedTicker:(o==null?void 0:o.ticker)??null,onSelect:E}),f.jsx("input",{id:"company-search",type:"text",className:"input",placeholder:t("analyze.searchPlaceholder"),value:i,onChange:_=>{d(_.target.value),m(null),v(null)},autoComplete:"off"}),x&&f.jsx("p",{className:"mt-2 text-xs text-muted",children:t("analyze.searching")}),a.length>0&&f.jsx("ul",{className:"absolute left-6 right-6 z-10 mt-1 max-h-60 overflow-auto rounded-lg border border-border bg-white shadow-lg",children:a.map(_=>f.jsx("li",{children:f.jsxs("button",{type:"button",className:"flex w-full items-center justify-between px-4 py-3 text-left text-sm hover:bg-card",onClick:()=>A(_),children:[f.jsx("span",{className:"font-medium",children:_.corpName}),f.jsx("span",{className:"text-xs font-mono text-muted",children:_.ticker})]})},_.cik))}),o&&f.jsxs("div",{className:"mt-3 rounded-lg bg-card px-3 py-2 text-sm",children:[t("analyze.selected"),": ",f.jsx("strong",{children:o.corpName})," (",o.ticker,")"]})]}),f.jsxs("div",{className:"card opacity-60",children:[f.jsx("label",{className:"mb-2 block text-sm font-medium text-muted",children:t("analyze.uploadPhase2")}),f.jsx("div",{className:"rounded-lg border-2 border-dashed border-border p-8 text-center text-sm text-muted",children:t("analyze.uploadHint")})]}),u&&f.jsx("div",{className:"rounded-lg border border-red-200 bg-red-50 px-4 py-3 text-sm text-risk",children:u}),f.jsx("button",{type:"button",className:"btn-primary w-full py-3",onClick:T,disabled:!i.trim()&&!o,children:t("analyze.start")})]})]})]}):f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:"Analyze Mega Cap | NextPrimus",description:"Editor access required for new anal
1637yses."}),f.jsxs("div",{className:"mx-auto max-w-lg px-4 py-16 text-center sm:px-6",children:[f.jsx("p",{className:"text-muted",children:t("auth.editorOnly")}),f.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-3",children:[f.jsx("button",{type:"button",className:"btn-primary",onClick:r,children:t("auth.logIn")}),f.jsx(be,{to:"/",className:"btn-secondary",children:t("report.back")})]})]})]})}function qce({snapshot:t}){const{t:e}=ye();return f.jsxs("div",{className:"card space-y-4",children:[f.jsxs("div",{className:"flex items-start justify-between gap-4",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"font-serif text-lg font-bold text-primary",children:e("strategy.summaryTitle")}),f.jsx("p",{className:"text-sm text-muted",children:e("strategy.summarySubtitle")})]}),f.jsxs(be,{to:`/strategy/${t.ticker}`,className:"text-sm text-primary hover:underline",children:[e("strategy.viewDetail")," â"]})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-muted",children:f.jsx(Mt,{term:"primescore",children:"PrimeScore"})}),f.jsx("p",{className:"text-xl font-bold",children:t.prime.primeScore})]}),f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-muted",children:f.jsx(Mt,{term:"trp",children:"TRP"})}),f.jsx("p",{className:"text-xl font-bold",children:t.trp.trp})]}),f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-muted",children:f.jsx(Mt,{term:"prime-signal",children:e("strategy.signal")})}),f.jsx("p",{className:"text-sm font-semibold",children:t.signal.signal.replace(/_/g," ")})]}),f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-muted",children:f.jsx(Mt,{term:"position-sizing",children:e("strategy.position")})}),f.jsxs("p",{className:"text-sm font-semibold",children:[t.position.tier," · ",t.position.targetWeight,"%"]})]})]})]})}function Gce(t){return t<65?ft.t("risk.high"):t<80?ft.t("risk.medium"):ft.t("risk.low")}function Kce({internalRiskScore:t}){const{t:e}=ye(),r=Gr(t),n=mce(r)*100;return f.jsxs("div",{className:"w-40 shrink-0",children:[f.jsx("p",{className:"text-center text-[10px] font-semibold uppercase tracking-wide text-muted",children:e("report.titanHealth")}),f.jsxs("div",{className:"mt-1 flex items-baseline justify-center gap-2",children:[f.jsx("span",{className:`text-2xl font-bold leading-none ${Dk(r)}`,children:r}),f.jsx("span",{className:"text-xs text-muted",children:Gce(r)})]}),f.jsx("div",{className:"relative mt-2 h-2.5 overflow-hidden rounded-full bg-slate-200",role:"meter","aria-valuenow":r,"aria-valuemin":50,"aria-valuemax":100,"aria-label":e("report.titanHealth"),children:f.jsx("div",{className:"absolute inset-y-0 left-0 rounded-full transition-all duration-700",style:{width:`${n}%`,backgroundColor:r<65?"#dc2626":r<80?"#f97316":"#16a34a"}})}),f.jsxs("div",{className:"mt-1 flex justify-between font-mono text-[9px] text-muted",children:[f.jsx("span",{children:"50"}),f.jsx("span",{children:"100"})]})]})}function Yce({score:t,status:e,size:r="lg"}){const{t:n}=ye(),i=r==="lg"?80:50,a=r==="lg"?12:8,o=i-a,l=o*2*Math.PI,u=l-gce(t)*l,d=pce(t),h=i*2;return f.jsxs("div",{className:"relative shrink-0",style:{width:h,height:h},children:[f.jsxs("svg",{width:h,height:h,viewBox:`0 0 ${h} ${h}`,className:"-rotate-90","aria-hidden":!0,children:[f.jsx("circle",{cx:i,cy:i,r:o,fill:"none",stroke:"#e2e8f0",strokeWidth:a}),f.jsx("circle",{cx:i,cy:i,r:o,fill:"none",stroke:d,strokeWidth:a,strokeDasharray:`${l} ${l}`,strokeDashoffset:u,strokeLinecap:"round",className:"transition-all duration-700"})]}),f.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center px-1",children:[f.jsx("span",{className:`text-[10px] font-semibold uppercase tracking-wide text-muted ${r==="lg"?"":"hidden"}`,children:n("report.titanScore")}),f.jsx("span",{className:`leading-none font-bold ${op(t)} ${r==="lg"?"text-4xl":"text-2xl"}`,children:t}),f.jsx("span",{className:"mt-1 text-center text-[10px] leading-tight text-muted",children:iz(e)})]})]})}function nc({label:t,value:e,weight:r,invert:n}){const i=n?100-e:e,a=i>=70?"bg-green-500":i>=50?"bg-amber-500":"bg-red-500";return f.jsxs("div",{children:[f.jsxs("div",{className:"mb-1 flex items-center justify-between text-xs",children:[f.jsxs("span",{className:"font-medium text-foreground",children:[t,r&&f.jsxs("span",{className:"ml-1 text-muted",children:["(",r,")"]})]}),f.jsx("span",{className:`font-mono font-bold ${op(n?100-e:e)}`,children:e})]}),f.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-border/60",children:f.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${a}`,style:{width:`${Math.max(0,Math.min(100,e))}%`}})})]})}function Xce({scores:t}){const{t:e}=ye();return f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-baseline justify-between border-b border-border pb-3",children:[f.jsx("h3",{className:"font-semibold",children:e("titan.breakdown.title")}),f.jsxs("div",{className:"text-right",children:[f.jsx("span",{className:"text-xs text-muted",children:e("report.titanScore")}),f.jsx("div",{className:`text-2xl font-bold ${op(t.titanScore)}`,children:t.titanScore})]})]}),f.jsx(nc,{label:e("titan.breakdown.growth"),value:t.growthScore,weight:"25%"}),f.jsx(nc,{label:e("titan.breakdown.momentum"),value:t.momentumScore,weight:"30%"}),f.jsx(nc,{label:e("titan.breakdown.quality"),value:t.qualityScore,weight:"20%"}),f.jsx(nc,{label:e("titan.breakdown.sentiment"),value:t.sentimentScore,weight:"15%"}),f.jsx(nc,{label:e("titan.breakdown.risk"),value:t.riskScore,weight:"10%",invert:!0}),f.jsx("p",{className:"text-xs leading-relaxed text-muted",children:e("titan.breakdown.formula")})]})}
1637function Jce({data:t}){const{t:e}=ye(),r=[{subject:e("charts.radar.liquidity"),value:t.liquidity,fullMark:100},{subject:e("charts.radar.profitability"),value:t.profitability,fullMark:100},{subject:e("charts.radar.leverage"),value:t.leverage,fullMark:100},{subject:e("charts.radar.growth"),value:t.growth,fullMark:100},{subject:e("charts.radar.cashFlow"),value:t.cashFlow,fullMark:100}];return f.jsx(qr,{width:"100%",height:280,children:f.jsxs(pne,{data:r,children:[f.jsx(C$,{stroke:"#e2e8f0"}),f.jsx(Ru,{dataKey:"subject",tick:{fontSize:12,fill:"#64748b"}}),f.jsx(Iu,{angle:90,domain:[0,100],tick:!1,axisLine:!1}),f.jsx(Mu,{name:e("charts.radar.series"),dataKey:"value",stroke:"#1e3a5f",fill:"#1e3a5f",fillOpacity:.3})]})})}function Qce({data:t}){const{t:e}=ye();return f.jsx(qr,{width:"100%",height:280,children:f.jsxs(Si,{data:t,children:[f.jsx(bn,{strokeDasharray:"3 3",stroke:"#e2e8f0"}),f.jsx(xr,{dataKey:"year",tick:{fontSize:12}}),f.jsx(br,{tickFormatter:r=>am(r),tick:{fontSize:11}}),f.jsx(Vt,{formatter:r=>am(r)}),f.jsx(Dn,{}),f.jsx(Rt,{type:"monotone",dataKey:"operating",name:e("charts.cashflow.operating"),stroke:"#1e3a5f",strokeWidth:2}),f.jsx(Rt,{type:"monotone",dataKey:"investing",name:e("charts.cashflow.investing"),stroke:"#f97316",strokeWidth:2}),f.jsx(Rt,{type:"monotone",dataKey:"financing",name:e("charts.cashflow.financing"),stroke:"#64748b",strokeWidth:2}),f.jsx(Rt,{type:"monotone",dataKey:"freeCashFlow",name:e("charts.cashflow.fcf"),stroke:"#16a34a",strokeWidth:2,strokeDasharray:"5 5"})]})})}function Zce({data:t}){const{t:e}=ye();return f.jsx(qr,{width:"100%",height:280,children:f.jsxs(_F,{data:t,children:[f.jsx(bn,{strokeDasharray:"3 3",stroke:"#e2e8f0"}),f.jsx(xr,{dataKey:"year",tick:{fontSize:12}}),f.jsx(br,{tickFormatter:r=>am(r),tick:{fontSize:11}}),f.jsx(Vt,{formatter:r=>am(r)}),f.jsx(Dn,{}),f.jsx(Bn,{dataKey:"shortTerm",name:e("charts.debt.shortTerm"),stackId:"a",fill:"#f97316"}),f.jsx(Bn,{dataKey:"longTerm",name:e("charts.debt.longTerm"),stackId:"a",fill:"#dc2626"}),f.jsx(Bn,{dataKey:"equity",name:e("charts.debt.equity"),stackId:"a",fill:"#1e3a5f"})]})})}const eue={low:"bg-green-100 text-green-800 border-green-200",medium:"bg-orange-100 text-orange-800 border-orange-200",high:"bg-red-100 text-red-800 border-red-200"};function tue({findings:t}){const{t:e}=ye();return t.length?f.jsx("div",{className:"grid gap-2 sm:grid-cols-2 lg:grid-cols-3",children:t.map((r,n)=>f.jsxs("div",{className:`rounded-lg border p-3 ${eue[r.severity]}`,children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-sm font-semibold",children:r.area}),f.jsx("span",{className:"text-xs font-medium",children:e(`severity.${r.severity}`)})]}),f.jsx("p",{className:"mt-1 text-xs",children:r.detail})]},n))}):f.jsx("p",{className:"text-sm text-muted",children:e("charts.heatmap.empty")})}function rue({description:t}){const[e,r]=N.useState(!1),n=N.useId(),i=N.useRef(null);return N.useEffect(()=>{if(!e)return;const a=o=>{i.current&&!i.current.contains(o.target)&&r(!1)};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[e]),f.jsxs("div",{className:"relative inline-flex",ref:i,children:[f.jsx("button",{type:"button",className:"ml-1 inline-flex h-4 w-4 items-center justify-center rounded-full border border-border bg-white text-[10px] font-bold leading-none text-muted transition hover:border-primary hover:text-primary","aria-expanded":e,"aria-controls":n,"aria-label":"Metric information",onClick:()=>r(a=>!a),children:"i"}),e&&f.jsx("div",{id:n,role:"tooltip",className:"absolute left-0 top-full z-20 mt-2 w-64 rounded-lg border border-border bg-white p-3 text-xs leading-relaxed text-foreground shadow-lg",children:t})]})}const nue=-1.56,iue=2.75,aue=45.6,oue=1.27,sue={beneishMScore:nue,altmanZScore:iue,debtRatio:aue,ocfToNetIncome:oue},Tf=sue;function lue(t,e,r){const i={beneish:Tf.beneishMScore,altman:Tf.altmanZScore,debtRatio:Tf.debtRatio,ocfNi:Tf.ocfToNetIncome}[t],a=e-i,o=t==="altman"||t==="ocfNi",l=t==="beneish"||t==="debtRatio";let u;const d=t==="debtRatio"?2:t==="ocfNi"?.05:.15;Math.abs(a)<d?u=r("metrics.compare.inLine"):o&&a>
16370||l&&a<0?u=r("metrics.compare.better",{diff:AM(t,Math.abs(a))}):u=r("metrics.compare.worse",{diff:AM(t,Math.abs(a))});const h=t==="debtRatio"?`${i.toFixed(1)}%`:i.toFixed(2);return r("metrics.compare.line",{avg:h,relation:u})}function AM(t,e){return t==="debtRatio"?`${e.toFixed(1)}%`:e.toFixed(2)}function Af({metricKey:t,value:e,displayValue:r,hint:n,danger:i}){const{t:a}=ye(),o=a(`metrics.${t}.label`),l=a(`metrics.${t}.info`),u=lue(t,e,a);return f.jsxs("div",{className:`card ${i?"border-red-200 bg-red-50":""}`,children:[f.jsxs("div",{className:"flex items-center text-xs text-muted",children:[f.jsx("span",{children:o}),f.jsx(rue,{description:l})]}),f.jsx("div",{className:`mt-1 text-xl font-bold ${i?"text-risk":"text-foreground"}`,children:r}),f.jsx("div",{className:"text-xs text-muted",children:n}),f.jsx("div",{className:"mt-2 border-t border-border/60 pt-2 text-xs text-muted",children:u})]})}const cue=["1M","3M","6M","1Y","3Y"];function uue(t){if(t.length===0)return[];const e=t[0].close;return t.map(r=>({date:r.date.slice(5),stock:e?(r.close-e)/e*100:0}))}function due(t){if(t.length===0)return new Map;const e=t[0].value,r=new Map;return t.forEach(n=>{r.set(n.date.slice(5),e?(n.value-e)/e*100:0)}),r}function fue({ticker:t,height:e=300}){const[r,n]=N.useState("1Y"),[i,a]=N.useState([]),[o,l]=N.useState(!0);return N.useEffect(()=>{l(!0),Promise.all([LB(t,r),NS()]).then(([u,d])=>{const h=uue(u.points),m=d.indicators.find(v=>v.key==="treasury10y"),g=m?due(m.history):new Map;a(h.map(v=>({...v,macro:g.get(v.date)})))}).catch(()=>a([])).finally(()=>l(!1))},[t,r]),f.jsxs("div",{children:[f.jsx(hue,{range:r,setRange:n}),o?f.jsx("div",{className:"animate-pulse rounded bg-card",style:{height:e}}):f.jsx(qr,{width:"100%",height:e,children:f.jsxs(Si,{data:i,children:[f.jsx(bn,{strokeDasharray:"3 3",stroke:"#e8e4dc"}),f.jsx(xr,{dataKey:"date",tick:{fontSize:10},interval:"preserveStartEnd"}),f.jsx(br,{tick:{fontSize:10},unit:"%"}),f.jsx(Vt,{formatter:u=>`${u.toFixed(2)}%`}),f.jsx(Dn,{}),f.jsx(Rt,{type:"monotone",dataKey:"stock",name:t,stroke:"#1e3a5f",strokeWidth:2,dot:!1}),f.jsx(Rt,{type:"monotone",dataKey:"macro",name:"10Y Treasury",stroke:"#b45309",strokeWidth:1.5,dot:!1})]})}),f.jsx("p",{className:"mt-2 text-xs text-muted",children:"Normalized % change from period start. Macro overlay uses 10Y Treasury (FRED)."})]})}function hue({range:t,setRange:e}){return f.jsx("div",{className:"mb-3 flex flex-wrap gap-1",children:cue.map(r=>f.jsx("button",{type:"button",onClick:()=>e(r),className:`rounded px-2 py-1 text-xs font-medium ${t===r?"bg-primary text-white":"border border-border bg-card text-muted hover:text-foreground"}`,children:r},r))})}function mue(t){var e;return t.titanScore??((e=t.metrics.titanScores)==null?void 0:e.titanScore)??Gr(t.riskScore)}function pue(t,e){return ep(e,t.titanStatus??t.titanGrade??t.metrics.titanScores)}function gue(t){return t.metrics.titanScores??null}function yue(){const{slug:t}=uo(),{t:e}=ye();h1("report",t??null);const r=lz(E=>E.getReport),n=Mse(),i=ze(E=>E.openLogin),[a,o]=N.useState(null),[l,u]=N.useState(null),[d,h]=N.useState(!0),[m,g]=N.useState(null);N.useEffect(()=>{if(!t)return;const E=r(t);if(E){o(E),h(!1);return}h(!0),Hse(t).then(o).catch(T=>g(T instanceof Error?T.message:e("report.notFound"))).finally(()=>h(!1))},[t,r,e]),N.useEffect(()=>{a!=null&&a.ticker&&Mk(a.ticker).then(u).catch(()=>u(null))},[a==null?void 0:a.ticker]);const v=async E=>{if(t){if(!n){i();return}try{await qse(t,E),o(T=>T&&{...T,likes:E==="like"?T.likes+1:T.likes,downloads:E==="download"?T.downloads+1:T.downloads,shares:E==="share"?T.shares+1:T.shares})}catch{}}},b=()=>{v("download"),window.print()},w=async()=>{v("share"),navigator.share?await navigator.share({title:`${a==null?void 0:a.corpName} â NextPrimus`,url:window.location.href}):await navigator.clipboard.writeText(window.location.href)};if(d)return f.jsx("div",{className:"mx-auto max-w-7xl px-4 py-12 sm:px-6",children:f.jsx("div",{className:"card h-64 animate-pulse bg-card"})});if(m||!a)return f.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-12 text-center sm:px-6",children:[f.jsx("p",{className:"text-muted",children:m??e("report.notFound")}),f.jsx(be,{to:"/analyze",className:"btn-primary mt-4 inline-flex",children:e("report.newAnalysis")})]});const{metrics:x}=a,k=mue(a),P=pue(a,k),A=gue(a);return f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:`${a.corpName} Financial Risk Analysis | NextPrimus`,description:a.riskSummary,slug:a.slug,corpName:a.corpName,ticker:a.ticker,riskScore:a.riskScore,auditMemo:a.auditMemo}),f.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-8 sm:px-6",children:[f.jsxs("div",{className:"card mb-6 flex flex-col gap-6 sm:flex-row sm:items-center sm:justify-between",children:[f.jsxs("div",{children:[f.jsx("p",{className:"font-mono text-sm text-muted",children:a.ticker}),f.jsx("h1",{className:"font-serif text-2xl font-bold text-primary",children:a.corpName}),f.jsxs("div",{className:"mt-2 flex flex-wrap gap-4 text-sm text-muted",children:[a.industry&&f.jsx("span",{children:a.industry}),a.marketCap&&f.jsx("span",{children:a.marketCap}),f.jsxs("span",{children:[(a.confidence*100).toFixed(0),"% confidence"]})]}),f.jsx("p",{className:`mt-3 text-sm ${Dk(Gr(a.riskScore))}`,children:a.riskSummary}),f.jsx("p",{className:"mt-1 text-xs text-muted",children:e("titan.report.dualHint")}),f.jsx("div",{className:"mt-4",children:f.jsx(cp,{ticker:a.ticker,corpName:a.corpName,slug:a.slug,sector:a.industry??void 0})})]}),f.jsxs("div",{className:"flex shrink-0 flex-col items-center gap-4",children:[f.jsx(Yce,{score:k,status:P}),f.jsx(Kce,{internalRiskScore:a.riskScore})]})]}),A?f.jsx("div",{className:"card mb-6",children:f.jsx(Xce,{scores:A})}):f.jsx("div",{className:"card mb-6 text-sm text-muted",children:e("titan.breakdown.unavailable")}),l&&f.jsx("div",{className:"mb-6",children:f.jsx(qce,{snapshot:l})}),f.jsxs("div",{className:"mb-6 grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[f.jsx(Af,{metricKey:"beneish",value:x.beneish.mScore,displayValue:x.beneish.mScore.toFixed(2),hint:x.beneish.isManipulator?e("metrics.beneish.hint.manipulator"):e("metrics.beneish.hint.normal"),danger:x.beneish.isManipulator}),f.jsx(Af,{metricKey:"altman",value:x.altman.zScore,displayValue:x.altman.zScore.toFixed(2),hint:e(`metrics.altman.zone.${x.altman.zone}`),danger:x.altman.zone==="distress"}),f.jsx(Af,{metricKey:"debtRatio",value:x.ratios.debtRatio,displayValue:`${x.ratios.debtRatio.toFixed(1)}%`,hint:e("metrics.debtRatio.hint"),danger:x.ratios.debtRatio>70}),f.jsx(Af,{metricKey:"ocfNi",value:x.ratios.ocfToNetIncome,displayValue:x.ratios.ocfToNetIncome.toFixed(2),hint:e("metrics.ocfNi.hint"),danger:x.ratios.ocfToNetIncome<.7})]}),f.jsxs("div",{className:"mb-6 grid gap-6 lg:grid-cols-2",children:[f.jsxs("div",{className:"card",children:[f.jsxs("h2",{className:"mb-4 font-semibold",children:[e("report.metrics")," â Radar"]}),f.jsx(Jce,{data:x.radar})]}),f.jsxs("div",{className:"card",children:[f.jsx("h2",{className:"mb-4 font-semibold",children:e("charts.cashflow.title")}),f.jsx(Qce,{data:x.cashFlowTrend})]}),f.jsxs("div",{className:"card",children:[f.jsx("h2",{className:"mb-4 font-semibold",children:e("charts.debt.title")}),f.jsx(Zce,{data:x.debtStructure})]}),f.jsxs("div",{className:"card",children:[f.jsx("h2",{className:"mb-4 font-semibold",children:e("report.anomalies")}),f.jsx(tue,{findings:a.keyFindings})]})]}),f.jsxs("div",{className:"card mb-6",children:[f.jsx("h2",{className:"mb-4 font-semibold",children:e("charts.price.title")}),f.jsx(fue,{ticker:a.ticker})]}),a.newsSummary&&f.jsxs("div",{className:"card mb-6",children:[f.jsx("h2",{className:"mb-4 font-semibold",children:e("report.news")}),f.jsx("div",{className:"whitespace-pre-wrap text-sm leading-relaxed text-muted",children:a.newsSummary})]}),f.jsxs("div",{className:"card mb-6",children:[f.jsx("h2",{className:"mb-4 font-semibold",children:e("report.auditMemo")}),f.jsx("blockquote",{className:"border-l-4 border-primary pl-4 font-serif text-sm leading-relaxed italic",children:a.auditMemo}),a.anomalies.length>0&&f.jsx("ul",{className:"mt-4 list-inside list-disc space-y-1 text-sm text-muted",children:a.anomalies.map((E,T)=>f.jsx("li",{children:E},T))})]}),f.jsxs("div",{className:"no-print flex flex-wrap gap-3",children:[f.jsxs("button",{type:"button",className:"btn-secondary",onClick:()=>v("like"),children:[e("report.like")," (",a.likes,")"]}),f.jsxs("button",{type:"button",className:"btn-secondary",onClick:b,children:[e("report.print")," (",a.downloads,")"]}),f.jsxs("button",{type:"button",className:"btn-secondary",onClick:w,children:[e("report.share")," (",a.shares,")"]}),f.jsx(be,{to:"/",className:"btn-secondary",children:e("report.back")}),f.jsx(be,{to:"/analyze",className:"btn-primary",children:e("report.newAnalysis")})]})]})]})}const vue=["1M","3M","6M","1Y","3Y"];function xue({ticker:t,defaultRange:e="1Y",height:r=280}){const[n,i]=N.useState(e),[a,o]=N.useState([]),[l,u]=N.useState(!0);N.useEffect(()=>{u(!0),LB(t,n).then(h=>o(h.points)).catch(()=>o([])).finally(()=>u(!1))},[t,n]);const d=a.map(h=>({date:h.date.slice(5),close:h.close}));return f.jsxs("div",{children:[f.jsx("div",{className:"mb-3 flex flex-wrap gap-1",children:vue.map(h=>f.jsx("button",{type:"button",onClick:()=>i(h),className:`rounded px-2 py-1 text-xs font-medium ${n===h?"bg-primary text-white":"border border-border bg-card text-muted hover:text-foreground"}`,children:h},h))}),l?f.jsx("div",{className:"animate-pulse rounded bg-card",style:{height:r}}):d.length===0?f.jsx("div",{className:"flex items-center justify-center rounded border border-dashed border-border text-sm text-muted",style:{height:r},children:"No price data"}):f.jsx(qr,{width:"100%",height:r,children:f.jsxs(Si,{data:d,children:[f.jsx(bn,{strokeDasharray:"3 3",stroke:"#e8e4dc"}),f.jsx(xr,{dataKey:"date",tick:{fontSize:10},interval:"preserveStartEnd"}),f.jsx(br,{tick:{fontSize:10},domain:["auto","auto"]}),f.jsx(Vt,{formatter:h=>[`$${h.toFixed(2)}`,"Close"]}),f.jsx(Rt,{type:"monotone",dataKey:"close",stroke:"#1e3a5f",strokeWidth:2,dot:!1})]})})]})}function bue(){const{t}=ye(),e=ze(d=>d.session),r=ze(d=>d.openLogin),{items:n,load:i,loading:a,remove:o}=gu(),[l,u]=N.useState({});return N.useEffect(()=>{i()},[i]),N.useEffect(()=>{xn("mega").then(d=>{const h={};d.rows.forEach(m=>{h[m.ticker]=m}),u(h)}).catch(()=>{})},[]),f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:"Watchlist | NextPrimus",description:"Track your long-term US equity watchlist with risk scores and price trends."}),f.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-12 sm:px-6",children:[f.jsx("h1",{className:"font-serif-display text-3xl font-bold text-primary",children:t("watchlist.title")}),f.jsx("p",{className:"mt-2 text-muted",children:t("watchlist.subtitle")}),!e&&f.jsxs("div",{className:"card mt-8 py-12 text-center",children:[f.jsx("p",{className:"text-muted",children:t("auth.watchlistLogin")}),f.jsx("button",{type:"button",className:"btn-primary mt-4",onClick:r,children:t("auth.logIn")})]}),e&&a&&f.jsx("div",{className:"card mt-8 h-48 animate-pulse bg-card"}),e&&!a&&n.length===0&&f.jsxs("div",{className:"card mt-8 py-16 text-center",children:[f.jsx("p",{className:"text-muted",children:t("watchlist.empty")}),f.jsx(be,{to:"/",className:"btn-primary mt-4 inline-flex",children:t("watchlist.explore")})]}),e&&!a&&n.length>0&&f.jsx("div",{className:"mt-8 space-y-8",children:n.map(d=>f.jsx(wue,{item:d,quote:l[d.ticker],onRemove:()=>void o(d.ticker),t},d.id))})]})]})}function wue({item:t,quote:e,onRemove:r,t:n}){return f.jsxs("div",{className:"card",children:[f.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"font-serif text-xl font-bold",children:t.corpName}),f.jsx("p",{className:"font-mono text-sm text-muted",children:t.ticker}),(e==null?void 0:e.relativeStrength)!==null&&(e==null?void 0:e.relativeStrength)!==void 0&&f.jsxs("p",{className:"mt-1 text-sm",children:["RS vs SPY:"," ",f.jsxs("span",{className:e.relativeStrength>=0?"text-risk-low":"text-risk-high",children:[e.relativeStrength>=0?"+":"",e.relativeStrength.toFixed(1),"%"]})]}),(e==null?void 0:e.riskScore)!==null&&(e==null?void 0:e.riskScore)!==void 0&&f.jsxs("p",{className:"text-sm",children:[n("report.titanHealth"),":"," ",f.jsx("span",{className:"font-semibold",children:Gr(e.riskScore)})]})]}),f.jsxs("div",{className:"flex gap-2",children:[t.slug&&f.jsx(be,{to:rl(t.slug),className:"btn-secondary text-sm",children:n("watchlist.viewReport")}),f.jsx("button",{type:"button",className:"rounded border border-border px-3 py-1.5 text-sm text-muted hover:text-risk-high",onClick:r,children:n("watchlist.remove")})]})]}),f.jsx("div",{className:"mt-4",children:f.jsx(xue,{ticker:t.ticker,defaultRange:"1Y",height:220})})]})}function Sue({rows:t}){const{t:e}=ye();return t.length===0?f.jsx("p",{className:"text-sm text-muted",children:e("top100.empty")}):f.jsx("div",{className:"card overflow-x-auto",children:f.jsxs("table",{className:"w-full min-w-[720px] text-sm",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-border text-xs text-muted",children:[f.jsx("th",{className:"pb-3 pr-3 text-left font-medium",children:e("top100.col.rank")}),f.jsx("th",{className:"pb-3 pr-4 text-left font-medium",children:e("top100.col.company")}),f.jsx("th",{className:"pb-3 pr-4 text-left font-medium",children:e("top100.col.theme")}),f.jsx("th",{className:"pb-3 pr-4 text-right font-medium",children:e("top100.col.titanScore")}),f.jsx("th",{className:"pb-3 pr-4 text-left font-medium",children:e("top100.col.titanStatus")}),f.jsx("th",{className:"w-10 pb-3","aria-label":e("market.col.watch")})]})}),f.jsx("tbody",{children:t.map(r=>{const n=r.status??ep(r.titanScore);return f.jsxs("tr",{className:"border-b border-border/60 last:border-0",children:[f.jsxs("td",{className:"py-3 pr-3 font-mono text-muted",children:["#",r.rank]}),f.jsxs("td",{className:"py-3 pr-4",children:[f.jsx(be,{to:rl(r.slug),className:"font-medium hover:text-primary",children:r.companyName}),f.jsx("div",{className:"font-mono text-xs text-muted",children:r.ticker})]}),f.jsx("td",{className:"py-3 pr-4 text-xs text-muted",children:r.theme??"â"}),f.jsx("td",{className:`py-3 pr-4 text-right font-bold ${op(r.titanScore)}`,children:r.titanScore}),f.jsx("td",{className:"py-3 pr-4",children:f.jsx(az,{status:n})}),f.jsx("td",{className:"py-3",children:f.jsx(cp,{ticker:r.ticker,corpName:r.companyName,slug:r.slug,sector:r.theme??void 0,iconOnly:!0})})]},r.ticker)})})]})})}const kue=["all","Leaders","Challengers","Drifters","Relics"];function jue(t){return{Leaders:"leaders",Challengers:"challengers",Drifters:"drifters",Relics:"relics"}[t]}function Pue(){const{t}=ye(),[e,r]=N.useState([]),[n,i]=N.useState(null),[a,o]=N.useState(!0),[l,u]=N.useState("all"),[d,h]=N.useState("all");N.useEffect(()=>{o(!0),OB(20).then(v=>{r(v.rows),i(v.fetchedAt)}).catch(()=>r([])).finally(()=>o(!1))},[]);const m=N.useMemo(()=>{const v=new Set;for(const b of e)b.theme&&v.add(b.theme);return Array.from(v).sort()},[e]),g=N.useMemo(()=>e.filter(v=>!(l!=="all"&&v.status!==l||d!=="all"&&v.theme!==d)),[e,l,d]);return f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:"Top 20 AI Momentum Stocks | NextPrimus",description:"PrimeScore-ranked US Mega Cap leaders â Growth, Momentum, Quality, Sentiment, and Risk combined."}),f.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-10 sm:px-6",children:[f.jsxs("div",{className:"mb-8",children:[f.jsxs(be,{to:"/",className:"text-sm text-primary hover:underline",children:["â ",t("report.back")]}),f.jsx("h1",{className:"mt-2 font-serif text-3xl font-bold text-primary",children:t("top100.pageTitle")}),f.jsx("p",{className:"mt-2 max-w-2xl text-sm text-muted",children:t("top100.pageSubtitle")}),n&&f.jsxs("p",{className:"mt-2 text-xs text-muted",children:[t("dashboard.fetchedAt"),": ",new Date(n).toLocaleStr
1637ing()]})]}),f.jsxs("div",{className:"mb-6 flex flex-wrap gap-4",children:[f.jsxs("label",{className:"flex flex-col gap-1 text-xs",children:[f.jsx("span",{className:"font-medium text-muted",children:t("top100.filter.titanStatus")}),f.jsx("select",{className:"rounded border border-border bg-card px-3 py-2 text-sm",value:l,onChange:v=>u(v.target.value),children:kue.map(v=>f.jsx("option",{value:v,children:t(v==="all"?"top100.filter.allStatuses":`titan.status.${jue(v)}`)},v))})]}),f.jsxs("label",{className:"flex flex-col gap-1 text-xs",children:[f.jsx("span",{className:"font-medium text-muted",children:t("top100.filter.theme")}),f.jsxs("select",{className:"rounded border border-border bg-card px-3 py-2 text-sm",value:d,onChange:v=>h(v.target.value),children:[f.jsx("option",{value:"all",children:t("top100.filter.allThemes")}),m.map(v=>f.jsx("option",{value:v,children:v},v))]})]}),f.jsx("div",{className:"flex items-end text-sm text-muted",children:t("top100.showing",{count:g.length,total:e.length})})]}),a&&f.jsx(vt,{tall:!0}),!a&&f.jsx(Sue,{rows:g})]})]})}function Tue(){const{t}=ye(),e=jn(),r=ze(a=>{var o;return((o=a.session)==null?void 0:o.token)??null}),[n,i]=N.useState(r);return N.useEffect(()=>{i(r)},[r]),N.useEffect(()=>{if(!e)return;let a=!1;return(async()=>{const o=await Df();!a&&o&&i(o)})(),()=>{a=!0}},[e]),e?f.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-10 sm:px-6",children:[f.jsx(xt,{title:t("nexus.adminTitle"),description:t("nexus.adminSubtitle")}),f.jsxs("div",{className:"mb-6 flex flex-wrap items-center justify-between gap-3",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"font-serif-display text-2xl font-bold text-primary",children:t("nexus.adminTitle")}),f.jsx("p",{className:"mt-1 text-sm text-muted",children:t("nexus.adminSubtitle")})]}),f.jsx("a",{href:"/api/nexus/admin?export=1&format=csv&period=30",className:"btn-secondary text-sm",onClick:a=>{a.preventDefault(),(async()=>{const o=await Df()??n,l=await fetch("/api/nexus/admin?export=1&format=csv&period=30",{headers:o?{Authorization:`Bearer ${o}`}:{}});if(l.status===401){const m=await Df();if(!m)return;const g=await fetch("/api/nexus/admin?export=1&format=csv&period=30",{headers:{Authorization:`Bearer ${m}`}});if(!g.ok)return;const v=await g.blob(),b=URL.createObjectURL(v),w=document.createElement("a");w.href=b,w.download="nexus-traffic-30d.csv",w.click(),URL.revokeObjectURL(b);return}if(!l.ok)return;const u=await l.blob(),d=URL.createObjectURL(u),h=document.createElement("a");h.href=d,h.download="nexus-traffic-30d.csv",h.click(),URL.revokeObjectURL(d)})()},children:t("nexus.exportCsv")})]}),f.jsx(Sne,{authToken:n,period:30})]}):f.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-16 sm:px-6",children:[f.jsx(xt,{title:t("nexus.adminTitle"),description:t("nexus.adminSubtitle")}),f.jsx("p",{className:"text-muted",children:t("nexus.editorRequired")}),f.jsx(be,{to:"/",className:"mt-4 inline-block text-sm text-primary hover:underline",children:t("nav.home")})]})}function Aue(t,e){const r=t.bands;for(const i of r)if(e<=i.max)return{titanView:i.titanView,regimeLabel:i.regimeLabel};const n=r[r.length-1];return{titanView:n.titanView,regimeLabel:n.regimeLabel}}function Uk(t){switch(t){case"Very Bullish":case"Bullish":return"text-safe";case"Neutral":return"text-warning";case"Caution":case"High Risk":return"text-risk";default:return"text-muted"}}function uz(t){return t.unit==="%"?`${t.currentValue.toFixed(2)}%`:t.metrics.derivedYoY!=null?`${t.metrics.derivedYoY.toFixed(2)}% YoY (index ${t.currentValue.toFixed(1)})`:t.currentValue>=100?t.currentValue.toFixed(1):t.currentValue.toFixed(2)}function Eue(t){return t==="up"?"â":t==="down"?"â":"â"}function dz(t){var r;const e=[`# ${t.title}`,"",`**As of:** ${t.asOfDate}`,`**Current reading:** ${uz(t)}`,`**5Y Percentile:** ${t.percentile5y}%`,`**Market Regime:** ${t.regimeLabel}`,`**PrimeView:** ${t.titanView}`,"","## Impact","",...t.impactSummary.map(n=>`- ${Eue(n.direction)} ${n.label}`),"","## Macro Intelligence","",t.analysisMemo,""];if((r=t.metrics.keyTakeaways)!=null&&r.length){e.push("## Key Takeaways","");for(const n of t.metrics.keyTakeaways)e.push(`- ${n}`);e.push("")}return e.push("---",`Generated by NextPrimus · ${t.generatedBy} · ${t.createdAt}`),e.join(` 1638`)}function _ue(t){const e=dz(t),r=new Blob([e],{type:"text/markdown;charset=utf-8"}),n=URL.createObjectURL(r),i=document.createElement("a");i.href=n,i.download=`${t.slug}.md`,i.click(),URL.revokeObjectURL(n)}async function Nue(t){await navigator.clipboard.writeText(dz(t))}function Oue(t){return uz(t)}const Cue=["1Y","5Y","10Y","Max"],Iue={"1Y":"macroAnalysis.range1Y","5Y":"macroAnalysis.range5Y","10Y":"macroAnalysis.range10Y",Max:"macroAnalysis.rangeMax"};function Rue(t,e){return e==="Max"?t.slice(0,4):t.slice(0,7)}function Mue({report:t}){const{t:e}=ye(),[r,n]=N.useState("5Y"),[i,a]=N.useState([]),[o,l]=N.useState(!0);N.useEffect(()=>{l(!0),Gse(t.indicatorKey,r).then(d=>a(d.points)).catch(()=>a(t.metrics.history5y??[])).finally(()=>l(!1))},[t.indicatorKey,r,t.metrics.history5y]);const u=i.length>0?i:t.metrics.history5y??[];return f.jsxs("div",{children:[f.jsx("div",{className:"mb-3 flex flex-wrap gap-1",children:Cue.map(d=>f.jsx("button",{type:"button",onClick:()=>n(d),className:`rounded px-2 py-1 text-xs font-medium ${r===d?"bg-primary text-white":"border border-border bg-card text-muted hover:text-foreground"}`,children:e(Iue[d])},d))}),o?f.jsx("div",{className:"h-64 w-full animate-pulse rounded bg-card"}):u.length===0?f.jsx("p",{className:"text-sm text-muted",children:e("macroAnalysis.noChart")}):f.jsx("div",{className:"h-64 w-full",children:f.jsx(qr,{width:"100%",height:"100%",children:f.jsxs(Si,{data:u,children:[f.jsx(bn,{strokeDasharray:"3 3",stroke:"#e2e8f0"}),f.jsx(xr,{dataKey:"date",tick:{fontSize:10}
1638,tickFormatter:d=>Rue(d,r),minTickGap:r==="Max"?56:r==="10Y"?48:40}),f.jsx(br,{tick:{fontSize:10},domain:["auto","auto"]}),f.jsx(Vt,{labelFormatter:d=>String(d),formatter:d=>[d.toFixed(2),t.title]}),f.jsx(Rt,{type:"monotone",dataKey:"value",stroke:"#1e3a5f",strokeWidth:2,dot:!1})]})})})]})}function Lue({report:t}){return f.jsx("ul",{className:"flex flex-wrap gap-2",children:t.impactSummary.map(e=>f.jsxs("li",{className:"rounded-full border border-border bg-card px-3 py-1 text-xs font-medium",children:[f.jsx("span",{className:e.direction==="up"?"text-safe":e.direction==="down"?"text-risk":"text-muted",children:e.direction==="up"?"â":e.direction==="down"?"â":"â"})," ",e.label]},e.label))})}function Due({reports:t,activeSlug:e}){const{t:r}=ye();return t.length===0?f.jsx("p",{className:"text-sm text-muted",children:r("macroAnalysis.listEmpty")}):f.jsx("div",{className:"overflow-x-auto",children:f.jsxs("table",{className:"w-full min-w-[640px] text-sm",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-border text-left text-xs text-muted",children:[f.jsx("th",{className:"pb-3 pr-4 font-medium",children:r("macroAnalysis.col.date")}),f.jsx("th",{className:"pb-3 pr-4 font-medium",children:r("macroAnalysis.col.indicator")}),f.jsx("th",{className:"pb-3 pr-4 font-medium",children:r("macroAnalysis.col.regime")}),f.jsx("th",{className:"pb-3 pr-4 font-medium",children:r("macroAnalysis.col.view")}),f.jsx("th",{className:"pb-3 font-medium",children:r("macroAnalysis.col.report")})]})}),f.jsx("tbody",{children:t.map(n=>f.jsxs("tr",{className:`border-b border-border/60 last:border-0 ${n.slug===e?"bg-primary/5":""}`,children:[f.jsx("td",{className:"py-3 pr-4 font-mono text-xs",children:new Date(n.createdAt).toLocaleDateString()}),f.jsx("td",{className:"py-3 pr-4",children:n.title.replace("Macro Analysis: ","")}),f.jsx("td",{className:"py-3 pr-4 text-xs text-muted",children:n.regimeLabel}),f.jsx("td",{className:`py-3 pr-4 font-semibold ${Uk(n.titanView)}`,children:n.titanView}),f.jsx("td",{className:"py-3",children:f.jsx(be,{to:`/macro/report/${n.slug}`,className:"text-primary hover:underline",children:r("macroAnalysis.openReport")})})]},n.slug))})]})})}function $ue({report:t}){const{t:e}=ye();return f.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[f.jsxs("div",{className:"card",children:[f.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted",children:e("macroAnalysis.currentReading")}),f.jsx("p",{className:"mt-1 font-serif text-3xl font-bold text-foreground",children:Oue(t)}),f.jsxs("p",{className:"mt-1 text-xs text-muted",children:[e("macroAnalysis.asOf")," ",t.asOfDate]})]}),f.jsxs("div",{className:"card",children:[f.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted",children:e("macroAnalysis.percentile5y")}),f.jsxs("p",{className:"mt-1 font-serif text-3xl font-bold text-primary",children:[t.percentile5y,"%"]})]}),f.jsxs("div",{className:"card",children:[f.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted",children:f.jsx(Mt,{term:"market-regime",children:e("macroAnalysis.marketRegime")})}),f.jsx("p",{className:"mt-1 text-lg font-semibold text-foreground",children:t.regimeLabel})]}),f.jsxs("div",{className:"card",children:[f.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted",children:e("macroAnalysis.titanView")}),f.jsx("p",{className:`mt-1 text-2xl font-bold ${Uk(t.titanView)}`,children:t.titanView})]})]})}const Fue=[{id:"DGS10",key:"treasury10y",label:"10Y Treasury",unit:"%",description:"Growth stock valuation and market discount rate",fredTitle:"Market Yield on U.S. Treasury Securities at 10-Year Constant Maturity, Quoted on an Investment Basis",fredUrl:"https://fred.stlouisfed.org/series/DGS10#"},{id:"FEDFUNDS",key:"fedFunds",label:"Fed Funds Rate",unit:"%",description:"Liquidity and risk-asset preference",fredTitle:"Federal Funds Effective Rate",fredUrl:"https://fred.stlouisfed.org/series/FEDFUNDS"},{id:"CPIAUCSL",key:"cpi",label:"CPI",unit:"index",description:"Inflation and rate direction",fredTitle:"Consumer Price Index for All Urban Consumers: All Items in U.S. City Average",fredUrl:"https://fred.stlouisfed.org/series/CPIAUCSL"}
1638,{id:"UMCSENT",key:"pmi",label:"Consumer Sentiment",unit:"index",description:"Economic cycle and manufacturing sentiment proxy",fredTitle:"University of Michigan: Consumer Sentiment",fredUrl:"https://fred.stlouisfed.org/series/UMCSENT"},{id:"VIXCLS",key:"vix",label:"VIX",unit:"index",description:"Market fear and risk environment",fredTitle:"CBOE Volatility Index: VIX",fredUrl:"https://fred.stlouisfed.org/series/VIXCLS"}];function Bue(t){var e;return(e=Fue.find(r=>r.id===t))==null?void 0:e.fredUrl}const zue=[{label:"Growth Stocks",direction:"down"},{label:"Small Caps",direction:"down"},{label:"Cash Generators",direction:"up"}],Vs=[{key:"treasury10y",seriesId:"DGS10",label:"10Y Treasury",unit:"%",pageTitle:"Macro Analysis: 10Y Treasury",bands:[{max:2,titanView:"Very Bullish",regimeLabel:"Very Low Rate Environment"},{max:3,titanView:"Bullish",regimeLabel:"Accommodative Rate Environment"},{max:4,titanView:"Neutral",regimeLabel:"Normalized Rate Environment"},{max:5,titanView:"Caution",regimeLabel:"High Rate Environment"},{max:1/0,titanView:"High Risk",regimeLabel:"Restrictive Rate Environment"}],defaultImpacts:zue},{key:"fedFunds",seriesId:"FEDFUNDS",label:"Fed Funds Rate",unit:"%",pageTitle:"Macro Analysis: Fed Funds Rate",bands:[{max:1,titanView:"Very Bullish",regimeLabel:"Very Accommodative Liquidity"},{max:2.5,titanView:"Bullish",regimeLabel:"Supportive Liquidity"},{max:4,titanView:"Neutral",regimeLabel:"Neutral Policy Stance"},{max:5,titanView:"Caution",regimeLabel:"Tightening Liquidity"},{max:1/0,titanView:"High Risk",regimeLabel:"Restrictive Liquidity"}],defaultImpacts:[{label:"Risk Assets",direction:"down"},{label:"High-Growth Tech",direction:"down"},{label:"Quality Mega Caps",direction:"up"}]},{key:"cpi",seriesId:"CPIAUCSL",label:"CPI",unit:"index",pageTitle:"Macro Analysis: CPI",useYoY:!0,bands:[{max:2,titanView:"Very Bullish",regimeLabel:"Low Inflation Regime"},{max:3,titanView:"Bullish",regimeLabel:"Benign Inflation"},{max:4,titanView:"Neutral",regimeLabel:"Moderate Inflation"},{max:5,titanView:"Caution",regimeLabel:"Elevated Inflation Pressure"},{max:1/0,titanView:"High Risk",regimeLabel:"High Inflation Risk"}],defaultImpacts:[{label:"Long-Duration Growth",direction:"down"},{label:"Rate-Sensitive Sectors",direction:"down"},{label:"Pricing Power Leaders",direction:"up"}]},{key:"pmi",seriesId:"UMCSENT",label:"Consumer Sentiment",unit:"index",pageTitle:"Macro Analysis: Consumer Sentiment",invertBands:!0,bands:[{max:55,titanView:"High Risk",regimeLabel:"Weak Consumer Confidence"},{max:65,titanView:"Caution",regimeLabel:"Soft Sentiment"},{max:75,titanView:"Neutral",regimeLabel:"Mixed Sentiment"},{max:85,titanView:"Bullish",regimeLabel:"Healthy Sentiment"},{max:1/0,titanView:"Very Bullish",regimeLabel:"Strong Consumer Confidence"}],defaultImpacts:[{label:"Consumer Discretionary",direction:"up"},{label:"Cyclical Industrials",direction:"up"},{label:"Defensive Staples",direction:"neutral"}]},{key:"vix",seriesId:"VIXCLS",label:"VIX",unit:"index",pageTitle:"Macro Analysis: VIX",bands:[{max:14,titanView:"Very Bullish",regimeLabel:"Low Fear / Complacency"},{max:18,titanView:"Bullish",regimeLabel:"Calm Risk Environment"},{max:22,titanView:"Neutral",regimeLabel:"Normal Volatility"},{max:28,titanView:"Caution",regimeLabel:"Elevated Fear"},{max:1/0,titanView:"High Risk",regimeLabel:"High Fear / Stress"}],defaultImpacts:[{label:"High Beta Growth",direction:"down"},{label:"Leveraged Names",direction:"down"},{label:"Quality Defensives",direction:"up"}]}];function Vue(t){return Vs.find(e=>e.key===t)}function Uue(t){return Vs.some(e=>e.key===t)}function fz({report:t,indicatorKey:e,onRegenerated:r}){const{t:n}=ye(),i=jn(),a=wu(),[o,l]=N.useState("all"),[u,d]=N.useState([]),[h,m]=N.useState(!1),[g,v]=N.useState(!1),[b,w]=N.useState(null),x=N.useCallback(async()=>{try{const{reports:A}=await IB({indicatorKey:o,limit:30});d(A)}catch{d([])}},[o]);N.useEffect(()=>{x()},[x,t==null?void 0:t.slug]);const k=async()=>{m(!0),w(null);try{const A=await MB(e);r(A.report),a(`/macro/report/${A.slug}`,{replace:!0,state:{report:A.report}})}catch(A){w(A instanceof Error?A.message:n("macroAnalysis.generateFailed"))}finally{m(!1)}},P=Vs.find(A=>A.key===e);return f.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-8 sm:px-6",children:[f.jsxs("div",{className:"mb-6 flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",children:[f.jsxs("div",{children:[f.jsxs(be,{to:"/",className:"text-sm text-primary hover:underline",children:["â ",n("macroAnalysis.back")]}),f.jsx("h1",{className:"mt-2 font-serif text-2xl font-bold text-primary",children:(P==null?void 0:P.pageTitle)??(t==null?void 0:t.t
1638itle)??n("macroAnalysis.title")})]}),f.jsxs("div",{className:"flex flex-wrap gap-2",children:[i&&f.jsx("button",{type:"button",className:"btn-primary text-sm",disabled:h,onClick:()=>void k(),children:h?"â¦":n("macroAnalysis.generate")}),t&&f.jsxs(f.Fragment,{children:[f.jsx("button",{type:"button",className:"btn-secondary text-sm",onClick:()=>{Nue(t).then(()=>{v(!0),setTimeout(()=>v(!1),2e3)})},children:n(g?"macroAnalysis.copied":"macroAnalysis.copyMd")}),f.jsx("button",{type:"button",className:"btn-secondary text-sm",onClick:()=>_ue(t),children:n("macroAnalysis.downloadMd")})]})]})]}),b&&f.jsx("p",{className:"mb-4 text-sm text-risk",children:b}),t?f.jsxs(f.Fragment,{children:[f.jsx($ue,{report:t}),f.jsxs("div",{className:"card mt-6",children:[f.jsx("h2",{className:"mb-3 font-semibold",children:n("macroAnalysis.impact")}),f.jsx(Lue,{report:t})]}),f.jsxs("div",{className:"card mt-6",children:[f.jsx("h2",{className:"mb-4 font-semibold",children:n("macroAnalysis.chartTrend")}),f.jsx(Mue,{report:t})]}),f.jsxs("div",{className:"card mt-6",children:[f.jsx("h2",{className:"mb-4 font-semibold",children:n("macroAnalysis.memo")}),f.jsx("blockquote",{className:"border-l-4 border-primary pl-4 font-serif text-sm leading-relaxed",children:t.analysisMemo}),t.metrics.keyTakeaways&&t.metrics.keyTakeaways.length>0&&f.jsx("ul",{className:"mt-4 list-inside list-disc space-y-1 text-sm text-muted",children:t.metrics.keyTakeaways.map(A=>f.jsx("li",{children:A},A))})]})]}):f.jsxs("div",{className:"card text-center text-muted",children:[f.jsx("p",{children:n("macroAnalysis.empty")}),i&&f.jsx("button",{type:"button",className:"btn-primary mt-4",disabled:h,onClick:()=>void k(),children:n("macroAnalysis.generateFirst")})]}),f.jsxs("div",{className:"card mt-6",children:[f.jsxs("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[f.jsx("h2",{className:"font-semibold",children:n("macroAnalysis.reportList")}),f.jsxs("select",{className:"rounded-lg border border-border bg-card px-3 py-1.5 text-sm",value:o,onChange:A=>l(A.target.value),children:[f.jsx("option",{value:"all",children:n("macroAnalysis.filterAll")}),Vs.map(A=>f.jsx("option",{value:A.key,children:A.label},A.key))]})]}),f.jsx(Due,{reports:u,activeSlug:t==null?void 0:t.slug})]})]})}function Wue(){var d,h;const{indicatorKey:t}=uo(),{t:e}=ye(),[r,n]=N.useState(null),[i,a]=N.useState(!0),[o,l]=N.useState(null),u=t&&Uue(t)?t:null;return N.useEffect(()=>{if(!u){a(!1);return}a(!0),IB({indicatorKey:u,limit:1}).then(async({reports:m})=>{if(m.length===0){n(null);return}const g=await RB(m[0].slug);n(g)}).catch(m=>l(m instanceof Error?m.message:e("macroAnalysis.loadFailed"))).finally(()=>a(!1))},[u,e]),u?i?f.jsx("div",{className:"mx-auto max-w-7xl px-4 py-12 animate-pulse card h-48"}):o?f.jsx("div",{className:"mx-auto max-w-7xl px-4 py-12 text-center text-risk",children:o}):f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:`${((d=Vs.find(m=>m.key===u))==null?void 0:d.pageTitle)??"Macro Analysis"} | NextPrimus`,description:((h=r==null?void 0:r.analysisMemo)==null?void 0:h.slice(0,160))??"Macro intelligence for US equity investors"}),f.jsx(fz,{report:r,indicatorKey:u,onRegenerated:n})]}):f.jsx("div",{className:"mx-auto max-w-7xl px-4 py-12 text-center text-muted",children:e("macroAnalysis.invalidIndicator")})}function Hue(){const{slug:t}=uo();h1("macro",t??null);const e=Xr(),{t:r}=ye(),[n,i]=N.useState(()=>{var h;const d=(h=e.state)==null?void 0:h.report;return d&&d.slug===t?d:null}),[a,o]=N.useState(()=>{var h;const d=(h=e.state)==null?void 0:h.report;return!(d&&d.slug===t)}),[l,u]=N.useState(null);return N.useEffect(()=>{var h;if(!t)return;const d=(h=e.state)==null?void 0:h.report;if(d&&d.slug===t){i(d),o(!1);return}o(!0),RB(t).then(i).catch(m=>u(m instanceof Error?m.message:r("macroAnalysis.loadFailed"))).finally(()=>o(!1))},[t,e.state,r]),a?f.jsx("div",{className:"mx-auto max-w-7xl px-4 py-12 animate-pulse card h-48"}):l||!n?f.jsx("div",{className:"mx-auto max-w-7xl px-4 py-12 text-center text-muted",children:l??r("macroAnalysis.notFound")}):f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:`${n.title} | NextPrimus`,description:n.analysisMemo.slice(0,160)}),f.jsx(fz,{report:n,indicatorKey:n.indicatorKey,onRegenerated:i})]})}function que({edition:t,showTitle:e=!0}){const{t:r}=ye();return f.jsxs("div",{className:"card",children:[e&&f.jsxs("div",{className:"mb-4 flex flex-col gap-1 sm:flex-row sm:items-baseline sm:justify-between",children:[f.jsx("h3",{className:"font-serif text-lg font-bold text-primary",children:r("news.market.title")}),f.jsx("p",{className:"text-xs text-muted",children:new Date(t.createdAt).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})})]}),f.jsx(QB,{summary:t.summary}),t.insight&&f.jsxs("div",{className:"mt-6 border-l-4 border-primary pl-4",children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-wide text-muted",children:r("news.intelligence.insightTitle")}),f.jsx("p",{className:"mt-2 font-serif text-sm font-bold leading-[1.7875] text-foreground",children:f.jsx("span",{className:"box-decoration-clone bg-sky-200/70 px-1 py-0.5",children:t.insight})})]})]})}function Gue(t){const e=new Map;for(const r of t){const n=new Date(r.createdAt),i=n.getFullYear(),a=n.getMonth()+1;e.has(i)||e.set(i,new Map);const o=e.get(i);o.has(a)||o.set(a,[]),o.get(a).push(r)}return Array.from(e.entries()).sort(([r],[n])=>n-r).map(([r,n])=>({year:r,months:Array.from(n.entries()).sort(([i],[a])=>a-i).map(([i,a])=>({month:i,items:a.sort((o,l)=>new Date(l.createdAt).getTime()-new Date(o.createdAt).getTime())}))}))}function Kue({editions:t,activeSlug:e,excludeSlug:r}){const{t:n,i18n:i}=ye(),a=t.filter(u=>u.slug!==r),o=Gue(a);if(a.length===0)return f.jsx("p",{className:"text-sm text-muted",children:n("news.intelligence.archiveEmpty")});const l=i.language;return f.jsx("div",{className:"space-y-8",children:o.map(({year:u,months:d})=>f.jsxs("div",{children:[f.jsx("h3",{className:"mb-4 font-serif text-xl font-bold text-primary",children:u}),f.jsx("div",{className:"space-y-6",children:d.map(({month:h,items:m})=>f.jsxs("div",{children:[f.jsx("h4",{className:"mb-2 text-sm font-semibold text-muted",children:new Date(u,h-1,
16381).toLocaleDateString(l,{month:"long"})}),f.jsx("ul",{className:"divide-y divide-border rounded-lg border border-border bg-white",children:m.map(g=>f.jsx("li",{children:f.jsxs(be,{to:`/news/market/${g.slug}`,className:`flex items-center justify-between gap-4 px-4 py-3 text-sm transition hover:bg-card ${g.slug===e?"bg-primary/5":""}`,children:[f.jsx("span",{className:"font-medium text-foreground",children:new Date(g.createdAt).toLocaleDateString(l,{month:"short",day:"numeric"})}),f.jsx("span",{className:"line-clamp-1 text-right text-xs text-muted",children:g.insight})]})},g.slug))})]},`${u}-${h}`))})]},u))})}function Yue({onCreated:t}){const{t:e,i18n:r}=ye(),n=jn(),[i,a]=N.useState(!1),[o,l]=N.useState(null),u=async()=>{a(!0),l(null);try{const d=await FB(r.language);t(d)}catch(d){l(d instanceof Error?d.message:e("news.intelligence.generateFailed"))}finally{a(!1)}};return f.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-8 sm:px-6",children:[f.jsxs(be,{to:"/",className:"text-sm text-primary hover:underline",children:["â ",e("news.intelligence.back")]}),f.jsx("h1",{className:"mt-2 font-serif text-2xl font-bold text-primary",children:e("news.intelligence.title")}),f.jsxs("div",{className:"card mt-6 text-center text-muted",children:[f.jsx("p",{children:e("news.intelligence.empty")}),o&&f.jsx("p",{className:"mt-3 text-sm text-risk",children:o}),n&&f.jsx("button",{type:"button",className:"btn-primary mt-4",disabled:i,onClick:()=>void u(),children:i?"â¦":e("news.intelligence.generateFirst")})]})]})}function hz({edition:t,editions:e,onRegenerated:r}){const{t:n,i18n:i}=ye(),a=jn(),[o,l]=N.useState(!1),[u,d]=N.useState(null),h=async()=>{l(!0),d(null);try{const m=await FB(i.language);r(m)}catch(m){d(m instanceof Error?m.message:n("news.intelligence.generateFailed"))}finally{l(!1)}};return f.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-8 sm:px-6",children:[f.jsxs("div",{className:"mb-6 flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",children:[f.jsxs("div",{children:[f.jsxs(be,{to:"/",className:"text-sm text-primary hover:underline",children:["â ",n("news.intelligence.back")]}),f.jsx("h1",{className:"mt-2 font-serif text-2xl font-bold text-primary",children:n("news.intelligence.title")})]}),a&&f.jsx("button",{type:"button",className:"btn-primary text-sm",disabled:o,onClick:()=>void h(),children:o?"â¦":n("news.intelligence.generate")})]}),u&&f.jsx("p",{className:"mb-4 text-sm text-risk",children:u}),f.jsx(que,{edition:t}),f.jsxs("div",{className:"card mt-6",children:[f.jsx("h2",{className:"mb-4 font-semibold",children:n("news.intelligence.archive")}),f.jsx(Kue,{editions:e,activeSlug:t.slug,excludeSlug:t.slug})]})]})}function Xue(){const{t}=ye(),[e,r]=N.useState(null),[n,i]=N.useState([]),[a,o]=N.useState(!0),[l,u]=N.useState(null);return N.useEffect(()=>{o(!0),DB().then(async({editions:d})=>{if(i(d),d.length===0){r(null);return}const h=await $B(d[0].slug);r(h)}).catch(d=>u(d instanceof Error?d.message:t("news.intelligence.loadFailed"))).finally(()=>o(!1))},[t]),a?f.jsx("div",{className:"mx-auto max-w-7xl px-4 py-12 animate-pulse card h-48"}):l?f.jsx("div",{className:"mx-auto max-w-7xl px-4 py-12 text-center text-risk",children:l}):e?f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:`${t("news.intelligence.title")} | NextPrimus`,description:e.insight.slice(0,160)}),f.jsx(hz,{edition:e,editions:n,onRegenerated:d=>{r(d),i(h=>{const m=h.filter(v=>v.slug!==d.slug);return[{id:d.id,slug:d.slug,insight:d.insight,generatedBy:d.generatedBy,createdAt:d.createdAt},...m]})}})]}):f.jsx(Yue,{onCreated:d=>{r(d),i([{id:d.id,slug:d.slug,insight:d.insight,generatedBy:d.generatedBy,createdAt:d.createdAt}])}})}function Jue(){const{slug:t}=uo();h1("news",t??null);const e=Xr(),{t:r}=ye(),[n,i]=N.useState(()=>{var g;const m=(g=e.state)==null?void 0:g.edition;return m&&m.slug===t?m:null}),[a,o]=N.useState([]),[l,u]=N.useState(()=>{var g;const m=(g=e.state)==null?void 0:g.edition;return!(m&&m.slug===t)}),[d,h]=N.useState(null);return N.useEffect(()=>{var g;if(!t)return;const m=(g=e.state)==null?void 0:g.edition;m&&m.slug===t?(i(m),u(!1)):(u(!0),$B(t).then(i).catch(v=>h(v instanceof Error?v.message:r("news.intelligence.loadFailed"))).finally(()=>u(!1))),DB().then(({editions:v})=>o(v)).catch(()=>o([]))},[t,e.state,r]),l?f.jsx("div",{className:"mx-auto max-w-7xl px-4 py-12 animate-pulse card h-48"}):d||!n?f.jsx("div",{className:"mx-auto max-w-7xl px-4 py-12 text-center text-muted",children:d??r("news.intelligence.notFound")}):f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:`${r("news.market.title")} | NextPrimus`,description:n.insight.slice(0,160)}),f.jsx(hz,{edition:n,editions:a,onRegenerated:i})]})}function Que(t){return t.includes("STRONG")||t.includes("CONFIRMED")?"text-emerald-600":t.includes("EARLY")?"text-amber-600":t==="WATCH"?"text-slate-500":t==="REDUCE"||t==="EXIT"?"text-red-600":"text-foreground"}function Zue(t){return t.replace(/_/g," ")}function ede(t){return t==null?{label:"â",className:"text-muted"}:t>0?{label:`+${t} â`,className:"text-emerald-600"}:t<0?{label:`${t} â`,className:"text-red-600"}:{label:"0 â",className:"text-muted"}}function tde({rows:t,emptyMessage:e}){return t.length===0?f.jsx("p",{className:"text-sm text-muted",children:e??"No strategy data available."}):f.jsx("div",{className:"overflow-x-auto",children:f.jsxs("table",{className:"w-full min-w-[720px] text-left text-sm",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-border text-xs uppercase tracking-wide text-muted",children:[f.jsx("th",{className:"py-3 pr-4",children:"Rank"}),f.jsx("th",{className:"py-3 pr-4",children:"Ticker"}),f.jsx("th",{className:"py-3 pr-4 text-right",children:f.jsx("span",{className:"inline-flex w-full justify-end",children:f.jsx(Mt,{term:"primescore",children:"PrimeScore"})})}),f.jsx("th",{className:"py-3 pr-4 text-right",children:f.jsx("span",{className:"inline-flex w-full justify-end",children:f.jsx(Mt,{term:"trp",children:"TRP"})})}),f.jsx("th",{className:"py-3 pr-4 text-right",children:"Velocity"}),f.jsx("th",{className:"py-3 pr-4",children:f.jsx(Mt,{term:"prime-signal",children:"Signal"})}),f.jsx("th",{className:"py-3 pr-4",children:f.jsx(Mt,{term:"position-sizing",children:"Tier"})}),f.jsx("th",{className:"py-3 text-right",children:"Target %"})]})}),f.jsx("tbody",{children:t.map(r=>{const n=ede(r.trp.trpVelocity7d);return f.jsxs("tr",{className:"border-b border-border/60 hover:bg-surface/50",children:[f.jsx("td",{className:"py-3 pr-4 font-medium",children:r.rank}),f.jsxs("td",{className:"py-3 pr-4",children:[f.jsx(be,{to:`/strategy/${r.ticker}`,className:"font-semibold text-primary hover:underline",children:r.ticker}),f.jsx("p",{className:"text-xs text-muted",children:r.corpName})]}),f.jsx("td",{className:"py-3 pr-4 text-right font-medium",children:r.prime.primeScore}),f.jsx("td",{className:"py-3 pr-4 text-right",children:r.trp.trp}),f.jsx("td",{className:`py-3 pr-4 text-right font-medium ${n.className}`,children:n.label}),f.jsx("td",{className:`py-3 pr-4 font-medium ${Que(r.signal.signal)}`,children:Zue(r.signal.signal)}
1638),f.jsx("td",{className:"py-3 pr-4",children:r.position.tier}),f.jsxs("td",{className:"py-3 text-right",children:[r.position.targetWeight,"%"]})]},r.ticker)})})]})})}const rde=["all","STRONG_ENTRY","CONFIRMED_ENTRY","EARLY_ENTRY","WATCH","HOLD","REDUCE","EXIT"];function nde(){const{t}=ye(),e=jn(),[r,n]=N.useState(null),[i,a]=N.useState(!0),[o,l]=N.useState(!1),[u,d]=N.useState("all"),[h,m]=N.useState("all"),g=(w=!1)=>{w?l(!0):a(!0),Rk({refresh:w,limit:100}).then(n).catch(()=>n(null)).finally(()=>{a(!1),l(!1)})};N.useEffect(()=>{g(!1)},[]);const v=N.useMemo(()=>{const w=new Set;for(const x of(r==null?void 0:r.rows)??[])w.add(x.sector);return Array.from(w).sort()},[r]),b=N.useMemo(()=>((r==null?void 0:r.rows)??[]).filter(w=>!(u!=="all"&&w.signal.signal!==u||h!=="all"&&w.sector!==h)),[r,u,h]);return f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:t("strategy.pageTitle"),description:t("strategy.pageSubtitle")}),f.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-10 sm:px-6",children:[f.jsxs("div",{className:"mb-8",children:[f.jsxs(be,{to:"/",className:"text-sm text-primary hover:underline",children:["â ",t("report.back")]}),f.jsx("h1",{className:"mt-2 font-serif text-3xl font-bold text-primary",children:t("strategy.pageTitle")}),f.jsx("p",{className:"mt-2 max-w-2xl text-sm text-muted",children:t("strategy.pageSubtitle")})]}),i?f.jsx(vt,{}):r?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"mb-8 flex flex-wrap items-center justify-between gap-4",children:[f.jsx(Fk,{regime:r.marketRegime}),e&&f.jsx("button",{type:"button",className:"btn-secondary text-sm",disabled:o,onClick:()=>g(!0),children:t(o?"strategy.refreshing":"strategy.refresh")})]}),r.stale&&f.jsx("p",{className:"mb-4 text-sm text-amber-600",children:r.rebuiltFromTickerCache?t("strategy.rebuiltHint"):t("strategy.staleHint")}),f.jsxs("div",{className:"mb-6 flex flex-wrap gap-4",children:[f.jsxs("label",{className:"flex flex-col gap-1 text-xs text-muted",children:[t("strategy.filterSignal"),f.jsx("select",{className:"input min-w-[160px]",value:u,onChange:w=>d(w.target.value),children:rde.map(w=>f.jsx("option",{value:w,children:w==="all"?t("strategy.filterAll"):w.replace(/_/g," ")},w))})]}),f.jsxs("label",{className:"flex flex-col gap-1 text-xs text-muted",children:[t("strategy.filterSector"),f.jsxs("select",{className:"input min-w-[160px]",value:h,onChange:w=>m(w.target.value),children:[f.jsx("option",{value:"all",children:t("strategy.filterAll")}),v.map(w=>f.jsx("option",{value:w,children:w},w))]})]})]}),f.jsx(tde,{rows:b,emptyMessage:r.rows.length===0?r.emptyHint==="quote_limited"?t("strategy.emptyQuoteLimited"):t("strategy.emptyNeedsRefresh"):t(u!=="all"||h!=="all"?"strategy.emptyFiltered":"strategy.emptyNeedsRefresh")}),r.fetchedAt&&f.jsxs("p",{className:"mt-4 text-xs text-muted",children:[t("dashboard.fetchedAt"),": ",new Date(r.fetchedAt).toLocaleString()]})]}):f.jsx("p",{className:"text-sm text-muted",children:t("strategy.noData")})]})]})}const ide={EXIT:0,REDUCE:1,WATCH:2,HOLD:3,EARLY_ENTRY:4,CONFIRMED_ENTRY:5,STRONG_ENTRY:6},EM=[{value:0,label:"EXIT"},{value:1,label:"REDUCE"},{value:2,label:"WATCH"},{value:3,label:"HOLD"},{value:4,label:"EARLY"},{value:5,label:"CONFIRMED"},{value:6,label:"STRONG"}];function ade(t){return t.slice(5)}function ode(t){return t==null?"â":t>0?`+${t}`:String(t)}function sde({points:t,loading:e=!1,days:r=90}){const{t:n}=ye(),i=t.map(a=>({date:ade(a.asOfDate),asOfDate:a.asOfDate,primeScore:a.primeScore,trp:a.trp,marketRegime:a.marketRegime,velocity:a.trpVelocity7d,signalLevel:ide[a.signal],signal:a.signal.replace(/_/g," ")}));return f.jsxs("div",{className:"card mt-8",children:[f.jsx("h2",{className:"font-serif text-lg font-bold text-primary",children:n("strategy.historyTitle")}),f.jsx("p",{className:"mt-1 text-sm text-muted",children:n("strategy.historySubtitle",{days:r,count:t.length})}),e?f.jsx("div",{className:"mt-6 animate-pulse rounded bg-card",style:{height:220}}):t.length<2?f.jsx("p",{className:"mt-6 rounded border border-dashed border-border px-4 py-8 text-center text-sm text-muted",children:n("strategy.historyEmpty")}):f.jsxs("div",{className:"mt-6 space-y-8",children:[f.jsxs("section",{children:[f.jsx("h3",{className:"mb-3 text-xs font-bold uppercase tracking-wide text-muted",children:n("strategy.historyScores")}),f.jsx(qr,{width:"100%",height:240,children:f.jsxs(Si,{data:i,children:[f.jsx(bn,{strokeDasharray:"3 3",stroke:"#e8e4dc"}),f.jsx(xr,{dataKey:"date",tick:{fontSize:10},interval:"preserveStartEnd"}),f.jsx(br,{tick:{fontSize:10},domain:[0,100]}),f.jsx(Vt,{}),f.jsx(Dn,{}),f.jsx(Rt,{type:"monotone",dataKey:"primeScore",name:n("strategy.historyPrime"),stroke:"#1e3a5f",strokeWidth:2,dot:{r:3}}),f.jsx(Rt,{type:"monotone",dataKey:"trp",name:n("strategy.historyTrp"),stroke:"#0f766e",strokeWidth:2,dot:{r:3}}),f.jsx(Rt,{type:"monotone",dataKey:"marketRegime",name:n("strategy.historyRegime"),stroke:"#b45309",strokeWidth:2,dot:{r:3},connectNulls:!1})]})})]}),f.jsxs("section",{children:[f.jsx("h3",{className:"mb-3 text-xs font-bold uppercase tracking-wide text-muted",children:n("strategy.historyVelocity")}),f.jsx(qr,{width:"100%",height:200,children:f.jsxs(_F,{data:i,children:[f.jsx(bn,{strokeDasharray:"3 3",stroke:"#e8e4dc"}),f.jsx(xr,{dataKey:"date",tick:{fontSize:10},interval:"preserveStartEnd"}),f.jsx(br,{tick:{fontSize:10}}),f.jsx(Vt,{formatter:a=>ode(typeof a=="number"?a:null)}),f.jsx(Km,{y:0,stroke:"#94a3b8"}),f.jsx(Bn,{dataKey:"velocity",name:n("strategy.historyVelocity"),maxBarSize:28,children:i.map(a=>f.jsx(D1,{fill:a.velocity==null?"#cbd5e1":a.velocity>0?"#059669":a.velocity<0?"#dc2626":"#94a3b8"},a.asOfDate))})]})})]}),f.jsxs("section",{children:[f.jsx("h3",{className:"mb-3 text-xs font-bold uppercase tracking-wide text-muted",children:n("strategy.historySignal")}),f.jsx(qr,{width:"100%",height:220,children:f.jsxs(Si,{data:i,children:[f.jsx(bn,{strokeDasharray:"3 3",stroke:"#e8e4dc"}),f.jsx(xr,{dataKey:"date",tick:{fontSize:10},interval:"preserveStartEnd"}),f.jsx(br,{tick:{fontSize:10},domain:[0,6],ticks:EM.map(a=>a.value),tickFormatter:a=>{var o;return((o=EM.find(l=>l.value===a))==null?void 0:o.label)??""}}),f.jsx(Vt,{formatter:(a,o,l)=>{const u=l==null?void 0:l.payload;return(u==null?void 0:u.signal)??""}}),f.jsx(Rt,{type:"stepAfter",dataKey:"signalLevel",name:n("strategy.historySignal"),stroke:"#7c3aed",strokeWidth:2,dot:{r:4}})]})})]})]})]})}const lde="https://s3.tradingview.com/tv.js";let ic=null;function cde(){var t;return typeof window>"u"?Promise.reject(new Error("no window")):(t=window.TradingView)!=null&&t.widget?Promise.resolve():ic||(ic=new Promise((e,r)=>{var a;const n=document.querySelector("script[data-nextprimus-tv-js]");if(n){if((a=window.TradingView)!=null&&a.widget){e();return}n.addEventListener("load",()=>e(),{once:!0}),n.addEventListener("error",()=>r(new Error("tv.js load failed")),{once:!0});return}const i=document.createElement("script");i.src=lde,i.async=!0,i.dataset.nextprimusTvJs="1",i.onload=()=>e(),i.onerror=()=>
1638{ic=null,r(new Error("tv.js load failed"))},document.head.appendChild(i)}),ic)}function ude({symbol:t,height:e=400,className:r=""}){var v;const{t:n,i18n:i}=ye(),a=N.useRef(null),o=N.useRef(null),u=`tv_chart_${N.useId().replace(/:/g,"")}`,[d,h]=N.useState(!1),m=dde(t),g=(((v=i.language)==null?void 0:v.split("-")[0])||"en").toLowerCase();return N.useEffect(()=>{if(!m)return;let b=!1;h(!1);const w=async()=>{var k,P,A;try{if(await cde(),b||!a.current||!((k=window.TradingView)!=null&&k.widget))return;try{(A=(P=o.current)==null?void 0:P.remove)==null||A.call(P)}catch{}o.current=null,a.current.innerHTML="",o.current=new window.TradingView.widget({autosize:!0,symbol:m,interval:"D",range:"6M",timezone:"Etc/UTC",theme:"light",style:"1",locale:fde(g),toolbar_bg:"#ffffff",enable_publishing:!1,hide_top_toolbar:!1,hide_legend:!1,hide_side_toolbar:!1,allow_symbol_change:!1,save_image:!1,withdateranges:!0,details:!1,hotlist:!1,calendar:!1,container_id:u,enabled_features:["volume_force_overlay"],studies:[{id:"MAExp@tv-basicstudies",inputs:{length:20}},{id:"MAExp@tv-basicstudies",inputs:{length:50}},{id:"MAExp@tv-basicstudies",inputs:{length:100}},{id:"MAExp@tv-basicstudies",inputs:{length:200}},{id:"MACD@tv-basicstudies"}]})}catch{b||h(!0)}},x=window.setTimeout(()=>{w()},0);return()=>{var P,A;b=!0,window.clearTimeout(x);try{(A=(P=o.current)==null?void 0:P.remove)==null||A.call(P)}catch{}o.current=null;const k=document.getElementById(u);k&&(k.innerHTML="")}},[m,e,g,u]),m?f.jsxs("section",{className:`overflow-hidden rounded-xl border border-border bg-white shadow-sm ${r}`,"aria-label":n("strategy.chartTitle",{symbol:m}),children:[f.jsxs("div",{className:"flex items-baseline justify-between gap-3 border-b border-border px-4 py-3 sm:px-5",children:[f.jsx("h2",{className:"font-serif text-lg font-bold text-primary sm:text-xl",children:n("strategy.chartTitle",{symbol:m})}),f.jsx("p",{className:"shrink-0 text-[10px] font-bold uppercase tracking-wide text-muted",children:n("strategy.chartRange")})]}),f.jsxs("div",{className:"relative w-full",style:{height:`${e}px`},children:[f.jsx("div",{ref:a,id:u,className:"h-full w-full"}),d&&f.jsx("p",{className:"absolute inset-0 flex items-center justify-center bg-white px-4 text-center text-sm text-muted",children:n("strategy.chartLoadError")})]}),f.jsx("p",{className:"border-t border-border px-4 py-3 text-xs leading-relaxed text-muted sm:px-5",children:n("strategy.chartCaption")})]}):f.jsx("p",{className:"text-sm text-muted",role:"status",children:n("strategy.chartUnavailable")})}function dde(t){const e=t.trim().toUpperCase();return/^[A-Z0-9./-]{1,12}(:[A-Z0-9./-]{1,12})?$/.test(e)?e:""}function fde(t){const e=new Set(["en","ko","ja","zh","zh_CN","zh_TW","de","fr","es","pt","ru"]);return t==="zh"?"zh_CN":e.has(t)?t:"en"}function N0(t){return t==null?"â":t>0?`+${t} â`:t<0?`${t} â`:"0 â"}function hde(){const{ticker:t=""}=uo(),{t:e}=ye(),r=jn(),[n,i]=N.useState(null),[a,o]=N.useState(null),[l,u]=N.useState(!0),[d,h]=N.useState(!1),[m,g]=N.useState(!0),v=(b=!1)=>{if(!t)return;b?h(!0):u(!0),g(!0),(async()=>{try{const x=await Mk(t,b);i(x);const k=await tle(t,90);o(k)}catch{b||i(null),o(null)}finally{u(!1),h(!1),g(!1)}})()};return N.useEffect(()=>{v(!1)},[t]),f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:`${t.toUpperCase()} Strategy | NextPrimus`,description:e("strategy.detailSubtitle")}),f.jsxs("div",{className:"mx-auto max-w-5xl px-4 py-10 sm:px-6",children:[f.jsxs(be,{to:"/strategy",className:"text-sm text-primary hover:underline",children:["â ",e("strategy.backToDashboard")]}),l?f.jsx(vt,{}):n?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"mt-4 flex flex-wrap items-start justify-between gap-4",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"font-serif text-3xl font-bold text-primary",children:n.ticker}),f.jsx("p",{className:"text-muted",children:n.corpName}),f.jsx("p",{className:"text-xs text-muted",children:n.sector})]}),r&&f.jsx("button",{type:"button",className:"btn-secondary text-sm",disabled:d,onClick:()=>v(!0),children:e(d?"strategy.refreshing":"strategy.refresh")})]}),f.jsx("div",{className:"mt-8",children:f.jsx(ude,{symbol:n.ticker})}),f.jsxs("div",{className:"mt-8 grid gap-6 sm:grid-cols-2",children:[f.jsxs("div",{className:"card",children:[f.jsx("h2",{className:"font-serif font-bold text-primary",children:f.jsx(Mt,{term:"primescore",children:"PrimeScore"})}),f.jsx("p",{className:"mt-2 text-4xl font-bold",children:n.prime.primeScore}),f.jsx("p",{className:"text-sm text-muted",children:n.prime.grade}),f.jsxs("ul",{className:"mt-4 space-y-1 text-sm",children:[f.jsxs("li",{children:["Growth: ",n.prime.growthScore]}),f.jsxs("li",{children:["Momentum: ",n.prime.momentumScore]}),f.jsxs("li",{children:["Quality: ",n.prime.qualityScore]}),f.jsxs("li",{children:["Sentiment: ",n.prime.sentimentScore]}),f.jsxs("li",{children:["Risk: ",n.prime.riskScore]})]})]}),f.jsxs("div",{className:"card",children:[f.jsx("h2",{className:"font-serif font-bold text-primary",children:f.jsx(Mt,{term:"trp",children:"TRP"})}),f.jsx("p",{className:"mt-2 text-4xl font-bold",children:n.trp.trp}),f.jsx("p",{className:"text-sm text-muted",children:n.trp.phase}),f.jsxs("ul",{className:"mt-4 space-y-1 text-sm",children:[f.jsxs("li",{className:"font-medium",children:["Velocity (7d): ",
1638N0(n.trp.trpVelocity7d)]}),f.jsxs("li",{children:["Velocity (3d): ",N0(n.trp.trpVelocity3d)]}),f.jsxs("li",{children:["Velocity (14d): ",N0(n.trp.trpVelocity14d)]}),f.jsxs("li",{children:["Trend Reversal: ",n.trp.trendReversal]}),f.jsxs("li",{children:["MA Structure: ",n.trp.maStructure]}),f.jsxs("li",{children:["Relative Strength: ",n.trp.relativeStrength]})]})]}),f.jsxs("div",{className:"card",children:[f.jsx("h2",{className:"font-serif font-bold text-primary",children:f.jsx(Mt,{term:"prime-signal",children:e("strategy.signal")})}),f.jsx("p",{className:"mt-2 text-xl font-bold",children:n.signal.signal.replace(/_/g," ")}),f.jsxs("p",{className:"text-sm text-muted",children:[e("strategy.confidence"),": ",n.signal.confidence,"%"]}),f.jsx("ul",{className:"mt-4 list-disc space-y-1 pl-4 text-sm",children:n.signal.reasons.map(b=>f.jsx("li",{children:b},b))})]}),f.jsxs("div",{className:"card",children:[f.jsx("h2",{className:"font-serif font-bold text-primary",children:f.jsx(Mt,{term:"position-sizing",children:e("strategy.position")})}),f.jsx("p",{className:"mt-2 text-xl font-bold",children:n.position.tier}),f.jsxs("p",{className:"text-sm",children:[e("strategy.targetWeight"),": ",n.position.targetWeight,"% (",n.position.targetWeightMin,"â",n.position.targetWeightMax,"%)"]}),f.jsx("ul",{className:"mt-4 list-disc space-y-1 pl-4 text-sm",children:n.position.reasons.slice(0,4).map(b=>f.jsx("li",{children:b},b))})]})]}),f.jsx(sde,{points:(a==null?void 0:a.points)??[],loading:m,days:90}),n.slug&&f.jsx("div",{className:"mt-6",children:f.jsxs(be,{to:`/audit/${n.slug}`,className:"text-sm text-primary hover:underline",children:[e("strategy.viewReport")," â"]})})]}):f.jsx("p",{className:"mt-8 text-sm text-muted",children:e("strategy.noData")})]})]})}function mde(t){if(t.length<2)return null;const e=t[t.length-1],r=new Date(e.date);r.setFullYear(r.getFullYear()-1);const n=t.find(i=>{const a=new Date(i.date);return Math.abs(a.getTime()-r.getTime())<45*864e5});return!n||n.value===0?null:(e.value-n.value)/Math.abs(n.value)*100}function pde(t){const e=Vue(t.key);if(!e)return null;const r=t.history5y??t.history,n=e.useYoY?mde(r):null,i=e.useYoY&&n!=null?n:t.value;return Aue(e,i).titanView}function gde({indicator:t}){const{t:e}=ye(),r=t.changePct??t.change,n=r!==null&&r>0,i=r!==null&&r<0,a=pde(t),o=t.unit==="%"?`${t.value.toFixed(2)}%`:t.value>=100?t.value.toFixed(1):t.value.toFixed(2);return f.jsx("div",{className:"card flex h-full flex-col gap-2 transition-all duration-200 hover:bg-card hover:shadow-md",children:f.jsxs(be,{to:`/macro/${t.key}`,className:"flex h-full flex-1 flex-col gap-2",children:[f.jsxs("div",{className:"flex min-h-[5rem] shrink-0 items-start justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("h3",{className:"line-clamp-2 min-h-[2.5rem] text-sm font-semibold leading-5 text-primary",children:t.label}),f.jsx("p",{className:"line-clamp-2 min-h-[2.5rem] text-xs leading-5 text-muted",children:t.description})]}),r!==null&&f.jsxs("span",{className:`shrink-0 text-xs font-medium ${n?"text-risk-high":i?"text-risk-low":"text-muted"}`,children:[n?"â²":i?"â¼":"â"," ",Math.abs(r).toFixed(2),t.changePct!==null?"%":""]})]}),f.jsx("div",{className:"font-serif text-2xl font-bold text-foreground",children:o}),f.jsx("div",{className:"h-12 w-full shrink-0",children:f.jsx(qr,{width:"100%",height:"100%",children:f.jsx(Si,{data:t.history,children:f.jsx(Rt,{type:"monotone",dataKey:"value",stroke:"#1e3a5f",strokeWidth:1.5,dot:!1})})})}),a&&f.jsxs("div",{className:"shrink-0",children:[f.jsx("p",{className:"text-[8px] font-medium uppercase tracking-wide text-muted",children:e("macroAnalysis.titanView")}),f.jsx("p",{className:`font-serif text-[16px] font-bold leading-tight ${Uk(a)}`,children:a})]}),f.jsxs("p",{className:"mt-auto shrink-0 text-xs text-muted",children:["As of ",t.updatedAt]})]})})}function yde(t,e){const r=new Date(`${t}T12:00:00`);return r.setFullYear(r.getFullYear()-e),r.toISOString().slice(0,10)}function vde(t,e){if(t.length===0)return[];const r=t[t.length-1].date,n=yde(r,e);return t.filter(i=>i.date>=n)}const xde="#2166ac";function bde({indicator:t}){const{t:e}=ye(),r=t.fredUrl??Bue(t.seriesId),n=t.history5y??t.history,i=vde(n,1),a=t.unit==="%"?e("macro.fredAxisPercent"):e("macro.fredAxisIndex");return r?f.jsxs("a",{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":e("macro.fredOpenOnFred",{title:t.fredTitle??t.label}),className:"group block overflow-hidden rounded-lg border border-slate-200 bg-slate-50 transition hover:border-[#2166ac]/40 hover:shadow-sm",children:[f.jsx("div",{className:"border-b border-slate-200/80 bg-white px-3 py-2",children:f.jsxs("div",{className:"flex items-start gap-2",children:[f.jsx("span",{className:"shrink-0 font-serif text-sm font-bold tracking-tight text-[#2166ac]",children:"FRED"}),f.jsx("p",{className:"line-clamp-2 text-[10px] leading-snug text-slate-600 group-hover:text-[#2166ac]",children:t.fredTitle??t.label})]})}),f.jsx("div",{className:"px-1 py-2",children:i.length===0?f.jsx("p",{className:"px-2 py-6 text-center text-xs text-muted",children:e("macroAnalysis.noChart")}):f.jsx("div",{className:"h-36 w-full",children:f.jsx(qr,{width:"100%",height:"100%",children:f.jsxs(Si,{data:i,margin:{top:4,right:8,left:0,bottom:0},children:[f.jsx(bn,{strokeDasharray:"0",stroke:"#cbd5e1",horizontal:!0,vertical:!1}),f.jsx(xr,{dataKey:"date",tick:{fontSize:9,fill:"#64748b"},tickFormatter:o=>
1638o.slice(0,7),minTickGap:48,axisLine:{stroke:"#cbd5e1"},tickLine:!1}),f.jsx(br,{tick:{fontSize:9,fill:"#64748b"},domain:["auto","auto"],width:36,axisLine:!1,tickLine:!1,label:{value:a,angle:-90,position:"insideLeft",offset:12,style:{fontSize:9,fill:"#64748b"}}}),f.jsx(Rt,{type:"monotone",dataKey:"value",stroke:xde,strokeWidth:1.5,dot:!1})]})})})})]}):null}function wde({indicators:t}){return f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-5",children:t.map(e=>f.jsx(gde,{indicator:e},e.key))}),f.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-5",children:t.map(e=>f.jsx(bde,{indicator:e},e.key))})]})}function Sde(){var u,d;const{t}=ye(),e=up(),[r,n]=N.useState(!1),i=N.useRef(!1),a=((u=e.strategy)==null?void 0:u.rows)??[],o=((d=e.strategy)==null?void 0:d.marketRegime)??null,l=e.sectorMarket.hydrateFromCache;return N.useEffect(()=>{i.current||(i.current=!0,l())},[l]),f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:t("magazine.seo.marketTitle"),description:t("magazine.seo.marketDescription"),path:"/market"}),f.jsx("header",{className:"border-b border-border bg-card/40",children:f.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-10 sm:px-6",children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-primary/70",children:t("nav.market")}),f.jsx("h1",{className:"font-serif-display mt-2 text-3xl text-primary sm:text-4xl lg:text-5xl",children:t("magazine.seo.marketTitle")}),f.jsx("p",{className:"mt-3 max-w-2xl text-sm leading-relaxed text-muted",children:t("magazine.hub.marketLead")}),f.jsxs("div",{className:"mt-5 flex flex-wrap gap-3",children:[f.jsx(be,{to:"/macro/vix",className:"btn-secondary text-sm",children:t("magazine.viewMacro")}),f.jsx(be,{to:"/news/market",className:"btn-secondary text-sm",children:t("news.intelligence.viewArchive")})]})]})}),f.jsxs(Pt,{title:t("magazine.prime.title"),subtitle:t("magazine.prime.subtitle"),children:[e.isEditor&&f.jsxs("div",{className:"mb-4 flex flex-wrap justify-end gap-2",children:[f.jsxs("button",{type:"button",className:"btn-secondary text-sm",disabled:e.macro.status==="loading",onClick:()=>void e.loadMacro({refresh:!0}),children:[t("magazine.refresh")," Macro"]}),f.jsxs("button",{type:"button",className:"btn-secondary text-sm",disabled:e.strategyRefreshing,onClick:()=>e.loadStrategy(!0),children:[t("magazine.refresh")," Strategy"]})]}),e.strategyLoading&&!e.strategy?f.jsx(vt,{}):f.jsx(JB,{regime:o,macro:e.macro.data??null,news:e.news.data??null,topPick:e.topPicks[0]??null,radarPreview:a[0]??null})]}),f.jsxs(Pt,{title:t("magazine.story.title"),subtitle:t("magazine.story.subtitle"),action:{to:"/news/market",label:t("news.intelligence.viewArchive")},children:[e.isEditor&&f.jsx("div",{className:"mb-4 flex justify-end",children:f.jsx("button",{type:"button",className:"btn-secondary text-sm",disabled:e.news.status==="loading",onClick:()=>void e.loadNews({refresh:!0}),children:t("magazine.refresh")})}),e.news.status==="loading"&&f.jsx(vt,{tall:!0}),e.news.status!=="loading"&&f.jsx(ZB,{news:e.news.data??null,idle:e.news.status==="idle",error:e.news.status==="error"?e.news.error:null})]}),f.jsxs(Pt,{title:t("dashboard.macro"),subtitle:t("dashboard.macroSub"),action:{to:"/macro/vix",label:t("magazine.viewMacro")},children:[e.macro.status==="idle"&&f.jsx(CS,{message:t("dashboard.idle")}),e.macro.status==="loading"&&f.jsx(vt,{}),e.macro.status==="error"&&f.jsx(Bk,{message:e.macro.error??""}),e.macro.status==="loaded"&&e.macro.data&&f.jsxs(f.Fragment,{children:[f.jsx(zk,{source:e.macro.data.source,fetchedAt:e.macro.data.fetchedAt}),f.jsx(wde,{indicators:e.macro.data.indicators}),e.isEditor&&f.jsx("div",{className:"mt-4 flex justify-end",children:f.jsx("button",{type:"button",className:"btn-secondary text-sm disabled:opacity-50",disabled:r,onClick:async()=>{n(!0);try{for(const h of Vs)await MB(h.key)}finally{n(!1)}},children:r?"â¦":t("macroAnalysis.generateAll")})})]})]}),f.jsxs(Pt,{title:t("magazine.sector.title"),subtitle:t("magazine.sector.subtitle"),children:[e.isEditor&&f.jsx("div",{className:"mb-4 flex justify-end",children:f.jsx("button",{type:"button",className:"btn-secondary text-sm",disabled:e.sectorMarket.fetching,onClick:()=>void e.sectorMarket.startFetch(),children:t("magazine.refresh")})}),f.jsx(rz,{sectors:e.sectorMarket.data.sectors??{}})]})]})}function kde(){var i,a,o;const{t}=ye(),e=up(),r=((i=e.strategy)==null?void 0:i.rows)??[],n=((a=e.strategy)==null?void 0:a.marketRegime)??null;return f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:t("magazine.seo.trailTitle"),description:t("magazine.seo.trailDescription"),path:"/trail"}),f.jsx("header",{className:"border-b border-border bg-card/40",children:f.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-10 sm:px-6",children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-primary/70",children:t("nav.discover")}),f.jsx("h1",{className:"font-serif-display mt-2 text-3xl text-primary sm:text-4xl lg:text-5xl",children:t("magazine.seo.trailTitle")}),f.jsx("p",{className:"mt-3 max-w-2xl text-sm leading-relaxed text-muted",children:t("magazine.hub.trailLead")}),f.jsxs("div",{className:"mt-5 flex flex-wrap gap-3",children:[f.jsx(be,{to:"/strategy",className:"btn-secondary text-sm",children:t("magazine.viewStrategy")}),f.jsx(be,{to:"/top100",className:"btn-secondary text-sm",children:t("magazine.viewDiscover")})]})]})}),f.jsxs(Pt,{title:f.jsx(Mt,{term:"market-regime",children:t("strategy.historyRegime")}),subtitle:t("strategy.ctaSubtitle"),children:[e.isEditor&&f.jsx("div",{className:"mb-4 flex justify-end",children:f.jsx("button",{type:"button",className:"btn-secondary text-sm",disabled:e.strategyRefreshing,onClick:()=>e.loadStrategy(!0),children:t("magazine.refresh")})}),e.strategyLoading&&!e.strategy?f.jsx(vt,{}):n?f.jsxs("div",{className:"rounded-2xl border border-border bg-white p-6 shadow-sm",children:[f.jsx(Fk,{regime:n}),((o=e.strategy)==null?void 0:o.stale)&&f.jsx("p",{className:"mt-4 text-sm text-amber-600",children:t("strategy.staleHint")})]}):f.jsx("p",{className:"text-sm text-muted",children:t("strategy.noData")})]}),f.jsx(Pt,{title:t("magazine.movers.title"),subtitle:t("magazine.movers.subtitle"),action:{to:"/strategy",label:t("magazine.viewStrategy")},children:e.strategyLoading?f.jsx(vt,{}):f.jsx(ez,{rows:r,limit:10})}),f.jsx(Pt,{title:t("magazine.radar.title"),subtitle:t("magazine.radar.subtitle"),action:{to:"/strategy",label:t("magazine.radar.viewAll")},children:e.strategyLoading?f.jsx(vt,{}):f.jsx(tz,{rows:r,regime:n,limit:6})}),f.jsxs(Pt,{title:t("strategy.signal"),subtitle:t("strategy.ctaSubtitle"),children:[f.jsx("div",{className:"grid gap-4 sm:grid-cols-3",children:[{title:"EARLY",body:t("strategy.signalEarlyHint",{defaultValue:"Early trend reversal with improving TRP velocity."})},{title:"CONFIRMED",body:t("strategy.signalConfirmedHint",{defaultValue:"Quality + rising TRP confirmation in the current regime."})},{title:"WATCH / REDUCE",body:t("strategy.signalWatchHint",{defaultValue:"Monitor or trim when momentum fades or regime turns risk-off."})}
1638].map(l=>f.jsxs("article",{className:"rounded-xl border border-border bg-white p-5",children:[f.jsx("h3",{className:"font-serif text-lg font-bold text-primary",children:l.title}),f.jsx("p",{className:"mt-2 text-sm leading-relaxed text-muted",children:l.body})]},l.title))}),f.jsx("p",{className:"mt-6 text-sm text-muted",children:"TRP / Velocity / Relative Strength are computed from cached Strategy snapshots â no estimated backfill."})]})]})}function jde({className:t=""}){return f.jsx("span",{className:`inline-block h-4 w-4 animate-spin rounded-full border-2 border-primary/30 border-t-primary ${t}`,role:"status","aria-label":"Loading"})}function mz(t){return t/100*45}function Pde(t,e,r){const n=mz(e)*Math.PI/180,i=r,a=t-r,o=Math.cos(n),l=Math.sin(n),u=t-2*r;let d=u;o>1e-6&&(d=Math.min(d,u/o)),l>1e-6&&(d=Math.min(d,u/l)),l<-1e-6&&(d=Math.min(d,u/-l));const h=Math.max(0,d*.92);return{x1:i,y1:a,x2:i+h*o,y2:a-h*l}}function Tde({changePct:t,size:e=28,className:r=""}){if(!Number.isFinite(t))return null;const n=3,{x1:i,y1:a,x2:o,y2:l}=Pde(e,t,n),u=mz(t);return f.jsx("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,className:`shrink-0 ${r}`,role:"img","aria-label":`1Y change ${t>=0?"+":""}${t.toFixed(1)}%, slope ${u.toFixed(1)}°`,children:f.jsx("line",{x1:i,y1:a,x2:o,y2:l,stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}function Ade(t){return t===null||!Number.isFinite(t)?"â":t>=1e12?`$${(t/1e12).toFixed(2)}T`:t>=1e9?`$${(t/1e9).toFixed(1)}B`:t>=1e6?`$${(t/1e6).toFixed(0)}M`:`$${t.toLocaleString()}`}function Ede(t){return t===null||!Number.isFinite(t)||t<=0?"â":t.toFixed(1)}const _M=new Map(yo.map(t=>[t.ticker,t.marketCapRank]));function Ji(t){return t!=null&&Number.isFinite(t)?t:null}function Da(t,e,r){const n=t===null,i=e===null;if(n&&i)return 0;if(n)return 1;if(i)return-1;const a=t-e;return r==="asc"?a:-a}function _de(t,e){return(_M.get(t.ticker)??99)-(_M.get(e.ticker)??99)}function Nde(t,e,r){const n=t.localeCompare(e,void 0,{sensitivity:"base"});return r==="asc"?n:-n}function Ode(t,e,r,n,i){const a=[...t];return a.sort((o,l)=>{switch(e){case"watch":{const u=n(o.ticker)?1:0,d=n(l.ticker)?1:0,h=u-d;return r==="asc"?h:-h}case"company":return Nde(o.corpName,l.corpName,r);case"price":return Da(Ji(o.price),Ji(l.price),r);case"marketCap":{const u=Da(Ji(o.marketCap),Ji(l.marketCap),r);return u!==0?u:_de(o,l)}case"pe":{const u=d=>d!=null&&Number.isFinite(d)&&d>0?d:null;return Da(u(o.peRatio),u(l.peRatio),r)}case"rs":return Da(Ji(o.relativeStrength),Ji(l.relativeStrength),r);case"titanScore":{const u=d=>null;return Da(u(),u(),r)}case"risk":{const u=d=>d.riskScore!=null?Gr(d.riskScore):null;return Da(u(o),u(l),r)}case"change":return Da(Ji(o.changePct),Ji(l.changePct),r);default:return 0}}),a}const Cde="marketCap",Ide="desc";function Rde(t){return t===null?"â":`$${t.toFixed(2)}`}function NM(t){return t===null?"â":`${t>=0?"+":""}${t.toFixed(1)}%`}function Qi({label:t,column:e,activeKey:r,direction:n,onSort:i,align:a="left",sortAscLabel:o,sortDescLabel:l}){const u=r===e,d=u?n==="asc"?o:l:o;return f.jsx("th",{className:`pb-3 ${a==="right"?"text-right":"text-left"} ${e==="watch"?"w-10 pr-2":"pr-4"}`,children:f.jsxs("button",{type:"button",onClick:()=>i(e),className:`group inline-flex items-center gap-1 font-medium transition hover:text-primary ${a==="right"?"ml-auto":""} ${u?"text-primary":""}`,"aria-sort":u?n==="asc"?"ascending":"descending":"none",title:d,children:[f.jsx("span",{children:t}),f.jsx("span",{className:`text-[10px] leading-none ${u?"opacity-100":"opacity-0 group-hover:opacity-50"}`,children:u?n==="asc"?"â²":"â¼":"â"})]})})}function pz({rows:t,stale:e,loadingTickers:r}){const{t:n}=ye(),{load:i,isWatching:a,tickers:o}=gu(),[l,u]=N.useState(Cde),[d,h]=N.useState(Ide);N.useEffect(()=>{i()},[i]);const m=w=>{l===w?h(x=>x==="asc"?"desc":"asc"):(u(w),h("asc"))},g=N.useMemo(()=>Ode(t,l,d,a),[t,l,d,a,o]),v=n("market.sort.asc"),b=n("market.sort.desc");return f.jsxs("div",{className:"card overflow-x-auto",children:[e&&f.jsx("p",{className:"mb-2 text-xs text-amber-700",children:n("market.stale")}),f.jsxs("table",{className:"w-full min-w-[980px] text-sm",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-border text-xs text-muted",children:[f.jsx(Qi,{label:n("market.col.watch"),column:"watch",activeKey:l,direction:d,onSort:m,sortAscLabel:v,sortDescLabel:b}),f.jsx(Qi,{label:n("market.col.company"),column:"company",activeKey:l,direction:d,onSort:m,sortAscLabel:v,sortDescLabel:b}),f.jsx(Qi,{label:n("market.col.price"),column:"price",activeKey:l,direction:d,onSort:m,sortAscLabel:v,sortDescLabel:b}),f.jsx(Qi,{label:n("market.col.marketCap"),column:"marketCap",activeKey:l,direction:d,onSort:m,sortAscLabel:v,sortDescLabel:b}),f.jsx(Qi,{label:n("market.col.pe"),column:"pe",activeKey:l,direction:d,onSort:m,sortAscLabel:v,sortDescLabel:b}),f.jsx(Qi,{label:n("market.col.rs"),column:"rs",activeKey:l,direction:d,onSort:m,sortAscLabel:v,sortDescLabel:b}),f.jsx(Qi,{label:n("market.col.titanHealth"),column:"risk",activeKey:l,direction:d,onSort:m,sortAscLabel:v,sortDescLabel:b}),f.jsx(Qi,{label:n("market.col.change"),column:"change",activeKey:l,direction:d,onSort:m,align:"right",sortAscLabel:v,sortDescLabel:b})]})}),f.jsx("tbody",{children:g.map(w=>{const x=r==null?void 0:r.has(w.ticker),k=(w.changePct??0)>=0;return f.jsxs("tr",{className:"border-b border-border/60 last:border-0",children:[f.jsx("td",{className:"py-3 pr-2",children:f.jsx(cp,{ticker:w.ticker,corpName:w.corpName,slug:w.slug,sector:w.sector,iconOnly:!0})}),f.jsxs("td",{className:"py-3 pr-4",children:[f.jsx(be,{to:rl(w.slug),className:"font-medium hover:text-primary",children:w.
1638corpName}),f.jsx("div",{className:"font-mono text-xs text-muted",children:w.ticker})]}),f.jsx("td",{className:"py-3 pr-4 font-mono",children:x?f.jsx(jde,{}):Rde(w.price)}),f.jsx("td",{className:"py-3 pr-4 font-mono text-xs",children:x?"â":Ade(w.marketCap)}),f.jsx("td",{className:"py-3 pr-4 font-mono",children:x?"â":Ede(w.peRatio)}),f.jsx("td",{className:`py-3 pr-4 font-mono ${(w.relativeStrength??0)>=0?"text-risk-low":"text-risk-high"}`,children:x?"â":NM(w.relativeStrength)}),f.jsx("td",{className:"py-3 pr-4",children:w.riskScore!==null?f.jsx("span",{className:`font-bold ${Dk(Gr(w.riskScore))}`,children:Gr(w.riskScore)}):f.jsx(be,{to:"/analyze",className:"text-xs text-primary underline",children:n("market.analyze")})}),f.jsx("td",{className:"py-3",children:f.jsxs("div",{className:`flex items-center justify-end gap-2 font-mono ${k?"text-risk-low":"text-risk-high"}`,children:[!x&&w.changePct!==null&&f.jsx(Tde,{changePct:w.changePct,size:28}),f.jsx("span",{className:"min-w-[4.5rem] text-right",children:x?"â":NM(w.changePct)})]})})]},w.ticker)})})]})]})}const Mde=1280,Lde=.75,OM=1.5*1024*1024;function Dde(t){const e=t.endsWith("==")?2:t.endsWith("=")?1:0;return Math.floor(t.length*3/4)-e}function $de(t){return new Promise((e,r)=>{const n=URL.createObjectURL(t),i=new Image;i.onload=()=>{URL.revokeObjectURL(n),e(i)},i.onerror=()=>{URL.revokeObjectURL(n),r(new Error("Failed to load image"))},i.src=n})}function CM(t,e){return new Promise((r,n)=>{t.toBlob(i=>i?r(i):n(new Error("Failed to encode image")),"image/jpeg",e)})}async function Fde(t){return new Promise((e,r)=>{const n=new FileReader;n.onload=()=>{const a=n.result.split(",")[1]??"";e(a)},n.onerror=()=>r(new Error("Failed to read image")),n.readAsDataURL(t)})}async function Bde(t){if(!t.type.startsWith("image/"))throw new Error("Please upload an image file (JPEG, PNG, or WebP).");const e=await $de(t),r=Math.min(1,Mde/Math.max(e.width,e.height)),n=Math.max(1,Math.round(e.width*r)),i=Math.max(1,Math.round(e.height*r)),a=document.createElement("canvas");a.width=n,a.height=i;const o=a.getContext("2d");if(!o)throw new Error("Canvas not supported");o.drawImage(e,0,0,n,i);let l=Lde,u=await CM(a,l);for(;u.size>OM*.75&&l>.4;)l-=.1,u=await CM(a,l);const d=await Fde(u);
1638if(Dde(d)>OM)throw new Error("Image is too large after compression. Try a smaller screenshot.");return{imageBase64:d,mimeType:"image/jpeg"}}function zde({featured:t}){const{t:e}=ye(),r=jn(),[n,i]=N.useState(""),[a,o]=N.useState([]),[l,u]=N.useState(null),[d,h]=N.useState(!1),[m,g]=N.useState(null),[v,b]=N.useState(!1),[w,x]=N.useState([]),[k,P]=N.useState([]),[A,E]=N.useState(new Set),[T,_]=N.useState(null),O=cz(n,300),I=N.useMemo(()=>new Set(t.stocks.map(z=>z.ticker)),[t.stocks]);N.useEffect(()=>{if(!r||O.length<1){o([]);return}_B(O,t.stocks.map(z=>z.ticker)).then(o).catch(()=>o([]))},[O,r,t.stocks]);const R=z=>{u(z),i(`${z.corpName} (${z.ticker})`),o([])},D=async()=>{if(!l){g(e("featured.pickCompany"));return}if(t.isFull){g(e("featured.limitReached"));return}g(null),h(!0);try{await t.addStock({ticker:l.ticker,corpName:l.corpName,cik:l.cik||void 0,sector:l.sector||void 0}),i(""),u(null)}catch(z){g(z instanceof Error?z.message:e("featured.addFailed"))}finally{h(!1)}},F=async z=>{h(!0);try{await t.removeStock(z)}catch(K){g(K instanceof Error?K.message:e("featured.removeFailed"))}finally{h(!1)}},B=async z=>{if(z){g(null),b(!0),x([]),P([]),E(new Set),_(null);try{const K=await Bde(z),Q=await zse(K),q=Q.candidates.filter(Z=>!I.has(Z.ticker));x(q),P(Q.unresolved),_(Q.notes),E(new Set(q.map(Z=>Z.ticker)))}catch(K){g(K instanceof Error?K.message:e("featured.imageExtractFailed"))}finally{b(!1)}}},G=z=>{E(K=>{const Q=new Set(K);return Q.has(z)?Q.delete(z):Q.add(z),Q})},Y=async()=>{const z=w.filter(K=>A.has(K.ticker));if(z.length===0){g(e("featured.imagePickOne"));return}if(z.length>t.remainingSlots){g(e("featured.imageSlotsExceeded",{slots:t.remainingSlots}));return}g(null),h(!0);try{const K=await t.addStocksBulk(z.map(Q=>({ticker:Q.ticker,corpName:Q.corpName,cik:Q.cik||void 0,sector:Q.sector!=="â"?Q.sector:void 0})));K.skipped.length>0&&g(e("featured.bulkSkipped",{count:K.skipped.length})),x([]),E(new Set),P([]),_(null)}catch(K){g(K instanceof Error?K.message:e("featured.addFailed"))}finally{h(!1)}};return t.loading?f.jsx(vt,{}):f.jsxs("div",{className:"space-y-4",children:[t.error&&f.jsx(Bk,{message:t.error}),r&&f.jsxs("div",{className:"card space-y-4 p-4",children:[f.jsx("p",{className:"text-sm font-medium text-foreground",children:e("featured.editorHint")}),f.jsxs("div",{className:"rounded-md border border-dashed border-border bg-muted/10 p-4",children:[f.jsx("p",{className:"text-sm font-medium text-foreground",children:e("featured.imageUploadTitle")}),f.jsx("p",{className:"mt-1 text-xs text-muted",children:e("featured.imageUploadHint")}),f.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-3",children:[f.jsxs("label",{className:"btn-secondary cursor-pointer text-sm",children:[e(v?"featured.imageExtracting":"featured.imageUploadButton"),f.jsx("input",{type:"file",accept:"image/jpeg,image/png,image/webp",className:"hidden",disabled:v||d||t.isFull,onChange:z=>{var K;return void B(((K=z.target.files)==null?void 0:K[0])??null)}})]}),T&&f.jsx("span",{className:"text-xs text-muted",children:T})]}),k.length>0&&f.jsxs("p",{className:"mt-2 text-xs text-amber-700",children:[e("featured.imageUnresolved"),": ",k.join(", ")]}),w.length>0&&f.jsxs("div",{className:"mt-4 space-y-2",children:[f.jsx("p",{className:"text-xs font-medium text-muted",children:e("featured.imageReviewHint")}),f.jsx("ul",{className:"max-h-48 space-y-1 overflow-auto",children:w.map(z=>f.jsx("li",{children:f.jsxs("label",{className:"flex cursor-pointer items-center gap-2 rounded px-2 py-1 hover:bg-muted/30",children:[f.jsx("input",{type:"checkbox",checked:A.has(z.ticker),onChange:()=>G(z.ticker),disabled:d}),f.jsx("span",{className:"font-mono text-sm font-medium",children:z.ticker}),f.jsx("span",{className:"text-sm text-muted",children:z.corpName}),z.sourceName&&f.jsxs("span",{className:"text-xs text-muted",children:["(",z.sourceName,")"]})]})},z.ticker))}),f.jsx("button",{type:"button",className:"btn-primary text-sm",disabled:d||A.size===0,onClick:()=>void Y(),children:d?e("featured.adding"):e("featured.imageAddSelected",{count:A.size})})]})]}),f.jsxs("div",{className:"relative",children:[f.jsx("input",{type:"search",value:n,onChange:z=>
1638{i(z.target.value),u(null),g(null)},placeholder:e("featured.searchPlaceholder"),className:"w-full rounded-md border border-border bg-white px-3 py-2 text-sm",disabled:t.isFull||d}),a.length>0&&f.jsx("ul",{className:"absolute z-20 mt-1 max-h-56 w-full overflow-auto rounded-md border border-border bg-white shadow-lg",children:a.map(z=>f.jsx("li",{children:f.jsxs("button",{type:"button",className:"w-full px-3 py-2 text-left text-sm hover:bg-muted/40",onClick:()=>R(z),children:[f.jsx("span",{className:"font-medium",children:z.corpName}),f.jsx("span",{className:"ml-2 font-mono text-xs text-muted",children:z.ticker})]})},z.ticker))})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[f.jsx("button",{type:"button",className:"btn-primary text-sm",disabled:!l||d||t.isFull,onClick:()=>void D(),children:e(d?"featured.adding":"featured.add")}),f.jsx("span",{className:"text-xs text-muted",children:e("featured.count",{count:t.stocks.length,max:Ff})})]}),m&&f.jsx("p",{className:"text-sm text-risk-high",children:m}),t.stocks.length>0&&f.jsx("div",{className:"flex flex-wrap gap-2",children:t.stocks.map(z=>f.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full border border-border bg-muted/20 px-2 py-1 text-xs",children:[f.jsx("span",{className:"font-mono font-medium",children:z.ticker}),f.jsx("button",{type:"button",className:"text-muted hover:text-risk-high","aria-label":e("featured.remove",{ticker:z.ticker}),disabled:d,onClick:()=>void F(z.ticker),children:"Ã"})]},z.ticker))})]}),!t.hasStocks&&!r&&f.jsx(CS,{message:e("featured.emptyPublic")}),!t.hasStocks&&r&&f.jsx(CS,{message:e("featured.emptyEditor")}),t.hasStocks&&f.jsxs(f.Fragment,{children:[t.fetching&&t.loadingTickers.size===0&&f.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted",children:[f.jsx("span",{className:"inline-block h-5 w-5 animate-spin rounded-full border-2 border-primary/30 border-t-primary"}),e("market.loadingBatch")]}),f.jsx(zk,{source:t.data.source,fetchedAt:t.data.rows.some(z=>z.price!=null)?t.data.fetchedAt:void 0}),f.jsx(pz,{rows:t.displayRows,stale:t.data.stale,loadingTickers:t.loadingTickers})]})]})}function Vde(){const{t}=ye(),e=up(),r=N.useRef(!1),n=e.hydrateSecondary;return N.useEffect(()=>{r.current||(r.current=!0,n())},[n]),f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:t("magazine.seo.compoundersTitle"),description:t("magazine.seo.compoundersDescription"),path:"/compounders"}),f.jsx("header",{className:"border-b border-border bg-card/40",children:f.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-10 sm:px-6",children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-primary/70",children:t("nav.compounders")}),f.jsx("h1",{className:"font-serif-display mt-2 text-3xl text-primary sm:text-4xl lg:text-5xl",children:f.jsx(Mt,{term:"compounder",children:t("magazine.seo.compoundersTitle")})}),f.jsx("p",{className:"mt-3 max-w-2xl text-sm leading-relaxed text-muted",children:t("magazine.hub.compoundersLead")}),f.jsxs("div",{className:"mt-5 flex flex-wrap gap-3",children:[f.jsx(be,{to:"/top100",className:"btn-secondary text-sm",children:t("magazine.viewDiscover")}),e.isEditor&&f.jsx(be,{to:"/analyze",className:"btn-secondary text-sm",children:t("nav.analyze")})]})]})}),f.jsxs(Pt,{title:t("dashboard.featured"),subtitle:t("dashboard.featuredSub"),children:[e.isEditor&&e.featuredMarket.hasStocks&&f.jsx("div",{className:"mb-4 flex justify-end",children:f.jsx("button",{type:"button",className:"btn-secondary text-sm",disabled:e.featuredMarket.fetching,onClick:()=>void e.featuredMarket.refreshQuotes(),children:t("magazine.refresh")})}),e.isEditor?f.jsx(zde,{featured:e.featuredMarket}):e.featuredMarket.loading?f.jsx(vt,{}):f.jsx(nz,{rows:e.featuredMarket.displayRows,limit:20})]}),f.jsxs(Pt,{title:t("dashboard.megaCap"),subtitle:t("dashboard.megaCapSub"),children:[e.isEditor&&f.jsx("div",{className:"mb-4 flex justify-end",children:f.jsx("button",{type:"button",className:"btn-secondary text-sm",disabled:e.megaMarket.fetching,onClick:()=>void e.megaMarket.startFetch(),children:t("magazine.refresh")})}),e.megaMarket.error&&f.jsx(Bk,{message:e.megaMarket.error}),e.megaMarket.fetching&&e.megaMarket.loadingTickers.size===0&&f.jsxs("div",{className:"mb-3 flex items-center gap-2 text-sm text-muted",children:[f.jsx("span",{className:"inline-block h-5 w-5 animate-spin rounded-full border-2 border-primary/30 border-t-primary"}),t("market.loadingBatch")]}),f.jsx(zk,{source:e.megaMarket.data.source,fetchedAt:e.megaMarket.data.rows.some(i=>i.price!=null)?e.megaMarket.data.fetchedAt:void 0}),f.jsx(pz,{rows:e.megaMarket.displayRows,stale:e.megaMarket.data.stale,loadingTickers:e.megaMarket.loadingTickers}),e.megaMarket.canLoadMore&&f.jsx("div",{className:"mt-4 flex justify-center",children:f.jsx("button",{type:"button",className:"btn-secondary",disabled:e.megaMarket.fetching,onClick:()=>void e.megaMarket.loadMore(),children:e.megaMarket.fetching?t("market.loadingMore"):t("market.loadMore")})})]}),f.jsx(Pt,{title:t("magazine.audit.title"),subtitle:t("magazine.audit.subtitle"),children:e.reportsLoading?f.jsx(vt,{}):f.jsx(oz,{reports:e.reports,limit:12})})]})}function Ude(){var u;const{t,i18n:e}=ye(),r=jn(),n=((u=e.language)==null?void 0:u.split("-")[0])??"en",[i,a]=N.useState([]),[o,l]=N.useState(!0);return N.useEffect(()=>{l(!0),BB(n,40).then(({entries:d})=>a(d)).catch(()=>a([])).finally(()=>l(!1))},[n]),f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:t("magazine.seo.journalTitle"),description:t("magazine.seo.journalDescription"),path:"/journal"}),f.jsx("header",{className:"border-b border-border bg-card/40",children:f.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-10 sm:px-6",children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-primary/70",children:t("nav.journal")}),f.jsx("h1",{className:"font-serif-display mt-2 text-3xl text-primary sm:text-4xl lg:text-5xl",children:t("journal.hubTitle")}),f.jsx("p",{className:"mt-3 max-w-2xl text-sm leading-relaxed text-muted",children:t("journal.hubLead")}),r&&f.jsx("div",{className:"mt-5",children:f.jsx(be,{to:"/journal/manage",className:"btn-secondary text-sm",children:t("journal.manage")})})]})}),f.jsxs(Pt,{title:t("journal.archiveTitle"),subtitle:t("journal.archiveSubtitle"),children:[o&&f.jsx(vt,{}
1638),!o&&i.length===0&&f.jsx("p",{className:"text-sm text-muted",children:t("journal.empty")}),!o&&i.length>0&&f.jsx("ul",{className:"space-y-3",children:i.map(d=>{var h;return f.jsx("li",{children:f.jsxs(be,{to:`/journal/${d.slug}`,className:"flex flex-col gap-2 rounded-xl border border-border bg-white p-4 transition hover:border-primary/30 hover:shadow-sm sm:flex-row sm:items-center sm:justify-between",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsxs("p",{className:"text-xs font-bold uppercase tracking-wide text-muted",children:[Wde(d.entryDate),d.lang?` · ${d.lang.toUpperCase()}`:""]}),f.jsx("p",{className:"font-serif-display mt-1 text-xl text-primary",children:((h=d.title)==null?void 0:h.trim())||t("journal.defaultTitle")}),d.watchingTickers.length>0&&f.jsx("p",{className:"mt-1 truncate text-sm text-muted",children:d.watchingTickers.join(" · ")})]}),(d.marketRegimeLabel||d.marketRegimeScore!=null)&&f.jsxs("div",{className:"shrink-0 rounded-lg border border-border bg-card/60 px-3 py-2 text-right",children:[f.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wide text-muted",children:f.jsx(Mt,{term:"market-regime",children:t("journal.regime")})}),f.jsxs("p",{className:"font-serif text-lg font-semibold text-primary",children:[d.marketRegimeLabel??"â",d.marketRegimeScore!=null?` · ${d.marketRegimeScore}`:""]})]})]})},d.id)})})]})]})}function Wde(t){const e=new Date(`${t}T00:00:00.000Z`);return Number.isNaN(e.getTime())?t:e.toLocaleDateString("en-CA",{year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC"}).replace(/-/g,".")}function Hde(){var h;const{slug:t=""}=uo(),{t:e}=ye(),[r,n]=N.useState(null),[i,a]=N.useState(!0),[o,l]=N.useState(null);N.useEffect(()=>{t&&(a(!0),l(null),rle(t).then(({entry:m})=>n(m)).catch(m=>{n(null),l(m instanceof Error?m.message:e("journal.notFound"))}).finally(()=>a(!1)))},[t,e]);const u=((h=r==null?void 0:r.title)==null?void 0:h.trim())||e("journal.defaultTitle"),d=r?Jle(r.createdBy):null;return f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:`${u} | NextPrimus Journal`,description:e("magazine.seo.journalDescription"),path:t?`/journal/${t}`:"/journal"}),f.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-10 sm:px-6",children:[f.jsxs(be,{to:"/journal",className:"text-sm font-medium text-primary hover:underline",children:["â ",e("journal.backToArchive")]}),i&&f.jsx("div",{className:"mt-8",children:f.jsx(vt,{})}),o&&!i&&f.jsx("p",{className:"mt-8 text-sm text-risk",children:o}),r&&!i&&f.jsxs("article",{className:"mt-8",children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-primary/70",children:e("journal.hubTitle")}),f.jsx("p",{className:"mt-2 text-sm text-muted",children:qde(r.entryDate)}),f.jsx("h1",{className:"font-serif-display mt-3 text-3xl text-primary sm:text-4xl",children:u}),f.jsxs("section",{className:"mt-10 rounded-2xl border border-border bg-white p-6 shadow-sm",children:[f.jsx("h2",{className:"text-xs font-bold uppercase tracking-wide text-muted",children:f.jsx(Mt,{term:"market-regime",children:e("journal.regime")})}),f.jsxs("p",{className:"font-serif-display mt-2 text-3xl text-primary",children:[r.marketRegimeScore!=null?r.marketRegimeScore:"â",f.jsx("span",{className:"text-lg text-muted",children:" / 100"})]}),r.marketRegimeLabel&&f.jsx("p",{className:"mt-1 text-sm font-semibold text-foreground",children:r.marketRegimeLabel})]}),f.jsxs(ac,{title:e("journal.watching"),children:[r.watchingTickers.length>0?f.jsx("p",{className:"font-serif text-lg font-semibold text-foreground",children:r.watchingTickers.join(" · ")}):f.jsx("p",{className:"text-sm text-muted",children:"â"}),r.watchingTickers.length>0&&f.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:r.watchingTickers.map(m=>f.jsx(be,{to:`/strategy/${m}`,className:"rounded-md border border-border bg-card px-2.5 py-1 text-xs font-medium text-primary hover:border-primary/40",children:m},m))})]}),f.jsx(ac,{title:e("journal.whatChanged"),children:f.jsx(Ef,{text:r.whatChanged})}),f.jsx(ac,{title:e("journal.whatImNotDoing"),children:f.jsx(Ef,{text:r.whatImNotDoing})}),f.jsx(ac,{title:e("journal.myStrategy"),children:f.jsx(Ef,{text:r.myStrategy})}),f.jsx(ac,{title:e("journal.nextReview"),children:f.jsx(Ef,{text:r.nextReview})}),d&&f.jsxs("section",{className:"mt-10 rounded-2xl border border-border bg-white p-6 shadow-sm",children:[f.jsx("h2",{className:"text-xs font-bold uppercase tracking-wide text-muted",children:e("journal.authorTitle")}),f.jsxs("div",{className:"mt-4 flex flex-col gap-4 sm:flex-row sm:items-start",children:[f.jsx("img",{src:d.imageSrc,alt:d.name,className:"h-20 w-20 shrink-0 rounded-full border border-border object-cover"}),f.jsxs("div",{className:"min-w-0",children:[f.jsx("p",{className:"font-serif-display text-xl text-primary",children:d.name}),f.jsx("a",{href:`mailto:${d.email}`,className:"mt-1 block text-sm text-primary hover:underline",children:d.email}),f.jsx("p",{className:"mt-3 text-sm leading-relaxed text-foreground",children:e(d.bioKey)})]})]})]})]})]})]})}function ac({title:t,children:e}){return f.jsxs("section",{className:"mt-8 border-t border-border pt-6",children:[f.jsx("h2",{className:"font-serif-display text-2xl text-primary",children:t}),f.jsx("div",{className:"mt-3",children:e})]})}function Ef({text:t}){const e=t.trim();return e?f.jsx("p",{className:"whitespace-pre-wrap text-sm leading-relaxed text-foreground",children:e}):f.jsx("p",{className:"text-sm text-muted",children:"â"})}function qde(t){const e=new Date(`${t}T00:00:00.000Z`);return Number.isNaN(e.getTime())?t:e.toLocaleDateString("en-CA",{year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC"}).replace(/-/g,".")}const IM={entryDate:new Date().toISOString().slice(0,10),lang:"en",title:"",marketRegimeScore:null,marketRegimeLabel:"",watchingTickers:[],whatChanged:"",whatImNotDoing:"",myStrategy:"",nextReview:""},Va=4;function RM(t){return[...new Set(t.split(/[,\s]+/).map(e=>
1638e.trim().toUpperCase()).filter(Boolean))].slice(0,Va)}function Gde(){const{t}=ye(),e=jn(),[r,n]=N.useState([]),[i,a]=N.useState(!0),[o,l]=N.useState(!1),[u,d]=N.useState(!1),[h,m]=N.useState(null),[g,v]=N.useState(IM),[b,w]=N.useState(""),[x,k]=N.useState([]),[P,A]=N.useState({}),[E,T]=N.useState(!1),[_,O]=N.useState(null),[I,R]=N.useState(null),D=RM(b),F=async()=>{a(!0);try{const{entries:V}=await nle();n(V)}catch(V){R(V instanceof Error?V.message:"Failed to load")}finally{a(!1)}};if(N.useEffect(()=>{e&&F()},[e]),N.useEffect(()=>{e&&NB().then(k).catch(()=>k([]))},[e]),N.useEffect(()=>{if(D.length===0){A({});return}let V=!0;return T(!0),Promise.all(D.map(async re=>{try{return[re,await Mk(re)]}catch{return[re,null]}})).then(re=>{V&&A(Object.fromEntries(re))}).finally(()=>{V&&T(!1)}),()=>{V=!1}},[b]),!e)return f.jsx(d1,{to:"/journal",replace:!0});const B=()=>{m(null),v({...IM,entryDate:new Date().toISOString().slice(0,10)}),w(""),O(null),R(null)},G=V=>{m(V.slug),v({entryDate:V.entryDate,lang:V.lang,title:V.title??"",marketRegimeScore:V.marketRegimeScore,marketRegimeLabel:V.marketRegimeLabel??"",watchingTickers:V.watchingTickers,whatChanged:V.whatChanged,whatImNotDoing:V.whatImNotDoing,myStrategy:V.myStrategy,nextReview:V.nextReview}),w(V.watchingTickers.join(", ")),O(null),R(null)},Y=()=>{var V,re;return{...g,title:((V=g.title)==null?void 0:V.trim())||null,marketRegimeLabel:((re=g.marketRegimeLabel)==null?void 0:re.trim())||null,watchingTickers:D}},z=V=>{const re=[...new Set(V.map(de=>de.trim().toUpperCase()).filter(Boolean))].slice(0,Va);w(re.join(", ")),v(de=>({...de,watchingTickers:re}))},K=V=>{if(D.includes(V)){z(D.filter(re=>re!==V));return}if(D.length>=Va){R(t("journal.maxWatchingTickers",{count:Va}));return}R(null),z([...D,V])},Q=async()=>{l(!0),R(null);try{if(h){const{entry:V}=await ale(h,Y());m(V.slug),O(t("journal.saved"))}else{const{entry:V}=await ile(Y());m(V.slug),O(t("journal.created"))}await F()}catch(V){R(V instanceof Error?V.message:"Save failed")}finally{l(!1)}},q=async()=>{d(!0),R(null),O(t("journal.aiDraftRunning"));try{const{draft:V,entry:re}=await cle({...Y(),slug:h??void 0});v(de=>({...de,title:V.title,whatChanged:V.whatChanged,whatImNotDoing:V.whatImNotDoing,myStrategy:V.myStrategy,nextReview:V.nextReview})),m(re.slug),O(t("journal.aiDraftSaved")),await F()}catch(V){R(V instanceof Error?V.message:"AI draft failed"),O(null)}finally{d(!1)}},Z=async()=>{l(!0),R(null);try{const V=await Rk({limit:8}),re=V.rows.slice(0,6).map(de=>de.ticker);v(de=>{var Pe,De;return{...de,marketRegimeScore:((Pe=V.marketRegime)==null?void 0:Pe.score)??de.marketRegimeScore,marketRegimeLabel:((De=V.marketRegime)==null?void 0:De.regime)??de.marketRegimeLabel,watchingTickers:re.slice(0,Va)}}),z(re),O(t("journal.prefilled"))}catch(V){R(V instanceof Error?V.message:"Prefill failed")}finally{l(!1)}},ee=async V=>{l(!0);try{await ole(V),O(t("journal.published")),await F()}catch(re){R(re instanceof Error?re.message:"Publish failed")}finally{l(!1)}},L=async V=>{l(!0);try{await sle(V),O(t("journal.unpublished")),await F()}catch(re){R(re instanceof Error?re.message:"Unpublish failed")}finally{l(!1)}},W=async V=>{if(window.confirm(t("journal.confirmDelete"))){l(!0);try{await lle(V),h===V&&B(),O(t("journal.deleted")),await F()}catch(re){R(re instanceof Error?re.message:"Delete failed")}finally{l(!1)}}};return f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:t("journal.manage"),description:t("magazine.seo.journalDescription"),path:"/journal/manage"}),f.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-10 sm:px-6",children:[f.jsxs("div",{className:"flex flex-wrap items-end justify-between gap-3",children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-primary/70",children:"Editor"}),f.jsx("h1",{className:"font-serif-display mt-2 text-3xl text-primary",children:t("journal.manage")}),f.jsx("p",{className:"mt-2 text-sm text-muted",children:t("journal.manageLead")})]}),f.jsxs("div",{className:"flex flex-wrap gap-2",children:[f.jsx(be,{to:"/journal",className:"btn-secondary text-sm",children:t("journal.backToArchive")}),f.jsx("button",{type:"button",className:"btn-primary text-sm",onClick:B,children:t("journal.newEntry")})]})]}),_&&f.jsx("p",{className:"mt-4 text-sm text-safe",children:_}),I&&f.jsx("p",{className:"mt-4 text-sm text-risk",children:I}),f.jsxs("div",{className:"mt-8 grid gap-8 lg:grid-cols-[1fr_1.2fr]",children:[f.jsxs("section",{className:"rounded-xl border border-border bg-white p-4",children:[f.jsx("h2",{className:"text-sm font-bold text-primary",children:t("journal.entries")}),i?f.jsx("div",{className:"mt-4",children:f.jsx(vt,{})}):r.length===0?f.jsx("p",{className:"mt-4 text-sm text-muted",children:t("journal.emptyAdmin")}):f.jsx("ul",{className:"mt-4 space-y-2",children:r.map(V=>{var re;return f.jsxs("li",{className:"rounded-lg border border-border/80 px-3 py-2",children:[f.jsx("div",{className:"flex items-start justify-between gap-2",children:f.jsxs("button",{type:"button",className:"min-w-0 text-left",onClick:()=>G(V),children:[f.jsx("p",{className:"text-xs text-muted",children:V.entryDate}),f.jsx("p",{className:"truncate text-sm font-semibold text-foreground",children:((re=V.title)==null?void 0:re.trim())||V.slug}),f.jsx("span",{className:`mt-1 inline-block rounded px-1.5 py-0.5 text-[10px] font-bold uppercase ${V.status==="published"?"bg-emerald-100 text-emerald-800":"bg-amber-100 text-amber-800"}`,children:V.status})]})}),f.jsxs("div",{className:"mt-2 flex flex-wrap gap-1",children:[V.status!=="published"?f.jsx("button",{type:"button",className:"lang-btn px-2 py-1",disabled:o,onClick:()=>void ee(V.slug),children:t("journal.publish")}):f.jsx("button",{type:"button",className:"lang-btn px-2 py-1",disabled:o,onClick:()=>void L(V.slug),children:t("journal.unpublish")}),f.jsx("button",{type:"button",className:"lang-btn px-2 py-1 text-risk",disabled:o,onClick:()=>void W(V.slug),children:t("journal.delete")})]})]},V.id)})})]}),f.jsxs("section",{className:"rounded-xl border border-border bg-white p-5",children:[f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[f.jsx("h2",{className:"text-sm font-bold text-primary",children:t(h?"journal.editEntry":"journal.newEntry")}),f.jsx("button",{type:"button",className:"btn-secondary text-sm",disabled:o,onClick:()=>void Z(),children:t("journal.prefill")})]}),f.jsxs("div",{className:"mt-4 grid gap-3 sm:grid-cols-2",children:[f.jsxs("label",{className:"block text-xs font-medium text-muted",children:[t("journal.fieldDate"),f.jsx("input",{className:"input mt-1",type:"date",value:g.entryDate??"",onChange:V=>v(re=>({...re,entryDate:V.target.value}))})]}),f.jsxs("label",{className:"block text-xs font-medium text-muted",children:[t("journal.fieldLang"),f.jsxs("select",{className:"input mt-1",value:g.lang??"en",onChange:V=>v(re=>({...re,lang:V.target.value})),children:[f.jsx("option",{value:"en",children:"en"}),f.jsx("option",{value:"ko",children:"ko"}),f.jsx("option",{value:"ja",children:"ja"}),f.jsx("option",{value:"zh",children:"zh"})]})]}),f.jsxs("label",{className:"block text-xs font-medium text-muted sm:col-span-2",children:[t("journal.fieldTitle"),f.jsx("input",{className:"input mt-1",value:g.title??"",onChange:V=>v(re=>({...re,title:V.target.value}))})]}),f.jsxs("label",{className:"block text-xs font-medium text-muted sm:col-span-2",children:[t("journal.fieldWatching"),f.jsx("input",{className:"input mt-1",placeholder:"NVDA, MSFT, ORCL, CRWV",value:b,onChange:V=>z(RM(V.target.value))}),f.jsx("span",{className:"mt-1 block text-[11px] text-muted",children:t("journal.watchingLimit",{count:Va})})]}),x.length>0&&f.jsxs("div",{className:"sm:col-span-2",children:[f.jsx("p",{className:"text-xs font-medium text-muted",children:t("journal.compounderWatch")}),f.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:x.map(V=>{const re=D.includes(V.ticker),de=!re&&D.length>=Va;return f.jsx("button",{type:"button",disabled:de,onClick:()=>K(V.ticker),className:["rounded-md border px-2.5 py-1 text-xs font-semibold transition disabled:cursor-not-allowed disabled:opacity-40",re?"border-primary bg-primary text-white":"border-border bg-card text-primary hover:border-primary/40"].join(" "),children:V.ticker},V.ticker)})})]}),D.length===0?f.jsxs(f.Fragment,{children:[f.jsxs("label",{className:"block text-xs font-medium text-muted",children:[t("journal.fieldRegimeScore"),f.jsx("input",{className:"input mt-1",type:"number",min:0,max:100,value:g.marketRegimeScore??"",onChange:V=>v(re=>({...re,marketRegimeScore:V.target.value===""?null:Number(V.target.value)}))})]}),f.jsxs("label",{className:"block text-xs font-medium text-muted",children:[t("journal.fieldRegimeLabel"),f.jsx("input",{className:"input mt-1",value:g.marketRegimeLabel??"",onChange:V=>v(re=>({...re,marketRegimeLabel:V.target.value}))})]})]}):f.jsxs("div",{className:"sm:col-span-2",children:[f.jsx("p",{className:"text-xs font-medium text-muted",children:t("journal.tickerSignals")}),f.jsx("div",{className:"mt-2 grid gap-2 sm:grid-cols-2",children:D.map(V=>{const re=P[V];return f.jsxs("div",{className:"rounded-lg border border-border bg-card/50 px-3 py-2",children:[f.jsx("p",{className:"font-serif text-lg font-semibold text-primary",children:V}),E&&!re?f.jsx("p",{className:"mt-1 text-xs text-muted",children:t("journal.loadingTickerSignals")}):re?f.jsxs("div",{className:"mt-1 flex flex-wrap gap-x-4 gap-y-1 text-xs",children:[f.jsxs("span",{children:[f.jsx("span",{className:"text-muted",children:"TRP "}),f.jsx("strong",{children:re.trp.trp})]}),f.jsxs("span",{children:[f.jsxs("span",{className:"text-muted",children:[t("strategy.signal")," "]}),f.jsx("strong",{className:lp(re.signal.signal),children:sp(re.signal.signal)}
1638)]})]}):f.jsx("p",{className:"mt-1 text-xs text-muted",children:t("journal.tickerSignalUnavailable")})]},V)})})]}),[["whatChanged",t("journal.whatChanged")],["whatImNotDoing",t("journal.whatImNotDoing")],["myStrategy",t("journal.myStrategy")],["nextReview",t("journal.nextReview")]].map(([V,re])=>f.jsxs("label",{className:"block text-xs font-medium text-muted sm:col-span-2",children:[re,f.jsx("textarea",{className:"input mt-1 min-h-[6rem]",value:g[V]??"",onChange:de=>v(Pe=>({...Pe,[V]:de.target.value}))})]},V))]}),f.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[f.jsx("button",{type:"button",className:"btn-primary text-sm",disabled:o||u,onClick:()=>void Q(),children:o?"â¦":t("journal.saveDraft")}),f.jsx("button",{type:"button",className:"btn-secondary text-sm",disabled:o||u,onClick:()=>void q(),children:t(u?"journal.aiDraftRunning":"journal.saveAiDraft")}),h&&f.jsx("button",{type:"button",className:"btn-secondary text-sm",disabled:o||u,onClick:()=>void ee(h),children:t("journal.publish")})]}),f.jsx("p",{className:"mt-2 text-xs text-muted",children:t("journal.aiDraftHint")})]})]})]})]})}const gz=N.createContext({});function Kde(t){const e=N.useRef(null);return e.current===null&&(e.current=t()),e.current}const Yde=typeof window<"u",Xde=Yde?N.useLayoutEffect:N.useEffect,Wk=N.createContext(null);function Hk(t,e){t.indexOf(e)===-1&&t.push(e)}function om(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}const qn=(t,e,r)=>r>e?e:r<t?t:r;let qk=()=>{};const da={},yz=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),vz=t=>typeof t=="object"&&t!==null,xz=t=>/^0[^.\s]+$/u.test(t);function bz(t){let e;return()=>(e===void 0&&(e=t()),e)}const Kr=t=>t,Uu=(...t)=>t.reduce((e,r)=>n=>r(e(n))),yu=(t,e,r)=>{const n=e-t;return n?(r-t)/n:1};class Gk{constructor(){this.subscriptions=[]}add(e){return Hk(this.subscriptions,e),()=>om(this.subscriptions,e)}notify(e,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,r,n);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(e,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Cr=t=>t*1e3,Ur=t=>t/1e3,wz=(t,e)=>e?t*(1e3/e):0,Sz=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,Jde=1e-7,Qde=12;function Zde(t,e,r,n,i){let a,o,l=0;do o=e+(r-e)/2,a=Sz(o,n,i)-t,a>0?r=o:e=o;while(Math.abs(a)>Jde&&++l<Qde);return o}function Wu(t,e,r,n){if(t===e&&r===n)return Kr;const i=a=>Zde(a,0,1,t,r);return a=>a===0||a===1?a:Sz(i(a),e,n)}const kz=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,jz=t=>e=>1-t(1-e),Pz=Wu(.33,1.53,.69,.99),Kk=jz(Pz),Tz=kz(Kk),Az=t=>t>=1?1:(t*=2)<1?.5*Kk(t):.5*(2-Math.pow(2,-10*(t-1))),Yk=t=>1-Math.sin(Math.acos(t)),Ez=jz(Yk),_z=kz(Yk),efe=Wu(.42,0,1,1),tfe=Wu(0,0,.58,1),Nz=Wu(.42,0,.58,1),rfe=t=>Array.isArray(t)&&typeof t[0]!="number",Oz=t=>Array.isArray(t)&&typeof t[0]=="number",nfe={linear:Kr,easeIn:efe,easeInOut:Nz,easeOut:tfe,circIn:Yk,circInOut:_z,circOut:Ez,backIn:Kk,backInOut:Tz,backOut:Pz,anticipate:Az},ife=t=>typeof t=="string",MM=t=>{if(Oz(t)){qk(t.length===4);const[e,r,n,i]=t;return Wu(e,r,n,i)}else if(ife(t))return nfe[t];return t},_f=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function afe(t,e){let r=new Set,n=new Set,i=!1,a=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function u(h){o.has(h)&&(d.schedule(h),t()),h(l)}const d={schedule:(h,m=!1,g=!1)=>{const b=g&&i?r:n;return m&&o.add(h),b.add(h),h},cancel:h=>{n.delete(h),o.delete(h)},process:h=>{if(l=h,i){a=!0;return}i=!0;const m=r;r=n,n=m,r.forEach(u),r.clear(),i=!1,a&&(a=!1,d.process(h))}};return d}const ofe=40;function Cz(t,e){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=_f.reduce((A,E)=>(A[E]=afe(a),A),{}),{setup:l,read:u,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:v,postRender:b}=o,w=()=>{const A=da.useManualTiming,E=A?i.timestamp:performance.now();r=!1,A||(i.delta=n?1e3/60:Math.max(Math.min(E-i.timestamp,ofe),1)),i.timestamp=E,i.isProcessing=!0,l.process(i),u.process(i),d.process(i),h.process(i),m.process(i),g.process(i),v.process(i),b.process(i),i.isProcessing=!1,r&&e&&(n=!1,t(w))},x=()=>{r=!0,n=!0,i.isProcessing||t(w)};return{schedule:_f.reduce((A,E)=>{const T=o[E];return A[E]=(_,O=!1,I=!1)=>(r||x(),T.schedule(_,O,I)),A},{}),cancel:A=>{for(let E=0;E<_f.length;E++)o[_f[E]].cancel(A)},state:i,steps:o}}const{schedule:et,cancel:fa,state:Gt,steps:O0}=Cz(typeof requestAnimationFrame<"u"?requestAnimationFrame:Kr,!0);let Bf;function sfe(){Bf=void 0}const sr={now:()=>(Bf===void 0&&sr.set(Gt.isProcessing||da.useManualTiming?Gt.timestamp:performance.now()),Bf),set:t=>{Bf=t,queueMicrotask(sfe)}},Iz=t=>e=>typeof e=="string"&&e.startsWith(t),Rz=Iz("--"),lfe=Iz("var(--"),Xk=t=>lfe(t)?cfe.test(t.split("/*")[0].trim()):!1,cfe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function LM(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const nl={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},vu={...nl,transform:t=>
vendor: 26,076 bytes, line 1638
1638qn(0,1,t)},Nf={...nl,default:1},wc=t=>Math.round(t*1e5)/1e5,Jk=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ufe(t){return t==null}const dfe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Qk=(t,e)=>r=>!!(typeof r=="string"&&dfe.test(r)&&r.startsWith(t)||e&&!ufe(r)&&Object.prototype.hasOwnProperty.call(r,e)),Mz=(t,e,r)=>n=>{if(typeof n!="string")return n;const[i,a,o,l]=n.match(Jk);return{[t]:parseFloat(i),[e]:parseFloat(a),[r]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},ffe=t=>qn(0,255,t),C0={...nl,transform:t=>Math.round(ffe(t))},Xa={test:Qk("rgb","red"),parse:Mz("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+C0.transform(t)+", "+C0.transform(e)+", "+C0.transform(r)+", "+wc(vu.transform(n))+")"};function hfe(t){let e="",r="",n="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const LS={test:Qk("#"),parse:hfe,transform:Xa.transform},Hu=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ii=Hu("deg"),Vn=Hu("%"),ge=Hu("px"),mfe=Hu("vh"),pfe=Hu("vw"),DM={...Vn,parse:t=>Vn.parse(t)/100,transform:t=>Vn.transform(t*100)},Zo={test:Qk("hsl","hue"),parse:Mz("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+Vn.transform(wc(e))+", "+Vn.transform(wc(r))+", "+wc(vu.transform(n))+")"},jt={test:t=>Xa.test(t)||LS.test(t)||Zo.test(t),parse:t=>Xa.test(t)?Xa.parse(t):Zo.test(t)?Zo.parse(t):LS.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Xa.transform(t):Zo.transform(t),getAnimatableNone:t=>{const e=jt.parse(t);return e.alpha=0,jt.transform(e)}},gfe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function yfe(t){var e,r;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Jk))==null?void 0:e.length)||0)+(((r=t.match(gfe))==null?void 0:r.length)||0)>0}const Lz="number",Dz="color",vfe="var",xfe="var(",$M="${}",bfe=/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 Us(t){const e=t.toString(),r=[],n={color:[],number:[],var:[]},i=[];let a=0;const l=e.replace(bfe,u=>(jt.test(u)?(n.color.push(a),i.push(Dz),r.push(jt.parse(u))):u.startsWith(xfe)?(n.var.push(a),i.push(vfe),r.push(u)):(n.number.push(a),i.push(Lz),r.push(parseFloat(u))),++a,$M)).split($M);return{values:r,split:l,indexes:n,types:i}}function wfe(t){return Us(t).values}function $z({split:t,types:e}){const r=t.length;return n=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],n[a]!==void 0){const o=e[a];o===Lz?i+=wc(n[a]):o===Dz?i+=jt.transform(n[a]):i+=n[a]}return i}}function Sfe(t){return $z(Us(t))}const kfe=t=>typeof t=="number"?0:jt.test(t)?jt.getAnimatableNone(t):t,jfe=(t,e)=>typeof t=="number"?e!=null&&e.trim().endsWith("/")?t:0:kfe(t);function Pfe(t){const e=Us(t);return $z(e)(e.values.map((n,i)=>jfe(n,e.split[i])))}const Sn={test:yfe,parse:wfe,createTransformer:Sfe,getAnimatableNone:Pfe};function I0(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Tfe({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let i=0,a=0,o=0;if(!e)i=a=o=r;else{const l=r<.5?r*(1+e):r+e-r*e,u=2*r-l;i=I0(u,l,t+1/3),a=I0(u,l,t),o=I0(u,l,t-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:n}}function sm(t,e){return r=>r>0?e:t}const Qe=(t,e,r)=>t+(e-t)*r,R0=(t,e,r)=>{const n=t*t,i=r*(e*e-n)+n;return i<0?0:Math.sqrt(i)},Afe=[LS,Xa,Zo],Efe=t=>Afe.find(e=>e.test(t));function FM(t){const e=Efe(t);if(!e)return!1;let r=e.parse(t);return e===Zo&&(r=Tfe(r)),r}const BM=(t,e)=>{const r=FM(t),n=FM(e);if(!r||!n)return sm(t,e);const i={...r};return a=>(i.red=R0(r.red,n.red,a),i.green=R0(r.green,n.green,a),i.blue=R0(r.blue,n.blue,a),i.alpha=Qe(r.alpha,n.alpha,a),Xa.transform(i))},DS=new Set(["none","hidden"]);function _fe(t,e){return DS.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}function Nfe(t,e){return r=>Qe(t,e,r)}function Zk(t){return typeof t=="number"?Nfe:typeof t=="string"?Xk(t)?sm:jt.test(t)?BM:Ife:Array.isArray(t)?Fz:typeof t=="object"?jt.test(t)?BM:Ofe:sm}function Fz(t,e){const r=[...t],n=r.length,i=t.map((a,o)=>Zk(a)(a,e[o]));return a=>{for(let o=0;o<n;o++)r[o]=i[o](a);return r}}function Ofe(t,e){const r={...t,...e},n={};for(const i in r)t[i]!==void 0&&e[i]!==void 0&&(n[i]=Zk(t[i])(t[i],e[i]));return i=>{for(const a in n)r[a]=n[a](i);return r}}function Cfe(t,e){const r=[],n={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const a=e.types[i],o=t.indexes[a][n[a]],l=t.values[o]??0;r[i]=l,n[a]++}return r}const Ife=(t,e)=>{const r=Sn.createTransformer(e),n=Us(t),i=Us(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?DS.has(t)&&!i.values.length||DS.has(e)&&!n.values.length?_fe(t,e):Uu(Fz(Cfe(n,i),i.values),r):sm(t,e)};function Bz(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?Qe(t,e,r):Zk(t)(t,e)}const Rfe=t=>{const e=({timestamp:r})=>t(r);return{start:(r=!0)=>et.update(e,r),stop:()=>fa(e),now:()=>Gt.isProcessing?Gt.timestamp:sr.now()}},zz=(t,e,r=10)=>{let n="";const i=Math.max(Math.round(e/r),2);for(let a=0;a<i;a++)n+=Math.round(t(a/(i-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},lm=2e4;function ej(t){let e=0;const r=50;let n=t.next(e);for(;!n.done&&e<lm;)e+=r,n=t.next(e);return e>=lm?1/0:e}function Mfe(t,e=100,r){const n=r({...t,keyframes:[0,e]}),i=Math.min(ej(n),lm);return{type:"keyframes",ease:a=>n.next(i*a).value/e,duration:Ur(i)}}const gt={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};function $S(t,e){return t*Math.sqrt(1-e*e)}const Lfe=12;function Dfe(t,e,r){let n=r;for(let i=1;i<Lfe;i++)n=n-t(n)/e(n);return n}const M0=.001;function $fe({duration:t=gt.duration,bounce:e=gt.bounce,velocity:r=gt.velocity,mass:n=gt.mass}){let i,a,o=1-e;o=qn(gt.minDamping,gt.maxDamping,o),t=qn(gt.minDuration,gt.maxDuration,Ur(t)),o<1?(i=d=>{const h=d*o,m=h*t,g=h-r,v=$S(d,o),b=Math.exp(-m);return M0-g/v*b},a=d=>{const m=d*o*t,g=m*r+r,v=Math.pow(o,2)*Math.pow(d,2)*t,b=Math.exp(-m),w=$S(Math.pow(d,2),o);return(-i(d)+M0>0?-1:1)*((g-v)*b)/w}):(i=d=>{const h=Math.exp(-d*t),m=(d-r)*t+1;return-M0+h*m},a=d=>{const h=Math.exp(-d*t),m=(r-d)*(t*t);return h*m});const l=5/t,u=Dfe(i,a,l);if(t=Cr(t),isNaN(u))return{stiffness:gt.stiffness,damping:gt.damping,duration:t};{const d=Math.pow(u,2)*n;return{stiffness:d,damping:o*2*Math.sqrt(n*d),duration:t}}}const Ffe=["duration","bounce"],Bfe=["stiffness","damping","mass"];function zM(t,e){return e.some(r=>t[r]!==void 0)}function zfe(t){let e={velocity:gt.velocity,stiffness:gt.stiffness,damping:gt.damping,mass:gt.mass,isResolvedFromDuration:!1,...t};if(!zM(t,Bfe)&&zM(t,Ffe))if(e.velocity=0,t.visualDuration){const r=t.visualDuration,n=2*Math.PI/(r*1.2),i=n*n,a=2*qn(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:gt.mass,stiffness:i,damping:a}}else{const r=$fe({...t,velocity:0});e={...e,...r,mass:gt.mass},e.isResolvedFromDuration=!0}return e}function cm(t=gt.visualDuration,e=gt.bounce){const r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:n,restDelta:i}=r;const a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:v}=zfe({...r,velocity:-Ur(r.velocity||0)}),b=g||0,w=d/(2*Math.sqrt(u*h)),x=o-a,k=Ur(Math.sqrt(u/h)),P=Math.abs(x)<5;n||(n=P?gt.restSpeed.granular:gt.restSpeed.default),i||(i=P?gt.restDelta.granular:gt.restDelta.default);let A,E,T,_,O,I;if(w<1)T=$S(k,w),_=(b+w*k*x)/T,A=D=>{const F=Math.exp(-w*k*D);return o-F*(_*Math.sin(T*D)+x*Math.cos(T*D))},O=w*k*_+x*T,I=w*k*x-_*T,E=D=>Math.exp(-w*k*D)*(O*Math.sin(T*D)+I*Math.cos(T*D));else if(w===1){A=F=>o-Math.exp(-k*F)*(x+(b+k*x)*F);const D=b+k*x;E=F=>Math.exp(-k*F)*(k*D*F-b)}else{const D=k*Math.sqrt(w*w-1);A=Y=>{const z=Math.exp(-w*k*Y),K=Math.min(D*Y,300);return o-z*((b+w*k*x)*Math.sinh(K)+D*x*Math.cosh(K))/D};const F=(b+w*k*x)/D,B=w*k*F-x*D,G=w*k*x-F*D;E=Y=>{const z=Math.exp(-w*k*Y),K=Math.min(D*Y,300);return z*(B*Math.sinh(K)+G*Math.cosh(K))}}const R={calculatedDuration:v&&m||null,velocity:D=>Cr(E(D)),next:D=>{if(!v&&w<1){const B=Math.exp(-w*k*D),G=Math.sin(T*D),Y=Math.cos(T*D),z=o-B*(_*G+x*Y),K=Cr(B*(O*G+I*Y));return l.done=Math.abs(K)<=n&&Math.abs(o-z)<=i,l.value=l.done?o:z,l}const F=A(D);if(v)l.done=D>=m;else{const B=Cr(E(D));l.done=Math.abs(B)<=n&&Math.abs(o-F)<=i}return l.value=l.done?o:F,l},toString:()=>{const D=Math.min(ej(R),lm),F=zz(B=>R.next(D*B).value,D,30);return D+"ms "+F},toTransition:()=>{}};return R}cm.applyToOptions=t=>{const e=Mfe(t,100,cm);return t.ease=e.ease,t.duration=Cr(e.duration),t.type="keyframes",t};const Vfe=5;function Vz(t,e,r){const n=Math.max(e-Vfe,0);return wz(r-t(n),e-n)}function FS({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:l,max:u,restDelta:d=.5,restSpeed:h}){const m=t[0],g={done:!1,value:m},v=I=>l!==void 0&&I<l||u!==void 0&&I>u,b=I=>l===void 0?u:u===void 0||Math.abs(l-I)<Math.abs(u-I)?l:u;let w=r*e;const x=m+w,k=o===void 0?x:o(x);k!==x&&(w=k-m);const P=I=>-w*Math.exp(-I/n),A=I=>k+P(I),E=I=>{const R=P(I),D=A(I);g.done=Math.abs(R)<=d,g.value=g.done?k:D};let T,_;const O=I=>{v(g.value)&&(T=I,_=cm({keyframes:[g.value,b(g.value)],velocity:Vz(A,I,g.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return O(0),{calculatedDuration:null,next:I=>{let R=!1;return!_&&T===void 0&&(R=!0,E(I),O(I)),T!==void 0&&I>=T?_.next(I-T):(!R&&E(I),g)}}}function Ufe(t,e,r){const n=[],i=r||da.mix||Bz,a=t.length-1;for(let o=0;o<a;o++){let l=i(t[o],t[o+1]);if(e){const u=Array.isArray(e)?e[o]||Kr:e;l=Uu(u,l)}n.push(l)}return n}function Wfe(t,e,{clamp:r=!0,ease:n,mixer:i}={}){const a=t.length;if(qk(a===e.length),a===1)return()=>e[0];if(a===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=Ufe(e,n,i),u=l.length,d=h=>{if(o&&h<t[0])return e[0];let m=0;if(u>1)for(;m<t.length-2&&!(h<t[m+1]);m++);const g=yu(t[m],t[m+1],h);return l[m](g)};return r?h=>d(qn(t[0],t[a-1],h)):d}function Hfe(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const i=yu(0,e,n);t.push(Qe(r,1,i))}}function qfe(t){const e=[0];return Hfe(e,t.length-1),e}function Gfe(t,e){return t.map(r=>r*e)}function Kfe(t,e){return t.map(()=>e||Nz).splice(0,t.length-1)}function Sc({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){const i=rfe(n)?n.map(MM):MM(n),a={done:!1,value:e[0]},o=Gfe(r&&r.length===e.length?r:qfe(e),t),l=Wfe(o,e,{ease:Array.isArray(i)?i:Kfe(e,i)});return{calculatedDuration:t,next:u=>(a.value=l(u),a.done=u>=t,a)}}const Yfe=t=>t!==null;function dp(t,{repeat:e,repeatType:r="loop"},n,i=1){const a=t.filter(Yfe),l=i<0||e&&r!=="loop"&&e%2===1?0:a.length-1;return!l||n===void 0?a[l]:n}const Xfe={decay:FS,inertia:FS,tween:Sc,keyframes:Sc,spring:cm};function Uz(t){typeof t.type=="string"&&(t.type=Xfe[t.type])}class tj{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,r){return this.finished.then(e,r)}}const Jfe=t=>t/100;class um extends tj{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var n,i;const{motionValue:r}=this.options;r&&r.updatedAt!==sr.now()&&this.tick(sr.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(n=this.options).onStop)==null||i.call(n))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Uz(e);const{type:r=Sc,repeat:n=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=e;let{keyframes:l}=e;const u=r||Sc;u!==Sc&&typeof l[0]!="number"&&(this.mixKeyframes=Uu(Jfe,Bz(l[0],l[1])),l=[0,100]);const d=u({...e,keyframes:l});a==="mirror"&&(this.mirroredGenerator=u({...e,keyframes:[...l].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=ej(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=d}updateTime(e){const r=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(e,r=!1){const{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:u}=this;if(this.startTime===null)return n.next(0);const{delay:d=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:v,type:b,onUpdate:w,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),r?this.currentTime=e:this.updateTime(e);const k=this.currentTime-d*(this.playbackSpeed>=0?1:-1),P=this.playbackSpeed>=0?k<0:k>i;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let A=this.currentTime,E=n;if(m){const I=Math.min(this.currentTime,i)/l;let R=Math.floor(I),D=I%1;!D&&I>=1&&(D=1),D===1&&R--,R=Math.min(R,m+1),!!(R%2)&&(g==="reverse"?(D=1-D,v&&(D-=v/l)):g==="mirror"&&(E=o)),A=qn(0,1,D)*l}let T;P?(this.delayState.value=h[0],T=this.delayState):T=E.next(A),a&&!P&&(T.value=a(T.value));let{done:_}=T;!P&&u!==null&&(_=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return O&&b!==FS&&(T.value=dp(h,this.options,x,this.speed)),w&&w(T.value),O&&this.finish(),T}then(e,r){return this.finished.then(e,r)}get duration(){return Ur(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Ur(e)}get time(){return Ur(this.currentTime)}set time(e){e=Cr(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const r=this.generator.next(e).value;return Vz(n=>this.generator.next(n).value,e,r)}get speed(){return this.playbackSpeed}set speed(e){const r=this.playbackSpeed!==e;r&&this.driver&&this.updateTime(sr.now()),this.playbackSpeed=e,r&&this.driver&&(this.time=Ur(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:e=Rfe,startTime:r}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),(a=(i=this.options).onPlay)==null||a.call(i);const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(sr.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,r;this.notifyFinished(),this.teardown(),this.state="finished",(r=(e=this.options).onComplete)==null||r.call(e)}cancel(){var e,r;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(r=(e=this.options).onCancel)==null||r.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var r;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(r=this.driver)==null||r.stop(),e.observe(this)}}function Qfe(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Ja=t=>t*180/Math.PI,BS=t=>{const e=Ja(Math.atan2(t[1],t[0]));return zS(e)},Zfe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:BS,rotateZ:BS,skewX:t=>Ja(Math.atan(t[1])),skewY:t=>Ja(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},zS=t=>(t=t%360,t<0&&(t+=360),t),VM=BS,UM=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),WM=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ehe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:UM,scaleY:WM,scale:t=>(UM(t)+WM(t))/2,rotateX:t=>zS(Ja(Math.atan2(t[6],t[5]))),rotateY:t=>zS(Ja(Math.atan2(-t[2],t[0]))),rotateZ:VM,rotate:VM,skewX:t=>Ja(Math.atan(t[4])),skewY:t=>Ja(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function VS(t){return t.includes("scale")?1:0}function US(t,e){if(!t||t==="none")return VS(e);const r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(r)n=ehe,i=r;else{const l=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Zfe,i=l}if(!i)return VS(e);const a=n[e],o=i[1].split(",").map(rhe);return typeof a=="function"?a(o):o[a]}const the=(t,e)=>{const{transform:r="none"}=getComputedStyle(t);return US(r,e)};function rhe(t){return parseFloat(t.trim())}const il=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],al=new Set([...il,"pathRotation"]),HM=t=>t===nl||t===ge,nhe=new Set(["x","y","z"]),ihe=il.filter(t=>!nhe.has(t));function ahe(t){const e=[];return ihe.forEach(r=>{const n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e}const sa={width:({x:t},{paddingLeft:e="0",paddingRight:r="0",boxSizing:n})=>{const i=t.max-t.min;return n==="border-box"?i:i-parseFloat(e)-parseFloat(r)},height:({y:t},{paddingTop:e="0",paddingBottom:r="0",boxSizing:n})=>{const i=t.max-t.min;return n==="border-box"?i:i-parseFloat(e)-parseFloat(r)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>US(e,"x"),y:(t,{transform:e})=>US(e,"y")};sa.translateX=sa.x;sa.translateY=sa.y;const ro=new Set;let WS=!1,HS=!1,qS=!1;function Wz(){if(HS){const t=Array.from(ro).filter(n=>n.needsMeasurement),e=new Set(t.map(n=>n.element)),r=new Map;e.forEach(n=>{const i=ahe(n);i.length&&(r.set(n,i),n.render())}),t.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();const i=r.get(n);i&&i.forEach(([a,o])=>{var l;(l=n.getValue(a))==null||l.set(o)})}),t.forEach(n=>n.measureEndState()),t.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}HS=!1,WS=!1,ro.forEach(t=>t.complete(qS)),ro.clear()}function Hz(){ro.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(HS=!0)})}function ohe(){qS=!0,Hz(),Wz(),qS=!1}class rj{constructor(e,r,n,i,a,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=r,this.name=n,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ro.add(this),WS||(WS=!0,et.read(Hz),et.resolveKeyframes(Wz))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:r,element:n,motionValue:i}=this;if(e[0]===null){const a=i==null?void 0:i.get(),o=e[e.length-1];if(a!==void 0)e[0]=a;else if(n&&r){const l=n.readValue(r,o);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=o),i&&a===void 0&&i.set(e[0])}Qfe(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ro.delete(this)}cancel(){this.state==="scheduled"&&(ro.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const she=t=>t.startsWith("--");function qz(t,e,r){she(e)?t.style.setProperty(e,r):t.style[e]=r}const lhe={};function Gz(t,e){const r=bz(t);return()=>lhe[e]??r()}const che=Gz(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Kz=Gz(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),uc=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,qM={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:uc([0,.65,.55,1]),circOut:uc([.55,0,1,.45]),backIn:uc([.31,.01,.66,-.59]),backOut:uc([.33,1.53,.69,.99])};function Yz(t,e){if(t)return typeof t=="function"?Kz()?zz(t,e):"ease-out":Oz(t)?uc(t):Array.isArray(t)?t.map(r=>Yz(r,e)||qM.easeOut):qM[t]}function uhe(t,e,r,{delay:n=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:l="easeOut",times:u}={},d=void 0){const h={[e]:r};u&&(h.offset=u);const m=Yz(l,i);Array.isArray(m)&&(h.easing=m);const g={delay:n,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),t.animate(h,g)}function Xz(t){return typeof t=="function"&&"applyToOptions"in t}function dhe({type:t,...e}){return Xz(t)&&Kz()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Jz extends tj{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:r,name:n,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:l,onComplete:u}=e;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=e,qk(typeof e.type!="string");const d=dhe(e);this.animation=uhe(r,n,i,d,a),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=dp(i,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(h),qz(r,n,h),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,r;(r=(e=this.animation).finish)==null||r.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var r,n,i;const e=(r=this.options)==null?void 0:r.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((i=(n=this.animation).commitStyles)==null||i.call(n))}get duration(){var r,n;const e=((n=(r=this.animation.effect)==null?void 0:r.getComputedTiming)==null?void 0:n.call(r).duration)||0;return Ur(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Ur(e)}get time(){return Ur(Number(this.animation.currentTime)||0)}set time(e){const r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Cr(e),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:r,rangeEnd:n,observe:i}){var a;return this.allowFlatten&&((a=this.animation.effect)==null||a.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&che()?(this.animation.timeline=e,r&&(this.animation.rangeStart=r),n&&(this.animation.rangeEnd=n),Kr):i(this)}}const Qz={anticipate:Az,backInOut:Tz,circInOut:_z};function fhe(t){return t in Qz}function hhe(t){typeof t.ease=="string"&&fhe(t.ease)&&(t.ease=Qz[t.ease])}const L0=10;class mhe extends Jz{constructor(e){hhe(e),Uz(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:r,onUpdate:n,onComplete:i,element:a,...o}=this.options;if(!r)return;if(e!==void 0){r.set(e);return}const l=new um({...o,autoplay:!1}),u=Math.max(L0,sr.now()-this.startTime),d=qn(0,L0,u-L0),h=l.sample(u).value,{name:m}=this.options;a&&m&&qz(a,m,h),r.setWithVelocity(l.sample(Math.max(0,u-d)).value,h,d),l.stop()}}const GM=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Sn.test(t)||t==="0")&&!t.startsWith("url("));function phe(t){const e=t[0];if(t.length===1)return!0;for(let r=0;r<t.length;r++)if(t[r]!==e)return!0}function ghe(t,e,r,n){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const a=t[t.length-1],o=GM(i,e),l=GM(a,e);return!o||!l?!1:phe(t)||(r==="spring"||Xz(r))&&n}function GS(t){t.duration=0,t.type="keyframes"}const Zz=new Set(["opacity","clipPath","filter","transform"]),yhe=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function vhe(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&yhe.test(t[e]))return!0;return!1}const xhe=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),bhe=bz(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function whe(t){var m;const{motionValue:e,name:r,repeatDelay:n,repeatType:i,damping:a,type:o,keyframes:l}=t;if(!(((m=e==null?void 0:e.owner)==null?void 0:m.current)instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:h}=e.owner.getProps();return bhe()&&r&&(Zz.has(r)||xhe.has(r)&&vhe(l))&&(r!=="transform"||!h)&&!d&&!n&&i!=="mirror"&&a!==0&&o!=="inertia"}const She=40;class khe extends tj{constructor({autoplay:e=!0,delay:r=0,type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:
1638o="loop",keyframes:l,name:u,motionValue:d,element:h,...m}){var b;super(),this.stop=()=>{var w,x;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=sr.now();const g={autoplay:e,delay:r,type:n,repeat:i,repeatDelay:a,repeatType:o,name:u,motionValue:d,element:h,...m},v=(h==null?void 0:h.KeyframeResolver)||rj;this.keyframeResolver=new v(l,(w,x,k)=>this.onKeyframesResolved(w,x,g,!k),u,d,h),(b=this.keyframeResolver)==null||b.scheduleResolve()}onKeyframesResolved(e,r,n,i){var k,P;this.keyframeResolver=void 0;const{name:a,type:o,velocity:l,delay:u,isHandoff:d,onUpdate:h}=n;this.resolvedAt=sr.now();let m=!0;ghe(e,a,o,l)||(m=!1,(da.instantAnimations||!u)&&(h==null||h(dp(e,n,r))),e[0]=e[e.length-1],GS(n),n.repeat=0);const v={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>She?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:e},b=m&&!d&&whe(v),w=(P=(k=v.motionValue)==null?void 0:k.owner)==null?void 0:P.current;let x;if(b)try{x=new mhe({...v,element:w})}catch{x=new um(v)}else x=new um(v);x.finished.then(()=>{this.notifyFinished()}).catch(Kr),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(e,r){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),ohe()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function e3(t,e,r,n=0,i=1){const a=Array.from(t).sort((d,h)=>d.sortNodePosition(h)).indexOf(e),o=t.size,l=(o-1)*n;return typeof r=="function"?r(a,o):i===1?a*n:l-a*n}const KM=30,jhe=t=>!isNaN(parseFloat(t));class Phe{constructor(e,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{var a;const i=sr.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=r.owner}setCurrent(e){this.current=e,this.updatedAt=sr.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=jhe(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new Gk);const n=this.events[e].add(r);return e==="change"?()=>{n(),et.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,r=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=sr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>KM)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,KM);return wz(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,r;(e=this.dependents)==null||e.clear(),(r=this.events.destroy)==null||r.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ws(t,e){return new Phe(t,e)}function t3(t,e){if(t!=null&&t.inherit&&e){const{inherit:r,...n}=t;return{...e,...n}}return t}function nj(t,e){const r=(t==null?void 0:t[e])??(t==null?void 0:t.default)??t;return r!==t?t3(r,t):r}const The={type:"spring",stiffness:500,damping:25,restSpeed:10},Ahe=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ehe={type:"keyframes",duration:.8},_he={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Nhe=(t,{keyframes:e})=>e.length>2?Ehe:al.has(t)?t.startsWith("scale")?Ahe(e[1]):The:_he,Ohe=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Che(t){for(const e in t)if(!Ohe.has(e))return!0;return!1}const ij=(t,e,r,n={},i,a)=>o=>{const l=nj(n,t)||{},u=l.delay||n.delay||0;let{elapsed:d=0}=n;d=d-Cr(u);const h={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-d,onUpdate:g=>{e.set(g),l.onUpdate&&l.onUpdate(g)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:a?void 0:i};Che(l)||Object.assign(h,Nhe(t,h)),h.duration&&(h.duration=Cr(h.duration)),h.repeatDelay&&(h.repeatDelay=Cr(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(GS(h),h.delay===0&&(m=!0)),(da.instantAnimations||da.skipAnimations||i!=null&&i.shouldSkipAnimations||l.skipAnimations)&&(m=!0,GS(h),h.delay=0),h.allowFlatten=!l.type&&!l.ease,m&&!a&&e.get()!==void 0){const g=dp(h.keyframes,l);if(g!==void 0){et.update(()=>{h.onUpdate(g),h.onComplete()});return}}return l.isSync?new um(h):new khe(h)},Ihe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rhe(t){const e=Ihe.exec(t);if(!e)return[,];const[,r,n,i]=e;return[`--${r??n}`,i]}function r3(t,e,r=1){const[n,i]=Rhe(t);if(!n)return;const a=window.getComputedStyle(e).getPropertyValue(n);if(a){const o=a.trim();return yz(o)?parseFloat(o):o}return Xk(i)?r3(i,e,r+1):i}function YM(t){const e=[{},{}];
vendor: 5,665 bytes, line 1638
1638return t==null||t.values.forEach((r,n)=>{e[0][n]=r.get(),e[1][n]=r.getVelocity()}),e}function aj(t,e,r,n){if(typeof e=="function"){const[i,a]=YM(n);e=e(r!==void 0?r:t.custom,i,a)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,a]=YM(n);e=e(r!==void 0?r:t.custom,i,a)}return e}function no(t,e,r){const n=t.getProps();return aj(n,e,r!==void 0?r:n.custom,t)}const n3=new Set(["width","height","top","left","right","bottom",...il]),KS=t=>Array.isArray(t);function Mhe(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,Ws(r))}function Lhe(t){return KS(t)?t[t.length-1]||0:t}function Dhe(t,e){const r=no(t,e);let{transitionEnd:n={},transition:i={},...a}=r||{};a={...a,...n};for(const o in a){const l=Lhe(a[o]);Mhe(t,o,l)}}const Yt=t=>!!(t&&t.getVelocity);function $he(t){return!!(Yt(t)&&t.add)}function YS(t,e){const r=t.getValue("willChange");if($he(r))return r.add(e);if(!r&&da.WillChange){const n=new da.WillChange("auto");t.addValue("willChange",n),n.add(e)}}function oj(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Fhe="framerAppearId",i3="data-"+oj(Fhe);function a3(t){return t.props[i3]}function Bhe({protectedKeys:t,needsAnimating:e},r){const n=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,n}function o3(t,e,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:a,transitionEnd:o,...l}=e;const u=t.getDefaultTransition();a=a?t3(a,u):u;const d=a==null?void 0:a.reduceMotion,h=a==null?void 0:a.skipAnimations;n&&(a=n);const m=[],g=i&&t.animationState&&t.animationState.getState()[i],v=a==null?void 0:a.path;v&&v.animateVisualElement(t,l,a,r,m);for(const b in l){const w=t.getValue(b,t.latestValues[b]??null),x=l[b];if(x===void 0||g&&Bhe(g,b))continue;const k={delay:r,...nj(a||{},b)};h&&(k.skipAnimations=!0);const P=w.get();if(P!==void 0&&!w.isAnimating()&&!Array.isArray(x)&&x===P&&!k.velocity){et.update(()=>w.set(x));continue}let A=!1;if(window.MotionHandoffAnimation){const _=a3(t);if(_){const O=window.MotionHandoffAnimation(_,b,et);O!==null&&(k.startTime=O,A=!0)}}YS(t,b);const E=d??t.shouldReduceMotion;w.start(ij(b,w,x,E&&n3.has(b)?{type:!1}:k,t,A));const T=w.animation;T&&m.push(T)}if(o){const b=()=>et.update(()=>{o&&Dhe(t,o)});m.length?Promise.all(m).then(b):b()}return m}function XS(t,e,r={}){var u;const n=no(t,e,r.type==="exit"?(u=t.presenceContext)==null?void 0:u.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const a=n?()=>Promise.all(o3(t,n,r)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return zhe(t,e,d,h,m,g,r)}:()=>Promise.resolve(),{when:l}=i;if(l){const[d,h]=l==="beforeChildren"?[a,o]:[o,a];return d().then(()=>h())}else return Promise.all([a(),o(r.delay)])}function zhe(t,e,r=0,n=0,i=0,a=1,o){const l=[];for(const u of t.variantChildren)u.notify("AnimationStart",e),l.push(XS(u,e,{...o,delay:r+(typeof n=="function"?0:n)+e3(t.variantChildren,u,n,i,a)}).then(()=>u.notify("AnimationComplete",e)));return Promise.all(l)}function Vhe(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const i=e.map(a=>XS(t,a,r));n=Promise.all(i)}else if(typeof e=="string")n=XS(t,e,r);else{const i=typeof e=="function"?no(t,e,r.custom):e;n=Promise.all(o3(t,i,r))}return n.then(()=>{t.notify("AnimationComplete",e)})}const Uhe={test:t=>t==="auto",parse:t=>t},s3=t=>e=>e.test(t),l3=[nl,ge,Vn,ii,pfe,mfe,Uhe],XM=t=>l3.find(s3(t));function Whe(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||xz(t):!0}const Hhe=new Set(["brightness","contrast","saturate","opacity"]);function qhe(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(Jk)||[];if(!n)return t;const i=r.replace(n,"");let a=Hhe.has(e)?1:0;return n!==r&&(a*=100),e+"("+a+i+")"}const Ghe=/\b([a-z-]*)\(.*?\)/gu,JS={...Sn,getAnimatableNone:t=>{const e=t.match(Ghe);return e?e.map(qhe).join(" "):t}},QS={...Sn,getAnimatableNone:t=>{const e=Sn.parse(t);return Sn.createTransformer(t)(e.map(n=>typeof n=="number"?0:typeof n=="object"?{...n,alpha:1}:n))}},JM={...nl,transform:Math.round},Khe={rotate:ii,pathRotation:ii,rotateX:ii,rotateY:ii,rotateZ:ii,scale:Nf,scaleX:Nf,scaleY:Nf,scaleZ:Nf,skew:ii,skewX:ii,skewY:ii,distance:ge,translateX:ge,translateY:ge,translateZ:ge,x:ge,y:ge,z:ge,perspective:ge,transformPerspective:ge,opacity:vu,originX:DM,originY:DM,originZ:ge},dm={borderWidth:ge,borderTopWidth:ge,borderRightWidth:ge,borderBottomWidth:ge,borderLeftWidth:ge,borderRadius:ge,borderTopLeftRadius:ge,borderTopRightRadius:ge,borderBottomRightRadius:ge,borderBottomLeftRadius:ge,width:ge,maxWidth:ge,height:ge,maxHeight:ge,top:ge,right:ge,bottom:ge,left:ge,inset:ge,insetBlock:ge,insetBlockStart:ge,insetBlockEnd:ge,insetInline:ge,insetInlineStart:ge,insetInlineEnd:ge,padding:ge,paddingTop:ge,paddingRight:ge,paddingBottom:ge,paddingLeft:ge,paddingBlock:ge,paddingBlockStart:ge,paddingBlockEnd:ge,paddingInline:ge,paddingInlineStart:ge,paddingInlineEnd:ge,margin:ge,marginTop:ge,marginRight:ge,marginBottom:ge,marginLeft:ge,marginBlock:ge,marginBlockStart:ge,marginBlockEnd:ge,marginInline:ge,marginInlineStart:ge,marginInlineEnd:ge,fontSize:ge,backgroundPositionX:ge,backgroundPositionY:ge,...Khe,zIndex:JM,fillOpacity:vu,strokeOpacity:vu,numOctaves:JM},Yhe={...dm,color:jt,backgroundColor:jt,outlineColor:jt,fill:jt,stroke:jt,borderColor:jt,borderTopColor:jt,borderRightColor:jt,borderBottomColor:jt,borderLeftColor:jt,filter:JS,WebkitFilter:JS,mask:QS,WebkitMask:QS},c3=t=>Yhe[t],Xhe=new Set([JS,QS]);function u3(t,e){let r=c3(t);return Xhe.has(r)||(r=Sn),r.getAnimatableNone?r.getAnimatableNone(e):void 0}
vendor: 1,723 bytes, line 1638
1638const Jhe=new Set(["auto","none","0"]);function Qhe(t,e,r){let n=0,i;for(;n<t.length&&!i;){const a=t[n];typeof a=="string"&&!Jhe.has(a)&&Us(a).values.length&&(i=t[n]),n++}if(i&&r)for(const a of e)t[a]=u3(r,i)}class Zhe extends rj{constructor(e,r,n,i,a){super(e,r,n,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let h=0;h<e.length;h++){let m=e[h];if(typeof m=="string"&&(m=m.trim(),Xk(m))){const g=r3(m,r.current);g!==void 0&&(e[h]=g),h===e.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!n3.has(n)||e.length!==2)return;const[i,a]=e,o=XM(i),l=XM(a),u=LM(i),d=LM(a);if(u!==d&&sa[n]){this.needsMeasurement=!0;return}if(o!==l)if(HM(o)&&HM(l))for(let h=0;h<e.length;h++){const m=e[h];typeof m=="string"&&(e[h]=parseFloat(m))}else sa[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:r}=this,n=[];for(let i=0;i<e.length;i++)(e[i]===null||Whe(e[i]))&&n.push(i);n.length&&Qhe(e,n,r)}measureInitialState(){const{element:e,unresolvedKeyframes:r,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=sa[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r[0]=this.measuredOrigin;const i=r[r.length-1];i!==void 0&&e.getValue(n,i).jump(i,!1)}measureEndState(){var l;const{element:e,name:r,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const i=e.getValue(r);i&&i.jump(this.measuredOrigin,!1);const a=n.length-1,o=n[a];n[a]=sa[r](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEac
vendor: 17,587 bytes, line 1638
1638h(([u,d])=>{e.getValue(u).set(d)}),this.resolveNoneKeyframes()}}function d3(t,e,r){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let n=document;const i=(r==null?void 0:r[t])??n.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(n=>n!=null)}const ZS=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function eme(t){return vz(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:sj}=Cz(queueMicrotask,!1),fn={x:!1,y:!1};function f3(){return fn.x||fn.y}function tme(t){return t==="x"||t==="y"?fn[t]?null:(fn[t]=!0,()=>{fn[t]=!1}):fn.x||fn.y?null:(fn.x=fn.y=!0,()=>{fn.x=fn.y=!1})}function h3(t,e){const r=d3(t),n=new AbortController,i={passive:!0,...e,signal:n.signal};return[r,i,()=>n.abort()]}function rme(t){return!(t.pointerType==="touch"||f3())}function nme(t,e,r={}){const[n,i,a]=h3(t,r);return n.forEach(o=>{let l=!1,u=!1,d;const h=()=>{o.removeEventListener("pointerleave",b)},m=x=>{d&&(d(x),d=void 0),h()},g=x=>{l=!1,window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g),u&&(u=!1,m(x))},v=()=>{l=!0,window.addEventListener("pointerup",g,i),window.addEventListener("pointercancel",g,i)},b=x=>{if(x.pointerType!=="touch"){if(l){u=!0;return}m(x)}},w=x=>{if(!rme(x))return;u=!1;const k=e(o,x);typeof k=="function"&&(d=k,o.addEventListener("pointerleave",b,i))};o.addEventListener("pointerenter",w,i),o.addEventListener("pointerdown",v,i)}),a}const m3=(t,e)=>e?t===e?!0:m3(t,e.parentElement):!1,lj=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,ime=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ame(t){return ime.has(t.tagName)||t.isContentEditable===!0}const ome=new Set(["INPUT","SELECT","TEXTAREA"]);function sme(t){return ome.has(t.tagName)||t.isContentEditable===!0}const zf=new WeakSet;function QM(t){return e=>{e.key==="Enter"&&t(e)}}function D0(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const lme=(t,e)=>{const r=t.currentTarget;if(!r)return;const n=QM(()=>{if(zf.has(r))return;D0(r,"down");const i=QM(()=>{D0(r,"up")}),a=()=>D0(r,"cancel");r.addEventListener("keyup",i,e),r.addEventListener("blur",a,e)});r.addEventListener("keydown",n,e),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),e)};function ZM(t){return lj(t)&&!f3()}const eL=new WeakSet;function cme(t,e,r={}){const[n,i,a]=h3(t,r),o=l=>{const u=l.currentTarget;if(!ZM(l)||eL.has(l))return;zf.add(u),r.stopPropagation&&eL.add(l);const d=e(u,l),h=(v,b)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),zf.has(u)&&zf.delete(u),ZM(v)&&typeof d=="function"&&d(v,{success:b})},m=v=>{h(v,u===window||u===document||r.useGlobalTarget||m3(u,v.target))},g=v=>{h(v,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return n.forEach(l=>{(r.useGlobalTarget?window:l).addEventListener("pointerdown",o,i),eme(l)&&(l.addEventListener("focus",d=>lme(d,i)),!ame(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),a}function cj(t){return vz(t)&&"ownerSVGElement"in t}const Vf=new WeakMap;let Zi;const p3=(t,e,r)=>(n,i)=>i&&i[0]?i[0][t+"Size"]:cj(n)&&"getBBox"in n?n.getBBox()[e]:n[r],ume=p3("inline","width","offsetWidth"),dme=p3("block","height","offsetHeight");function fme({target:t,borderBoxSize:e}){var r;(r=Vf.get(t))==null||r.forEach(n=>{n(t,{get width(){return ume(t,e)},get height(){return dme(t,e)}})})}function hme(t){t.forEach(fme)}function mme(){typeof ResizeObserver>"u"||(Zi=new ResizeObserver(hme))}function pme(t,e){Zi||mme();const r=d3(t);return r.forEach(n=>{let i=Vf.get(n);i||(i=new Set,Vf.set(n,i)),i.add(e),Zi==null||Zi.observe(n)}),()=>{r.forEach(n=>{const i=Vf.get(n);i==null||i.delete(e),i!=null&&i.size||Zi==null||Zi.unobserve(n)})}}const Uf=new Set;let es;function gme(){es=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Uf.forEach(e=>e(t))},window.addEventListener("resize",es)}function yme(t){return Uf.add(t),es||gme(),()=>{Uf.delete(t),!Uf.size&&typeof es=="function"&&(window.removeEventListener("resize",es),es=void 0)}}function tL(t,e){return typeof t=="function"?yme(t):pme(t,e)}function vme(t){return cj(t)&&t.tagName==="svg"}const xme=[...l3,jt,Sn],bme=t=>xme.find(s3(t)),rL=()=>({translate:0,scale:1,origin:0,originPoint:0}),ts=()=>({x:rL(),y:rL()}),nL=()=>({min:0,max:0}),Ct=()=>({x:nL(),y:nL()}),wme=new WeakMap;function fp(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function xu(t){return typeof t=="string"||Array.isArray(t)}const uj=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],dj=["initial",...uj];function hp(t){return fp(t.animate)||dj.some(e=>xu(t[e]))}function g3(t){return!!(hp(t)||t.variants)}function Sme(t,e,r){for(const n in e){const i=e[n],a=r[n];if(Yt(i))t.addValue(n,i);else if(Yt(a))t.addValue(n,Ws(i,{owner:t}));else if(a!==i)if(t.hasValue(n)){const o=t.getValue(n);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(n);t.addValue(n,Ws(o!==void 0?o:i,{owner:t}))}}for(const n in r)e[n]===void 0&&t.removeValue(n);return e}const e1={current:null},y3={current:!1},kme=typeof window<"u";function jme(){if(y3.current=!0,!!kme)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>e1.current=t.matches;t.addEventListener("change",e),e()}else e1.current=!1}const iL=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let fm={};function v3(t){fm=t}function Pme(){return fm}class Tme{scrapeMotionValuesFromProps(e,r,n){return{}}constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:i,skipAnimations:a,blockInitialAnimation:o,visualState:l},u={}){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=rj,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 v=sr.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,et.render(this.render,!1,!0))};const{latestValues:d,renderState:h}=l;this.latestValues=d,this.baseTarget={...d},this.initialValues=r.initial?{...d}:{},this.renderState=h,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=a,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=hp(r),this.isVariantNode=g3(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(r,{},this);for(const v in g){const b=g[v];d[v]!==void 0&&Yt(b)&&b.set(d[v])}}mount(e){var r,n;if(this.hasBeenMounted)for(const i in this.initialValues)(r=this.values.get(i))==null||r.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=e,wme.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,a)=>this.bindToMotionValue(a,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(y3.current||jme(),this.shouldReduceMotion=e1.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),fa(this.notifyUpdate),fa(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const n=this.features[r];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,r){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),r.accelerate&&Zz.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:l,times:u,ease:d,duration:h}=r.accelerate,m=new Jz({element:this.current,name:e,keyframes:l,times:u,ease:d,duration:Cr(h)}),g=o(m);this.valueSubscriptions.set(e,()=>{g(),m.cancel()});return}const n=al.has(e);n&&this.onBindTransform&&this.onBindTransform();const i=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&et.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;typeof window<"u"&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,r)),this.valueSubscriptions.set(e,()=>{i(),a&&a()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in fm){const r=fm[e];if(!r)continue;const{isEnabled:n,Feature:i}=r;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){const a=this.features[e];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ct()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<iL.length;n++){const i=iL[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=e[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Sme(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(e),()=>r.variantChildren.delete(e)}addValue(e,r){const n=this.values.get(e);r!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,r),this.values.set(e,r),this.latestValues[e]=r.get())}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=Ws(r===null?void 0:r,{owner:this}),this.addValue(e,n)),n}readValue(e,r){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n=="string"&&(yz(n)||xz(n))?n=parseFloat(n):!bme(n)&&Sn.test(r)&&(n=u3(e,r)),this.setBaseTarget(e,Yt(n)?n.get():n)),Yt(n)?n.get():n}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var a;const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const o=aj(this.props,r,(a=this.presenceContext)==null?void 0:a.custom);o&&(n=o[e])}if(r&&n!==void 0)return n;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!Yt(i)?i:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new Gk),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}scheduleRenderMicrotask(){sj.render(this.render)}}class x3 extends Tme{constructor(){super(...arguments),this.KeyframeResolver=Zhe}sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){const n=e.style;return n?n[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Yt(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class xa{constructor(e){this.isMounted=!1,this.node=e}update(){}}function b3({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function Ame({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Eme(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function $0(t){return t===void 0||t===1}function t1({scale:t,scaleX:e,scaleY:r}){return!$0(t)||!$0(e)||!$0(r)}function Ua(t){return t1(t)||w3(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function w3(t){return aL(t.x)||aL(t.y)}function aL(t){return t&&t!=="0%"}function hm(t,e,r){const n=t-r,i=e*n;return r+i}function oL(t,e,r,n,i){return i!==void 0&&(t=hm(t,i,n)),hm(t,r,n)+e}function r1(t,e=0,r=1,n,i){t.min=oL(t.min,e,r,n,i),t.max=oL(t.max,e,r,n,i)}function S3(t,{x:e,y:r}){r1(t.x,e.translate,e.scale,e.originPoint),r1(t.y,r.translate,r.scale,r.originPoint)}const sL=.999999999999,lL=1.0000000000001;function _me(t,e,r,n=!1){var l;const i=r.length;if(!i)return;e.x=e.y=1;let a,o;for(let u=0;u<i;u++){a=r[u],o=a.projectionDelta;const{visualElement:d}=a.options;d&&d.props.style&&d.props.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(In(t.x,-a.scroll.offset.x),In(t.y,-a.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,S3(t,o)),n&&Ua(a.latestValues)&&Wf(t,a.latestValues,(l=a.layout)==null?void 0:l.layoutBox))}e.x<lL&&e.x>sL&&(e.x=1),e.y<lL&&e.y>sL&&(e.y=1)}function In(t,e){t.min+=e,t.max+=e}function cL(t,e,r,n,i=.5){const a=Qe(t.min,t.max,i);r1(t,e,r,a,n)}function uL(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Wf(t,e,r){const n=r??t;cL(t.x,uL(e.x,n.x),e.scaleX,e.scale,e.originX),cL(t.y,uL(e.y,n.y),e.scaleY,e.scale,e.originY)}function k3(t,e){return b3(Eme(t.getBoundingClientRect(),e))}function Nme(t,e,r){const n=k3(t,r),{scroll:i}=e;return i&&(In(n.x,i.offset.x),In(n.y,i.offset.y)),n}const Ome={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Cme=il.length;function Ime(t,e,r){let n="",i=!0;for(let o=0;o<Cme;o++){const l=il[o],u=t[l];if(u===void 0)continue;let d=!0;if(typeof u=="number")d=u===(l.startsWith("scale")?1:0);else{const h=parseFloat(u);d=l.startsWith("scale")?h===1:h===0}if(!d||r){const h=ZS(u,dm[l]);if(!d){i=!1;const m=Ome[l]||l;n+=`${m}(${h}) `}r&&(e[l]=h)}}const a=t.pathRotation;return a&&(i=!1,n+=`rotate(${ZS(a,dm.pathRotation)}) `),n=n.trim(),r?n=r(e,i?"":n):i&&(n="none"),n}function fj(t,e,r){const{style:n,vars:i,transformOrigin:a}=t;let o=!1,l=!1;for(const u in e){const d=e[u];if(al.has(u)){o=!0;continue}else if(Rz(u)){i[u]=d;continue}else{const h=ZS(d,dm[u]);u.startsWith("origin")?(l=!0,a[u]=h):n[u]=h}}if(e.transform||(o||r?n.transform=Ime(e,t.transform,r):n.transform&&(n.transform="none")),l){const{originX:u="50%",originY:d="50%",originZ:h=0}=a;n.transformOrigin=`${u} ${d} ${h}`}}function j3(t,{style:e,vars:r},n,i){const a=t.style;let o;for(o in e)a[o]=e[o];i==null||i.applyProjectionStyles(a,n);for(o in r)a.setProperty(o,r[o])}function dL(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const oc={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(ge.test(t))t=parseFloat(t);else return t;const r=dL(t,e.target.x),n=dL(t,e.target.y);return`${r}% ${n}%`}},Rme={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,i=Sn.parse(t);if(i.length>5)return n;const a=Sn.createTransformer(t),o=typeof i[0]!="number"?1:0,l=r.x.scale*e.x,u=r.y.scale*e.y;i[0+o]/=l,i[1+o]/=u;const d=Qe(l,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=d),typeof i[3+o]=="number"&&(i[3+o]/=d),a(i)}},n1={borderRadius:{...oc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:oc,borderTopRightRadius:oc,borderBottomLeftRadius:oc,borderBottomRightRadius:oc,boxShadow:Rme};function P3(t,{layout:e,layoutId:r}){return al.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!n1[t]||t==="opacity")}function hj(t,e,r){var o;const n=t.style,i=e==null?void 0:e.style,a={};if(!n)return a;for(const l in n)(Yt(n[l])||i&&Yt(i[l])||P3(l,t)||((o=r==null?void 0:r.getValue(l))==null?void 0:o.liveStyle)!==void 0)&&(a[l]=n[l]);return a}function Mme(t){return window.getComputedStyle(t)}class Lme extends x3{constructor(){super(...arguments),this.type="html",this.renderInstance=j3}readValueFromInstance(e,r){var n;if(al.has(r))return(n=this.projection)!=null&&n.isProjecting?VS(r):the(e,r);{const i=Mme(e),a=(Rz(r)?i.getPropertyValue(r):i[r])||0;
vendor: 2,166 bytes, line 1638
1638return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(e,{transformPagePoint:r}){return k3(e,r)}build(e,r,n){fj(e,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,r,n){return hj(e,r,n)}}const Dme={offset:"stroke-dashoffset",array:"stroke-dasharray"},$me={offset:"strokeDashoffset",array:"strokeDasharray"};function Fme(t,e,r=1,n=0,i=!0){t.pathLength=1;const a=i?Dme:$me;t[a.offset]=`${-n}`,t[a.array]=`${e} ${r}`}const Bme=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function T3(t,{attrX:e,attrY:r,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...l},u,d,h){if(fj(t,l,d),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:m,style:g}=t;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox);for(const v of Bme)m[v]!==void 0&&(g[v]=m[v],delete m[v]);e!==void 0&&(m.x=e),r!==void 0&&(m.y=r),n!==void 0&&(m.scale=n),i!==void 0&&Fme(m,i,a,o,!1)}const A3=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"]),E3=t=>typeof t=="string"&&t.toLowerCase()==="svg";function zme(t,e,r,n){j3(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(A3.has(i)?i:oj(i),e.attrs[i])}function _3(t,e,r){const n=hj(t,e,r);for(const i in t)if(Yt(t[i])||Yt(e[i])){const a=il.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[a]=t[i]}return n}class Vme extends x3{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ct}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(al.has(r)){const n=c3(r);return n&&n.default||0}return r=A3.has(r)?r:oj(r),e.getAttribute(r)}scrapeMotionValuesFromProps(e,r,n){return _3(e,r,n)}
vendor: 21,375 bytes, line 1638
1638build(e,r,n){T3(e,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,r,n,i){zme(e,r,n,i)}mount(e){this.isSVGTag=E3(e.tagName),super.mount(e)}}const Ume=dj.length;function N3(t){if(!t)return;if(!t.isControllingVariants){const r=t.parent?N3(t.parent)||{}:{};return t.props.initial!==void 0&&(r.initial=t.props.initial),r}const e={};for(let r=0;r<Ume;r++){const n=dj[r],i=t.props[n];(xu(i)||i===!1)&&(e[n]=i)}return e}function O3(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}const Wme=[...uj].reverse(),Hme=uj.length;function qme(t){return e=>Promise.all(e.map(({animation:r,options:n})=>Vhe(t,r,n)))}function Gme(t){let e=qme(t),r=fL(),n=!0,i=!1;const a=d=>(h,m)=>{var v;const g=no(t,m,d==="exit"?(v=t.presenceContext)==null?void 0:v.custom:void 0);if(g){const{transition:b,transitionEnd:w,...x}=g;h={...h,...x,...w}}return h};function o(d){e=d(t)}function l(d){const{props:h}=t,m=N3(t.parent)||{},g=[],v=new Set;let b={},w=1/0;for(let k=0;k<Hme;k++){const P=Wme[k],A=r[P],E=h[P]!==void 0?h[P]:m[P],T=xu(E),_=P===d?A.isActive:null;_===!1&&(w=k);let O=E===m[P]&&E!==h[P]&&T;if(O&&(n||i)&&t.manuallyAnimateOnMount&&(O=!1),A.protectedKeys={...b},!A.isActive&&_===null||!E&&!A.prevProp||fp(E)||typeof E=="boolean")continue;if(P==="exit"&&A.isActive&&_!==!0){A.prevResolvedValues&&(b={...b,...A.prevResolvedValues});continue}const I=Kme(A.prevProp,E);let R=I||P===d&&A.isActive&&!O&&T||k>w&&T,D=!1;const F=Array.isArray(E)?E:[E];let B=F.reduce(a(P),{});_===!1&&(B={});const{prevResolvedValues:G={}}=A,Y={...G,...B},z=q=>{R=!0,v.has(q)&&(D=!0,v.delete(q)),A.needsAnimating[q]=!0;const Z=t.getValue(q);Z&&(Z.liveStyle=!1)};for(const q in Y){const Z=B[q],ee=G[q];if(b.hasOwnProperty(q))continue;let L=!1;KS(Z)&&KS(ee)?L=!O3(Z,ee)||I:L=Z!==ee,L?Z!=null?z(q):v.add(q):Z!==void 0&&v.has(q)?z(q):A.protectedKeys[q]=!0}A.prevProp=E,A.prevResolvedValues=B,A.isActive&&(b={...b,...B}),(n||i)&&t.blockInitialAnimation&&(R=!1);const K=O&&I;R&&(!K||D)&&g.push(...F.map(q=>{const Z={type:P};if(typeof q=="string"&&(n||i)&&!K&&t.manuallyAnimateOnMount&&t.parent){const{parent:ee}=t,L=no(ee,q);if(ee.enteringChildren&&L){const{delayChildren:W}=L.transition||{};Z.delay=e3(ee.enteringChildren,t,W)}}return{animation:q,options:Z}}))}if(v.size){const k={};if(typeof h.initial!="boolean"){const P=no(t,Array.isArray(h.initial)?h.initial[0]:h.initial);P&&P.transition&&(k.transition=P.transition)}v.forEach(P=>{const A=t.getBaseTarget(P),E=t.getValue(P);E&&(E.liveStyle=!0),k[P]=A??null}),g.push({animation:k})}let x=!!g.length;return n&&(h.initial===!1||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(x=!1),n=!1,i=!1,x?e(g):Promise.resolve()}function u(d,h){var g;if(r[d].isActive===h)return Promise.resolve();(g=t.variantChildren)==null||g.forEach(v=>{var b;return(b=v.animationState)==null?void 0:b.setActive(d,h)}),r[d].isActive=h;const m=l(d);for(const v in r)r[v].protectedKeys={};return m}return{animateChanges:l,setActive:u,setAnimateFunction:o,getState:()=>r,reset:()=>{r=fL(),i=!0}}}function Kme(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!O3(e,t):!1}function $a(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fL(){return{animate:$a(!0),whileInView:$a(),whileHover:$a(),whileTap:$a(),whileDrag:$a(),whileFocus:$a(),exit:$a()}}function i1(t,e){t.min=e.min,t.max=e.max}function un(t,e){i1(t.x,e.x),i1(t.y,e.y)}function hL(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const C3=1e-4,Yme=1-C3,Xme=1+C3,I3=.01,Jme=0-I3,Qme=0+I3;function lr(t){return t.max-t.min}function Zme(t,e,r){return Math.abs(t-e)<=r}function mL(t,e,r,n=.5){t.origin=n,t.originPoint=Qe(e.min,e.max,t.origin),t.scale=lr(r)/lr(e),t.translate=Qe(r.min,r.max,t.origin)-t.originPoint,(t.scale>=Yme&&t.scale<=Xme||isNaN(t.scale))&&(t.scale=1),(t.translate>=Jme&&t.translate<=Qme||isNaN(t.translate))&&(t.translate=0)}function kc(t,e,r,n){mL(t.x,e.x,r.x,n?n.originX:void 0),mL(t.y,e.y,r.y,n?n.originY:void 0)}function pL(t,e,r,n=0){const i=n?Qe(r.min,r.max,n):r.min;t.min=i+e.min,t.max=t.min+lr(e)}function epe(t,e,r,n){pL(t.x,e.x,r.x,n==null?void 0:n.x),pL(t.y,e.y,r.y,n==null?void 0:n.y)}function gL(t,e,r,n=0){const i=n?Qe(r.min,r.max,n):r.min;t.min=e.min-i,t.max=t.min+lr(e)}function mm(t,e,r,n){gL(t.x,e.x,r.x,n==null?void 0:n.x),gL(t.y,e.y,r.y,n==null?void 0:n.y)}function yL(t,e,r,n,i){return t-=e,t=hm(t,1/r,n),i!==void 0&&(t=hm(t,1/i,n)),t}function tpe(t,e=0,r=1,n=.5,i,a=t,o=t){if(Vn.test(e)&&(e=parseFloat(e),e=Qe(o.min,o.max,e/100)-o.min),typeof e!="number")return;let l=Qe(a.min,a.max,n);t===a&&(l-=e),t.min=yL(t.min,e,r,l,i),t.max=yL(t.max,e,r,l,i)}function vL(t,e,[r,n,i],a,o){tpe(t,e[r],e[n],e[i],e.scale,a,o)}const rpe=["x","scaleX","originX"],npe=["y","scaleY","originY"];function xL(t,e,r,n){vL(t.x,e,rpe,r?r.x:void 0,n?n.x:void 0),vL(t.y,e,npe,r?r.y:void 0,n?n.y:void 0)}function bL(t){return t.translate===0&&t.scale===1}function R3(t){return bL(t.x)&&bL(t.y)}function wL(t,e){return t.min===e.min&&t.max===e.max}function ipe(t,e){return wL(t.x,e.x)&&wL(t.y,e.y)}function SL(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function M3(t,e){return SL(t.x,e.x)&&SL(t.y,e.y)}function kL(t){return lr(t.x)/lr(t.y)}function jL(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Cn(t){return[t("x"),t("y")]}function ape(t,e,r){let n="";const i=t.x.translate/e.x,a=t.y.translate/e.y,o=(r==null?void 0:r.z)||0;if((i||a||o)&&(n=`translate3d(${i}px, ${a}px, ${o}px) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){const{transformPerspective:d,rotate:h,pathRotation:m,rotateX:g,rotateY:v,skewX:b,skewY:w}=r;d&&(n=`perspective(${d}px) ${n}`),h&&(n+=`rotate(${h}deg) `),m&&(n+=`rotate(${m}deg) `),g&&(n+=`rotateX(${g}deg) `),v&&(n+=`rotateY(${v}deg) `),b&&(n+=`skewX(${b}deg) `),w&&(n+=`skewY(${w}deg) `)}const l=t.x.scale*e.x,u=t.y.scale*e.y;return(l!==1||u!==1)&&(n+=`scale(${l}, ${u})`),n||"none"}const L3=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],ope=L3.length,PL=t=>typeof t=="string"?parseFloat(t):t,TL=t=>typeof t=="number"||ge.test(t);function spe(t,e,r,n,i,a){i?(t.opacity=Qe(0,r.opacity??1,lpe(n)),t.opacityExit=Qe(e.opacity??1,0,cpe(n))):a&&(t.opacity=Qe(e.opacity??1,r.opacity??1,n));for(let o=0;o<ope;o++){const l=L3[o];let u=AL(e,l),d=AL(r,l);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||TL(u)===TL(d)?(t[l]=Math.max(Qe(PL(u),PL(d),n),0),(Vn.test(d)||Vn.test(u))&&(t[l]+="%")):t[l]=d}(e.rotate||r.rotate)&&(t.rotate=Qe(e.rotate||0,r.rotate||0,n))}function AL(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const lpe=D3(0,.5,Ez),cpe=D3(.5,.95,Kr);function D3(t,e,r){return n=>n<t?0:n>e?1:r(yu(t,e,n))}function upe(t,e,r){const n=Yt(t)?t:Ws(t);return n.start(ij("",n,e,r)),n.animation}function bu(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}const dpe=(t,e)=>t.depth-e.depth;class fpe{constructor(){this.children=[],this.isDirty=!1}add(e){Hk(this.children,e),this.isDirty=!0}remove(e){om(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(dpe),this.isDirty=!1,this.children.forEach(e)}}function hpe(t,e){const r=sr.now(),n=({timestamp:i})=>{const a=i-r;a>=e&&(fa(n),t(a-e))};return et.setup(n,!0),()=>fa(n)}function Hf(t){return Yt(t)?t.get():t}class mpe{constructor(){this.members=[]}add(e){Hk(this.members,e);for(let r=this.members.length-1;r>=0;r--){const n=this.members[r];if(n===e||n===this.lead||n===this.prevLead)continue;const i=n.instance;(!i||i.isConnected===!1)&&!n.snapshot&&(om(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(om(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){var r;for(let n=this.members.indexOf(e)-1;n>=0;n--){const i=this.members[n];if(i.isPresent!==!1&&((r=i.instance)==null?void 0:r.isConnected)!==!1)return this.promote(i),!0}return!1}promote(e,r){var i;const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();const{layoutDependency:a}=n.options,{layoutDependency:o}=e.options;(a===void 0||a!==o)&&(e.resumeFrom=n,r&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),(i=e.root)!=null&&i.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var r,n,i,a,o;(n=(r=e.options).onExitComplete)==null||n.call(r),(o=(i=e.resumingFrom)==null?void 0:(a=i.options).onExitComplete)==null||o.call(a)})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){var e;(e=this.lead)!=null&&e.snapshot&&(this.lead.snapshot=void 0)}}const qf={hasAnimatedSinceResize:!0,hasEverUpdated:!1},F0=["","X","Y","Z"],ppe=1e3;let gpe=0;function B0(t,e,r,n){const{latestValues:i}=e;i[t]&&(r[t]=i[t],e.setStaticValue(t,0),n&&(n[t]=0))}function $3(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const r=a3(e);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:i,layoutId:a}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",et,!(i||a))}const{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&$3(n)}function F3({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},l=e==null?void 0:e()){this.id=gpe++,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(xpe),this.nodes.forEach(Ppe),this.nodes.forEach(Tpe),this.nodes.forEach(bpe)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new fpe)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Gk),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const u=this.eventHandlers.get(o);u&&u.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=cj(o)&&!vme(o),this.instance=o;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||l)&&(this.isLayoutDirty=!0),t){let h,m=0;const g=()=>this.root.updateBlockedByResize=!1;et.read(()=>{m=window.innerWidth}),t(o,()=>{const v=window.innerWidth;v!==m&&(m=v,this.root.updateBlockedByResize=!0,h&&h(),h=hpe(g,250),qf.hasAnimatedSinceResize&&(qf.hasAnimatedSinceResize=!1,this.nodes.forEach(NL)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||Ope,{onLayoutAnimationStart:w,onLayoutAnimationComplete:x}=d.getProps(),k=!this.targetLayout||!M3(this.targetLayout,v),P=!m&&g;if(this.options.layoutRoot||this.resumeFrom||P||m&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...nj(b,"layout"),onPlay:w,onComplete:x};(d.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(h,P,A.path)}else m||NL(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),fa(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(Ape),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&$3(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,(typeof m.latestValues.x=="string"||typeof m.latestValues.y=="string")&&(m.isLayoutDirty=!0),m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:l,layout:u}=this.options;if(l===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const u=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),u&&this.nodes.forEach(Spe),this.nodes.forEach(EL);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(_L);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(kpe),this.nodes.forEach(jpe),this.nodes.forEach(ype),this.nodes.forEach(vpe)):this.nodes.forEach(_L),this.clearAllSnapshots();const l=sr.now();Gt.delta=qn(0,1e3/60,l-Gt.timestamp),Gt.timestamp=l,Gt.isProcessing=!0,O0.update.process(Gt),O0.preRender.process(Gt),O0.render.process(Gt),Gt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,sj.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(wpe),this.sharedNodes.forEach(Epe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!lr(this.snapshot.measuredBox.x)&&!lr(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Ct()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l&&this.instance){const u=n(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!R3(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;o&&this.instance&&(l||Ua(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let u=this.removeElementScroll(l);return o&&(u=this.removeTransform(u)),Cpe(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:o}=this.options;if(!o)return Ct();const l=o.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(Ipe))){const{scroll:h}=this.root;h&&(In(l.x,h.offset.x),In(l.y,h.offset.y))}return l}removeElementScroll(o){var u;const l=Ct();if(un(l,o),(u=this.scroll)!=null&&u.wasRoot)return l;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&un(l,o),In(l.x,m.offset.x),In(l.y,m.offset.y))}return l}applyTransform(o,l=!1,u){var h,m;const d=u||Ct();un(d,o);for(let g=0;g<this.path.length;g++){const v=this.path[g];!l&&v.options.layoutScroll&&v.scroll&&v!==v.root&&(In(d.x,-v.scroll.offset.x),In(d.y,-v.scroll.offset.y)),Ua(v.latestValues)&&Wf(d,v.latestValues,(h=v.layout)==null?void 0:h.layoutBox)}return Ua(this.latestValues)&&Wf(d,this.latestValues,(m=this.layout)==null?void 0:m.layoutBox),d}removeTransform(o){var u;const l=Ct();un(l,o);for(let d=0;d<this.path.length;d++){const h=this.path[d];if(!Ua(h.latestValues))continue;let m;h.instance&&(t1(h.latestValues)&&h.updateSnapshot(),m=Ct(),un(m,h.measurePageBox())),xL(l,h.latestValues,(u=h.snapshot)==null?void 0:u.layoutBox,m)}return Ua(this.latestValues)&&xL(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Gt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var v;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!this.layout||!(h||m))return;this.resolvedRelativeTargetAt=Gt.timestamp;const g=this.getClosestProjectingParent();g&&this.linkedParentVersion!==g.layoutVersion&&!g.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&g&&g.layout?this.createRelativeTarget(g,this.layout.layoutBox,g.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ct(),this.targetWithTransforms=Ct()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),epe(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):un(this.target,this.layout.layoutBox),S3(this.target,this.targetDelta)):un(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?this.createRelativeTarget(g,this.target,g.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||t1(this.parent.latestValues)||w3(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,l,u){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ct(),this.relativeTargetOrigin=Ct(),mm(this.relativeTargetOrigin,l,u,this.options.layoutAnchor||void 0),un(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var b;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty)&&
vendor: 5,735 bytes, line 1638
1638(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Gt.timestamp&&(u=!1),u)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;un(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;_me(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Ct());const{target:v}=o;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(hL(this.prevProjectionDelta.x,this.projectionDelta.x),hL(this.prevProjectionDelta.y,this.projectionDelta.y)),kc(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!jL(this.projectionDelta.x,this.prevProjectionDelta.x)||!jL(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ts(),this.projectionDelta=ts(),this.projectionDeltaWithTransform=ts()}setAnimationOrigin(o,l=!1,u){const d=this.snapshot,h=d?d.latestValues:{},m={...this.latestValues},g=ts();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const v=Ct(),b=d?d.source:void 0,w=this.layout?this.layout.source:void 0,x=b!==w,k=this.getStack(),P=!k||k.members.length<=1,A=!!(x&&!P&&this.options.crossfade===!0&&!this.path.some(Npe));this.animationProgress=0;let E;const T=u==null?void 0:u.interpolateProjection(o);this.mixTargetDelta=_=>{const O=_/1e3,I=T==null?void 0:T(O);I?(g.x.translate=I.x,g.x.scale=Qe(o.x.scale,1,O),g.x.origin=o.x.origin,g.x.originPoint=o.x.originPoint,g.y.translate=I.y,g.y.scale=Qe(o.y.scale,1,O),g.y.origin=o.y.origin,g.y.originPoint=o.y.originPoint):(OL(g.x,o.x,O),OL(g.y,o.y,O)),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(mm(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),_pe(this.relativeTarget,this.relativeTargetOrigin,v,O),E&&ipe(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=Ct()),un(E,this.relativeTarget)),x&&(this.animationValues=m,spe(m,h,this.latestValues,O,A,P)),I&&I.rotate!==void 0&&(this.animationValues||(this.animationValues=m),this.animationValues.pathRotation=I.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var l,u,d;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(d=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||d.stop(),this.pendingAnimation&&(fa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=et.update(()=>{qf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ws(0)),this.motionValue.jump(0,!1),this.currentAnimation=upe(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),o.onUpdate&&o.onUpdate(h)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ppe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:u,layout:d,latestValues:h}=o;if(!(!l||!u||!d)){if(this!==o&&this.layout&&d&&B3(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||Ct();const m=lr(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+m;const g=lr(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+g}un(l,u),Wf(l,h),kc(this.projectionDeltaWithTransform,this.layoutCorrected,l,h)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new mpe),this.sharedNodes.get(o).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var l;const{layoutId:o}=this.options;return o?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:o}=this.options;return o?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
vendor: 32,796 bytes, line 1638
1638resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const d={};u.z&&B0("z",o,d,this.animationValues);for(let h=0;h<F0.length;h++)B0(`rotate${F0[h]}`,o,d,this.animationValues),B0(`skew${F0[h]}`,o,d,this.animationValues);o.render();for(const h in d)o.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);o.scheduleRender()}applyProjectionStyles(o,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Hf(l==null?void 0:l.pointerEvents)||"",o.transform=u?u(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Hf(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Ua(this.latestValues)&&(o.transform=u?u({},""):"none",this.hasProjected=!1);return}o.visibility="";const h=d.animationValues||d.latestValues;this.applyTransformsToTarget();let m=ape(this.projectionDeltaWithTransform,this.treeScale,h);u&&(m=u(h,m)),o.transform=m;const{x:g,y:v}=this.projectionDelta;o.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,d.animationValues?o.opacity=d===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:o.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const b in n1){if(h[b]===void 0)continue;const{correct:w,applyTo:x,isCSSVariable:k}=n1[b],P=m==="none"?h[b]:w(h[b],d);if(x){const A=x.length;for(let E=0;E<A;E++)o[x[E]]=P}else k?this.options.visualElement.renderState.vars[b]=P:o[b]=P}this.options.layoutId&&(o.pointerEvents=d===this?Hf(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(EL),this.root.sharedNodes.clear()}}}function ype(t){t.updateLayout()}function vpe(t){var r;const e=((r=t.resumeFrom)==null?void 0:r.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:a}=t.options,o=e.source!==t.layout.source;if(a==="size")Cn(m=>{const g=o?e.measuredBox[m]:e.layoutBox[m],v=lr(g);g.min=n[m].min,g.max=g.min+v});else if(a==="x"||a==="y"){const m=a==="x"?"y":"x";i1(o?e.measuredBox[m]:e.layoutBox[m],n[m])}else B3(a,e.layoutBox,n)&&Cn(m=>{const g=o?e.measuredBox[m]:e.layoutBox[m],v=lr(n[m]);g.max=g.min+v,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[m].max=t.relativeTarget[m].min+v)});const l=ts();kc(l,n,e.layoutBox);const u=ts();o?kc(u,t.applyTransform(i,!0),e.measuredBox):kc(u,n,e.layoutBox);const d=!R3(l);let h=!1;if(!t.resumeFrom){const m=t.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:v}=m;if(g&&v){const b=t.options.layoutAnchor||void 0,w=Ct();mm(w,e.layoutBox,g.layoutBox,b);const x=Ct();mm(x,n,v.layoutBox,b),M3(w,x)||(h=!0),m.options.layoutRoot&&(t.relativeTarget=x,t.relativeTargetOrigin=w,t.relativeParent=m)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:u,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function xpe(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function bpe(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function wpe(t){t.clearSnapshot()}function EL(t){t.clearMeasurements()}function Spe(t){t.isLayoutDirty=!0,t.updateLayout()}function _L(t){t.isLayoutDirty=!1}function kpe(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function jpe(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function NL(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Ppe(t){t.resolveTargetDelta()}function Tpe(t){t.calcProjection()}function Ape(t){t.resetSkewAndRotation()}function Epe(t){t.removeLeadSnapshot()}function OL(t,e,r){t.translate=Qe(e.translate,0,r),t.scale=Qe(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function CL(t,e,r,n){t.min=Qe(e.min,r.min,n),t.max=Qe(e.max,r.max,n)}function _pe(t,e,r,n){CL(t.x,e.x,r.x,n),CL(t.y,e.y,r.y,n)}function Npe(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Ope={duration:.45,ease:[.4,0,.1,1]},IL=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),RL=IL("applewebkit/")&&!IL("chrome/")?Math.round:Kr;function ML(t){t.min=RL(t.min),t.max=RL(t.max)}function Cpe(t){ML(t.x),ML(t.y)}function B3(t,e,r){return t==="position"||t==="preserve-aspect"&&!Zme(kL(e),kL(r),.2)}function Ipe(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const Rpe=F3({attachResizeListener:(t,e)=>bu(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),z0={current:void 0},z3=F3({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!z0.current){const t=new Rpe({});t.mount(window),t.setOptions({layoutScroll:!0}),z0.current=t}return z0.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),V3=N.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Mpe(t=!0){const e=N.useContext(Wk);if(e===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:i}=e,a=N.useId();N.useEffect(()=>{if(t)return i(a)},[t]);const o=N.useCallback(()=>t&&n&&n(a),[a,n,t]);return!r&&n?[!1,o]:[!0]}const U3=N.createContext({strict:!1}),LL={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 DL=!1;function Lpe(){if(DL)return;const t={};for(const e in LL)t[e]={isEnabled:r=>LL[e].some(n=>!!r[n])};v3(t),DL=!0}function W3(){return Lpe(),Pme()}function Dpe(t){const e=W3();for(const r in t)e[r]={...e[r],...t[r]};v3(e)}const $pe=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 pm(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||$pe.has(t)}let H3=t=>!pm(t);function Fpe(t){typeof t=="function"&&(H3=e=>e.startsWith("on")?!pm(e):t(e))}try{Fpe(require("@emotion/is-prop-valid").default)}catch{}function Bpe(t,e,r){const n={};for(const i in t)i==="values"&&typeof t.values=="object"||Yt(t[i])||(H3(i)||r===!0&&pm(i)||!e&&!pm(i)||t.draggable&&i.startsWith("onDrag"))&&(n[i]=t[i]);return n}const mp=N.createContext({});function zpe(t,e){if(hp(t)){const{initial:r,animate:n}=t;return{initial:r===!1||xu(r)?r:void 0,animate:xu(n)?n:void 0}}return t.inherit!==!1?e:{}}function Vpe(t){const{initial:e,animate:r}=zpe(t,N.useContext(mp));return N.useMemo(()=>({initial:e,animate:r}),[$L(e),$L(r)])}function $L(t){return Array.isArray(t)?t.join(" "):t}const mj=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function q3(t,e,r){for(const n in e)!Yt(e[n])&&!P3(n,r)&&(t[n]=e[n])}function Upe({transformTemplate:t},e){return N.useMemo(()=>{const r=mj();return fj(r,e,t),Object.assign({},r.vars,r.style)},[e])}function Wpe(t,e){const r=t.style||{},n={};return q3(n,r,t),Object.assign(n,Upe(t,e)),n}function Hpe(t,e){const r={},n=Wpe(t,e);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=n,r}const G3=()=>({...mj(),attrs:{}});function qpe(t,e,r,n){const i=N.useMemo(()=>{const a=G3();return T3(a,e,E3(n),t.transformTemplate,t.style),{...a.attrs,style:{...a.style}}},[e]);if(t.style){const a={};q3(a,t.style,t),i.style={...a,...i.style}}return i}const Gpe=["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 pj(t){return typeof t!="string"||t.includes("-")?!1:!!(Gpe.indexOf(t)>-1||/[A-Z]/u.test(t))}function Kpe(t,e,r,{latestValues:n},i,a=!1,o){const u=(o??pj(t)?qpe:Hpe)(e,n,i,t),d=Bpe(e,typeof t=="string",a),h=t!==N.Fragment?{...d,...u,ref:r}:{},{children:m}=e,g=N.useMemo(()=>Yt(m)?m.get():m,[m]);return N.createElement(t,{...h,children:g})}function Ype({scrapeMotionValuesFromProps:t,createRenderState:e},r,n,i){return{latestValues:Xpe(r,n,i,t),renderState:e()}}function Xpe(t,e,r,n){const i={},a=n(t,{});for(const g in a)i[g]=Hf(a[g]);let{initial:o,animate:l}=t;const u=hp(t),d=g3(t);e&&d&&!u&&t.inherit!==!1&&(o===void 0&&(o=e.initial),l===void 0&&(l=e.animate));let h=r?r.initial===!1:!1;h=h||o===!1;const m=h?l:o;if(m&&typeof m!="boolean"&&!fp(m)){const g=Array.isArray(m)?m:[m];for(let v=0;v<g.length;v++){const b=aj(t,g[v]);if(b){const{transitionEnd:w,transition:x,...k}=b;for(const P in k){let A=k[P];if(Array.isArray(A)){const E=h?A.length-1:0;A=A[E]}A!==null&&(i[P]=A)}for(const P in w)i[P]=w[P]}}}return i}const K3=t=>(e,r)=>{const n=N.useContext(mp),i=N.useContext(Wk),a=()=>Ype(t,e,n,i);return r?a():Kde(a)},Jpe=K3({scrapeMotionValuesFromProps:hj,createRenderState:mj}),Qpe=K3({scrapeMotionValuesFromProps:_3,createRenderState:G3}),Zpe=Symbol.for("motionComponentSymbol");function ege(t,e,r){const n=N.useRef(r);N.useInsertionEffect(()=>{n.current=r});const i=N.useRef(null);return N.useCallback(a=>{var l;a&&((l=t.onMount)==null||l.call(t,a)),e&&(a?e.mount(a):e.unmount());const o=n.current;if(typeof o=="function")if(a){const u=o(a);typeof u=="function"&&(i.current=u)}else i.current?(i.current(),i.current=null):o(a);else o&&(o.current=a)},[e])}const Y3=N.createContext({});function Ko(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function tge(t,e,r,n,i,a){var A,E;const{visualElement:o}=N.useContext(mp),l=N.useContext(U3),u=N.useContext(Wk),d=N.useContext(V3),h=d.reducedMotion,m=d.skipAnimations,g=N.useRef(null),v=N.useRef(!1);n=n||l.renderer,!g.current&&n&&(g.current=n(t,{visualState:e,parent:o,props:r,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:h,skipAnimations:m,isSVG:a}),v.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const b=g.current,w=N.useContext(Y3);b&&!b.projection&&i&&(b.type==="html"||b.type==="svg")&&rge(g.current,r,i,w);const x=N.useRef(!1);N.useInsertionEffect(()=>{b&&x.current&&b.update(r,u)});const k=r[i3],P=N.useRef(!!k&&typeof window<"u"&&!((A=window.MotionHandoffIsComplete)!=null&&A.call(window,k))&&((E=window.MotionHasOptimisedAnimation)==null?void 0:E.call(window,k)));return Xde(()=>{v.current=!0,b&&(x.current=!0,window.MotionIsMounted=!0,b.updateFeatures(),b.scheduleRenderMicrotask(),P.current&&b.animationState&&b.animationState.animateChanges())}),N.useEffect(()=>{b&&(!P.current&&b.animationState&&b.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,k)}),P.current=!1),b.enteringChildren=void 0)}),b}function rge(t,e,r,n){const{layoutId:i,layout:a,drag:o,dragConstraints:l,layoutScroll:u,layoutRoot:d,layoutAnchor:h,layoutCrossfade:m}=e;t.projection=new r(t.latestValues,e["data-framer-portal-id"]?void 0:X3(t.parent)),t.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||l&&Ko(l),visualElement:t,animationType:typeof a=="string"?a:"both",initialPromotionConfig:n,crossfade:m,layoutScroll:u,layoutRoot:d,layoutAnchor:h})}function X3(t){if(t)return t.options.allowProjection!==!1?t.projection:X3(t.parent)}function V0(t,{forwardMotionProps:e=!1,type:r}={},n,i){n&&Dpe(n);const a=r?r==="svg":pj(t),o=a?Qpe:Jpe;function l(d,h){let m;const g={...N.useContext(V3),...d,layoutId:nge(d)},{isStatic:v}=g,b=Vpe(d),w=o(d,v);if(!v&&typeof window<"u"){ige();const x=age(g);m=x.MeasureLayout,b.visualElement=tge(t,w,g,i,x.ProjectionNode,a)}return f.jsxs(mp.Provider,{value:b,children:[m&&b.visualElement?f.jsx(m,{visualElement:b.visualElement,...g}):null,Kpe(t,d,ege(w,b.visualElement,h),w,v,e,a)]})}l.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const u=N.forwardRef(l);return u[Zpe]=t,u}function nge({layoutId:t}){const e=N.useContext(gz).id;return e&&t!==void 0?e+"-"+t:t}function ige(t,e){N.useContext(U3).strict}function age(t){const e=W3(),{drag:r,layout:n}=e;if(!r&&!n)return{};const i={...r,...n};return{MeasureLayout:r!=null&&r.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function oge(t,e){if(typeof Proxy>"u")return V0;const r=new Map,n=(a,o)=>V0(a,o,t,e),i=(a,o)=>n(a,o);return new Proxy(i,{get:(a,o)=>o==="create"?n:(r.has(o)||r.set(o,V0(o,void 0,t,e)),r.get(o))})}const sge=(t,e)=>e.isSVG??pj(t)?new Vme(e):new Lme(e,{allowProjection:t!==N.Fragment});class lge extends xa{constructor(e){super(e),e.animationState||(e.animationState=Gme(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();fp(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let cge=0;class uge extends xa{constructor(){super(...arguments),this.id=cge++,this.isExitComplete=!1}update(){var a;if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){const{initial:o,custom:l}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const u=no(this.node,o,l);if(u){const{transition:d,transitionEnd:h,...m}=u;for(const g in m)(a=this.node.getValue(g))==null||a.jump(m[g])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);r&&!e&&i.then(()=>{this.isExitComplete=!0,r(this.id)})}mount(){const{register:e,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const dge={animation:{Feature:lge},exit:{Feature:uge}};function qu(t){return{point:{x:t.pageX,y:t.pageY}}}const fge=t=>e=>lj(e)&&t(e,qu(e));function jc(t,e,r,n){return bu(t,e,fge(r),n)}const J3=({current:t})=>t?t.ownerDocument.defaultView:null,FL=(t,e)=>Math.abs(t-e);function hge(t,e){const r=FL(t.x,e.x),n=FL(t.y,e.y);return Math.sqrt(r**2+n**2)}const BL=new Set(["auto","scroll"]);class Q3{constructor(e,r,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:o=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=v=>{this.handleScroll(v.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Of(this.lastRawMoveEventInfo,this.transformPagePoint));const v=U0(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,w=hge(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!w)return;const{point:x}=v,{timestamp:k}=Gt;this.history.push({...x,timestamp:k});const{onStart:P,onMove:A}=this.handlers;b||(P&&P(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,v)},this.handlePointerMove=(v,b)=>{this.lastMoveEvent=v,this.lastRawMoveEventInfo=b,this.lastMoveEventInfo=Of(b,this.transformPagePoint),et.update(this.updatePoint,!0)},this.handlePointerUp=(v,b)=>{this.end();const{onEnd:w,onSessionEnd:x,resumeAnimation:k}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&k&&k(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=U0(v.type==="pointercancel"?this.lastMoveEventInfo:Of(b,this.transformPagePoint),this.history);this.startEvent&&w&&w(v,P),x&&x(v,P)},!lj(e))return;this.dragSnapToOrigin=a,this.handlers=r,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;const u=qu(e),d=Of(u,this.transformPagePoint),{point:h}=d,{timestamp:m}=Gt;this.history=[{...h,timestamp:m}];const{onSessionStart:g}=r;g&&g(e,U0(d,this.history)),this.removeListeners=Uu(jc(this.contextWindow,"pointermove",this.handlePointerMove),jc(this.contextWindow,"pointerup",this.handlePointerUp),jc(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(e){let r=e.parentElement;for(;r;){const n=getComputedStyle(r);(BL.has(n.overflowX)||BL.has(n.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.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(e){const r=this.scrollPositions.get(e);if(!r)return;const n=e===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},a={x:i.x-r.x,y:i.y-r.y};a.x===0&&a.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(e,i),et.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),fa(this.updatePoint)}}function Of(t,e){return e?{point:e(t.point)}:t}function zL(t,e){return{x:t.x-e.x,y:t.y-e.y}}function U0({point:t},e){return{point:t,delta:zL(t,Z3(e)),offset:zL(t,mge(e)),velocity:pge(e,.1)}}function mge(t){return t[0]}function Z3(t){return t[t.length-1]}function pge(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const i=Z3(t);for(;r>=0&&(n=t[r],!(i.timestamp-n.timestamp>Cr(e)));)r--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&i.timestamp-n.timestamp>Cr(e)*2&&(n=t[1]);const a=Ur(i.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function gge(t,{min:e,max:r},n){return e!==void 0&&t<e?t=n?Qe(e,t,n.min):Math.max(t,e):r!==void 0&&t>r&&(t=n?Qe(r,t,n.max):Math.min(t,r)),t}function VL(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function yge(t,{top:e,left:r,bottom:n,right:i}){return{x:VL(t.x,r,i),y:VL(t.y,e,n)}}function UL(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([r,n]=[n,r]),{min:r,max:n}}function vge(t,e){return{x:UL(t.x,e.x),y:UL(t.y,e.y)}}function xge(t,e){let r=.5;const n=lr(t),i=lr(e);return i>n?r=yu(e.min,e.max-n,t.min):n>i&&(r=yu(t.min,t.max-i,e.min)),qn(0,1,r)}function bge(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const a1=.35;function wge(t=a1){return t===!1?t=0:t===!0&&(t=a1),{x:WL(t,"left","right"),y:WL(t,"top","bottom")}}function WL(t,e,r){return{min:HL(t,e),max:HL(t,r)}}function HL(t,e){return typeof t=="number"?t:t[e]||0}const Sge=new WeakMap;class kge{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ct(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:r=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=m=>{r&&this.snapToCursor(qu(m).point),this.stopAnimation()},o=(m,g)=>{const{drag:v,dragPropagation:b,onDragStart:w}=this.getProps();if(v&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=tme(v),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Cn(k=>{let P=this.getAxisMotionValue(k).get()||0;if(Vn.test(P)){const{projection:A}=this.visualElement;if(A&&A.layout){const E=A.layout.layoutBox[k];E&&(P=lr(E)*(parseFloat(P)/100))}}this.originPoint[k]=P}),w&&et.update(()=>w(m,g),!1,!0),YS(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},l=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:v,dragDirectionLock:b,onDirectionLock:w,onDrag:x}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:k}=g;if(b&&this.currentDirection===null){this.currentDirection=Pge(k),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",g.point,k),this.updateAxis("y",g.point,k),this.visualElement.render(),x&&et.update(()=>x(m,g),!1,!0)},u=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>{const{dragSnapToOrigin:m}=this.getProps();(m||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new Q3(e,{onSessionStart:a,onStart:o,onMove:l,onSessionEnd:u,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:n,contextWindow:J3(this.visualElement),element:this.visualElement.current})}stop(e,r){const n=e||this.latestPointerEvent,i=r||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!n)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:l}=this.getProps();l&&et.postRender(()=>l(n,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,r,n){const{drag:i}=this.getProps();if(!n||!Cf(e,i,this.currentDirection))return;const a=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=gge(o,this.constraints[e],this.elastic[e])),a.set(o)}resolveConstraints(){var a;const{dragConstraints:e,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,i=this.constraints;e&&Ko(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=yge(n.layoutBox,e):this.constraints=!1,this.elastic=wge(r),i!==this.constraints&&!Ko(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Cn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=bge(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!Ko(e))return!1;const n=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const a=Nme(n,i.root,this.visualElement.getTransformPagePoint());let o=vge(i.layout.layoutBox,a);if(r){const l=r(Ame(o));this.hasMutatedConstraints=!!l,l&&(o=b3(l))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},d=Cn(h=>{if(!Cf(h,r,this.currentDirection))return;let m=u&&u[h]||{};(o===!0||o===h)&&(m={min:0,max:0});const g=i?200:1e6,v=i?40:1e7,b={type:"inertia",velocity:n?e[h]:0,bounceStiffness:g,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(h,b)});return Promise.all(d).then(l)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return YS(this.visualElement,e),n.start(ij(e,n,0,r,this.visualElement,!1))}stopAnimation(){Cn(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const r=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Cn(r=>{const{drag:n}=this.getProps();if(!Cf(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(r);if(i&&i.layout){const{min:o,max:l}=i.layout.layoutBox[r],u=a.get()||0;a.set(e[r]-Qe(o,l,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Ko(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Cn(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const u=l.get();i[o]=xge({min:u,max:u},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Cn(o=>{if(!Cf(o,e,null))return;const l=this.getAxisMotionValue(o),{min:u,max:d}=this.constraints[o];l.set(Qe(u,d,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Sge.set(this.visualElement,this);const e=this.visualElement.current,r=jc(e,"pointerdown",d=>{const{drag:h,dragListener:m=!0}=this.getProps(),g=d.target,v=g!==e&&sme(g);h&&m&&!v&&this.start(d)});let n;const i=()=>{const{dragConstraints:d}=this.getProps();Ko(d)&&d.current&&(this.constraints=this.resolveRefConstraints(),n||(n=jge(e,d.current,()=>this.scalePositionWithinConstraints())))},{projection:a}=this.visualElement,o=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),et.read(i);const l=bu(window,"resize",()=>this.scalePositionWithinConstraints()),u=a.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(Cn(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=d[m].translate,g.set(g.get()+d[m].translate))}),this.visualElement.render())}));return()=>{l(),r(),o(),u&&u(),n&&n()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=a1,dragMomentum:l=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:l}}}function qL(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function jge(t,e,r){const n=tL(t,qL(r)),i=tL(e,qL(r));return()=>{n(),i()}}function Cf(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function Pge(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class Tge extends xa{constructor(e){super(e),this.removeGroupControls=Kr,this.removeListeners=Kr,this.controls=new kge(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Kr}update(){const{dragControls:e}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};e!==r&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const W0=t=>(e,r)=>{t&&et.update(()=>t(e,r),!1,!0)};class Age extends xa{constructor(){super(...arguments),this.removePointerDownListener=Kr}onPointerDown(e){this.session=new Q3(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:J3(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:W0(e),onStart:W0(r),onMove:W0(n),onEnd:(a,o)=>{delete this.session,i&&et.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=jc(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let H0=!1;class Ege extends N.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:a}=e;a&&(r.group&&r.group.add(a),n&&n.register&&i&&n.register(a),H0&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),qf.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:n,drag:i,isPresent:a}=this.props,{projection:o}=n;return o&&(o.isPresent=a,e.layoutDependency!==r&&o.setOptions({...o.options,layoutDependency:r}),H0=!0,i||e.layoutDependency!==r||r===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||et.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:r}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=r,n.root.didUpdate(),sj.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=e;H0=!0,i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function eV(t){const[e,r]=Mpe(),n=N.useContext(gz);return f.jsx(Ege,{...t,layoutGroup:n,switchLayoutGroup:N.useContext(Y3),isPresent:e,safeToRemove:r})}const _ge={pan:{Feature:Age},drag:{Feature:Tge,ProjectionNode:z3,MeasureLayout:eV}};function GL(t,e,r){const{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover",r==="Start");const i="onHover"+r,a=n[i];a&&et.postRender(()=>a(e,qu(e)))}class Nge extends xa{mount(){const{current:e}=this.node;e&&(this.unmount=nme(e,(r,n)=>(GL(this.node,n,"Start"),i=>GL(this.node,i,"End"))))}unmount(){}}class Oge extends xa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=Uu(bu(this.node.current,"focus",()=>this.onFocus()),bu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function KL(t,e,r){const{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap",r==="Start");const i="onTap"+(r==="End"?"":r),a=n[i];a&&et.postRender(()=>a(e,qu(e)))}class Cge extends xa{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:r,propagate:n}=this.node.props;this.unmount=cme(e,(i,a)=>(KL(this.node,a,"Start"),(o,{success:l})=>KL(this.node,o,l?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:(n==null?void 0:n.tap)===!1})}unmount(){}}const o1=new WeakMap,q0=new WeakMap,Ige=t=>{const e=o1.get(t.target);e&&e(t)}
1638,Rge=t=>{t.forEach(Ige)};function Mge({root:t,...e}){const r=t||document;q0.has(r)||q0.set(r,{});const n=q0.get(r),i=JSON.stringify(e);return n[i]||(n[i]=new IntersectionObserver(Rge,{root:t,...e})),n[i]}function Lge(t,e,r){const n=Mge(e);return o1.set(t,r),n.observe(t),()=>{o1.delete(t),n.unobserve(t)}}const Dge={some:0,all:1};class $ge extends xa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var u;(u=this.stopObserver)==null||u.call(this);const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:a}=e,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:Dge[i]},l=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,a&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:g}=this.node.getProps(),v=h?m:g;v&&v(d)};this.stopObserver=Lge(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(Fge(e,r))&&this.startObserver()}unmount(){var e;(e=this.stopObserver)==null||e.call(this),this.hasEnteredView=!1,this.isInView=!1}}function Fge({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const Bge={inView:{Feature:$ge},tap:{Feature:Cge},focus:{Feature:Oge},hover:{Feature:Nge}},zge={layout:{ProjectionNode:z3,MeasureLayout:eV}},Vge={...dge,...Bge,..._ge,...zge},Nt=oge(Vge,sge),dn={initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.45,ease:[.22,1,.36,1]}};function Uge(){const{t}=ye(),e=Xr();N.useEffect(()=>{if(!e.hash)return;const u=window.setTimeout(()=>{KB(e.hash)},80);return()=>window.clearTimeout(u)},[e.hash,e.pathname]);const r=t("intro.value1Points",{returnObjects:!0}),n=[{title:t("intro.feature1Title"),body:t("intro.feature1Body")},{title:t("intro.feature2Title"),body:t("intro.feature2Body")},{title:t("intro.feature3Title"),body:t("intro.feature3Body")},{title:t("intro.feature4Title"),body:t("intro.feature4Body")}],i=[{name:t("intro.agentMarket"),desc:t("intro.agentMarketDesc")},{name:t("intro.agentCompany"),desc:t("intro.agentCompanyDesc")},{name:t("intro.agentNews"),desc:t("intro.agentNewsDesc")},{name:t("intro.agentFinancial"),desc:t("intro.agentFinancialDesc")},{name:t("intro.agentSignal"),desc:t("intro.agentSignalDesc")},{name:t("intro.agentResearch"),desc:t("intro.agentResearchDesc")}],a=t("intro.archFlow",{returnObjects:!0}),o=t("intro.closingQuestions",{returnObjects:!0}),l=t("intro.glossaryItems",{returnObjects:!0});return f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:t("intro.seoTitle"),description:t("intro.seoDescription"),path:"/about"}),f.jsxs("header",{className:"hero-landing relative isolate overflow-hidden border-b border-border",style:{backgroundImage:"url('/images/bg-hero-mountains.jpg')"},children:[f.jsx("div",{className:"hero-landing__scrim pointer-events-none absolute inset-0","aria-hidden":!0}),f.jsxs("div",{className:"relative z-10 mx-auto flex min-h-[55vh] max-w-4xl flex-col justify-center px-4 py-12 text-center sm:px-6 sm:py-16",children:[f.jsx(Nt.p,{className:"text-xs font-bold uppercase tracking-[0.18em] text-primary/70",initial:{opacity:0}
1638,animate:{opacity:1},transition:{duration:.5},children:t("intro.eyebrow")}),f.jsx(Nt.h1,{className:"font-serif-display mt-4 text-5xl text-primary drop-shadow-sm sm:text-6xl lg:text-7xl",initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.55,delay:.05},children:t("brand")}),f.jsx(Nt.p,{className:"font-serif-display mx-auto mt-6 max-w-3xl text-2xl leading-snug text-primary/90 sm:text-3xl",initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.55,delay:.12},children:t("intro.heroHeadline")}),f.jsx(Nt.p,{className:"mx-auto mt-5 max-w-2xl text-base leading-relaxed text-muted sm:text-lg",initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.55,delay:.18},children:t("intro.heroLead")}),f.jsxs(Nt.div,{className:"mt-10 flex flex-wrap items-center justify-center gap-3",initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.55,delay:.24},children:[f.jsx(be,{to:"/market",className:"btn-primary",children:t("intro.ctaMarket")}),f.jsx(be,{to:"/journal",className:"btn-secondary",children:t("intro.ctaJournal")})]})]}),f.jsxs("p",{className:"absolute bottom-3 left-1/2 z-20 w-full max-w-7xl -translate-x-1/2 px-4 text-center text-xs opacity-60 sm:bottom-4 sm:left-auto sm:right-6 sm:translate-x-0 sm:px-0 sm:text-right",children:[f.jsxs("span",{className:"text-muted",children:[t("hero.photoCredit")," "]}),f.jsx("a",{href:"https://unsplash.com/@luobulinka",target:"_blank",rel:"noopener noreferrer",className:"font-medium text-primary/60 underline decoration-primary/20 underline-offset-2 hover:text-primary/80",children:"Luobulinka"})]})]}),f.jsx("section",{className:"border-b border-border bg-card/50",children:f.jsxs(Nt.blockquote,{className:"mx-auto max-w-3xl px-4 py-14 text-center sm:px-6 sm:py-20",...dn,children:[f.jsx("p",{className:"font-serif-display text-2xl leading-relaxed text-primary sm:text-3xl",children:t("intro.quote")}),f.jsx("p",{className:"mt-6 text-sm leading-relaxed text-muted",children:t("intro.quoteSupport")})]})}),f.jsx("section",{className:"mx-auto max-w-3xl px-4 py-16 sm:px-6 sm:py-20",children:f.jsxs(Nt.div,{...dn,children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-primary/70",children:t("intro.problemEyebrow")}),f.jsx("h2",{className:"font-serif-display mt-3 text-3xl text-primary sm:text-4xl",children:t("intro.problemTitle")}),f.jsx("p",{className:"mt-5 text-base leading-relaxed text-muted",children:t("intro.problemBody1")}),f.jsx("p",{className:"mt-4 text-base leading-relaxed text-muted",children:t("intro.problemBody2")}),f.jsx("p",{className:"mt-6 font-serif-display text-xl text-primary",children:t("intro.problemQuestion")})]})}),f.jsx("section",{className:"border-y border-border bg-white",children:f.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-16 sm:px-6 sm:py-20",children:[f.jsxs(Nt.div,{...dn,children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-primary/70",children:t("intro.valueEyebrow")}),f.jsx("h2",{className:"font-serif-display mt-3 text-3xl text-primary sm:text-4xl",children:t("intro.value1Title")}),f.jsx("p",{className:"mt-5 text-base leading-relaxed text-muted",children:t("intro.value1Body")}),Array.isArray(r)&&r.length>0&&f.jsx("ul",{className:"mt-6 space-y-2 text-sm leading-relaxed text-muted",children:r.map(u=>f.jsxs("li",{className:"flex gap-2",children:[f.jsx("span",{className:"mt-2 h-1 w-1 shrink-0 rounded-full bg-primary/50","aria-hidden":!0}),f.jsx("span",{children:u})]},u))}),f.jsx("p",{className:"mt-6 font-medium text-primary",children:t("intro.value1Close")})]}),f.jsxs(Nt.div,{className:"mt-16 border-t border-border pt-16",...dn,children:[f.jsx("h2",{className:"font-serif-display text-3xl text-primary sm:text-4xl",children:t("intro.value2Title")}),f.jsx("p",{className:"mt-5 text-base leading-relaxed text-muted",children:t("intro.value2Body")}),f.jsx("p",{className:"mt-6 font-serif-display text-xl text-primary",children:t("intro.value2Close")})]})]})}),f.jsxs("section",{className:"mx-auto max-w-5xl px-4 py-16 sm:px-6 sm:py-20",children:[f.jsxs(Nt.div,{className:"mx-auto max-w-3xl text-center",...dn,children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-primary/70",children:t("intro.featuresEyebrow")}),f.jsx("h2",{className:"font-serif-display mt-3 text-3xl text-primary sm:text-4xl",children:t("intro.featuresTitle")}),f.jsx("p",{className:"mt-4 text-base leading-relaxed text-muted",children:t("intro.featuresLead")}
1638)]}),f.jsx("div",{className:"mt-12 grid gap-10 sm:grid-cols-2",children:n.map((u,d)=>f.jsxs(Nt.div,{className:"border-t border-border pt-6",initial:{opacity:0,y:14},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.4,delay:d*.06},children:[f.jsx("h3",{className:"font-serif-display text-2xl text-primary",children:u.title}),f.jsx("p",{className:"mt-3 text-sm leading-relaxed text-muted",children:u.body})]},u.title))})]}),f.jsx("section",{className:"border-y border-border bg-card/40",children:f.jsxs(Nt.div,{className:"mx-auto max-w-3xl px-4 py-16 text-center sm:px-6 sm:py-20",...dn,children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-primary/70",children:t("intro.diffEyebrow")}),f.jsx("h2",{className:"font-serif-display mt-3 text-3xl text-primary sm:text-4xl",children:t("intro.diffTitle")}),f.jsx("p",{className:"mt-5 text-base leading-relaxed text-muted",children:t("intro.diffBody")}),f.jsx("p",{className:"font-serif-display mt-8 text-2xl text-primary",children:t("intro.diffClose")})]})}),f.jsx("section",{className:"mx-auto max-w-3xl px-4 py-16 sm:px-6 sm:py-20",children:f.jsxs(Nt.div,{...dn,children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-primary/70",children:t("intro.assistantEyebrow")}),f.jsx("h2",{className:"font-serif-display mt-3 text-3xl text-primary sm:text-4xl",children:t("intro.assistantTitle")}),f.jsx("p",{className:"mt-5 text-base leading-relaxed text-muted",children:t("intro.assistantBody")}),f.jsx("p",{className:"mt-6 font-medium text-primary",children:t("intro.assistantClose")})]})}),f.jsx("section",{className:"border-y border-border bg-white",children:f.jsxs("div",{className:"mx-auto max-w-4xl px-4 py-16 sm:px-6 sm:py-20",children:[f.jsxs(Nt.div,{className:"mx-auto max-w-3xl",...dn,children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-primary/70",children:t("intro.archEyebrow")}),f.jsx("h2",{className:"font-serif-display mt-3 text-3xl text-primary sm:text-4xl",children:t("intro.archTitle")}),f.jsx("p",{className:"mt-5 text-base leading-relaxed text-muted",children:t("intro.archBody")})]}),Array.isArray(a)&&a.length>0&&f.jsx(Nt.ol,{className:"mx-auto mt-10 flex max-w-2xl flex-col gap-0",...dn,children:a.map((u,d)=>f.jsxs("li",{className:"flex items-start gap-4",children:[f.jsxs("div",{className:"flex w-8 flex-col items-center",children:[f.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-full border border-primary/30 bg-primary/5 text-xs font-bold text-primary",children:d+1}),d<a.length-1&&f.jsx("span",{className:"my-1 h-6 w-px bg-border","aria-hidden":!0})]}),f.jsx("p",{className:"pb-6 pt-1.5 text-sm font-medium text-primary",children:u})]},u))}),f.jsx("div",{className:"mt-8 grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:i.map((u,d)=>f.jsxs(Nt.div,{className:"border-t border-border pt-4",initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.35,delay:d*.04},children:[f.jsx("h3",{className:"text-sm font-bold text-primary",children:u.name}),f.jsx("p",{className:"mt-2 text-sm leading-relaxed text-muted",children:u.desc})]},u.name))})]})}),f.jsx("section",{className:"border-b border-border bg-card/40",children:f.jsxs("div",{className:"mx-auto max-w-4xl px-4 py-16 sm:px-6 sm:py-20",children:[f.jsxs(Nt.div,{className:"mx-auto max-w-3xl",...dn,children:[f.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-primary/70",children:t("intro.glossaryEyebrow")}),f.jsx("h2",{className:"font-serif-display mt-3 text-3xl text-primary sm:text-4xl",children:t("intro.glossaryTitle")}),f.jsx("p",{className:"mt-5 text-base leading-relaxed text-muted",children:t("intro.glossaryLead")})]}),Array.isArray(l)&&l.length>0&&f.jsx("dl",{className:"mx-auto mt-12 max-w-3xl space-y-10",children:l.map((u,d)=>{const h=vce(u.term),m=h?$k[h]:`glossary-item-${d}`;return f.jsxs(Nt.div,{id:m,className:"rounded-lg border-t border-border pt-6",initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-24px"},transition:{duration:.4,delay:Math.min(d*.04,.2)},children:[f.jsx("dt",{className:"font-serif-display text-2xl text-primary",children:u.term}),f.jsx("dd",{className:"mt-3 whitespace-pre-line text-sm leading-relaxed text-muted sm:text-base",children:u.body})]},u.term)})})]})}),f.jsxs("section",{className:"relative isolate overflow-hidden",children:[f.jsx("div",{className:"pointer-events-none absolute inset-0","aria-hidden":!0,style:{background:"linear-gradient(180deg, #faf8f5 0%, #eef2f7 50%, #f5f2ed 100%)"}}),f.jsxs(Nt.div,{className:"relative mx-auto max-w-3xl px-4 py-20 text-center sm:px-6 sm:py-28",...dn,children:[f.jsx("p",{className:"font-serif-display text-4xl text-primary sm:text-5xl",children:t("brand")}),f.jsx("p",{className:"mt-4 text-sm font-bold uppercase tracking-[0.16em] text-primary/70",children:t("intro.closingTagline")}),f.jsx("p",{className:"mt-8 text-base leading-relaxed text-muted",children:t("intro.closingBody")}),Array.isArray(o)&&o.length>0&&f.jsx("ul",{className:"mx-auto mt-8 max-w-xl space-y-3 text-left",children:o.map(u=>f.jsx("li",{className:"font-serif-display text-lg leading-snug text-primary",children:u},u))}),f.jsx("p",{className:"mt-10 text-base leading-relaxed text-muted",children:t("intro.closingFinal")}),f.jsxs("div",{className:"mt-10 flex flex-wrap items-center justify-center gap-3",children:[f.jsx(be,{to:"/market",className:"btn-primary",children:t("intro.ctaMarket")}),f.jsx(be,{to:"/",className:"btn-secondary",children:t("intro.ctaHome")})]}),f.jsx("p",{className:"mx-auto mt-14 max-w-2xl text-xs leading-relaxed text-muted/80",children:t("intro.disclaimer")})]})]})]})}const Wge="/images/alert-bottom-reversal-bg.png";function YL(t,e=1){return t==null||!Number.isFinite(t)?"â":`${t>0?"+":""}${t.toFixed(e)}%`}function G0(t,e=0){return t==null||!Number.isFinite(t)?"â":t.toFixed(e)}function Hge(){const{t}=ye(),[e,r]=N.useState([]),[n,i]=N.useState([]),[a,o]=N.useState(!0),[l,u]=N.useState(null);N.useEffect(()=>{o(!0),Promise.all([Qse(80),Zse()]).then(([m,g])=>{r(m.events),i(g.cards),u(null)}
1638).catch(m=>{r([]),i([]),u(m instanceof Error?m.message:t("alerts.loadError"))}).finally(()=>o(!1))},[t]);const d=e.find(m=>m.type==="SKY_FALL"),h=e.filter(m=>m.id!==(d==null?void 0:d.id));return f.jsxs(f.Fragment,{children:[f.jsx(xt,{title:t("alerts.pageTitle"),description:t("alerts.pageSubtitle"),path:"/alerts"}),f.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-10 sm:px-6",children:[f.jsxs(be,{to:"/trail",className:"text-sm text-primary hover:underline",children:["â ",t("nav.discover")]}),f.jsx("h1",{className:"mt-2 font-serif text-3xl font-bold text-primary",children:t("alerts.pageTitle")}),f.jsx("p",{className:"mt-2 text-sm text-muted",children:t("alerts.pageSubtitle")}),a&&f.jsx("div",{className:"mt-8",children:f.jsx(vt,{})}),l&&!a&&f.jsx("p",{className:"mt-8 text-sm text-risk",children:l}),!a&&!l&&n.length>0&&f.jsxs("section",{className:"mt-8","aria-label":t("alerts.universeTitle"),children:[f.jsx("h2",{className:"text-sm font-semibold uppercase tracking-wide text-muted",children:t("alerts.universeTitle")}),f.jsx("div",{className:"mt-4 grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5",children:n.map(m=>f.jsx(qge,{card:m},m.ticker))})]}),!a&&!l&&d&&f.jsxs("div",{className:"mt-10 rounded-xl border border-red-300 bg-red-50 px-4 py-4",children:[f.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wide text-red-700",children:"SKY FALL"}),f.jsx("p",{className:"mt-1 font-serif text-xl font-bold text-red-900",children:d.title}),f.jsx("p",{className:"mt-2 text-sm text-red-900/80",children:d.summary}),f.jsx("p",{className:"mt-2 text-xs text-red-800/70",children:new Date(d.createdAt).toLocaleString()})]}),!a&&!l&&h.length===0&&!d&&f.jsx("p",{className:"mt-10 text-sm text-muted",children:t("alerts.empty")}),!a&&h.length>0&&f.jsx("ul",{className:"mt-10 space-y-4",children:h.map(m=>f.jsxs("li",{className:"border-t border-border pt-4 first:border-t-0 first:pt-0",children:[f.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[f.jsxs("p",{className:"text-[10px] font-bold uppercase tracking-wide text-muted",children:[m.type==="SKY_FALL"?"SKY FALL":t("alerts.bottomReversal"),m.ticker!=="*"?` · ${m.ticker}`:""]}),f.jsx("p",{className:"text-xs text-muted",children:new Date(m.createdAt).toLocaleString()})]}),f.jsx("p",{className:"mt-1 font-serif text-lg font-semibold text-primary",children:m.title}),f.jsx("p",{className:"mt-1 text-sm text-muted",children:m.summary}),m.ticker!=="*"&&f.jsxs(be,{to:`/strategy/${m.ticker}`,className:"mt-2 inline-block text-sm text-primary hover:underline",children:[t("alerts.viewTicker")," â"]})]},m.id))})]})]})}function qge({card:t}){const{t:e}=ye(),r=t.bottomReversalCandidate,n=t.signal??"â",i=t.trp!=null?`TRP ${G0(t.trp)}${t.trpVelocity7d!=null&&t.trpVelocity7d!==0?` (${t.trpVelocity7d>0?"+":""}${G0(t.trpVelocity7d)})`:""}`:"TRP â",a=t.squeezeTurningUp?e("alerts.squeezeUp"):t.squeezeMomentum!=null?`SQZ ${G0(t.squeezeMomentum,2)}`:"SQZ â",o=t.emaStretch?e("alerts.emaStretch"):t.emaStretchPct!=null?`EMA50 ${YL(t.emaStretchPct)}`:"EMA â";return f.jsxs(be,{to:`/strategy/${t.ticker}`,className:["group relative flex min-h-[9.5rem] flex-col overflow-hidden rounded-lg border p-3 transition",r?"border-orange-400/60 text-white shadow-sm ring-1 ring-orange-300/40":"border-border bg-card text-primary hover:border-primary/30"].join(" "),style:r?{backgroundImage:`linear-gradient(160deg, rgba(40,18,8,0.55) 0%, rgba(20,12,8,0.72) 100%), url(${Wge})`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,children:[r&&f.jsx("span",{className:"absolute right-2 top-2 rounded bg-black/35 px-1.5 py-0.5 text-[9px] font-bold uppercase tracking-wide text-orange-100",children:e("alerts.bottomReversal")}),f.jsx("p",{className:`font-mono text-sm font-bold tracking-wide ${r?"text-white":"text-primary"}`,children:t.ticker}),f.jsx("p",{className:`mt-0.5 truncate text-[11px] ${r?"text-white/75":"text-muted"}`,children:t.corpName}),f.jsxs("div",{className:`mt-2 space-y-0.5 text-[11px] leading-snug ${r?"text-white/90":"text-muted"}`,children:[f.jsxs("p",{children:[f.jsx("span",{className:r?"text-orange-100":"text-primary/80",children:n})," · ",i]}),f.jsxs("p",{children:[a," · ",o]}),f.jsxs("p",{className:r?"text-white":void 0,children:[e("alerts.return5d"),":"," ",f.jsx("span",{className:t.return5dPct==null?void 0:t.return5dPct<0?r?"text-orange-100":"text-risk":r?"text-emerald-200":"text-emerald-700",children:YL(t.return5dPct)})]})]})]})}function Gge(){return f.jsxs(ace,{children:[f.jsx(p5,{}),f.jsx(kne,{children:f.jsxs(Q4,{children:[f.jsx(ut,{path:"/",element:f.jsx(Mce,{})}),f.jsx(ut,{path:"/about",element:f.jsx(Uge,{})}),f.jsx(ut,{path:"/intro",element:f.jsx(d1,{to:"/about",replace:!0})}),f.jsx(ut,{path:"/market",element:f.jsx(Sde,{})}),f.jsx(ut,{path:"/trail",element:f.jsx(kde,{})}),f.jsx(ut,{path:"/compounders",element:f.jsx(Vde,{})}),f.jsx(ut,{path:"/journal/manage",element:f.jsx(Gde,{})}),f.jsx(ut,{path:"/journal/:slug",element:f.jsx(Hde,{})}),f.jsx(ut,{path:"/journal",element:f.jsx(Ude,{})}),f.jsx(ut,{path:"/top100",element:f.jsx(Pue,{})}),f.jsx(ut,{path:"/watchlist",element:f.jsx(bue,{})}),f.jsx(ut,{path:"/alerts",element:f.jsx(Hge,{})}),f.jsx(ut,{path:"/analyze",element:f.jsx(Hce,{})}),f.jsx(ut,{path:"/admin/traffic",element:f.jsx(Tue,{})}),f.jsx(ut,{path:"/news/market/:slug",element:f.jsx(Jue,{})}),f.jsx(ut,{path:"/news/market",element:f.jsx(Xue,{})}),f.jsx(ut,{path:"/macro/report/:slug",element:f.jsx(Hue,{})}),f.jsx(ut,{path:"/macro/:indicatorKey",element:f.jsx(Wue,{})}),f.jsx(ut,{path:"/strategy",element:f.jsx(nde,{})}),f.jsx(ut,{path:"/strategy/:ticker",element:f.jsx(hde,{})}),f.jsx(ut,{path:"/audit/:slug",element:f.jsx(yue,{})}),f.jsx(ut,{path:"/report/:slug",element:f.jsx(Kge,{})})]})})]})}function Kge(){const{slug:t}=uo();return f.jsx(d1,{to:`/audit/${t??""}`,replace:!0})}
1638const Yge={apiBase:"/api/nexus",displayMode:"landing",enabled:!0,statsPeriod:7};l4.createRoot(document.getElementById("root")).render(f.jsx(N.StrictMode,{children:f.jsx(o5,{future:{v7_startTransition:!0,v7_relativeSplatPath:!0},children:f.jsx(m5,{config:Yge,children:f.jsx(Gge,{})})})}));
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.