function i9(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var Tf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ev={exports:{}},wc={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var wC;function o9(){if(wC)return wc;wC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var l=null;if(s!==void 0&&(l=""+s),i.key!==void 0&&(l=""+i.key),"key"in i){s={};for(var u in i)u!=="key"&&(s[u]=i[u])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:s}}return wc.Fragment=t,wc.jsx=n,wc.jsxs=n,wc}var SC;function s9(){return SC||(SC=1,Ev.exports=o9()),Ev.exports}var m=s9(),_v={exports:{}},Sc={},Pv={exports:{}},Nv={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var AC;function l9(){return AC||(AC=1,(function(e){function t(z,H){var F=z.length;z.push(H);e:for(;0<F;){var ie=F-1>>>1,ue=z[ie];if(0<i(ue,H))z[ie]=H,z[F]=ue,F=ie;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var H=z[0],F=z.pop();if(F!==H){z[0]=F;e:for(var ie=0,ue=z.length,$=ue>>>1;ie<$;){var G=2*(ie+1)-1,te=z[G],le=G+1,fe=z[le];if(0>i(te,F))le<ue&&0>i(fe,te)?(z[ie]=fe,z[le]=F,ie=le):(z[ie]=te,z[G]=F,ie=G);else if(le<ue&&0>i(fe,F))z[ie]=fe,z[le]=F,ie=le;else break e}}return H}function i(z,H){var F=z.sortIndex-H.sortIndex;return F!==0?F:z.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var d=[],f=[],p=1,g=null,v=3,x=!1,A=!1,w=!1,S=!1,O=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function N(z){for(var H=n(f);H!==null;){if(H.callback===null)r(f);else if(H.startTime<=z)r(f),H.sortIndex=H.expirationTime,t(d,H);else break;H=n(f)}}function C(z){if(w=!1,N(z),!A)if(n(d)!==null)A=!0,P||(P=!0,U());else{var H=n(f);H!==null&&W(C,H.startTime-z)}}var P=!1,D=-1,M=5,k=-1;function q(){return S?!0:!(e.unstable_now()-k<M)}function L(){if(S=!1,P){var z=e.unstable_now();k=z;var H=!0;try{e:{A=!1,w&&(w=!1,E(D),D=-1),x=!0;var F=v;try{t:{for(N(z),g=n(d);g!==null&&!(g.expirationTime>z&&q());){var ie=g.callback;if(typeof ie=="function"){g.callback=null,v=g.priorityLevel;var ue=ie(g.expirationTime<=z);if(z=e.unstable_now(),typeof ue=="function"){g.callback=ue,N(z),H=!0;break t}g===n(d)&&r(d),N(z)}else r(d);g=n(d)}if(g!==null)H=!0;else{var $=n(f);$!==null&&W(C,$.startTime-z),H=!1}}break e}finally{g=null,v=F,x=!1}H=void 0}}finally{H?U():P=!1}}}var U;if(typeof j=="function")U=function(){j(L)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,J=X.port2;X.port1.onmessage=L,U=function(){J.postMessage(null)}}else U=function(){O(L,0)};function W(z,H){D=O(function(){z(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(z){switch(v){case 1:case 2:case 3:var H=3;break;default:H=v}var F=v;v=H;try{return z()}finally{v=F}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(z,H){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var F=v;v=z;try{return H()}finally{v=F}},e.unstable_scheduleCallback=function(z,H,F){var ie=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ie+F:ie):F=ie,z){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=F+ue,z={id:p++,callback:H,priorityLevel:z,startTime:F,expirationTime:ue,sortIndex:-1},F>ie?(z.sortIndex=F,t(f,z),n(d)===null&&z===n(f)&&(w?(E(D),D=-1):w=!0,W(C,F-ie))):(z.sortIndex=ue,t(d,z),A||x||(A=!0,P||(P=!0,U()))),z},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(z){var H=v;return function(){var F=v;v=H;try{return z.apply(this,arguments)}finally{v=F}}}})(Nv)),Nv}var jC;function c9(){return jC||(jC=1,Pv.exports=l9()),Pv.exports}var Dv={exports:{}},Pe={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var OC;function u9(){if(OC)return Pe;OC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function x($){return $===null||typeof $!="object"?null:($=v&&$[v]||$["@@iterator"],typeof $=="function"?$:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,S={};function O($,G,te){this.props=$,this.context=G,this.refs=S,this.updater=te||A}O.prototype.isReactComponent={},O.prototype.setState=function($,G){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,G,"setState")},O.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function E(){}E.prototype=O.prototype;function j($,G,te){this.props=$,this.context=G,this.refs=S,this.updater=te||A}var N=j.prototype=new E;N.constructor=j,w(N,O.prototype),N.isPureReactComponent=!0;var C=Array.isArray;function P(){}var D={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function k($,G,te){var le=te.ref;return{$$typeof:e,type:$,key:G,ref:le!==void 0?le:null,props:te}}function q($,G){return k($.type,G,$.props)}function L($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function U($){var G={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(te){return G[te]})}var X=/\/+/g;function J($,G){return typeof $=="object"&&$!==null&&$.key!=null?U(""+$.key):G.toString(36)}function W($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(P,P):($.status="pending",$.then(function(G){$.status==="pending"&&($.status="fulfilled",$.value=G)},function(G){$.status==="pending"&&($.status="rejected",$.reason=G)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function z($,G,te,le,fe){var Se=typeof $;(Se==="undefined"||Se==="boolean")&&($=null);var be=!1;if($===null)be=!0;else switch(Se){case"bigint":case"string":case"number":be=!0;break;case"object":switch($.$$typeof){case e:case t:be=!0;break;case p:return be=$._init,z(be($._payload),G,te,le,fe)}}if(be)return fe=fe($),be=le===""?"."+J($,0):le,C(fe)?(te="",be!=null&&(te=be.replace(X,"$&/")+"/"),z(fe,G,te,"",function(Ae){return Ae})):fe!=null&&(L(fe)&&(fe=q(fe,te+(fe.key==null||$&&$.key===fe.key?"":(""+fe.key).replace(X,"$&/")+"/")+be)),G.push(fe)),1;be=0;var Fe=le===""?".":le+":";if(C($))for(var ce=0;ce<$.length;ce++)le=$[ce],Se=Fe+J(le,ce),be+=z(le,G,te,Se,fe);else if(ce=x($),typeof ce=="function")for($=ce.call($),ce=0;!(le=$.next()).done;)le=le.value,Se=Fe+J(le,ce++),be+=z(le,G,te,Se,fe);else if(Se==="object"){if(typeof $.then=="function")return z(W($),G,te,le,fe);throw G=String($),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return be}function H($,G,te){if($==null)return $;var le=[],fe=0;return z($,le,"","",function(Se){return G.call(te,Se,fe++)}),le}function F($){if($._status===-1){var G=$._result;G=G(),G.then(function(te){($._status===0||$._status===-1)&&($._status=1,$._result=te)},function(te){($._status===0||$._status===-1)&&($._status=2,$._result=te)}),$._status===-1&&($._status=0,$._result=G)}if($._status===1)return $._result.default;throw $._result}var ie=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},ue={map:H,forEach:function($,G,te){H($,function(){G.apply(this,arguments)},te)},count:function($){var G=0;return H($,function(){G++}),G},toArray:function($){return H($,function(G){return G})||[]},only:function($){if(!L($))throw Error("React.Children.only expected to receive a single React element child.");return $}};return Pe.Activity=g,Pe.Children=ue,Pe.Component=O,Pe.Fragment=n,Pe.Profiler=i,Pe.PureComponent=j,Pe.StrictMode=r,Pe.Suspense=d,Pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,Pe.__COMPILER_RUNTIME={__proto__:null,c:function($){return D.H.useMemoCache($)}},Pe.cache=function($){return function(){return $.apply(null,arguments)}},Pe.cacheSignal=function(){return null},Pe.cloneElement=function($,G,te){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var le=w({},$.props),fe=$.key;if(G!=null)for(Se in G.key!==void 0&&(fe=""+G.key),G)!M.call(G,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&G.ref===void 0||(le[Se]=G[Se]);var Se=arguments.length-2;if(Se===1)le.children=te;else if(1<Se){for(var be=Array(Se),Fe=0;Fe<Se;Fe++)be[Fe]=arguments[Fe+2];le.children=be}return k($.type,fe,le)},Pe.createContext=function($){return $={$$typeof:l,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:s,_context:$},$},Pe.createElement=function($,G,te){var le,fe={},Se=null;if(G!=null)for(le in G.key!==void 0&&(Se=""+G.key),G)M.call(G,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(fe[le]=G[le]);var be=arguments.length-2;if(be===1)fe.children=te;else if(1<be){for(var Fe=Array(be),ce=0;ce<be;ce++)Fe[ce]=arguments[ce+2];fe.children=Fe}if($&&$.defaultProps)for(le in be=$.defaultProps,be)fe[le]===void 0&&(fe[le]=be[le]);return k($,Se,fe)},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function($){return{$$typeof:u,render:$}},Pe.isValidElement=L,Pe.lazy=function($){return{$$typeof:p,_payload:{_status:-1,_result:$},_init:F}},Pe.memo=function($,G){return{$$typeof:f,type:$,compare:G===void 0?null:G}},Pe.startTransition=function($){var G=D.T,te={};D.T=te;try{var le=$(),fe=D.S;fe!==null&&fe(te,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(P,ie)}catch(Se){ie(Se)}finally{G!==null&&te.types!==null&&(G.types=te.types),D.T=G}},Pe.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},Pe.use=function($){return D.H.use($)},Pe.useActionState=function($,G,te){return D.H.useActionState($,G,te)},Pe.useCallback=function($,G){return D.H.useCallback($,G)},Pe.useContext=function($){return D.H.useContext($)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function($,G){return D.H.useDeferredValue($,G)},Pe.useEffect=function($,G){return D.H.useEffect($,G)},Pe.useEffectEvent=function($){return D.H.useEffectEvent($)},Pe.useId=function(){return D.H.useId()},Pe.useImperativeHandle=function($,G,te){return D.H.useImperativeHandle($,G,te)},Pe.useInsertionEffect=function($,G){return D.H.useInsertionEffect($,G)},Pe.useLayoutEffect=function($,G){return D.H.useLayoutEffect($,G)},Pe.useMemo=function($,G){return D.H.useMemo($,G)},Pe.useOptimistic=function($,G){return D.H.useOptimistic($,G)},Pe.useReducer=function($,G,te){return D.H.useReducer($,G,te)},Pe.useRef=function($){return D.H.useRef($)},Pe.useState=function($){return D.H.useState($)},Pe.useSyncExternalStore=function($,G,te){return D.H.useSyncExternalStore($,G,te)},Pe.useTransition=function(){return D.H.useTransition()},Pe.version="19.2.1",Pe}var TC;function gp(){return TC||(TC=1,Dv.exports=u9()),Dv.exports}var Mv={exports:{}},cn={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var CC;function d9(){if(CC)return cn;CC=1;var e=gp();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)f+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(d,f,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:g==null?null:""+g,children:d,containerInfo:f,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,cn.createPortal=function(d,f){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,p)},cn.flushSync=function(d){var f=l.T,p=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=p,r.d.f()}},cn.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},cn.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},cn.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var p=f.as,g=u(p,f.crossOrigin),v=typeof f.integrity=="string"?f.integrity:void 0,x=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;p==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:x}):p==="script"&&r.d.X(d,{crossOrigin:g,integrity:v,fetchPriority:x,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},cn.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var p=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},cn.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var p=f.as,g=u(p,f.crossOrigin);r.d.L(d,p,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},cn.preloadModule=function(d,f){if(typeof d=="string")if(f){var p=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},cn.requestFormReset=function(d){r.d.r(d)},cn.unstable_batchedUpdates=function(d,f){return d(f)},cn.useFormState=function(d,f,p){return l.H.useFormState(d,f,p)},cn.useFormStatus=function(){return l.H.useHostTransitionStatus()},cn.version="19.2.1",cn}var EC;function v3(){if(EC)return Mv.exports;EC=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Mv.exports=d9(),Mv.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var _C;function f9(){if(_C)return Sc;_C=1;var e=c9(),t=gp(),n=v3();function r(a){var o="https://react.dev/errors/"+a;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+a+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function s(a){var o=a,c=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,(o.flags&4098)!==0&&(c=o.return),a=o.return;while(a)}return o.tag===3?c:null}function l(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function u(a){if(a.tag===31){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function d(a){if(s(a)!==a)throw Error(r(188))}function f(a){var o=a.alternate;if(!o){if(o=s(a),o===null)throw Error(r(188));return o!==a?null:a}for(var c=a,h=o;;){var y=c.return;if(y===null)break;var b=y.alternate;if(b===null){if(h=y.return,h!==null){c=h;continue}break}if(y.child===b.child){for(b=y.child;b;){if(b===c)return d(y),a;if(b===h)return d(y),o;b=b.sibling}throw Error(r(188))}if(c.return!==h.return)c=y,h=b;else{for(var _=!1,R=y.child;R;){if(R===c){_=!0,c=y,h=b;break}if(R===h){_=!0,h=y,c=b;break}R=R.sibling}if(!_){for(R=b.child;R;){if(R===c){_=!0,c=b,h=y;break}if(R===h){_=!0,h=b,c=y;break}R=R.sibling}if(!_)throw Error(r(189))}}if(c.alternate!==h)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?a:o}function p(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a;for(a=a.child;a!==null;){if(o=p(a),o!==null)return o;a=a.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),j=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function U(a){return a===null||typeof a!="object"?null:(a=L&&a[L]||a["@@iterator"],typeof a=="function"?a:null)}var X=Symbol.for("react.client.reference");function J(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===X?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case w:return"Fragment";case O:return"Profiler";case S:return"StrictMode";case C:return"Suspense";case P:return"SuspenseList";case k:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case A:return"Portal";case j:return a.displayName||"Context";case E:return(a._context.displayName||"Context")+".Consumer";case N:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case D:return o=a.displayName||null,o!==null?o:J(a.type)||"Memo";case M:o=a._payload,a=a._init;try{return J(a(o))}catch{}}return null}var W=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ie=[],ue=-1;function $(a){return{current:a}}function G(a){0>ue||(a.current=ie[ue],ie[ue]=null,ue--)}function te(a,o){ue++,ie[ue]=a.current,a.current=o}var le=$(null),fe=$(null),Se=$(null),be=$(null);function Fe(a,o){switch(te(Se,o),te(fe,a),te(le,null),o.nodeType){case 9:case 11:a=(a=o.documentElement)&&(a=a.namespaceURI)?HT(a):0;break;default:if(a=o.tagName,o=o.namespaceURI)o=HT(o),a=FT(o,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}G(le),te(le,a)}function ce(){G(le),G(fe),G(Se)}function Ae(a){a.memoizedState!==null&&te(be,a);var o=le.current,c=FT(o,a.type);o!==c&&(te(fe,a),te(le,c))}function Ce(a){fe.current===a&&(G(le),G(fe)),be.current===a&&(G(be),vc._currentValue=F)}var se,ht;function Re(a){if(se===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);se=o&&o[1]||"",ht=-1<c.stack.indexOf(`
    at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
`+se+a+ht}var bt=!1;function wt(a,o){if(!a||bt)return"";bt=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(o){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(ee){var Q=ee}Reflect.construct(a,[],oe)}else{try{oe.call()}catch(ee){Q=ee}a.call(oe.prototype)}}else{try{throw Error()}catch(ee){Q=ee}(oe=a())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(ee){if(ee&&Q&&typeof ee.stack=="string")return[ee.stack,Q.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=h.DetermineComponentFrameRoot(),_=b[0],R=b[1];if(_&&R){var I=_.split(`
`),Z=R.split(`
`);for(y=h=0;h<I.length&&!I[h].includes("DetermineComponentFrameRoot");)h++;for(;y<Z.length&&!Z[y].includes("DetermineComponentFrameRoot");)y++;if(h===I.length||y===Z.length)for(h=I.length-1,y=Z.length-1;1<=h&&0<=y&&I[h]!==Z[y];)y--;for(;1<=h&&0<=y;h--,y--)if(I[h]!==Z[y]){if(h!==1||y!==1)do if(h--,y--,0>y||I[h]!==Z[y]){var ne=`
`+I[h].replace(" at new "," at ");return a.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",a.displayName)),ne}while(1<=h&&0<=y);break}}}finally{bt=!1,Error.prepareStackTrace=c}return(c=a?a.displayName||a.name:"")?Re(c):""}function sn(a,o){switch(a.tag){case 26:case 27:case 5:return Re(a.type);case 16:return Re("Lazy");case 13:return a.child!==o&&o!==null?Re("Suspense Fallback"):Re("Suspense");case 19:return Re("SuspenseList");case 0:case 15:return wt(a.type,!1);case 11:return wt(a.type.render,!1);case 1:return wt(a.type,!0);case 31:return Re("Activity");default:return""}}function xr(a){try{var o="",c=null;do o+=sn(a,c),c=a,a=a.return;while(a);return o}catch(h){return`
Error generating stack: `+h.message+`
`+h.stack}}var Rr=Object.prototype.hasOwnProperty,za=e.unstable_scheduleCallback,br=e.unstable_cancelCallback,Wr=e.unstable_shouldYield,El=e.unstable_requestPaint,ln=e.unstable_now,sd=e.unstable_getCurrentPriorityLevel,S2=e.unstable_ImmediatePriority,A2=e.unstable_UserBlockingPriority,ld=e.unstable_NormalPriority,I$=e.unstable_LowPriority,j2=e.unstable_IdlePriority,q$=e.log,V$=e.unstable_setDisableYieldValue,_l=null,Pn=null;function La(a){if(typeof q$=="function"&&V$(a),Pn&&typeof Pn.setStrictMode=="function")try{Pn.setStrictMode(_l,a)}catch{}}var Nn=Math.clz32?Math.clz32:F$,U$=Math.log,H$=Math.LN2;function F$(a){return a>>>=0,a===0?32:31-(U$(a)/H$|0)|0}var cd=256,ud=262144,dd=4194304;function Oi(a){var o=a&42;if(o!==0)return o;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function fd(a,o,c){var h=a.pendingLanes;if(h===0)return 0;var y=0,b=a.suspendedLanes,_=a.pingedLanes;a=a.warmLanes;var R=h&134217727;return R!==0?(h=R&~b,h!==0?y=Oi(h):(_&=R,_!==0?y=Oi(_):c||(c=R&~a,c!==0&&(y=Oi(c))))):(R=h&~b,R!==0?y=Oi(R):_!==0?y=Oi(_):c||(c=h&~a,c!==0&&(y=Oi(c)))),y===0?0:o!==0&&o!==y&&(o&b)===0&&(b=y&-y,c=o&-o,b>=c||b===32&&(c&4194048)!==0)?o:y}function Pl(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function G$(a,o){switch(a){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function O2(){var a=dd;return dd<<=1,(dd&62914560)===0&&(dd=4194304),a}function gm(a){for(var o=[],c=0;31>c;c++)o.push(a);return o}function Nl(a,o){a.pendingLanes|=o,o!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function K$(a,o,c,h,y,b){var _=a.pendingLanes;a.pendingLanes=c,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=c,a.entangledLanes&=c,a.errorRecoveryDisabledLanes&=c,a.shellSuspendCounter=0;var R=a.entanglements,I=a.expirationTimes,Z=a.hiddenUpdates;for(c=_&~c;0<c;){var ne=31-Nn(c),oe=1<<ne;R[ne]=0,I[ne]=-1;var Q=Z[ne];if(Q!==null)for(Z[ne]=null,ne=0;ne<Q.length;ne++){var ee=Q[ne];ee!==null&&(ee.lane&=-536870913)}c&=~oe}h!==0&&T2(a,h,0),b!==0&&y===0&&a.tag!==0&&(a.suspendedLanes|=b&~(_&~o))}function T2(a,o,c){a.pendingLanes|=o,a.suspendedLanes&=~o;var h=31-Nn(o);a.entangledLanes|=o,a.entanglements[h]=a.entanglements[h]|1073741824|c&261930}function C2(a,o){var c=a.entangledLanes|=o;for(a=a.entanglements;c;){var h=31-Nn(c),y=1<<h;y&o|a[h]&o&&(a[h]|=o),c&=~y}}function E2(a,o){var c=o&-o;return c=(c&42)!==0?1:vm(c),(c&(a.suspendedLanes|o))!==0?0:c}function vm(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function ym(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function _2(){var a=H.p;return a!==0?a:(a=window.event,a===void 0?32:pC(a.type))}function P2(a,o){var c=H.p;try{return H.p=a,o()}finally{H.p=c}}var $a=Math.random().toString(36).slice(2),Jt="__reactFiber$"+$a,bn="__reactProps$"+$a,Co="__reactContainer$"+$a,xm="__reactEvents$"+$a,X$="__reactListeners$"+$a,Y$="__reactHandles$"+$a,N2="__reactResources$"+$a,Dl="__reactMarker$"+$a;function bm(a){delete a[Jt],delete a[bn],delete a[xm],delete a[X$],delete a[Y$]}function Eo(a){var o=a[Jt];if(o)return o;for(var c=a.parentNode;c;){if(o=c[Co]||c[Jt]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(a=QT(a);a!==null;){if(c=a[Jt])return c;a=QT(a)}return o}a=c,c=a.parentNode}return null}function _o(a){if(a=a[Jt]||a[Co]){var o=a.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return a}return null}function Ml(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a.stateNode;throw Error(r(33))}function Po(a){var o=a[N2];return o||(o=a[N2]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Xt(a){a[Dl]=!0}var D2=new Set,M2={};function Ti(a,o){No(a,o),No(a+"Capture",o)}function No(a,o){for(M2[a]=o,a=0;a<o.length;a++)D2.add(o[a])}var W$=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),R2={},k2={};function Z$(a){return Rr.call(k2,a)?!0:Rr.call(R2,a)?!1:W$.test(a)?k2[a]=!0:(R2[a]=!0,!1)}function hd(a,o,c){if(Z$(o))if(c===null)a.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":a.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){a.removeAttribute(o);return}}a.setAttribute(o,""+c)}}function pd(a,o,c){if(c===null)a.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(o);return}a.setAttribute(o,""+c)}}function Zr(a,o,c,h){if(h===null)a.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(c);return}a.setAttributeNS(o,c,""+h)}}function Xn(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function z2(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Q$(a,o,c){var h=Object.getOwnPropertyDescriptor(a.constructor.prototype,o);if(!a.hasOwnProperty(o)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var y=h.get,b=h.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return y.call(this)},set:function(_){c=""+_,b.call(this,_)}}),Object.defineProperty(a,o,{enumerable:h.enumerable}),{getValue:function(){return c},setValue:function(_){c=""+_},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function wm(a){if(!a._valueTracker){var o=z2(a)?"checked":"value";a._valueTracker=Q$(a,o,""+a[o])}}function L2(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var c=o.getValue(),h="";return a&&(h=z2(a)?a.checked?"true":"false":a.value),a=h,a!==c?(o.setValue(a),!0):!1}function md(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var J$=/[\n"\\]/g;function Yn(a){return a.replace(J$,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Sm(a,o,c,h,y,b,_,R){a.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?a.type=_:a.removeAttribute("type"),o!=null?_==="number"?(o===0&&a.value===""||a.value!=o)&&(a.value=""+Xn(o)):a.value!==""+Xn(o)&&(a.value=""+Xn(o)):_!=="submit"&&_!=="reset"||a.removeAttribute("value"),o!=null?Am(a,_,Xn(o)):c!=null?Am(a,_,Xn(c)):h!=null&&a.removeAttribute("value"),y==null&&b!=null&&(a.defaultChecked=!!b),y!=null&&(a.checked=y&&typeof y!="function"&&typeof y!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?a.name=""+Xn(R):a.removeAttribute("name")}function $2(a,o,c,h,y,b,_,R){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(a.type=b),o!=null||c!=null){if(!(b!=="submit"&&b!=="reset"||o!=null)){wm(a);return}c=c!=null?""+Xn(c):"",o=o!=null?""+Xn(o):c,R||o===a.value||(a.value=o),a.defaultValue=o}h=h??y,h=typeof h!="function"&&typeof h!="symbol"&&!!h,a.checked=R?a.checked:!!h,a.defaultChecked=!!h,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(a.name=_),wm(a)}function Am(a,o,c){o==="number"&&md(a.ownerDocument)===a||a.defaultValue===""+c||(a.defaultValue=""+c)}function Do(a,o,c,h){if(a=a.options,o){o={};for(var y=0;y<c.length;y++)o["$"+c[y]]=!0;for(c=0;c<a.length;c++)y=o.hasOwnProperty("$"+a[c].value),a[c].selected!==y&&(a[c].selected=y),y&&h&&(a[c].defaultSelected=!0)}else{for(c=""+Xn(c),o=null,y=0;y<a.length;y++){if(a[y].value===c){a[y].selected=!0,h&&(a[y].defaultSelected=!0);return}o!==null||a[y].disabled||(o=a[y])}o!==null&&(o.selected=!0)}}function B2(a,o,c){if(o!=null&&(o=""+Xn(o),o!==a.value&&(a.value=o),c==null)){a.defaultValue!==o&&(a.defaultValue=o);return}a.defaultValue=c!=null?""+Xn(c):""}function I2(a,o,c,h){if(o==null){if(h!=null){if(c!=null)throw Error(r(92));if(W(h)){if(1<h.length)throw Error(r(93));h=h[0]}c=h}c==null&&(c=""),o=c}c=Xn(o),a.defaultValue=c,h=a.textContent,h===c&&h!==""&&h!==null&&(a.value=h),wm(a)}function Mo(a,o){if(o){var c=a.firstChild;if(c&&c===a.lastChild&&c.nodeType===3){c.nodeValue=o;return}}a.textContent=o}var eB=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function q2(a,o,c){var h=o.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?a.setProperty(o,""):o==="float"?a.cssFloat="":a[o]="":h?a.setProperty(o,c):typeof c!="number"||c===0||eB.has(o)?o==="float"?a.cssFloat=c:a[o]=(""+c).trim():a[o]=c+"px"}function V2(a,o,c){if(o!=null&&typeof o!="object")throw Error(r(62));if(a=a.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?a.setProperty(h,""):h==="float"?a.cssFloat="":a[h]="");for(var y in o)h=o[y],o.hasOwnProperty(y)&&c[y]!==h&&q2(a,y,h)}else for(var b in o)o.hasOwnProperty(b)&&q2(a,b,o[b])}function jm(a){if(a.indexOf("-")===-1)return!1;switch(a){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 tB=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),nB=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function gd(a){return nB.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Qr(){}var Om=null;function Tm(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Ro=null,ko=null;function U2(a){var o=_o(a);if(o&&(a=o.stateNode)){var c=a[bn]||null;e:switch(a=o.stateNode,o.type){case"input":if(Sm(a,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),o=c.name,c.type==="radio"&&o!=null){for(c=a;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Yn(""+o)+'"][type="radio"]'),o=0;o<c.length;o++){var h=c[o];if(h!==a&&h.form===a.form){var y=h[bn]||null;if(!y)throw Error(r(90));Sm(h,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(o=0;o<c.length;o++)h=c[o],h.form===a.form&&L2(h)}break e;case"textarea":B2(a,c.value,c.defaultValue);break e;case"select":o=c.value,o!=null&&Do(a,!!c.multiple,o,!1)}}}var Cm=!1;function H2(a,o,c){if(Cm)return a(o,c);Cm=!0;try{var h=a(o);return h}finally{if(Cm=!1,(Ro!==null||ko!==null)&&(rf(),Ro&&(o=Ro,a=ko,ko=Ro=null,U2(o),a)))for(o=0;o<a.length;o++)U2(a[o])}}function Rl(a,o){var c=a.stateNode;if(c===null)return null;var h=c[bn]||null;if(h===null)return null;c=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(a=a.type,h=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!h;break e;default:a=!1}if(a)return null;if(c&&typeof c!="function")throw Error(r(231,o,typeof c));return c}var Jr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Em=!1;if(Jr)try{var kl={};Object.defineProperty(kl,"passive",{get:function(){Em=!0}}),window.addEventListener("test",kl,kl),window.removeEventListener("test",kl,kl)}catch{Em=!1}var Ba=null,_m=null,vd=null;function F2(){if(vd)return vd;var a,o=_m,c=o.length,h,y="value"in Ba?Ba.value:Ba.textContent,b=y.length;for(a=0;a<c&&o[a]===y[a];a++);var _=c-a;for(h=1;h<=_&&o[c-h]===y[b-h];h++);return vd=y.slice(a,1<h?1-h:void 0)}function yd(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function xd(){return!0}function G2(){return!1}function wn(a){function o(c,h,y,b,_){this._reactName=c,this._targetInst=y,this.type=h,this.nativeEvent=b,this.target=_,this.currentTarget=null;for(var R in a)a.hasOwnProperty(R)&&(c=a[R],this[R]=c?c(b):b[R]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?xd:G2,this.isPropagationStopped=G2,this}return g(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=xd)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=xd)},persist:function(){},isPersistent:xd}),o}var Ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bd=wn(Ci),zl=g({},Ci,{view:0,detail:0}),rB=wn(zl),Pm,Nm,Ll,wd=g({},zl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mm,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Ll&&(Ll&&a.type==="mousemove"?(Pm=a.screenX-Ll.screenX,Nm=a.screenY-Ll.screenY):Nm=Pm=0,Ll=a),Pm)},movementY:function(a){return"movementY"in a?a.movementY:Nm}}),K2=wn(wd),aB=g({},wd,{dataTransfer:0}),iB=wn(aB),oB=g({},zl,{relatedTarget:0}),Dm=wn(oB),sB=g({},Ci,{animationName:0,elapsedTime:0,pseudoElement:0}),lB=wn(sB),cB=g({},Ci,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),uB=wn(cB),dB=g({},Ci,{data:0}),X2=wn(dB),fB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hB={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"},pB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mB(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=pB[a])?!!o[a]:!1}function Mm(){return mB}var gB=g({},zl,{key:function(a){if(a.key){var o=fB[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=yd(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?hB[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mm,charCode:function(a){return a.type==="keypress"?yd(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?yd(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),vB=wn(gB),yB=g({},wd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Y2=wn(yB),xB=g({},zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mm}),bB=wn(xB),wB=g({},Ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),SB=wn(wB),AB=g({},wd,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),jB=wn(AB),OB=g({},Ci,{newState:0,oldState:0}),TB=wn(OB),CB=[9,13,27,32],Rm=Jr&&"CompositionEvent"in window,$l=null;Jr&&"documentMode"in document&&($l=document.documentMode);var EB=Jr&&"TextEvent"in window&&!$l,W2=Jr&&(!Rm||$l&&8<$l&&11>=$l),Z2=" ",Q2=!1;function J2(a,o){switch(a){case"keyup":return CB.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ej(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var zo=!1;function _B(a,o){switch(a){case"compositionend":return ej(o);case"keypress":return o.which!==32?null:(Q2=!0,Z2);case"textInput":return a=o.data,a===Z2&&Q2?null:a;default:return null}}function PB(a,o){if(zo)return a==="compositionend"||!Rm&&J2(a,o)?(a=F2(),vd=_m=Ba=null,zo=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return W2&&o.locale!=="ko"?null:o.data;default:return null}}var NB={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 tj(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!NB[a.type]:o==="textarea"}function nj(a,o,c,h){Ro?ko?ko.push(h):ko=[h]:Ro=h,o=df(o,"onChange"),0<o.length&&(c=new bd("onChange","change",null,c,h),a.push({event:c,listeners:o}))}var Bl=null,Il=null;function DB(a){$T(a,0)}function Sd(a){var o=Ml(a);if(L2(o))return a}function rj(a,o){if(a==="change")return o}var aj=!1;if(Jr){var km;if(Jr){var zm="oninput"in document;if(!zm){var ij=document.createElement("div");ij.setAttribute("oninput","return;"),zm=typeof ij.oninput=="function"}km=zm}else km=!1;aj=km&&(!document.documentMode||9<document.documentMode)}function oj(){Bl&&(Bl.detachEvent("onpropertychange",sj),Il=Bl=null)}function sj(a){if(a.propertyName==="value"&&Sd(Il)){var o=[];nj(o,Il,a,Tm(a)),H2(DB,o)}}function MB(a,o,c){a==="focusin"?(oj(),Bl=o,Il=c,Bl.attachEvent("onpropertychange",sj)):a==="focusout"&&oj()}function RB(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Sd(Il)}function kB(a,o){if(a==="click")return Sd(o)}function zB(a,o){if(a==="input"||a==="change")return Sd(o)}function LB(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var Dn=typeof Object.is=="function"?Object.is:LB;function ql(a,o){if(Dn(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var c=Object.keys(a),h=Object.keys(o);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var y=c[h];if(!Rr.call(o,y)||!Dn(a[y],o[y]))return!1}return!0}function lj(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function cj(a,o){var c=lj(a);a=0;for(var h;c;){if(c.nodeType===3){if(h=a+c.textContent.length,a<=o&&h>=o)return{node:c,offset:o-a};a=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=lj(c)}}function uj(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?uj(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function dj(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=md(a.document);o instanceof a.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)a=o.contentWindow;else break;o=md(a.document)}return o}function Lm(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}var $B=Jr&&"documentMode"in document&&11>=document.documentMode,Lo=null,$m=null,Vl=null,Bm=!1;function fj(a,o,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Bm||Lo==null||Lo!==md(h)||(h=Lo,"selectionStart"in h&&Lm(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Vl&&ql(Vl,h)||(Vl=h,h=df($m,"onSelect"),0<h.length&&(o=new bd("onSelect","select",null,o,c),a.push({event:o,listeners:h}),o.target=Lo)))}function Ei(a,o){var c={};return c[a.toLowerCase()]=o.toLowerCase(),c["Webkit"+a]="webkit"+o,c["Moz"+a]="moz"+o,c}var $o={animationend:Ei("Animation","AnimationEnd"),animationiteration:Ei("Animation","AnimationIteration"),animationstart:Ei("Animation","AnimationStart"),transitionrun:Ei("Transition","TransitionRun"),transitionstart:Ei("Transition","TransitionStart"),transitioncancel:Ei("Transition","TransitionCancel"),transitionend:Ei("Transition","TransitionEnd")},Im={},hj={};Jr&&(hj=document.createElement("div").style,"AnimationEvent"in window||(delete $o.animationend.animation,delete $o.animationiteration.animation,delete $o.animationstart.animation),"TransitionEvent"in window||delete $o.transitionend.transition);function _i(a){if(Im[a])return Im[a];if(!$o[a])return a;var o=$o[a],c;for(c in o)if(o.hasOwnProperty(c)&&c in hj)return Im[a]=o[c];return a}var pj=_i("animationend"),mj=_i("animationiteration"),gj=_i("animationstart"),BB=_i("transitionrun"),IB=_i("transitionstart"),qB=_i("transitioncancel"),vj=_i("transitionend"),yj=new Map,qm="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");qm.push("scrollEnd");function wr(a,o){yj.set(a,o),Ti(o,[a])}var Ad=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Wn=[],Bo=0,Vm=0;function jd(){for(var a=Bo,o=Vm=Bo=0;o<a;){var c=Wn[o];Wn[o++]=null;var h=Wn[o];Wn[o++]=null;var y=Wn[o];Wn[o++]=null;var b=Wn[o];if(Wn[o++]=null,h!==null&&y!==null){var _=h.pending;_===null?y.next=y:(y.next=_.next,_.next=y),h.pending=y}b!==0&&xj(c,y,b)}}function Od(a,o,c,h){Wn[Bo++]=a,Wn[Bo++]=o,Wn[Bo++]=c,Wn[Bo++]=h,Vm|=h,a.lanes|=h,a=a.alternate,a!==null&&(a.lanes|=h)}function Um(a,o,c,h){return Od(a,o,c,h),Td(a)}function Pi(a,o){return Od(a,null,null,o),Td(a)}function xj(a,o,c){a.lanes|=c;var h=a.alternate;h!==null&&(h.lanes|=c);for(var y=!1,b=a.return;b!==null;)b.childLanes|=c,h=b.alternate,h!==null&&(h.childLanes|=c),b.tag===22&&(a=b.stateNode,a===null||a._visibility&1||(y=!0)),a=b,b=b.return;return a.tag===3?(b=a.stateNode,y&&o!==null&&(y=31-Nn(c),a=b.hiddenUpdates,h=a[y],h===null?a[y]=[o]:h.push(o),o.lane=c|536870912),b):null}function Td(a){if(50<uc)throw uc=0,Qg=null,Error(r(185));for(var o=a.return;o!==null;)a=o,o=a.return;return a.tag===3?a.stateNode:null}var Io={};function VB(a,o,c,h){this.tag=a,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mn(a,o,c,h){return new VB(a,o,c,h)}function Hm(a){return a=a.prototype,!(!a||!a.isReactComponent)}function ea(a,o){var c=a.alternate;return c===null?(c=Mn(a.tag,o,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=o,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=a.flags&65011712,c.childLanes=a.childLanes,c.lanes=a.lanes,c.child=a.child,c.memoizedProps=a.memoizedProps,c.memoizedState=a.memoizedState,c.updateQueue=a.updateQueue,o=a.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=a.sibling,c.index=a.index,c.ref=a.ref,c.refCleanup=a.refCleanup,c}function bj(a,o){a.flags&=65011714;var c=a.alternate;return c===null?(a.childLanes=0,a.lanes=o,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,o=c.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),a}function Cd(a,o,c,h,y,b){var _=0;if(h=a,typeof a=="function")Hm(a)&&(_=1);else if(typeof a=="string")_=KI(a,c,le.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case k:return a=Mn(31,c,o,y),a.elementType=k,a.lanes=b,a;case w:return Ni(c.children,y,b,o);case S:_=8,y|=24;break;case O:return a=Mn(12,c,o,y|2),a.elementType=O,a.lanes=b,a;case C:return a=Mn(13,c,o,y),a.elementType=C,a.lanes=b,a;case P:return a=Mn(19,c,o,y),a.elementType=P,a.lanes=b,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case j:_=10;break e;case E:_=9;break e;case N:_=11;break e;case D:_=14;break e;case M:_=16,h=null;break e}_=29,c=Error(r(130,a===null?"null":typeof a,"")),h=null}return o=Mn(_,c,o,y),o.elementType=a,o.type=h,o.lanes=b,o}function Ni(a,o,c,h){return a=Mn(7,a,h,o),a.lanes=c,a}function Fm(a,o,c){return a=Mn(6,a,null,o),a.lanes=c,a}function wj(a){var o=Mn(18,null,null,0);return o.stateNode=a,o}function Gm(a,o,c){return o=Mn(4,a.children!==null?a.children:[],a.key,o),o.lanes=c,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}var Sj=new WeakMap;function Zn(a,o){if(typeof a=="object"&&a!==null){var c=Sj.get(a);return c!==void 0?c:(o={value:a,source:o,stack:xr(o)},Sj.set(a,o),o)}return{value:a,source:o,stack:xr(o)}}var qo=[],Vo=0,Ed=null,Ul=0,Qn=[],Jn=0,Ia=null,kr=1,zr="";function ta(a,o){qo[Vo++]=Ul,qo[Vo++]=Ed,Ed=a,Ul=o}function Aj(a,o,c){Qn[Jn++]=kr,Qn[Jn++]=zr,Qn[Jn++]=Ia,Ia=a;var h=kr;a=zr;var y=32-Nn(h)-1;h&=~(1<<y),c+=1;var b=32-Nn(o)+y;if(30<b){var _=y-y%5;b=(h&(1<<_)-1).toString(32),h>>=_,y-=_,kr=1<<32-Nn(o)+y|c<<y|h,zr=b+a}else kr=1<<b|c<<y|h,zr=a}function Km(a){a.return!==null&&(ta(a,1),Aj(a,1,0))}function Xm(a){for(;a===Ed;)Ed=qo[--Vo],qo[Vo]=null,Ul=qo[--Vo],qo[Vo]=null;for(;a===Ia;)Ia=Qn[--Jn],Qn[Jn]=null,zr=Qn[--Jn],Qn[Jn]=null,kr=Qn[--Jn],Qn[Jn]=null}function jj(a,o){Qn[Jn++]=kr,Qn[Jn++]=zr,Qn[Jn++]=Ia,kr=o.id,zr=o.overflow,Ia=a}var en=null,pt=null,Ve=!1,qa=null,er=!1,Ym=Error(r(519));function Va(a){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Hl(Zn(o,a)),Ym}function Oj(a){var o=a.stateNode,c=a.type,h=a.memoizedProps;switch(o[Jt]=a,o[bn]=h,c){case"dialog":$e("cancel",o),$e("close",o);break;case"iframe":case"object":case"embed":$e("load",o);break;case"video":case"audio":for(c=0;c<fc.length;c++)$e(fc[c],o);break;case"source":$e("error",o);break;case"img":case"image":case"link":$e("error",o),$e("load",o);break;case"details":$e("toggle",o);break;case"input":$e("invalid",o),$2(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":$e("invalid",o);break;case"textarea":$e("invalid",o),I2(o,h.value,h.defaultValue,h.children)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||o.textContent===""+c||h.suppressHydrationWarning===!0||VT(o.textContent,c)?(h.popover!=null&&($e("beforetoggle",o),$e("toggle",o)),h.onScroll!=null&&$e("scroll",o),h.onScrollEnd!=null&&$e("scrollend",o),h.onClick!=null&&(o.onclick=Qr),o=!0):o=!1,o||Va(a,!0)}function Tj(a){for(en=a.return;en;)switch(en.tag){case 5:case 31:case 13:er=!1;return;case 27:case 3:er=!0;return;default:en=en.return}}function Uo(a){if(a!==en)return!1;if(!Ve)return Tj(a),Ve=!0,!1;var o=a.tag,c;if((c=o!==3&&o!==27)&&((c=o===5)&&(c=a.type,c=!(c!=="form"&&c!=="button")||hv(a.type,a.memoizedProps)),c=!c),c&&pt&&Va(a),Tj(a),o===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));pt=ZT(a)}else if(o===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));pt=ZT(a)}else o===27?(o=pt,ni(a.type)?(a=yv,yv=null,pt=a):pt=o):pt=en?nr(a.stateNode.nextSibling):null;return!0}function Di(){pt=en=null,Ve=!1}function Wm(){var a=qa;return a!==null&&(On===null?On=a:On.push.apply(On,a),qa=null),a}function Hl(a){qa===null?qa=[a]:qa.push(a)}var Zm=$(null),Mi=null,na=null;function Ua(a,o,c){te(Zm,o._currentValue),o._currentValue=c}function ra(a){a._currentValue=Zm.current,G(Zm)}function Qm(a,o,c){for(;a!==null;){var h=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),a===c)break;a=a.return}}function Jm(a,o,c,h){var y=a.child;for(y!==null&&(y.return=a);y!==null;){var b=y.dependencies;if(b!==null){var _=y.child;b=b.firstContext;e:for(;b!==null;){var R=b;b=y;for(var I=0;I<o.length;I++)if(R.context===o[I]){b.lanes|=c,R=b.alternate,R!==null&&(R.lanes|=c),Qm(b.return,c,a),h||(_=null);break e}b=R.next}}else if(y.tag===18){if(_=y.return,_===null)throw Error(r(341));_.lanes|=c,b=_.alternate,b!==null&&(b.lanes|=c),Qm(_,c,a),_=null}else _=y.child;if(_!==null)_.return=y;else for(_=y;_!==null;){if(_===a){_=null;break}if(y=_.sibling,y!==null){y.return=_.return,_=y;break}_=_.return}y=_}}function Ho(a,o,c,h){a=null;for(var y=o,b=!1;y!==null;){if(!b){if((y.flags&524288)!==0)b=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var _=y.alternate;if(_===null)throw Error(r(387));if(_=_.memoizedProps,_!==null){var R=y.type;Dn(y.pendingProps.value,_.value)||(a!==null?a.push(R):a=[R])}}else if(y===be.current){if(_=y.alternate,_===null)throw Error(r(387));_.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(a!==null?a.push(vc):a=[vc])}y=y.return}a!==null&&Jm(o,a,c,h),o.flags|=262144}function _d(a){for(a=a.firstContext;a!==null;){if(!Dn(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Ri(a){Mi=a,na=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function tn(a){return Cj(Mi,a)}function Pd(a,o){return Mi===null&&Ri(a),Cj(a,o)}function Cj(a,o){var c=o._currentValue;if(o={context:o,memoizedValue:c,next:null},na===null){if(a===null)throw Error(r(308));na=o,a.dependencies={lanes:0,firstContext:o},a.flags|=524288}else na=na.next=o;return c}var UB=typeof AbortController<"u"?AbortController:function(){var a=[],o=this.signal={aborted:!1,addEventListener:function(c,h){a.push(h)}};this.abort=function(){o.aborted=!0,a.forEach(function(c){return c()})}},HB=e.unstable_scheduleCallback,FB=e.unstable_NormalPriority,Mt={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function eg(){return{controller:new UB,data:new Map,refCount:0}}function Fl(a){a.refCount--,a.refCount===0&&HB(FB,function(){a.controller.abort()})}var Gl=null,tg=0,Fo=0,Go=null;function GB(a,o){if(Gl===null){var c=Gl=[];tg=0,Fo=av(),Go={status:"pending",value:void 0,then:function(h){c.push(h)}}}return tg++,o.then(Ej,Ej),o}function Ej(){if(--tg===0&&Gl!==null){Go!==null&&(Go.status="fulfilled");var a=Gl;Gl=null,Fo=0,Go=null;for(var o=0;o<a.length;o++)(0,a[o])()}}function KB(a,o){var c=[],h={status:"pending",value:null,reason:null,then:function(y){c.push(y)}};return a.then(function(){h.status="fulfilled",h.value=o;for(var y=0;y<c.length;y++)(0,c[y])(o)},function(y){for(h.status="rejected",h.reason=y,y=0;y<c.length;y++)(0,c[y])(void 0)}),h}var _j=z.S;z.S=function(a,o){fT=ln(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&GB(a,o),_j!==null&&_j(a,o)};var ki=$(null);function ng(){var a=ki.current;return a!==null?a:lt.pooledCache}function Nd(a,o){o===null?te(ki,ki.current):te(ki,o.pool)}function Pj(){var a=ng();return a===null?null:{parent:Mt._currentValue,pool:a}}var Ko=Error(r(460)),rg=Error(r(474)),Dd=Error(r(542)),Md={then:function(){}};function Nj(a){return a=a.status,a==="fulfilled"||a==="rejected"}function Dj(a,o,c){switch(c=a[c],c===void 0?a.push(o):c!==o&&(o.then(Qr,Qr),o=c),o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,Rj(a),a;default:if(typeof o.status=="string")o.then(Qr,Qr);else{if(a=lt,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=o,a.status="pending",a.then(function(h){if(o.status==="pending"){var y=o;y.status="fulfilled",y.value=h}},function(h){if(o.status==="pending"){var y=o;y.status="rejected",y.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,Rj(a),a}throw Li=o,Ko}}function zi(a){try{var o=a._init;return o(a._payload)}catch(c){throw c!==null&&typeof c=="object"&&typeof c.then=="function"?(Li=c,Ko):c}}var Li=null;function Mj(){if(Li===null)throw Error(r(459));var a=Li;return Li=null,a}function Rj(a){if(a===Ko||a===Dd)throw Error(r(483))}var Xo=null,Kl=0;function Rd(a){var o=Kl;return Kl+=1,Xo===null&&(Xo=[]),Dj(Xo,a,o)}function Xl(a,o){o=o.props.ref,a.ref=o!==void 0?o:null}function kd(a,o){throw o.$$typeof===v?Error(r(525)):(a=Object.prototype.toString.call(o),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a)))}function kj(a){function o(K,V){if(a){var Y=K.deletions;Y===null?(K.deletions=[V],K.flags|=16):Y.push(V)}}function c(K,V){if(!a)return null;for(;V!==null;)o(K,V),V=V.sibling;return null}function h(K){for(var V=new Map;K!==null;)K.key!==null?V.set(K.key,K):V.set(K.index,K),K=K.sibling;return V}function y(K,V){return K=ea(K,V),K.index=0,K.sibling=null,K}function b(K,V,Y){return K.index=Y,a?(Y=K.alternate,Y!==null?(Y=Y.index,Y<V?(K.flags|=67108866,V):Y):(K.flags|=67108866,V)):(K.flags|=1048576,V)}function _(K){return a&&K.alternate===null&&(K.flags|=67108866),K}function R(K,V,Y,ae){return V===null||V.tag!==6?(V=Fm(Y,K.mode,ae),V.return=K,V):(V=y(V,Y),V.return=K,V)}function I(K,V,Y,ae){var we=Y.type;return we===w?ne(K,V,Y.props.children,ae,Y.key):V!==null&&(V.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===M&&zi(we)===V.type)?(V=y(V,Y.props),Xl(V,Y),V.return=K,V):(V=Cd(Y.type,Y.key,Y.props,null,K.mode,ae),Xl(V,Y),V.return=K,V)}function Z(K,V,Y,ae){return V===null||V.tag!==4||V.stateNode.containerInfo!==Y.containerInfo||V.stateNode.implementation!==Y.implementation?(V=Gm(Y,K.mode,ae),V.return=K,V):(V=y(V,Y.children||[]),V.return=K,V)}function ne(K,V,Y,ae,we){return V===null||V.tag!==7?(V=Ni(Y,K.mode,ae,we),V.return=K,V):(V=y(V,Y),V.return=K,V)}function oe(K,V,Y){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=Fm(""+V,K.mode,Y),V.return=K,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case x:return Y=Cd(V.type,V.key,V.props,null,K.mode,Y),Xl(Y,V),Y.return=K,Y;case A:return V=Gm(V,K.mode,Y),V.return=K,V;case M:return V=zi(V),oe(K,V,Y)}if(W(V)||U(V))return V=Ni(V,K.mode,Y,null),V.return=K,V;if(typeof V.then=="function")return oe(K,Rd(V),Y);if(V.$$typeof===j)return oe(K,Pd(K,V),Y);kd(K,V)}return null}function Q(K,V,Y,ae){var we=V!==null?V.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return we!==null?null:R(K,V,""+Y,ae);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case x:return Y.key===we?I(K,V,Y,ae):null;case A:return Y.key===we?Z(K,V,Y,ae):null;case M:return Y=zi(Y),Q(K,V,Y,ae)}if(W(Y)||U(Y))return we!==null?null:ne(K,V,Y,ae,null);if(typeof Y.then=="function")return Q(K,V,Rd(Y),ae);if(Y.$$typeof===j)return Q(K,V,Pd(K,Y),ae);kd(K,Y)}return null}function ee(K,V,Y,ae,we){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return K=K.get(Y)||null,R(V,K,""+ae,we);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case x:return K=K.get(ae.key===null?Y:ae.key)||null,I(V,K,ae,we);case A:return K=K.get(ae.key===null?Y:ae.key)||null,Z(V,K,ae,we);case M:return ae=zi(ae),ee(K,V,Y,ae,we)}if(W(ae)||U(ae))return K=K.get(Y)||null,ne(V,K,ae,we,null);if(typeof ae.then=="function")return ee(K,V,Y,Rd(ae),we);if(ae.$$typeof===j)return ee(K,V,Y,Pd(V,ae),we);kd(V,ae)}return null}function pe(K,V,Y,ae){for(var we=null,Ge=null,ve=V,ke=V=0,qe=null;ve!==null&&ke<Y.length;ke++){ve.index>ke?(qe=ve,ve=null):qe=ve.sibling;var Ke=Q(K,ve,Y[ke],ae);if(Ke===null){ve===null&&(ve=qe);break}a&&ve&&Ke.alternate===null&&o(K,ve),V=b(Ke,V,ke),Ge===null?we=Ke:Ge.sibling=Ke,Ge=Ke,ve=qe}if(ke===Y.length)return c(K,ve),Ve&&ta(K,ke),we;if(ve===null){for(;ke<Y.length;ke++)ve=oe(K,Y[ke],ae),ve!==null&&(V=b(ve,V,ke),Ge===null?we=ve:Ge.sibling=ve,Ge=ve);return Ve&&ta(K,ke),we}for(ve=h(ve);ke<Y.length;ke++)qe=ee(ve,K,ke,Y[ke],ae),qe!==null&&(a&&qe.alternate!==null&&ve.delete(qe.key===null?ke:qe.key),V=b(qe,V,ke),Ge===null?we=qe:Ge.sibling=qe,Ge=qe);return a&&ve.forEach(function(si){return o(K,si)}),Ve&&ta(K,ke),we}function Oe(K,V,Y,ae){if(Y==null)throw Error(r(151));for(var we=null,Ge=null,ve=V,ke=V=0,qe=null,Ke=Y.next();ve!==null&&!Ke.done;ke++,Ke=Y.next()){ve.index>ke?(qe=ve,ve=null):qe=ve.sibling;var si=Q(K,ve,Ke.value,ae);if(si===null){ve===null&&(ve=qe);break}a&&ve&&si.alternate===null&&o(K,ve),V=b(si,V,ke),Ge===null?we=si:Ge.sibling=si,Ge=si,ve=qe}if(Ke.done)return c(K,ve),Ve&&ta(K,ke),we;if(ve===null){for(;!Ke.done;ke++,Ke=Y.next())Ke=oe(K,Ke.value,ae),Ke!==null&&(V=b(Ke,V,ke),Ge===null?we=Ke:Ge.sibling=Ke,Ge=Ke);return Ve&&ta(K,ke),we}for(ve=h(ve);!Ke.done;ke++,Ke=Y.next())Ke=ee(ve,K,ke,Ke.value,ae),Ke!==null&&(a&&Ke.alternate!==null&&ve.delete(Ke.key===null?ke:Ke.key),V=b(Ke,V,ke),Ge===null?we=Ke:Ge.sibling=Ke,Ge=Ke);return a&&ve.forEach(function(a9){return o(K,a9)}),Ve&&ta(K,ke),we}function ot(K,V,Y,ae){if(typeof Y=="object"&&Y!==null&&Y.type===w&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case x:e:{for(var we=Y.key;V!==null;){if(V.key===we){if(we=Y.type,we===w){if(V.tag===7){c(K,V.sibling),ae=y(V,Y.props.children),ae.return=K,K=ae;break e}}else if(V.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===M&&zi(we)===V.type){c(K,V.sibling),ae=y(V,Y.props),Xl(ae,Y),ae.return=K,K=ae;break e}c(K,V);break}else o(K,V);V=V.sibling}Y.type===w?(ae=Ni(Y.props.children,K.mode,ae,Y.key),ae.return=K,K=ae):(ae=Cd(Y.type,Y.key,Y.props,null,K.mode,ae),Xl(ae,Y),ae.return=K,K=ae)}return _(K);case A:e:{for(we=Y.key;V!==null;){if(V.key===we)if(V.tag===4&&V.stateNode.containerInfo===Y.containerInfo&&V.stateNode.implementation===Y.implementation){c(K,V.sibling),ae=y(V,Y.children||[]),ae.return=K,K=ae;break e}else{c(K,V);break}else o(K,V);V=V.sibling}ae=Gm(Y,K.mode,ae),ae.return=K,K=ae}return _(K);case M:return Y=zi(Y),ot(K,V,Y,ae)}if(W(Y))return pe(K,V,Y,ae);if(U(Y)){if(we=U(Y),typeof we!="function")throw Error(r(150));return Y=we.call(Y),Oe(K,V,Y,ae)}if(typeof Y.then=="function")return ot(K,V,Rd(Y),ae);if(Y.$$typeof===j)return ot(K,V,Pd(K,Y),ae);kd(K,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,V!==null&&V.tag===6?(c(K,V.sibling),ae=y(V,Y),ae.return=K,K=ae):(c(K,V),ae=Fm(Y,K.mode,ae),ae.return=K,K=ae),_(K)):c(K,V)}return function(K,V,Y,ae){try{Kl=0;var we=ot(K,V,Y,ae);return Xo=null,we}catch(ve){if(ve===Ko||ve===Dd)throw ve;var Ge=Mn(29,ve,null,K.mode);return Ge.lanes=ae,Ge.return=K,Ge}finally{}}}var $i=kj(!0),zj=kj(!1),Ha=!1;function ag(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ig(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Fa(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ga(a,o,c){var h=a.updateQueue;if(h===null)return null;if(h=h.shared,(We&2)!==0){var y=h.pending;return y===null?o.next=o:(o.next=y.next,y.next=o),h.pending=o,o=Td(a),xj(a,null,c),o}return Od(a,h,o,c),Td(a)}function Yl(a,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194048)!==0)){var h=o.lanes;h&=a.pendingLanes,c|=h,o.lanes=c,C2(a,c)}}function og(a,o){var c=a.updateQueue,h=a.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var y=null,b=null;if(c=c.firstBaseUpdate,c!==null){do{var _={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};b===null?y=b=_:b=b.next=_,c=c.next}while(c!==null);b===null?y=b=o:b=b.next=o}else y=b=o;c={baseState:h.baseState,firstBaseUpdate:y,lastBaseUpdate:b,shared:h.shared,callbacks:h.callbacks},a.updateQueue=c;return}a=c.lastBaseUpdate,a===null?c.firstBaseUpdate=o:a.next=o,c.lastBaseUpdate=o}var sg=!1;function Wl(){if(sg){var a=Go;if(a!==null)throw a}}function Zl(a,o,c,h){sg=!1;var y=a.updateQueue;Ha=!1;var b=y.firstBaseUpdate,_=y.lastBaseUpdate,R=y.shared.pending;if(R!==null){y.shared.pending=null;var I=R,Z=I.next;I.next=null,_===null?b=Z:_.next=Z,_=I;var ne=a.alternate;ne!==null&&(ne=ne.updateQueue,R=ne.lastBaseUpdate,R!==_&&(R===null?ne.firstBaseUpdate=Z:R.next=Z,ne.lastBaseUpdate=I))}if(b!==null){var oe=y.baseState;_=0,ne=Z=I=null,R=b;do{var Q=R.lane&-536870913,ee=Q!==R.lane;if(ee?(Ie&Q)===Q:(h&Q)===Q){Q!==0&&Q===Fo&&(sg=!0),ne!==null&&(ne=ne.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var pe=a,Oe=R;Q=o;var ot=c;switch(Oe.tag){case 1:if(pe=Oe.payload,typeof pe=="function"){oe=pe.call(ot,oe,Q);break e}oe=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Oe.payload,Q=typeof pe=="function"?pe.call(ot,oe,Q):pe,Q==null)break e;oe=g({},oe,Q);break e;case 2:Ha=!0}}Q=R.callback,Q!==null&&(a.flags|=64,ee&&(a.flags|=8192),ee=y.callbacks,ee===null?y.callbacks=[Q]:ee.push(Q))}else ee={lane:Q,tag:R.tag,payload:R.payload,callback:R.callback,next:null},ne===null?(Z=ne=ee,I=oe):ne=ne.next=ee,_|=Q;if(R=R.next,R===null){if(R=y.shared.pending,R===null)break;ee=R,R=ee.next,ee.next=null,y.lastBaseUpdate=ee,y.shared.pending=null}}while(!0);ne===null&&(I=oe),y.baseState=I,y.firstBaseUpdate=Z,y.lastBaseUpdate=ne,b===null&&(y.shared.lanes=0),Za|=_,a.lanes=_,a.memoizedState=oe}}function Lj(a,o){if(typeof a!="function")throw Error(r(191,a));a.call(o)}function $j(a,o){var c=a.callbacks;if(c!==null)for(a.callbacks=null,a=0;a<c.length;a++)Lj(c[a],o)}var Yo=$(null),zd=$(0);function Bj(a,o){a=fa,te(zd,a),te(Yo,o),fa=a|o.baseLanes}function lg(){te(zd,fa),te(Yo,Yo.current)}function cg(){fa=zd.current,G(Yo),G(zd)}var Rn=$(null),tr=null;function Ka(a){var o=a.alternate;te(Et,Et.current&1),te(Rn,a),tr===null&&(o===null||Yo.current!==null||o.memoizedState!==null)&&(tr=a)}function ug(a){te(Et,Et.current),te(Rn,a),tr===null&&(tr=a)}function Ij(a){a.tag===22?(te(Et,Et.current),te(Rn,a),tr===null&&(tr=a)):Xa()}function Xa(){te(Et,Et.current),te(Rn,Rn.current)}function kn(a){G(Rn),tr===a&&(tr=null),G(Et)}var Et=$(0);function Ld(a){for(var o=a;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||gv(c)||vv(c)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var aa=0,Me=null,at=null,Rt=null,$d=!1,Wo=!1,Bi=!1,Bd=0,Ql=0,Zo=null,XB=0;function jt(){throw Error(r(321))}function dg(a,o){if(o===null)return!1;for(var c=0;c<o.length&&c<a.length;c++)if(!Dn(a[c],o[c]))return!1;return!0}function fg(a,o,c,h,y,b){return aa=b,Me=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,z.H=a===null||a.memoizedState===null?AO:Cg,Bi=!1,b=c(h,y),Bi=!1,Wo&&(b=Vj(o,c,h,y)),qj(a),b}function qj(a){z.H=tc;var o=at!==null&&at.next!==null;if(aa=0,Rt=at=Me=null,$d=!1,Ql=0,Zo=null,o)throw Error(r(300));a===null||kt||(a=a.dependencies,a!==null&&_d(a)&&(kt=!0))}function Vj(a,o,c,h){Me=a;var y=0;do{if(Wo&&(Zo=null),Ql=0,Wo=!1,25<=y)throw Error(r(301));if(y+=1,Rt=at=null,a.updateQueue!=null){var b=a.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}z.H=jO,b=o(c,h)}while(Wo);return b}function YB(){var a=z.H,o=a.useState()[0];return o=typeof o.then=="function"?Jl(o):o,a=a.useState()[0],(at!==null?at.memoizedState:null)!==a&&(Me.flags|=1024),o}function hg(){var a=Bd!==0;return Bd=0,a}function pg(a,o,c){o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~c}function mg(a){if($d){for(a=a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}$d=!1}aa=0,Rt=at=Me=null,Wo=!1,Ql=Bd=0,Zo=null}function pn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?Me.memoizedState=Rt=a:Rt=Rt.next=a,Rt}function _t(){if(at===null){var a=Me.alternate;a=a!==null?a.memoizedState:null}else a=at.next;var o=Rt===null?Me.memoizedState:Rt.next;if(o!==null)Rt=o,at=a;else{if(a===null)throw Me.alternate===null?Error(r(467)):Error(r(310));at=a,a={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},Rt===null?Me.memoizedState=Rt=a:Rt=Rt.next=a}return Rt}function Id(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Jl(a){var o=Ql;return Ql+=1,Zo===null&&(Zo=[]),a=Dj(Zo,a,o),o=Me,(Rt===null?o.memoizedState:Rt.next)===null&&(o=o.alternate,z.H=o===null||o.memoizedState===null?AO:Cg),a}function qd(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Jl(a);if(a.$$typeof===j)return tn(a)}throw Error(r(438,String(a)))}function gg(a){var o=null,c=Me.updateQueue;if(c!==null&&(o=c.memoCache),o==null){var h=Me.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(y){return y.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),c===null&&(c=Id(),Me.updateQueue=c),c.memoCache=o,c=o.data[o.index],c===void 0)for(c=o.data[o.index]=Array(a),h=0;h<a;h++)c[h]=q;return o.index++,c}function ia(a,o){return typeof o=="function"?o(a):o}function Vd(a){var o=_t();return vg(o,at,a)}function vg(a,o,c){var h=a.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var y=a.baseQueue,b=h.pending;if(b!==null){if(y!==null){var _=y.next;y.next=b.next,b.next=_}o.baseQueue=y=b,h.pending=null}if(b=a.baseState,y===null)a.memoizedState=b;else{o=y.next;var R=_=null,I=null,Z=o,ne=!1;do{var oe=Z.lane&-536870913;if(oe!==Z.lane?(Ie&oe)===oe:(aa&oe)===oe){var Q=Z.revertLane;if(Q===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),oe===Fo&&(ne=!0);else if((aa&Q)===Q){Z=Z.next,Q===Fo&&(ne=!0);continue}else oe={lane:0,revertLane:Z.revertLane,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},I===null?(R=I=oe,_=b):I=I.next=oe,Me.lanes|=Q,Za|=Q;oe=Z.action,Bi&&c(b,oe),b=Z.hasEagerState?Z.eagerState:c(b,oe)}else Q={lane:oe,revertLane:Z.revertLane,gesture:Z.gesture,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},I===null?(R=I=Q,_=b):I=I.next=Q,Me.lanes|=oe,Za|=oe;Z=Z.next}while(Z!==null&&Z!==o);if(I===null?_=b:I.next=R,!Dn(b,a.memoizedState)&&(kt=!0,ne&&(c=Go,c!==null)))throw c;a.memoizedState=b,a.baseState=_,a.baseQueue=I,h.lastRenderedState=b}return y===null&&(h.lanes=0),[a.memoizedState,h.dispatch]}function yg(a){var o=_t(),c=o.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=a;var h=c.dispatch,y=c.pending,b=o.memoizedState;if(y!==null){c.pending=null;var _=y=y.next;do b=a(b,_.action),_=_.next;while(_!==y);Dn(b,o.memoizedState)||(kt=!0),o.memoizedState=b,o.baseQueue===null&&(o.baseState=b),c.lastRenderedState=b}return[b,h]}function Uj(a,o,c){var h=Me,y=_t(),b=Ve;if(b){if(c===void 0)throw Error(r(407));c=c()}else c=o();var _=!Dn((at||y).memoizedState,c);if(_&&(y.memoizedState=c,kt=!0),y=y.queue,wg(Gj.bind(null,h,y,a),[a]),y.getSnapshot!==o||_||Rt!==null&&Rt.memoizedState.tag&1){if(h.flags|=2048,Qo(9,{destroy:void 0},Fj.bind(null,h,y,c,o),null),lt===null)throw Error(r(349));b||(aa&127)!==0||Hj(h,o,c)}return c}function Hj(a,o,c){a.flags|=16384,a={getSnapshot:o,value:c},o=Me.updateQueue,o===null?(o=Id(),Me.updateQueue=o,o.stores=[a]):(c=o.stores,c===null?o.stores=[a]:c.push(a))}function Fj(a,o,c,h){o.value=c,o.getSnapshot=h,Kj(o)&&Xj(a)}function Gj(a,o,c){return c(function(){Kj(o)&&Xj(a)})}function Kj(a){var o=a.getSnapshot;a=a.value;try{var c=o();return!Dn(a,c)}catch{return!0}}function Xj(a){var o=Pi(a,2);o!==null&&Tn(o,a,2)}function xg(a){var o=pn();if(typeof a=="function"){var c=a;if(a=c(),Bi){La(!0);try{c()}finally{La(!1)}}}return o.memoizedState=o.baseState=a,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:a},o}function Yj(a,o,c,h){return a.baseState=c,vg(a,at,typeof h=="function"?h:ia)}function WB(a,o,c,h,y){if(Fd(a))throw Error(r(485));if(a=o.action,a!==null){var b={payload:y,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){b.listeners.push(_)}};z.T!==null?c(!0):b.isTransition=!1,h(b),c=o.pending,c===null?(b.next=o.pending=b,Wj(o,b)):(b.next=c.next,o.pending=c.next=b)}}function Wj(a,o){var c=o.action,h=o.payload,y=a.state;if(o.isTransition){var b=z.T,_={};z.T=_;try{var R=c(y,h),I=z.S;I!==null&&I(_,R),Zj(a,o,R)}catch(Z){bg(a,o,Z)}finally{b!==null&&_.types!==null&&(b.types=_.types),z.T=b}}else try{b=c(y,h),Zj(a,o,b)}catch(Z){bg(a,o,Z)}}function Zj(a,o,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){Qj(a,o,h)},function(h){return bg(a,o,h)}):Qj(a,o,c)}function Qj(a,o,c){o.status="fulfilled",o.value=c,Jj(o),a.state=c,o=a.pending,o!==null&&(c=o.next,c===o?a.pending=null:(c=c.next,o.next=c,Wj(a,c)))}function bg(a,o,c){var h=a.pending;if(a.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=c,Jj(o),o=o.next;while(o!==h)}a.action=null}function Jj(a){a=a.listeners;for(var o=0;o<a.length;o++)(0,a[o])()}function eO(a,o){return o}function tO(a,o){if(Ve){var c=lt.formState;if(c!==null){e:{var h=Me;if(Ve){if(pt){t:{for(var y=pt,b=er;y.nodeType!==8;){if(!b){y=null;break t}if(y=nr(y.nextSibling),y===null){y=null;break t}}b=y.data,y=b==="F!"||b==="F"?y:null}if(y){pt=nr(y.nextSibling),h=y.data==="F!";break e}}Va(h)}h=!1}h&&(o=c[0])}}return c=pn(),c.memoizedState=c.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:eO,lastRenderedState:o},c.queue=h,c=bO.bind(null,Me,h),h.dispatch=c,h=xg(!1),b=Tg.bind(null,Me,!1,h.queue),h=pn(),y={state:o,dispatch:null,action:a,pending:null},h.queue=y,c=WB.bind(null,Me,y,b,c),y.dispatch=c,h.memoizedState=a,[o,c,!1]}function nO(a){var o=_t();return rO(o,at,a)}function rO(a,o,c){if(o=vg(a,o,eO)[0],a=Vd(ia)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=Jl(o)}catch(_){throw _===Ko?Dd:_}else h=o;o=_t();var y=o.queue,b=y.dispatch;return c!==o.memoizedState&&(Me.flags|=2048,Qo(9,{destroy:void 0},ZB.bind(null,y,c),null)),[h,b,a]}function ZB(a,o){a.action=o}function aO(a){var o=_t(),c=at;if(c!==null)return rO(o,c,a);_t(),o=o.memoizedState,c=_t();var h=c.queue.dispatch;return c.memoizedState=a,[o,h,!1]}function Qo(a,o,c,h){return a={tag:a,create:c,deps:h,inst:o,next:null},o=Me.updateQueue,o===null&&(o=Id(),Me.updateQueue=o),c=o.lastEffect,c===null?o.lastEffect=a.next=a:(h=c.next,c.next=a,a.next=h,o.lastEffect=a),a}function iO(){return _t().memoizedState}function Ud(a,o,c,h){var y=pn();Me.flags|=a,y.memoizedState=Qo(1|o,{destroy:void 0},c,h===void 0?null:h)}function Hd(a,o,c,h){var y=_t();h=h===void 0?null:h;var b=y.memoizedState.inst;at!==null&&h!==null&&dg(h,at.memoizedState.deps)?y.memoizedState=Qo(o,b,c,h):(Me.flags|=a,y.memoizedState=Qo(1|o,b,c,h))}function oO(a,o){Ud(8390656,8,a,o)}function wg(a,o){Hd(2048,8,a,o)}function QB(a){Me.flags|=4;var o=Me.updateQueue;if(o===null)o=Id(),Me.updateQueue=o,o.events=[a];else{var c=o.events;c===null?o.events=[a]:c.push(a)}}function sO(a){var o=_t().memoizedState;return QB({ref:o,nextImpl:a}),function(){if((We&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function lO(a,o){return Hd(4,2,a,o)}function cO(a,o){return Hd(4,4,a,o)}function uO(a,o){if(typeof o=="function"){a=a();var c=o(a);return function(){typeof c=="function"?c():o(null)}}if(o!=null)return a=a(),o.current=a,function(){o.current=null}}function dO(a,o,c){c=c!=null?c.concat([a]):null,Hd(4,4,uO.bind(null,o,a),c)}function Sg(){}function fO(a,o){var c=_t();o=o===void 0?null:o;var h=c.memoizedState;return o!==null&&dg(o,h[1])?h[0]:(c.memoizedState=[a,o],a)}function hO(a,o){var c=_t();o=o===void 0?null:o;var h=c.memoizedState;if(o!==null&&dg(o,h[1]))return h[0];if(h=a(),Bi){La(!0);try{a()}finally{La(!1)}}return c.memoizedState=[h,o],h}function Ag(a,o,c){return c===void 0||(aa&1073741824)!==0&&(Ie&261930)===0?a.memoizedState=o:(a.memoizedState=c,a=pT(),Me.lanes|=a,Za|=a,c)}function pO(a,o,c,h){return Dn(c,o)?c:Yo.current!==null?(a=Ag(a,c,h),Dn(a,o)||(kt=!0),a):(aa&42)===0||(aa&1073741824)!==0&&(Ie&261930)===0?(kt=!0,a.memoizedState=c):(a=pT(),Me.lanes|=a,Za|=a,o)}function mO(a,o,c,h,y){var b=H.p;H.p=b!==0&&8>b?b:8;var _=z.T,R={};z.T=R,Tg(a,!1,o,c);try{var I=y(),Z=z.S;if(Z!==null&&Z(R,I),I!==null&&typeof I=="object"&&typeof I.then=="function"){var ne=KB(I,h);ec(a,o,ne,$n(a))}else ec(a,o,h,$n(a))}catch(oe){ec(a,o,{then:function(){},status:"rejected",reason:oe},$n())}finally{H.p=b,_!==null&&R.types!==null&&(_.types=R.types),z.T=_}}function JB(){}function jg(a,o,c,h){if(a.tag!==5)throw Error(r(476));var y=gO(a).queue;mO(a,y,o,F,c===null?JB:function(){return vO(a),c(h)})}function gO(a){var o=a.memoizedState;if(o!==null)return o;o={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:F},next:null};var c={};return o.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:c},next:null},a.memoizedState=o,a=a.alternate,a!==null&&(a.memoizedState=o),o}function vO(a){var o=gO(a);o.next===null&&(o=a.alternate.memoizedState),ec(a,o.next.queue,{},$n())}function Og(){return tn(vc)}function yO(){return _t().memoizedState}function xO(){return _t().memoizedState}function eI(a){for(var o=a.return;o!==null;){switch(o.tag){case 24:case 3:var c=$n();a=Fa(c);var h=Ga(o,a,c);h!==null&&(Tn(h,o,c),Yl(h,o,c)),o={cache:eg()},a.payload=o;return}o=o.return}}function tI(a,o,c){var h=$n();c={lane:h,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Fd(a)?wO(o,c):(c=Um(a,o,c,h),c!==null&&(Tn(c,a,h),SO(c,o,h)))}function bO(a,o,c){var h=$n();ec(a,o,c,h)}function ec(a,o,c,h){var y={lane:h,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(Fd(a))wO(o,y);else{var b=a.alternate;if(a.lanes===0&&(b===null||b.lanes===0)&&(b=o.lastRenderedReducer,b!==null))try{var _=o.lastRenderedState,R=b(_,c);if(y.hasEagerState=!0,y.eagerState=R,Dn(R,_))return Od(a,o,y,0),lt===null&&jd(),!1}catch{}finally{}if(c=Um(a,o,y,h),c!==null)return Tn(c,a,h),SO(c,o,h),!0}return!1}function Tg(a,o,c,h){if(h={lane:2,revertLane:av(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Fd(a)){if(o)throw Error(r(479))}else o=Um(a,c,h,2),o!==null&&Tn(o,a,2)}function Fd(a){var o=a.alternate;return a===Me||o!==null&&o===Me}function wO(a,o){Wo=$d=!0;var c=a.pending;c===null?o.next=o:(o.next=c.next,c.next=o),a.pending=o}function SO(a,o,c){if((c&4194048)!==0){var h=o.lanes;h&=a.pendingLanes,c|=h,o.lanes=c,C2(a,c)}}var tc={readContext:tn,use:qd,useCallback:jt,useContext:jt,useEffect:jt,useImperativeHandle:jt,useLayoutEffect:jt,useInsertionEffect:jt,useMemo:jt,useReducer:jt,useRef:jt,useState:jt,useDebugValue:jt,useDeferredValue:jt,useTransition:jt,useSyncExternalStore:jt,useId:jt,useHostTransitionStatus:jt,useFormState:jt,useActionState:jt,useOptimistic:jt,useMemoCache:jt,useCacheRefresh:jt};tc.useEffectEvent=jt;var AO={readContext:tn,use:qd,useCallback:function(a,o){return pn().memoizedState=[a,o===void 0?null:o],a},useContext:tn,useEffect:oO,useImperativeHandle:function(a,o,c){c=c!=null?c.concat([a]):null,Ud(4194308,4,uO.bind(null,o,a),c)},useLayoutEffect:function(a,o){return Ud(4194308,4,a,o)},useInsertionEffect:function(a,o){Ud(4,2,a,o)},useMemo:function(a,o){var c=pn();o=o===void 0?null:o;var h=a();if(Bi){La(!0);try{a()}finally{La(!1)}}return c.memoizedState=[h,o],h},useReducer:function(a,o,c){var h=pn();if(c!==void 0){var y=c(o);if(Bi){La(!0);try{c(o)}finally{La(!1)}}}else y=o;return h.memoizedState=h.baseState=y,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:y},h.queue=a,a=a.dispatch=tI.bind(null,Me,a),[h.memoizedState,a]},useRef:function(a){var o=pn();return a={current:a},o.memoizedState=a},useState:function(a){a=xg(a);var o=a.queue,c=bO.bind(null,Me,o);return o.dispatch=c,[a.memoizedState,c]},useDebugValue:Sg,useDeferredValue:function(a,o){var c=pn();return Ag(c,a,o)},useTransition:function(){var a=xg(!1);return a=mO.bind(null,Me,a.queue,!0,!1),pn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,o,c){var h=Me,y=pn();if(Ve){if(c===void 0)throw Error(r(407));c=c()}else{if(c=o(),lt===null)throw Error(r(349));(Ie&127)!==0||Hj(h,o,c)}y.memoizedState=c;var b={value:c,getSnapshot:o};return y.queue=b,oO(Gj.bind(null,h,b,a),[a]),h.flags|=2048,Qo(9,{destroy:void 0},Fj.bind(null,h,b,c,o),null),c},useId:function(){var a=pn(),o=lt.identifierPrefix;if(Ve){var c=zr,h=kr;c=(h&~(1<<32-Nn(h)-1)).toString(32)+c,o="_"+o+"R_"+c,c=Bd++,0<c&&(o+="H"+c.toString(32)),o+="_"}else c=XB++,o="_"+o+"r_"+c.toString(32)+"_";return a.memoizedState=o},useHostTransitionStatus:Og,useFormState:tO,useActionState:tO,useOptimistic:function(a){var o=pn();o.memoizedState=o.baseState=a;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=c,o=Tg.bind(null,Me,!0,c),c.dispatch=o,[a,o]},useMemoCache:gg,useCacheRefresh:function(){return pn().memoizedState=eI.bind(null,Me)},useEffectEvent:function(a){var o=pn(),c={impl:a};return o.memoizedState=c,function(){if((We&2)!==0)throw Error(r(440));return c.impl.apply(void 0,arguments)}}},Cg={readContext:tn,use:qd,useCallback:fO,useContext:tn,useEffect:wg,useImperativeHandle:dO,useInsertionEffect:lO,useLayoutEffect:cO,useMemo:hO,useReducer:Vd,useRef:iO,useState:function(){return Vd(ia)},useDebugValue:Sg,useDeferredValue:function(a,o){var c=_t();return pO(c,at.memoizedState,a,o)},useTransition:function(){var a=Vd(ia)[0],o=_t().memoizedState;return[typeof a=="boolean"?a:Jl(a),o]},useSyncExternalStore:Uj,useId:yO,useHostTransitionStatus:Og,useFormState:nO,useActionState:nO,useOptimistic:function(a,o){var c=_t();return Yj(c,at,a,o)},useMemoCache:gg,useCacheRefresh:xO};Cg.useEffectEvent=sO;var jO={readContext:tn,use:qd,useCallback:fO,useContext:tn,useEffect:wg,useImperativeHandle:dO,useInsertionEffect:lO,useLayoutEffect:cO,useMemo:hO,useReducer:yg,useRef:iO,useState:function(){return yg(ia)},useDebugValue:Sg,useDeferredValue:function(a,o){var c=_t();return at===null?Ag(c,a,o):pO(c,at.memoizedState,a,o)},useTransition:function(){var a=yg(ia)[0],o=_t().memoizedState;return[typeof a=="boolean"?a:Jl(a),o]},useSyncExternalStore:Uj,useId:yO,useHostTransitionStatus:Og,useFormState:aO,useActionState:aO,useOptimistic:function(a,o){var c=_t();return at!==null?Yj(c,at,a,o):(c.baseState=a,[a,c.queue.dispatch])},useMemoCache:gg,useCacheRefresh:xO};jO.useEffectEvent=sO;function Eg(a,o,c,h){o=a.memoizedState,c=c(h,o),c=c==null?o:g({},o,c),a.memoizedState=c,a.lanes===0&&(a.updateQueue.baseState=c)}var _g={enqueueSetState:function(a,o,c){a=a._reactInternals;var h=$n(),y=Fa(h);y.payload=o,c!=null&&(y.callback=c),o=Ga(a,y,h),o!==null&&(Tn(o,a,h),Yl(o,a,h))},enqueueReplaceState:function(a,o,c){a=a._reactInternals;var h=$n(),y=Fa(h);y.tag=1,y.payload=o,c!=null&&(y.callback=c),o=Ga(a,y,h),o!==null&&(Tn(o,a,h),Yl(o,a,h))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var c=$n(),h=Fa(c);h.tag=2,o!=null&&(h.callback=o),o=Ga(a,h,c),o!==null&&(Tn(o,a,c),Yl(o,a,c))}};function OO(a,o,c,h,y,b,_){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(h,b,_):o.prototype&&o.prototype.isPureReactComponent?!ql(c,h)||!ql(y,b):!0}function TO(a,o,c,h){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,h),o.state!==a&&_g.enqueueReplaceState(o,o.state,null)}function Ii(a,o){var c=o;if("ref"in o){c={};for(var h in o)h!=="ref"&&(c[h]=o[h])}if(a=a.defaultProps){c===o&&(c=g({},c));for(var y in a)c[y]===void 0&&(c[y]=a[y])}return c}function CO(a){Ad(a)}function EO(a){console.error(a)}function _O(a){Ad(a)}function Gd(a,o){try{var c=a.onUncaughtError;c(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function PO(a,o,c){try{var h=a.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function Pg(a,o,c){return c=Fa(c),c.tag=3,c.payload={element:null},c.callback=function(){Gd(a,o)},c}function NO(a){return a=Fa(a),a.tag=3,a}function DO(a,o,c,h){var y=c.type.getDerivedStateFromError;if(typeof y=="function"){var b=h.value;a.payload=function(){return y(b)},a.callback=function(){PO(o,c,h)}}var _=c.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(a.callback=function(){PO(o,c,h),typeof y!="function"&&(Qa===null?Qa=new Set([this]):Qa.add(this));var R=h.stack;this.componentDidCatch(h.value,{componentStack:R!==null?R:""})})}function nI(a,o,c,h,y){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=c.alternate,o!==null&&Ho(o,c,y,!0),c=Rn.current,c!==null){switch(c.tag){case 31:case 13:return tr===null?af():c.alternate===null&&Ot===0&&(Ot=3),c.flags&=-257,c.flags|=65536,c.lanes=y,h===Md?c.flags|=16384:(o=c.updateQueue,o===null?c.updateQueue=new Set([h]):o.add(h),tv(a,h,y)),!1;case 22:return c.flags|=65536,h===Md?c.flags|=16384:(o=c.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=o):(c=o.retryQueue,c===null?o.retryQueue=new Set([h]):c.add(h)),tv(a,h,y)),!1}throw Error(r(435,c.tag))}return tv(a,h,y),af(),!1}if(Ve)return o=Rn.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=y,h!==Ym&&(a=Error(r(422),{cause:h}),Hl(Zn(a,c)))):(h!==Ym&&(o=Error(r(423),{cause:h}),Hl(Zn(o,c))),a=a.current.alternate,a.flags|=65536,y&=-y,a.lanes|=y,h=Zn(h,c),y=Pg(a.stateNode,h,y),og(a,y),Ot!==4&&(Ot=2)),!1;var b=Error(r(520),{cause:h});if(b=Zn(b,c),cc===null?cc=[b]:cc.push(b),Ot!==4&&(Ot=2),o===null)return!0;h=Zn(h,c),c=o;do{switch(c.tag){case 3:return c.flags|=65536,a=y&-y,c.lanes|=a,a=Pg(c.stateNode,h,a),og(c,a),!1;case 1:if(o=c.type,b=c.stateNode,(c.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Qa===null||!Qa.has(b))))return c.flags|=65536,y&=-y,c.lanes|=y,y=NO(y),DO(y,a,c,h),og(c,y),!1}c=c.return}while(c!==null);return!1}var Ng=Error(r(461)),kt=!1;function nn(a,o,c,h){o.child=a===null?zj(o,null,c,h):$i(o,a.child,c,h)}function MO(a,o,c,h,y){c=c.render;var b=o.ref;if("ref"in h){var _={};for(var R in h)R!=="ref"&&(_[R]=h[R])}else _=h;return Ri(o),h=fg(a,o,c,_,b,y),R=hg(),a!==null&&!kt?(pg(a,o,y),oa(a,o,y)):(Ve&&R&&Km(o),o.flags|=1,nn(a,o,h,y),o.child)}function RO(a,o,c,h,y){if(a===null){var b=c.type;return typeof b=="function"&&!Hm(b)&&b.defaultProps===void 0&&c.compare===null?(o.tag=15,o.type=b,kO(a,o,b,h,y)):(a=Cd(c.type,null,h,o,o.mode,y),a.ref=o.ref,a.return=o,o.child=a)}if(b=a.child,!Bg(a,y)){var _=b.memoizedProps;if(c=c.compare,c=c!==null?c:ql,c(_,h)&&a.ref===o.ref)return oa(a,o,y)}return o.flags|=1,a=ea(b,h),a.ref=o.ref,a.return=o,o.child=a}function kO(a,o,c,h,y){if(a!==null){var b=a.memoizedProps;if(ql(b,h)&&a.ref===o.ref)if(kt=!1,o.pendingProps=h=b,Bg(a,y))(a.flags&131072)!==0&&(kt=!0);else return o.lanes=a.lanes,oa(a,o,y)}return Dg(a,o,c,h,y)}function zO(a,o,c,h){var y=h.children,b=a!==null?a.memoizedState:null;if(a===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((o.flags&128)!==0){if(b=b!==null?b.baseLanes|c:c,a!==null){for(h=o.child=a.child,y=0;h!==null;)y=y|h.lanes|h.childLanes,h=h.sibling;h=y&~b}else h=0,o.child=null;return LO(a,o,b,c,h)}if((c&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&Nd(o,b!==null?b.cachePool:null),b!==null?Bj(o,b):lg(),Ij(o);else return h=o.lanes=536870912,LO(a,o,b!==null?b.baseLanes|c:c,c,h)}else b!==null?(Nd(o,b.cachePool),Bj(o,b),Xa(),o.memoizedState=null):(a!==null&&Nd(o,null),lg(),Xa());return nn(a,o,y,c),o.child}function nc(a,o){return a!==null&&a.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function LO(a,o,c,h,y){var b=ng();return b=b===null?null:{parent:Mt._currentValue,pool:b},o.memoizedState={baseLanes:c,cachePool:b},a!==null&&Nd(o,null),lg(),Ij(o),a!==null&&Ho(a,o,h,!0),o.childLanes=y,null}function Kd(a,o){return o=Yd({mode:o.mode,children:o.children},a.mode),o.ref=a.ref,a.child=o,o.return=a,o}function $O(a,o,c){return $i(o,a.child,null,c),a=Kd(o,o.pendingProps),a.flags|=2,kn(o),o.memoizedState=null,a}function rI(a,o,c){var h=o.pendingProps,y=(o.flags&128)!==0;if(o.flags&=-129,a===null){if(Ve){if(h.mode==="hidden")return a=Kd(o,h),o.lanes=536870912,nc(null,a);if(ug(o),(a=pt)?(a=WT(a,er),a=a!==null&&a.data==="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:Ia!==null?{id:kr,overflow:zr}:null,retryLane:536870912,hydrationErrors:null},c=wj(a),c.return=o,o.child=c,en=o,pt=null)):a=null,a===null)throw Va(o);return o.lanes=536870912,null}return Kd(o,h)}var b=a.memoizedState;if(b!==null){var _=b.dehydrated;if(ug(o),y)if(o.flags&256)o.flags&=-257,o=$O(a,o,c);else if(o.memoizedState!==null)o.child=a.child,o.flags|=128,o=null;else throw Error(r(558));else if(kt||Ho(a,o,c,!1),y=(c&a.childLanes)!==0,kt||y){if(h=lt,h!==null&&(_=E2(h,c),_!==0&&_!==b.retryLane))throw b.retryLane=_,Pi(a,_),Tn(h,a,_),Ng;af(),o=$O(a,o,c)}else a=b.treeContext,pt=nr(_.nextSibling),en=o,Ve=!0,qa=null,er=!1,a!==null&&jj(o,a),o=Kd(o,h),o.flags|=4096;return o}return a=ea(a.child,{mode:h.mode,children:h.children}),a.ref=o.ref,o.child=a,a.return=o,a}function Xd(a,o){var c=o.ref;if(c===null)a!==null&&a.ref!==null&&(o.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(a===null||a.ref!==c)&&(o.flags|=4194816)}}function Dg(a,o,c,h,y){return Ri(o),c=fg(a,o,c,h,void 0,y),h=hg(),a!==null&&!kt?(pg(a,o,y),oa(a,o,y)):(Ve&&h&&Km(o),o.flags|=1,nn(a,o,c,y),o.child)}function BO(a,o,c,h,y,b){return Ri(o),o.updateQueue=null,c=Vj(o,h,c,y),qj(a),h=hg(),a!==null&&!kt?(pg(a,o,b),oa(a,o,b)):(Ve&&h&&Km(o),o.flags|=1,nn(a,o,c,b),o.child)}function IO(a,o,c,h,y){if(Ri(o),o.stateNode===null){var b=Io,_=c.contextType;typeof _=="object"&&_!==null&&(b=tn(_)),b=new c(h,b),o.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=_g,o.stateNode=b,b._reactInternals=o,b=o.stateNode,b.props=h,b.state=o.memoizedState,b.refs={},ag(o),_=c.contextType,b.context=typeof _=="object"&&_!==null?tn(_):Io,b.state=o.memoizedState,_=c.getDerivedStateFromProps,typeof _=="function"&&(Eg(o,c,_,h),b.state=o.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(_=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),_!==b.state&&_g.enqueueReplaceState(b,b.state,null),Zl(o,h,b,y),Wl(),b.state=o.memoizedState),typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(a===null){b=o.stateNode;var R=o.memoizedProps,I=Ii(c,R);b.props=I;var Z=b.context,ne=c.contextType;_=Io,typeof ne=="object"&&ne!==null&&(_=tn(ne));var oe=c.getDerivedStateFromProps;ne=typeof oe=="function"||typeof b.getSnapshotBeforeUpdate=="function",R=o.pendingProps!==R,ne||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(R||Z!==_)&&TO(o,b,h,_),Ha=!1;var Q=o.memoizedState;b.state=Q,Zl(o,h,b,y),Wl(),Z=o.memoizedState,R||Q!==Z||Ha?(typeof oe=="function"&&(Eg(o,c,oe,h),Z=o.memoizedState),(I=Ha||OO(o,c,I,h,Q,Z,_))?(ne||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(o.flags|=4194308)):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=Z),b.props=h,b.state=Z,b.context=_,h=I):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{b=o.stateNode,ig(a,o),_=o.memoizedProps,ne=Ii(c,_),b.props=ne,oe=o.pendingProps,Q=b.context,Z=c.contextType,I=Io,typeof Z=="object"&&Z!==null&&(I=tn(Z)),R=c.getDerivedStateFromProps,(Z=typeof R=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(_!==oe||Q!==I)&&TO(o,b,h,I),Ha=!1,Q=o.memoizedState,b.state=Q,Zl(o,h,b,y),Wl();var ee=o.memoizedState;_!==oe||Q!==ee||Ha||a!==null&&a.dependencies!==null&&_d(a.dependencies)?(typeof R=="function"&&(Eg(o,c,R,h),ee=o.memoizedState),(ne=Ha||OO(o,c,ne,h,Q,ee,I)||a!==null&&a.dependencies!==null&&_d(a.dependencies))?(Z||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(h,ee,I),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(h,ee,I)),typeof b.componentDidUpdate=="function"&&(o.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof b.componentDidUpdate!="function"||_===a.memoizedProps&&Q===a.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||_===a.memoizedProps&&Q===a.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=ee),b.props=h,b.state=ee,b.context=I,h=ne):(typeof b.componentDidUpdate!="function"||_===a.memoizedProps&&Q===a.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||_===a.memoizedProps&&Q===a.memoizedState||(o.flags|=1024),h=!1)}return b=h,Xd(a,o),h=(o.flags&128)!==0,b||h?(b=o.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:b.render(),o.flags|=1,a!==null&&h?(o.child=$i(o,a.child,null,y),o.child=$i(o,null,c,y)):nn(a,o,c,y),o.memoizedState=b.state,a=o.child):a=oa(a,o,y),a}function qO(a,o,c,h){return Di(),o.flags|=256,nn(a,o,c,h),o.child}var Mg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rg(a){return{baseLanes:a,cachePool:Pj()}}function kg(a,o,c){return a=a!==null?a.childLanes&~c:0,o&&(a|=Ln),a}function VO(a,o,c){var h=o.pendingProps,y=!1,b=(o.flags&128)!==0,_;if((_=b)||(_=a!==null&&a.memoizedState===null?!1:(Et.current&2)!==0),_&&(y=!0,o.flags&=-129),_=(o.flags&32)!==0,o.flags&=-33,a===null){if(Ve){if(y?Ka(o):Xa(),(a=pt)?(a=WT(a,er),a=a!==null&&a.data!=="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:Ia!==null?{id:kr,overflow:zr}:null,retryLane:536870912,hydrationErrors:null},c=wj(a),c.return=o,o.child=c,en=o,pt=null)):a=null,a===null)throw Va(o);return vv(a)?o.lanes=32:o.lanes=536870912,null}var R=h.children;return h=h.fallback,y?(Xa(),y=o.mode,R=Yd({mode:"hidden",children:R},y),h=Ni(h,y,c,null),R.return=o,h.return=o,R.sibling=h,o.child=R,h=o.child,h.memoizedState=Rg(c),h.childLanes=kg(a,_,c),o.memoizedState=Mg,nc(null,h)):(Ka(o),zg(o,R))}var I=a.memoizedState;if(I!==null&&(R=I.dehydrated,R!==null)){if(b)o.flags&256?(Ka(o),o.flags&=-257,o=Lg(a,o,c)):o.memoizedState!==null?(Xa(),o.child=a.child,o.flags|=128,o=null):(Xa(),R=h.fallback,y=o.mode,h=Yd({mode:"visible",children:h.children},y),R=Ni(R,y,c,null),R.flags|=2,h.return=o,R.return=o,h.sibling=R,o.child=h,$i(o,a.child,null,c),h=o.child,h.memoizedState=Rg(c),h.childLanes=kg(a,_,c),o.memoizedState=Mg,o=nc(null,h));else if(Ka(o),vv(R)){if(_=R.nextSibling&&R.nextSibling.dataset,_)var Z=_.dgst;_=Z,h=Error(r(419)),h.stack="",h.digest=_,Hl({value:h,source:null,stack:null}),o=Lg(a,o,c)}else if(kt||Ho(a,o,c,!1),_=(c&a.childLanes)!==0,kt||_){if(_=lt,_!==null&&(h=E2(_,c),h!==0&&h!==I.retryLane))throw I.retryLane=h,Pi(a,h),Tn(_,a,h),Ng;gv(R)||af(),o=Lg(a,o,c)}else gv(R)?(o.flags|=192,o.child=a.child,o=null):(a=I.treeContext,pt=nr(R.nextSibling),en=o,Ve=!0,qa=null,er=!1,a!==null&&jj(o,a),o=zg(o,h.children),o.flags|=4096);return o}return y?(Xa(),R=h.fallback,y=o.mode,I=a.child,Z=I.sibling,h=ea(I,{mode:"hidden",children:h.children}),h.subtreeFlags=I.subtreeFlags&65011712,Z!==null?R=ea(Z,R):(R=Ni(R,y,c,null),R.flags|=2),R.return=o,h.return=o,h.sibling=R,o.child=h,nc(null,h),h=o.child,R=a.child.memoizedState,R===null?R=Rg(c):(y=R.cachePool,y!==null?(I=Mt._currentValue,y=y.parent!==I?{parent:I,pool:I}:y):y=Pj(),R={baseLanes:R.baseLanes|c,cachePool:y}),h.memoizedState=R,h.childLanes=kg(a,_,c),o.memoizedState=Mg,nc(a.child,h)):(Ka(o),c=a.child,a=c.sibling,c=ea(c,{mode:"visible",children:h.children}),c.return=o,c.sibling=null,a!==null&&(_=o.deletions,_===null?(o.deletions=[a],o.flags|=16):_.push(a)),o.child=c,o.memoizedState=null,c)}function zg(a,o){return o=Yd({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function Yd(a,o){return a=Mn(22,a,null,o),a.lanes=0,a}function Lg(a,o,c){return $i(o,a.child,null,c),a=zg(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function UO(a,o,c){a.lanes|=o;var h=a.alternate;h!==null&&(h.lanes|=o),Qm(a.return,o,c)}function $g(a,o,c,h,y,b){var _=a.memoizedState;_===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:y,treeForkCount:b}:(_.isBackwards=o,_.rendering=null,_.renderingStartTime=0,_.last=h,_.tail=c,_.tailMode=y,_.treeForkCount=b)}function HO(a,o,c){var h=o.pendingProps,y=h.revealOrder,b=h.tail;h=h.children;var _=Et.current,R=(_&2)!==0;if(R?(_=_&1|2,o.flags|=128):_&=1,te(Et,_),nn(a,o,h,c),h=Ve?Ul:0,!R&&a!==null&&(a.flags&128)!==0)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&UO(a,c,o);else if(a.tag===19)UO(a,c,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(y){case"forwards":for(c=o.child,y=null;c!==null;)a=c.alternate,a!==null&&Ld(a)===null&&(y=c),c=c.sibling;c=y,c===null?(y=o.child,o.child=null):(y=c.sibling,c.sibling=null),$g(o,!1,y,c,b,h);break;case"backwards":case"unstable_legacy-backwards":for(c=null,y=o.child,o.child=null;y!==null;){if(a=y.alternate,a!==null&&Ld(a)===null){o.child=y;break}a=y.sibling,y.sibling=c,c=y,y=a}$g(o,!0,c,null,b,h);break;case"together":$g(o,!1,null,null,void 0,h);break;default:o.memoizedState=null}return o.child}function oa(a,o,c){if(a!==null&&(o.dependencies=a.dependencies),Za|=o.lanes,(c&o.childLanes)===0)if(a!==null){if(Ho(a,o,c,!1),(c&o.childLanes)===0)return null}else return null;if(a!==null&&o.child!==a.child)throw Error(r(153));if(o.child!==null){for(a=o.child,c=ea(a,a.pendingProps),o.child=c,c.return=o;a.sibling!==null;)a=a.sibling,c=c.sibling=ea(a,a.pendingProps),c.return=o;c.sibling=null}return o.child}function Bg(a,o){return(a.lanes&o)!==0?!0:(a=a.dependencies,!!(a!==null&&_d(a)))}function aI(a,o,c){switch(o.tag){case 3:Fe(o,o.stateNode.containerInfo),Ua(o,Mt,a.memoizedState.cache),Di();break;case 27:case 5:Ae(o);break;case 4:Fe(o,o.stateNode.containerInfo);break;case 10:Ua(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,ug(o),null;break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(Ka(o),o.flags|=128,null):(c&o.child.childLanes)!==0?VO(a,o,c):(Ka(o),a=oa(a,o,c),a!==null?a.sibling:null);Ka(o);break;case 19:var y=(a.flags&128)!==0;if(h=(c&o.childLanes)!==0,h||(Ho(a,o,c,!1),h=(c&o.childLanes)!==0),y){if(h)return HO(a,o,c);o.flags|=128}if(y=o.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),te(Et,Et.current),h)break;return null;case 22:return o.lanes=0,zO(a,o,c,o.pendingProps);case 24:Ua(o,Mt,a.memoizedState.cache)}return oa(a,o,c)}function FO(a,o,c){if(a!==null)if(a.memoizedProps!==o.pendingProps)kt=!0;else{if(!Bg(a,c)&&(o.flags&128)===0)return kt=!1,aI(a,o,c);kt=(a.flags&131072)!==0}else kt=!1,Ve&&(o.flags&1048576)!==0&&Aj(o,Ul,o.index);switch(o.lanes=0,o.tag){case 16:e:{var h=o.pendingProps;if(a=zi(o.elementType),o.type=a,typeof a=="function")Hm(a)?(h=Ii(a,h),o.tag=1,o=IO(null,o,a,h,c)):(o.tag=0,o=Dg(null,o,a,h,c));else{if(a!=null){var y=a.$$typeof;if(y===N){o.tag=11,o=MO(null,o,a,h,c);break e}else if(y===D){o.tag=14,o=RO(null,o,a,h,c);break e}}throw o=J(a)||a,Error(r(306,o,""))}}return o;case 0:return Dg(a,o,o.type,o.pendingProps,c);case 1:return h=o.type,y=Ii(h,o.pendingProps),IO(a,o,h,y,c);case 3:e:{if(Fe(o,o.stateNode.containerInfo),a===null)throw Error(r(387));h=o.pendingProps;var b=o.memoizedState;y=b.element,ig(a,o),Zl(o,h,null,c);var _=o.memoizedState;if(h=_.cache,Ua(o,Mt,h),h!==b.cache&&Jm(o,[Mt],c,!0),Wl(),h=_.element,b.isDehydrated)if(b={element:h,isDehydrated:!1,cache:_.cache},o.updateQueue.baseState=b,o.memoizedState=b,o.flags&256){o=qO(a,o,h,c);break e}else if(h!==y){y=Zn(Error(r(424)),o),Hl(y),o=qO(a,o,h,c);break e}else{switch(a=o.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(pt=nr(a.firstChild),en=o,Ve=!0,qa=null,er=!0,c=zj(o,null,h,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(Di(),h===y){o=oa(a,o,c);break e}nn(a,o,h,c)}o=o.child}return o;case 26:return Xd(a,o),a===null?(c=nC(o.type,null,o.pendingProps,null))?o.memoizedState=c:Ve||(c=o.type,a=o.pendingProps,h=ff(Se.current).createElement(c),h[Jt]=o,h[bn]=a,rn(h,c,a),Xt(h),o.stateNode=h):o.memoizedState=nC(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return Ae(o),a===null&&Ve&&(h=o.stateNode=JT(o.type,o.pendingProps,Se.current),en=o,er=!0,y=pt,ni(o.type)?(yv=y,pt=nr(h.firstChild)):pt=y),nn(a,o,o.pendingProps.children,c),Xd(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&Ve&&((y=h=pt)&&(h=RI(h,o.type,o.pendingProps,er),h!==null?(o.stateNode=h,en=o,pt=nr(h.firstChild),er=!1,y=!0):y=!1),y||Va(o)),Ae(o),y=o.type,b=o.pendingProps,_=a!==null?a.memoizedProps:null,h=b.children,hv(y,b)?h=null:_!==null&&hv(y,_)&&(o.flags|=32),o.memoizedState!==null&&(y=fg(a,o,YB,null,null,c),vc._currentValue=y),Xd(a,o),nn(a,o,h,c),o.child;case 6:return a===null&&Ve&&((a=c=pt)&&(c=kI(c,o.pendingProps,er),c!==null?(o.stateNode=c,en=o,pt=null,a=!0):a=!1),a||Va(o)),null;case 13:return VO(a,o,c);case 4:return Fe(o,o.stateNode.containerInfo),h=o.pendingProps,a===null?o.child=$i(o,null,h,c):nn(a,o,h,c),o.child;case 11:return MO(a,o,o.type,o.pendingProps,c);case 7:return nn(a,o,o.pendingProps,c),o.child;case 8:return nn(a,o,o.pendingProps.children,c),o.child;case 12:return nn(a,o,o.pendingProps.children,c),o.child;case 10:return h=o.pendingProps,Ua(o,o.type,h.value),nn(a,o,h.children,c),o.child;case 9:return y=o.type._context,h=o.pendingProps.children,Ri(o),y=tn(y),h=h(y),o.flags|=1,nn(a,o,h,c),o.child;case 14:return RO(a,o,o.type,o.pendingProps,c);case 15:return kO(a,o,o.type,o.pendingProps,c);case 19:return HO(a,o,c);case 31:return rI(a,o,c);case 22:return zO(a,o,c,o.pendingProps);case 24:return Ri(o),h=tn(Mt),a===null?(y=ng(),y===null&&(y=lt,b=eg(),y.pooledCache=b,b.refCount++,b!==null&&(y.pooledCacheLanes|=c),y=b),o.memoizedState={parent:h,cache:y},ag(o),Ua(o,Mt,y)):((a.lanes&c)!==0&&(ig(a,o),Zl(o,null,null,c),Wl()),y=a.memoizedState,b=o.memoizedState,y.parent!==h?(y={parent:h,cache:h},o.memoizedState=y,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=y),Ua(o,Mt,h)):(h=b.cache,Ua(o,Mt,h),h!==y.cache&&Jm(o,[Mt],c,!0))),nn(a,o,o.pendingProps.children,c),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function sa(a){a.flags|=4}function Ig(a,o,c,h,y){if((o=(a.mode&32)!==0)&&(o=!1),o){if(a.flags|=16777216,(y&335544128)===y)if(a.stateNode.complete)a.flags|=8192;else if(yT())a.flags|=8192;else throw Li=Md,rg}else a.flags&=-16777217}function GO(a,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!sC(o))if(yT())a.flags|=8192;else throw Li=Md,rg}function Wd(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?O2():536870912,a.lanes|=o,ns|=o)}function rc(a,o){if(!Ve)switch(a.tailMode){case"hidden":o=a.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?a.tail=null:c.sibling=null;break;case"collapsed":c=a.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:h.sibling=null}}function mt(a){var o=a.alternate!==null&&a.alternate.child===a.child,c=0,h=0;if(o)for(var y=a.child;y!==null;)c|=y.lanes|y.childLanes,h|=y.subtreeFlags&65011712,h|=y.flags&65011712,y.return=a,y=y.sibling;else for(y=a.child;y!==null;)c|=y.lanes|y.childLanes,h|=y.subtreeFlags,h|=y.flags,y.return=a,y=y.sibling;return a.subtreeFlags|=h,a.childLanes=c,o}function iI(a,o,c){var h=o.pendingProps;switch(Xm(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(o),null;case 1:return mt(o),null;case 3:return c=o.stateNode,h=null,a!==null&&(h=a.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),ra(Mt),ce(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(a===null||a.child===null)&&(Uo(o)?sa(o):a===null||a.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Wm())),mt(o),null;case 26:var y=o.type,b=o.memoizedState;return a===null?(sa(o),b!==null?(mt(o),GO(o,b)):(mt(o),Ig(o,y,null,h,c))):b?b!==a.memoizedState?(sa(o),mt(o),GO(o,b)):(mt(o),o.flags&=-16777217):(a=a.memoizedProps,a!==h&&sa(o),mt(o),Ig(o,y,a,h,c)),null;case 27:if(Ce(o),c=Se.current,y=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==h&&sa(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return mt(o),null}a=le.current,Uo(o)?Oj(o):(a=JT(y,h,c),o.stateNode=a,sa(o))}return mt(o),null;case 5:if(Ce(o),y=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==h&&sa(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return mt(o),null}if(b=le.current,Uo(o))Oj(o);else{var _=ff(Se.current);switch(b){case 1:b=_.createElementNS("http://www.w3.org/2000/svg",y);break;case 2:b=_.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;default:switch(y){case"svg":b=_.createElementNS("http://www.w3.org/2000/svg",y);break;case"math":b=_.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;case"script":b=_.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof h.is=="string"?_.createElement("select",{is:h.is}):_.createElement("select"),h.multiple?b.multiple=!0:h.size&&(b.size=h.size);break;default:b=typeof h.is=="string"?_.createElement(y,{is:h.is}):_.createElement(y)}}b[Jt]=o,b[bn]=h;e:for(_=o.child;_!==null;){if(_.tag===5||_.tag===6)b.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===o)break e;for(;_.sibling===null;){if(_.return===null||_.return===o)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}o.stateNode=b;e:switch(rn(b,y,h),y){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&sa(o)}}return mt(o),Ig(o,o.type,a===null?null:a.memoizedProps,o.pendingProps,c),null;case 6:if(a&&o.stateNode!=null)a.memoizedProps!==h&&sa(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(a=Se.current,Uo(o)){if(a=o.stateNode,c=o.memoizedProps,h=null,y=en,y!==null)switch(y.tag){case 27:case 5:h=y.memoizedProps}a[Jt]=o,a=!!(a.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||VT(a.nodeValue,c)),a||Va(o,!0)}else a=ff(a).createTextNode(h),a[Jt]=o,o.stateNode=a}return mt(o),null;case 31:if(c=o.memoizedState,a===null||a.memoizedState!==null){if(h=Uo(o),c!==null){if(a===null){if(!h)throw Error(r(318));if(a=o.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[Jt]=o}else Di(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;mt(o),a=!1}else c=Wm(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=c),a=!0;if(!a)return o.flags&256?(kn(o),o):(kn(o),null);if((o.flags&128)!==0)throw Error(r(558))}return mt(o),null;case 13:if(h=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(y=Uo(o),h!==null&&h.dehydrated!==null){if(a===null){if(!y)throw Error(r(318));if(y=o.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[Jt]=o}else Di(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;mt(o),y=!1}else y=Wm(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=y),y=!0;if(!y)return o.flags&256?(kn(o),o):(kn(o),null)}return kn(o),(o.flags&128)!==0?(o.lanes=c,o):(c=h!==null,a=a!==null&&a.memoizedState!==null,c&&(h=o.child,y=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(y=h.alternate.memoizedState.cachePool.pool),b=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(b=h.memoizedState.cachePool.pool),b!==y&&(h.flags|=2048)),c!==a&&c&&(o.child.flags|=8192),Wd(o,o.updateQueue),mt(o),null);case 4:return ce(),a===null&&lv(o.stateNode.containerInfo),mt(o),null;case 10:return ra(o.type),mt(o),null;case 19:if(G(Et),h=o.memoizedState,h===null)return mt(o),null;if(y=(o.flags&128)!==0,b=h.rendering,b===null)if(y)rc(h,!1);else{if(Ot!==0||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(b=Ld(a),b!==null){for(o.flags|=128,rc(h,!1),a=b.updateQueue,o.updateQueue=a,Wd(o,a),o.subtreeFlags=0,a=c,c=o.child;c!==null;)bj(c,a),c=c.sibling;return te(Et,Et.current&1|2),Ve&&ta(o,h.treeForkCount),o.child}a=a.sibling}h.tail!==null&&ln()>tf&&(o.flags|=128,y=!0,rc(h,!1),o.lanes=4194304)}else{if(!y)if(a=Ld(b),a!==null){if(o.flags|=128,y=!0,a=a.updateQueue,o.updateQueue=a,Wd(o,a),rc(h,!0),h.tail===null&&h.tailMode==="hidden"&&!b.alternate&&!Ve)return mt(o),null}else 2*ln()-h.renderingStartTime>tf&&c!==536870912&&(o.flags|=128,y=!0,rc(h,!1),o.lanes=4194304);h.isBackwards?(b.sibling=o.child,o.child=b):(a=h.last,a!==null?a.sibling=b:o.child=b,h.last=b)}return h.tail!==null?(a=h.tail,h.rendering=a,h.tail=a.sibling,h.renderingStartTime=ln(),a.sibling=null,c=Et.current,te(Et,y?c&1|2:c&1),Ve&&ta(o,h.treeForkCount),a):(mt(o),null);case 22:case 23:return kn(o),cg(),h=o.memoizedState!==null,a!==null?a.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(c&536870912)!==0&&(o.flags&128)===0&&(mt(o),o.subtreeFlags&6&&(o.flags|=8192)):mt(o),c=o.updateQueue,c!==null&&Wd(o,c.retryQueue),c=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==c&&(o.flags|=2048),a!==null&&G(ki),null;case 24:return c=null,a!==null&&(c=a.memoizedState.cache),o.memoizedState.cache!==c&&(o.flags|=2048),ra(Mt),mt(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function oI(a,o){switch(Xm(o),o.tag){case 1:return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return ra(Mt),ce(),a=o.flags,(a&65536)!==0&&(a&128)===0?(o.flags=a&-65537|128,o):null;case 26:case 27:case 5:return Ce(o),null;case 31:if(o.memoizedState!==null){if(kn(o),o.alternate===null)throw Error(r(340));Di()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 13:if(kn(o),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Di()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return G(Et),null;case 4:return ce(),null;case 10:return ra(o.type),null;case 22:case 23:return kn(o),cg(),a!==null&&G(ki),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 24:return ra(Mt),null;case 25:return null;default:return null}}function KO(a,o){switch(Xm(o),o.tag){case 3:ra(Mt),ce();break;case 26:case 27:case 5:Ce(o);break;case 4:ce();break;case 31:o.memoizedState!==null&&kn(o);break;case 13:kn(o);break;case 19:G(Et);break;case 10:ra(o.type);break;case 22:case 23:kn(o),cg(),a!==null&&G(ki);break;case 24:ra(Mt)}}function ac(a,o){try{var c=o.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var y=h.next;c=y;do{if((c.tag&a)===a){h=void 0;var b=c.create,_=c.inst;h=b(),_.destroy=h}c=c.next}while(c!==y)}}catch(R){rt(o,o.return,R)}}function Ya(a,o,c){try{var h=o.updateQueue,y=h!==null?h.lastEffect:null;if(y!==null){var b=y.next;h=b;do{if((h.tag&a)===a){var _=h.inst,R=_.destroy;if(R!==void 0){_.destroy=void 0,y=o;var I=c,Z=R;try{Z()}catch(ne){rt(y,I,ne)}}}h=h.next}while(h!==b)}}catch(ne){rt(o,o.return,ne)}}function XO(a){var o=a.updateQueue;if(o!==null){var c=a.stateNode;try{$j(o,c)}catch(h){rt(a,a.return,h)}}}function YO(a,o,c){c.props=Ii(a.type,a.memoizedProps),c.state=a.memoizedState;try{c.componentWillUnmount()}catch(h){rt(a,o,h)}}function ic(a,o){try{var c=a.ref;if(c!==null){switch(a.tag){case 26:case 27:case 5:var h=a.stateNode;break;case 30:h=a.stateNode;break;default:h=a.stateNode}typeof c=="function"?a.refCleanup=c(h):c.current=h}}catch(y){rt(a,o,y)}}function Lr(a,o){var c=a.ref,h=a.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(y){rt(a,o,y)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(y){rt(a,o,y)}else c.current=null}function WO(a){var o=a.type,c=a.memoizedProps,h=a.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":c.autoFocus&&h.focus();break e;case"img":c.src?h.src=c.src:c.srcSet&&(h.srcset=c.srcSet)}}catch(y){rt(a,a.return,y)}}function qg(a,o,c){try{var h=a.stateNode;EI(h,a.type,c,o),h[bn]=o}catch(y){rt(a,a.return,y)}}function ZO(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&ni(a.type)||a.tag===4}function Vg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||ZO(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&ni(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Ug(a,o,c){var h=a.tag;if(h===5||h===6)a=a.stateNode,o?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(a,o):(o=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,o.appendChild(a),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=Qr));else if(h!==4&&(h===27&&ni(a.type)&&(c=a.stateNode,o=null),a=a.child,a!==null))for(Ug(a,o,c),a=a.sibling;a!==null;)Ug(a,o,c),a=a.sibling}function Zd(a,o,c){var h=a.tag;if(h===5||h===6)a=a.stateNode,o?c.insertBefore(a,o):c.appendChild(a);else if(h!==4&&(h===27&&ni(a.type)&&(c=a.stateNode),a=a.child,a!==null))for(Zd(a,o,c),a=a.sibling;a!==null;)Zd(a,o,c),a=a.sibling}function QO(a){var o=a.stateNode,c=a.memoizedProps;try{for(var h=a.type,y=o.attributes;y.length;)o.removeAttributeNode(y[0]);rn(o,h,c),o[Jt]=a,o[bn]=c}catch(b){rt(a,a.return,b)}}var la=!1,zt=!1,Hg=!1,JO=typeof WeakSet=="function"?WeakSet:Set,Yt=null;function sI(a,o){if(a=a.containerInfo,dv=xf,a=dj(a),Lm(a)){if("selectionStart"in a)var c={start:a.selectionStart,end:a.selectionEnd};else e:{c=(c=a.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var y=h.anchorOffset,b=h.focusNode;h=h.focusOffset;try{c.nodeType,b.nodeType}catch{c=null;break e}var _=0,R=-1,I=-1,Z=0,ne=0,oe=a,Q=null;t:for(;;){for(var ee;oe!==c||y!==0&&oe.nodeType!==3||(R=_+y),oe!==b||h!==0&&oe.nodeType!==3||(I=_+h),oe.nodeType===3&&(_+=oe.nodeValue.length),(ee=oe.firstChild)!==null;)Q=oe,oe=ee;for(;;){if(oe===a)break t;if(Q===c&&++Z===y&&(R=_),Q===b&&++ne===h&&(I=_),(ee=oe.nextSibling)!==null)break;oe=Q,Q=oe.parentNode}oe=ee}c=R===-1||I===-1?null:{start:R,end:I}}else c=null}c=c||{start:0,end:0}}else c=null;for(fv={focusedElem:a,selectionRange:c},xf=!1,Yt=o;Yt!==null;)if(o=Yt,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,Yt=a;else for(;Yt!==null;){switch(o=Yt,b=o.alternate,a=o.flags,o.tag){case 0:if((a&4)!==0&&(a=o.updateQueue,a=a!==null?a.events:null,a!==null))for(c=0;c<a.length;c++)y=a[c],y.ref.impl=y.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&b!==null){a=void 0,c=o,y=b.memoizedProps,b=b.memoizedState,h=c.stateNode;try{var pe=Ii(c.type,y);a=h.getSnapshotBeforeUpdate(pe,b),h.__reactInternalSnapshotBeforeUpdate=a}catch(Oe){rt(c,c.return,Oe)}}break;case 3:if((a&1024)!==0){if(a=o.stateNode.containerInfo,c=a.nodeType,c===9)mv(a);else if(c===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":mv(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=o.sibling,a!==null){a.return=o.return,Yt=a;break}Yt=o.return}}function eT(a,o,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:ua(a,c),h&4&&ac(5,c);break;case 1:if(ua(a,c),h&4)if(a=c.stateNode,o===null)try{a.componentDidMount()}catch(_){rt(c,c.return,_)}else{var y=Ii(c.type,o.memoizedProps);o=o.memoizedState;try{a.componentDidUpdate(y,o,a.__reactInternalSnapshotBeforeUpdate)}catch(_){rt(c,c.return,_)}}h&64&&XO(c),h&512&&ic(c,c.return);break;case 3:if(ua(a,c),h&64&&(a=c.updateQueue,a!==null)){if(o=null,c.child!==null)switch(c.child.tag){case 27:case 5:o=c.child.stateNode;break;case 1:o=c.child.stateNode}try{$j(a,o)}catch(_){rt(c,c.return,_)}}break;case 27:o===null&&h&4&&QO(c);case 26:case 5:ua(a,c),o===null&&h&4&&WO(c),h&512&&ic(c,c.return);break;case 12:ua(a,c);break;case 31:ua(a,c),h&4&&rT(a,c);break;case 13:ua(a,c),h&4&&aT(a,c),h&64&&(a=c.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(c=gI.bind(null,c),zI(a,c))));break;case 22:if(h=c.memoizedState!==null||la,!h){o=o!==null&&o.memoizedState!==null||zt,y=la;var b=zt;la=h,(zt=o)&&!b?da(a,c,(c.subtreeFlags&8772)!==0):ua(a,c),la=y,zt=b}break;case 30:break;default:ua(a,c)}}function tT(a){var o=a.alternate;o!==null&&(a.alternate=null,tT(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&bm(o)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var vt=null,Sn=!1;function ca(a,o,c){for(c=c.child;c!==null;)nT(a,o,c),c=c.sibling}function nT(a,o,c){if(Pn&&typeof Pn.onCommitFiberUnmount=="function")try{Pn.onCommitFiberUnmount(_l,c)}catch{}switch(c.tag){case 26:zt||Lr(c,o),ca(a,o,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:zt||Lr(c,o);var h=vt,y=Sn;ni(c.type)&&(vt=c.stateNode,Sn=!1),ca(a,o,c),pc(c.stateNode),vt=h,Sn=y;break;case 5:zt||Lr(c,o);case 6:if(h=vt,y=Sn,vt=null,ca(a,o,c),vt=h,Sn=y,vt!==null)if(Sn)try{(vt.nodeType===9?vt.body:vt.nodeName==="HTML"?vt.ownerDocument.body:vt).removeChild(c.stateNode)}catch(b){rt(c,o,b)}else try{vt.removeChild(c.stateNode)}catch(b){rt(c,o,b)}break;case 18:vt!==null&&(Sn?(a=vt,XT(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,c.stateNode),us(a)):XT(vt,c.stateNode));break;case 4:h=vt,y=Sn,vt=c.stateNode.containerInfo,Sn=!0,ca(a,o,c),vt=h,Sn=y;break;case 0:case 11:case 14:case 15:Ya(2,c,o),zt||Ya(4,c,o),ca(a,o,c);break;case 1:zt||(Lr(c,o),h=c.stateNode,typeof h.componentWillUnmount=="function"&&YO(c,o,h)),ca(a,o,c);break;case 21:ca(a,o,c);break;case 22:zt=(h=zt)||c.memoizedState!==null,ca(a,o,c),zt=h;break;default:ca(a,o,c)}}function rT(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{us(a)}catch(c){rt(o,o.return,c)}}}function aT(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{us(a)}catch(c){rt(o,o.return,c)}}function lI(a){switch(a.tag){case 31:case 13:case 19:var o=a.stateNode;return o===null&&(o=a.stateNode=new JO),o;case 22:return a=a.stateNode,o=a._retryCache,o===null&&(o=a._retryCache=new JO),o;default:throw Error(r(435,a.tag))}}function Qd(a,o){var c=lI(a);o.forEach(function(h){if(!c.has(h)){c.add(h);var y=vI.bind(null,a,h);h.then(y,y)}})}function An(a,o){var c=o.deletions;if(c!==null)for(var h=0;h<c.length;h++){var y=c[h],b=a,_=o,R=_;e:for(;R!==null;){switch(R.tag){case 27:if(ni(R.type)){vt=R.stateNode,Sn=!1;break e}break;case 5:vt=R.stateNode,Sn=!1;break e;case 3:case 4:vt=R.stateNode.containerInfo,Sn=!0;break e}R=R.return}if(vt===null)throw Error(r(160));nT(b,_,y),vt=null,Sn=!1,b=y.alternate,b!==null&&(b.return=null),y.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)iT(o,a),o=o.sibling}var Sr=null;function iT(a,o){var c=a.alternate,h=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:An(o,a),jn(a),h&4&&(Ya(3,a,a.return),ac(3,a),Ya(5,a,a.return));break;case 1:An(o,a),jn(a),h&512&&(zt||c===null||Lr(c,c.return)),h&64&&la&&(a=a.updateQueue,a!==null&&(h=a.callbacks,h!==null&&(c=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=c===null?h:c.concat(h))));break;case 26:var y=Sr;if(An(o,a),jn(a),h&512&&(zt||c===null||Lr(c,c.return)),h&4){var b=c!==null?c.memoizedState:null;if(h=a.memoizedState,c===null)if(h===null)if(a.stateNode===null){e:{h=a.type,c=a.memoizedProps,y=y.ownerDocument||y;t:switch(h){case"title":b=y.getElementsByTagName("title")[0],(!b||b[Dl]||b[Jt]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=y.createElement(h),y.head.insertBefore(b,y.querySelector("head > title"))),rn(b,h,c),b[Jt]=a,Xt(b),h=b;break e;case"link":var _=iC("link","href",y).get(h+(c.href||""));if(_){for(var R=0;R<_.length;R++)if(b=_[R],b.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&b.getAttribute("rel")===(c.rel==null?null:c.rel)&&b.getAttribute("title")===(c.title==null?null:c.title)&&b.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){_.splice(R,1);break t}}b=y.createElement(h),rn(b,h,c),y.head.appendChild(b);break;case"meta":if(_=iC("meta","content",y).get(h+(c.content||""))){for(R=0;R<_.length;R++)if(b=_[R],b.getAttribute("content")===(c.content==null?null:""+c.content)&&b.getAttribute("name")===(c.name==null?null:c.name)&&b.getAttribute("property")===(c.property==null?null:c.property)&&b.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&b.getAttribute("charset")===(c.charSet==null?null:c.charSet)){_.splice(R,1);break t}}b=y.createElement(h),rn(b,h,c),y.head.appendChild(b);break;default:throw Error(r(468,h))}b[Jt]=a,Xt(b),h=b}a.stateNode=h}else oC(y,a.type,a.stateNode);else a.stateNode=aC(y,h,a.memoizedProps);else b!==h?(b===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):b.count--,h===null?oC(y,a.type,a.stateNode):aC(y,h,a.memoizedProps)):h===null&&a.stateNode!==null&&qg(a,a.memoizedProps,c.memoizedProps)}break;case 27:An(o,a),jn(a),h&512&&(zt||c===null||Lr(c,c.return)),c!==null&&h&4&&qg(a,a.memoizedProps,c.memoizedProps);break;case 5:if(An(o,a),jn(a),h&512&&(zt||c===null||Lr(c,c.return)),a.flags&32){y=a.stateNode;try{Mo(y,"")}catch(pe){rt(a,a.return,pe)}}h&4&&a.stateNode!=null&&(y=a.memoizedProps,qg(a,y,c!==null?c.memoizedProps:y)),h&1024&&(Hg=!0);break;case 6:if(An(o,a),jn(a),h&4){if(a.stateNode===null)throw Error(r(162));h=a.memoizedProps,c=a.stateNode;try{c.nodeValue=h}catch(pe){rt(a,a.return,pe)}}break;case 3:if(mf=null,y=Sr,Sr=hf(o.containerInfo),An(o,a),Sr=y,jn(a),h&4&&c!==null&&c.memoizedState.isDehydrated)try{us(o.containerInfo)}catch(pe){rt(a,a.return,pe)}Hg&&(Hg=!1,oT(a));break;case 4:h=Sr,Sr=hf(a.stateNode.containerInfo),An(o,a),jn(a),Sr=h;break;case 12:An(o,a),jn(a);break;case 31:An(o,a),jn(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,Qd(a,h)));break;case 13:An(o,a),jn(a),a.child.flags&8192&&a.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(ef=ln()),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,Qd(a,h)));break;case 22:y=a.memoizedState!==null;var I=c!==null&&c.memoizedState!==null,Z=la,ne=zt;if(la=Z||y,zt=ne||I,An(o,a),zt=ne,la=Z,jn(a),h&8192)e:for(o=a.stateNode,o._visibility=y?o._visibility&-2:o._visibility|1,y&&(c===null||I||la||zt||qi(a)),c=null,o=a;;){if(o.tag===5||o.tag===26){if(c===null){I=c=o;try{if(b=I.stateNode,y)_=b.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{R=I.stateNode;var oe=I.memoizedProps.style,Q=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;R.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(pe){rt(I,I.return,pe)}}}else if(o.tag===6){if(c===null){I=o;try{I.stateNode.nodeValue=y?"":I.memoizedProps}catch(pe){rt(I,I.return,pe)}}}else if(o.tag===18){if(c===null){I=o;try{var ee=I.stateNode;y?YT(ee,!0):YT(I.stateNode,!1)}catch(pe){rt(I,I.return,pe)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===a)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;c===o&&(c=null),o=o.return}c===o&&(c=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=a.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,Qd(a,c))));break;case 19:An(o,a),jn(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,Qd(a,h)));break;case 30:break;case 21:break;default:An(o,a),jn(a)}}function jn(a){var o=a.flags;if(o&2){try{for(var c,h=a.return;h!==null;){if(ZO(h)){c=h;break}h=h.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var y=c.stateNode,b=Vg(a);Zd(a,b,y);break;case 5:var _=c.stateNode;c.flags&32&&(Mo(_,""),c.flags&=-33);var R=Vg(a);Zd(a,R,_);break;case 3:case 4:var I=c.stateNode.containerInfo,Z=Vg(a);Ug(a,Z,I);break;default:throw Error(r(161))}}catch(ne){rt(a,a.return,ne)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function oT(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var o=a;oT(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),a=a.sibling}}function ua(a,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)eT(a,o.alternate,o),o=o.sibling}function qi(a){for(a=a.child;a!==null;){var o=a;switch(o.tag){case 0:case 11:case 14:case 15:Ya(4,o,o.return),qi(o);break;case 1:Lr(o,o.return);var c=o.stateNode;typeof c.componentWillUnmount=="function"&&YO(o,o.return,c),qi(o);break;case 27:pc(o.stateNode);case 26:case 5:Lr(o,o.return),qi(o);break;case 22:o.memoizedState===null&&qi(o);break;case 30:qi(o);break;default:qi(o)}a=a.sibling}}function da(a,o,c){for(c=c&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,y=a,b=o,_=b.flags;switch(b.tag){case 0:case 11:case 15:da(y,b,c),ac(4,b);break;case 1:if(da(y,b,c),h=b,y=h.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(Z){rt(h,h.return,Z)}if(h=b,y=h.updateQueue,y!==null){var R=h.stateNode;try{var I=y.shared.hiddenCallbacks;if(I!==null)for(y.shared.hiddenCallbacks=null,y=0;y<I.length;y++)Lj(I[y],R)}catch(Z){rt(h,h.return,Z)}}c&&_&64&&XO(b),ic(b,b.return);break;case 27:QO(b);case 26:case 5:da(y,b,c),c&&h===null&&_&4&&WO(b),ic(b,b.return);break;case 12:da(y,b,c);break;case 31:da(y,b,c),c&&_&4&&rT(y,b);break;case 13:da(y,b,c),c&&_&4&&aT(y,b);break;case 22:b.memoizedState===null&&da(y,b,c),ic(b,b.return);break;case 30:break;default:da(y,b,c)}o=o.sibling}}function Fg(a,o){var c=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),a=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),a!==c&&(a!=null&&a.refCount++,c!=null&&Fl(c))}function Gg(a,o){a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&Fl(a))}function Ar(a,o,c,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)sT(a,o,c,h),o=o.sibling}function sT(a,o,c,h){var y=o.flags;switch(o.tag){case 0:case 11:case 15:Ar(a,o,c,h),y&2048&&ac(9,o);break;case 1:Ar(a,o,c,h);break;case 3:Ar(a,o,c,h),y&2048&&(a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&Fl(a)));break;case 12:if(y&2048){Ar(a,o,c,h),a=o.stateNode;try{var b=o.memoizedProps,_=b.id,R=b.onPostCommit;typeof R=="function"&&R(_,o.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(I){rt(o,o.return,I)}}else Ar(a,o,c,h);break;case 31:Ar(a,o,c,h);break;case 13:Ar(a,o,c,h);break;case 23:break;case 22:b=o.stateNode,_=o.alternate,o.memoizedState!==null?b._visibility&2?Ar(a,o,c,h):oc(a,o):b._visibility&2?Ar(a,o,c,h):(b._visibility|=2,Jo(a,o,c,h,(o.subtreeFlags&10256)!==0||!1)),y&2048&&Fg(_,o);break;case 24:Ar(a,o,c,h),y&2048&&Gg(o.alternate,o);break;default:Ar(a,o,c,h)}}function Jo(a,o,c,h,y){for(y=y&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var b=a,_=o,R=c,I=h,Z=_.flags;switch(_.tag){case 0:case 11:case 15:Jo(b,_,R,I,y),ac(8,_);break;case 23:break;case 22:var ne=_.stateNode;_.memoizedState!==null?ne._visibility&2?Jo(b,_,R,I,y):oc(b,_):(ne._visibility|=2,Jo(b,_,R,I,y)),y&&Z&2048&&Fg(_.alternate,_);break;case 24:Jo(b,_,R,I,y),y&&Z&2048&&Gg(_.alternate,_);break;default:Jo(b,_,R,I,y)}o=o.sibling}}function oc(a,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var c=a,h=o,y=h.flags;switch(h.tag){case 22:oc(c,h),y&2048&&Fg(h.alternate,h);break;case 24:oc(c,h),y&2048&&Gg(h.alternate,h);break;default:oc(c,h)}o=o.sibling}}var sc=8192;function es(a,o,c){if(a.subtreeFlags&sc)for(a=a.child;a!==null;)lT(a,o,c),a=a.sibling}function lT(a,o,c){switch(a.tag){case 26:es(a,o,c),a.flags&sc&&a.memoizedState!==null&&XI(c,Sr,a.memoizedState,a.memoizedProps);break;case 5:es(a,o,c);break;case 3:case 4:var h=Sr;Sr=hf(a.stateNode.containerInfo),es(a,o,c),Sr=h;break;case 22:a.memoizedState===null&&(h=a.alternate,h!==null&&h.memoizedState!==null?(h=sc,sc=16777216,es(a,o,c),sc=h):es(a,o,c));break;default:es(a,o,c)}}function cT(a){var o=a.alternate;if(o!==null&&(a=o.child,a!==null)){o.child=null;do o=a.sibling,a.sibling=null,a=o;while(a!==null)}}function lc(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];Yt=h,dT(h,a)}cT(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)uT(a),a=a.sibling}function uT(a){switch(a.tag){case 0:case 11:case 15:lc(a),a.flags&2048&&Ya(9,a,a.return);break;case 3:lc(a);break;case 12:lc(a);break;case 22:var o=a.stateNode;a.memoizedState!==null&&o._visibility&2&&(a.return===null||a.return.tag!==13)?(o._visibility&=-3,Jd(a)):lc(a);break;default:lc(a)}}function Jd(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];Yt=h,dT(h,a)}cT(a)}for(a=a.child;a!==null;){switch(o=a,o.tag){case 0:case 11:case 15:Ya(8,o,o.return),Jd(o);break;case 22:c=o.stateNode,c._visibility&2&&(c._visibility&=-3,Jd(o));break;default:Jd(o)}a=a.sibling}}function dT(a,o){for(;Yt!==null;){var c=Yt;switch(c.tag){case 0:case 11:case 15:Ya(8,c,o);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var h=c.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Fl(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,Yt=h;else e:for(c=a;Yt!==null;){h=Yt;var y=h.sibling,b=h.return;if(tT(h),h===c){Yt=null;break e}if(y!==null){y.return=b,Yt=y;break e}Yt=b}}}var cI={getCacheForType:function(a){var o=tn(Mt),c=o.data.get(a);return c===void 0&&(c=a(),o.data.set(a,c)),c},cacheSignal:function(){return tn(Mt).controller.signal}},uI=typeof WeakMap=="function"?WeakMap:Map,We=0,lt=null,Le=null,Ie=0,nt=0,zn=null,Wa=!1,ts=!1,Kg=!1,fa=0,Ot=0,Za=0,Vi=0,Xg=0,Ln=0,ns=0,cc=null,On=null,Yg=!1,ef=0,fT=0,tf=1/0,nf=null,Qa=null,qt=0,Ja=null,rs=null,ha=0,Wg=0,Zg=null,hT=null,uc=0,Qg=null;function $n(){return(We&2)!==0&&Ie!==0?Ie&-Ie:z.T!==null?av():_2()}function pT(){if(Ln===0)if((Ie&536870912)===0||Ve){var a=ud;ud<<=1,(ud&3932160)===0&&(ud=262144),Ln=a}else Ln=536870912;return a=Rn.current,a!==null&&(a.flags|=32),Ln}function Tn(a,o,c){(a===lt&&(nt===2||nt===9)||a.cancelPendingCommit!==null)&&(as(a,0),ei(a,Ie,Ln,!1)),Nl(a,c),((We&2)===0||a!==lt)&&(a===lt&&((We&2)===0&&(Vi|=c),Ot===4&&ei(a,Ie,Ln,!1)),$r(a))}function mT(a,o,c){if((We&6)!==0)throw Error(r(327));var h=!c&&(o&127)===0&&(o&a.expiredLanes)===0||Pl(a,o),y=h?hI(a,o):ev(a,o,!0),b=h;do{if(y===0){ts&&!h&&ei(a,o,0,!1);break}else{if(c=a.current.alternate,b&&!dI(c)){y=ev(a,o,!1),b=!1;continue}if(y===2){if(b=o,a.errorRecoveryDisabledLanes&b)var _=0;else _=a.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){o=_;e:{var R=a;y=cc;var I=R.current.memoizedState.isDehydrated;if(I&&(as(R,_).flags|=256),_=ev(R,_,!1),_!==2){if(Kg&&!I){R.errorRecoveryDisabledLanes|=b,Vi|=b,y=4;break e}b=On,On=y,b!==null&&(On===null?On=b:On.push.apply(On,b))}y=_}if(b=!1,y!==2)continue}}if(y===1){as(a,0),ei(a,o,0,!0);break}e:{switch(h=a,b=y,b){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:ei(h,o,Ln,!Wa);break e;case 2:On=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(y=ef+300-ln(),10<y)){if(ei(h,o,Ln,!Wa),fd(h,0,!0)!==0)break e;ha=o,h.timeoutHandle=GT(gT.bind(null,h,c,On,nf,Yg,o,Ln,Vi,ns,Wa,b,"Throttled",-0,0),y);break e}gT(h,c,On,nf,Yg,o,Ln,Vi,ns,Wa,b,null,-0,0)}}break}while(!0);$r(a)}function gT(a,o,c,h,y,b,_,R,I,Z,ne,oe,Q,ee){if(a.timeoutHandle=-1,oe=o.subtreeFlags,oe&8192||(oe&16785408)===16785408){oe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qr},lT(o,b,oe);var pe=(b&62914560)===b?ef-ln():(b&4194048)===b?fT-ln():0;if(pe=YI(oe,pe),pe!==null){ha=b,a.cancelPendingCommit=pe(jT.bind(null,a,o,b,c,h,y,_,R,I,ne,oe,null,Q,ee)),ei(a,b,_,!Z);return}}jT(a,o,b,c,h,y,_,R,I)}function dI(a){for(var o=a;;){var c=o.tag;if((c===0||c===11||c===15)&&o.flags&16384&&(c=o.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var y=c[h],b=y.getSnapshot;y=y.value;try{if(!Dn(b(),y))return!1}catch{return!1}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ei(a,o,c,h){o&=~Xg,o&=~Vi,a.suspendedLanes|=o,a.pingedLanes&=~o,h&&(a.warmLanes|=o),h=a.expirationTimes;for(var y=o;0<y;){var b=31-Nn(y),_=1<<b;h[b]=-1,y&=~_}c!==0&&T2(a,c,o)}function rf(){return(We&6)===0?(dc(0),!1):!0}function Jg(){if(Le!==null){if(nt===0)var a=Le.return;else a=Le,na=Mi=null,mg(a),Xo=null,Kl=0,a=Le;for(;a!==null;)KO(a.alternate,a),a=a.return;Le=null}}function as(a,o){var c=a.timeoutHandle;c!==-1&&(a.timeoutHandle=-1,NI(c)),c=a.cancelPendingCommit,c!==null&&(a.cancelPendingCommit=null,c()),ha=0,Jg(),lt=a,Le=c=ea(a.current,null),Ie=o,nt=0,zn=null,Wa=!1,ts=Pl(a,o),Kg=!1,ns=Ln=Xg=Vi=Za=Ot=0,On=cc=null,Yg=!1,(o&8)!==0&&(o|=o&32);var h=a.entangledLanes;if(h!==0)for(a=a.entanglements,h&=o;0<h;){var y=31-Nn(h),b=1<<y;o|=a[y],h&=~b}return fa=o,jd(),c}function vT(a,o){Me=null,z.H=tc,o===Ko||o===Dd?(o=Mj(),nt=3):o===rg?(o=Mj(),nt=4):nt=o===Ng?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,zn=o,Le===null&&(Ot=1,Gd(a,Zn(o,a.current)))}function yT(){var a=Rn.current;return a===null?!0:(Ie&4194048)===Ie?tr===null:(Ie&62914560)===Ie||(Ie&536870912)!==0?a===tr:!1}function xT(){var a=z.H;return z.H=tc,a===null?tc:a}function bT(){var a=z.A;return z.A=cI,a}function af(){Ot=4,Wa||(Ie&4194048)!==Ie&&Rn.current!==null||(ts=!0),(Za&134217727)===0&&(Vi&134217727)===0||lt===null||ei(lt,Ie,Ln,!1)}function ev(a,o,c){var h=We;We|=2;var y=xT(),b=bT();(lt!==a||Ie!==o)&&(nf=null,as(a,o)),o=!1;var _=Ot;e:do try{if(nt!==0&&Le!==null){var R=Le,I=zn;switch(nt){case 8:Jg(),_=6;break e;case 3:case 2:case 9:case 6:Rn.current===null&&(o=!0);var Z=nt;if(nt=0,zn=null,is(a,R,I,Z),c&&ts){_=0;break e}break;default:Z=nt,nt=0,zn=null,is(a,R,I,Z)}}fI(),_=Ot;break}catch(ne){vT(a,ne)}while(!0);return o&&a.shellSuspendCounter++,na=Mi=null,We=h,z.H=y,z.A=b,Le===null&&(lt=null,Ie=0,jd()),_}function fI(){for(;Le!==null;)wT(Le)}function hI(a,o){var c=We;We|=2;var h=xT(),y=bT();lt!==a||Ie!==o?(nf=null,tf=ln()+500,as(a,o)):ts=Pl(a,o);e:do try{if(nt!==0&&Le!==null){o=Le;var b=zn;t:switch(nt){case 1:nt=0,zn=null,is(a,o,b,1);break;case 2:case 9:if(Nj(b)){nt=0,zn=null,ST(o);break}o=function(){nt!==2&&nt!==9||lt!==a||(nt=7),$r(a)},b.then(o,o);break e;case 3:nt=7;break e;case 4:nt=5;break e;case 7:Nj(b)?(nt=0,zn=null,ST(o)):(nt=0,zn=null,is(a,o,b,7));break;case 5:var _=null;switch(Le.tag){case 26:_=Le.memoizedState;case 5:case 27:var R=Le;if(_?sC(_):R.stateNode.complete){nt=0,zn=null;var I=R.sibling;if(I!==null)Le=I;else{var Z=R.return;Z!==null?(Le=Z,of(Z)):Le=null}break t}}nt=0,zn=null,is(a,o,b,5);break;case 6:nt=0,zn=null,is(a,o,b,6);break;case 8:Jg(),Ot=6;break e;default:throw Error(r(462))}}pI();break}catch(ne){vT(a,ne)}while(!0);return na=Mi=null,z.H=h,z.A=y,We=c,Le!==null?0:(lt=null,Ie=0,jd(),Ot)}function pI(){for(;Le!==null&&!Wr();)wT(Le)}function wT(a){var o=FO(a.alternate,a,fa);a.memoizedProps=a.pendingProps,o===null?of(a):Le=o}function ST(a){var o=a,c=o.alternate;switch(o.tag){case 15:case 0:o=BO(c,o,o.pendingProps,o.type,void 0,Ie);break;case 11:o=BO(c,o,o.pendingProps,o.type.render,o.ref,Ie);break;case 5:mg(o);default:KO(c,o),o=Le=bj(o,fa),o=FO(c,o,fa)}a.memoizedProps=a.pendingProps,o===null?of(a):Le=o}function is(a,o,c,h){na=Mi=null,mg(o),Xo=null,Kl=0;var y=o.return;try{if(nI(a,y,o,c,Ie)){Ot=1,Gd(a,Zn(c,a.current)),Le=null;return}}catch(b){if(y!==null)throw Le=y,b;Ot=1,Gd(a,Zn(c,a.current)),Le=null;return}o.flags&32768?(Ve||h===1?a=!0:ts||(Ie&536870912)!==0?a=!1:(Wa=a=!0,(h===2||h===9||h===3||h===6)&&(h=Rn.current,h!==null&&h.tag===13&&(h.flags|=16384))),AT(o,a)):of(o)}function of(a){var o=a;do{if((o.flags&32768)!==0){AT(o,Wa);return}a=o.return;var c=iI(o.alternate,o,fa);if(c!==null){Le=c;return}if(o=o.sibling,o!==null){Le=o;return}Le=o=a}while(o!==null);Ot===0&&(Ot=5)}function AT(a,o){do{var c=oI(a.alternate,a);if(c!==null){c.flags&=32767,Le=c;return}if(c=a.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!o&&(a=a.sibling,a!==null)){Le=a;return}Le=a=c}while(a!==null);Ot=6,Le=null}function jT(a,o,c,h,y,b,_,R,I){a.cancelPendingCommit=null;do sf();while(qt!==0);if((We&6)!==0)throw Error(r(327));if(o!==null){if(o===a.current)throw Error(r(177));if(b=o.lanes|o.childLanes,b|=Vm,K$(a,c,b,_,R,I),a===lt&&(Le=lt=null,Ie=0),rs=o,Ja=a,ha=c,Wg=b,Zg=y,hT=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,yI(ld,function(){return _T(),null})):(a.callbackNode=null,a.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=z.T,z.T=null,y=H.p,H.p=2,_=We,We|=4;try{sI(a,o,c)}finally{We=_,H.p=y,z.T=h}}qt=1,OT(),TT(),CT()}}function OT(){if(qt===1){qt=0;var a=Ja,o=rs,c=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||c){c=z.T,z.T=null;var h=H.p;H.p=2;var y=We;We|=4;try{iT(o,a);var b=fv,_=dj(a.containerInfo),R=b.focusedElem,I=b.selectionRange;if(_!==R&&R&&R.ownerDocument&&uj(R.ownerDocument.documentElement,R)){if(I!==null&&Lm(R)){var Z=I.start,ne=I.end;if(ne===void 0&&(ne=Z),"selectionStart"in R)R.selectionStart=Z,R.selectionEnd=Math.min(ne,R.value.length);else{var oe=R.ownerDocument||document,Q=oe&&oe.defaultView||window;if(Q.getSelection){var ee=Q.getSelection(),pe=R.textContent.length,Oe=Math.min(I.start,pe),ot=I.end===void 0?Oe:Math.min(I.end,pe);!ee.extend&&Oe>ot&&(_=ot,ot=Oe,Oe=_);var K=cj(R,Oe),V=cj(R,ot);if(K&&V&&(ee.rangeCount!==1||ee.anchorNode!==K.node||ee.anchorOffset!==K.offset||ee.focusNode!==V.node||ee.focusOffset!==V.offset)){var Y=oe.createRange();Y.setStart(K.node,K.offset),ee.removeAllRanges(),Oe>ot?(ee.addRange(Y),ee.extend(V.node,V.offset)):(Y.setEnd(V.node,V.offset),ee.addRange(Y))}}}}for(oe=[],ee=R;ee=ee.parentNode;)ee.nodeType===1&&oe.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<oe.length;R++){var ae=oe[R];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}xf=!!dv,fv=dv=null}finally{We=y,H.p=h,z.T=c}}a.current=o,qt=2}}function TT(){if(qt===2){qt=0;var a=Ja,o=rs,c=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||c){c=z.T,z.T=null;var h=H.p;H.p=2;var y=We;We|=4;try{eT(a,o.alternate,o)}finally{We=y,H.p=h,z.T=c}}qt=3}}function CT(){if(qt===4||qt===3){qt=0,El();var a=Ja,o=rs,c=ha,h=hT;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?qt=5:(qt=0,rs=Ja=null,ET(a,a.pendingLanes));var y=a.pendingLanes;if(y===0&&(Qa=null),ym(c),o=o.stateNode,Pn&&typeof Pn.onCommitFiberRoot=="function")try{Pn.onCommitFiberRoot(_l,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=z.T,y=H.p,H.p=2,z.T=null;try{for(var b=a.onRecoverableError,_=0;_<h.length;_++){var R=h[_];b(R.value,{componentStack:R.stack})}}finally{z.T=o,H.p=y}}(ha&3)!==0&&sf(),$r(a),y=a.pendingLanes,(c&261930)!==0&&(y&42)!==0?a===Qg?uc++:(uc=0,Qg=a):uc=0,dc(0)}}function ET(a,o){(a.pooledCacheLanes&=o)===0&&(o=a.pooledCache,o!=null&&(a.pooledCache=null,Fl(o)))}function sf(){return OT(),TT(),CT(),_T()}function _T(){if(qt!==5)return!1;var a=Ja,o=Wg;Wg=0;var c=ym(ha),h=z.T,y=H.p;try{H.p=32>c?32:c,z.T=null,c=Zg,Zg=null;var b=Ja,_=ha;if(qt=0,rs=Ja=null,ha=0,(We&6)!==0)throw Error(r(331));var R=We;if(We|=4,uT(b.current),sT(b,b.current,_,c),We=R,dc(0,!1),Pn&&typeof Pn.onPostCommitFiberRoot=="function")try{Pn.onPostCommitFiberRoot(_l,b)}catch{}return!0}finally{H.p=y,z.T=h,ET(a,o)}}function PT(a,o,c){o=Zn(c,o),o=Pg(a.stateNode,o,2),a=Ga(a,o,2),a!==null&&(Nl(a,2),$r(a))}function rt(a,o,c){if(a.tag===3)PT(a,a,c);else for(;o!==null;){if(o.tag===3){PT(o,a,c);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Qa===null||!Qa.has(h))){a=Zn(c,a),c=NO(2),h=Ga(o,c,2),h!==null&&(DO(c,h,o,a),Nl(h,2),$r(h));break}}o=o.return}}function tv(a,o,c){var h=a.pingCache;if(h===null){h=a.pingCache=new uI;var y=new Set;h.set(o,y)}else y=h.get(o),y===void 0&&(y=new Set,h.set(o,y));y.has(c)||(Kg=!0,y.add(c),a=mI.bind(null,a,o,c),o.then(a,a))}function mI(a,o,c){var h=a.pingCache;h!==null&&h.delete(o),a.pingedLanes|=a.suspendedLanes&c,a.warmLanes&=~c,lt===a&&(Ie&c)===c&&(Ot===4||Ot===3&&(Ie&62914560)===Ie&&300>ln()-ef?(We&2)===0&&as(a,0):Xg|=c,ns===Ie&&(ns=0)),$r(a)}function NT(a,o){o===0&&(o=O2()),a=Pi(a,o),a!==null&&(Nl(a,o),$r(a))}function gI(a){var o=a.memoizedState,c=0;o!==null&&(c=o.retryLane),NT(a,c)}function vI(a,o){var c=0;switch(a.tag){case 31:case 13:var h=a.stateNode,y=a.memoizedState;y!==null&&(c=y.retryLane);break;case 19:h=a.stateNode;break;case 22:h=a.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),NT(a,c)}function yI(a,o){return za(a,o)}var lf=null,os=null,nv=!1,cf=!1,rv=!1,ti=0;function $r(a){a!==os&&a.next===null&&(os===null?lf=os=a:os=os.next=a),cf=!0,nv||(nv=!0,bI())}function dc(a,o){if(!rv&&cf){rv=!0;do for(var c=!1,h=lf;h!==null;){if(a!==0){var y=h.pendingLanes;if(y===0)var b=0;else{var _=h.suspendedLanes,R=h.pingedLanes;b=(1<<31-Nn(42|a)+1)-1,b&=y&~(_&~R),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(c=!0,kT(h,b))}else b=Ie,b=fd(h,h===lt?b:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(b&3)===0||Pl(h,b)||(c=!0,kT(h,b));h=h.next}while(c);rv=!1}}function xI(){DT()}function DT(){cf=nv=!1;var a=0;ti!==0&&PI()&&(a=ti);for(var o=ln(),c=null,h=lf;h!==null;){var y=h.next,b=MT(h,o);b===0?(h.next=null,c===null?lf=y:c.next=y,y===null&&(os=c)):(c=h,(a!==0||(b&3)!==0)&&(cf=!0)),h=y}qt!==0&&qt!==5||dc(a),ti!==0&&(ti=0)}function MT(a,o){for(var c=a.suspendedLanes,h=a.pingedLanes,y=a.expirationTimes,b=a.pendingLanes&-62914561;0<b;){var _=31-Nn(b),R=1<<_,I=y[_];I===-1?((R&c)===0||(R&h)!==0)&&(y[_]=G$(R,o)):I<=o&&(a.expiredLanes|=R),b&=~R}if(o=lt,c=Ie,c=fd(a,a===o?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),h=a.callbackNode,c===0||a===o&&(nt===2||nt===9)||a.cancelPendingCommit!==null)return h!==null&&h!==null&&br(h),a.callbackNode=null,a.callbackPriority=0;if((c&3)===0||Pl(a,c)){if(o=c&-c,o===a.callbackPriority)return o;switch(h!==null&&br(h),ym(c)){case 2:case 8:c=A2;break;case 32:c=ld;break;case 268435456:c=j2;break;default:c=ld}return h=RT.bind(null,a),c=za(c,h),a.callbackPriority=o,a.callbackNode=c,o}return h!==null&&h!==null&&br(h),a.callbackPriority=2,a.callbackNode=null,2}function RT(a,o){if(qt!==0&&qt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var c=a.callbackNode;if(sf()&&a.callbackNode!==c)return null;var h=Ie;return h=fd(a,a===lt?h:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),h===0?null:(mT(a,h,o),MT(a,ln()),a.callbackNode!=null&&a.callbackNode===c?RT.bind(null,a):null)}function kT(a,o){if(sf())return null;mT(a,o,!0)}function bI(){DI(function(){(We&6)!==0?za(S2,xI):DT()})}function av(){if(ti===0){var a=Fo;a===0&&(a=cd,cd<<=1,(cd&261888)===0&&(cd=256)),ti=a}return ti}function zT(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:gd(""+a)}function LT(a,o){var c=o.ownerDocument.createElement("input");return c.name=o.name,c.value=o.value,a.id&&c.setAttribute("form",a.id),o.parentNode.insertBefore(c,o),a=new FormData(a),c.parentNode.removeChild(c),a}function wI(a,o,c,h,y){if(o==="submit"&&c&&c.stateNode===y){var b=zT((y[bn]||null).action),_=h.submitter;_&&(o=(o=_[bn]||null)?zT(o.formAction):_.getAttribute("formAction"),o!==null&&(b=o,_=null));var R=new bd("action","action",null,h,y);a.push({event:R,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(ti!==0){var I=_?LT(y,_):new FormData(y);jg(c,{pending:!0,data:I,method:y.method,action:b},null,I)}}else typeof b=="function"&&(R.preventDefault(),I=_?LT(y,_):new FormData(y),jg(c,{pending:!0,data:I,method:y.method,action:b},b,I))},currentTarget:y}]})}}for(var iv=0;iv<qm.length;iv++){var ov=qm[iv],SI=ov.toLowerCase(),AI=ov[0].toUpperCase()+ov.slice(1);wr(SI,"on"+AI)}wr(pj,"onAnimationEnd"),wr(mj,"onAnimationIteration"),wr(gj,"onAnimationStart"),wr("dblclick","onDoubleClick"),wr("focusin","onFocus"),wr("focusout","onBlur"),wr(BB,"onTransitionRun"),wr(IB,"onTransitionStart"),wr(qB,"onTransitionCancel"),wr(vj,"onTransitionEnd"),No("onMouseEnter",["mouseout","mouseover"]),No("onMouseLeave",["mouseout","mouseover"]),No("onPointerEnter",["pointerout","pointerover"]),No("onPointerLeave",["pointerout","pointerover"]),Ti("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ti("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ti("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ti("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ti("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ti("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fc="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(" "),jI=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fc));function $T(a,o){o=(o&4)!==0;for(var c=0;c<a.length;c++){var h=a[c],y=h.event;h=h.listeners;e:{var b=void 0;if(o)for(var _=h.length-1;0<=_;_--){var R=h[_],I=R.instance,Z=R.currentTarget;if(R=R.listener,I!==b&&y.isPropagationStopped())break e;b=R,y.currentTarget=Z;try{b(y)}catch(ne){Ad(ne)}y.currentTarget=null,b=I}else for(_=0;_<h.length;_++){if(R=h[_],I=R.instance,Z=R.currentTarget,R=R.listener,I!==b&&y.isPropagationStopped())break e;b=R,y.currentTarget=Z;try{b(y)}catch(ne){Ad(ne)}y.currentTarget=null,b=I}}}}function $e(a,o){var c=o[xm];c===void 0&&(c=o[xm]=new Set);var h=a+"__bubble";c.has(h)||(BT(o,a,2,!1),c.add(h))}function sv(a,o,c){var h=0;o&&(h|=4),BT(c,a,h,o)}var uf="_reactListening"+Math.random().toString(36).slice(2);function lv(a){if(!a[uf]){a[uf]=!0,D2.forEach(function(c){c!=="selectionchange"&&(jI.has(c)||sv(c,!1,a),sv(c,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[uf]||(o[uf]=!0,sv("selectionchange",!1,o))}}function BT(a,o,c,h){switch(pC(o)){case 2:var y=QI;break;case 8:y=JI;break;default:y=Av}c=y.bind(null,o,c,a),y=void 0,!Em||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(y=!0),h?y!==void 0?a.addEventListener(o,c,{capture:!0,passive:y}):a.addEventListener(o,c,!0):y!==void 0?a.addEventListener(o,c,{passive:y}):a.addEventListener(o,c,!1)}function cv(a,o,c,h,y){var b=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var _=h.tag;if(_===3||_===4){var R=h.stateNode.containerInfo;if(R===y)break;if(_===4)for(_=h.return;_!==null;){var I=_.tag;if((I===3||I===4)&&_.stateNode.containerInfo===y)return;_=_.return}for(;R!==null;){if(_=Eo(R),_===null)return;if(I=_.tag,I===5||I===6||I===26||I===27){h=b=_;continue e}R=R.parentNode}}h=h.return}H2(function(){var Z=b,ne=Tm(c),oe=[];e:{var Q=yj.get(a);if(Q!==void 0){var ee=bd,pe=a;switch(a){case"keypress":if(yd(c)===0)break e;case"keydown":case"keyup":ee=vB;break;case"focusin":pe="focus",ee=Dm;break;case"focusout":pe="blur",ee=Dm;break;case"beforeblur":case"afterblur":ee=Dm;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=K2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=iB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=bB;break;case pj:case mj:case gj:ee=lB;break;case vj:ee=SB;break;case"scroll":case"scrollend":ee=rB;break;case"wheel":ee=jB;break;case"copy":case"cut":case"paste":ee=uB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=Y2;break;case"toggle":case"beforetoggle":ee=TB}var Oe=(o&4)!==0,ot=!Oe&&(a==="scroll"||a==="scrollend"),K=Oe?Q!==null?Q+"Capture":null:Q;Oe=[];for(var V=Z,Y;V!==null;){var ae=V;if(Y=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||Y===null||K===null||(ae=Rl(V,K),ae!=null&&Oe.push(hc(V,ae,Y))),ot)break;V=V.return}0<Oe.length&&(Q=new ee(Q,pe,null,c,ne),oe.push({event:Q,listeners:Oe}))}}if((o&7)===0){e:{if(Q=a==="mouseover"||a==="pointerover",ee=a==="mouseout"||a==="pointerout",Q&&c!==Om&&(pe=c.relatedTarget||c.fromElement)&&(Eo(pe)||pe[Co]))break e;if((ee||Q)&&(Q=ne.window===ne?ne:(Q=ne.ownerDocument)?Q.defaultView||Q.parentWindow:window,ee?(pe=c.relatedTarget||c.toElement,ee=Z,pe=pe?Eo(pe):null,pe!==null&&(ot=s(pe),Oe=pe.tag,pe!==ot||Oe!==5&&Oe!==27&&Oe!==6)&&(pe=null)):(ee=null,pe=Z),ee!==pe)){if(Oe=K2,ae="onMouseLeave",K="onMouseEnter",V="mouse",(a==="pointerout"||a==="pointerover")&&(Oe=Y2,ae="onPointerLeave",K="onPointerEnter",V="pointer"),ot=ee==null?Q:Ml(ee),Y=pe==null?Q:Ml(pe),Q=new Oe(ae,V+"leave",ee,c,ne),Q.target=ot,Q.relatedTarget=Y,ae=null,Eo(ne)===Z&&(Oe=new Oe(K,V+"enter",pe,c,ne),Oe.target=Y,Oe.relatedTarget=ot,ae=Oe),ot=ae,ee&&pe)t:{for(Oe=OI,K=ee,V=pe,Y=0,ae=K;ae;ae=Oe(ae))Y++;ae=0;for(var we=V;we;we=Oe(we))ae++;for(;0<Y-ae;)K=Oe(K),Y--;for(;0<ae-Y;)V=Oe(V),ae--;for(;Y--;){if(K===V||V!==null&&K===V.alternate){Oe=K;break t}K=Oe(K),V=Oe(V)}Oe=null}else Oe=null;ee!==null&&IT(oe,Q,ee,Oe,!1),pe!==null&&ot!==null&&IT(oe,ot,pe,Oe,!0)}}e:{if(Q=Z?Ml(Z):window,ee=Q.nodeName&&Q.nodeName.toLowerCase(),ee==="select"||ee==="input"&&Q.type==="file")var Ge=rj;else if(tj(Q))if(aj)Ge=zB;else{Ge=RB;var ve=MB}else ee=Q.nodeName,!ee||ee.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?Z&&jm(Z.elementType)&&(Ge=rj):Ge=kB;if(Ge&&(Ge=Ge(a,Z))){nj(oe,Ge,c,ne);break e}ve&&ve(a,Q,Z),a==="focusout"&&Z&&Q.type==="number"&&Z.memoizedProps.value!=null&&Am(Q,"number",Q.value)}switch(ve=Z?Ml(Z):window,a){case"focusin":(tj(ve)||ve.contentEditable==="true")&&(Lo=ve,$m=Z,Vl=null);break;case"focusout":Vl=$m=Lo=null;break;case"mousedown":Bm=!0;break;case"contextmenu":case"mouseup":case"dragend":Bm=!1,fj(oe,c,ne);break;case"selectionchange":if($B)break;case"keydown":case"keyup":fj(oe,c,ne)}var ke;if(Rm)e:{switch(a){case"compositionstart":var qe="onCompositionStart";break e;case"compositionend":qe="onCompositionEnd";break e;case"compositionupdate":qe="onCompositionUpdate";break e}qe=void 0}else zo?J2(a,c)&&(qe="onCompositionEnd"):a==="keydown"&&c.keyCode===229&&(qe="onCompositionStart");qe&&(W2&&c.locale!=="ko"&&(zo||qe!=="onCompositionStart"?qe==="onCompositionEnd"&&zo&&(ke=F2()):(Ba=ne,_m="value"in Ba?Ba.value:Ba.textContent,zo=!0)),ve=df(Z,qe),0<ve.length&&(qe=new X2(qe,a,null,c,ne),oe.push({event:qe,listeners:ve}),ke?qe.data=ke:(ke=ej(c),ke!==null&&(qe.data=ke)))),(ke=EB?_B(a,c):PB(a,c))&&(qe=df(Z,"onBeforeInput"),0<qe.length&&(ve=new X2("onBeforeInput","beforeinput",null,c,ne),oe.push({event:ve,listeners:qe}),ve.data=ke)),wI(oe,a,Z,c,ne)}$T(oe,o)})}function hc(a,o,c){return{instance:a,listener:o,currentTarget:c}}function df(a,o){for(var c=o+"Capture",h=[];a!==null;){var y=a,b=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||b===null||(y=Rl(a,c),y!=null&&h.unshift(hc(a,y,b)),y=Rl(a,o),y!=null&&h.push(hc(a,y,b))),a.tag===3)return h;a=a.return}return[]}function OI(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function IT(a,o,c,h,y){for(var b=o._reactName,_=[];c!==null&&c!==h;){var R=c,I=R.alternate,Z=R.stateNode;if(R=R.tag,I!==null&&I===h)break;R!==5&&R!==26&&R!==27||Z===null||(I=Z,y?(Z=Rl(c,b),Z!=null&&_.unshift(hc(c,Z,I))):y||(Z=Rl(c,b),Z!=null&&_.push(hc(c,Z,I)))),c=c.return}_.length!==0&&a.push({event:o,listeners:_})}var TI=/\r\n?/g,CI=/\u0000|\uFFFD/g;function qT(a){return(typeof a=="string"?a:""+a).replace(TI,`
`).replace(CI,"")}function VT(a,o){return o=qT(o),qT(a)===o}function it(a,o,c,h,y,b){switch(c){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||Mo(a,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&Mo(a,""+h);break;case"className":pd(a,"class",h);break;case"tabIndex":pd(a,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":pd(a,c,h);break;case"style":V2(a,h,b);break;case"data":if(o!=="object"){pd(a,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||c!=="href")){a.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(c);break}h=gd(""+h),a.setAttribute(c,h);break;case"action":case"formAction":if(typeof h=="function"){a.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(c==="formAction"?(o!=="input"&&it(a,o,"name",y.name,y,null),it(a,o,"formEncType",y.formEncType,y,null),it(a,o,"formMethod",y.formMethod,y,null),it(a,o,"formTarget",y.formTarget,y,null)):(it(a,o,"encType",y.encType,y,null),it(a,o,"method",y.method,y,null),it(a,o,"target",y.target,y,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(c);break}h=gd(""+h),a.setAttribute(c,h);break;case"onClick":h!=null&&(a.onclick=Qr);break;case"onScroll":h!=null&&$e("scroll",a);break;case"onScrollEnd":h!=null&&$e("scrollend",a);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(y.children!=null)throw Error(r(60));a.innerHTML=c}}break;case"multiple":a.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":a.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){a.removeAttribute("xlink:href");break}c=gd(""+h),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(c,""+h):a.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(c,""):a.removeAttribute(c);break;case"capture":case"download":h===!0?a.setAttribute(c,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(c,h):a.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?a.setAttribute(c,h):a.removeAttribute(c);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?a.removeAttribute(c):a.setAttribute(c,h);break;case"popover":$e("beforetoggle",a),$e("toggle",a),hd(a,"popover",h);break;case"xlinkActuate":Zr(a,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Zr(a,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Zr(a,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Zr(a,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Zr(a,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Zr(a,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Zr(a,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Zr(a,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Zr(a,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":hd(a,"is",h);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=tB.get(c)||c,hd(a,c,h))}}function uv(a,o,c,h,y,b){switch(c){case"style":V2(a,h,b);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(y.children!=null)throw Error(r(60));a.innerHTML=c}}break;case"children":typeof h=="string"?Mo(a,h):(typeof h=="number"||typeof h=="bigint")&&Mo(a,""+h);break;case"onScroll":h!=null&&$e("scroll",a);break;case"onScrollEnd":h!=null&&$e("scrollend",a);break;case"onClick":h!=null&&(a.onclick=Qr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!M2.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(y=c.endsWith("Capture"),o=c.slice(2,y?c.length-7:void 0),b=a[bn]||null,b=b!=null?b[c]:null,typeof b=="function"&&a.removeEventListener(o,b,y),typeof h=="function")){typeof b!="function"&&b!==null&&(c in a?a[c]=null:a.hasAttribute(c)&&a.removeAttribute(c)),a.addEventListener(o,h,y);break e}c in a?a[c]=h:h===!0?a.setAttribute(c,""):hd(a,c,h)}}}function rn(a,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",a),$e("load",a);var h=!1,y=!1,b;for(b in c)if(c.hasOwnProperty(b)){var _=c[b];if(_!=null)switch(b){case"src":h=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:it(a,o,b,_,c,null)}}y&&it(a,o,"srcSet",c.srcSet,c,null),h&&it(a,o,"src",c.src,c,null);return;case"input":$e("invalid",a);var R=b=_=y=null,I=null,Z=null;for(h in c)if(c.hasOwnProperty(h)){var ne=c[h];if(ne!=null)switch(h){case"name":y=ne;break;case"type":_=ne;break;case"checked":I=ne;break;case"defaultChecked":Z=ne;break;case"value":b=ne;break;case"defaultValue":R=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,o));break;default:it(a,o,h,ne,c,null)}}$2(a,b,R,I,Z,_,y,!1);return;case"select":$e("invalid",a),h=_=b=null;for(y in c)if(c.hasOwnProperty(y)&&(R=c[y],R!=null))switch(y){case"value":b=R;break;case"defaultValue":_=R;break;case"multiple":h=R;default:it(a,o,y,R,c,null)}o=b,c=_,a.multiple=!!h,o!=null?Do(a,!!h,o,!1):c!=null&&Do(a,!!h,c,!0);return;case"textarea":$e("invalid",a),b=y=h=null;for(_ in c)if(c.hasOwnProperty(_)&&(R=c[_],R!=null))switch(_){case"value":h=R;break;case"defaultValue":y=R;break;case"children":b=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(91));break;default:it(a,o,_,R,c,null)}I2(a,h,y,b);return;case"option":for(I in c)if(c.hasOwnProperty(I)&&(h=c[I],h!=null))switch(I){case"selected":a.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:it(a,o,I,h,c,null)}return;case"dialog":$e("beforetoggle",a),$e("toggle",a),$e("cancel",a),$e("close",a);break;case"iframe":case"object":$e("load",a);break;case"video":case"audio":for(h=0;h<fc.length;h++)$e(fc[h],a);break;case"image":$e("error",a),$e("load",a);break;case"details":$e("toggle",a);break;case"embed":case"source":case"link":$e("error",a),$e("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Z in c)if(c.hasOwnProperty(Z)&&(h=c[Z],h!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:it(a,o,Z,h,c,null)}return;default:if(jm(o)){for(ne in c)c.hasOwnProperty(ne)&&(h=c[ne],h!==void 0&&uv(a,o,ne,h,c,void 0));return}}for(R in c)c.hasOwnProperty(R)&&(h=c[R],h!=null&&it(a,o,R,h,c,null))}function EI(a,o,c,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,b=null,_=null,R=null,I=null,Z=null,ne=null;for(ee in c){var oe=c[ee];if(c.hasOwnProperty(ee)&&oe!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":I=oe;default:h.hasOwnProperty(ee)||it(a,o,ee,null,h,oe)}}for(var Q in h){var ee=h[Q];if(oe=c[Q],h.hasOwnProperty(Q)&&(ee!=null||oe!=null))switch(Q){case"type":b=ee;break;case"name":y=ee;break;case"checked":Z=ee;break;case"defaultChecked":ne=ee;break;case"value":_=ee;break;case"defaultValue":R=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,o));break;default:ee!==oe&&it(a,o,Q,ee,h,oe)}}Sm(a,_,R,I,Z,ne,b,y);return;case"select":ee=_=R=Q=null;for(b in c)if(I=c[b],c.hasOwnProperty(b)&&I!=null)switch(b){case"value":break;case"multiple":ee=I;default:h.hasOwnProperty(b)||it(a,o,b,null,h,I)}for(y in h)if(b=h[y],I=c[y],h.hasOwnProperty(y)&&(b!=null||I!=null))switch(y){case"value":Q=b;break;case"defaultValue":R=b;break;case"multiple":_=b;default:b!==I&&it(a,o,y,b,h,I)}o=R,c=_,h=ee,Q!=null?Do(a,!!c,Q,!1):!!h!=!!c&&(o!=null?Do(a,!!c,o,!0):Do(a,!!c,c?[]:"",!1));return;case"textarea":ee=Q=null;for(R in c)if(y=c[R],c.hasOwnProperty(R)&&y!=null&&!h.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:it(a,o,R,null,h,y)}for(_ in h)if(y=h[_],b=c[_],h.hasOwnProperty(_)&&(y!=null||b!=null))switch(_){case"value":Q=y;break;case"defaultValue":ee=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==b&&it(a,o,_,y,h,b)}B2(a,Q,ee);return;case"option":for(var pe in c)if(Q=c[pe],c.hasOwnProperty(pe)&&Q!=null&&!h.hasOwnProperty(pe))switch(pe){case"selected":a.selected=!1;break;default:it(a,o,pe,null,h,Q)}for(I in h)if(Q=h[I],ee=c[I],h.hasOwnProperty(I)&&Q!==ee&&(Q!=null||ee!=null))switch(I){case"selected":a.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:it(a,o,I,Q,h,ee)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Oe in c)Q=c[Oe],c.hasOwnProperty(Oe)&&Q!=null&&!h.hasOwnProperty(Oe)&&it(a,o,Oe,null,h,Q);for(Z in h)if(Q=h[Z],ee=c[Z],h.hasOwnProperty(Z)&&Q!==ee&&(Q!=null||ee!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,o));break;default:it(a,o,Z,Q,h,ee)}return;default:if(jm(o)){for(var ot in c)Q=c[ot],c.hasOwnProperty(ot)&&Q!==void 0&&!h.hasOwnProperty(ot)&&uv(a,o,ot,void 0,h,Q);for(ne in h)Q=h[ne],ee=c[ne],!h.hasOwnProperty(ne)||Q===ee||Q===void 0&&ee===void 0||uv(a,o,ne,Q,h,ee);return}}for(var K in c)Q=c[K],c.hasOwnProperty(K)&&Q!=null&&!h.hasOwnProperty(K)&&it(a,o,K,null,h,Q);for(oe in h)Q=h[oe],ee=c[oe],!h.hasOwnProperty(oe)||Q===ee||Q==null&&ee==null||it(a,o,oe,Q,h,ee)}function UT(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _I(){if(typeof performance.getEntriesByType=="function"){for(var a=0,o=0,c=performance.getEntriesByType("resource"),h=0;h<c.length;h++){var y=c[h],b=y.transferSize,_=y.initiatorType,R=y.duration;if(b&&R&&UT(_)){for(_=0,R=y.responseEnd,h+=1;h<c.length;h++){var I=c[h],Z=I.startTime;if(Z>R)break;var ne=I.transferSize,oe=I.initiatorType;ne&&UT(oe)&&(I=I.responseEnd,_+=ne*(I<R?1:(R-Z)/(I-Z)))}if(--h,o+=8*(b+_)/(y.duration/1e3),a++,10<a)break}}if(0<a)return o/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var dv=null,fv=null;function ff(a){return a.nodeType===9?a:a.ownerDocument}function HT(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function FT(a,o){if(a===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&o==="foreignObject"?0:a}function hv(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var pv=null;function PI(){var a=window.event;return a&&a.type==="popstate"?a===pv?!1:(pv=a,!0):(pv=null,!1)}var GT=typeof setTimeout=="function"?setTimeout:void 0,NI=typeof clearTimeout=="function"?clearTimeout:void 0,KT=typeof Promise=="function"?Promise:void 0,DI=typeof queueMicrotask=="function"?queueMicrotask:typeof KT<"u"?function(a){return KT.resolve(null).then(a).catch(MI)}:GT;function MI(a){setTimeout(function(){throw a})}function ni(a){return a==="head"}function XT(a,o){var c=o,h=0;do{var y=c.nextSibling;if(a.removeChild(c),y&&y.nodeType===8)if(c=y.data,c==="/$"||c==="/&"){if(h===0){a.removeChild(y),us(o);return}h--}else if(c==="$"||c==="$?"||c==="$~"||c==="$!"||c==="&")h++;else if(c==="html")pc(a.ownerDocument.documentElement);else if(c==="head"){c=a.ownerDocument.head,pc(c);for(var b=c.firstChild;b;){var _=b.nextSibling,R=b.nodeName;b[Dl]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&b.rel.toLowerCase()==="stylesheet"||c.removeChild(b),b=_}}else c==="body"&&pc(a.ownerDocument.body);c=y}while(c);us(o)}function YT(a,o){var c=a;a=0;do{var h=c.nextSibling;if(c.nodeType===1?o?(c._stashedDisplay=c.style.display,c.style.display="none"):(c.style.display=c._stashedDisplay||"",c.getAttribute("style")===""&&c.removeAttribute("style")):c.nodeType===3&&(o?(c._stashedText=c.nodeValue,c.nodeValue=""):c.nodeValue=c._stashedText||""),h&&h.nodeType===8)if(c=h.data,c==="/$"){if(a===0)break;a--}else c!=="$"&&c!=="$?"&&c!=="$~"&&c!=="$!"||a++;c=h}while(c)}function mv(a){var o=a.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":mv(c),bm(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}a.removeChild(c)}}function RI(a,o,c,h){for(;a.nodeType===1;){var y=c;if(a.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(h){if(!a[Dl])switch(o){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(b=a.getAttribute("rel"),b==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(b!==y.rel||a.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||a.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||a.getAttribute("title")!==(y.title==null?null:y.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(b=a.getAttribute("src"),(b!==(y.src==null?null:y.src)||a.getAttribute("type")!==(y.type==null?null:y.type)||a.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&b&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(o==="input"&&a.type==="hidden"){var b=y.name==null?null:""+y.name;if(y.type==="hidden"&&a.getAttribute("name")===b)return a}else return a;if(a=nr(a.nextSibling),a===null)break}return null}function kI(a,o,c){if(o==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!c||(a=nr(a.nextSibling),a===null))return null;return a}function WT(a,o){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o||(a=nr(a.nextSibling),a===null))return null;return a}function gv(a){return a.data==="$?"||a.data==="$~"}function vv(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function zI(a,o){var c=a.ownerDocument;if(a.data==="$~")a._reactRetry=o;else if(a.data!=="$?"||c.readyState!=="loading")o();else{var h=function(){o(),c.removeEventListener("DOMContentLoaded",h)};c.addEventListener("DOMContentLoaded",h),a._reactRetry=h}}function nr(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return a}var yv=null;function ZT(a){a=a.nextSibling;for(var o=0;a;){if(a.nodeType===8){var c=a.data;if(c==="/$"||c==="/&"){if(o===0)return nr(a.nextSibling);o--}else c!=="$"&&c!=="$!"&&c!=="$?"&&c!=="$~"&&c!=="&"||o++}a=a.nextSibling}return null}function QT(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var c=a.data;if(c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"){if(o===0)return a;o--}else c!=="/$"&&c!=="/&"||o++}a=a.previousSibling}return null}function JT(a,o,c){switch(o=ff(c),a){case"html":if(a=o.documentElement,!a)throw Error(r(452));return a;case"head":if(a=o.head,!a)throw Error(r(453));return a;case"body":if(a=o.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function pc(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);bm(a)}var rr=new Map,eC=new Set;function hf(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var pa=H.d;H.d={f:LI,r:$I,D:BI,C:II,L:qI,m:VI,X:HI,S:UI,M:FI};function LI(){var a=pa.f(),o=rf();return a||o}function $I(a){var o=_o(a);o!==null&&o.tag===5&&o.type==="form"?vO(o):pa.r(a)}var ss=typeof document>"u"?null:document;function tC(a,o,c){var h=ss;if(h&&typeof o=="string"&&o){var y=Yn(o);y='link[rel="'+a+'"][href="'+y+'"]',typeof c=="string"&&(y+='[crossorigin="'+c+'"]'),eC.has(y)||(eC.add(y),a={rel:a,crossOrigin:c,href:o},h.querySelector(y)===null&&(o=h.createElement("link"),rn(o,"link",a),Xt(o),h.head.appendChild(o)))}}function BI(a){pa.D(a),tC("dns-prefetch",a,null)}function II(a,o){pa.C(a,o),tC("preconnect",a,o)}function qI(a,o,c){pa.L(a,o,c);var h=ss;if(h&&a&&o){var y='link[rel="preload"][as="'+Yn(o)+'"]';o==="image"&&c&&c.imageSrcSet?(y+='[imagesrcset="'+Yn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(y+='[imagesizes="'+Yn(c.imageSizes)+'"]')):y+='[href="'+Yn(a)+'"]';var b=y;switch(o){case"style":b=ls(a);break;case"script":b=cs(a)}rr.has(b)||(a=g({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:a,as:o},c),rr.set(b,a),h.querySelector(y)!==null||o==="style"&&h.querySelector(mc(b))||o==="script"&&h.querySelector(gc(b))||(o=h.createElement("link"),rn(o,"link",a),Xt(o),h.head.appendChild(o)))}}function VI(a,o){pa.m(a,o);var c=ss;if(c&&a){var h=o&&typeof o.as=="string"?o.as:"script",y='link[rel="modulepreload"][as="'+Yn(h)+'"][href="'+Yn(a)+'"]',b=y;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=cs(a)}if(!rr.has(b)&&(a=g({rel:"modulepreload",href:a},o),rr.set(b,a),c.querySelector(y)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(gc(b)))return}h=c.createElement("link"),rn(h,"link",a),Xt(h),c.head.appendChild(h)}}}function UI(a,o,c){pa.S(a,o,c);var h=ss;if(h&&a){var y=Po(h).hoistableStyles,b=ls(a);o=o||"default";var _=y.get(b);if(!_){var R={loading:0,preload:null};if(_=h.querySelector(mc(b)))R.loading=5;else{a=g({rel:"stylesheet",href:a,"data-precedence":o},c),(c=rr.get(b))&&xv(a,c);var I=_=h.createElement("link");Xt(I),rn(I,"link",a),I._p=new Promise(function(Z,ne){I.onload=Z,I.onerror=ne}),I.addEventListener("load",function(){R.loading|=1}),I.addEventListener("error",function(){R.loading|=2}),R.loading|=4,pf(_,o,h)}_={type:"stylesheet",instance:_,count:1,state:R},y.set(b,_)}}}function HI(a,o){pa.X(a,o);var c=ss;if(c&&a){var h=Po(c).hoistableScripts,y=cs(a),b=h.get(y);b||(b=c.querySelector(gc(y)),b||(a=g({src:a,async:!0},o),(o=rr.get(y))&&bv(a,o),b=c.createElement("script"),Xt(b),rn(b,"link",a),c.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(y,b))}}function FI(a,o){pa.M(a,o);var c=ss;if(c&&a){var h=Po(c).hoistableScripts,y=cs(a),b=h.get(y);b||(b=c.querySelector(gc(y)),b||(a=g({src:a,async:!0,type:"module"},o),(o=rr.get(y))&&bv(a,o),b=c.createElement("script"),Xt(b),rn(b,"link",a),c.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(y,b))}}function nC(a,o,c,h){var y=(y=Se.current)?hf(y):null;if(!y)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=ls(c.href),c=Po(y).hoistableStyles,h=c.get(o),h||(h={type:"style",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){a=ls(c.href);var b=Po(y).hoistableStyles,_=b.get(a);if(_||(y=y.ownerDocument||y,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(a,_),(b=y.querySelector(mc(a)))&&!b._p&&(_.instance=b,_.state.loading=5),rr.has(a)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},rr.set(a,c),b||GI(y,a,c,_.state))),o&&h===null)throw Error(r(528,""));return _}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=cs(c),c=Po(y).hoistableScripts,h=c.get(o),h||(h={type:"script",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function ls(a){return'href="'+Yn(a)+'"'}function mc(a){return'link[rel="stylesheet"]['+a+"]"}function rC(a){return g({},a,{"data-precedence":a.precedence,precedence:null})}function GI(a,o,c,h){a.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=a.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),rn(o,"link",c),Xt(o),a.head.appendChild(o))}function cs(a){return'[src="'+Yn(a)+'"]'}function gc(a){return"script[async]"+a}function aC(a,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var h=a.querySelector('style[data-href~="'+Yn(c.href)+'"]');if(h)return o.instance=h,Xt(h),h;var y=g({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(a.ownerDocument||a).createElement("style"),Xt(h),rn(h,"style",y),pf(h,c.precedence,a),o.instance=h;case"stylesheet":y=ls(c.href);var b=a.querySelector(mc(y));if(b)return o.state.loading|=4,o.instance=b,Xt(b),b;h=rC(c),(y=rr.get(y))&&xv(h,y),b=(a.ownerDocument||a).createElement("link"),Xt(b);var _=b;return _._p=new Promise(function(R,I){_.onload=R,_.onerror=I}),rn(b,"link",h),o.state.loading|=4,pf(b,c.precedence,a),o.instance=b;case"script":return b=cs(c.src),(y=a.querySelector(gc(b)))?(o.instance=y,Xt(y),y):(h=c,(y=rr.get(b))&&(h=g({},c),bv(h,y)),a=a.ownerDocument||a,y=a.createElement("script"),Xt(y),rn(y,"link",h),a.head.appendChild(y),o.instance=y);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,pf(h,c.precedence,a));return o.instance}function pf(a,o,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=h.length?h[h.length-1]:null,b=y,_=0;_<h.length;_++){var R=h[_];if(R.dataset.precedence===o)b=R;else if(b!==y)break}b?b.parentNode.insertBefore(a,b.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(a,o.firstChild))}function xv(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function bv(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}var mf=null;function iC(a,o,c){if(mf===null){var h=new Map,y=mf=new Map;y.set(c,h)}else y=mf,h=y.get(c),h||(h=new Map,y.set(c,h));if(h.has(a))return h;for(h.set(a,null),c=c.getElementsByTagName(a),y=0;y<c.length;y++){var b=c[y];if(!(b[Dl]||b[Jt]||a==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var _=b.getAttribute(o)||"";_=a+_;var R=h.get(_);R?R.push(b):h.set(_,[b])}}return h}function oC(a,o,c){a=a.ownerDocument||a,a.head.insertBefore(c,o==="title"?a.querySelector("head > title"):null)}function KI(a,o,c){if(c===1||o.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return a=o.disabled,typeof o.precedence=="string"&&a==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function sC(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function XI(a,o,c,h){if(c.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var y=ls(h.href),b=o.querySelector(mc(y));if(b){o=b._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(a.count++,a=gf.bind(a),o.then(a,a)),c.state.loading|=4,c.instance=b,Xt(b);return}b=o.ownerDocument||o,h=rC(h),(y=rr.get(y))&&xv(h,y),b=b.createElement("link"),Xt(b);var _=b;_._p=new Promise(function(R,I){_.onload=R,_.onerror=I}),rn(b,"link",h),c.instance=b}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(c,o),(o=c.state.preload)&&(c.state.loading&3)===0&&(a.count++,c=gf.bind(a),o.addEventListener("load",c),o.addEventListener("error",c))}}var wv=0;function YI(a,o){return a.stylesheets&&a.count===0&&yf(a,a.stylesheets),0<a.count||0<a.imgCount?function(c){var h=setTimeout(function(){if(a.stylesheets&&yf(a,a.stylesheets),a.unsuspend){var b=a.unsuspend;a.unsuspend=null,b()}},6e4+o);0<a.imgBytes&&wv===0&&(wv=62500*_I());var y=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&yf(a,a.stylesheets),a.unsuspend)){var b=a.unsuspend;a.unsuspend=null,b()}},(a.imgBytes>wv?50:800)+o);return a.unsuspend=c,function(){a.unsuspend=null,clearTimeout(h),clearTimeout(y)}}:null}function gf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)yf(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var vf=null;function yf(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,vf=new Map,o.forEach(WI,a),vf=null,gf.call(a))}function WI(a,o){if(!(o.state.loading&4)){var c=vf.get(a);if(c)var h=c.get(null);else{c=new Map,vf.set(a,c);for(var y=a.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<y.length;b++){var _=y[b];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(c.set(_.dataset.precedence,_),h=_)}h&&c.set(null,h)}y=o.instance,_=y.getAttribute("data-precedence"),b=c.get(_)||h,b===h&&c.set(null,y),c.set(_,y),this.count++,h=gf.bind(this),y.addEventListener("load",h),y.addEventListener("error",h),b?b.parentNode.insertBefore(y,b.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(y,a.firstChild)),o.state.loading|=4}}var vc={$$typeof:j,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function ZI(a,o,c,h,y,b,_,R,I){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=gm(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gm(0),this.hiddenUpdates=gm(null),this.identifierPrefix=h,this.onUncaughtError=y,this.onCaughtError=b,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,this.incompleteTransitions=new Map}function lC(a,o,c,h,y,b,_,R,I,Z,ne,oe){return a=new ZI(a,o,c,_,I,Z,ne,oe,R),o=1,b===!0&&(o|=24),b=Mn(3,null,null,o),a.current=b,b.stateNode=a,o=eg(),o.refCount++,a.pooledCache=o,o.refCount++,b.memoizedState={element:h,isDehydrated:c,cache:o},ag(b),a}function cC(a){return a?(a=Io,a):Io}function uC(a,o,c,h,y,b){y=cC(y),h.context===null?h.context=y:h.pendingContext=y,h=Fa(o),h.payload={element:c},b=b===void 0?null:b,b!==null&&(h.callback=b),c=Ga(a,h,o),c!==null&&(Tn(c,a,o),Yl(c,a,o))}function dC(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var c=a.retryLane;a.retryLane=c!==0&&c<o?c:o}}function Sv(a,o){dC(a,o),(a=a.alternate)&&dC(a,o)}function fC(a){if(a.tag===13||a.tag===31){var o=Pi(a,67108864);o!==null&&Tn(o,a,67108864),Sv(a,67108864)}}function hC(a){if(a.tag===13||a.tag===31){var o=$n();o=vm(o);var c=Pi(a,o);c!==null&&Tn(c,a,o),Sv(a,o)}}var xf=!0;function QI(a,o,c,h){var y=z.T;z.T=null;var b=H.p;try{H.p=2,Av(a,o,c,h)}finally{H.p=b,z.T=y}}function JI(a,o,c,h){var y=z.T;z.T=null;var b=H.p;try{H.p=8,Av(a,o,c,h)}finally{H.p=b,z.T=y}}function Av(a,o,c,h){if(xf){var y=jv(h);if(y===null)cv(a,o,h,bf,c),mC(a,h);else if(t9(y,a,o,c,h))h.stopPropagation();else if(mC(a,h),o&4&&-1<e9.indexOf(a)){for(;y!==null;){var b=_o(y);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var _=Oi(b.pendingLanes);if(_!==0){var R=b;for(R.pendingLanes|=2,R.entangledLanes|=2;_;){var I=1<<31-Nn(_);R.entanglements[1]|=I,_&=~I}$r(b),(We&6)===0&&(tf=ln()+500,dc(0))}}break;case 31:case 13:R=Pi(b,2),R!==null&&Tn(R,b,2),rf(),Sv(b,2)}if(b=jv(h),b===null&&cv(a,o,h,bf,c),b===y)break;y=b}y!==null&&h.stopPropagation()}else cv(a,o,h,null,c)}}function jv(a){return a=Tm(a),Ov(a)}var bf=null;function Ov(a){if(bf=null,a=Eo(a),a!==null){var o=s(a);if(o===null)a=null;else{var c=o.tag;if(c===13){if(a=l(o),a!==null)return a;a=null}else if(c===31){if(a=u(o),a!==null)return a;a=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return bf=a,null}function pC(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(sd()){case S2:return 2;case A2:return 8;case ld:case I$:return 32;case j2:return 268435456;default:return 32}default:return 32}}var Tv=!1,ri=null,ai=null,ii=null,yc=new Map,xc=new Map,oi=[],e9="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function mC(a,o){switch(a){case"focusin":case"focusout":ri=null;break;case"dragenter":case"dragleave":ai=null;break;case"mouseover":case"mouseout":ii=null;break;case"pointerover":case"pointerout":yc.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":xc.delete(o.pointerId)}}function bc(a,o,c,h,y,b){return a===null||a.nativeEvent!==b?(a={blockedOn:o,domEventName:c,eventSystemFlags:h,nativeEvent:b,targetContainers:[y]},o!==null&&(o=_o(o),o!==null&&fC(o)),a):(a.eventSystemFlags|=h,o=a.targetContainers,y!==null&&o.indexOf(y)===-1&&o.push(y),a)}function t9(a,o,c,h,y){switch(o){case"focusin":return ri=bc(ri,a,o,c,h,y),!0;case"dragenter":return ai=bc(ai,a,o,c,h,y),!0;case"mouseover":return ii=bc(ii,a,o,c,h,y),!0;case"pointerover":var b=y.pointerId;return yc.set(b,bc(yc.get(b)||null,a,o,c,h,y)),!0;case"gotpointercapture":return b=y.pointerId,xc.set(b,bc(xc.get(b)||null,a,o,c,h,y)),!0}return!1}function gC(a){var o=Eo(a.target);if(o!==null){var c=s(o);if(c!==null){if(o=c.tag,o===13){if(o=l(c),o!==null){a.blockedOn=o,P2(a.priority,function(){hC(c)});return}}else if(o===31){if(o=u(c),o!==null){a.blockedOn=o,P2(a.priority,function(){hC(c)});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){a.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}a.blockedOn=null}function wf(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var c=jv(a.nativeEvent);if(c===null){c=a.nativeEvent;var h=new c.constructor(c.type,c);Om=h,c.target.dispatchEvent(h),Om=null}else return o=_o(c),o!==null&&fC(o),a.blockedOn=c,!1;o.shift()}return!0}function vC(a,o,c){wf(a)&&c.delete(o)}function n9(){Tv=!1,ri!==null&&wf(ri)&&(ri=null),ai!==null&&wf(ai)&&(ai=null),ii!==null&&wf(ii)&&(ii=null),yc.forEach(vC),xc.forEach(vC)}function Sf(a,o){a.blockedOn===o&&(a.blockedOn=null,Tv||(Tv=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,n9)))}var Af=null;function yC(a){Af!==a&&(Af=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Af===a&&(Af=null);for(var o=0;o<a.length;o+=3){var c=a[o],h=a[o+1],y=a[o+2];if(typeof h!="function"){if(Ov(h||c)===null)continue;break}var b=_o(c);b!==null&&(a.splice(o,3),o-=3,jg(b,{pending:!0,data:y,method:c.method,action:h},h,y))}}))}function us(a){function o(I){return Sf(I,a)}ri!==null&&Sf(ri,a),ai!==null&&Sf(ai,a),ii!==null&&Sf(ii,a),yc.forEach(o),xc.forEach(o);for(var c=0;c<oi.length;c++){var h=oi[c];h.blockedOn===a&&(h.blockedOn=null)}for(;0<oi.length&&(c=oi[0],c.blockedOn===null);)gC(c),c.blockedOn===null&&oi.shift();if(c=(a.ownerDocument||a).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var y=c[h],b=c[h+1],_=y[bn]||null;if(typeof b=="function")_||yC(c);else if(_){var R=null;if(b&&b.hasAttribute("formAction")){if(y=b,_=b[bn]||null)R=_.formAction;else if(Ov(y)!==null)continue}else R=_.action;typeof R=="function"?c[h+1]=R:(c.splice(h,3),h-=3),yC(c)}}}function xC(){function a(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(_){return y=_})},focusReset:"manual",scroll:"manual"})}function o(){y!==null&&(y(),y=null),h||setTimeout(c,20)}function c(){if(!h&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,y=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(c,100),function(){h=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),y!==null&&(y(),y=null)}}}function Cv(a){this._internalRoot=a}jf.prototype.render=Cv.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(r(409));var c=o.current,h=$n();uC(c,h,a,o,null,null)},jf.prototype.unmount=Cv.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;uC(a.current,2,null,a,null,null),rf(),o[Co]=null}};function jf(a){this._internalRoot=a}jf.prototype.unstable_scheduleHydration=function(a){if(a){var o=_2();a={blockedOn:null,target:a,priority:o};for(var c=0;c<oi.length&&o!==0&&o<oi[c].priority;c++);oi.splice(c,0,a),c===0&&gC(a)}};var bC=t.version;if(bC!=="19.2.1")throw Error(r(527,bC,"19.2.1"));H.findDOMNode=function(a){var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=f(o),a=a!==null?p(a):null,a=a===null?null:a.stateNode,a};var r9={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Of=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Of.isDisabled&&Of.supportsFiber)try{_l=Of.inject(r9),Pn=Of}catch{}}return Sc.createRoot=function(a,o){if(!i(a))throw Error(r(299));var c=!1,h="",y=CO,b=EO,_=_O;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(b=o.onCaughtError),o.onRecoverableError!==void 0&&(_=o.onRecoverableError)),o=lC(a,1,!1,null,null,c,h,null,y,b,_,xC),a[Co]=o.current,lv(a),new Cv(o)},Sc.hydrateRoot=function(a,o,c){if(!i(a))throw Error(r(299));var h=!1,y="",b=CO,_=EO,R=_O,I=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(y=c.identifierPrefix),c.onUncaughtError!==void 0&&(b=c.onUncaughtError),c.onCaughtError!==void 0&&(_=c.onCaughtError),c.onRecoverableError!==void 0&&(R=c.onRecoverableError),c.formState!==void 0&&(I=c.formState)),o=lC(a,1,!0,o,c??null,h,y,I,b,_,R,xC),o.context=cC(null),c=o.current,h=$n(),h=vm(h),y=Fa(h),y.callback=null,Ga(c,y,h),c=h,o.current.lanes=c,Nl(o,c),$r(o),a[Co]=o.current,lv(a),new jf(o)},Sc.version="19.2.1",Sc}var PC;function h9(){if(PC)return _v.exports;PC=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),_v.exports=f9(),_v.exports}var p9=h9();function m9(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,i,s,l=[],u="",d=e.split("/");for(d[0]||d.shift();i=d.shift();)n=i[0],n==="*"?(l.push(n),u+=i[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=i.indexOf("?",1),s=i.indexOf(".",1),l.push(i.substring(1,~r?r:~s?s:i.length)),u+=~r&&!~s?"(?:/([^/]+?))?":"/([^/]+?)",~s&&(u+=(~r?"?":"")+"\\"+i.substring(s))):u+="/"+i;return{keys:l,pattern:new RegExp("^"+u+(t?"(?=$|/)":"/?$"),"i")}}var T=gp();const B=tt(T),gS=i9({__proto__:null,default:B},[T]);var Rv={exports:{}},kv={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var NC;function g9(){if(NC)return kv;NC=1;var e=gp();function t(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function u(g,v){var x=v(),A=r({inst:{value:x,getSnapshot:v}}),w=A[0].inst,S=A[1];return s(function(){w.value=x,w.getSnapshot=v,d(w)&&S({inst:w})},[g,x,v]),i(function(){return d(w)&&S({inst:w}),g(function(){d(w)&&S({inst:w})})},[g]),l(x),x}function d(g){var v=g.getSnapshot;g=g.value;try{var x=v();return!n(g,x)}catch{return!0}}function f(g,v){return v()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return kv.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,kv}var DC;function v9(){return DC||(DC=1,Rv.exports=g9()),Rv.exports}var y9=v9();const x9=gS.useInsertionEffect,b9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",w9=b9?T.useLayoutEffect:T.useEffect,S9=x9||w9,y3=e=>{const t=T.useRef([e,(...n)=>t[0](...n)]).current;return S9(()=>{t[0]=e}),t[1]},A9="popstate",vS="pushState",yS="replaceState",j9="hashchange",MC=[A9,vS,yS,j9],O9=e=>{for(const t of MC)addEventListener(t,e);return()=>{for(const t of MC)removeEventListener(t,e)}},x3=(e,t)=>y9.useSyncExternalStore(O9,e,t),T9=()=>location.search,C9=({ssrSearch:e=""}={})=>x3(T9,()=>e),RC=()=>location.pathname,E9=({ssrPath:e}={})=>x3(RC,e?()=>e:RC),_9=(e,{replace:t=!1,state:n=null}={})=>history[t?yS:vS](n,"",e),P9=(e={})=>[E9(e),_9],kC=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[kC]>"u"){for(const e of[vS,yS]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,kC,{value:!0})}const N9=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",b3=(e="")=>e==="/"?"":e,D9=(e,t)=>e[0]==="~"?e.slice(1):b3(t)+e,M9=(e="",t)=>N9(d1(b3(e)),d1(t)),R9=e=>e[0]==="?"?e.slice(1):e,d1=e=>{try{return decodeURI(e)}catch{return e}},k9=e=>d1(R9(e)),w3={hook:P9,searchHook:C9,parser:m9,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},S3=T.createContext(w3),xo=()=>T.useContext(S3),A3={},j3=T.createContext(A3),z9=()=>T.useContext(j3),vp=e=>{const[t,n]=e.hook(e);return[M9(e.base,t),y3((r,i)=>n(D9(r,e.base),i))]},It=()=>vp(xo()),L9=()=>{const e=xo();return k9(e.searchHook(e))},xS=(e,t,n,r)=>{const{pattern:i,keys:s}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),l=i.exec(n)||[],[u,...d]=l;return u!==void 0?[!0,(()=>{const f=s!==!1?Object.fromEntries(s.map((g,v)=>[g,d[v]])):l.groups;let p={...d};return f&&Object.assign(p,f),p})(),...r?[u]:[]]:[!1,null]},$9=e=>xS(xo().parser,e,It()[0]),B9=({children:e,...t})=>{const n=xo(),r=t.hook?w3:n;let i=r;const[s,l]=t.ssrPath?.split("?")??[];l&&(t.ssrSearch=l,t.ssrPath=s),t.hrefs=t.hrefs??t.hook?.hrefs;let u=T.useRef({}),d=u.current,f=d;for(let p in r){const g=p==="base"?r[p]+(t[p]||""):t[p]||r[p];d===f&&g!==f[p]&&(u.current=f={...f}),f[p]=g,(g!==r[p]||g!==i[p])&&(i=f)}return T.createElement(S3.Provider,{value:i,children:e})},zC=({children:e,component:t},n)=>t?T.createElement(t,{params:n}):typeof e=="function"?e(n):e,I9=e=>{let t=T.useRef(A3);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([r,i])=>i!==n[r])?e:n},Pt=({path:e,nest:t,match:n,...r})=>{const i=xo(),[s]=vp(i),[l,u,d]=n??xS(i.parser,e,s,t),f=I9({...z9(),...u});if(!l)return null;const p=d?T.createElement(B9,{base:d},zC(r,f)):zC(r,f);return T.createElement(j3.Provider,{value:f,children:p})},_s=T.forwardRef((e,t)=>{const n=xo(),[r,i]=vp(n),{to:s="",href:l=s,onClick:u,asChild:d,children:f,className:p,replace:g,state:v,...x}=e,A=y3(S=>{S.ctrlKey||S.metaKey||S.altKey||S.shiftKey||S.button!==0||(u?.(S),S.defaultPrevented||(S.preventDefault(),i(l,e)))}),w=n.hrefs(l[0]==="~"?l.slice(1):n.base+l,n);return d&&T.isValidElement(f)?T.cloneElement(f,{onClick:A,href:w}):T.createElement("a",{...x,onClick:A,href:w,className:p?.call?p(r===l):p,children:f,ref:t})}),f1=e=>Array.isArray(e)?e.flatMap(t=>f1(t&&t.type===T.Fragment?t.props.children:t)):[e],q9=({children:e,location:t})=>{const n=xo(),[r]=vp(n);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),f1(e).forEach(s=>{if(T.isValidElement(s)&&s.props.path){const l=s.props.path;window.__WOUTER_ROUTES__.includes(l)||window.__WOUTER_ROUTES__.push(l)}}));for(const i of f1(e)){let s=0;if(T.isValidElement(i)&&(s=xS(n.parser,i.props.path,t||r,i.props.nest))[0])return T.cloneElement(i,{match:s})}return null};/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const V9=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),O3=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var U9={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const H9=T.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:l,...u},d)=>T.createElement("svg",{ref:d,...U9,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:O3("lucide",i),...u},[...l.map(([f,p])=>T.createElement(f,p)),...Array.isArray(s)?s:[s]]));/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xe=(e,t)=>{const n=T.forwardRef(({className:r,...i},s)=>T.createElement(H9,{ref:s,iconNode:t,className:O3(`lucide-${V9(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kn=xe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const T3=xe("Banknote",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const F9=xe("BellRing",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const G9=xe("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ya=xe("Bike",[["circle",{cx:"18.5",cy:"17.5",r:"3.5",key:"15x4ox"}],["circle",{cx:"5.5",cy:"17.5",r:"3.5",key:"1noe27"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["path",{d:"M12 17.5V14l-3-3 4-3 2 3h2",key:"1npguv"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const K9=xe("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h1=xe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const C3=xe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qu=xe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const X9=xe("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const E3=xe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y9=xe("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const W9=xe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fl=xe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z9=xe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lh=xe("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _3=xe("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Q9=xe("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J9=xe("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eq=xe("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P3=xe("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tq=xe("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N3=xe("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D3=xe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const M3=xe("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bS=xe("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mr=xe("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nq=xe("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wS=xe("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rq=xe("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const R3=xe("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aq=xe("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const SS=xe("Navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p1=xe("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qc=xe("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yp=xe("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pa=xe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const k3=xe("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z3=xe("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const AS=xe("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hl=xe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L3=xe("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $3=xe("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iq=xe("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vu=xe("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const m1=xe("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oq=xe("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Uu=xe("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const B3=xe("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hu=xe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sq=xe("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ks=xe("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lq=xe("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cq=xe("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ch=xe("Utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uq=xe("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dq=xe("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fq=xe("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hq=xe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function I3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=I3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function De(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=I3(e))&&(r&&(r+=" "),r+=t);return r}const jS="-",pq=e=>{const t=gq(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const u=l.split(jS);return u[0]===""&&u.length!==1&&u.shift(),q3(u,t)||mq(l)},getConflictingClassGroupIds:(l,u)=>{const d=n[l]||[];return u&&r[l]?[...d,...r[l]]:d}}},q3=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?q3(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(jS);return t.validators.find(({validator:l})=>l(s))?.classGroupId},LC=/^\[(.+)\]$/,mq=e=>{if(LC.test(e)){const t=LC.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},gq=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)g1(n[i],r,i,t);return r},g1=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:$C(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(vq(i)){g1(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,l])=>{g1(l,$C(t,s),n,r)})})},$C=(e,t)=>{let n=e;return t.split(jS).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},vq=e=>e.isThemeGetter,yq=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,l)=>{n.set(s,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let l=n.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return i(s,l),l},set(s,l){n.has(s)?n.set(s,l):i(s,l)}}},v1="!",y1=":",xq=y1.length,bq=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let l=0,u=0,d=0,f;for(let A=0;A<i.length;A++){let w=i[A];if(l===0&&u===0){if(w===y1){s.push(i.slice(d,A)),d=A+xq;continue}if(w==="/"){f=A;continue}}w==="["?l++:w==="]"?l--:w==="("?u++:w===")"&&u--}const p=s.length===0?i:i.substring(d),g=wq(p),v=g!==p,x=f&&f>d?f-d:void 0;return{modifiers:s,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:x}};if(t){const i=t+y1,s=r;r=l=>l.startsWith(i)?s(l.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},wq=e=>e.endsWith(v1)?e.substring(0,e.length-1):e.startsWith(v1)?e.substring(1):e,Sq=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(l=>{l[0]==="["||t[l]?(i.push(...s.sort(),l),s=[]):s.push(l)}),i.push(...s.sort()),i}},Aq=e=>({cache:yq(e.cacheSize),parseClassName:bq(e),sortModifiers:Sq(e),...pq(e)}),jq=/\s+/,Oq=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,l=[],u=e.trim().split(jq);let d="";for(let f=u.length-1;f>=0;f-=1){const p=u[f],{isExternal:g,modifiers:v,hasImportantModifier:x,baseClassName:A,maybePostfixModifierPosition:w}=n(p);if(g){d=p+(d.length>0?" "+d:d);continue}let S=!!w,O=r(S?A.substring(0,w):A);if(!O){if(!S){d=p+(d.length>0?" "+d:d);continue}if(O=r(A),!O){d=p+(d.length>0?" "+d:d);continue}S=!1}const E=s(v).join(":"),j=x?E+v1:E,N=j+O;if(l.includes(N))continue;l.push(N);const C=i(O,S);for(let P=0;P<C.length;++P){const D=C[P];l.push(j+D)}d=p+(d.length>0?" "+d:d)}return d};function Tq(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=V3(t))&&(r&&(r+=" "),r+=n);return r}const V3=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=V3(e[r]))&&(n&&(n+=" "),n+=t);return n};function Cq(e,...t){let n,r,i,s=l;function l(d){const f=t.reduce((p,g)=>g(p),e());return n=Aq(f),r=n.cache.get,i=n.cache.set,s=u,u(d)}function u(d){const f=r(d);if(f)return f;const p=Oq(d,n);return i(d,p),p}return function(){return s(Tq.apply(null,arguments))}}const Vt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},U3=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,H3=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Eq=/^\d+\/\d+$/,_q=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pq=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nq=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Dq=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mq=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ds=e=>Eq.test(e),ze=e=>!!e&&!Number.isNaN(Number(e)),li=e=>!!e&&Number.isInteger(Number(e)),zv=e=>e.endsWith("%")&&ze(e.slice(0,-1)),ma=e=>_q.test(e),Rq=()=>!0,kq=e=>Pq.test(e)&&!Nq.test(e),F3=()=>!1,zq=e=>Dq.test(e),Lq=e=>Mq.test(e),$q=e=>!me(e)&&!ge(e),Bq=e=>pl(e,X3,F3),me=e=>U3.test(e),Ui=e=>pl(e,Y3,kq),Lv=e=>pl(e,Hq,ze),BC=e=>pl(e,G3,F3),Iq=e=>pl(e,K3,Lq),Cf=e=>pl(e,W3,zq),ge=e=>H3.test(e),Ac=e=>ml(e,Y3),qq=e=>ml(e,Fq),IC=e=>ml(e,G3),Vq=e=>ml(e,X3),Uq=e=>ml(e,K3),Ef=e=>ml(e,W3,!0),pl=(e,t,n)=>{const r=U3.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ml=(e,t,n=!1)=>{const r=H3.exec(e);return r?r[1]?t(r[1]):n:!1},G3=e=>e==="position"||e==="percentage",K3=e=>e==="image"||e==="url",X3=e=>e==="length"||e==="size"||e==="bg-size",Y3=e=>e==="length",Hq=e=>e==="number",Fq=e=>e==="family-name",W3=e=>e==="shadow",Gq=()=>{const e=Vt("color"),t=Vt("font"),n=Vt("text"),r=Vt("font-weight"),i=Vt("tracking"),s=Vt("leading"),l=Vt("breakpoint"),u=Vt("container"),d=Vt("spacing"),f=Vt("radius"),p=Vt("shadow"),g=Vt("inset-shadow"),v=Vt("text-shadow"),x=Vt("drop-shadow"),A=Vt("blur"),w=Vt("perspective"),S=Vt("aspect"),O=Vt("ease"),E=Vt("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...N(),ge,me],P=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],M=()=>[ge,me,d],k=()=>[ds,"full","auto",...M()],q=()=>[li,"none","subgrid",ge,me],L=()=>["auto",{span:["full",li,ge,me]},li,ge,me],U=()=>[li,"auto",ge,me],X=()=>["auto","min","max","fr",ge,me],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...M()],H=()=>[ds,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],F=()=>[e,ge,me],ie=()=>[...N(),IC,BC,{position:[ge,me]}],ue=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",Vq,Bq,{size:[ge,me]}],G=()=>[zv,Ac,Ui],te=()=>["","none","full",f,ge,me],le=()=>["",ze,Ac,Ui],fe=()=>["solid","dashed","dotted","double"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],be=()=>[ze,zv,IC,BC],Fe=()=>["","none",A,ge,me],ce=()=>["none",ze,ge,me],Ae=()=>["none",ze,ge,me],Ce=()=>[ze,ge,me],se=()=>[ds,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ma],breakpoint:[ma],color:[Rq],container:[ma],"drop-shadow":[ma],ease:["in","out","in-out"],font:[$q],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ma],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ma],shadow:[ma],spacing:["px",ze],text:[ma],"text-shadow":[ma],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ds,me,ge,S]}],container:["container"],columns:[{columns:[ze,me,ge,u]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[li,"auto",ge,me]}],basis:[{basis:[ds,"full","auto",u,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ze,ds,"auto","initial","none",me]}],grow:[{grow:["",ze,ge,me]}],shrink:[{shrink:["",ze,ge,me]}],order:[{order:[li,"first","last","none",ge,me]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[u,"screen",...H()]}],"min-w":[{"min-w":[u,"screen","none",...H()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",n,Ac,Ui]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ge,Lv]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zv,me]}],"font-family":[{font:[qq,me,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ge,me]}],"line-clamp":[{"line-clamp":[ze,"none",ge,Lv]}],leading:[{leading:[s,...M()]}],"list-image":[{"list-image":["none",ge,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[ze,"from-font","auto",ge,Ui]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[ze,"auto",ge,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:ue()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},li,ge,me],radial:["",ge,me],conic:[li,ge,me]},Uq,Iq]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ze,ge,me]}],"outline-w":[{outline:["",ze,Ac,Ui]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",p,Ef,Cf]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",g,Ef,Cf]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[ze,Ui]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",v,Ef,Cf]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[ze,ge,me]}],"mix-blend":[{"mix-blend":[...Se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":be()}],"mask-image-linear-to-pos":[{"mask-linear-to":be()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":be()}],"mask-image-t-to-pos":[{"mask-t-to":be()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":be()}],"mask-image-r-to-pos":[{"mask-r-to":be()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":be()}],"mask-image-b-to-pos":[{"mask-b-to":be()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":be()}],"mask-image-l-to-pos":[{"mask-l-to":be()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":be()}],"mask-image-x-to-pos":[{"mask-x-to":be()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":be()}],"mask-image-y-to-pos":[{"mask-y-to":be()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[ge,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":be()}],"mask-image-radial-to-pos":[{"mask-radial-to":be()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":be()}],"mask-image-conic-to-pos":[{"mask-conic-to":be()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:ue()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,me]}],filter:[{filter:["","none",ge,me]}],blur:[{blur:Fe()}],brightness:[{brightness:[ze,ge,me]}],contrast:[{contrast:[ze,ge,me]}],"drop-shadow":[{"drop-shadow":["","none",x,Ef,Cf]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",ze,ge,me]}],"hue-rotate":[{"hue-rotate":[ze,ge,me]}],invert:[{invert:["",ze,ge,me]}],saturate:[{saturate:[ze,ge,me]}],sepia:[{sepia:["",ze,ge,me]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,me]}],"backdrop-blur":[{"backdrop-blur":Fe()}],"backdrop-brightness":[{"backdrop-brightness":[ze,ge,me]}],"backdrop-contrast":[{"backdrop-contrast":[ze,ge,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ze,ge,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ze,ge,me]}],"backdrop-invert":[{"backdrop-invert":["",ze,ge,me]}],"backdrop-opacity":[{"backdrop-opacity":[ze,ge,me]}],"backdrop-saturate":[{"backdrop-saturate":[ze,ge,me]}],"backdrop-sepia":[{"backdrop-sepia":["",ze,ge,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ze,"initial",ge,me]}],ease:[{ease:["linear","initial",O,ge,me]}],delay:[{delay:[ze,ge,me]}],animate:[{animate:["none",E,ge,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,ge,me]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[ge,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:se()}],"translate-x":[{"translate-x":se()}],"translate-y":[{"translate-y":se()}],"translate-z":[{"translate-z":se()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge,me]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[ze,Ac,Ui,Lv]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Kq=Cq(Gq);function Be(...e){return Kq(De(e))}function bo({children:e,showBottomNav:t=!0}){const[n]=It(),r=[{icon:P3,label:"Início",path:"/"},{icon:nq,label:"Cardápio",path:"/menu"},{icon:Vu,label:"Carrinho",path:"/cart"},{icon:ks,label:"Perfil",path:"/profile"},{icon:iq,label:"Admin",path:"/admin/login"}];return m.jsxs("div",{"data-loc":"client/src/components/MobileLayout.tsx:22",className:"min-h-screen bg-background flex flex-col max-w-md mx-auto shadow-2xl overflow-hidden relative border-x border-border/50",children:[m.jsx("div",{"data-loc":"client/src/components/MobileLayout.tsx:23",className:"flex-1 overflow-y-auto pb-20 scrollbar-hide",children:e}),t&&m.jsx("nav",{"data-loc":"client/src/components/MobileLayout.tsx:28",className:"fixed bottom-0 left-0 right-0 bg-background/80 backdrop-blur-md border-t border-border/40 pb-safe pt-2 px-6 z-50 max-w-md mx-auto",children:m.jsx("div",{"data-loc":"client/src/components/MobileLayout.tsx:29",className:"flex justify-between items-center h-16",children:r.map(i=>{const s=n===i.path||i.path==="/admin/login"&&n.startsWith("/admin");return m.jsx(_s,{"data-loc":"client/src/components/MobileLayout.tsx:33",href:i.path,children:m.jsxs("div",{"data-loc":"client/src/components/MobileLayout.tsx:34",className:Be("flex flex-col items-center justify-center w-14 h-full transition-all duration-300 cursor-pointer relative",s?"text-primary -translate-y-1":"text-muted-foreground hover:text-primary/70"),children:[m.jsx(i.icon,{"data-loc":"client/src/components/MobileLayout.tsx:38",size:22,strokeWidth:s?2.5:2,className:Be("mb-1 transition-transform",s&&"scale-110")}),m.jsx("span",{"data-loc":"client/src/components/MobileLayout.tsx:43",className:"text-[9px] font-medium tracking-wide",children:i.label}),s&&m.jsx("span",{"data-loc":"client/src/components/MobileLayout.tsx:45",className:"absolute -bottom-1 w-1 h-1 bg-primary rounded-full"})]})},i.path)})})})]})}function Xq({slides:e,onCTAClick:t}){const[n,r]=T.useState(0),[i,s]=T.useState(!0);T.useEffect(()=>{if(!i||e.length===0)return;const p=setInterval(()=>{r(g=>(g+1)%e.length)},5e3);return()=>clearInterval(p)},[i,e.length]);const l=p=>{r(p%e.length),s(!1),setTimeout(()=>s(!0),1e4)},u=()=>{l(n+1)},d=()=>{l(n-1+e.length)};if(e.length===0)return null;const f=e[n];return m.jsx("section",{"data-loc":"client/src/components/RotatingBanner.tsx:51",className:"px-6 mb-8",children:m.jsxs("div",{"data-loc":"client/src/components/RotatingBanner.tsx:52",className:"relative h-48 rounded-3xl overflow-hidden shadow-lg group",children:[m.jsx("img",{"data-loc":"client/src/components/RotatingBanner.tsx:54",src:f.image,alt:f.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"}),m.jsxs("div",{"data-loc":"client/src/components/RotatingBanner.tsx:61",className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent flex flex-col justify-end p-6",children:[m.jsx("div",{"data-loc":"client/src/components/RotatingBanner.tsx:62",className:"mb-2 inline-block bg-orange-500 text-white px-3 py-1 rounded-full text-xs font-bold w-fit",children:"🔥 Promoção"}),m.jsx("h2",{"data-loc":"client/src/components/RotatingBanner.tsx:65",className:"text-white text-2xl font-bold leading-tight mb-1",children:f.title}),m.jsx("p",{"data-loc":"client/src/components/RotatingBanner.tsx:68",className:"text-white/90 text-sm font-medium mb-3",children:f.subtitle}),m.jsxs("div",{"data-loc":"client/src/components/RotatingBanner.tsx:71",className:"flex items-center justify-between",children:[m.jsx("p",{"data-loc":"client/src/components/RotatingBanner.tsx:72",className:"text-white/90 text-sm font-medium",children:f.price}),m.jsx("button",{"data-loc":"client/src/components/RotatingBanner.tsx:73",onClick:()=>t?.(f.id),className:"rounded-full bg-white text-black hover:bg-white/90 h-8 px-4 text-xs font-bold transition-all active:scale-95",children:f.cta})]})]}),e.length>1&&m.jsxs(m.Fragment,{children:[m.jsx("button",{"data-loc":"client/src/components/RotatingBanner.tsx:85",onClick:d,className:"absolute left-4 top-1/2 -translate-y-1/2 w-10 h-10 rounded-full bg-white/20 hover:bg-white/40 flex items-center justify-center transition-all backdrop-blur-sm","aria-label":"Slide anterior",children:m.jsx(C3,{"data-loc":"client/src/components/RotatingBanner.tsx:90",size:20,className:"text-white"})}),m.jsx("button",{"data-loc":"client/src/components/RotatingBanner.tsx:92",onClick:u,className:"absolute right-4 top-1/2 -translate-y-1/2 w-10 h-10 rounded-full bg-white/20 hover:bg-white/40 flex items-center justify-center transition-all backdrop-blur-sm","aria-label":"Próximo slide",children:m.jsx(qu,{"data-loc":"client/src/components/RotatingBanner.tsx:97",size:20,className:"text-white"})})]}),e.length>1&&m.jsx("div",{"data-loc":"client/src/components/RotatingBanner.tsx:104",className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-2",children:e.map((p,g)=>m.jsx("button",{"data-loc":"client/src/components/RotatingBanner.tsx:106",onClick:()=>l(g),className:`w-2 h-2 rounded-full transition-all ${g===n?"bg-white w-6":"bg-white/50 hover:bg-white/75"}`,"aria-label":`Ir para slide ${g+1}`},g))})]})})}function et(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)}}function qC(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Z3(...e){return t=>{let n=!1;const r=e.map(i=>{const s=qC(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():qC(e[i],null)}}}}function At(...e){return T.useCallback(Z3(...e),e)}function Yq(e,t){const n=T.createContext(t),r=s=>{const{children:l,...u}=s,d=T.useMemo(()=>u,Object.values(u));return m.jsx(n.Provider,{value:d,children:l})};r.displayName=e+"Provider";function i(s){const l=T.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,i]}function Na(e,t=[]){let n=[];function r(s,l){const u=T.createContext(l),d=n.length;n=[...n,l];const f=g=>{const{scope:v,children:x,...A}=g,w=v?.[e]?.[d]||u,S=T.useMemo(()=>A,Object.values(A));return m.jsx(w.Provider,{value:S,children:x})};f.displayName=s+"Provider";function p(g,v){const x=v?.[e]?.[d]||u,A=T.useContext(x);if(A)return A;if(l!==void 0)return l;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[f,p]}const i=()=>{const s=n.map(l=>T.createContext(l));return function(u){const d=u?.[e]||s;return T.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return i.scopeName=e,[r,Wq(i,...t)]}function Wq(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const l=r.reduce((u,{useScope:d,scopeName:f})=>{const g=d(s)[`__scope${f}`];return{...u,...g}},{});return T.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var uo=globalThis?.document?T.useLayoutEffect:()=>{},Zq=gS[" useId ".trim().toString()]||(()=>{}),Qq=0;function Bc(e){const[t,n]=T.useState(Zq());return uo(()=>{n(r=>r??String(Qq++))},[e]),e||(t?`radix-${t}`:"")}var Jq=gS[" useInsertionEffect ".trim().toString()]||uo;function gl({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,l]=e7({defaultProp:t,onChange:n}),u=e!==void 0,d=u?e:i;{const p=T.useRef(e!==void 0);T.useEffect(()=>{const g=p.current;g!==u&&console.warn(`${r} is changing from ${g?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=u},[u,r])}const f=T.useCallback(p=>{if(u){const g=t7(p)?p(e):p;g!==e&&l.current?.(g)}else s(p)},[u,e,s,l]);return[d,f]}function e7({defaultProp:e,onChange:t}){const[n,r]=T.useState(e),i=T.useRef(n),s=T.useRef(t);return Jq(()=>{s.current=t},[t]),T.useEffect(()=>{i.current!==n&&(s.current?.(n),i.current=n)},[n,i]),[n,r,s]}function t7(e){return typeof e=="function"}var Q3=v3();const n7=tt(Q3);function Jc(e){const t=r7(e),n=T.forwardRef((r,i)=>{const{children:s,...l}=r,u=T.Children.toArray(s),d=u.find(i7);if(d){const f=d.props.children,p=u.map(g=>g===d?T.Children.count(f)>1?T.Children.only(null):T.isValidElement(f)?f.props.children:null:g);return m.jsx(t,{...l,ref:i,children:T.isValidElement(f)?T.cloneElement(f,void 0,p):null})}return m.jsx(t,{...l,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}var J3=Jc("Slot");function r7(e){const t=T.forwardRef((n,r)=>{const{children:i,...s}=n;if(T.isValidElement(i)){const l=s7(i),u=o7(s,i.props);return i.type!==T.Fragment&&(u.ref=r?Z3(r,l):l),T.cloneElement(i,u)}return T.Children.count(i)>1?T.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var a7=Symbol("radix.slottable");function i7(e){return T.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===a7}function o7(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...u)=>{const d=s(...u);return i(...u),d}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function s7(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var l7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=l7.reduce((e,t)=>{const n=Jc(`Primitive.${t}`),r=T.forwardRef((i,s)=>{const{asChild:l,...u}=i,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(d,{...u,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function c7(e,t){e&&Q3.flushSync(()=>e.dispatchEvent(t))}function Un(e){const t=T.useRef(e);return T.useEffect(()=>{t.current=e}),T.useMemo(()=>(...n)=>t.current?.(...n),[])}function u7(e,t=globalThis?.document){const n=Un(e);T.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var d7="DismissableLayer",x1="dismissableLayer.update",f7="dismissableLayer.pointerDownOutside",h7="dismissableLayer.focusOutside",VC,e4=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),t4=T.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...d}=e,f=T.useContext(e4),[p,g]=T.useState(null),v=p?.ownerDocument??globalThis?.document,[,x]=T.useState({}),A=At(t,D=>g(D)),w=Array.from(f.layers),[S]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),O=w.indexOf(S),E=p?w.indexOf(p):-1,j=f.layersWithOutsidePointerEventsDisabled.size>0,N=E>=O,C=g7(D=>{const M=D.target,k=[...f.branches].some(q=>q.contains(M));!N||k||(i?.(D),l?.(D),D.defaultPrevented||u?.())},v),P=v7(D=>{const M=D.target;[...f.branches].some(q=>q.contains(M))||(s?.(D),l?.(D),D.defaultPrevented||u?.())},v);return u7(D=>{E===f.layers.size-1&&(r?.(D),!D.defaultPrevented&&u&&(D.preventDefault(),u()))},v),T.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(VC=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),UC(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=VC)}},[p,v,n,f]),T.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),UC())},[p,f]),T.useEffect(()=>{const D=()=>x({});return document.addEventListener(x1,D),()=>document.removeEventListener(x1,D)},[]),m.jsx(Ze.div,{...d,ref:A,style:{pointerEvents:j?N?"auto":"none":void 0,...e.style},onFocusCapture:et(e.onFocusCapture,P.onFocusCapture),onBlurCapture:et(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:et(e.onPointerDownCapture,C.onPointerDownCapture)})});t4.displayName=d7;var p7="DismissableLayerBranch",m7=T.forwardRef((e,t)=>{const n=T.useContext(e4),r=T.useRef(null),i=At(t,r);return T.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),m.jsx(Ze.div,{...e,ref:i})});m7.displayName=p7;function g7(e,t=globalThis?.document){const n=Un(e),r=T.useRef(!1),i=T.useRef(()=>{});return T.useEffect(()=>{const s=u=>{if(u.target&&!r.current){let d=function(){n4(f7,n,f,{discrete:!0})};const f={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=d,t.addEventListener("click",i.current,{once:!0})):d()}else t.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function v7(e,t=globalThis?.document){const n=Un(e),r=T.useRef(!1);return T.useEffect(()=>{const i=s=>{s.target&&!r.current&&n4(h7,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function UC(){const e=new CustomEvent(x1);document.dispatchEvent(e)}function n4(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?c7(i,s):i.dispatchEvent(s)}var $v="focusScope.autoFocusOnMount",Bv="focusScope.autoFocusOnUnmount",HC={bubbles:!1,cancelable:!0},y7="FocusScope",r4=T.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[u,d]=T.useState(null),f=Un(i),p=Un(s),g=T.useRef(null),v=At(t,w=>d(w)),x=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(r){let w=function(j){if(x.paused||!u)return;const N=j.target;u.contains(N)?g.current=N:di(g.current,{select:!0})},S=function(j){if(x.paused||!u)return;const N=j.relatedTarget;N!==null&&(u.contains(N)||di(g.current,{select:!0}))},O=function(j){if(document.activeElement===document.body)for(const C of j)C.removedNodes.length>0&&di(u)};document.addEventListener("focusin",w),document.addEventListener("focusout",S);const E=new MutationObserver(O);return u&&E.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",S),E.disconnect()}}},[r,u,x.paused]),T.useEffect(()=>{if(u){GC.add(x);const w=document.activeElement;if(!u.contains(w)){const O=new CustomEvent($v,HC);u.addEventListener($v,f),u.dispatchEvent(O),O.defaultPrevented||(x7(j7(a4(u)),{select:!0}),document.activeElement===w&&di(u))}return()=>{u.removeEventListener($v,f),setTimeout(()=>{const O=new CustomEvent(Bv,HC);u.addEventListener(Bv,p),u.dispatchEvent(O),O.defaultPrevented||di(w??document.body,{select:!0}),u.removeEventListener(Bv,p),GC.remove(x)},0)}}},[u,f,p,x]);const A=T.useCallback(w=>{if(!n&&!r||x.paused)return;const S=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,O=document.activeElement;if(S&&O){const E=w.currentTarget,[j,N]=b7(E);j&&N?!w.shiftKey&&O===N?(w.preventDefault(),n&&di(j,{select:!0})):w.shiftKey&&O===j&&(w.preventDefault(),n&&di(N,{select:!0})):O===E&&w.preventDefault()}},[n,r,x.paused]);return m.jsx(Ze.div,{tabIndex:-1,...l,ref:v,onKeyDown:A})});r4.displayName=y7;function x7(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(di(r,{select:t}),document.activeElement!==n)return}function b7(e){const t=a4(e),n=FC(t,e),r=FC(t.reverse(),e);return[n,r]}function a4(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function FC(e,t){for(const n of e)if(!w7(n,{upTo:t}))return n}function w7(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function S7(e){return e instanceof HTMLInputElement&&"select"in e}function di(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&S7(e)&&t&&e.select()}}var GC=A7();function A7(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=KC(e,t),e.unshift(t)},remove(t){e=KC(e,t),e[0]?.resume()}}}function KC(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function j7(e){return e.filter(t=>t.tagName!=="A")}var O7="Portal",i4=T.forwardRef((e,t)=>{const{container:n,...r}=e,[i,s]=T.useState(!1);uo(()=>s(!0),[]);const l=n||i&&globalThis?.document?.body;return l?n7.createPortal(m.jsx(Ze.div,{...r,ref:t}),l):null});i4.displayName=O7;function T7(e,t){return T.useReducer((n,r)=>t[n][r]??n,e)}var Pr=e=>{const{present:t,children:n}=e,r=C7(t),i=typeof n=="function"?n({present:r.isPresent}):T.Children.only(n),s=At(r.ref,E7(i));return typeof n=="function"||r.isPresent?T.cloneElement(i,{ref:s}):null};Pr.displayName="Presence";function C7(e){const[t,n]=T.useState(),r=T.useRef(null),i=T.useRef(e),s=T.useRef("none"),l=e?"mounted":"unmounted",[u,d]=T7(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const f=_f(r.current);s.current=u==="mounted"?f:"none"},[u]),uo(()=>{const f=r.current,p=i.current;if(p!==e){const v=s.current,x=_f(f);e?d("MOUNT"):x==="none"||f?.display==="none"?d("UNMOUNT"):d(p&&v!==x?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,d]),uo(()=>{if(t){let f;const p=t.ownerDocument.defaultView??window,g=x=>{const w=_f(r.current).includes(CSS.escape(x.animationName));if(x.target===t&&w&&(d("ANIMATION_END"),!i.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",f=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},v=x=>{x.target===t&&(s.current=_f(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{p.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:T.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function _f(e){return e?.animationName||"none"}function E7(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Iv=0;function _7(){T.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??XC()),document.body.insertAdjacentElement("beforeend",e[1]??XC()),Iv++,()=>{Iv===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Iv--}},[])}function XC(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Br=function(){return Br=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Br.apply(this,arguments)};function o4(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function P7(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var eh="right-scroll-bar-position",th="width-before-scroll-bar",N7="with-scroll-bars-hidden",D7="--removed-body-scroll-bar-size";function qv(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function M7(e,t){var n=T.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var R7=typeof window<"u"?T.useLayoutEffect:T.useEffect,YC=new WeakMap;function k7(e,t){var n=M7(null,function(r){return e.forEach(function(i){return qv(i,r)})});return R7(function(){var r=YC.get(n);if(r){var i=new Set(r),s=new Set(e),l=n.current;i.forEach(function(u){s.has(u)||qv(u,null)}),s.forEach(function(u){i.has(u)||qv(u,l)})}YC.set(n,e)},[e]),n}function z7(e){return e}function L7(e,t){t===void 0&&(t=z7);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(u){return s(u)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(s),l=n}var d=function(){var p=l;l=[],p.forEach(s)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(p){l.push(p),f()},filter:function(p){return l=l.filter(p),n}}}};return i}function $7(e){e===void 0&&(e={});var t=L7(null);return t.options=Br({async:!0,ssr:!1},e),t}var s4=function(e){var t=e.sideCar,n=o4(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return T.createElement(r,Br({},n))};s4.isSideCarExport=!0;function B7(e,t){return e.useMedium(t),s4}var l4=$7(),Vv=function(){},xp=T.forwardRef(function(e,t){var n=T.useRef(null),r=T.useState({onScrollCapture:Vv,onWheelCapture:Vv,onTouchMoveCapture:Vv}),i=r[0],s=r[1],l=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,p=e.enabled,g=e.shards,v=e.sideCar,x=e.noRelative,A=e.noIsolation,w=e.inert,S=e.allowPinchZoom,O=e.as,E=O===void 0?"div":O,j=e.gapMode,N=o4(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,P=k7([n,t]),D=Br(Br({},N),i);return T.createElement(T.Fragment,null,p&&T.createElement(C,{sideCar:l4,removeScrollBar:f,shards:g,noRelative:x,noIsolation:A,inert:w,setCallbacks:s,allowPinchZoom:!!S,lockRef:n,gapMode:j}),l?T.cloneElement(T.Children.only(u),Br(Br({},D),{ref:P})):T.createElement(E,Br({},D,{className:d,ref:P}),u))});xp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xp.classNames={fullWidth:th,zeroRight:eh};var I7=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function q7(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=I7();return t&&e.setAttribute("nonce",t),e}function V7(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function U7(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var H7=function(){var e=0,t=null;return{add:function(n){e==0&&(t=q7())&&(V7(t,n),U7(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},F7=function(){var e=H7();return function(t,n){T.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},c4=function(){var e=F7(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},G7={left:0,top:0,right:0,gap:0},Uv=function(e){return parseInt(e||"",10)||0},K7=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Uv(n),Uv(r),Uv(i)]},X7=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return G7;var t=K7(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Y7=c4(),Ps="data-scroll-locked",W7=function(e,t,n,r){var i=e.left,s=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(N7,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(u,"px ").concat(r,`;
  }
  body[`).concat(Ps,`] {
    overflow: hidden `).concat(r,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
    padding-left: `.concat(i,`px;
    padding-top: `).concat(s,`px;
    padding-right: `).concat(l,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(u,"px ").concat(r,`;
    `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(eh,` {
    right: `).concat(u,"px ").concat(r,`;
  }
  
  .`).concat(th,` {
    margin-right: `).concat(u,"px ").concat(r,`;
  }
  
  .`).concat(eh," .").concat(eh,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(th," .").concat(th,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body[`).concat(Ps,`] {
    `).concat(D7,": ").concat(u,`px;
  }
`)},WC=function(){var e=parseInt(document.body.getAttribute(Ps)||"0",10);return isFinite(e)?e:0},Z7=function(){T.useEffect(function(){return document.body.setAttribute(Ps,(WC()+1).toString()),function(){var e=WC()-1;e<=0?document.body.removeAttribute(Ps):document.body.setAttribute(Ps,e.toString())}},[])},Q7=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;Z7();var s=T.useMemo(function(){return X7(i)},[i]);return T.createElement(Y7,{styles:W7(s,!t,i,n?"":"!important")})},b1=!1;if(typeof window<"u")try{var Pf=Object.defineProperty({},"passive",{get:function(){return b1=!0,!0}});window.addEventListener("test",Pf,Pf),window.removeEventListener("test",Pf,Pf)}catch{b1=!1}var fs=b1?{passive:!1}:!1,J7=function(e){return e.tagName==="TEXTAREA"},u4=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!J7(e)&&n[t]==="visible")},eV=function(e){return u4(e,"overflowY")},tV=function(e){return u4(e,"overflowX")},ZC=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=d4(e,r);if(i){var s=f4(e,r),l=s[1],u=s[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},nV=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},rV=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},d4=function(e,t){return e==="v"?eV(t):tV(t)},f4=function(e,t){return e==="v"?nV(t):rV(t)},aV=function(e,t){return e==="h"&&t==="rtl"?-1:1},iV=function(e,t,n,r,i){var s=aV(e,window.getComputedStyle(t).direction),l=s*r,u=n.target,d=t.contains(u),f=!1,p=l>0,g=0,v=0;do{if(!u)break;var x=f4(e,u),A=x[0],w=x[1],S=x[2],O=w-S-s*A;(A||O)&&d4(e,u)&&(g+=O,v+=A);var E=u.parentNode;u=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(p&&Math.abs(g)<1||!p&&Math.abs(v)<1)&&(f=!0),f},Nf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},QC=function(e){return[e.deltaX,e.deltaY]},JC=function(e){return e&&"current"in e?e.current:e},oV=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sV=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},lV=0,hs=[];function cV(e){var t=T.useRef([]),n=T.useRef([0,0]),r=T.useRef(),i=T.useState(lV++)[0],s=T.useState(c4)[0],l=T.useRef(e);T.useEffect(function(){l.current=e},[e]),T.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var w=P7([e.lockRef.current],(e.shards||[]).map(JC),!0).filter(Boolean);return w.forEach(function(S){return S.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=T.useCallback(function(w,S){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!l.current.allowPinchZoom;var O=Nf(w),E=n.current,j="deltaX"in w?w.deltaX:E[0]-O[0],N="deltaY"in w?w.deltaY:E[1]-O[1],C,P=w.target,D=Math.abs(j)>Math.abs(N)?"h":"v";if("touches"in w&&D==="h"&&P.type==="range")return!1;var M=ZC(D,P);if(!M)return!0;if(M?C=D:(C=D==="v"?"h":"v",M=ZC(D,P)),!M)return!1;if(!r.current&&"changedTouches"in w&&(j||N)&&(r.current=C),!C)return!0;var k=r.current||C;return iV(k,S,w,k==="h"?j:N)},[]),d=T.useCallback(function(w){var S=w;if(!(!hs.length||hs[hs.length-1]!==s)){var O="deltaY"in S?QC(S):Nf(S),E=t.current.filter(function(C){return C.name===S.type&&(C.target===S.target||S.target===C.shadowParent)&&oV(C.delta,O)})[0];if(E&&E.should){S.cancelable&&S.preventDefault();return}if(!E){var j=(l.current.shards||[]).map(JC).filter(Boolean).filter(function(C){return C.contains(S.target)}),N=j.length>0?u(S,j[0]):!l.current.noIsolation;N&&S.cancelable&&S.preventDefault()}}},[]),f=T.useCallback(function(w,S,O,E){var j={name:w,delta:S,target:O,should:E,shadowParent:uV(O)};t.current.push(j),setTimeout(function(){t.current=t.current.filter(function(N){return N!==j})},1)},[]),p=T.useCallback(function(w){n.current=Nf(w),r.current=void 0},[]),g=T.useCallback(function(w){f(w.type,QC(w),w.target,u(w,e.lockRef.current))},[]),v=T.useCallback(function(w){f(w.type,Nf(w),w.target,u(w,e.lockRef.current))},[]);T.useEffect(function(){return hs.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",d,fs),document.addEventListener("touchmove",d,fs),document.addEventListener("touchstart",p,fs),function(){hs=hs.filter(function(w){return w!==s}),document.removeEventListener("wheel",d,fs),document.removeEventListener("touchmove",d,fs),document.removeEventListener("touchstart",p,fs)}},[]);var x=e.removeScrollBar,A=e.inert;return T.createElement(T.Fragment,null,A?T.createElement(s,{styles:sV(i)}):null,x?T.createElement(Q7,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function uV(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const dV=B7(l4,cV);var h4=T.forwardRef(function(e,t){return T.createElement(xp,Br({},e,{ref:t,sideCar:dV}))});h4.classNames=xp.classNames;var fV=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ps=new WeakMap,Df=new WeakMap,Mf={},Hv=0,p4=function(e){return e&&(e.host||p4(e.parentNode))},hV=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=p4(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},pV=function(e,t,n,r){var i=hV(t,Array.isArray(e)?e:[e]);Mf[n]||(Mf[n]=new WeakMap);var s=Mf[n],l=[],u=new Set,d=new Set(i),f=function(g){!g||u.has(g)||(u.add(g),f(g.parentNode))};i.forEach(f);var p=function(g){!g||d.has(g)||Array.prototype.forEach.call(g.children,function(v){if(u.has(v))p(v);else try{var x=v.getAttribute(r),A=x!==null&&x!=="false",w=(ps.get(v)||0)+1,S=(s.get(v)||0)+1;ps.set(v,w),s.set(v,S),l.push(v),w===1&&A&&Df.set(v,!0),S===1&&v.setAttribute(n,"true"),A||v.setAttribute(r,"true")}catch(O){console.error("aria-hidden: cannot operate on ",v,O)}})};return p(t),u.clear(),Hv++,function(){l.forEach(function(g){var v=ps.get(g)-1,x=s.get(g)-1;ps.set(g,v),s.set(g,x),v||(Df.has(g)||g.removeAttribute(r),Df.delete(g)),x||g.removeAttribute(n)}),Hv--,Hv||(ps=new WeakMap,ps=new WeakMap,Df=new WeakMap,Mf={})}},mV=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=fV(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),pV(r,i,n,"aria-hidden")):function(){return null}},bp="Dialog",[m4]=Na(bp),[gV,Nr]=m4(bp),g4=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,u=T.useRef(null),d=T.useRef(null),[f,p]=gl({prop:r,defaultProp:i??!1,onChange:s,caller:bp});return m.jsx(gV,{scope:t,triggerRef:u,contentRef:d,contentId:Bc(),titleId:Bc(),descriptionId:Bc(),open:f,onOpenChange:p,onOpenToggle:T.useCallback(()=>p(g=>!g),[p]),modal:l,children:n})};g4.displayName=bp;var v4="DialogTrigger",vV=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Nr(v4,n),s=At(t,i.triggerRef);return m.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":CS(i.open),...r,ref:s,onClick:et(e.onClick,i.onOpenToggle)})});vV.displayName=v4;var OS="DialogPortal",[yV,y4]=m4(OS,{forceMount:void 0}),x4=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,s=Nr(OS,t);return m.jsx(yV,{scope:t,forceMount:n,children:T.Children.map(r,l=>m.jsx(Pr,{present:n||s.open,children:m.jsx(i4,{asChild:!0,container:i,children:l})}))})};x4.displayName=OS;var uh="DialogOverlay",b4=T.forwardRef((e,t)=>{const n=y4(uh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=Nr(uh,e.__scopeDialog);return s.modal?m.jsx(Pr,{present:r||s.open,children:m.jsx(bV,{...i,ref:t})}):null});b4.displayName=uh;var xV=Jc("DialogOverlay.RemoveScroll"),bV=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Nr(uh,n);return m.jsx(h4,{as:xV,allowPinchZoom:!0,shards:[i.contentRef],children:m.jsx(Ze.div,{"data-state":CS(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),fo="DialogContent",w4=T.forwardRef((e,t)=>{const n=y4(fo,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=Nr(fo,e.__scopeDialog);return m.jsx(Pr,{present:r||s.open,children:s.modal?m.jsx(wV,{...i,ref:t}):m.jsx(SV,{...i,ref:t})})});w4.displayName=fo;var wV=T.forwardRef((e,t)=>{const n=Nr(fo,e.__scopeDialog),r=T.useRef(null),i=At(t,n.contentRef,r);return T.useEffect(()=>{const s=r.current;if(s)return mV(s)},[]),m.jsx(S4,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:et(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:et(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0;(l.button===2||u)&&s.preventDefault()}),onFocusOutside:et(e.onFocusOutside,s=>s.preventDefault())})}),SV=T.forwardRef((e,t)=>{const n=Nr(fo,e.__scopeDialog),r=T.useRef(!1),i=T.useRef(!1);return m.jsx(S4,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=s.target;n.triggerRef.current?.contains(l)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),S4=T.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...l}=e,u=Nr(fo,n),d=T.useRef(null),f=At(t,d);return _7(),m.jsxs(m.Fragment,{children:[m.jsx(r4,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:m.jsx(t4,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":CS(u.open),...l,ref:f,onDismiss:()=>u.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(jV,{titleId:u.titleId}),m.jsx(TV,{contentRef:d,descriptionId:u.descriptionId})]})]})}),TS="DialogTitle",A4=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Nr(TS,n);return m.jsx(Ze.h2,{id:i.titleId,...r,ref:t})});A4.displayName=TS;var j4="DialogDescription",AV=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Nr(j4,n);return m.jsx(Ze.p,{id:i.descriptionId,...r,ref:t})});AV.displayName=j4;var O4="DialogClose",T4=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Nr(O4,n);return m.jsx(Ze.button,{type:"button",...r,ref:t,onClick:et(e.onClick,()=>i.onOpenChange(!1))})});T4.displayName=O4;function CS(e){return e?"open":"closed"}var C4="DialogTitleWarning",[che,E4]=Yq(C4,{contentName:fo,titleName:TS,docsSlug:"dialog"}),jV=({titleId:e})=>{const t=E4(C4),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return T.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},OV="DialogDescriptionWarning",TV=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${E4(OV).contentName}}.`;return T.useEffect(()=>{const i=e.current?.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},CV=g4,EV=x4,_V=b4,PV=w4,NV=A4,DV=T4;const _4=T.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),ES=()=>T.useContext(_4);function w1({...e}){const t=T.useRef(!1),n=T.useRef(!1),r=T.useRef(null),i=T.useMemo(()=>({isComposing:()=>t.current,setComposing:s=>{t.current=s},justEndedComposing:()=>n.current,markCompositionEnd:()=>{n.current=!0,r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{n.current=!1},150)}}),[]);return m.jsx(_4.Provider,{"data-loc":"client/src/components/ui/dialog.tsx:50",value:i,children:m.jsx(CV,{"data-loc":"client/src/components/ui/dialog.tsx:51","data-slot":"dialog",...e})})}function MV({...e}){return m.jsx(EV,{"data-loc":"client/src/components/ui/dialog.tsx:65","data-slot":"dialog-portal",...e})}function P4({className:e,...t}){return m.jsx(_V,{"data-loc":"client/src/components/ui/dialog.tsx:79","data-slot":"dialog-overlay",className:Be("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}P4.displayName="DialogOverlay";function S1({className:e,children:t,showCloseButton:n=!0,onEscapeKeyDown:r,...i}){const{isComposing:s}=ES(),l=T.useCallback(u=>{if(u.isComposing||s()){u.preventDefault();return}r?.(u)},[s,r]);return m.jsxs(MV,{"data-loc":"client/src/components/ui/dialog.tsx:122","data-slot":"dialog-portal",children:[m.jsx(P4,{"data-loc":"client/src/components/ui/dialog.tsx:123"}),m.jsxs(PV,{"data-loc":"client/src/components/ui/dialog.tsx:124","data-slot":"dialog-content",className:Be("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),onEscapeKeyDown:l,...i,children:[t,n&&m.jsxs(DV,{"data-loc":"client/src/components/ui/dialog.tsx:135","data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[m.jsx(hq,{"data-loc":"client/src/components/ui/dialog.tsx:139"}),m.jsx("span",{"data-loc":"client/src/components/ui/dialog.tsx:140",className:"sr-only",children:"Close"})]})]})]})}function A1({className:e,...t}){return m.jsx("div",{"data-loc":"client/src/components/ui/dialog.tsx:150","data-slot":"dialog-header",className:Be("flex flex-col gap-2 text-center sm:text-left",e),...t})}function j1({className:e,...t}){return m.jsx(NV,{"data-loc":"client/src/components/ui/dialog.tsx:176","data-slot":"dialog-title",className:Be("text-lg leading-none font-semibold",e),...t})}function Rc(e){const t=T.useRef(e);t.current=e;const n=T.useRef(null);return n.current||(n.current=function(...r){return t.current.apply(this,r)}),n.current}function N4(e={}){const{onKeyDown:t,onCompositionStart:n,onCompositionEnd:r}=e,i=T.useRef(!1),s=T.useRef(null),l=T.useRef(null),u=Rc(g=>{s.current&&(clearTimeout(s.current),s.current=null),l.current&&(clearTimeout(l.current),l.current=null),i.current=!0,n?.(g)}),d=Rc(g=>{s.current=setTimeout(()=>{l.current=setTimeout(()=>{i.current=!1})}),r?.(g)}),f=Rc(g=>{if(i.current&&(g.key==="Escape"||g.key==="Enter"&&!g.shiftKey)){g.stopPropagation();return}t?.(g)}),p=Rc(()=>i.current);return{onCompositionStart:u,onCompositionEnd:d,onKeyDown:f,isComposing:p}}function Ue({className:e,type:t,onKeyDown:n,onCompositionStart:r,onCompositionEnd:i,...s}){const l=ES(),{onCompositionStart:u,onCompositionEnd:d,onKeyDown:f}=N4({onKeyDown:p=>{const g=p.nativeEvent.isComposing||l.justEndedComposing();p.key==="Enter"&&g||n?.(p)},onCompositionStart:p=>{l.setComposing(!0),r?.(p)},onCompositionEnd:p=>{l.markCompositionEnd(),setTimeout(()=>{l.setComposing(!1)},100),i?.(p)}});return m.jsx("input",{"data-loc":"client/src/components/ui/input.tsx:53",type:t,"data-slot":"input",className:Be("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),onCompositionStart:u,onCompositionEnd:d,onKeyDown:f,...s})}const _S=[{id:"cachorro-quente",name:"🌭 Cachorro-Quente",image:"/images/category-burger.jpg"},{id:"xis",name:"🍔 Xis",image:"/images/category-burger.jpg"},{id:"combos",name:"Combos",image:"/images/category-combo.jpg"},{id:"drinks",name:"Bebidas",image:"/images/category-drinks.jpg"}],Fu=[{id:"1",name:"Cachorro-Quente Especial",description:"Cachorro-quente tradicional com molho especial da casa, cebola e mostarda.",price:19,image:"/images/cachorro-quente.jpg",category:"cachorro-quente",rating:4.7,popular:!0},{id:"2",name:"Cachorro-Quente Bacon",description:"Cachorro-quente com bacon crocante, queijo derretido e molho especial.",price:22,image:"/images/cachorro-quente.jpg",category:"cachorro-quente",rating:4.8},{id:"3",name:"Cachorro-Quente Frango",description:"Cachorro-quente com frango desfiado, queijo e molho especial.",price:22,image:"/images/cachorro-quente.jpg",category:"cachorro-quente",rating:4.6},{id:"4",name:"Cachorro-Quente Calabresa",description:"Cachorro-quente com calabresa grelhada, cebola roxa e molho especial.",price:20,image:"/images/cachorro-quente.jpg",category:"cachorro-quente",rating:4.7},{id:"5",name:"Cachorro-Quente Duplo",description:"Dois cachorros-quentes com bacon, queijo e molho especial.",price:22,image:"/images/cachorro-quente.jpg",category:"cachorro-quente",rating:4.8},{id:"6",name:"Cachorro-Quente Filé",description:"Cachorro-quente com filé mignon, queijo suíço e molho especial.",price:27,image:"/images/cachorro-quente.jpg",category:"cachorro-quente",rating:4.9,popular:!0},{id:"7",name:"Cachorro-Quente Filé com Bacon",description:"Cachorro-quente com filé mignon, bacon crocante, queijo e molho especial.",price:30,image:"/images/cachorro-quente.jpg",category:"cachorro-quente",rating:4.9},{id:"8",name:"Cachorro-Quente Frango com Bacon",description:"Cachorro-quente com frango, bacon crocante, queijo e molho especial.",price:25,image:"/images/cachorro-quente.jpg",category:"cachorro-quente",rating:4.7},{id:"9",name:"Xis Especial",description:"Xis com hamburguer, queijo, alface, tomate e molho especial.",price:22,image:"/images/xis.jpg",category:"xis",rating:4.7,popular:!0},{id:"10",name:"Xis Calabresa",description:"Xis com calabresa grelhada, queijo, alface e tomate.",price:22,image:"/images/xis.jpg",category:"xis",rating:4.6},{id:"11",name:"Xis Frango",description:"Xis com frango desfiado, queijo, alface, tomate e molho especial.",price:23,image:"/images/xis.jpg",category:"xis",rating:4.7},{id:"12",name:"Xis Bacon",description:"Xis com bacon crocante, queijo, alface, tomate e molho especial.",price:27,image:"/images/xis.jpg",category:"xis",rating:4.8},{id:"13",name:"Xis Filé",description:"Xis com filé mignon grelhado, queijo, alface, tomate e molho especial.",price:30,image:"/images/xis.jpg",category:"xis",rating:4.9,popular:!0},{id:"14",name:"Xis Filé com Bacon",description:"Xis com filé mignon, bacon crocante, queijo, alface, tomate e molho especial.",price:33,image:"/images/xis.jpg",category:"xis",rating:4.9},{id:"15",name:"Xis Coração",description:"Xis com coração de frango grelhado, queijo, alface e tomate.",price:27,image:"/images/xis.jpg",category:"xis",rating:4.7},{id:"16",name:"Xis Frango com Bacon",description:"Xis com frango desfiado, bacon crocante, queijo, alface e tomate.",price:27,image:"/images/xis.jpg",category:"xis",rating:4.8},{id:"17",name:"Xis Duplo",description:"Xis com dois hamburgues, queijo em dobro, alface, tomate e molho especial.",price:30,image:"/images/xis.jpg",category:"xis",rating:4.8},{id:"18",name:"Combo Cachorro-Quente + Bebida",description:"Cachorro-quente especial + refrigerante 350ml.",price:24.9,image:"/images/category-combo.jpg",category:"combos",rating:4.8,popular:!0},{id:"19",name:"Combo Xis + Bebida",description:"Xis especial + refrigerante 350ml.",price:27.9,image:"/images/category-combo.jpg",category:"combos",rating:4.9,popular:!0},{id:"20",name:"Combo Duplo",description:"2 cachorros-quentes + 2 refrigerantes 350ml.",price:44.9,image:"/images/category-combo.jpg",category:"combos",rating:4.9},{id:"21",name:"Combo Trio",description:"2 xis especiais + 2 refrigerantes + porção de fritas.",price:54.9,image:"/images/category-combo.jpg",category:"combos",rating:4.9},{id:"22",name:"Coca-Cola Gelada",description:"Lata 350ml com gelo e limão opcional.",price:6.9,image:"/images/category-drinks.jpg",category:"drinks",rating:5},{id:"23",name:"Refrigerante 2L",description:"Refrigerante 2 litros para compartilhar.",price:12,image:"/images/category-drinks.jpg",category:"drinks",rating:4.9}];function RV(){const[e,t]=T.useState(""),[,n]=It(),[r,i]=T.useState([]),[s,l]=T.useState([]);T.useEffect(()=>{const f=()=>{const p=localStorage.getItem("dogmelina_products");i(p?JSON.parse(p):Fu);const g=localStorage.getItem("dogmelina_categories");l(g?JSON.parse(g):_S)};return f(),window.addEventListener("storage",f),()=>window.removeEventListener("storage",f)},[]);const u=[{id:"1",title:"Double Bacon Master",subtitle:"Xis com duplo bacon crocante e queijo derretido",price:"A partir de R$ 38,90",image:"/images/hero-burger.jpg",cta:"Pedir Agora"},{id:"2",title:"Combo Especial",subtitle:"Cachorro-quente + Bebida + Fritas",price:"A partir de R$ 24,90",image:"/images/category-combo.jpg",cta:"Pedir Agora"}],d=r.filter(f=>f.name.toLowerCase().includes(e.toLowerCase()));return m.jsxs(bo,{"data-loc":"client/src/pages/Home.tsx:57",children:[m.jsxs("header",{"data-loc":"client/src/pages/Home.tsx:59",className:"px-6 pt-8 pb-6 bg-white sticky top-0 z-20 shadow-sm",children:[m.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:60",className:"flex justify-between items-center mb-6",children:[m.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:61",className:"flex items-center gap-3",children:[m.jsx("div",{"data-loc":"client/src/pages/Home.tsx:62",className:"w-12 h-12 bg-primary rounded-2xl flex items-center justify-center shadow-lg shadow-primary/20",children:m.jsx("img",{"data-loc":"client/src/pages/Home.tsx:63",src:"/images/logo.png",alt:"Logo",className:"w-8 h-8 object-contain brightness-0 invert"})}),m.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:65",children:[m.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:66",className:"flex items-center gap-1 text-primary font-black text-xs uppercase tracking-widest",children:[m.jsx(mr,{"data-loc":"client/src/pages/Home.tsx:67",size:12})," Sua Localização"]}),m.jsx("h1",{"data-loc":"client/src/pages/Home.tsx:69",className:"text-xl font-black text-foreground",children:"Dog Melina"})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:72",className:"flex gap-2",children:[m.jsx("button",{"data-loc":"client/src/pages/Home.tsx:73",onClick:()=>n("/admin/login"),className:"w-10 h-10 rounded-xl bg-secondary/50 flex items-center justify-center hover:bg-primary hover:text-white transition-all",children:m.jsx(M3,{"data-loc":"client/src/pages/Home.tsx:74",size:18})}),m.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:76",className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center relative",children:[m.jsx(Vu,{"data-loc":"client/src/pages/Home.tsx:77",size:18}),m.jsx("span",{"data-loc":"client/src/pages/Home.tsx:78",className:"absolute -top-1 -right-1 w-4 h-4 bg-primary text-white text-[10px] font-black rounded-full flex items-center justify-center border-2 border-white",children:"2"})]})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:83",className:"relative",children:[m.jsx(hl,{"data-loc":"client/src/pages/Home.tsx:84",className:"absolute inset-y-0 left-4 flex items-center h-full w-5 text-muted-foreground"}),m.jsx(Ue,{"data-loc":"client/src/pages/Home.tsx:85",placeholder:"O que você quer comer hoje?",className:"pl-12 bg-secondary/30 border-none h-14 rounded-2xl text-base font-medium focus-visible:ring-2 focus-visible:ring-primary/30",value:e,onChange:f=>t(f.target.value)})]})]}),m.jsx("div",{"data-loc":"client/src/pages/Home.tsx:95",className:"px-6 mt-4",children:m.jsx(Xq,{"data-loc":"client/src/pages/Home.tsx:96",slides:u,onCTAClick:()=>n("/menu")})}),m.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:100",className:"mt-8",children:[m.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:101",className:"flex items-center justify-between px-6 mb-4",children:[m.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:102",className:"text-xl font-black text-foreground",children:"Categorias"}),m.jsxs(_s,{"data-loc":"client/src/pages/Home.tsx:103",href:"/menu",className:"text-primary text-sm font-black flex items-center gap-1",children:["Ver tudo ",m.jsx(qu,{"data-loc":"client/src/pages/Home.tsx:104",size:16})]})]}),m.jsx("div",{"data-loc":"client/src/pages/Home.tsx:107",className:"flex overflow-x-auto px-6 gap-4 pb-4 no-scrollbar snap-x",children:s.map(f=>m.jsx(_s,{"data-loc":"client/src/pages/Home.tsx:109",href:`/menu?category=${f.slug||f.id}`,children:m.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:110",className:"flex flex-col items-center gap-3 min-w-[90px] snap-start cursor-pointer group",children:[m.jsx("div",{"data-loc":"client/src/pages/Home.tsx:111",className:"w-20 h-20 rounded-[28px] bg-white shadow-md border-2 border-transparent group-hover:border-primary group-hover:shadow-primary/10 transition-all overflow-hidden p-1",children:m.jsx("img",{"data-loc":"client/src/pages/Home.tsx:112",src:f.image||"/images/category-burger.jpg",alt:f.name,className:"w-full h-full object-cover rounded-[22px]"})}),m.jsx("span",{"data-loc":"client/src/pages/Home.tsx:114",className:"text-xs font-black text-muted-foreground group-hover:text-primary uppercase tracking-tighter",children:f.name})]})},f.id))})]}),m.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:122",className:"px-6 mt-8 pb-24",children:[m.jsx("div",{"data-loc":"client/src/pages/Home.tsx:123",className:"flex items-center justify-between mb-6",children:m.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:124",className:"text-xl font-black text-foreground",children:"Mais Pedidos 🔥"})}),m.jsx("div",{"data-loc":"client/src/pages/Home.tsx:126",className:"grid grid-cols-2 gap-4",children:d.slice(0,10).map(f=>m.jsx(_s,{"data-loc":"client/src/pages/Home.tsx:128",href:`/product/${f.id}`,children:m.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:129",className:"bg-white rounded-[32px] p-3 shadow-sm border border-border/40 hover:shadow-xl hover:shadow-primary/5 transition-all cursor-pointer flex flex-col h-full group",children:[m.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:130",className:"w-full aspect-square rounded-[24px] overflow-hidden bg-secondary/30 relative mb-3",children:[m.jsx("img",{"data-loc":"client/src/pages/Home.tsx:131",src:f.image,alt:f.name,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-500"}),m.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:132",className:"absolute top-2 right-2 bg-white/90 backdrop-blur-sm px-2 py-1 rounded-xl flex items-center gap-1 shadow-sm",children:[m.jsx(Uu,{"data-loc":"client/src/pages/Home.tsx:133",size:12,className:"fill-primary text-primary"}),m.jsx("span",{"data-loc":"client/src/pages/Home.tsx:134",className:"text-[10px] font-black",children:"4.9"})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:138",className:"flex-1 flex flex-col px-1",children:[m.jsx("h4",{"data-loc":"client/src/pages/Home.tsx:139",className:"font-black text-sm text-foreground line-clamp-1 mb-1",children:f.name}),m.jsx("p",{"data-loc":"client/src/pages/Home.tsx:140",className:"text-[10px] text-muted-foreground line-clamp-2 mb-3 leading-tight flex-1",children:f.description}),m.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:144",className:"flex items-center justify-between mt-auto",children:[m.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:145",className:"font-black text-primary text-base",children:["R$ ",f.price.toFixed(2)]}),m.jsx("div",{"data-loc":"client/src/pages/Home.tsx:148",className:"w-9 h-9 rounded-xl bg-primary text-white flex items-center justify-center shadow-lg shadow-primary/20 group-hover:scale-110 transition-transform",children:m.jsx(Pa,{"data-loc":"client/src/pages/Home.tsx:149",size:20,strokeWidth:3})})]})]})]})},f.id))})]})]})}function kV(){const e=L9(),n=new URLSearchParams(e).get("category"),[r,i]=T.useState(""),[s,l]=T.useState(n||"all"),[u,d]=T.useState([]),[f,p]=T.useState([]);T.useEffect(()=>{const v=()=>{const x=localStorage.getItem("dogmelina_products");d(x?JSON.parse(x):Fu);const A=localStorage.getItem("dogmelina_categories");p(A?JSON.parse(A):_S)};return v(),window.addEventListener("storage",v),()=>window.removeEventListener("storage",v)},[]),T.useEffect(()=>{n&&l(n)},[n]);const g=u.filter(v=>{const x=v.name.toLowerCase().includes(r.toLowerCase()),A=s==="all"||v.category===s;return x&&A});return m.jsxs(bo,{"data-loc":"client/src/pages/Menu.tsx:47",children:[m.jsxs("header",{"data-loc":"client/src/pages/Menu.tsx:48",className:"px-6 pt-8 pb-6 bg-white sticky top-0 z-20 shadow-sm",children:[m.jsx("h1",{"data-loc":"client/src/pages/Menu.tsx:49",className:"text-3xl font-black text-foreground mb-6",children:"Cardápio 😋"}),m.jsxs("div",{"data-loc":"client/src/pages/Menu.tsx:51",className:"relative mb-6",children:[m.jsx(hl,{"data-loc":"client/src/pages/Menu.tsx:52",className:"absolute inset-y-0 left-4 flex items-center h-full w-5 text-muted-foreground"}),m.jsx(Ue,{"data-loc":"client/src/pages/Menu.tsx:53",placeholder:"Buscar no cardápio...",className:"pl-12 bg-secondary/30 border-none h-14 rounded-2xl text-base font-medium",value:r,onChange:v=>i(v.target.value)})]}),m.jsxs("div",{"data-loc":"client/src/pages/Menu.tsx:61",className:"flex overflow-x-auto gap-3 pb-2 no-scrollbar snap-x",children:[m.jsx("button",{"data-loc":"client/src/pages/Menu.tsx:62",onClick:()=>l("all"),className:`px-6 py-3 rounded-2xl text-sm font-black whitespace-nowrap transition-all snap-start ${s==="all"?"bg-primary text-white shadow-lg shadow-primary/20 scale-105":"bg-secondary/50 text-muted-foreground hover:bg-secondary"}`,children:"Todos"}),f.map(v=>m.jsx("button",{"data-loc":"client/src/pages/Menu.tsx:73",onClick:()=>l(v.slug||v.id),className:`px-6 py-3 rounded-2xl text-sm font-black whitespace-nowrap transition-all snap-start ${s===(v.slug||v.id)?"bg-primary text-white shadow-lg shadow-primary/20 scale-105":"bg-secondary/50 text-muted-foreground hover:bg-secondary"}`,children:v.name},v.id))]})]}),m.jsx("div",{"data-loc":"client/src/pages/Menu.tsx:88",className:"px-6 pt-6 pb-24 grid grid-cols-2 gap-4",children:g.length===0?m.jsxs("div",{"data-loc":"client/src/pages/Menu.tsx:90",className:"col-span-2 text-center py-20 opacity-30",children:[m.jsx(Q9,{"data-loc":"client/src/pages/Menu.tsx:91",size:64,className:"mx-auto mb-4"}),m.jsx("p",{"data-loc":"client/src/pages/Menu.tsx:92",className:"font-bold",children:"Nenhum produto encontrado"})]}):g.map(v=>m.jsx(_s,{"data-loc":"client/src/pages/Menu.tsx:96",href:`/product/${v.id}`,children:m.jsxs("div",{"data-loc":"client/src/pages/Menu.tsx:97",className:"bg-white rounded-[32px] p-3 shadow-sm border border-border/40 hover:shadow-xl transition-all cursor-pointer flex flex-col h-full group",children:[m.jsxs("div",{"data-loc":"client/src/pages/Menu.tsx:98",className:"w-full aspect-square rounded-[24px] overflow-hidden bg-secondary/30 relative mb-3",children:[m.jsx("img",{"data-loc":"client/src/pages/Menu.tsx:99",src:v.image,alt:v.name,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-500"}),m.jsxs("div",{"data-loc":"client/src/pages/Menu.tsx:100",className:"absolute top-2 right-2 bg-white/90 backdrop-blur-sm px-2 py-1 rounded-xl flex items-center gap-1 shadow-sm",children:[m.jsx(Uu,{"data-loc":"client/src/pages/Menu.tsx:101",size:12,className:"fill-primary text-primary"}),m.jsx("span",{"data-loc":"client/src/pages/Menu.tsx:102",className:"text-[10px] font-black",children:"4.9"})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/Menu.tsx:106",className:"flex-1 flex flex-col px-1",children:[m.jsx("h4",{"data-loc":"client/src/pages/Menu.tsx:107",className:"font-black text-sm text-foreground line-clamp-1 mb-1",children:v.name}),m.jsx("p",{"data-loc":"client/src/pages/Menu.tsx:108",className:"text-[10px] text-muted-foreground line-clamp-2 mb-3 leading-tight flex-1",children:v.description}),m.jsxs("div",{"data-loc":"client/src/pages/Menu.tsx:112",className:"flex items-center justify-between mt-auto",children:[m.jsxs("span",{"data-loc":"client/src/pages/Menu.tsx:113",className:"font-black text-primary text-base",children:["R$ ",v.price.toFixed(2)]}),m.jsx("div",{"data-loc":"client/src/pages/Menu.tsx:116",className:"w-9 h-9 rounded-xl bg-primary text-white flex items-center justify-center shadow-lg shadow-primary/20 group-hover:scale-110 transition-transform",children:m.jsx(Pa,{"data-loc":"client/src/pages/Menu.tsx:117",size:20,strokeWidth:3})})]})]})]})},v.id))})]})}const eE=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tE=De,D4=(e,t)=>n=>{var r;if(t?.variants==null)return tE(e,n?.class,n?.className);const{variants:i,defaultVariants:s}=t,l=Object.keys(i).map(f=>{const p=n?.[f],g=s?.[f];if(p===null)return null;const v=eE(p)||eE(g);return i[f][v]}),u=n&&Object.entries(n).reduce((f,p)=>{let[g,v]=p;return v===void 0||(f[g]=v),f},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,p)=>{let{class:g,className:v,...x}=p;return Object.entries(x).every(A=>{let[w,S]=A;return Array.isArray(S)?S.includes({...s,...u}[w]):{...s,...u}[w]===S})?[...f,g,v]:f},[]);return tE(e,l,d,n?.class,n?.className)},zV=D4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-transparent shadow-xs hover:bg-accent dark:bg-transparent dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function ye({className:e,variant:t,size:n,asChild:r=!1,...i}){const s=r?J3:"button";return m.jsx(s,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:Be(zV({variant:t,size:n,className:e})),...i})}function PS(e){const t=T.useRef({value:e,previous:e});return T.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function NS(e){const[t,n]=T.useState(void 0);return uo(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let l,u;if("borderBoxSize"in s){const d=s.borderBoxSize,f=Array.isArray(d)?d[0]:d;l=f.inlineSize,u=f.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var wp="Checkbox",[LV]=Na(wp),[$V,DS]=LV(wp);function BV(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:s,form:l,name:u,onCheckedChange:d,required:f,value:p="on",internal_do_not_use_render:g}=e,[v,x]=gl({prop:n,defaultProp:i??!1,onChange:d,caller:wp}),[A,w]=T.useState(null),[S,O]=T.useState(null),E=T.useRef(!1),j=A?!!l||!!A.closest("form"):!0,N={checked:v,disabled:s,setChecked:x,control:A,setControl:w,name:u,form:l,value:p,hasConsumerStoppedPropagationRef:E,required:f,defaultChecked:gi(i)?!1:i,isFormControl:j,bubbleInput:S,setBubbleInput:O};return m.jsx($V,{scope:t,...N,children:IV(g)?g(N):r})}var M4="CheckboxTrigger",R4=T.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{const{control:s,value:l,disabled:u,checked:d,required:f,setControl:p,setChecked:g,hasConsumerStoppedPropagationRef:v,isFormControl:x,bubbleInput:A}=DS(M4,e),w=At(i,p),S=T.useRef(d);return T.useEffect(()=>{const O=s?.form;if(O){const E=()=>g(S.current);return O.addEventListener("reset",E),()=>O.removeEventListener("reset",E)}},[s,g]),m.jsx(Ze.button,{type:"button",role:"checkbox","aria-checked":gi(d)?"mixed":d,"aria-required":f,"data-state":I4(d),"data-disabled":u?"":void 0,disabled:u,value:l,...r,ref:w,onKeyDown:et(t,O=>{O.key==="Enter"&&O.preventDefault()}),onClick:et(n,O=>{g(E=>gi(E)?!0:!E),A&&x&&(v.current=O.isPropagationStopped(),v.current||O.stopPropagation())})})});R4.displayName=M4;var k4=T.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:s,required:l,disabled:u,value:d,onCheckedChange:f,form:p,...g}=e;return m.jsx(BV,{__scopeCheckbox:n,checked:i,defaultChecked:s,disabled:u,required:l,onCheckedChange:f,name:r,form:p,value:d,internal_do_not_use_render:({isFormControl:v})=>m.jsxs(m.Fragment,{children:[m.jsx(R4,{...g,ref:t,__scopeCheckbox:n}),v&&m.jsx(B4,{__scopeCheckbox:n})]})})});k4.displayName=wp;var z4="CheckboxIndicator",L4=T.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,s=DS(z4,n);return m.jsx(Pr,{present:r||gi(s.checked)||s.checked===!0,children:m.jsx(Ze.span,{"data-state":I4(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});L4.displayName=z4;var $4="CheckboxBubbleInput",B4=T.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:i,checked:s,defaultChecked:l,required:u,disabled:d,name:f,value:p,form:g,bubbleInput:v,setBubbleInput:x}=DS($4,e),A=At(n,x),w=PS(s),S=NS(r);T.useEffect(()=>{const E=v;if(!E)return;const j=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(j,"checked").set,P=!i.current;if(w!==s&&C){const D=new Event("click",{bubbles:P});E.indeterminate=gi(s),C.call(E,gi(s)?!1:s),E.dispatchEvent(D)}},[v,w,s,i]);const O=T.useRef(gi(s)?!1:s);return m.jsx(Ze.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??O.current,required:u,disabled:d,name:f,value:p,form:g,...t,tabIndex:-1,ref:A,style:{...t.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});B4.displayName=$4;function IV(e){return typeof e=="function"}function gi(e){return e==="indeterminate"}function I4(e){return gi(e)?"indeterminate":e?"checked":"unchecked"}function qV({className:e,...t}){return m.jsx(k4,{"data-loc":"client/src/components/ui/checkbox.tsx:12","data-slot":"checkbox",className:Be("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:m.jsx(L4,{"data-loc":"client/src/components/ui/checkbox.tsx:20","data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:m.jsx(h1,{"data-loc":"client/src/components/ui/checkbox.tsx:24",className:"size-3.5"})})})}var VV="Label",q4=T.forwardRef((e,t)=>m.jsx(Ze.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));q4.displayName=VV;var UV=q4;function Dt({className:e,...t}){return m.jsx(UV,{"data-loc":"client/src/components/ui/label.tsx:11","data-slot":"label",className:Be("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function HV(e){const t=e+"CollectionProvider",[n,r]=Na(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=w=>{const{scope:S,children:O}=w,E=B.useRef(null),j=B.useRef(new Map).current;return m.jsx(i,{scope:S,itemMap:j,collectionRef:E,children:O})};l.displayName=t;const u=e+"CollectionSlot",d=Jc(u),f=B.forwardRef((w,S)=>{const{scope:O,children:E}=w,j=s(u,O),N=At(S,j.collectionRef);return m.jsx(d,{ref:N,children:E})});f.displayName=u;const p=e+"CollectionItemSlot",g="data-radix-collection-item",v=Jc(p),x=B.forwardRef((w,S)=>{const{scope:O,children:E,...j}=w,N=B.useRef(null),C=At(S,N),P=s(p,O);return B.useEffect(()=>(P.itemMap.set(N,{ref:N,...j}),()=>void P.itemMap.delete(N))),m.jsx(v,{[g]:"",ref:C,children:E})});x.displayName=p;function A(w){const S=s(e+"CollectionConsumer",w);return B.useCallback(()=>{const E=S.collectionRef.current;if(!E)return[];const j=Array.from(E.querySelectorAll(`[${g}]`));return Array.from(S.itemMap.values()).sort((P,D)=>j.indexOf(P.ref.current)-j.indexOf(D.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:l,Slot:f,ItemSlot:x},A,r]}var FV=T.createContext(void 0);function Sp(e){const t=T.useContext(FV);return e||t||"ltr"}var Fv="rovingFocusGroup.onEntryFocus",GV={bubbles:!1,cancelable:!0},Gu="RovingFocusGroup",[O1,V4,KV]=HV(Gu),[XV,Ap]=Na(Gu,[KV]),[YV,WV]=XV(Gu),U4=T.forwardRef((e,t)=>m.jsx(O1.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(O1.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(ZV,{...e,ref:t})})}));U4.displayName=Gu;var ZV=T.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:d,onEntryFocus:f,preventScrollOnEntryFocus:p=!1,...g}=e,v=T.useRef(null),x=At(t,v),A=Sp(s),[w,S]=gl({prop:l,defaultProp:u??null,onChange:d,caller:Gu}),[O,E]=T.useState(!1),j=Un(f),N=V4(n),C=T.useRef(!1),[P,D]=T.useState(0);return T.useEffect(()=>{const M=v.current;if(M)return M.addEventListener(Fv,j),()=>M.removeEventListener(Fv,j)},[j]),m.jsx(YV,{scope:n,orientation:r,dir:A,loop:i,currentTabStopId:w,onItemFocus:T.useCallback(M=>S(M),[S]),onItemShiftTab:T.useCallback(()=>E(!0),[]),onFocusableItemAdd:T.useCallback(()=>D(M=>M+1),[]),onFocusableItemRemove:T.useCallback(()=>D(M=>M-1),[]),children:m.jsx(Ze.div,{tabIndex:O||P===0?-1:0,"data-orientation":r,...g,ref:x,style:{outline:"none",...e.style},onMouseDown:et(e.onMouseDown,()=>{C.current=!0}),onFocus:et(e.onFocus,M=>{const k=!C.current;if(M.target===M.currentTarget&&k&&!O){const q=new CustomEvent(Fv,GV);if(M.currentTarget.dispatchEvent(q),!q.defaultPrevented){const L=N().filter(z=>z.focusable),U=L.find(z=>z.active),X=L.find(z=>z.id===w),W=[U,X,...L].filter(Boolean).map(z=>z.ref.current);G4(W,p)}}C.current=!1}),onBlur:et(e.onBlur,()=>E(!1))})})}),H4="RovingFocusGroupItem",F4=T.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:s,children:l,...u}=e,d=Bc(),f=s||d,p=WV(H4,n),g=p.currentTabStopId===f,v=V4(n),{onFocusableItemAdd:x,onFocusableItemRemove:A,currentTabStopId:w}=p;return T.useEffect(()=>{if(r)return x(),()=>A()},[r,x,A]),m.jsx(O1.ItemSlot,{scope:n,id:f,focusable:r,active:i,children:m.jsx(Ze.span,{tabIndex:g?0:-1,"data-orientation":p.orientation,...u,ref:t,onMouseDown:et(e.onMouseDown,S=>{r?p.onItemFocus(f):S.preventDefault()}),onFocus:et(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:et(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){p.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const O=eU(S,p.orientation,p.dir);if(O!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let j=v().filter(N=>N.focusable).map(N=>N.ref.current);if(O==="last")j.reverse();else if(O==="prev"||O==="next"){O==="prev"&&j.reverse();const N=j.indexOf(S.currentTarget);j=p.loop?tU(j,N+1):j.slice(N+1)}setTimeout(()=>G4(j))}}),children:typeof l=="function"?l({isCurrentTabStop:g,hasTabStop:w!=null}):l})})});F4.displayName=H4;var QV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function JV(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function eU(e,t,n){const r=JV(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return QV[r]}function G4(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function tU(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var K4=U4,X4=F4,MS="Radio",[nU,Y4]=Na(MS),[rU,aU]=nU(MS),W4=T.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:i=!1,required:s,disabled:l,value:u="on",onCheck:d,form:f,...p}=e,[g,v]=T.useState(null),x=At(t,S=>v(S)),A=T.useRef(!1),w=g?f||!!g.closest("form"):!0;return m.jsxs(rU,{scope:n,checked:i,disabled:l,children:[m.jsx(Ze.button,{type:"button",role:"radio","aria-checked":i,"data-state":e5(i),"data-disabled":l?"":void 0,disabled:l,value:u,...p,ref:x,onClick:et(e.onClick,S=>{i||d?.(),w&&(A.current=S.isPropagationStopped(),A.current||S.stopPropagation())})}),w&&m.jsx(J4,{control:g,bubbles:!A.current,name:r,value:u,checked:i,required:s,disabled:l,form:f,style:{transform:"translateX(-100%)"}})]})});W4.displayName=MS;var Z4="RadioIndicator",Q4=T.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...i}=e,s=aU(Z4,n);return m.jsx(Pr,{present:r||s.checked,children:m.jsx(Ze.span,{"data-state":e5(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:t})})});Q4.displayName=Z4;var iU="RadioBubbleInput",J4=T.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...i},s)=>{const l=T.useRef(null),u=At(l,s),d=PS(n),f=NS(t);return T.useEffect(()=>{const p=l.current;if(!p)return;const g=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(g,"checked").set;if(d!==n&&x){const A=new Event("click",{bubbles:r});x.call(p,n),p.dispatchEvent(A)}},[d,n,r]),m.jsx(Ze.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:u,style:{...i.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});J4.displayName=iU;function e5(e){return e?"checked":"unchecked"}var oU=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],jp="RadioGroup",[sU]=Na(jp,[Ap,Y4]),t5=Ap(),n5=Y4(),[lU,cU]=sU(jp),r5=T.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:i,value:s,required:l=!1,disabled:u=!1,orientation:d,dir:f,loop:p=!0,onValueChange:g,...v}=e,x=t5(n),A=Sp(f),[w,S]=gl({prop:s,defaultProp:i??null,onChange:g,caller:jp});return m.jsx(lU,{scope:n,name:r,required:l,disabled:u,value:w,onValueChange:S,children:m.jsx(K4,{asChild:!0,...x,orientation:d,dir:A,loop:p,children:m.jsx(Ze.div,{role:"radiogroup","aria-required":l,"aria-orientation":d,"data-disabled":u?"":void 0,dir:A,...v,ref:t})})})});r5.displayName=jp;var a5="RadioGroupItem",i5=T.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...i}=e,s=cU(a5,n),l=s.disabled||r,u=t5(n),d=n5(n),f=T.useRef(null),p=At(t,f),g=s.value===i.value,v=T.useRef(!1);return T.useEffect(()=>{const x=w=>{oU.includes(w.key)&&(v.current=!0)},A=()=>v.current=!1;return document.addEventListener("keydown",x),document.addEventListener("keyup",A),()=>{document.removeEventListener("keydown",x),document.removeEventListener("keyup",A)}},[]),m.jsx(X4,{asChild:!0,...u,focusable:!l,active:g,children:m.jsx(W4,{disabled:l,required:s.required,checked:g,...d,...i,name:s.name,ref:p,onCheck:()=>s.onValueChange(i.value),onKeyDown:et(x=>{x.key==="Enter"&&x.preventDefault()}),onFocus:et(i.onFocus,()=>{v.current&&f.current?.click()})})})});i5.displayName=a5;var uU="RadioGroupIndicator",o5=T.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,i=n5(n);return m.jsx(Q4,{...i,...r,ref:t})});o5.displayName=uU;var dU=r5,fU=i5,hU=o5;function s5({className:e,...t}){return m.jsx(dU,{"data-loc":"client/src/components/ui/radio-group.tsx:12","data-slot":"radio-group",className:Be("grid gap-3",e),...t})}function l5({className:e,...t}){return m.jsx(fU,{"data-loc":"client/src/components/ui/radio-group.tsx:25","data-slot":"radio-group-item",className:Be("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:m.jsx(hU,{"data-loc":"client/src/components/ui/radio-group.tsx:33","data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:m.jsx(W9,{"data-loc":"client/src/components/ui/radio-group.tsx:37",className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}function pU({className:e,onKeyDown:t,onCompositionStart:n,onCompositionEnd:r,...i}){const s=ES(),{onCompositionStart:l,onCompositionEnd:u,onKeyDown:d}=N4({onKeyDown:f=>{const p=f.nativeEvent.isComposing||s.justEndedComposing();f.key==="Enter"&&!f.shiftKey&&p||t?.(f)},onCompositionStart:f=>{s.setComposing(!0),n?.(f)},onCompositionEnd:f=>{s.markCompositionEnd(),setTimeout(()=>{s.setComposing(!1)},100),r?.(f)}});return m.jsx("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:Be("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),onCompositionStart:l,onCompositionEnd:u,onKeyDown:d,...i})}function mU(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Array(12).fill(0);let T1=1;class gU{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,s=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:T1++,l=this.toasts.find(d=>d.id===s),u=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),l?this.toasts=this.toasts.map(d=>d.id===s?(this.publish({...d,...t,id:s,title:r}),{...d,...t,id:s,dismissible:u,title:r}):d):this.addToast({title:r,...i,dismissible:u,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,l;const u=i.then(async f=>{if(l=["resolve",f],B.isValidElement(f))s=!1,this.create({id:r,type:"default",message:f});else if(yU(f)&&!f.ok){s=!1;const g=typeof n.error=="function"?await n.error(`HTTP error! status: ${f.status}`):n.error,v=typeof n.description=="function"?await n.description(`HTTP error! status: ${f.status}`):n.description,A=typeof g=="object"&&!B.isValidElement(g)?g:{message:g};this.create({id:r,type:"error",description:v,...A})}else if(f instanceof Error){s=!1;const g=typeof n.error=="function"?await n.error(f):n.error,v=typeof n.description=="function"?await n.description(f):n.description,A=typeof g=="object"&&!B.isValidElement(g)?g:{message:g};this.create({id:r,type:"error",description:v,...A})}else if(n.success!==void 0){s=!1;const g=typeof n.success=="function"?await n.success(f):n.success,v=typeof n.description=="function"?await n.description(f):n.description,A=typeof g=="object"&&!B.isValidElement(g)?g:{message:g};this.create({id:r,type:"success",description:v,...A})}}).catch(async f=>{if(l=["reject",f],n.error!==void 0){s=!1;const p=typeof n.error=="function"?await n.error(f):n.error,g=typeof n.description=="function"?await n.description(f):n.description,x=typeof p=="object"&&!B.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:g,...x})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),d=()=>new Promise((f,p)=>u.then(()=>l[0]==="reject"?p(l[1]):f(l[1])).catch(p));return typeof r!="string"&&typeof r!="number"?{unwrap:d}:Object.assign(r,{unwrap:d})},this.custom=(t,n)=>{const r=n?.id||T1++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const cr=new gU,vU=(e,t)=>{const n=t?.id||T1++;return cr.addToast({title:e,...t,id:n}),n},yU=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",xU=vU,bU=()=>cr.toasts,wU=()=>cr.getActiveToasts(),He=Object.assign(xU,{success:cr.success,info:cr.info,warning:cr.warning,error:cr.error,custom:cr.custom,message:cr.message,promise:cr.promise,dismiss:cr.dismiss,loading:cr.loading},{getHistory:bU,getToasts:wU});mU("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function SU(){const[,e]=$9("/product/:id"),[,t]=It(),n=Fu.find(x=>x.id===e?.id),[r,i]=T.useState(1),[s,l]=T.useState([]),[u,d]=T.useState("ao-ponto");if(!n)return m.jsx("div",{"data-loc":"client/src/pages/ProductDetail.tsx:21",children:"Produto não encontrado"});const f=[{id:"bacon",name:"Bacon Extra",price:4},{id:"cheese",name:"Queijo Extra",price:3.5},{id:"sauce",name:"Molho Especial",price:2}],p=x=>{l(A=>A.includes(x)?A.filter(w=>w!==x):[...A,x])},g=(n.price+s.reduce((x,A)=>{const w=f.find(S=>S.id===A);return x+(w?.price||0)},0))*r,v=()=>{const x=localStorage.getItem("dogmelina_cart"),A=x?JSON.parse(x):[],w={...n,quantity:r,extras:s.map(S=>f.find(O=>O.id===S)?.name),totalPrice:g};A.push(w),localStorage.setItem("dogmelina_cart",JSON.stringify(A)),He.success(`Adicionado ao carrinho: ${r}x ${n.name}`),setTimeout(()=>t("/cart"),500)};return m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:63",className:"min-h-screen bg-background pb-24 max-w-md mx-auto relative shadow-2xl",children:[m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:65",className:"relative h-72 w-full",children:[m.jsx("img",{"data-loc":"client/src/pages/ProductDetail.tsx:66",src:n.image,alt:n.name,className:"w-full h-full object-cover"}),m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:67",className:"absolute top-0 left-0 right-0 p-6 flex justify-between items-start bg-gradient-to-b from-black/60 to-transparent",children:[m.jsx("button",{"data-loc":"client/src/pages/ProductDetail.tsx:68",onClick:()=>window.history.back(),className:"w-10 h-10 rounded-full bg-white/20 backdrop-blur-md flex items-center justify-center text-white hover:bg-white/30 transition-colors",children:m.jsx(Kn,{"data-loc":"client/src/pages/ProductDetail.tsx:72",size:20})}),m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:74",className:"flex gap-3",children:[m.jsx("button",{"data-loc":"client/src/pages/ProductDetail.tsx:75",className:"w-10 h-10 rounded-full bg-white/20 backdrop-blur-md flex items-center justify-center text-white hover:bg-white/30 transition-colors",children:m.jsx(J9,{"data-loc":"client/src/pages/ProductDetail.tsx:76",size:20})}),m.jsx("button",{"data-loc":"client/src/pages/ProductDetail.tsx:78",className:"w-10 h-10 rounded-full bg-white/20 backdrop-blur-md flex items-center justify-center text-white hover:bg-white/30 transition-colors",children:m.jsx($3,{"data-loc":"client/src/pages/ProductDetail.tsx:79",size:20})})]})]})]}),m.jsx("div",{"data-loc":"client/src/pages/ProductDetail.tsx:86",className:"px-6 -mt-8 relative z-10",children:m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:87",className:"bg-card rounded-3xl p-6 shadow-lg border border-border/50",children:[m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:88",className:"flex justify-between items-start mb-2",children:[m.jsx("h1",{"data-loc":"client/src/pages/ProductDetail.tsx:89",className:"text-2xl font-bold text-foreground w-3/4 leading-tight",children:n.name}),m.jsx("div",{"data-loc":"client/src/pages/ProductDetail.tsx:90",className:"flex flex-col items-end",children:m.jsx("span",{"data-loc":"client/src/pages/ProductDetail.tsx:91",className:"text-xl font-bold text-primary",children:new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(n.price)})})]}),m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:97",className:"flex items-center gap-4 mb-4 text-sm text-muted-foreground",children:[m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:98",className:"flex items-center gap-1",children:[m.jsx(fl,{"data-loc":"client/src/pages/ProductDetail.tsx:99",size:14}),m.jsx("span",{"data-loc":"client/src/pages/ProductDetail.tsx:100",children:"20-30 min"})]}),m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:102",className:"flex items-center gap-1",children:[m.jsx(Uu,{"data-loc":"client/src/pages/ProductDetail.tsx:103",size:14,className:"fill-yellow-400 text-yellow-400"}),m.jsxs("span",{"data-loc":"client/src/pages/ProductDetail.tsx:104",children:[n.rating," (120+)"]})]})]}),m.jsx("p",{"data-loc":"client/src/pages/ProductDetail.tsx:108",className:"text-muted-foreground leading-relaxed text-sm mb-6",children:n.description}),n.category==="burgers"&&m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:114",className:"mb-6",children:[m.jsx("h3",{"data-loc":"client/src/pages/ProductDetail.tsx:115",className:"font-bold text-foreground mb-3",children:"Ponto da Carne"}),m.jsx(s5,{"data-loc":"client/src/pages/ProductDetail.tsx:116",value:u,onValueChange:d,className:"flex flex-col gap-3",children:["mal-passado","ao-ponto","bem-passado"].map(x=>m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:118",className:"flex items-center space-x-2 border border-border rounded-xl p-3 has-[[data-state=checked]]:border-primary has-[[data-state=checked]]:bg-primary/5 transition-all",children:[m.jsx(l5,{"data-loc":"client/src/pages/ProductDetail.tsx:119",value:x,id:x}),m.jsx(Dt,{"data-loc":"client/src/pages/ProductDetail.tsx:120",htmlFor:x,className:"flex-1 cursor-pointer capitalize font-medium",children:x.replace("-"," ")})]},x))})]}),m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:130",className:"mb-6",children:[m.jsx("h3",{"data-loc":"client/src/pages/ProductDetail.tsx:131",className:"font-bold text-foreground mb-3",children:"Adicionais"}),m.jsx("div",{"data-loc":"client/src/pages/ProductDetail.tsx:132",className:"flex flex-col gap-3",children:f.map(x=>m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:134",className:"flex items-center justify-between border border-border rounded-xl p-3",children:[m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:135",className:"flex items-center gap-3",children:[m.jsx(qV,{"data-loc":"client/src/pages/ProductDetail.tsx:136",id:x.id,checked:s.includes(x.id),onCheckedChange:()=>p(x.id)}),m.jsx(Dt,{"data-loc":"client/src/pages/ProductDetail.tsx:141",htmlFor:x.id,className:"font-medium cursor-pointer",children:x.name})]}),m.jsxs("span",{"data-loc":"client/src/pages/ProductDetail.tsx:143",className:"text-sm font-semibold text-primary",children:["+ ",new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(x.price)]})]},x.id))})]}),m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:152",className:"mb-6",children:[m.jsx("h3",{"data-loc":"client/src/pages/ProductDetail.tsx:153",className:"font-bold text-foreground mb-3",children:"Observações"}),m.jsx(pU,{"data-loc":"client/src/pages/ProductDetail.tsx:154",placeholder:"Ex: Tirar a cebola, caprichar no molho...",className:"resize-none bg-secondary/30 border-border focus:ring-primary"})]})]})}),m.jsx("div",{"data-loc":"client/src/pages/ProductDetail.tsx:163",className:"fixed bottom-0 left-0 right-0 bg-white border-t border-border p-4 pb-safe z-50 max-w-md mx-auto",children:m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:164",className:"flex items-center gap-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:165",className:"flex items-center gap-3 bg-secondary rounded-xl px-3 py-2 h-12",children:[m.jsx("button",{"data-loc":"client/src/pages/ProductDetail.tsx:166",onClick:()=>i(Math.max(1,r-1)),className:"w-8 h-8 rounded-lg bg-white flex items-center justify-center text-foreground shadow-sm active:scale-95 transition-transform",disabled:r<=1,children:m.jsx(R3,{"data-loc":"client/src/pages/ProductDetail.tsx:171",size:16})}),m.jsx("span",{"data-loc":"client/src/pages/ProductDetail.tsx:173",className:"font-bold w-4 text-center",children:r}),m.jsx("button",{"data-loc":"client/src/pages/ProductDetail.tsx:174",onClick:()=>i(r+1),className:"w-8 h-8 rounded-lg bg-primary text-white flex items-center justify-center shadow-sm active:scale-95 transition-transform",children:m.jsx(Pa,{"data-loc":"client/src/pages/ProductDetail.tsx:178",size:16})})]}),m.jsxs(ye,{"data-loc":"client/src/pages/ProductDetail.tsx:182",className:"flex-1 h-12 rounded-xl text-base font-bold shadow-lg shadow-primary/20",onClick:v,children:[m.jsx("span",{"data-loc":"client/src/pages/ProductDetail.tsx:186",className:"mr-auto",children:"Adicionar"}),m.jsx("span",{"data-loc":"client/src/pages/ProductDetail.tsx:187",children:new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(g)})]})]})})]})}var AU="Separator",nE="horizontal",jU=["horizontal","vertical"],c5=T.forwardRef((e,t)=>{const{decorative:n,orientation:r=nE,...i}=e,s=OU(r)?r:nE,u=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return m.jsx(Ze.div,{"data-orientation":s,...u,...i,ref:t})});c5.displayName=AU;function OU(e){return jU.includes(e)}var TU=c5;function u5({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return m.jsx(TU,{"data-loc":"client/src/components/ui/separator.tsx:13","data-slot":"separator",decorative:n,orientation:t,className:Be("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}function CU(){const[,e]=It(),[t,n]=T.useState(()=>{const u=localStorage.getItem("dogmelina_cart");return u?JSON.parse(u):[]});T.useEffect(()=>{localStorage.setItem("dogmelina_cart",JSON.stringify(t))},[t]);const r=t.reduce((u,d)=>u+d.price*d.quantity,0),i=t.length>0?5:0,s=r+i,l=u=>{const d=[...t];d.splice(u,1),n(d)};return m.jsx(bo,{"data-loc":"client/src/pages/Cart.tsx:33",showBottomNav:!1,children:m.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:34",className:"bg-background min-h-screen flex flex-col",children:[m.jsxs("header",{"data-loc":"client/src/pages/Cart.tsx:36",className:"px-6 py-4 flex items-center gap-4 sticky top-0 bg-background/80 backdrop-blur-md z-10 border-b border-border/50",children:[m.jsx(_s,{"data-loc":"client/src/pages/Cart.tsx:37",href:"/",children:m.jsx("button",{"data-loc":"client/src/pages/Cart.tsx:38",className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center hover:bg-secondary/80 transition-colors",children:m.jsx(Kn,{"data-loc":"client/src/pages/Cart.tsx:39",size:20})})}),m.jsx("h1",{"data-loc":"client/src/pages/Cart.tsx:42",className:"text-xl font-bold",children:"Seu Carrinho"})]}),m.jsx("div",{"data-loc":"client/src/pages/Cart.tsx:45",className:"flex-1 px-6 py-6",children:t.length===0?m.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:47",className:"flex flex-col items-center justify-center py-20 text-center",children:[m.jsx("div",{"data-loc":"client/src/pages/Cart.tsx:48",className:"w-20 h-20 rounded-full bg-secondary flex items-center justify-center text-muted-foreground mb-4",children:m.jsx(Vu,{"data-loc":"client/src/pages/Cart.tsx:49",size:40})}),m.jsx("h2",{"data-loc":"client/src/pages/Cart.tsx:51",className:"text-xl font-bold mb-2",children:"Seu carrinho está vazio"}),m.jsx("p",{"data-loc":"client/src/pages/Cart.tsx:52",className:"text-muted-foreground mb-8",children:"Que tal adicionar alguns lanches deliciosos?"}),m.jsx(ye,{"data-loc":"client/src/pages/Cart.tsx:53",onClick:()=>e("/menu"),className:"rounded-xl px-8",children:"Ver Cardápio"})]}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:60",className:"bg-primary/5 border border-primary/20 rounded-2xl p-4 mb-6 flex items-center justify-between cursor-pointer hover:bg-primary/10 transition-colors",children:[m.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:61",className:"flex items-center gap-3",children:[m.jsx("div",{"data-loc":"client/src/pages/Cart.tsx:62",className:"w-10 h-10 rounded-full bg-primary/20 flex items-center justify-center text-primary",children:m.jsx(mr,{"data-loc":"client/src/pages/Cart.tsx:63",size:20})}),m.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:65",children:[m.jsx("p",{"data-loc":"client/src/pages/Cart.tsx:66",className:"text-xs text-muted-foreground font-medium",children:"Entregar em"}),m.jsx("p",{"data-loc":"client/src/pages/Cart.tsx:67",className:"text-sm font-bold text-foreground",children:"Casa (Rua das Flores, 123)"})]})]}),m.jsx(qu,{"data-loc":"client/src/pages/Cart.tsx:70",size:16,className:"text-muted-foreground"})]}),m.jsx("div",{"data-loc":"client/src/pages/Cart.tsx:74",className:"flex flex-col gap-4 mb-8",children:t.map((u,d)=>m.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:76",className:"flex gap-4 bg-card p-3 rounded-2xl border border-border shadow-sm",children:[m.jsx("div",{"data-loc":"client/src/pages/Cart.tsx:77",className:"w-20 h-20 rounded-xl bg-secondary overflow-hidden flex-shrink-0",children:m.jsx("img",{"data-loc":"client/src/pages/Cart.tsx:78",src:u.image,alt:u.name,className:"w-full h-full object-cover"})}),m.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:80",className:"flex-1 flex flex-col justify-between",children:[m.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:81",className:"flex justify-between items-start",children:[m.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:82",children:[m.jsx("h4",{"data-loc":"client/src/pages/Cart.tsx:83",className:"font-bold text-sm line-clamp-1",children:u.name}),u.extras&&u.extras.length>0&&m.jsxs("p",{"data-loc":"client/src/pages/Cart.tsx:85",className:"text-xs text-muted-foreground mt-1",children:["+ ",u.extras.join(", ")]})]}),m.jsx("button",{"data-loc":"client/src/pages/Cart.tsx:90",onClick:()=>l(d),className:"text-muted-foreground hover:text-destructive transition-colors p-1",children:m.jsx(Hu,{"data-loc":"client/src/pages/Cart.tsx:94",size:16})})]}),m.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:97",className:"flex justify-between items-end mt-2",children:[m.jsxs("span",{"data-loc":"client/src/pages/Cart.tsx:98",className:"text-xs font-bold bg-secondary px-2 py-1 rounded-md text-muted-foreground",children:[u.quantity,"x"]}),m.jsx("span",{"data-loc":"client/src/pages/Cart.tsx:101",className:"font-bold text-primary",children:new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(u.price*u.quantity)})]})]})]},`${u.id}-${d}`))}),m.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:111",className:"bg-card rounded-2xl p-6 border border-border shadow-sm mb-24",children:[m.jsx("h3",{"data-loc":"client/src/pages/Cart.tsx:112",className:"font-bold mb-4",children:"Resumo do Pedido"}),m.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:113",className:"space-y-3 text-sm",children:[m.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:114",className:"flex justify-between text-muted-foreground",children:[m.jsx("span",{"data-loc":"client/src/pages/Cart.tsx:115",children:"Subtotal"}),m.jsx("span",{"data-loc":"client/src/pages/Cart.tsx:116",children:new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(r)})]}),m.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:118",className:"flex justify-between text-muted-foreground",children:[m.jsx("span",{"data-loc":"client/src/pages/Cart.tsx:119",children:"Taxa de entrega"}),m.jsx("span",{"data-loc":"client/src/pages/Cart.tsx:120",children:new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(i)})]}),m.jsx(u5,{"data-loc":"client/src/pages/Cart.tsx:122",className:"my-2"}),m.jsxs("div",{"data-loc":"client/src/pages/Cart.tsx:123",className:"flex justify-between font-bold text-lg text-foreground",children:[m.jsx("span",{"data-loc":"client/src/pages/Cart.tsx:124",children:"Total"}),m.jsx("span",{"data-loc":"client/src/pages/Cart.tsx:125",children:new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(s)})]})]})]})]})}),t.length>0&&m.jsx("div",{"data-loc":"client/src/pages/Cart.tsx:135",className:"fixed bottom-0 left-0 right-0 bg-white border-t border-border p-4 pb-safe z-50 max-w-md mx-auto",children:m.jsx(ye,{"data-loc":"client/src/pages/Cart.tsx:136",className:"w-full h-14 rounded-xl text-lg font-bold shadow-lg shadow-primary/20",onClick:()=>e("/checkout"),children:"Finalizar Pedido"})})]})})}const Gv=[{name:"Centro",fee:5},{name:"Vila Nova",fee:7},{name:"Jardim América",fee:8},{name:"Industrial",fee:10},{name:"Santa Marta",fee:6}];function EU(){const[,e]=It(),[t,n]=T.useState(!1),[r,i]=T.useState(!1),[s,l]=T.useState(""),[u,d]=T.useState(""),[f,p]=T.useState(""),[g,v]=T.useState("pix"),[x,A]=T.useState({street:"",number:"",neighborhood:Gv[0].name,complement:""}),[w,S]=T.useState(()=>{const P=localStorage.getItem("dogmelina_cart");return P?JSON.parse(P):[]}),O=w.reduce((P,D)=>P+D.price*D.quantity,0),E=Gv.find(P=>P.name===x.neighborhood)?.fee||0,j=O+E,N=()=>{if(!navigator.geolocation){He.error("GPS não suportado");return}i(!0),navigator.geolocation.getCurrentPosition(P=>{setTimeout(()=>{A({...x,street:"Rua Detectada via GPS",number:"S/N"}),i(!1),He.success("Localização aproximada obtida!")},1e3)},()=>{i(!1),He.error("Não foi possível obter localização via GPS")})},C=async()=>{if(!s||!u||!x.street||!x.number){He.error("Por favor, preencha todos os campos obrigatórios");return}n(!0);const P=localStorage.getItem("dogmelina_settings"),D=P?JSON.parse(P):{whatsapp:"5511999999999"},M=w.map(X=>`*${X.quantity}x ${X.name}* (R$ ${X.price.toFixed(2)})`).join(`
`),k=`*NOVO PEDIDO - DOG MELINA*

*Cliente:* ${s}
*Telefone:* ${u}

*Endereço:* ${x.street}, ${x.number}
*Bairro:* ${x.neighborhood}
${x.complement?`*Comp:* ${x.complement}
`:""}
*Itens:*
${M}

*Pagamento:* ${g.toUpperCase()}
*Subtotal:* R$ ${O.toFixed(2)}
*Taxa:* R$ ${E.toFixed(2)}
*TOTAL: R$ ${j.toFixed(2)}*

${f?`*Obs:* ${f}`:""}`,q={id:`DM-${Math.floor(1e3+Math.random()*9e3)}`,customerName:s,customerPhone:u,address:`${x.street}, ${x.number} - ${x.neighborhood}`,items:w,total:j,status:"novo",paymentMethod:g,createdAt:new Date().toISOString()},L=JSON.parse(localStorage.getItem("dogmelina_admin_orders")||"[]");localStorage.setItem("dogmelina_admin_orders",JSON.stringify([q,...L])),localStorage.removeItem("dogmelina_cart");const U=`https://wa.me/${D.whatsapp}?text=${encodeURIComponent(k)}`;window.open(U,"_blank"),setTimeout(()=>{e(`/order-confirmation?id=${q.id}`)},1e3)};return m.jsx(bo,{"data-loc":"client/src/pages/Checkout.tsx:130",showBottomNav:!1,children:m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:131",className:"bg-background min-h-screen flex flex-col",children:[m.jsxs("header",{"data-loc":"client/src/pages/Checkout.tsx:132",className:"px-6 py-4 flex items-center gap-4 sticky top-0 bg-background/80 backdrop-blur-md z-10 border-b border-border/50",children:[m.jsx("button",{"data-loc":"client/src/pages/Checkout.tsx:133",onClick:()=>window.history.back(),className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center",children:m.jsx(Kn,{"data-loc":"client/src/pages/Checkout.tsx:133",size:20})}),m.jsx("h1",{"data-loc":"client/src/pages/Checkout.tsx:134",className:"text-xl font-bold",children:"Finalizar Pedido"})]}),m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:137",className:"flex-1 px-6 py-6 pb-32",children:[m.jsxs("section",{"data-loc":"client/src/pages/Checkout.tsx:139",className:"mb-8 space-y-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:140",className:"flex items-center gap-2 mb-2",children:[m.jsx(ks,{"data-loc":"client/src/pages/Checkout.tsx:141",size:20,className:"text-primary"}),m.jsx("h3",{"data-loc":"client/src/pages/Checkout.tsx:142",className:"font-bold text-lg",children:"Seus Dados"})]}),m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:144",className:"grid gap-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:145",children:[m.jsx(Dt,{"data-loc":"client/src/pages/Checkout.tsx:146",className:"text-xs font-bold mb-1 block",children:"Nome Completo *"}),m.jsx(Ue,{"data-loc":"client/src/pages/Checkout.tsx:147",value:s,onChange:P=>l(P.target.value),placeholder:"Como te chamamos?",className:"h-12 rounded-xl bg-secondary/30"})]}),m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:149",children:[m.jsx(Dt,{"data-loc":"client/src/pages/Checkout.tsx:150",className:"text-xs font-bold mb-1 block",children:"WhatsApp *"}),m.jsx(Ue,{"data-loc":"client/src/pages/Checkout.tsx:151",value:u,onChange:P=>d(P.target.value),placeholder:"(00) 00000-0000",className:"h-12 rounded-xl bg-secondary/30"})]})]})]}),m.jsxs("section",{"data-loc":"client/src/pages/Checkout.tsx:157",className:"mb-8 space-y-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:158",className:"flex items-center justify-between mb-2",children:[m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:159",className:"flex items-center gap-2",children:[m.jsx(mr,{"data-loc":"client/src/pages/Checkout.tsx:160",size:20,className:"text-primary"}),m.jsx("h3",{"data-loc":"client/src/pages/Checkout.tsx:161",className:"font-bold text-lg",children:"Endereço de Entrega"})]}),m.jsxs(ye,{"data-loc":"client/src/pages/Checkout.tsx:163",variant:"ghost",size:"sm",onClick:N,className:"text-primary text-xs gap-1",disabled:r,children:[r?m.jsx(D3,{"data-loc":"client/src/pages/Checkout.tsx:164",size:14,className:"animate-spin"}):m.jsx(SS,{"data-loc":"client/src/pages/Checkout.tsx:164",size:14}),"GPS"]})]}),m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:169",className:"grid grid-cols-4 gap-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:170",className:"col-span-3",children:[m.jsx(Dt,{"data-loc":"client/src/pages/Checkout.tsx:171",className:"text-xs font-bold mb-1 block",children:"Rua *"}),m.jsx(Ue,{"data-loc":"client/src/pages/Checkout.tsx:172",value:x.street,onChange:P=>A({...x,street:P.target.value}),placeholder:"Nome da rua",className:"h-12 rounded-xl bg-secondary/30"})]}),m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:174",className:"col-span-1",children:[m.jsx(Dt,{"data-loc":"client/src/pages/Checkout.tsx:175",className:"text-xs font-bold mb-1 block",children:"Nº *"}),m.jsx(Ue,{"data-loc":"client/src/pages/Checkout.tsx:176",value:x.number,onChange:P=>A({...x,number:P.target.value}),placeholder:"123",className:"h-12 rounded-xl bg-secondary/30"})]}),m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:178",className:"col-span-2",children:[m.jsx(Dt,{"data-loc":"client/src/pages/Checkout.tsx:179",className:"text-xs font-bold mb-1 block",children:"Bairro *"}),m.jsx("select",{"data-loc":"client/src/pages/Checkout.tsx:180",value:x.neighborhood,onChange:P=>A({...x,neighborhood:P.target.value}),className:"w-full h-12 rounded-xl bg-secondary/30 border border-border px-3 text-sm",children:Gv.map(P=>m.jsxs("option",{"data-loc":"client/src/pages/Checkout.tsx:185",value:P.name,children:[P.name," (R$ ",P.fee.toFixed(2),")"]},P.name))})]}),m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:188",className:"col-span-2",children:[m.jsx(Dt,{"data-loc":"client/src/pages/Checkout.tsx:189",className:"text-xs font-bold mb-1 block",children:"Complemento"}),m.jsx(Ue,{"data-loc":"client/src/pages/Checkout.tsx:190",value:x.complement,onChange:P=>A({...x,complement:P.target.value}),placeholder:"Apto, Bloco...",className:"h-12 rounded-xl bg-secondary/30"})]})]})]}),m.jsxs("section",{"data-loc":"client/src/pages/Checkout.tsx:196",className:"mb-8",children:[m.jsx("h3",{"data-loc":"client/src/pages/Checkout.tsx:197",className:"font-bold text-lg mb-4",children:"Forma de Pagamento"}),m.jsx(s5,{"data-loc":"client/src/pages/Checkout.tsx:198",value:g,onValueChange:P=>v(P),className:"grid gap-3",children:["pix","dinheiro","cartao"].map(P=>m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:200",className:"flex items-center gap-3 border border-border rounded-xl p-4 has-[[data-state=checked]]:border-primary has-[[data-state=checked]]:bg-primary/5 transition-all cursor-pointer",children:[m.jsx(l5,{"data-loc":"client/src/pages/Checkout.tsx:201",value:P,id:P}),m.jsx(Dt,{"data-loc":"client/src/pages/Checkout.tsx:202",htmlFor:P,className:"flex-1 cursor-pointer font-bold capitalize",children:P})]},P))})]}),m.jsxs("section",{"data-loc":"client/src/pages/Checkout.tsx:209",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[m.jsx("h3",{"data-loc":"client/src/pages/Checkout.tsx:210",className:"font-bold mb-4",children:"Resumo"}),m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:211",className:"space-y-2 text-sm",children:[m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:212",className:"flex justify-between text-muted-foreground",children:[m.jsx("span",{"data-loc":"client/src/pages/Checkout.tsx:212",children:"Subtotal"}),m.jsxs("span",{"data-loc":"client/src/pages/Checkout.tsx:212",children:["R$ ",O.toFixed(2)]})]}),m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:213",className:"flex justify-between text-muted-foreground",children:[m.jsxs("span",{"data-loc":"client/src/pages/Checkout.tsx:213",children:["Taxa (",x.neighborhood,")"]}),m.jsxs("span",{"data-loc":"client/src/pages/Checkout.tsx:213",children:["R$ ",E.toFixed(2)]})]}),m.jsx(u5,{"data-loc":"client/src/pages/Checkout.tsx:214",className:"my-2"}),m.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:215",className:"flex justify-between font-bold text-lg",children:[m.jsx("span",{"data-loc":"client/src/pages/Checkout.tsx:215",children:"Total"}),m.jsxs("span",{"data-loc":"client/src/pages/Checkout.tsx:215",className:"text-primary",children:["R$ ",j.toFixed(2)]})]})]})]})]}),m.jsx("div",{"data-loc":"client/src/pages/Checkout.tsx:220",className:"fixed bottom-0 left-0 right-0 bg-white border-t border-border p-4 pb-safe z-50 max-w-md mx-auto",children:m.jsx(ye,{"data-loc":"client/src/pages/Checkout.tsx:221",className:"w-full h-14 rounded-xl text-lg font-bold shadow-lg",onClick:C,disabled:t,children:t?"Enviando...":"Enviar Pedido no WhatsApp"})})]})})}const _U=D4("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function xn({className:e,variant:t,asChild:n=!1,...r}){const i=n?J3:"span";return m.jsx(i,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:Be(_U({variant:t}),e),...r})}function PU(){const e=Date.now().toString();return`00020126580014br.gov.bcb.pix0136${Math.random().toString(36).substring(2,15).padEnd(36,"0")}5204000053039865802BR5913BURGER${e.slice(-4)}6009SAO PAULO62410503***63047D91`}function NU(){return"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 200%22%3E%3Crect fill=%22white%22 width=%22200%22 height=%22200%22/%3E%3Crect fill=%22black%22 x=%2220%22 y=%2220%22 width=%2260%22 height=%2260%22/%3E%3Crect fill=%22black%22 x=%22120%22 y=%2220%22 width=%2260%22 height=%2260%22/%3E%3Crect fill=%22black%22 x=%2220%22 y=%22120%22 width=%2260%22 height=%2260%22/%3E%3Crect fill=%22black%22 x=%2250%22 y=%2250%22 width=%2220%22 height=%2220%22/%3E%3Crect fill=%22black%22 x=%22130%22 y=%2250%22 width=%2220%22 height=%2220%22/%3E%3Crect fill=%22black%22 x=%2250%22 y=%22130%22 width=%2220%22 height=%2220%22/%3E%3C/svg%3E"}function rE(e,t){const n=e.items.map(i=>`• ${i.quantity}x ${i.name} - R$ ${i.price.toFixed(2)}`).join(`
`);let r=`Olá! 👋

Seu pedido foi recebido! 🍔

*Número do Pedido:* #${e.id}

*Itens:*
${n}

*Subtotal:* R$ ${(e.total-5).toFixed(2)}
*Taxa de Entrega:* R$ 5,00
*Total:* R$ ${e.total.toFixed(2)}

*Endereço de Entrega:*
${e.address}

`;return e.paymentMethod==="pix"&&t?r+=`*Forma de Pagamento:* PIX
*Código PIX:* \`${t.substring(0,20)}...\`

`:e.paymentMethod==="dinheiro"?r+=`*Forma de Pagamento:* DINHEIRO
Pagamento na entrega

`:e.paymentMethod==="cartao"&&(r+=`*Forma de Pagamento:* CARTÃO
Pagamento na entrega

`),r+=`Tempo estimado: 30-40 minutos ⏱️

Obrigado por pedir com a gente! 🙏`,r}function DU(e,t){const n=encodeURIComponent(t);return`https://wa.me/${e.replace(/\D/g,"")}?text=${n}`}function MU(e){const t=`ORD-${Date.now()}-${Math.random().toString(36).substring(2,9).toUpperCase()}`,n=new Date;return n.setMinutes(n.getMinutes()+15),{orderId:t,pixCode:PU(),pixQrCode:NU(),amount:e,expiresAt:n}}function RU(e){const t=new Date,n=e.getTime()-t.getTime();if(n<=0)return"Expirado";const r=Math.floor(n/6e4),i=Math.floor(n%6e4/1e3);return`${r}:${i.toString().padStart(2,"0")}`}function kU(){It();const e=new URLSearchParams(window.location.search),t=e.get("method")||"pix";decodeURIComponent(e.get("name")||"Cliente");const n=decodeURIComponent(e.get("phone")||""),[r,i]=T.useState(MU(43.9)),[s,l]=T.useState(!1),[u,d]=T.useState("15:00"),[f,p]=T.useState(!1),g={id:r.orderId,items:[{name:"Double Bacon Master",quantity:1,price:38.9},{name:"Coca-Cola Gelada",quantity:2,price:6.9}],total:43.9,address:"Rua das Flores, 123 - Apto 45, São Paulo, SP",paymentMethod:t};T.useEffect(()=>{const w=setInterval(()=>{d(RU(r.expiresAt))},1e3);return()=>clearInterval(w)},[r.expiresAt]);const v=()=>{navigator.clipboard.writeText(r.pixCode),l(!0),He.success("Código Pix copiado!"),setTimeout(()=>l(!1),2e3)},x=()=>{const w=rE(g,r.pixCode),S=DU(n,w);window.open(S,"_blank")},A=async()=>{const w=rE(g,r.pixCode);if(navigator.share)try{await navigator.share({title:"Meu Pedido - Burger Delivery",text:w})}catch{console.log("Compartilhamento cancelado")}else v(),He.success("Compartilhe manualmente via WhatsApp ou e-mail")};return m.jsx(bo,{"data-loc":"client/src/pages/OrderConfirmation.tsx:92",showBottomNav:!1,children:m.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:93",className:"bg-background min-h-screen flex flex-col pb-8",children:[m.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:95",className:"px-6 py-8 text-center",children:[m.jsx("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:96",className:"w-16 h-16 rounded-full bg-accent/20 flex items-center justify-center mx-auto mb-4",children:m.jsx(h1,{"data-loc":"client/src/pages/OrderConfirmation.tsx:97",className:"w-8 h-8 text-accent",strokeWidth:3})}),m.jsx("h1",{"data-loc":"client/src/pages/OrderConfirmation.tsx:99",className:"text-2xl font-bold text-foreground mb-2",children:"Pedido Confirmado! 🎉"}),m.jsx("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:100",className:"text-muted-foreground",children:"Seu pedido foi recebido com sucesso"}),m.jsxs(xn,{"data-loc":"client/src/pages/OrderConfirmation.tsx:101",className:"mt-4 bg-primary/20 text-primary border-none",children:["#",r.orderId]})]}),m.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:106",className:"px-6 space-y-6",children:[t==="pix"&&m.jsxs("section",{"data-loc":"client/src/pages/OrderConfirmation.tsx:109",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[m.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:110",className:"flex items-center justify-between mb-4",children:[m.jsx("h3",{"data-loc":"client/src/pages/OrderConfirmation.tsx:111",className:"font-bold text-lg",children:"Pagamento via PIX"}),m.jsxs(xn,{"data-loc":"client/src/pages/OrderConfirmation.tsx:112",className:"bg-yellow-100 text-yellow-800 border-none text-xs",children:["⏱️ ",u]})]}),m.jsx("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:117",className:"text-sm text-muted-foreground mb-4",children:"Escaneie o QR Code ou copie o código abaixo para fazer o pagamento."}),m.jsxs("button",{"data-loc":"client/src/pages/OrderConfirmation.tsx:122",onClick:()=>p(!f),className:"w-full mb-4 p-4 border-2 border-dashed border-border rounded-xl hover:border-primary/50 transition-colors flex items-center justify-center gap-2 text-primary font-medium",children:[m.jsx(AS,{"data-loc":"client/src/pages/OrderConfirmation.tsx:126",size:20}),f?"Ocultar QR Code":"Mostrar QR Code"]}),f&&m.jsx("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:131",className:"flex justify-center mb-4 p-4 bg-secondary/30 rounded-xl",children:m.jsx("img",{"data-loc":"client/src/pages/OrderConfirmation.tsx:132",src:r.pixQrCode,alt:"QR Code Pix",className:"w-40 h-40"})}),m.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:141",className:"bg-secondary/30 rounded-xl p-4 mb-4",children:[m.jsx("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:142",className:"text-xs text-muted-foreground font-medium mb-2",children:"Código PIX (Cópia e Cola)"}),m.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:143",className:"flex items-center gap-2",children:[m.jsxs("code",{"data-loc":"client/src/pages/OrderConfirmation.tsx:144",className:"flex-1 text-xs font-mono break-all text-foreground",children:[r.pixCode.substring(0,50),"..."]}),m.jsx("button",{"data-loc":"client/src/pages/OrderConfirmation.tsx:147",onClick:v,className:"flex-shrink-0 w-10 h-10 rounded-lg bg-primary text-white flex items-center justify-center hover:bg-primary/90 transition-colors",children:s?m.jsx(h1,{"data-loc":"client/src/pages/OrderConfirmation.tsx:151",size:16}):m.jsx(Z9,{"data-loc":"client/src/pages/OrderConfirmation.tsx:151",size:16})})]})]}),m.jsxs("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:156",className:"text-xs text-muted-foreground text-center",children:["O código expira em ",u]})]}),t==="dinheiro"&&m.jsxs("section",{"data-loc":"client/src/pages/OrderConfirmation.tsx:164",className:"bg-yellow-50 border border-yellow-200 rounded-2xl p-6",children:[m.jsx("h3",{"data-loc":"client/src/pages/OrderConfirmation.tsx:165",className:"font-bold text-lg text-yellow-900 mb-2",children:"Pagamento em Dinheiro"}),m.jsxs("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:166",className:"text-sm text-yellow-800",children:["Você pagará o valor de ",m.jsx("span",{"data-loc":"client/src/pages/OrderConfirmation.tsx:167",className:"font-bold",children:"R$ 43,90"})," ao receber o pedido."]})]}),t==="cartao"&&m.jsxs("section",{"data-loc":"client/src/pages/OrderConfirmation.tsx:173",className:"bg-blue-50 border border-blue-200 rounded-2xl p-6",children:[m.jsx("h3",{"data-loc":"client/src/pages/OrderConfirmation.tsx:174",className:"font-bold text-lg text-blue-900 mb-2",children:"Pagamento com Cartão"}),m.jsxs("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:175",className:"text-sm text-blue-800",children:["Você pagará o valor de ",m.jsx("span",{"data-loc":"client/src/pages/OrderConfirmation.tsx:176",className:"font-bold",children:"R$ 43,90"})," com cartão na entrega."]})]}),m.jsxs("section",{"data-loc":"client/src/pages/OrderConfirmation.tsx:182",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[m.jsx("h3",{"data-loc":"client/src/pages/OrderConfirmation.tsx:183",className:"font-bold text-lg mb-4",children:"Detalhes do Pedido"}),m.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:185",className:"space-y-3 mb-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:186",className:"flex items-center gap-3",children:[m.jsx(fl,{"data-loc":"client/src/pages/OrderConfirmation.tsx:187",size:18,className:"text-primary"}),m.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:188",children:[m.jsx("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:189",className:"text-xs text-muted-foreground",children:"Tempo de entrega"}),m.jsx("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:190",className:"font-bold",children:"30-40 minutos"})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:193",className:"flex items-center gap-3",children:[m.jsx(P3,{"data-loc":"client/src/pages/OrderConfirmation.tsx:194",size:18,className:"text-primary"}),m.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:195",children:[m.jsx("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:196",className:"text-xs text-muted-foreground",children:"Endereço"}),m.jsx("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:197",className:"font-bold text-sm",children:"Rua das Flores, 123 - Apto 45"})]})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:202",className:"bg-secondary/30 rounded-xl p-3 text-sm",children:[m.jsxs("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:203",className:"text-muted-foreground mb-2",children:["Subtotal: ",m.jsx("span",{"data-loc":"client/src/pages/OrderConfirmation.tsx:203",className:"font-bold text-foreground",children:"R$ 38,90"})]}),m.jsxs("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:204",className:"text-muted-foreground",children:["Taxa de entrega: ",m.jsx("span",{"data-loc":"client/src/pages/OrderConfirmation.tsx:204",className:"font-bold text-foreground",children:"R$ 5,00"})]}),m.jsxs("p",{"data-loc":"client/src/pages/OrderConfirmation.tsx:205",className:"text-muted-foreground mt-2 pt-2 border-t border-border",children:["Total: ",m.jsx("span",{"data-loc":"client/src/pages/OrderConfirmation.tsx:206",className:"font-bold text-primary text-base",children:"R$ 43,90"})]})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/OrderConfirmation.tsx:212",className:"space-y-3",children:[m.jsxs(ye,{"data-loc":"client/src/pages/OrderConfirmation.tsx:213",className:"w-full h-12 rounded-xl font-bold flex items-center justify-center gap-2 bg-primary hover:bg-primary/90 text-white",onClick:()=>window.location.href="/order-tracking",children:[m.jsx(ya,{"data-loc":"client/src/pages/OrderConfirmation.tsx:217",size:18}),"Rastrear Pedido em Tempo Real"]}),m.jsxs(ye,{"data-loc":"client/src/pages/OrderConfirmation.tsx:221",className:"w-full h-12 rounded-xl font-bold flex items-center justify-center gap-2 bg-green-600 hover:bg-green-700 text-white",onClick:x,children:[m.jsx(wS,{"data-loc":"client/src/pages/OrderConfirmation.tsx:225",size:18}),"Compartilhar no WhatsApp"]}),m.jsxs(ye,{"data-loc":"client/src/pages/OrderConfirmation.tsx:229",variant:"outline",className:"w-full h-12 rounded-xl font-bold flex items-center justify-center gap-2",onClick:A,children:[m.jsx($3,{"data-loc":"client/src/pages/OrderConfirmation.tsx:234",size:18}),"Compartilhar Pedido"]}),m.jsx(ye,{"data-loc":"client/src/pages/OrderConfirmation.tsx:238",variant:"outline",className:"w-full h-12 rounded-xl font-bold",onClick:()=>window.location.href="/",children:"Voltar ao Início"})]})]})]})})}const zU=void 0,LU="https://forge.butterfly-effect.dev",$U=`${LU}/v1/maps/proxy`;function BU(){return new Promise(e=>{const t=document.createElement("script");t.src=`${$U}/maps/api/js?key=${zU}&v=weekly&libraries=marker,places,geocoding,geometry`,t.async=!0,t.crossOrigin="anonymous",t.onload=()=>{e(null),t.remove()},t.onerror=()=>{console.error("Failed to load Google Maps script")},document.head.appendChild(t)})}function IU({className:e,initialCenter:t={lat:37.7749,lng:-122.4194},initialZoom:n=12,onMapReady:r}){const i=T.useRef(null),s=T.useRef(null),l=Rc(async()=>{if(await BU(),!i.current){console.error("Map container not found");return}s.current=new window.google.maps.Map(i.current,{zoom:n,center:t,mapTypeControl:!0,fullscreenControl:!0,zoomControl:!0,streetViewControl:!0,mapId:"DEMO_MAP_ID"}),r&&r(s.current)});return T.useEffect(()=>{l()},[l]),m.jsx("div",{"data-loc":"client/src/components/Map.tsx:153",ref:i,className:Be("w-full h-[500px]",e)})}const ci={lat:-23.5505,lng:-46.6333},Rf={lat:-23.5615,lng:-46.6553};function qU(){const[,e]=It(),[t,n]=T.useState("preparando"),[r,i]=T.useState(ci),s=T.useRef(null),l=T.useRef(null);T.useEffect(()=>{if(t==="preparando"){const d=setTimeout(()=>n("caminho"),5e3);return()=>clearTimeout(d)}if(t==="caminho"){let d=0;const f=100,p=setInterval(()=>{d++;const g=ci.lat+(Rf.lat-ci.lat)*(d/f),v=ci.lng+(Rf.lng-ci.lng)*(d/f);i({lat:g,lng:v}),d>=f&&(clearInterval(p),n("entregue"),He.success("Seu pedido chegou!"))},1e3);return()=>clearInterval(p)}},[t]);const u=d=>{s.current=d,new google.maps.marker.AdvancedMarkerElement({map:d,position:ci,title:"Dog Melina"}),new google.maps.marker.AdvancedMarkerElement({map:d,position:Rf,title:"Você"}),l.current=new google.maps.marker.AdvancedMarkerElement({map:d,position:r,title:"Entregador"});const f=new google.maps.LatLngBounds;f.extend(ci),f.extend(Rf),d.fitBounds(f)};return T.useEffect(()=>{l.current&&(l.current.position=r)},[r]),m.jsx(bo,{"data-loc":"client/src/pages/OrderTracking.tsx:98",showBottomNav:!1,children:m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:99",className:"flex flex-col h-screen bg-background",children:[m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:101",className:"px-6 py-4 flex items-center gap-4 bg-background border-b border-border sticky top-0 z-20",children:[m.jsx("button",{"data-loc":"client/src/pages/OrderTracking.tsx:102",onClick:()=>window.history.back(),className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center",children:m.jsx(C3,{"data-loc":"client/src/pages/OrderTracking.tsx:106",size:20})}),m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:108",children:[m.jsx("h1",{"data-loc":"client/src/pages/OrderTracking.tsx:109",className:"text-lg font-bold",children:"Rastrear Pedido"}),m.jsx("p",{"data-loc":"client/src/pages/OrderTracking.tsx:110",className:"text-xs text-muted-foreground",children:"Pedido #DM-9823"})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:115",className:"flex-1 relative",children:[m.jsx(IU,{"data-loc":"client/src/pages/OrderTracking.tsx:116",className:"w-full h-full",onMapReady:u,initialCenter:ci,initialZoom:14}),m.jsx("div",{"data-loc":"client/src/pages/OrderTracking.tsx:124",className:"absolute top-4 left-4 right-4",children:m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:125",className:"bg-white/90 backdrop-blur-md p-4 rounded-2xl shadow-lg border border-white/20",children:[m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:126",className:"flex items-center justify-between mb-3",children:[m.jsx(xn,{"data-loc":"client/src/pages/OrderTracking.tsx:127",className:kf("border-none px-3 py-1",t==="preparando"?"bg-yellow-100 text-yellow-700":t==="caminho"?"bg-blue-100 text-blue-700":"bg-green-100 text-green-700"),children:t==="preparando"?"Preparando seu pedido":t==="caminho"?"Pedido a caminho":"Pedido entregue"}),m.jsx("span",{"data-loc":"client/src/pages/OrderTracking.tsx:137",className:"text-sm font-bold text-primary",children:"15-20 min"})]}),m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:140",className:"flex justify-between relative px-2",children:[m.jsx("div",{"data-loc":"client/src/pages/OrderTracking.tsx:141",className:"absolute top-1/2 left-0 right-0 h-0.5 bg-muted -translate-y-1/2 z-0"}),m.jsx("div",{"data-loc":"client/src/pages/OrderTracking.tsx:142",className:kf("w-8 h-8 rounded-full flex items-center justify-center z-10 border-2",t!=="preparando"?"bg-primary border-primary text-white":"bg-white border-primary text-primary"),children:m.jsx(B3,{"data-loc":"client/src/pages/OrderTracking.tsx:143",size:16})}),m.jsx("div",{"data-loc":"client/src/pages/OrderTracking.tsx:145",className:kf("w-8 h-8 rounded-full flex items-center justify-center z-10 border-2",t==="entregue"?"bg-primary border-primary text-white":t==="caminho"?"bg-white border-primary text-primary":"bg-white border-muted text-muted"),children:m.jsx(ya,{"data-loc":"client/src/pages/OrderTracking.tsx:146",size:16})}),m.jsx("div",{"data-loc":"client/src/pages/OrderTracking.tsx:148",className:kf("w-8 h-8 rounded-full flex items-center justify-center z-10 border-2",t==="entregue"?"bg-primary border-primary text-white":"bg-white border-muted text-muted"),children:m.jsx(E3,{"data-loc":"client/src/pages/OrderTracking.tsx:149",size:16})})]})]})})]}),m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:157",className:"bg-card rounded-t-[32px] p-6 shadow-[0_-8px_30px_rgb(0,0,0,0.04)] border-t border-border",children:[m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:158",className:"flex items-center justify-between mb-6",children:[m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:159",className:"flex items-center gap-4",children:[m.jsx("div",{"data-loc":"client/src/pages/OrderTracking.tsx:160",className:"w-14 h-14 rounded-2xl bg-secondary overflow-hidden border-2 border-white shadow-sm",children:m.jsx("img",{"data-loc":"client/src/pages/OrderTracking.tsx:161",src:"https://api.dicebear.com/7.x/avataaars/svg?seed=Carlos",alt:"Entregador"})}),m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:163",children:[m.jsx("h3",{"data-loc":"client/src/pages/OrderTracking.tsx:164",className:"font-bold text-lg",children:"Carlos Silva"}),m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:165",className:"flex items-center gap-1 text-xs text-muted-foreground",children:[m.jsx(Uu,{"data-loc":"client/src/pages/OrderTracking.tsx:166",size:12,className:"fill-primary text-primary"}),m.jsx("span",{"data-loc":"client/src/pages/OrderTracking.tsx:167",className:"font-bold text-foreground",children:"4.9"}),m.jsx("span",{"data-loc":"client/src/pages/OrderTracking.tsx:168",children:"• Honda CG 160 (ABC-1234)"})]})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:172",className:"flex gap-2",children:[m.jsx("button",{"data-loc":"client/src/pages/OrderTracking.tsx:173",className:"w-12 h-12 rounded-xl bg-primary/10 text-primary flex items-center justify-center hover:bg-primary hover:text-white transition-colors",children:m.jsx(yp,{"data-loc":"client/src/pages/OrderTracking.tsx:174",size:20})}),m.jsx("button",{"data-loc":"client/src/pages/OrderTracking.tsx:176",className:"w-12 h-12 rounded-xl bg-primary/10 text-primary flex items-center justify-center hover:bg-primary hover:text-white transition-colors",children:m.jsx(wS,{"data-loc":"client/src/pages/OrderTracking.tsx:177",size:20})})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:182",className:"space-y-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:183",className:"flex items-start gap-3",children:[m.jsx("div",{"data-loc":"client/src/pages/OrderTracking.tsx:184",className:"w-8 h-8 rounded-full bg-secondary flex items-center justify-center flex-shrink-0",children:m.jsx(mr,{"data-loc":"client/src/pages/OrderTracking.tsx:185",size:16,className:"text-primary"})}),m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:187",children:[m.jsx("p",{"data-loc":"client/src/pages/OrderTracking.tsx:188",className:"text-xs text-muted-foreground",children:"Endereço de Entrega"}),m.jsx("p",{"data-loc":"client/src/pages/OrderTracking.tsx:189",className:"text-sm font-medium",children:"Rua das Flores, 123 - Apto 45, São Paulo"})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:192",className:"flex items-start gap-3",children:[m.jsx("div",{"data-loc":"client/src/pages/OrderTracking.tsx:193",className:"w-8 h-8 rounded-full bg-secondary flex items-center justify-center flex-shrink-0",children:m.jsx(fl,{"data-loc":"client/src/pages/OrderTracking.tsx:194",size:16,className:"text-primary"})}),m.jsxs("div",{"data-loc":"client/src/pages/OrderTracking.tsx:196",children:[m.jsx("p",{"data-loc":"client/src/pages/OrderTracking.tsx:197",className:"text-xs text-muted-foreground",children:"Previsão de Entrega"}),m.jsx("p",{"data-loc":"client/src/pages/OrderTracking.tsx:198",className:"text-sm font-medium",children:"Hoje, entre 20:45 e 21:00"})]})]})]}),m.jsx(ye,{"data-loc":"client/src/pages/OrderTracking.tsx:203",className:"w-full h-12 rounded-xl font-bold mt-6",onClick:()=>e("/"),children:"Voltar para a Loja"})]})]})})}function kf(...e){return e.filter(Boolean).join(" ")}var Op="Tabs",[VU]=Na(Op,[Ap]),d5=Ap(),[UU,RS]=VU(Op),f5=T.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:s,orientation:l="horizontal",dir:u,activationMode:d="automatic",...f}=e,p=Sp(u),[g,v]=gl({prop:r,onChange:i,defaultProp:s??"",caller:Op});return m.jsx(UU,{scope:n,baseId:Bc(),value:g,onValueChange:v,orientation:l,dir:p,activationMode:d,children:m.jsx(Ze.div,{dir:p,"data-orientation":l,...f,ref:t})})});f5.displayName=Op;var h5="TabsList",p5=T.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,s=RS(h5,n),l=d5(n);return m.jsx(K4,{asChild:!0,...l,orientation:s.orientation,dir:s.dir,loop:r,children:m.jsx(Ze.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:t})})});p5.displayName=h5;var m5="TabsTrigger",g5=T.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...s}=e,l=RS(m5,n),u=d5(n),d=x5(l.baseId,r),f=b5(l.baseId,r),p=r===l.value;return m.jsx(X4,{asChild:!0,...u,focusable:!i,active:p,children:m.jsx(Ze.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":f,"data-state":p?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:d,...s,ref:t,onMouseDown:et(e.onMouseDown,g=>{!i&&g.button===0&&g.ctrlKey===!1?l.onValueChange(r):g.preventDefault()}),onKeyDown:et(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&l.onValueChange(r)}),onFocus:et(e.onFocus,()=>{const g=l.activationMode!=="manual";!p&&!i&&g&&l.onValueChange(r)})})})});g5.displayName=m5;var v5="TabsContent",y5=T.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:s,...l}=e,u=RS(v5,n),d=x5(u.baseId,r),f=b5(u.baseId,r),p=r===u.value,g=T.useRef(p);return T.useEffect(()=>{const v=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(v)},[]),m.jsx(Pr,{present:i||p,children:({present:v})=>m.jsx(Ze.div,{"data-state":p?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":d,hidden:!v,id:f,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:v&&s})})});y5.displayName=v5;function x5(e,t){return`${e}-trigger-${t}`}function b5(e,t){return`${e}-content-${t}`}var HU=f5,FU=p5,GU=g5,KU=y5;function w5({className:e,...t}){return m.jsx(HU,{"data-loc":"client/src/components/ui/tabs.tsx:11","data-slot":"tabs",className:Be("flex flex-col gap-2",e),...t})}function S5({className:e,...t}){return m.jsx(FU,{"data-loc":"client/src/components/ui/tabs.tsx:24","data-slot":"tabs-list",className:Be("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Qi({className:e,...t}){return m.jsx(GU,{"data-loc":"client/src/components/ui/tabs.tsx:40","data-slot":"tabs-trigger",className:Be("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function nh({className:e,...t}){return m.jsx(KU,{"data-loc":"client/src/components/ui/tabs.tsx:56","data-slot":"tabs-content",className:Be("flex-1 outline-none",e),...t})}const ui={id:"user-123",name:"João Silva",email:"joao.silva@email.com",phone:"(11) 98765-4321",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=Felix",joinedAt:new Date("2023-06-15")},XU=[{id:"addr-1",label:"Casa",street:"Rua das Flores",number:"123",complement:"Apto 45",neighborhood:"Vila Mariana",city:"São Paulo",state:"SP",zipCode:"01234-567",isDefault:!0},{id:"addr-2",label:"Trabalho",street:"Avenida Paulista",number:"1000",complement:"Sala 1200",neighborhood:"Bela Vista",city:"São Paulo",state:"SP",zipCode:"01311-100",isDefault:!1},{id:"addr-3",label:"Casa da Mãe",street:"Rua das Acácias",number:"456",neighborhood:"Pinheiros",city:"São Paulo",state:"SP",zipCode:"05429-000",isDefault:!1}],YU=[{id:"ORD-20240115-ABC123",items:[{name:"Double Bacon Master",quantity:1,price:38.9},{name:"Coca-Cola Gelada",quantity:2,price:6.9}],total:51.7,status:"entregue",createdAt:new Date("2024-01-15T19:30:00"),deliveredAt:new Date("2024-01-15T20:05:00"),address:"Rua das Flores, 123 - Apto 45"},{id:"ORD-20240112-XYZ789",items:[{name:"Classic Cheese",quantity:2,price:28.9},{name:"Smash Salad",quantity:1,price:24.9},{name:"Batata Média",quantity:1,price:12}],total:94.6,status:"entregue",createdAt:new Date("2024-01-12T18:45:00"),deliveredAt:new Date("2024-01-12T19:20:00"),address:"Avenida Paulista, 1000 - Sala 1200"},{id:"ORD-20240110-DEF456",items:[{name:"Combo Família",quantity:1,price:129.9}],total:134.9,status:"entregue",createdAt:new Date("2024-01-10T20:00:00"),deliveredAt:new Date("2024-01-10T20:35:00"),address:"Rua das Flores, 123 - Apto 45"},{id:"ORD-20240108-GHI012",items:[{name:"Double Bacon Master",quantity:1,price:38.9},{name:"Batata Grande",quantity:1,price:15},{name:"Suco Natural",quantity:2,price:8.5}],total:70.9,status:"cancelado",createdAt:new Date("2024-01-08T19:15:00"),address:"Rua das Acácias, 456"},{id:"ORD-20240105-JKL345",items:[{name:"Classic Cheese",quantity:1,price:28.9},{name:"Coca-Cola Gelada",quantity:1,price:6.9}],total:35.8,status:"entregue",createdAt:new Date("2024-01-05T18:30:00"),deliveredAt:new Date("2024-01-05T19:00:00"),address:"Rua das Flores, 123 - Apto 45"}];function WU(e){const t=e.complement?` - ${e.complement}`:"";return`${e.street}, ${e.number}${t}, ${e.neighborhood}`}function ZU(e){return{entregue:"Entregue",cancelado:"Cancelado","em-preparo":"Em Preparo","saiu-entrega":"Saiu para Entrega"}[e]}function QU(e){return{entregue:"bg-green-100 text-green-800",cancelado:"bg-red-100 text-red-800","em-preparo":"bg-blue-100 text-blue-800","saiu-entrega":"bg-orange-100 text-orange-800"}[e]}function JU(){const[e,t]=T.useState("dados"),[n,r]=T.useState(!1),[i,s]=T.useState(!1),[l,u]=T.useState(ui),[d,f]=T.useState(()=>{const j=localStorage.getItem("dogmelina_addresses");return j?JSON.parse(j):XU}),[p,g]=T.useState(null),[v,x]=T.useState(!1);T.useEffect(()=>{localStorage.setItem("dogmelina_addresses",JSON.stringify(d))},[d]);const A=()=>{He.success("Perfil atualizado com sucesso!"),r(!1)},w=j=>{g({...j}),s(!0)},S=()=>{if(p.id)f(d.map(j=>j.id===p.id?p:j));else{const j={...p,id:Date.now().toString()};f([...d,j])}He.success("Endereço salvo com sucesso!"),s(!1)},O=()=>{if(!navigator.geolocation){He.error("Geolocalização não é suportada pelo seu navegador");return}x(!0),navigator.geolocation.getCurrentPosition(async j=>{const{latitude:N,longitude:C}=j.coords;try{setTimeout(()=>{g({...p,street:"Rua Detectada Automaticamente",number:"S/N",neighborhood:"Bairro Atual",city:"São Paulo",state:"SP",zipCode:"01001-000"}),x(!1),He.success("Localização detectada!")},1500)}catch{x(!1),He.error("Erro ao obter endereço")}},()=>{x(!1),He.error("Não foi possível obter sua localização")})},E=new Date(ui.joinedAt).toLocaleDateString("pt-BR",{year:"numeric",month:"long",day:"numeric"});return m.jsxs(bo,{"data-loc":"client/src/pages/Profile.tsx:114",children:[m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:115",className:"bg-background min-h-screen pb-8",children:[m.jsxs("header",{"data-loc":"client/src/pages/Profile.tsx:117",className:"px-6 py-4 flex items-center gap-4 sticky top-0 bg-background/80 backdrop-blur-md z-10 border-b border-border/50",children:[m.jsx("button",{"data-loc":"client/src/pages/Profile.tsx:118",onClick:()=>window.history.back(),className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center hover:bg-secondary/80 transition-colors",children:m.jsx(Kn,{"data-loc":"client/src/pages/Profile.tsx:122",size:20})}),m.jsx("h1",{"data-loc":"client/src/pages/Profile.tsx:124",className:"text-xl font-bold",children:"Meu Perfil"})]}),m.jsx("div",{"data-loc":"client/src/pages/Profile.tsx:128",className:"px-6 py-6",children:m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:129",className:"bg-gradient-to-br from-primary/10 to-accent/10 rounded-2xl p-6 border border-border/50 flex items-center gap-4",children:[m.jsx("div",{"data-loc":"client/src/pages/Profile.tsx:130",className:"w-16 h-16 rounded-full bg-white shadow-md overflow-hidden flex-shrink-0 border-2 border-primary",children:m.jsx("img",{"data-loc":"client/src/pages/Profile.tsx:131",src:ui.avatar,alt:ui.name,className:"w-full h-full"})}),m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:133",className:"flex-1",children:[m.jsx("h2",{"data-loc":"client/src/pages/Profile.tsx:134",className:"text-xl font-bold text-foreground",children:ui.name}),m.jsxs("p",{"data-loc":"client/src/pages/Profile.tsx:135",className:"text-sm text-muted-foreground",children:["Membro desde ",E]}),m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:136",className:"flex items-center gap-2 mt-2",children:[m.jsx(Uu,{"data-loc":"client/src/pages/Profile.tsx:137",size:14,className:"fill-yellow-400 text-yellow-400"}),m.jsx("span",{"data-loc":"client/src/pages/Profile.tsx:138",className:"text-xs font-bold",children:"4.8 • 15 pedidos"})]})]}),m.jsx("button",{"data-loc":"client/src/pages/Profile.tsx:141",onClick:()=>r(!0),className:"w-10 h-10 rounded-full bg-primary text-white flex items-center justify-center hover:bg-primary/90 transition-colors",children:m.jsx(Qc,{"data-loc":"client/src/pages/Profile.tsx:145",size:16})})]})}),m.jsx("div",{"data-loc":"client/src/pages/Profile.tsx:151",className:"px-6",children:m.jsxs(w5,{"data-loc":"client/src/pages/Profile.tsx:152",value:e,onValueChange:t,className:"w-full",children:[m.jsxs(S5,{"data-loc":"client/src/pages/Profile.tsx:153",className:"grid w-full grid-cols-3 bg-secondary/30 rounded-xl p-1",children:[m.jsxs(Qi,{"data-loc":"client/src/pages/Profile.tsx:154",value:"dados",className:"rounded-lg data-[state=active]:bg-white",children:[m.jsx(ks,{"data-loc":"client/src/pages/Profile.tsx:155",size:16,className:"mr-2"}),m.jsx("span",{"data-loc":"client/src/pages/Profile.tsx:156",className:"hidden sm:inline",children:"Dados"})]}),m.jsxs(Qi,{"data-loc":"client/src/pages/Profile.tsx:158",value:"pedidos",className:"rounded-lg data-[state=active]:bg-white",children:[m.jsx(fl,{"data-loc":"client/src/pages/Profile.tsx:159",size:16,className:"mr-2"}),m.jsx("span",{"data-loc":"client/src/pages/Profile.tsx:160",className:"hidden sm:inline",children:"Pedidos"})]}),m.jsxs(Qi,{"data-loc":"client/src/pages/Profile.tsx:162",value:"enderecos",className:"rounded-lg data-[state=active]:bg-white",children:[m.jsx(mr,{"data-loc":"client/src/pages/Profile.tsx:163",size:16,className:"mr-2"}),m.jsx("span",{"data-loc":"client/src/pages/Profile.tsx:164",className:"hidden sm:inline",children:"Endereços"})]})]}),m.jsxs(nh,{"data-loc":"client/src/pages/Profile.tsx:169",value:"dados",className:"mt-6 space-y-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:170",className:"bg-card rounded-2xl p-6 border border-border shadow-sm space-y-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:171",children:[m.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:172",className:"text-xs text-muted-foreground font-medium mb-1",children:"Nome Completo"}),m.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:173",className:"font-bold text-foreground",children:ui.name})]}),m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:175",className:"border-t border-border pt-4",children:[m.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:176",className:"text-xs text-muted-foreground font-medium mb-1",children:"Email"}),m.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:177",className:"font-bold text-foreground",children:ui.email})]}),m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:179",className:"border-t border-border pt-4",children:[m.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:180",className:"text-xs text-muted-foreground font-medium mb-1",children:"Telefone"}),m.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:181",className:"font-bold text-foreground",children:ui.phone})]})]}),m.jsx("div",{"data-loc":"client/src/pages/Profile.tsx:185",className:"space-y-3",children:m.jsxs(ye,{"data-loc":"client/src/pages/Profile.tsx:186",variant:"outline",className:"w-full h-12 rounded-xl font-bold text-destructive hover:text-destructive",children:[m.jsx(bS,{"data-loc":"client/src/pages/Profile.tsx:187",size:16,className:"mr-2"}),"Sair da Conta"]})})]}),m.jsx(nh,{"data-loc":"client/src/pages/Profile.tsx:194",value:"pedidos",className:"mt-6 space-y-4",children:YU.map(j=>m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:196",className:"bg-card rounded-2xl p-4 border border-border shadow-sm hover:shadow-md transition-shadow cursor-pointer",children:[m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:197",className:"flex items-start justify-between mb-3",children:[m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:198",children:[m.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:199",className:"text-xs text-muted-foreground font-medium",children:"Pedido"}),m.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:200",className:"font-bold text-foreground",children:j.id})]}),m.jsx(xn,{"data-loc":"client/src/pages/Profile.tsx:202",className:`${QU(j.status)} border-none text-xs font-bold`,children:ZU(j.status)})]}),m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:206",className:"flex items-center justify-between",children:[m.jsxs("p",{"data-loc":"client/src/pages/Profile.tsx:207",className:"text-sm font-bold text-primary",children:["R$ ",j.total.toFixed(2)]}),m.jsx(qu,{"data-loc":"client/src/pages/Profile.tsx:208",size:20,className:"text-muted-foreground"})]})]},j.id))}),m.jsxs(nh,{"data-loc":"client/src/pages/Profile.tsx:215",value:"enderecos",className:"mt-6 space-y-4",children:[d.map(j=>m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:217",className:`rounded-2xl p-4 border-2 transition-all ${j.isDefault?"bg-primary/5 border-primary":"bg-card border-border shadow-sm"}`,children:[m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:218",className:"flex items-start justify-between mb-3",children:[m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:219",className:"flex items-center gap-2",children:[m.jsx(mr,{"data-loc":"client/src/pages/Profile.tsx:220",size:18,className:j.isDefault?"text-primary":"text-muted-foreground"}),m.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:221",className:"font-bold text-foreground",children:j.label})]}),m.jsx("button",{"data-loc":"client/src/pages/Profile.tsx:223",onClick:()=>w(j),className:"w-8 h-8 rounded-lg bg-secondary hover:bg-secondary/80 transition-colors flex items-center justify-center",children:m.jsx(Qc,{"data-loc":"client/src/pages/Profile.tsx:227",size:14})})]}),m.jsx("p",{"data-loc":"client/src/pages/Profile.tsx:230",className:"text-sm text-muted-foreground leading-relaxed",children:WU(j)})]},j.id)),m.jsxs(ye,{"data-loc":"client/src/pages/Profile.tsx:236",variant:"outline",className:"w-full h-12 rounded-xl font-bold flex items-center justify-center gap-2",onClick:()=>{g({label:"Novo Endereço",street:"",number:"",neighborhood:"",city:"",state:"",zipCode:"",isDefault:!1}),s(!0)},children:[m.jsx(Pa,{"data-loc":"client/src/pages/Profile.tsx:244",size:18}),"Adicionar Novo Endereço"]})]})]})})]}),m.jsx(w1,{"data-loc":"client/src/pages/Profile.tsx:253",open:n,onOpenChange:r,children:m.jsxs(S1,{"data-loc":"client/src/pages/Profile.tsx:254",className:"max-w-md rounded-2xl",children:[m.jsx(A1,{"data-loc":"client/src/pages/Profile.tsx:255",children:m.jsx(j1,{"data-loc":"client/src/pages/Profile.tsx:255",children:"Editar Perfil"})}),m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:256",className:"space-y-4 py-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:257",children:[m.jsx(Dt,{"data-loc":"client/src/pages/Profile.tsx:258",className:"text-sm font-medium mb-2 block",children:"Nome Completo"}),m.jsx(Ue,{"data-loc":"client/src/pages/Profile.tsx:259",value:l.name,onChange:j=>u({...l,name:j.target.value}),className:"bg-secondary/30 border-border"})]}),m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:261",className:"flex gap-3 pt-4",children:[m.jsx(ye,{"data-loc":"client/src/pages/Profile.tsx:262",variant:"outline",className:"flex-1 h-10 rounded-lg",onClick:()=>r(!1),children:"Cancelar"}),m.jsx(ye,{"data-loc":"client/src/pages/Profile.tsx:263",className:"flex-1 h-10 rounded-lg",onClick:A,children:"Salvar"})]})]})]})}),m.jsx(w1,{"data-loc":"client/src/pages/Profile.tsx:270",open:i,onOpenChange:s,children:m.jsxs(S1,{"data-loc":"client/src/pages/Profile.tsx:271",className:"max-w-md rounded-2xl overflow-y-auto max-h-[90vh]",children:[m.jsx(A1,{"data-loc":"client/src/pages/Profile.tsx:272",children:m.jsx(j1,{"data-loc":"client/src/pages/Profile.tsx:273",children:p?.id?"Editar Endereço":"Novo Endereço"})}),m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:276",className:"space-y-4 py-4",children:[m.jsxs(ye,{"data-loc":"client/src/pages/Profile.tsx:277",variant:"secondary",className:"w-full h-10 rounded-lg flex items-center justify-center gap-2 bg-primary/10 text-primary hover:bg-primary/20 border-none",onClick:O,disabled:v,children:[v?m.jsx(D3,{"data-loc":"client/src/pages/Profile.tsx:283",size:18,className:"animate-spin"}):m.jsx(SS,{"data-loc":"client/src/pages/Profile.tsx:283",size:18}),v?"Detectando...":"Usar Localização Atual"]}),m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:287",className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:288",className:"col-span-2",children:[m.jsx(Dt,{"data-loc":"client/src/pages/Profile.tsx:289",className:"text-sm font-medium mb-1 block",children:"Identificação (Ex: Casa, Trabalho)"}),m.jsx(Ue,{"data-loc":"client/src/pages/Profile.tsx:290",value:p?.label,onChange:j=>g({...p,label:j.target.value}),className:"bg-secondary/30 border-border"})]}),m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:292",className:"col-span-2",children:[m.jsx(Dt,{"data-loc":"client/src/pages/Profile.tsx:293",className:"text-sm font-medium mb-1 block",children:"Rua"}),m.jsx(Ue,{"data-loc":"client/src/pages/Profile.tsx:294",value:p?.street,onChange:j=>g({...p,street:j.target.value}),className:"bg-secondary/30 border-border"})]}),m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:296",children:[m.jsx(Dt,{"data-loc":"client/src/pages/Profile.tsx:297",className:"text-sm font-medium mb-1 block",children:"Número"}),m.jsx(Ue,{"data-loc":"client/src/pages/Profile.tsx:298",value:p?.number,onChange:j=>g({...p,number:j.target.value}),className:"bg-secondary/30 border-border"})]}),m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:300",children:[m.jsx(Dt,{"data-loc":"client/src/pages/Profile.tsx:301",className:"text-sm font-medium mb-1 block",children:"Bairro"}),m.jsx(Ue,{"data-loc":"client/src/pages/Profile.tsx:302",value:p?.neighborhood,onChange:j=>g({...p,neighborhood:j.target.value}),className:"bg-secondary/30 border-border"})]}),m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:304",children:[m.jsx(Dt,{"data-loc":"client/src/pages/Profile.tsx:305",className:"text-sm font-medium mb-1 block",children:"Cidade"}),m.jsx(Ue,{"data-loc":"client/src/pages/Profile.tsx:306",value:p?.city,onChange:j=>g({...p,city:j.target.value}),className:"bg-secondary/30 border-border"})]}),m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:308",children:[m.jsx(Dt,{"data-loc":"client/src/pages/Profile.tsx:309",className:"text-sm font-medium mb-1 block",children:"CEP"}),m.jsx(Ue,{"data-loc":"client/src/pages/Profile.tsx:310",value:p?.zipCode,onChange:j=>g({...p,zipCode:j.target.value}),className:"bg-secondary/30 border-border"})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/Profile.tsx:314",className:"flex gap-3 pt-4",children:[m.jsx(ye,{"data-loc":"client/src/pages/Profile.tsx:315",variant:"outline",className:"flex-1 h-10 rounded-lg",onClick:()=>s(!1),children:"Cancelar"}),m.jsx(ye,{"data-loc":"client/src/pages/Profile.tsx:316",className:"flex-1 h-10 rounded-lg",onClick:S,children:"Salvar Endereço"})]})]})]})})]})}const A5=T.createContext(void 0);function eH({children:e}){const[t,n]=T.useState(!1),[r,i]=T.useState(!0),[s,l]=T.useState(!1),u=p=>p==="2412"?(n(!0),!0):!1,d=()=>{n(!1)},f=()=>{i(!r)};return m.jsx(A5.Provider,{"data-loc":"client/src/contexts/AdminContext.tsx:37",value:{isAuthenticated:t,isStoreOpen:r,autoprint:s,login:u,logout:d,toggleStore:f,setAutoprint:l},children:e})}function Dr(){const e=T.useContext(A5);if(!e)throw new Error("useAdmin must be used within AdminProvider");return e}function tH(){const[e,t]=T.useState(""),[n,r]=T.useState(!1),{login:i}=Dr(),[,s]=It(),l=async()=>{if(!e.trim()){He.error("Digite a senha");return}r(!0),await new Promise(d=>setTimeout(d,500)),i(e)?(He.success("Login realizado com sucesso!"),s("/admin/dashboard")):(He.error("Senha incorreta"),t("")),r(!1)},u=d=>{d.key==="Enter"&&l()};return m.jsx("div",{"data-loc":"client/src/pages/AdminLogin.tsx:41",className:"min-h-screen bg-gradient-to-br from-primary/10 to-accent/10 flex items-center justify-center p-4",children:m.jsx("div",{"data-loc":"client/src/pages/AdminLogin.tsx:42",className:"w-full max-w-md",children:m.jsxs("div",{"data-loc":"client/src/pages/AdminLogin.tsx:43",className:"bg-white rounded-3xl shadow-2xl p-8 border border-border",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminLogin.tsx:45",className:"text-center mb-8",children:[m.jsx("div",{"data-loc":"client/src/pages/AdminLogin.tsx:46",className:"w-20 h-20 rounded-full bg-primary/20 flex items-center justify-center mx-auto mb-4",children:m.jsx(M3,{"data-loc":"client/src/pages/AdminLogin.tsx:47",className:"w-10 h-10 text-primary"})}),m.jsx("h1",{"data-loc":"client/src/pages/AdminLogin.tsx:49",className:"text-3xl font-bold text-foreground mb-2",children:"Admin"}),m.jsx("p",{"data-loc":"client/src/pages/AdminLogin.tsx:50",className:"text-muted-foreground",children:"Painel de Administração"})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminLogin.tsx:54",className:"space-y-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminLogin.tsx:55",children:[m.jsx("label",{"data-loc":"client/src/pages/AdminLogin.tsx:56",htmlFor:"password",className:"text-sm font-medium text-foreground mb-2 block",children:"Senha de Acesso"}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminLogin.tsx:59",id:"password",type:"password",placeholder:"Digite a senha",value:e,onChange:d=>t(d.target.value),onKeyPress:u,className:"bg-secondary/30 border-border h-12 text-lg",disabled:n})]}),m.jsx(ye,{"data-loc":"client/src/pages/AdminLogin.tsx:71",className:"w-full h-12 rounded-xl text-base font-bold",onClick:l,disabled:n,children:n?"Verificando...":"Acessar Painel"})]}),m.jsx("div",{"data-loc":"client/src/pages/AdminLogin.tsx:81",className:"mt-8 p-4 bg-secondary/30 rounded-xl text-center",children:m.jsx("p",{"data-loc":"client/src/pages/AdminLogin.tsx:82",className:"text-xs text-muted-foreground",children:"Painel exclusivo para administradores"})})]})})})}function fn({className:e,...t}){return m.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:Be("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}const nH=T.forwardRef(({order:e,settings:t},n)=>m.jsxs("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:10",ref:n,className:"print-only",style:{width:"88mm",padding:"5mm",fontFamily:"monospace",fontSize:"12px",color:"#000",backgroundColor:"#fff"},children:[m.jsxs("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:12",style:{textAlign:"center",marginBottom:"10px"},children:[m.jsx("img",{"data-loc":"client/src/components/ThermalReceipt.tsx:13",src:"/images/logo.png",alt:"Logo",style:{width:"40mm",marginBottom:"5px"}}),m.jsx("h2",{"data-loc":"client/src/components/ThermalReceipt.tsx:14",style:{margin:"5px 0",fontSize:"18px",fontWeight:"bold"},children:"DOG MELINA"}),m.jsx("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:15",style:{margin:"2px 0"},children:t.address||"Rua Principal, 123"}),m.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:16",style:{margin:"2px 0"},children:["WhatsApp: ",t.whatsapp]}),m.jsx("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:17",style:{borderBottom:"1px dashed #000",margin:"10px 0"}})]}),m.jsxs("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:21",style:{marginBottom:"10px"},children:[m.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:22",style:{margin:"2px 0",fontWeight:"bold"},children:["PEDIDO: ",e.id]}),m.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:23",style:{margin:"2px 0"},children:["DATA: ",new Date(e.createdAt).toLocaleString("pt-BR")]}),e.senha&&m.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:24",style:{margin:"5px 0",fontSize:"20px",fontWeight:"bold",textAlign:"center"},children:["SENHA: ",e.senha]}),m.jsx("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:25",style:{borderBottom:"1px dashed #000",margin:"10px 0"}})]}),m.jsxs("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:29",style:{marginBottom:"10px"},children:[m.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:30",style:{margin:"2px 0",fontWeight:"bold"},children:["CLIENTE: ",e.customerName]}),m.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:31",style:{margin:"2px 0"},children:["TEL: ",e.customerPhone]}),m.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:32",style:{margin:"2px 0"},children:["END: ",e.address]}),m.jsx("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:33",style:{borderBottom:"1px dashed #000",margin:"10px 0"}})]}),m.jsxs("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:37",style:{marginBottom:"10px"},children:[m.jsxs("table",{"data-loc":"client/src/components/ThermalReceipt.tsx:38",style:{width:"100%",borderCollapse:"collapse"},children:[m.jsx("thead",{"data-loc":"client/src/components/ThermalReceipt.tsx:39",children:m.jsxs("tr",{"data-loc":"client/src/components/ThermalReceipt.tsx:40",style:{borderBottom:"1px solid #000"},children:[m.jsx("th",{"data-loc":"client/src/components/ThermalReceipt.tsx:41",style:{textAlign:"left",padding:"2px 0"},children:"QTD"}),m.jsx("th",{"data-loc":"client/src/components/ThermalReceipt.tsx:42",style:{textAlign:"left",padding:"2px 0"},children:"ITEM"}),m.jsx("th",{"data-loc":"client/src/components/ThermalReceipt.tsx:43",style:{textAlign:"right",padding:"2px 0"},children:"TOTAL"})]})}),m.jsx("tbody",{"data-loc":"client/src/components/ThermalReceipt.tsx:46",children:e.items.map((r,i)=>m.jsxs("tr",{"data-loc":"client/src/components/ThermalReceipt.tsx:48",children:[m.jsxs("td",{"data-loc":"client/src/components/ThermalReceipt.tsx:49",style:{verticalAlign:"top",padding:"2px 0"},children:[r.quantity,"x"]}),m.jsxs("td",{"data-loc":"client/src/components/ThermalReceipt.tsx:50",style:{padding:"2px 0"},children:[r.name,r.addons?.map(s=>m.jsxs("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:52",style:{fontSize:"10px"},children:["+ ",s.name]},s.name))]}),m.jsxs("td",{"data-loc":"client/src/components/ThermalReceipt.tsx:54",style:{textAlign:"right",verticalAlign:"top",padding:"2px 0"},children:["R$ ",(r.price*r.quantity).toFixed(2)]})]},i))})]}),m.jsx("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:59",style:{borderBottom:"1px dashed #000",margin:"10px 0"}})]}),m.jsxs("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:63",style:{textAlign:"right",marginBottom:"10px"},children:[m.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:64",style:{margin:"2px 0"},children:["SUBTOTAL: R$ ",(e.total-(e.deliveryFee||0)).toFixed(2)]}),m.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:65",style:{margin:"2px 0"},children:["TAXA ENTREGA: R$ ",(e.deliveryFee||0).toFixed(2)]}),m.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:66",style:{margin:"5px 0",fontSize:"16px",fontWeight:"bold"},children:["TOTAL: R$ ",e.total.toFixed(2)]}),m.jsxs("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:67",style:{margin:"2px 0",fontWeight:"bold"},children:["PAGAMENTO: ",e.paymentMethod.toUpperCase()]})]}),m.jsxs("div",{"data-loc":"client/src/components/ThermalReceipt.tsx:71",style:{textAlign:"center",marginTop:"20px",fontSize:"10px"},children:[m.jsx("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:72",children:"Obrigado pela preferência!"}),m.jsx("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:73",children:"www.dogmelina.com.br"}),m.jsx("p",{"data-loc":"client/src/components/ThermalReceipt.tsx:74",style:{marginTop:"10px"},children:"* Documento sem valor fiscal *"})]}),m.jsx("style",{"data-loc":"client/src/components/ThermalReceipt.tsx:77",children:`
        @media print {
          body * { visibility: hidden; }
          .print-only, .print-only * { visibility: visible; }
          .print-only { position: absolute; left: 0; top: 0; }
        }
      `})]}));function rH(){const{isAuthenticated:e,logout:t,isStoreOpen:n,toggleStore:r}=Dr(),[,i]=It(),[s,l]=T.useState(!1),[u,d]=T.useState([]),[f,p]=T.useState(null),g=T.useRef(null),v=JSON.parse(localStorage.getItem("dogmelina_settings")||'{"whatsapp":"5511999999999","address":"Rua Principal, 123"}');T.useEffect(()=>{e||i("/admin/login")},[e,i]),T.useEffect(()=>(g.current=new Audio("/sounds/notification.mp3"),g.current.loop=!0,()=>{g.current?.pause()}),[]),T.useEffect(()=>{const j=()=>{const C=localStorage.getItem("dogmelina_admin_orders");if(C){const P=JSON.parse(C);d(P),P.some(M=>M.status==="novo")&&!s&&n?g.current?.play().catch(()=>{}):g.current?.pause()}};j();const N=setInterval(j,3e3);return()=>clearInterval(N)},[s,n]);const x=(j,N)=>{const C=u.map(P=>P.id===j?{...P,status:N}:P);d(C),localStorage.setItem("dogmelina_admin_orders",JSON.stringify(C)),He.success(`Pedido ${j} atualizado para ${N}`)},A=j=>{p(j),setTimeout(()=>{window.print()},500)},w=u.filter(j=>j.status==="novo").length,S=u.filter(j=>j.status==="preparando").length,O=u.filter(j=>j.status==="pronto").length,E=[{label:"PDV Balcão",icon:Vu,path:"/admin/pdv",color:"text-blue-600",bg:"bg-blue-50"},{label:"Gestão de Mesas",icon:ch,path:"/admin/pdv",color:"text-orange-600",bg:"bg-orange-50"},{label:"Entregadores",icon:ya,path:"/admin/drivers",color:"text-green-600",bg:"bg-green-50"},{label:"Produtos",icon:p1,path:"/admin/products",color:"text-purple-600",bg:"bg-purple-50"},{label:"Categorias",icon:tq,path:"/admin/categories",color:"text-pink-600",bg:"bg-pink-50"},{label:"Pagamentos",icon:lh,path:"/admin/payments",color:"text-cyan-600",bg:"bg-cyan-50"},{label:"Clientes",icon:lq,path:"/admin/customers",color:"text-indigo-600",bg:"bg-indigo-50"},{label:"Painel TV",icon:aq,path:"/admin/tv",color:"text-slate-600",bg:"bg-slate-50"},{label:"Configurações",icon:L3,path:"/admin/settings",color:"text-gray-600",bg:"bg-gray-50"}];return m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:112",className:"min-h-screen bg-secondary/10 pb-24",children:[m.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:114",className:"hidden print:block",children:f&&m.jsx(nH,{"data-loc":"client/src/pages/AdminDashboard.tsx:115",order:f,settings:v})}),m.jsxs("header",{"data-loc":"client/src/pages/AdminDashboard.tsx:118",className:"bg-white px-6 pt-8 pb-6 rounded-b-[40px] shadow-sm sticky top-0 z-50",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:119",className:"flex justify-between items-center mb-6",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:120",className:"flex items-center gap-3",children:[m.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:121",className:"w-12 h-12 bg-primary rounded-2xl flex items-center justify-center shadow-lg shadow-primary/20",children:m.jsx(B3,{"data-loc":"client/src/pages/AdminDashboard.tsx:122",size:24,className:"text-white"})}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:124",children:[m.jsx("h1",{"data-loc":"client/src/pages/AdminDashboard.tsx:125",className:"text-xl font-black text-foreground",children:"Painel Admin"}),m.jsx("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:126",className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:"Dog Melina Delivery"})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:129",className:"flex gap-2",children:[m.jsx(ye,{"data-loc":"client/src/pages/AdminDashboard.tsx:130",variant:"outline",size:"sm",onClick:()=>l(!s),className:Be("rounded-xl",w>0&&!s&&"animate-pulse border-primary text-primary"),children:s?m.jsx(dq,{"data-loc":"client/src/pages/AdminDashboard.tsx:131",size:18}):m.jsx(uq,{"data-loc":"client/src/pages/AdminDashboard.tsx:131",size:18})}),m.jsxs("button",{"data-loc":"client/src/pages/AdminDashboard.tsx:133",onClick:r,className:Be("px-4 h-10 rounded-xl font-black text-[10px] uppercase flex items-center gap-2 transition-all",n?"bg-green-500 text-white":"bg-red-500 text-white"),children:[m.jsx(k3,{"data-loc":"client/src/pages/AdminDashboard.tsx:134",size:14}),n?"Loja Aberta":"Loja Fechada"]}),m.jsx("button",{"data-loc":"client/src/pages/AdminDashboard.tsx:137",onClick:t,className:"w-10 h-10 rounded-xl bg-red-50 text-red-500 flex items-center justify-center",children:m.jsx(bS,{"data-loc":"client/src/pages/AdminDashboard.tsx:138",size:18})})]})]}),m.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:144",className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[{label:"Novos",value:w,color:"bg-blue-500"},{label:"Em Preparo",value:S,color:"bg-orange-500"},{label:"Prontos",value:O,color:"bg-green-500"},{label:"Total Hoje",value:u.length,color:"bg-purple-500"}].map((j,N)=>m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:151",className:"bg-secondary/20 p-4 rounded-2xl border border-border/50",children:[m.jsx("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:152",className:"text-[10px] font-black text-muted-foreground uppercase mb-1",children:j.label}),m.jsx("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:153",className:"text-2xl font-black text-foreground",children:j.value})]},N))})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:159",className:"p-6 grid grid-cols-1 lg:grid-cols-4 gap-6",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:161",className:"lg:col-span-1 space-y-3",children:[m.jsx("h3",{"data-loc":"client/src/pages/AdminDashboard.tsx:162",className:"text-xs font-black text-muted-foreground uppercase tracking-widest px-2 mb-4",children:"Gerenciamento"}),E.map((j,N)=>m.jsxs("button",{"data-loc":"client/src/pages/AdminDashboard.tsx:164",onClick:()=>i(j.path),className:Be("w-full p-4 rounded-2xl flex items-center justify-between group transition-all hover:shadow-md",j.bg),children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:169",className:"flex items-center gap-3",children:[m.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:170",className:Be("w-10 h-10 rounded-xl bg-white flex items-center justify-center shadow-sm",j.color),children:m.jsx(j.icon,{"data-loc":"client/src/pages/AdminDashboard.tsx:171",size:20})}),m.jsx("span",{"data-loc":"client/src/pages/AdminDashboard.tsx:173",className:"font-black text-sm text-foreground",children:j.label})]}),m.jsx(qu,{"data-loc":"client/src/pages/AdminDashboard.tsx:175",size:16,className:"text-muted-foreground group-hover:translate-x-1 transition-transform"})]},N))]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:181",className:"lg:col-span-3 space-y-6",children:[w>0&&m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:183",className:"bg-primary/10 border border-primary/20 rounded-3xl p-4 flex items-center justify-between animate-pulse",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:184",className:"flex items-center gap-4",children:[m.jsx(X9,{"data-loc":"client/src/pages/AdminDashboard.tsx:185",className:"text-primary",size:24}),m.jsxs("h3",{"data-loc":"client/src/pages/AdminDashboard.tsx:186",className:"font-black",children:["VOCÊ TEM ",w," NOVO(S) PEDIDO(S)!"]})]}),m.jsx(xn,{"data-loc":"client/src/pages/AdminDashboard.tsx:188",className:"bg-primary text-white",children:"ALERTA SONORO ATIVO"})]}),m.jsxs(w5,{"data-loc":"client/src/pages/AdminDashboard.tsx:192",defaultValue:"novo",className:"w-full",children:[m.jsxs(S5,{"data-loc":"client/src/pages/AdminDashboard.tsx:193",className:"grid w-full grid-cols-4 bg-white rounded-2xl p-1 shadow-sm mb-6",children:[m.jsxs(Qi,{"data-loc":"client/src/pages/AdminDashboard.tsx:194",value:"novo",className:"rounded-xl font-black text-[10px] uppercase",children:["Novos (",w,")"]}),m.jsxs(Qi,{"data-loc":"client/src/pages/AdminDashboard.tsx:195",value:"preparando",className:"rounded-xl font-black text-[10px] uppercase",children:["Preparo (",S,")"]}),m.jsxs(Qi,{"data-loc":"client/src/pages/AdminDashboard.tsx:196",value:"pronto",className:"rounded-xl font-black text-[10px] uppercase",children:["Prontos (",O,")"]}),m.jsx(Qi,{"data-loc":"client/src/pages/AdminDashboard.tsx:197",value:"todos",className:"rounded-xl font-black text-[10px] uppercase",children:"Todos"})]}),["novo","preparando","pronto","todos"].map(j=>m.jsx(nh,{"data-loc":"client/src/pages/AdminDashboard.tsx:201",value:j,className:"space-y-4",children:u.filter(N=>j==="todos"?!0:N.status===j).length===0?m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:203",className:"bg-white rounded-[40px] p-12 text-center border-2 border-dashed border-border/50",children:[m.jsx(p1,{"data-loc":"client/src/pages/AdminDashboard.tsx:204",size:48,className:"mx-auto text-muted-foreground/20 mb-4"}),m.jsx("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:205",className:"font-black text-muted-foreground",children:"Nenhum pedido nesta categoria"})]}):u.filter(N=>j==="todos"?!0:N.status===j).map(N=>m.jsx(aH,{"data-loc":"client/src/pages/AdminDashboard.tsx:209",order:N,onAccept:()=>x(N.id,"preparando"),onPrint:()=>A(N),onStatusChange:C=>x(N.id,C)},N.id))},j))]})]})]})]})}function aH({order:e,onAccept:t,onPrint:n,onStatusChange:r}){return m.jsxs(fn,{"data-loc":"client/src/pages/AdminDashboard.tsx:229",className:"p-6 rounded-[32px] border-none shadow-sm bg-white overflow-hidden relative",children:[m.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:230",className:Be("absolute top-0 left-0 w-1.5 h-full",e.status==="novo"?"bg-blue-500":e.status==="preparando"?"bg-orange-500":"bg-green-500")}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:235",className:"flex flex-wrap justify-between items-start gap-4 mb-6",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:236",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:237",className:"flex items-center gap-2 mb-2",children:[m.jsx(xn,{"data-loc":"client/src/pages/AdminDashboard.tsx:238",className:"bg-secondary text-foreground border-none font-black",children:e.id}),m.jsx(xn,{"data-loc":"client/src/pages/AdminDashboard.tsx:239",className:"bg-primary/10 text-primary border-none font-black uppercase text-[10px]",children:e.type}),e.senha&&m.jsxs(xn,{"data-loc":"client/src/pages/AdminDashboard.tsx:240",className:"bg-orange-500 text-white border-none font-black",children:["SENHA: ",e.senha]})]}),m.jsx("h4",{"data-loc":"client/src/pages/AdminDashboard.tsx:242",className:"text-xl font-black",children:e.customerName}),m.jsxs("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:243",className:"text-xs text-muted-foreground font-bold flex items-center gap-1 mt-1",children:[m.jsx(mr,{"data-loc":"client/src/pages/AdminDashboard.tsx:244",size:12})," ",e.address||"Retirada / Mesa"]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:247",className:"text-right",children:[m.jsxs("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:248",className:"text-2xl font-black text-primary",children:["R$ ",e.total.toFixed(2)]}),m.jsx("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:249",className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:e.paymentMethod||"Dinheiro"})]})]}),m.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:253",className:"bg-secondary/20 rounded-2xl p-4 mb-6",children:m.jsx("ul",{"data-loc":"client/src/pages/AdminDashboard.tsx:254",className:"space-y-2",children:e.items.map((i,s)=>m.jsxs("li",{"data-loc":"client/src/pages/AdminDashboard.tsx:256",className:"flex justify-between text-sm font-bold",children:[m.jsxs("span",{"data-loc":"client/src/pages/AdminDashboard.tsx:257",children:[i.quantity,"x ",i.name]}),m.jsxs("span",{"data-loc":"client/src/pages/AdminDashboard.tsx:258",className:"text-muted-foreground",children:["R$ ",(i.price*i.quantity).toFixed(2)]})]},s))})}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:264",className:"flex flex-wrap gap-2",children:[e.status==="novo"?m.jsx(ye,{"data-loc":"client/src/pages/AdminDashboard.tsx:266",onClick:t,className:"flex-1 h-14 rounded-2xl bg-green-600 hover:bg-green-700 font-black text-lg shadow-lg shadow-green-100",children:"ACEITAR PEDIDO"}):m.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:270",className:"flex-1 flex gap-2",children:[m.jsxs(ye,{"data-loc":"client/src/pages/AdminDashboard.tsx:271",variant:"outline",onClick:n,className:"flex-1 h-14 rounded-2xl border-border font-black gap-2",children:[m.jsx(z3,{"data-loc":"client/src/pages/AdminDashboard.tsx:272",size:20})," IMPRIMIR 88MM"]}),m.jsxs("select",{"data-loc":"client/src/pages/AdminDashboard.tsx:274",value:e.status,onChange:i=>r(i.target.value),className:"flex-1 h-14 rounded-2xl border border-border bg-secondary/20 px-4 font-black text-sm outline-none focus:border-primary",children:[m.jsx("option",{"data-loc":"client/src/pages/AdminDashboard.tsx:279",value:"preparando",children:"PREPARANDO"}),m.jsx("option",{"data-loc":"client/src/pages/AdminDashboard.tsx:280",value:"pronto",children:"PRONTO / RETIRADA"}),m.jsx("option",{"data-loc":"client/src/pages/AdminDashboard.tsx:281",value:"entregue",children:"ENTREGUE"}),m.jsx("option",{"data-loc":"client/src/pages/AdminDashboard.tsx:282",value:"cancelado",children:"CANCELADO"})]})]}),m.jsxs(ye,{"data-loc":"client/src/pages/AdminDashboard.tsx:286",variant:"ghost",className:"text-red-500 hover:bg-red-50 rounded-xl font-black gap-2",children:[m.jsx(Y9,{"data-loc":"client/src/pages/AdminDashboard.tsx:287",size:18})," RECUSAR"]})]})]})}function iH(){const{isAuthenticated:e}=Dr(),[,t]=It(),[n,r]=T.useState(""),[i]=T.useState(()=>{const A=localStorage.getItem("dogmelina_categories");return A?JSON.parse(A):[{id:1,name:"Cachorro-quente",slug:"cachorro-quente"},{id:2,name:"Xis",slug:"xis"},{id:3,name:"Combos",slug:"combos"},{id:4,name:"Bebidas",slug:"drinks"}]}),[s,l]=T.useState(()=>{const A=localStorage.getItem("dogmelina_products");return A?JSON.parse(A):[]}),[u,d]=T.useState(!1),[f,p]=T.useState({name:"",description:"",price:"",category:i[0]?.slug||"",image:"/images/products/default.png"});if(T.useEffect(()=>{localStorage.setItem("dogmelina_products",JSON.stringify(s))},[s]),!e)return t("/admin/login"),null;const g=()=>{!f.name||!f.price||(l([...s,{...f,id:Date.now(),price:parseFloat(f.price)}]),p({name:"",description:"",price:"",category:i[0]?.slug||"",image:"/images/products/default.png"}),d(!1),He.success("Produto adicionado!"))},v=A=>{confirm("Excluir este produto?")&&(l(s.filter(w=>w.id!==A)),He.error("Produto removido"))},x=s.filter(A=>A.name.toLowerCase().includes(n.toLowerCase())||A.category.toLowerCase().includes(n.toLowerCase()));return m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:70",className:"min-h-screen bg-background",children:[m.jsxs("header",{"data-loc":"client/src/pages/AdminProducts.tsx:71",className:"bg-white border-b border-border sticky top-0 z-50 px-6 py-4 flex items-center justify-between",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:72",className:"flex items-center gap-4",children:[m.jsx(ye,{"data-loc":"client/src/pages/AdminProducts.tsx:73",variant:"ghost",size:"icon",onClick:()=>t("/admin/dashboard"),children:m.jsx(Kn,{"data-loc":"client/src/pages/AdminProducts.tsx:73",size:20})}),m.jsxs("h1",{"data-loc":"client/src/pages/AdminProducts.tsx:74",className:"text-xl font-bold flex items-center gap-2",children:[m.jsx(cq,{"data-loc":"client/src/pages/AdminProducts.tsx:74",size:20,className:"text-primary"})," Produtos"]})]}),m.jsxs(ye,{"data-loc":"client/src/pages/AdminProducts.tsx:76",onClick:()=>d(!0),className:"rounded-xl",children:[m.jsx(Pa,{"data-loc":"client/src/pages/AdminProducts.tsx:76",size:20,className:"mr-2"})," Novo Produto"]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:79",className:"max-w-5xl mx-auto p-6",children:[u&&m.jsxs(fn,{"data-loc":"client/src/pages/AdminProducts.tsx:81",className:"p-6 rounded-3xl border-primary/20 shadow-xl mb-8 animate-in zoom-in-95 duration-200",children:[m.jsx("h2",{"data-loc":"client/src/pages/AdminProducts.tsx:82",className:"font-black text-xl mb-6",children:"Cadastrar Novo Produto"}),m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:83",className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-6",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:84",className:"space-y-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:85",children:[m.jsx("label",{"data-loc":"client/src/pages/AdminProducts.tsx:86",className:"text-xs font-bold mb-1 block",children:"Nome do Produto *"}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminProducts.tsx:87",value:f.name,onChange:A=>p({...f,name:A.target.value}),placeholder:"Ex: Xis Bacon Especial",className:"h-12 rounded-xl"})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:89",children:[m.jsx("label",{"data-loc":"client/src/pages/AdminProducts.tsx:90",className:"text-xs font-bold mb-1 block",children:"Descrição"}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminProducts.tsx:91",value:f.description,onChange:A=>p({...f,description:A.target.value}),placeholder:"Ingredientes...",className:"h-12 rounded-xl"})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:94",className:"space-y-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:95",className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:96",children:[m.jsx("label",{"data-loc":"client/src/pages/AdminProducts.tsx:97",className:"text-xs font-bold mb-1 block",children:"Preço (R$) *"}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminProducts.tsx:98",type:"number",value:f.price,onChange:A=>p({...f,price:A.target.value}),placeholder:"0.00",className:"h-12 rounded-xl"})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:100",children:[m.jsx("label",{"data-loc":"client/src/pages/AdminProducts.tsx:101",className:"text-xs font-bold mb-1 block",children:"Categoria"}),m.jsx("select",{"data-loc":"client/src/pages/AdminProducts.tsx:102",value:f.category,onChange:A=>p({...f,category:A.target.value}),className:"w-full h-12 rounded-xl border border-border bg-background px-3 text-sm",children:i.map(A=>m.jsx("option",{"data-loc":"client/src/pages/AdminProducts.tsx:107",value:A.slug,children:A.name},A.id))})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:111",children:[m.jsx("label",{"data-loc":"client/src/pages/AdminProducts.tsx:112",className:"text-xs font-bold mb-1 block",children:"URL da Imagem"}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminProducts.tsx:113",value:f.image,onChange:A=>p({...f,image:A.target.value}),placeholder:"/images/products/...",className:"h-12 rounded-xl"})]})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:117",className:"flex gap-3",children:[m.jsx(ye,{"data-loc":"client/src/pages/AdminProducts.tsx:118",variant:"outline",onClick:()=>d(!1),className:"flex-1 h-12 rounded-xl",children:"Cancelar"}),m.jsx(ye,{"data-loc":"client/src/pages/AdminProducts.tsx:119",onClick:g,className:"flex-1 h-12 rounded-xl",children:"Salvar Produto"})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:124",className:"relative mb-8",children:[m.jsx(hl,{"data-loc":"client/src/pages/AdminProducts.tsx:125",className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground",size:20}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminProducts.tsx:126",placeholder:"Buscar por nome ou categoria...",value:n,onChange:A=>r(A.target.value),className:"h-14 rounded-2xl pl-12 bg-white border-border shadow-sm"})]}),m.jsx("div",{"data-loc":"client/src/pages/AdminProducts.tsx:134",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:x.map(A=>m.jsxs(fn,{"data-loc":"client/src/pages/AdminProducts.tsx:136",className:"p-4 rounded-3xl border-border shadow-sm flex gap-4 items-center",children:[m.jsx("div",{"data-loc":"client/src/pages/AdminProducts.tsx:137",className:"w-20 h-20 rounded-2xl overflow-hidden bg-secondary/20 shrink-0",children:m.jsx("img",{"data-loc":"client/src/pages/AdminProducts.tsx:138",src:A.image,alt:A.name,className:"w-full h-full object-cover",onError:w=>w.target.src="https://placehold.co/200x200?text=Lanche"})}),m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:140",className:"flex-1 min-w-0",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:141",className:"flex items-center gap-2 mb-1",children:[m.jsx(xn,{"data-loc":"client/src/pages/AdminProducts.tsx:142",variant:"outline",className:"text-[10px] uppercase font-bold",children:A.category}),m.jsxs("p",{"data-loc":"client/src/pages/AdminProducts.tsx:143",className:"text-primary font-black",children:["R$ ",A.price.toFixed(2)]})]}),m.jsx("h3",{"data-loc":"client/src/pages/AdminProducts.tsx:145",className:"font-bold text-lg truncate",children:A.name}),m.jsx("p",{"data-loc":"client/src/pages/AdminProducts.tsx:146",className:"text-xs text-muted-foreground truncate",children:A.description||"Sem descrição"})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminProducts.tsx:148",className:"flex flex-col gap-1",children:[m.jsx(ye,{"data-loc":"client/src/pages/AdminProducts.tsx:149",variant:"ghost",size:"icon",className:"text-muted-foreground",children:m.jsx(Qc,{"data-loc":"client/src/pages/AdminProducts.tsx:149",size:18})}),m.jsx(ye,{"data-loc":"client/src/pages/AdminProducts.tsx:150",variant:"ghost",size:"icon",onClick:()=>v(A.id),className:"text-destructive",children:m.jsx(Hu,{"data-loc":"client/src/pages/AdminProducts.tsx:150",size:18})})]})]},A.id))})]})]})}function oH(e,[t,n]){return Math.min(n,Math.max(t,e))}function sH(e,t){return T.useReducer((n,r)=>t[n][r]??n,e)}var kS="ScrollArea",[j5]=Na(kS),[lH,vr]=j5(kS),O5=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:s=600,...l}=e,[u,d]=T.useState(null),[f,p]=T.useState(null),[g,v]=T.useState(null),[x,A]=T.useState(null),[w,S]=T.useState(null),[O,E]=T.useState(0),[j,N]=T.useState(0),[C,P]=T.useState(!1),[D,M]=T.useState(!1),k=At(t,L=>d(L)),q=Sp(i);return m.jsx(lH,{scope:n,type:r,dir:q,scrollHideDelay:s,scrollArea:u,viewport:f,onViewportChange:p,content:g,onContentChange:v,scrollbarX:x,onScrollbarXChange:A,scrollbarXEnabled:C,onScrollbarXEnabledChange:P,scrollbarY:w,onScrollbarYChange:S,scrollbarYEnabled:D,onScrollbarYEnabledChange:M,onCornerWidthChange:E,onCornerHeightChange:N,children:m.jsx(Ze.div,{dir:q,...l,ref:k,style:{position:"relative","--radix-scroll-area-corner-width":O+"px","--radix-scroll-area-corner-height":j+"px",...e.style}})})});O5.displayName=kS;var T5="ScrollAreaViewport",C5=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:i,...s}=e,l=vr(T5,n),u=T.useRef(null),d=At(t,u,l.onViewportChange);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),m.jsx(Ze.div,{"data-radix-scroll-area-viewport":"",...s,ref:d,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:m.jsx("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});C5.displayName=T5;var Kr="ScrollAreaScrollbar",E5=T.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=vr(Kr,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:l}=i,u=e.orientation==="horizontal";return T.useEffect(()=>(u?s(!0):l(!0),()=>{u?s(!1):l(!1)}),[u,s,l]),i.type==="hover"?m.jsx(cH,{...r,ref:t,forceMount:n}):i.type==="scroll"?m.jsx(uH,{...r,ref:t,forceMount:n}):i.type==="auto"?m.jsx(_5,{...r,ref:t,forceMount:n}):i.type==="always"?m.jsx(zS,{...r,ref:t}):null});E5.displayName=Kr;var cH=T.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=vr(Kr,e.__scopeScrollArea),[s,l]=T.useState(!1);return T.useEffect(()=>{const u=i.scrollArea;let d=0;if(u){const f=()=>{window.clearTimeout(d),l(!0)},p=()=>{d=window.setTimeout(()=>l(!1),i.scrollHideDelay)};return u.addEventListener("pointerenter",f),u.addEventListener("pointerleave",p),()=>{window.clearTimeout(d),u.removeEventListener("pointerenter",f),u.removeEventListener("pointerleave",p)}}},[i.scrollArea,i.scrollHideDelay]),m.jsx(Pr,{present:n||s,children:m.jsx(_5,{"data-state":s?"visible":"hidden",...r,ref:t})})}),uH=T.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=vr(Kr,e.__scopeScrollArea),s=e.orientation==="horizontal",l=Cp(()=>d("SCROLL_END"),100),[u,d]=sH("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return T.useEffect(()=>{if(u==="idle"){const f=window.setTimeout(()=>d("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(f)}},[u,i.scrollHideDelay,d]),T.useEffect(()=>{const f=i.viewport,p=s?"scrollLeft":"scrollTop";if(f){let g=f[p];const v=()=>{const x=f[p];g!==x&&(d("SCROLL"),l()),g=x};return f.addEventListener("scroll",v),()=>f.removeEventListener("scroll",v)}},[i.viewport,s,d,l]),m.jsx(Pr,{present:n||u!=="hidden",children:m.jsx(zS,{"data-state":u==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:et(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:et(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),_5=T.forwardRef((e,t)=>{const n=vr(Kr,e.__scopeScrollArea),{forceMount:r,...i}=e,[s,l]=T.useState(!1),u=e.orientation==="horizontal",d=Cp(()=>{if(n.viewport){const f=n.viewport.offsetWidth<n.viewport.scrollWidth,p=n.viewport.offsetHeight<n.viewport.scrollHeight;l(u?f:p)}},10);return zs(n.viewport,d),zs(n.content,d),m.jsx(Pr,{present:r||s,children:m.jsx(zS,{"data-state":s?"visible":"hidden",...i,ref:t})})}),zS=T.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,i=vr(Kr,e.__scopeScrollArea),s=T.useRef(null),l=T.useRef(0),[u,d]=T.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=R5(u.viewport,u.content),p={...r,sizes:u,onSizesChange:d,hasThumb:f>0&&f<1,onThumbChange:v=>s.current=v,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:v=>l.current=v};function g(v,x){return gH(v,l.current,u,x)}return n==="horizontal"?m.jsx(dH,{...p,ref:t,onThumbPositionChange:()=>{if(i.viewport&&s.current){const v=i.viewport.scrollLeft,x=aE(v,u,i.dir);s.current.style.transform=`translate3d(${x}px, 0, 0)`}},onWheelScroll:v=>{i.viewport&&(i.viewport.scrollLeft=v)},onDragScroll:v=>{i.viewport&&(i.viewport.scrollLeft=g(v,i.dir))}}):n==="vertical"?m.jsx(fH,{...p,ref:t,onThumbPositionChange:()=>{if(i.viewport&&s.current){const v=i.viewport.scrollTop,x=aE(v,u);s.current.style.transform=`translate3d(0, ${x}px, 0)`}},onWheelScroll:v=>{i.viewport&&(i.viewport.scrollTop=v)},onDragScroll:v=>{i.viewport&&(i.viewport.scrollTop=g(v))}}):null}),dH=T.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,s=vr(Kr,e.__scopeScrollArea),[l,u]=T.useState(),d=T.useRef(null),f=At(t,d,s.onScrollbarXChange);return T.useEffect(()=>{d.current&&u(getComputedStyle(d.current))},[d]),m.jsx(N5,{"data-orientation":"horizontal",...i,ref:f,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Tp(n)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,g)=>{if(s.viewport){const v=s.viewport.scrollLeft+p.deltaX;e.onWheelScroll(v),z5(v,g)&&p.preventDefault()}},onResize:()=>{d.current&&s.viewport&&l&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:fh(l.paddingLeft),paddingEnd:fh(l.paddingRight)}})}})}),fH=T.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,s=vr(Kr,e.__scopeScrollArea),[l,u]=T.useState(),d=T.useRef(null),f=At(t,d,s.onScrollbarYChange);return T.useEffect(()=>{d.current&&u(getComputedStyle(d.current))},[d]),m.jsx(N5,{"data-orientation":"vertical",...i,ref:f,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Tp(n)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,g)=>{if(s.viewport){const v=s.viewport.scrollTop+p.deltaY;e.onWheelScroll(v),z5(v,g)&&p.preventDefault()}},onResize:()=>{d.current&&s.viewport&&l&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:fh(l.paddingTop),paddingEnd:fh(l.paddingBottom)}})}})}),[hH,P5]=j5(Kr),N5=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:s,onThumbPointerUp:l,onThumbPointerDown:u,onThumbPositionChange:d,onDragScroll:f,onWheelScroll:p,onResize:g,...v}=e,x=vr(Kr,n),[A,w]=T.useState(null),S=At(t,k=>w(k)),O=T.useRef(null),E=T.useRef(""),j=x.viewport,N=r.content-r.viewport,C=Un(p),P=Un(d),D=Cp(g,10);function M(k){if(O.current){const q=k.clientX-O.current.left,L=k.clientY-O.current.top;f({x:q,y:L})}}return T.useEffect(()=>{const k=q=>{const L=q.target;A?.contains(L)&&C(q,N)};return document.addEventListener("wheel",k,{passive:!1}),()=>document.removeEventListener("wheel",k,{passive:!1})},[j,A,N,C]),T.useEffect(P,[r,P]),zs(A,D),zs(x.content,D),m.jsx(hH,{scope:n,scrollbar:A,hasThumb:i,onThumbChange:Un(s),onThumbPointerUp:Un(l),onThumbPositionChange:P,onThumbPointerDown:Un(u),children:m.jsx(Ze.div,{...v,ref:S,style:{position:"absolute",...v.style},onPointerDown:et(e.onPointerDown,k=>{k.button===0&&(k.target.setPointerCapture(k.pointerId),O.current=A.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",x.viewport&&(x.viewport.style.scrollBehavior="auto"),M(k))}),onPointerMove:et(e.onPointerMove,M),onPointerUp:et(e.onPointerUp,k=>{const q=k.target;q.hasPointerCapture(k.pointerId)&&q.releasePointerCapture(k.pointerId),document.body.style.webkitUserSelect=E.current,x.viewport&&(x.viewport.style.scrollBehavior=""),O.current=null})})})}),dh="ScrollAreaThumb",D5=T.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=P5(dh,e.__scopeScrollArea);return m.jsx(Pr,{present:n||i.hasThumb,children:m.jsx(pH,{ref:t,...r})})}),pH=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...i}=e,s=vr(dh,n),l=P5(dh,n),{onThumbPositionChange:u}=l,d=At(t,g=>l.onThumbChange(g)),f=T.useRef(void 0),p=Cp(()=>{f.current&&(f.current(),f.current=void 0)},100);return T.useEffect(()=>{const g=s.viewport;if(g){const v=()=>{if(p(),!f.current){const x=vH(g,u);f.current=x,u()}};return u(),g.addEventListener("scroll",v),()=>g.removeEventListener("scroll",v)}},[s.viewport,p,u]),m.jsx(Ze.div,{"data-state":l.hasThumb?"visible":"hidden",...i,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:et(e.onPointerDownCapture,g=>{const x=g.target.getBoundingClientRect(),A=g.clientX-x.left,w=g.clientY-x.top;l.onThumbPointerDown({x:A,y:w})}),onPointerUp:et(e.onPointerUp,l.onThumbPointerUp)})});D5.displayName=dh;var LS="ScrollAreaCorner",M5=T.forwardRef((e,t)=>{const n=vr(LS,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?m.jsx(mH,{...e,ref:t}):null});M5.displayName=LS;var mH=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,i=vr(LS,n),[s,l]=T.useState(0),[u,d]=T.useState(0),f=!!(s&&u);return zs(i.scrollbarX,()=>{const p=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(p),d(p)}),zs(i.scrollbarY,()=>{const p=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(p),l(p)}),f?m.jsx(Ze.div,{...r,ref:t,style:{width:s,height:u,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function fh(e){return e?parseInt(e,10):0}function R5(e,t){const n=e/t;return isNaN(n)?0:n}function Tp(e){const t=R5(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function gH(e,t,n,r="ltr"){const i=Tp(n),s=i/2,l=t||s,u=i-l,d=n.scrollbar.paddingStart+l,f=n.scrollbar.size-n.scrollbar.paddingEnd-u,p=n.content-n.viewport,g=r==="ltr"?[0,p]:[p*-1,0];return k5([d,f],g)(e)}function aE(e,t,n="ltr"){const r=Tp(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-i,l=t.content-t.viewport,u=s-r,d=n==="ltr"?[0,l]:[l*-1,0],f=oH(e,d);return k5([0,l],[0,u])(f)}function k5(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function z5(e,t){return e>0&&e<t}var vH=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){const s={left:e.scrollLeft,top:e.scrollTop},l=n.left!==s.left,u=n.top!==s.top;(l||u)&&t(),n=s,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)};function Cp(e,t){const n=Un(e),r=T.useRef(0);return T.useEffect(()=>()=>window.clearTimeout(r.current),[]),T.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function zs(e,t){const n=Un(t);uo(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}var yH=O5,xH=C5,bH=M5;function iE({className:e,children:t,...n}){return m.jsxs(yH,{"data-loc":"client/src/components/ui/scroll-area.tsx:12","data-slot":"scroll-area",className:Be("relative",e),...n,children:[m.jsx(xH,{"data-loc":"client/src/components/ui/scroll-area.tsx:17","data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),m.jsx(wH,{"data-loc":"client/src/components/ui/scroll-area.tsx:23"}),m.jsx(bH,{"data-loc":"client/src/components/ui/scroll-area.tsx:24"})]})}function wH({className:e,orientation:t="vertical",...n}){return m.jsx(E5,{"data-loc":"client/src/components/ui/scroll-area.tsx:35","data-slot":"scroll-area-scrollbar",orientation:t,className:Be("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:m.jsx(D5,{"data-loc":"client/src/components/ui/scroll-area.tsx:48","data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}function SH(){const{isAuthenticated:e}=Dr(),[,t]=It(),[n,r]=T.useState("balcao"),[i,s]=T.useState(""),[l,u]=T.useState([]),[d,f]=T.useState(""),[p,g]=T.useState(""),[v,x]=T.useState(null),[A,w]=T.useState("dinheiro"),[S,O]=T.useState(()=>{const k=localStorage.getItem("dogmelina_tables");return k?JSON.parse(k):[{id:"1",name:"Mesa 01",status:"livre",orders:[]},{id:"2",name:"Mesa 02",status:"livre",orders:[]},{id:"3",name:"Mesa 03",status:"ocupada",orders:[{name:"Xis Bacon",price:27,quantity:2}]},{id:"4",name:"Mesa 04",status:"livre",orders:[]},{id:"5",name:"Mesa 05",status:"livre",orders:[]},{id:"6",name:"Mesa 06",status:"ocupada",orders:[{name:"Cachorro-Quente Especial",price:19,quantity:1}]}]});if(T.useEffect(()=>{localStorage.setItem("dogmelina_tables",JSON.stringify(S))},[S]),!e)return t("/admin/login"),null;const j=JSON.parse(localStorage.getItem("dogmelina_products")||JSON.stringify(Fu)).filter(k=>k.name.toLowerCase().includes(i.toLowerCase())),N=k=>{const q=l.find(L=>L.id===k.id);u(q?l.map(L=>L.id===k.id?{...L,quantity:L.quantity+1}:L):[...l,{...k,quantity:1}])},C=k=>{l.find(L=>L.id===k).quantity>1?u(l.map(L=>L.id===k?{...L,quantity:L.quantity-1}:L)):u(l.filter(L=>L.id!==k))},P=l.reduce((k,q)=>k+q.price*q.quantity,0),D=k=>{if(l.length===0)return He.error("Carrinho vazio");const L=parseInt(localStorage.getItem("dogmelina_last_senha")||"0")+1,X=`${k==="balcao"?"B":k==="mesa"?"M":"T"}${L.toString().padStart(3,"0")}`;localStorage.setItem("dogmelina_last_senha",L.toString());const J={id:`PDV-${Math.floor(Math.random()*1e4)}`,customerName:d||(k==="mesa"?`Mesa ${v}`:"Cliente Balcão"),customerPhone:p,items:l,total:P,status:"preparo",type:k,paymentMethod:A,senha:X,createdAt:new Date().toISOString()},W=JSON.parse(localStorage.getItem("dogmelina_admin_orders")||"[]");localStorage.setItem("dogmelina_admin_orders",JSON.stringify([J,...W])),k==="mesa"&&v&&O(S.map(z=>z.id===v?{...z,status:"ocupada",orders:[...z.orders,...l]}:z)),u([]),f(""),g(""),x(null),He.success(`Pedido Finalizado! Senha: ${X}`)},M=k=>{const q=S.find(U=>U.id===k),L=q.orders.reduce((U,X)=>U+X.price*X.quantity,0);confirm(`Fechar conta da ${q.name}? Total: R$ ${L.toFixed(2)}`)&&(O(S.map(U=>U.id===k?{...U,status:"livre",orders:[]}:U)),He.success(`${q.name} liberada!`))};return m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:143",className:"h-screen bg-background flex flex-col overflow-hidden",children:[m.jsxs("header",{"data-loc":"client/src/pages/AdminPDV.tsx:144",className:"bg-white border-b border-border px-6 py-4 flex items-center justify-between shrink-0",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:145",className:"flex items-center gap-4",children:[m.jsx(ye,{"data-loc":"client/src/pages/AdminPDV.tsx:146",variant:"ghost",size:"icon",onClick:()=>t("/admin/dashboard"),className:"rounded-full",children:m.jsx(Kn,{"data-loc":"client/src/pages/AdminPDV.tsx:147",size:20})}),m.jsx("h1",{"data-loc":"client/src/pages/AdminPDV.tsx:149",className:"text-xl font-black",children:"PDV Profissional"})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:151",className:"flex bg-secondary/30 p-1 rounded-2xl",children:[m.jsxs("button",{"data-loc":"client/src/pages/AdminPDV.tsx:152",onClick:()=>r("balcao"),className:Be("px-6 py-2 rounded-xl text-xs font-black uppercase transition-all flex items-center gap-2",n==="balcao"?"bg-white shadow-sm text-primary":"text-muted-foreground"),children:[m.jsx(N3,{"data-loc":"client/src/pages/AdminPDV.tsx:153",size:16})," Balcão"]}),m.jsxs("button",{"data-loc":"client/src/pages/AdminPDV.tsx:155",onClick:()=>r("mesas"),className:Be("px-6 py-2 rounded-xl text-xs font-black uppercase transition-all flex items-center gap-2",n==="mesas"?"bg-white shadow-sm text-primary":"text-muted-foreground"),children:[m.jsx(ch,{"data-loc":"client/src/pages/AdminPDV.tsx:156",size:16})," Mesas"]}),m.jsxs("button",{"data-loc":"client/src/pages/AdminPDV.tsx:158",onClick:()=>r("telefone"),className:Be("px-6 py-2 rounded-xl text-xs font-black uppercase transition-all flex items-center gap-2",n==="telefone"?"bg-white shadow-sm text-primary":"text-muted-foreground"),children:[m.jsx(oq,{"data-loc":"client/src/pages/AdminPDV.tsx:159",size:16})," Telefone"]})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:164",className:"flex-1 flex overflow-hidden",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:166",className:"flex-1 flex flex-col p-6 border-r border-border bg-secondary/10",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:167",className:"relative mb-6",children:[m.jsx(hl,{"data-loc":"client/src/pages/AdminPDV.tsx:168",className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground",size:20}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminPDV.tsx:169",placeholder:"Buscar produto...",className:"pl-12 h-14 rounded-2xl bg-white border-none shadow-sm font-bold",value:i,onChange:k=>s(k.target.value)})]}),m.jsx(iE,{"data-loc":"client/src/pages/AdminPDV.tsx:177",className:"flex-1",children:n==="mesas"?m.jsx("div",{"data-loc":"client/src/pages/AdminPDV.tsx:179",className:"grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 pb-6",children:S.map(k=>m.jsxs(fn,{"data-loc":"client/src/pages/AdminPDV.tsx:181",onClick:()=>x(k.id),className:Be("p-6 rounded-[32px] border-2 transition-all cursor-pointer flex flex-col items-center gap-3",v===k.id?"border-primary bg-primary/5":k.status==="ocupada"?"border-orange-200 bg-orange-50":"border-transparent bg-white"),children:[m.jsx("div",{"data-loc":"client/src/pages/AdminPDV.tsx:186",className:Be("w-14 h-14 rounded-2xl flex items-center justify-center",k.status==="ocupada"?"bg-orange-500 text-white":"bg-secondary/50 text-muted-foreground"),children:m.jsx(ch,{"data-loc":"client/src/pages/AdminPDV.tsx:187",size:28})}),m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:189",className:"text-center",children:[m.jsx("h4",{"data-loc":"client/src/pages/AdminPDV.tsx:190",className:"font-black text-lg",children:k.name}),m.jsx("p",{"data-loc":"client/src/pages/AdminPDV.tsx:191",className:Be("text-[10px] font-black uppercase",k.status==="ocupada"?"text-orange-600":"text-muted-foreground"),children:k.status==="ocupada"?`R$ ${k.orders.reduce((q,L)=>q+L.price*L.quantity,0).toFixed(2)}`:"Livre"})]}),k.status==="ocupada"&&m.jsx(ye,{"data-loc":"client/src/pages/AdminPDV.tsx:196",variant:"ghost",size:"sm",onClick:q=>{q.stopPropagation(),M(k.id)},className:"text-red-500 font-black text-[10px] uppercase hover:bg-red-50",children:"Fechar Conta"})]},k.id))}):m.jsx("div",{"data-loc":"client/src/pages/AdminPDV.tsx:202",className:"grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 pb-6",children:j.map(k=>m.jsxs(fn,{"data-loc":"client/src/pages/AdminPDV.tsx:204",onClick:()=>N(k),className:"p-3 rounded-[32px] border-none shadow-sm bg-white hover:shadow-xl hover:shadow-primary/5 transition-all cursor-pointer group",children:[m.jsx("div",{"data-loc":"client/src/pages/AdminPDV.tsx:205",className:"aspect-square rounded-[24px] overflow-hidden mb-3 bg-secondary/20",children:m.jsx("img",{"data-loc":"client/src/pages/AdminPDV.tsx:206",src:k.image,alt:k.name,className:"w-full h-full object-cover group-hover:scale-110 transition-transform"})}),m.jsx("h4",{"data-loc":"client/src/pages/AdminPDV.tsx:208",className:"font-black text-sm line-clamp-1",children:k.name}),m.jsxs("p",{"data-loc":"client/src/pages/AdminPDV.tsx:209",className:"text-primary font-black",children:["R$ ",k.price.toFixed(2)]})]},k.id))})})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:218",className:"w-[400px] flex flex-col bg-white shrink-0",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:219",className:"p-6 border-b border-border flex items-center gap-3",children:[m.jsx("div",{"data-loc":"client/src/pages/AdminPDV.tsx:220",className:"w-10 h-10 rounded-xl bg-primary text-white flex items-center justify-center",children:m.jsx(m1,{"data-loc":"client/src/pages/AdminPDV.tsx:221",size:20})}),m.jsx("h3",{"data-loc":"client/src/pages/AdminPDV.tsx:223",className:"font-black text-xl",children:"Pedido Atual"})]}),m.jsx(iE,{"data-loc":"client/src/pages/AdminPDV.tsx:226",className:"flex-1 p-6",children:l.length===0?m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:228",className:"h-full flex flex-col items-center justify-center text-muted-foreground opacity-20",children:[m.jsx(m1,{"data-loc":"client/src/pages/AdminPDV.tsx:229",size:64,className:"mb-4"}),m.jsx("p",{"data-loc":"client/src/pages/AdminPDV.tsx:230",className:"font-bold",children:"Carrinho Vazio"})]}):m.jsx("div",{"data-loc":"client/src/pages/AdminPDV.tsx:233",className:"space-y-4",children:l.map(k=>m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:235",className:"flex justify-between items-center",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:236",className:"flex-1",children:[m.jsx("h5",{"data-loc":"client/src/pages/AdminPDV.tsx:237",className:"font-bold text-sm",children:k.name}),m.jsxs("p",{"data-loc":"client/src/pages/AdminPDV.tsx:238",className:"text-xs text-primary font-bold",children:["R$ ",k.price.toFixed(2)," x ",k.quantity]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:240",className:"flex items-center gap-2 bg-secondary/30 rounded-lg p-1",children:[m.jsx("button",{"data-loc":"client/src/pages/AdminPDV.tsx:241",onClick:()=>C(k.id),className:"w-7 h-7 rounded-lg flex items-center justify-center hover:text-primary",children:m.jsx(R3,{"data-loc":"client/src/pages/AdminPDV.tsx:241",size:14})}),m.jsx("span",{"data-loc":"client/src/pages/AdminPDV.tsx:242",className:"font-black text-sm w-4 text-center",children:k.quantity}),m.jsx("button",{"data-loc":"client/src/pages/AdminPDV.tsx:243",onClick:()=>N(k),className:"w-7 h-7 rounded-lg flex items-center justify-center hover:text-primary",children:m.jsx(Pa,{"data-loc":"client/src/pages/AdminPDV.tsx:243",size:14})})]})]},k.id))})}),m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:251",className:"p-6 bg-secondary/10 border-t border-border space-y-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:252",className:"space-y-3",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:253",className:"relative",children:[m.jsx(ks,{"data-loc":"client/src/pages/AdminPDV.tsx:254",className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",size:16}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminPDV.tsx:255",placeholder:"Nome do Cliente",className:"pl-10 h-12 rounded-xl bg-white border-border font-bold",value:d,onChange:k=>f(k.target.value)})]}),n==="telefone"&&m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:263",className:"relative",children:[m.jsx(yp,{"data-loc":"client/src/pages/AdminPDV.tsx:264",className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",size:16}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminPDV.tsx:265",placeholder:"Telefone",className:"pl-10 h-12 rounded-xl bg-white border-border font-bold",value:p,onChange:k=>g(k.target.value)})]})]}),m.jsx("div",{"data-loc":"client/src/pages/AdminPDV.tsx:275",className:"grid grid-cols-3 gap-2",children:[{id:"dinheiro",icon:T3},{id:"cartao",icon:lh},{id:"pix",icon:AS}].map(k=>m.jsxs("button",{"data-loc":"client/src/pages/AdminPDV.tsx:281",onClick:()=>w(k.id),className:Be("flex flex-col items-center justify-center p-2 rounded-xl border transition-all",A===k.id?"bg-primary text-white border-primary":"bg-white border-border text-muted-foreground"),children:[m.jsx(k.icon,{"data-loc":"client/src/pages/AdminPDV.tsx:282",size:20}),m.jsx("span",{"data-loc":"client/src/pages/AdminPDV.tsx:283",className:"text-[10px] font-black mt-1 uppercase",children:k.id})]},k.id))}),m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:288",className:"pt-4 border-t border-border/50",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminPDV.tsx:289",className:"flex justify-between items-center mb-4",children:[m.jsx("span",{"data-loc":"client/src/pages/AdminPDV.tsx:290",className:"font-bold text-muted-foreground uppercase text-xs tracking-widest",children:"Total"}),m.jsxs("span",{"data-loc":"client/src/pages/AdminPDV.tsx:291",className:"text-2xl font-black text-primary",children:["R$ ",P.toFixed(2)]})]}),m.jsx(ye,{"data-loc":"client/src/pages/AdminPDV.tsx:293",onClick:()=>D(n==="mesas"?"mesa":n),className:"w-full h-14 rounded-2xl text-lg font-black shadow-lg shadow-primary/20",disabled:l.length===0,children:n==="mesas"?"LANÇAR NA MESA":"FINALIZAR E IMPRIMIR"})]})]})]})]})]})}function AH(){const{isAuthenticated:e,isStoreOpen:t,toggleStore:n,autoprint:r,setAutoprint:i}=Dr(),[,s]=It(),[l,u]=T.useState(()=>{const p=localStorage.getItem("dogmelina_settings");return p?JSON.parse(p):{whatsapp:"5511999999999",openingTime:"18:00",closingTime:"23:59",deliveryFee:"5.00",minOrderValue:"20.00"}});if(!e)return s("/admin/login"),null;const d=()=>{i(!r),He.success(`Impressão automática ${r?"desativada":"ativada"}`)},f=()=>{localStorage.setItem("dogmelina_settings",JSON.stringify(l)),He.success("Configurações salvas com sucesso!")};return m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:43",className:"min-h-screen bg-background",children:[m.jsx("header",{"data-loc":"client/src/pages/AdminSettings.tsx:45",className:"bg-white border-b border-border sticky top-0 z-50 shadow-sm",children:m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:46",className:"max-w-2xl mx-auto px-6 py-4 flex items-center gap-4",children:[m.jsx("button",{"data-loc":"client/src/pages/AdminSettings.tsx:47",onClick:()=>s("/admin/dashboard"),className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center hover:bg-secondary/80 transition-colors",children:m.jsx(Kn,{"data-loc":"client/src/pages/AdminSettings.tsx:51",size:20})}),m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:53",children:[m.jsx("h1",{"data-loc":"client/src/pages/AdminSettings.tsx:54",className:"text-2xl font-bold text-foreground",children:"Configurações"}),m.jsx("p",{"data-loc":"client/src/pages/AdminSettings.tsx:55",className:"text-sm text-muted-foreground",children:"Gerenciar loja e integrações"})]})]})}),m.jsx("div",{"data-loc":"client/src/pages/AdminSettings.tsx:60",className:"max-w-2xl mx-auto px-6 py-8 pb-24",children:m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:61",className:"space-y-6",children:[m.jsxs("section",{"data-loc":"client/src/pages/AdminSettings.tsx:63",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:64",className:"flex items-center justify-between mb-6",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:65",className:"flex items-center gap-3",children:[m.jsx(k3,{"data-loc":"client/src/pages/AdminSettings.tsx:66",size:24,className:t?"text-green-600":"text-red-600"}),m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:67",children:[m.jsx("h2",{"data-loc":"client/src/pages/AdminSettings.tsx:68",className:"text-lg font-bold text-foreground",children:"Status da Loja"}),m.jsx("p",{"data-loc":"client/src/pages/AdminSettings.tsx:69",className:"text-sm text-muted-foreground",children:"Abrir ou fechar para novos pedidos"})]})]}),m.jsx(xn,{"data-loc":"client/src/pages/AdminSettings.tsx:72",className:t?"bg-green-100 text-green-800 border-none":"bg-red-100 text-red-800 border-none",children:t?"Aberta":"Fechada"})]}),m.jsx(ye,{"data-loc":"client/src/pages/AdminSettings.tsx:77",className:"w-full rounded-xl h-12 font-bold",onClick:n,variant:t?"destructive":"default",children:t?"Fechar Loja":"Abrir Loja"})]}),m.jsxs("section",{"data-loc":"client/src/pages/AdminSettings.tsx:87",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:88",className:"flex items-center gap-3 mb-6",children:[m.jsx(wS,{"data-loc":"client/src/pages/AdminSettings.tsx:89",size:24,className:"text-green-600"}),m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:90",children:[m.jsx("h2",{"data-loc":"client/src/pages/AdminSettings.tsx:91",className:"text-lg font-bold text-foreground",children:"WhatsApp da Loja"}),m.jsx("p",{"data-loc":"client/src/pages/AdminSettings.tsx:92",className:"text-sm text-muted-foreground",children:"Número que receberá os pedidos"})]})]}),m.jsx("div",{"data-loc":"client/src/pages/AdminSettings.tsx:96",className:"space-y-4",children:m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:97",children:[m.jsx(Dt,{"data-loc":"client/src/pages/AdminSettings.tsx:98",className:"text-sm font-medium mb-2 block",children:"Número do WhatsApp (com DDD)"}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminSettings.tsx:99",placeholder:"Ex: 5511999999999",value:l.whatsapp,onChange:p=>u({...l,whatsapp:p.target.value}),className:"bg-secondary/30 border-border h-12 rounded-xl"}),m.jsx("p",{"data-loc":"client/src/pages/AdminSettings.tsx:105",className:"text-[10px] text-muted-foreground mt-2 px-1",children:"* Use o formato internacional: Código do País + DDD + Número (Ex: 5511999999999)"})]})})]}),m.jsxs("section",{"data-loc":"client/src/pages/AdminSettings.tsx:113",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:114",className:"flex items-center gap-3 mb-6",children:[m.jsx(_3,{"data-loc":"client/src/pages/AdminSettings.tsx:115",size:24,className:"text-primary"}),m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:116",children:[m.jsx("h2",{"data-loc":"client/src/pages/AdminSettings.tsx:117",className:"text-lg font-bold text-foreground",children:"Valores e Taxas"}),m.jsx("p",{"data-loc":"client/src/pages/AdminSettings.tsx:118",className:"text-sm text-muted-foreground",children:"Configure taxas e valores mínimos"})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:122",className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:123",children:[m.jsx(Dt,{"data-loc":"client/src/pages/AdminSettings.tsx:124",className:"text-sm font-medium mb-2 block",children:"Taxa de Entrega (R$)"}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminSettings.tsx:125",type:"number",value:l.deliveryFee,onChange:p=>u({...l,deliveryFee:p.target.value}),className:"bg-secondary/30 border-border h-12 rounded-xl"})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:132",children:[m.jsx(Dt,{"data-loc":"client/src/pages/AdminSettings.tsx:133",className:"text-sm font-medium mb-2 block",children:"Pedido Mínimo (R$)"}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminSettings.tsx:134",type:"number",value:l.minOrderValue,onChange:p=>u({...l,minOrderValue:p.target.value}),className:"bg-secondary/30 border-border h-12 rounded-xl"})]})]})]}),m.jsxs("section",{"data-loc":"client/src/pages/AdminSettings.tsx:145",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:146",className:"flex items-center gap-3 mb-6",children:[m.jsx(fl,{"data-loc":"client/src/pages/AdminSettings.tsx:147",size:24,className:"text-primary"}),m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:148",children:[m.jsx("h2",{"data-loc":"client/src/pages/AdminSettings.tsx:149",className:"text-lg font-bold text-foreground",children:"Horário de Funcionamento"}),m.jsx("p",{"data-loc":"client/src/pages/AdminSettings.tsx:150",className:"text-sm text-muted-foreground",children:"Configure os horários de atendimento"})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:154",className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:155",children:[m.jsx(Dt,{"data-loc":"client/src/pages/AdminSettings.tsx:156",className:"text-sm font-medium mb-2 block",children:"Abre às"}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminSettings.tsx:157",type:"time",value:l.openingTime,onChange:p=>u({...l,openingTime:p.target.value}),className:"bg-secondary/30 border-border h-12 rounded-xl"})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:164",children:[m.jsx(Dt,{"data-loc":"client/src/pages/AdminSettings.tsx:165",className:"text-sm font-medium mb-2 block",children:"Fecha às"}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminSettings.tsx:166",type:"time",value:l.closingTime,onChange:p=>u({...l,closingTime:p.target.value}),className:"bg-secondary/30 border-border h-12 rounded-xl"})]})]})]}),m.jsxs("section",{"data-loc":"client/src/pages/AdminSettings.tsx:177",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:178",className:"flex items-center justify-between mb-6",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:179",className:"flex items-center gap-3",children:[m.jsx(z3,{"data-loc":"client/src/pages/AdminSettings.tsx:180",size:24,className:"text-primary"}),m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:181",children:[m.jsx("h2",{"data-loc":"client/src/pages/AdminSettings.tsx:182",className:"text-lg font-bold text-foreground",children:"Impressão Automática"}),m.jsx("p",{"data-loc":"client/src/pages/AdminSettings.tsx:183",className:"text-sm text-muted-foreground",children:"Imprimir pedidos automaticamente"})]})]}),m.jsx(xn,{"data-loc":"client/src/pages/AdminSettings.tsx:186",className:r?"bg-green-100 text-green-800 border-none":"bg-gray-100 text-gray-800 border-none",children:r?"Ativada":"Desativada"})]}),m.jsx(ye,{"data-loc":"client/src/pages/AdminSettings.tsx:191",className:"w-full rounded-xl h-12 font-bold",onClick:d,variant:r?"destructive":"default",children:r?"Desativar Impressão Automática":"Ativar Impressão Automática"})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminSettings.tsx:201",className:"flex gap-3 sticky bottom-6 z-10",children:[m.jsx(ye,{"data-loc":"client/src/pages/AdminSettings.tsx:202",variant:"outline",className:"flex-1 rounded-xl h-14 font-bold bg-white shadow-lg",onClick:()=>s("/admin/dashboard"),children:"Cancelar"}),m.jsx(ye,{"data-loc":"client/src/pages/AdminSettings.tsx:209",className:"flex-1 rounded-xl h-14 font-bold shadow-lg",onClick:f,children:"Salvar Configurações"})]})]})})]})}var Kv,oE;function _n(){if(oE)return Kv;oE=1;var e=Array.isArray;return Kv=e,Kv}var Xv,sE;function L5(){if(sE)return Xv;sE=1;var e=typeof Tf=="object"&&Tf&&Tf.Object===Object&&Tf;return Xv=e,Xv}var Yv,lE;function Xr(){if(lE)return Yv;lE=1;var e=L5(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Yv=n,Yv}var Wv,cE;function Ku(){if(cE)return Wv;cE=1;var e=Xr(),t=e.Symbol;return Wv=t,Wv}var Zv,uE;function jH(){if(uE)return Zv;uE=1;var e=Ku(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function s(l){var u=n.call(l,i),d=l[i];try{l[i]=void 0;var f=!0}catch{}var p=r.call(l);return f&&(u?l[i]=d:delete l[i]),p}return Zv=s,Zv}var Qv,dE;function OH(){if(dE)return Qv;dE=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Qv=n,Qv}var Jv,fE;function Da(){if(fE)return Jv;fE=1;var e=Ku(),t=jH(),n=OH(),r="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function l(u){return u==null?u===void 0?i:r:s&&s in Object(u)?t(u):n(u)}return Jv=l,Jv}var ey,hE;function Ma(){if(hE)return ey;hE=1;function e(t){return t!=null&&typeof t=="object"}return ey=e,ey}var ty,pE;function vl(){if(pE)return ty;pE=1;var e=Da(),t=Ma(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return ty=r,ty}var ny,mE;function $S(){if(mE)return ny;mE=1;var e=_n(),t=vl(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(s,l){if(e(s))return!1;var u=typeof s;return u=="number"||u=="symbol"||u=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||l!=null&&s in Object(l)}return ny=i,ny}var ry,gE;function bi(){if(gE)return ry;gE=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return ry=e,ry}var ay,vE;function BS(){if(vE)return ay;vE=1;var e=Da(),t=bi(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function l(u){if(!t(u))return!1;var d=e(u);return d==r||d==i||d==n||d==s}return ay=l,ay}var iy,yE;function TH(){if(yE)return iy;yE=1;var e=Xr(),t=e["__core-js_shared__"];return iy=t,iy}var oy,xE;function CH(){if(xE)return oy;xE=1;var e=TH(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return oy=n,oy}var sy,bE;function $5(){if(bE)return sy;bE=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return sy=n,sy}var ly,wE;function EH(){if(wE)return ly;wE=1;var e=BS(),t=CH(),n=bi(),r=$5(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,d=l.toString,f=u.hasOwnProperty,p=RegExp("^"+d.call(f).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(v){if(!n(v)||t(v))return!1;var x=e(v)?p:s;return x.test(r(v))}return ly=g,ly}var cy,SE;function _H(){if(SE)return cy;SE=1;function e(t,n){return t?.[n]}return cy=e,cy}var uy,AE;function wo(){if(AE)return uy;AE=1;var e=EH(),t=_H();function n(r,i){var s=t(r,i);return e(s)?s:void 0}return uy=n,uy}var dy,jE;function Ep(){if(jE)return dy;jE=1;var e=wo(),t=e(Object,"create");return dy=t,dy}var fy,OE;function PH(){if(OE)return fy;OE=1;var e=Ep();function t(){this.__data__=e?e(null):{},this.size=0}return fy=t,fy}var hy,TE;function NH(){if(TE)return hy;TE=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return hy=e,hy}var py,CE;function DH(){if(CE)return py;CE=1;var e=Ep(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(s){var l=this.__data__;if(e){var u=l[s];return u===t?void 0:u}return r.call(l,s)?l[s]:void 0}return py=i,py}var my,EE;function MH(){if(EE)return my;EE=1;var e=Ep(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var s=this.__data__;return e?s[i]!==void 0:n.call(s,i)}return my=r,my}var gy,_E;function RH(){if(_E)return gy;_E=1;var e=Ep(),t="__lodash_hash_undefined__";function n(r,i){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&i===void 0?t:i,this}return gy=n,gy}var vy,PE;function kH(){if(PE)return vy;PE=1;var e=PH(),t=NH(),n=DH(),r=MH(),i=RH();function s(l){var u=-1,d=l==null?0:l.length;for(this.clear();++u<d;){var f=l[u];this.set(f[0],f[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,vy=s,vy}var yy,NE;function zH(){if(NE)return yy;NE=1;function e(){this.__data__=[],this.size=0}return yy=e,yy}var xy,DE;function IS(){if(DE)return xy;DE=1;function e(t,n){return t===n||t!==t&&n!==n}return xy=e,xy}var by,ME;function _p(){if(ME)return by;ME=1;var e=IS();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return by=t,by}var wy,RE;function LH(){if(RE)return wy;RE=1;var e=_p(),t=Array.prototype,n=t.splice;function r(i){var s=this.__data__,l=e(s,i);if(l<0)return!1;var u=s.length-1;return l==u?s.pop():n.call(s,l,1),--this.size,!0}return wy=r,wy}var Sy,kE;function $H(){if(kE)return Sy;kE=1;var e=_p();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return Sy=t,Sy}var Ay,zE;function BH(){if(zE)return Ay;zE=1;var e=_p();function t(n){return e(this.__data__,n)>-1}return Ay=t,Ay}var jy,LE;function IH(){if(LE)return jy;LE=1;var e=_p();function t(n,r){var i=this.__data__,s=e(i,n);return s<0?(++this.size,i.push([n,r])):i[s][1]=r,this}return jy=t,jy}var Oy,$E;function Pp(){if($E)return Oy;$E=1;var e=zH(),t=LH(),n=$H(),r=BH(),i=IH();function s(l){var u=-1,d=l==null?0:l.length;for(this.clear();++u<d;){var f=l[u];this.set(f[0],f[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,Oy=s,Oy}var Ty,BE;function qS(){if(BE)return Ty;BE=1;var e=wo(),t=Xr(),n=e(t,"Map");return Ty=n,Ty}var Cy,IE;function qH(){if(IE)return Cy;IE=1;var e=kH(),t=Pp(),n=qS();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Cy=r,Cy}var Ey,qE;function VH(){if(qE)return Ey;qE=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Ey=e,Ey}var _y,VE;function Np(){if(VE)return _y;VE=1;var e=VH();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return _y=t,_y}var Py,UE;function UH(){if(UE)return Py;UE=1;var e=Np();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Py=t,Py}var Ny,HE;function HH(){if(HE)return Ny;HE=1;var e=Np();function t(n){return e(this,n).get(n)}return Ny=t,Ny}var Dy,FE;function FH(){if(FE)return Dy;FE=1;var e=Np();function t(n){return e(this,n).has(n)}return Dy=t,Dy}var My,GE;function GH(){if(GE)return My;GE=1;var e=Np();function t(n,r){var i=e(this,n),s=i.size;return i.set(n,r),this.size+=i.size==s?0:1,this}return My=t,My}var Ry,KE;function VS(){if(KE)return Ry;KE=1;var e=qH(),t=UH(),n=HH(),r=FH(),i=GH();function s(l){var u=-1,d=l==null?0:l.length;for(this.clear();++u<d;){var f=l[u];this.set(f[0],f[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,Ry=s,Ry}var ky,XE;function B5(){if(XE)return ky;XE=1;var e=VS(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var s=function(){var l=arguments,u=i?i.apply(this,l):l[0],d=s.cache;if(d.has(u))return d.get(u);var f=r.apply(this,l);return s.cache=d.set(u,f)||d,f};return s.cache=new(n.Cache||e),s}return n.Cache=e,ky=n,ky}var zy,YE;function KH(){if(YE)return zy;YE=1;var e=B5(),t=500;function n(r){var i=e(r,function(l){return s.size===t&&s.clear(),l}),s=i.cache;return i}return zy=n,zy}var Ly,WE;function XH(){if(WE)return Ly;WE=1;var e=KH(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(t,function(l,u,d,f){s.push(d?f.replace(n,"$1"):u||l)}),s});return Ly=r,Ly}var $y,ZE;function US(){if(ZE)return $y;ZE=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=Array(i);++r<i;)s[r]=n(t[r],r,t);return s}return $y=e,$y}var By,QE;function YH(){if(QE)return By;QE=1;var e=Ku(),t=US(),n=_n(),r=vl(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function l(u){if(typeof u=="string")return u;if(n(u))return t(u,l)+"";if(r(u))return s?s.call(u):"";var d=u+"";return d=="0"&&1/u==-1/0?"-0":d}return By=l,By}var Iy,JE;function I5(){if(JE)return Iy;JE=1;var e=YH();function t(n){return n==null?"":e(n)}return Iy=t,Iy}var qy,e_;function q5(){if(e_)return qy;e_=1;var e=_n(),t=$S(),n=XH(),r=I5();function i(s,l){return e(s)?s:t(s,l)?[s]:n(r(s))}return qy=i,qy}var Vy,t_;function Dp(){if(t_)return Vy;t_=1;var e=vl();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Vy=t,Vy}var Uy,n_;function HS(){if(n_)return Uy;n_=1;var e=q5(),t=Dp();function n(r,i){i=e(i,r);for(var s=0,l=i.length;r!=null&&s<l;)r=r[t(i[s++])];return s&&s==l?r:void 0}return Uy=n,Uy}var Hy,r_;function V5(){if(r_)return Hy;r_=1;var e=HS();function t(n,r,i){var s=n==null?void 0:e(n,r);return s===void 0?i:s}return Hy=t,Hy}var WH=V5();const Fn=tt(WH);var Fy,a_;function ZH(){if(a_)return Fy;a_=1;function e(t){return t==null}return Fy=e,Fy}var QH=ZH();const Ne=tt(QH);var Gy,i_;function JH(){if(i_)return Gy;i_=1;var e=Da(),t=_n(),n=Ma(),r="[object String]";function i(s){return typeof s=="string"||!t(s)&&n(s)&&e(s)==r}return Gy=i,Gy}var eF=JH();const ho=tt(eF);var tF=BS();const _e=tt(tF);var nF=bi();const yl=tt(nF);var Ky={exports:{}},Qe={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var o_;function rF(){if(o_)return Qe;o_=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),A;A=Symbol.for("react.module.reference");function w(S){if(typeof S=="object"&&S!==null){var O=S.$$typeof;switch(O){case e:switch(S=S.type,S){case n:case i:case r:case f:case p:return S;default:switch(S=S&&S.$$typeof,S){case u:case l:case d:case v:case g:case s:return S;default:return O}}case t:return O}}}return Qe.ContextConsumer=l,Qe.ContextProvider=s,Qe.Element=e,Qe.ForwardRef=d,Qe.Fragment=n,Qe.Lazy=v,Qe.Memo=g,Qe.Portal=t,Qe.Profiler=i,Qe.StrictMode=r,Qe.Suspense=f,Qe.SuspenseList=p,Qe.isAsyncMode=function(){return!1},Qe.isConcurrentMode=function(){return!1},Qe.isContextConsumer=function(S){return w(S)===l},Qe.isContextProvider=function(S){return w(S)===s},Qe.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Qe.isForwardRef=function(S){return w(S)===d},Qe.isFragment=function(S){return w(S)===n},Qe.isLazy=function(S){return w(S)===v},Qe.isMemo=function(S){return w(S)===g},Qe.isPortal=function(S){return w(S)===t},Qe.isProfiler=function(S){return w(S)===i},Qe.isStrictMode=function(S){return w(S)===r},Qe.isSuspense=function(S){return w(S)===f},Qe.isSuspenseList=function(S){return w(S)===p},Qe.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===i||S===r||S===f||S===p||S===x||typeof S=="object"&&S!==null&&(S.$$typeof===v||S.$$typeof===g||S.$$typeof===s||S.$$typeof===l||S.$$typeof===d||S.$$typeof===A||S.getModuleId!==void 0)},Qe.typeOf=w,Qe}var s_;function aF(){return s_||(s_=1,Ky.exports=rF()),Ky.exports}var iF=aF(),Xy,l_;function U5(){if(l_)return Xy;l_=1;var e=Da(),t=Ma(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Xy=r,Xy}var Yy,c_;function oF(){if(c_)return Yy;c_=1;var e=U5();function t(n){return e(n)&&n!=+n}return Yy=t,Yy}var sF=oF();const Xu=tt(sF);var lF=U5();const cF=tt(lF);var mn=function(t){return t===0?0:t>0?1:-1},Ji=function(t){return ho(t)&&t.indexOf("%")===t.length-1},de=function(t){return cF(t)&&!Xu(t)},uF=function(t){return Ne(t)},Gt=function(t){return de(t)||ho(t)},dF=0,xl=function(t){var n=++dF;return"".concat(t||"").concat(n)},gn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!de(t)&&!ho(t))return r;var s;if(Ji(t)){var l=t.indexOf("%");s=n*parseFloat(t.slice(0,l))/100}else s=+t;return Xu(s)&&(s=r),i&&s>n&&(s=n),s},pi=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},fF=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},Vn=function(t,n){return de(t)&&de(n)?function(r){return t+r*(n-t)}:function(){return n}};function hh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Fn(r,t))===n})}var hF=function(t,n){return de(t)&&de(n)?t-n:ho(t)&&ho(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Ns(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function C1(e){"@babel/helpers - typeof";return C1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C1(e)}var pF=["viewBox","children"],mF=["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","colorRendering","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"],u_=["points","pathLength"],Wy={svg:pF,polygon:u_,polyline:u_},FS=["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","onDragCapture","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"],ph=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(T.isValidElement(t)&&(r=t.props),!yl(r))return null;var i={};return Object.keys(r).forEach(function(s){FS.includes(s)&&(i[s]=n||function(l){return r[s](r,l)})}),i},gF=function(t,n,r){return function(i){return t(n,r,i),null}},po=function(t,n,r){if(!yl(t)||C1(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(s){var l=t[s];FS.includes(s)&&typeof l=="function"&&(i||(i={}),i[s]=gF(l,n,r))}),i},vF=["children"],yF=["children"];function d_(e,t){if(e==null)return{};var n=xF(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xF(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function E1(e){"@babel/helpers - typeof";return E1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E1(e)}var f_={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"},Sa=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},h_=null,Zy=null,GS=function e(t){if(t===h_&&Array.isArray(Zy))return Zy;var n=[];return T.Children.forEach(t,function(r){Ne(r)||(iF.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Zy=n,h_=t,n};function Gn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Sa(i)}):r=[Sa(t)],GS(e).forEach(function(i){var s=Fn(i,"type.displayName")||Fn(i,"type.name");r.indexOf(s)!==-1&&n.push(i)}),n}function qn(e,t){var n=Gn(e,t);return n&&n[0]}var p_=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!de(r)||r<=0||!de(i)||i<=0)},bF=["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"],wF=function(t){return t&&t.type&&ho(t.type)&&bF.indexOf(t.type)>=0},SF=function(t){return t&&E1(t)==="object"&&"clipDot"in t},AF=function(t,n,r,i){var s,l=(s=Wy?.[i])!==null&&s!==void 0?s:[];return n.startsWith("data-")||!_e(t)&&(i&&l.includes(n)||mF.includes(n))||r&&FS.includes(n)},je=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(T.isValidElement(t)&&(i=t.props),!yl(i))return null;var s={};return Object.keys(i).forEach(function(l){var u;AF((u=i)===null||u===void 0?void 0:u[l],l,n,r)&&(s[l]=i[l])}),s},_1=function e(t,n){if(t===n)return!0;var r=T.Children.count(t);if(r!==T.Children.count(n))return!1;if(r===0)return!0;if(r===1)return m_(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var s=t[i],l=n[i];if(Array.isArray(s)||Array.isArray(l)){if(!e(s,l))return!1}else if(!m_(s,l))return!1}return!0},m_=function(t,n){if(Ne(t)&&Ne(n))return!0;if(!Ne(t)&&!Ne(n)){var r=t.props||{},i=r.children,s=d_(r,vF),l=n.props||{},u=l.children,d=d_(l,yF);return i&&u?Ns(s,d)&&_1(i,u):!i&&!u?Ns(s,d):!1}return!1},g_=function(t,n){var r=[],i={};return GS(t).forEach(function(s,l){if(wF(s))r.push(s);else if(s){var u=Sa(s.type),d=n[u]||{},f=d.handler,p=d.once;if(f&&(!p||!i[u])){var g=f(s,u,l);r.push(g),i[u]=!0}}}),r},jF=function(t){var n=t&&t.type;return n&&f_[n]?f_[n]:null},OF=function(t,n){return GS(n).indexOf(t)},TF=["children","width","height","viewBox","className","style","title","desc"];function P1(){return P1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P1.apply(this,arguments)}function CF(e,t){if(e==null)return{};var n=EF(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function EF(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function N1(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,s=e.className,l=e.style,u=e.title,d=e.desc,f=CF(e,TF),p=i||{width:n,height:r,x:0,y:0},g=De("recharts-surface",s);return B.createElement("svg",P1({},je(f,!0,"svg"),{className:g,width:n,height:r,style:l,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),B.createElement("title",null,u),B.createElement("desc",null,d),t)}var _F=["children","className"];function D1(){return D1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D1.apply(this,arguments)}function PF(e,t){if(e==null)return{};var n=NF(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NF(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Xe=B.forwardRef(function(e,t){var n=e.children,r=e.className,i=PF(e,_F),s=De("recharts-layer",r);return B.createElement("g",D1({className:s},je(i,!0),{ref:t}),n)}),_r=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s]},Qy,v_;function DF(){if(v_)return Qy;v_=1;function e(t,n,r){var i=-1,s=t.length;n<0&&(n=-n>s?0:s+n),r=r>s?s:r,r<0&&(r+=s),s=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(s);++i<s;)l[i]=t[i+n];return l}return Qy=e,Qy}var Jy,y_;function MF(){if(y_)return Jy;y_=1;var e=DF();function t(n,r,i){var s=n.length;return i=i===void 0?s:i,!r&&i>=s?n:e(n,r,i)}return Jy=t,Jy}var ex,x_;function H5(){if(x_)return ex;x_=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,s="\\ufe0e\\ufe0f",l="\\u200d",u=RegExp("["+l+e+i+s+"]");function d(f){return u.test(f)}return ex=d,ex}var tx,b_;function RF(){if(b_)return tx;b_=1;function e(t){return t.split("")}return tx=e,tx}var nx,w_;function kF(){if(w_)return nx;w_=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,s="\\ufe0e\\ufe0f",l="["+e+"]",u="["+i+"]",d="\\ud83c[\\udffb-\\udfff]",f="(?:"+u+"|"+d+")",p="[^"+e+"]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",A=f+"?",w="["+s+"]?",S="(?:"+x+"(?:"+[p,g,v].join("|")+")"+w+A+")*",O=w+A+S,E="(?:"+[p+u+"?",u,g,v,l].join("|")+")",j=RegExp(d+"(?="+d+")|"+E+O,"g");function N(C){return C.match(j)||[]}return nx=N,nx}var rx,S_;function zF(){if(S_)return rx;S_=1;var e=RF(),t=H5(),n=kF();function r(i){return t(i)?n(i):e(i)}return rx=r,rx}var ax,A_;function LF(){if(A_)return ax;A_=1;var e=MF(),t=H5(),n=zF(),r=I5();function i(s){return function(l){l=r(l);var u=t(l)?n(l):void 0,d=u?u[0]:l.charAt(0),f=u?e(u,1).join(""):l.slice(1);return d[s]()+f}}return ax=i,ax}var ix,j_;function $F(){if(j_)return ix;j_=1;var e=LF(),t=e("toUpperCase");return ix=t,ix}var BF=$F();const Mp=tt(BF);function dt(e){return function(){return e}}const F5=Math.cos,mh=Math.sin,Mr=Math.sqrt,gh=Math.PI,Rp=2*gh,M1=Math.PI,R1=2*M1,Xi=1e-6,IF=R1-Xi;function G5(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function qF(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return G5;const n=10**t;return function(r){this._+=r[0];for(let i=1,s=r.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class VF{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?G5:qF(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,s,l){this._append`C${+t},${+n},${+r},${+i},${this._x1=+s},${this._y1=+l}`}arcTo(t,n,r,i,s){if(t=+t,n=+n,r=+r,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let l=this._x1,u=this._y1,d=r-t,f=i-n,p=l-t,g=u-n,v=p*p+g*g;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(v>Xi)if(!(Math.abs(g*d-f*p)>Xi)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-l,A=i-u,w=d*d+f*f,S=x*x+A*A,O=Math.sqrt(w),E=Math.sqrt(v),j=s*Math.tan((M1-Math.acos((w+v-S)/(2*O*E)))/2),N=j/E,C=j/O;Math.abs(N-1)>Xi&&this._append`L${t+N*p},${n+N*g}`,this._append`A${s},${s},0,0,${+(g*x>p*A)},${this._x1=t+C*d},${this._y1=n+C*f}`}}arc(t,n,r,i,s,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),d=r*Math.sin(i),f=t+u,p=n+d,g=1^l,v=l?i-s:s-i;this._x1===null?this._append`M${f},${p}`:(Math.abs(this._x1-f)>Xi||Math.abs(this._y1-p)>Xi)&&this._append`L${f},${p}`,r&&(v<0&&(v=v%R1+R1),v>IF?this._append`A${r},${r},0,1,${g},${t-u},${n-d}A${r},${r},0,1,${g},${this._x1=f},${this._y1=p}`:v>Xi&&this._append`A${r},${r},0,${+(v>=M1)},${g},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function KS(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new VF(t)}function XS(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function K5(e){this._context=e}K5.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function kp(e){return new K5(e)}function X5(e){return e[0]}function Y5(e){return e[1]}function W5(e,t){var n=dt(!0),r=null,i=kp,s=null,l=KS(u);e=typeof e=="function"?e:e===void 0?X5:dt(e),t=typeof t=="function"?t:t===void 0?Y5:dt(t);function u(d){var f,p=(d=XS(d)).length,g,v=!1,x;for(r==null&&(s=i(x=l())),f=0;f<=p;++f)!(f<p&&n(g=d[f],f,d))===v&&((v=!v)?s.lineStart():s.lineEnd()),v&&s.point(+e(g,f,d),+t(g,f,d));if(x)return s=null,x+""||null}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:dt(+d),u):e},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:dt(+d),u):t},u.defined=function(d){return arguments.length?(n=typeof d=="function"?d:dt(!!d),u):n},u.curve=function(d){return arguments.length?(i=d,r!=null&&(s=i(r)),u):i},u.context=function(d){return arguments.length?(d==null?r=s=null:s=i(r=d),u):r},u}function zf(e,t,n){var r=null,i=dt(!0),s=null,l=kp,u=null,d=KS(f);e=typeof e=="function"?e:e===void 0?X5:dt(+e),t=typeof t=="function"?t:dt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Y5:dt(+n);function f(g){var v,x,A,w=(g=XS(g)).length,S,O=!1,E,j=new Array(w),N=new Array(w);for(s==null&&(u=l(E=d())),v=0;v<=w;++v){if(!(v<w&&i(S=g[v],v,g))===O)if(O=!O)x=v,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),A=v-1;A>=x;--A)u.point(j[A],N[A]);u.lineEnd(),u.areaEnd()}O&&(j[v]=+e(S,v,g),N[v]=+t(S,v,g),u.point(r?+r(S,v,g):j[v],n?+n(S,v,g):N[v]))}if(E)return u=null,E+""||null}function p(){return W5().defined(i).curve(l).context(s)}return f.x=function(g){return arguments.length?(e=typeof g=="function"?g:dt(+g),r=null,f):e},f.x0=function(g){return arguments.length?(e=typeof g=="function"?g:dt(+g),f):e},f.x1=function(g){return arguments.length?(r=g==null?null:typeof g=="function"?g:dt(+g),f):r},f.y=function(g){return arguments.length?(t=typeof g=="function"?g:dt(+g),n=null,f):t},f.y0=function(g){return arguments.length?(t=typeof g=="function"?g:dt(+g),f):t},f.y1=function(g){return arguments.length?(n=g==null?null:typeof g=="function"?g:dt(+g),f):n},f.lineX0=f.lineY0=function(){return p().x(e).y(t)},f.lineY1=function(){return p().x(e).y(n)},f.lineX1=function(){return p().x(r).y(t)},f.defined=function(g){return arguments.length?(i=typeof g=="function"?g:dt(!!g),f):i},f.curve=function(g){return arguments.length?(l=g,s!=null&&(u=l(s)),f):l},f.context=function(g){return arguments.length?(g==null?s=u=null:u=l(s=g),f):s},f}class Z5{constructor(t,n){this._context=t,this._x=n}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(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function UF(e){return new Z5(e,!0)}function HF(e){return new Z5(e,!1)}const YS={draw(e,t){const n=Mr(t/gh);e.moveTo(n,0),e.arc(0,0,n,0,Rp)}},FF={draw(e,t){const n=Mr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Q5=Mr(1/3),GF=Q5*2,KF={draw(e,t){const n=Mr(t/GF),r=n*Q5;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},XF={draw(e,t){const n=Mr(t),r=-n/2;e.rect(r,r,n,n)}},YF=.8908130915292852,J5=mh(gh/10)/mh(7*gh/10),WF=mh(Rp/10)*J5,ZF=-F5(Rp/10)*J5,QF={draw(e,t){const n=Mr(t*YF),r=WF*n,i=ZF*n;e.moveTo(0,-n),e.lineTo(r,i);for(let s=1;s<5;++s){const l=Rp*s/5,u=F5(l),d=mh(l);e.lineTo(d*n,-u*n),e.lineTo(u*r-d*i,d*r+u*i)}e.closePath()}},ox=Mr(3),JF={draw(e,t){const n=-Mr(t/(ox*3));e.moveTo(0,n*2),e.lineTo(-ox*n,-n),e.lineTo(ox*n,-n),e.closePath()}},ar=-.5,ir=Mr(3)/2,k1=1/Mr(12),eG=(k1/2+1)*3,tG={draw(e,t){const n=Mr(t/eG),r=n/2,i=n*k1,s=r,l=n*k1+n,u=-s,d=l;e.moveTo(r,i),e.lineTo(s,l),e.lineTo(u,d),e.lineTo(ar*r-ir*i,ir*r+ar*i),e.lineTo(ar*s-ir*l,ir*s+ar*l),e.lineTo(ar*u-ir*d,ir*u+ar*d),e.lineTo(ar*r+ir*i,ar*i-ir*r),e.lineTo(ar*s+ir*l,ar*l-ir*s),e.lineTo(ar*u+ir*d,ar*d-ir*u),e.closePath()}};function nG(e,t){let n=null,r=KS(i);e=typeof e=="function"?e:dt(e||YS),t=typeof t=="function"?t:dt(t===void 0?64:+t);function i(){let s;if(n||(n=s=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),s)return n=null,s+""||null}return i.type=function(s){return arguments.length?(e=typeof s=="function"?s:dt(s),i):e},i.size=function(s){return arguments.length?(t=typeof s=="function"?s:dt(+s),i):t},i.context=function(s){return arguments.length?(n=s??null,i):n},i}function vh(){}function yh(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function e6(e){this._context=e}e6.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:yh(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:yh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rG(e){return new e6(e)}function t6(e){this._context=e}t6.prototype={areaStart:vh,areaEnd:vh,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:yh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function aG(e){return new t6(e)}function n6(e){this._context=e}n6.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:yh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iG(e){return new n6(e)}function r6(e){this._context=e}r6.prototype={areaStart:vh,areaEnd:vh,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function oG(e){return new r6(e)}function O_(e){return e<0?-1:1}function T_(e,t,n){var r=e._x1-e._x0,i=t-e._x1,s=(e._y1-e._y0)/(r||i<0&&-0),l=(n-e._y1)/(i||r<0&&-0),u=(s*i+l*r)/(r+i);return(O_(s)+O_(l))*Math.min(Math.abs(s),Math.abs(l),.5*Math.abs(u))||0}function C_(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function sx(e,t,n){var r=e._x0,i=e._y0,s=e._x1,l=e._y1,u=(s-r)/3;e._context.bezierCurveTo(r+u,i+u*t,s-u,l-u*n,s,l)}function xh(e){this._context=e}xh.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:sx(this,this._t0,C_(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,sx(this,C_(this,n=T_(this,e,t)),n);break;default:sx(this,this._t0,n=T_(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function a6(e){this._context=new i6(e)}(a6.prototype=Object.create(xh.prototype)).point=function(e,t){xh.prototype.point.call(this,t,e)};function i6(e){this._context=e}i6.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,s){this._context.bezierCurveTo(t,e,r,n,s,i)}};function sG(e){return new xh(e)}function lG(e){return new a6(e)}function o6(e){this._context=e}o6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=E_(e),i=E_(t),s=0,l=1;l<n;++s,++l)this._context.bezierCurveTo(r[0][s],i[0][s],r[1][s],i[1][s],e[l],t[l]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function E_(e){var t,n=e.length-1,r,i=new Array(n),s=new Array(n),l=new Array(n);for(i[0]=0,s[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,s[t]=4,l[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,s[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/s[t-1],s[t]-=r,l[t]-=r*l[t-1];for(i[n-1]=l[n-1]/s[n-1],t=n-2;t>=0;--t)i[t]=(l[t]-i[t+1])/s[t];for(s[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-i[t+1];return[i,s]}function cG(e){return new o6(e)}function zp(e,t){this._context=e,this._t=t}zp.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function uG(e){return new zp(e,.5)}function dG(e){return new zp(e,0)}function fG(e){return new zp(e,1)}function Ls(e,t){if((l=e.length)>1)for(var n=1,r,i,s=e[t[0]],l,u=s.length;n<l;++n)for(i=s,s=e[t[n]],r=0;r<u;++r)s[r][1]+=s[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function z1(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function hG(e,t){return e[t]}function pG(e){const t=[];return t.key=e,t}function mG(){var e=dt([]),t=z1,n=Ls,r=hG;function i(s){var l=Array.from(e.apply(this,arguments),pG),u,d=l.length,f=-1,p;for(const g of s)for(u=0,++f;u<d;++u)(l[u][f]=[0,+r(g,l[u].key,f,s)]).data=g;for(u=0,p=XS(t(l));u<d;++u)l[p[u]].index=u;return n(l,p),l}return i.keys=function(s){return arguments.length?(e=typeof s=="function"?s:dt(Array.from(s)),i):e},i.value=function(s){return arguments.length?(r=typeof s=="function"?s:dt(+s),i):r},i.order=function(s){return arguments.length?(t=s==null?z1:typeof s=="function"?s:dt(Array.from(s)),i):t},i.offset=function(s){return arguments.length?(n=s??Ls,i):n},i}function gG(e,t){if((r=e.length)>0){for(var n,r,i=0,s=e[0].length,l;i<s;++i){for(l=n=0;n<r;++n)l+=e[n][i][1]||0;if(l)for(n=0;n<r;++n)e[n][i][1]/=l}Ls(e,t)}}function vG(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,s=r.length;n<s;++n){for(var l=0,u=0;l<i;++l)u+=e[l][n][1]||0;r[n][1]+=r[n][0]=-u/2}Ls(e,t)}}function yG(e,t){if(!(!((l=e.length)>0)||!((s=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,s,l;r<s;++r){for(var u=0,d=0,f=0;u<l;++u){for(var p=e[t[u]],g=p[r][1]||0,v=p[r-1][1]||0,x=(g-v)/2,A=0;A<u;++A){var w=e[t[A]],S=w[r][1]||0,O=w[r-1][1]||0;x+=S-O}d+=g,f+=x*g}i[r-1][1]+=i[r-1][0]=n,d&&(n-=f/d)}i[r-1][1]+=i[r-1][0]=n,Ls(e,t)}}function eu(e){"@babel/helpers - typeof";return eu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eu(e)}var xG=["type","size","sizeType"];function L1(){return L1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L1.apply(this,arguments)}function __(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function P_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?__(Object(n),!0).forEach(function(r){bG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):__(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bG(e,t,n){return t=wG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wG(e){var t=SG(e,"string");return eu(t)=="symbol"?t:t+""}function SG(e,t){if(eu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(eu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AG(e,t){if(e==null)return{};var n=jG(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var s6={symbolCircle:YS,symbolCross:FF,symbolDiamond:KF,symbolSquare:XF,symbolStar:QF,symbolTriangle:JF,symbolWye:tG},OG=Math.PI/180,TG=function(t){var n="symbol".concat(Mp(t));return s6[n]||YS},CG=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*OG;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},EG=function(t,n){s6["symbol".concat(Mp(t))]=n},WS=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,s=i===void 0?64:i,l=t.sizeType,u=l===void 0?"area":l,d=AG(t,xG),f=P_(P_({},d),{},{type:r,size:s,sizeType:u}),p=function(){var S=TG(r),O=nG().type(S).size(CG(s,u,r));return O()},g=f.className,v=f.cx,x=f.cy,A=je(f,!0);return v===+v&&x===+x&&s===+s?B.createElement("path",L1({},A,{className:De("recharts-symbols",g),transform:"translate(".concat(v,", ").concat(x,")"),d:p()})):null};WS.registerSymbol=EG;function $s(e){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$s(e)}function $1(){return $1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$1.apply(this,arguments)}function N_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _G(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N_(Object(n),!0).forEach(function(r){tu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c6(r.key),r)}}function DG(e,t,n){return t&&NG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MG(e,t,n){return t=bh(t),RG(e,l6()?Reflect.construct(t,n||[],bh(e).constructor):t.apply(e,n))}function RG(e,t){if(t&&($s(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kG(e)}function kG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l6=function(){return!!e})()}function bh(e){return bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bh(e)}function zG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B1(e,t)}function B1(e,t){return B1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},B1(e,t)}function tu(e,t,n){return t=c6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c6(e){var t=LG(e,"string");return $s(t)=="symbol"?t:t+""}function LG(e,t){if($s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var or=32,ZS=(function(e){function t(){return PG(this,t),MG(this,t,arguments)}return zG(t,e),DG(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,s=or/2,l=or/6,u=or/3,d=r.inactive?i:r.color;if(r.type==="plainline")return B.createElement("line",{strokeWidth:4,fill:"none",stroke:d,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:s,x2:or,y2:s,className:"recharts-legend-icon"});if(r.type==="line")return B.createElement("path",{strokeWidth:4,fill:"none",stroke:d,d:"M0,".concat(s,"h").concat(u,`
            A`).concat(l,",").concat(l,",0,1,1,").concat(2*u,",").concat(s,`
            H`).concat(or,"M").concat(2*u,",").concat(s,`
            A`).concat(l,",").concat(l,",0,1,1,").concat(u,",").concat(s),className:"recharts-legend-icon"});if(r.type==="rect")return B.createElement("path",{stroke:"none",fill:d,d:"M0,".concat(or/8,"h").concat(or,"v").concat(or*3/4,"h").concat(-or,"z"),className:"recharts-legend-icon"});if(B.isValidElement(r.legendIcon)){var f=_G({},r);return delete f.legendIcon,B.cloneElement(r.legendIcon,f)}return B.createElement(WS,{fill:d,cx:s,cy:s,size:or,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,s=i.payload,l=i.iconSize,u=i.layout,d=i.formatter,f=i.inactiveColor,p={x:0,y:0,width:or,height:or},g={display:u==="horizontal"?"inline-block":"block",marginRight:10},v={display:"inline-block",verticalAlign:"middle",marginRight:4};return s.map(function(x,A){var w=x.formatter||d,S=De(tu(tu({"recharts-legend-item":!0},"legend-item-".concat(A),!0),"inactive",x.inactive));if(x.type==="none")return null;var O=_e(x.value)?null:x.value;_r(!_e(x.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 E=x.inactive?f:x.color;return B.createElement("li",$1({className:S,style:g,key:"legend-item-".concat(A)},po(r.props,x,A)),B.createElement(N1,{width:l,height:l,viewBox:p,style:v},r.renderIcon(x)),B.createElement("span",{className:"recharts-legend-item-text",style:{color:E}},w?w(O,x,A):O))})}},{key:"render",value:function(){var r=this.props,i=r.payload,s=r.layout,l=r.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:s==="horizontal"?l:"left"};return B.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(T.PureComponent);tu(ZS,"displayName","Legend");tu(ZS,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var lx,D_;function $G(){if(D_)return lx;D_=1;var e=Pp();function t(){this.__data__=new e,this.size=0}return lx=t,lx}var cx,M_;function BG(){if(M_)return cx;M_=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return cx=e,cx}var ux,R_;function IG(){if(R_)return ux;R_=1;function e(t){return this.__data__.get(t)}return ux=e,ux}var dx,k_;function qG(){if(k_)return dx;k_=1;function e(t){return this.__data__.has(t)}return dx=e,dx}var fx,z_;function VG(){if(z_)return fx;z_=1;var e=Pp(),t=qS(),n=VS(),r=200;function i(s,l){var u=this.__data__;if(u instanceof e){var d=u.__data__;if(!t||d.length<r-1)return d.push([s,l]),this.size=++u.size,this;u=this.__data__=new n(d)}return u.set(s,l),this.size=u.size,this}return fx=i,fx}var hx,L_;function u6(){if(L_)return hx;L_=1;var e=Pp(),t=$G(),n=BG(),r=IG(),i=qG(),s=VG();function l(u){var d=this.__data__=new e(u);this.size=d.size}return l.prototype.clear=t,l.prototype.delete=n,l.prototype.get=r,l.prototype.has=i,l.prototype.set=s,hx=l,hx}var px,$_;function UG(){if($_)return px;$_=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return px=t,px}var mx,B_;function HG(){if(B_)return mx;B_=1;function e(t){return this.__data__.has(t)}return mx=e,mx}var gx,I_;function d6(){if(I_)return gx;I_=1;var e=VS(),t=UG(),n=HG();function r(i){var s=-1,l=i==null?0:i.length;for(this.__data__=new e;++s<l;)this.add(i[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,gx=r,gx}var vx,q_;function f6(){if(q_)return vx;q_=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return vx=e,vx}var yx,V_;function h6(){if(V_)return yx;V_=1;function e(t,n){return t.has(n)}return yx=e,yx}var xx,U_;function p6(){if(U_)return xx;U_=1;var e=d6(),t=f6(),n=h6(),r=1,i=2;function s(l,u,d,f,p,g){var v=d&r,x=l.length,A=u.length;if(x!=A&&!(v&&A>x))return!1;var w=g.get(l),S=g.get(u);if(w&&S)return w==u&&S==l;var O=-1,E=!0,j=d&i?new e:void 0;for(g.set(l,u),g.set(u,l);++O<x;){var N=l[O],C=u[O];if(f)var P=v?f(C,N,O,u,l,g):f(N,C,O,l,u,g);if(P!==void 0){if(P)continue;E=!1;break}if(j){if(!t(u,function(D,M){if(!n(j,M)&&(N===D||p(N,D,d,f,g)))return j.push(M)})){E=!1;break}}else if(!(N===C||p(N,C,d,f,g))){E=!1;break}}return g.delete(l),g.delete(u),E}return xx=s,xx}var bx,H_;function FG(){if(H_)return bx;H_=1;var e=Xr(),t=e.Uint8Array;return bx=t,bx}var wx,F_;function GG(){if(F_)return wx;F_=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,s){r[++n]=[s,i]}),r}return wx=e,wx}var Sx,G_;function QS(){if(G_)return Sx;G_=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Sx=e,Sx}var Ax,K_;function KG(){if(K_)return Ax;K_=1;var e=Ku(),t=FG(),n=IS(),r=p6(),i=GG(),s=QS(),l=1,u=2,d="[object Boolean]",f="[object Date]",p="[object Error]",g="[object Map]",v="[object Number]",x="[object RegExp]",A="[object Set]",w="[object String]",S="[object Symbol]",O="[object ArrayBuffer]",E="[object DataView]",j=e?e.prototype:void 0,N=j?j.valueOf:void 0;function C(P,D,M,k,q,L,U){switch(M){case E:if(P.byteLength!=D.byteLength||P.byteOffset!=D.byteOffset)return!1;P=P.buffer,D=D.buffer;case O:return!(P.byteLength!=D.byteLength||!L(new t(P),new t(D)));case d:case f:case v:return n(+P,+D);case p:return P.name==D.name&&P.message==D.message;case x:case w:return P==D+"";case g:var X=i;case A:var J=k&l;if(X||(X=s),P.size!=D.size&&!J)return!1;var W=U.get(P);if(W)return W==D;k|=u,U.set(P,D);var z=r(X(P),X(D),k,q,L,U);return U.delete(P),z;case S:if(N)return N.call(P)==N.call(D)}return!1}return Ax=C,Ax}var jx,X_;function m6(){if(X_)return jx;X_=1;function e(t,n){for(var r=-1,i=n.length,s=t.length;++r<i;)t[s+r]=n[r];return t}return jx=e,jx}var Ox,Y_;function XG(){if(Y_)return Ox;Y_=1;var e=m6(),t=_n();function n(r,i,s){var l=i(r);return t(r)?l:e(l,s(r))}return Ox=n,Ox}var Tx,W_;function YG(){if(W_)return Tx;W_=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=0,l=[];++r<i;){var u=t[r];n(u,r,t)&&(l[s++]=u)}return l}return Tx=e,Tx}var Cx,Z_;function WG(){if(Z_)return Cx;Z_=1;function e(){return[]}return Cx=e,Cx}var Ex,Q_;function ZG(){if(Q_)return Ex;Q_=1;var e=YG(),t=WG(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),e(i(l),function(u){return r.call(l,u)}))}:t;return Ex=s,Ex}var _x,J_;function QG(){if(J_)return _x;J_=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return _x=e,_x}var Px,eP;function JG(){if(eP)return Px;eP=1;var e=Da(),t=Ma(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return Px=r,Px}var Nx,tP;function JS(){if(tP)return Nx;tP=1;var e=JG(),t=Ma(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(l){return t(l)&&r.call(l,"callee")&&!i.call(l,"callee")};return Nx=s,Nx}var kc={exports:{}},Dx,nP;function eK(){if(nP)return Dx;nP=1;function e(){return!1}return Dx=e,Dx}kc.exports;var rP;function g6(){return rP||(rP=1,(function(e,t){var n=Xr(),r=eK(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===i,u=l?n.Buffer:void 0,d=u?u.isBuffer:void 0,f=d||r;e.exports=f})(kc,kc.exports)),kc.exports}var Mx,aP;function eA(){if(aP)return Mx;aP=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var s=typeof r;return i=i??e,!!i&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return Mx=n,Mx}var Rx,iP;function tA(){if(iP)return Rx;iP=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Rx=t,Rx}var kx,oP;function tK(){if(oP)return kx;oP=1;var e=Da(),t=tA(),n=Ma(),r="[object Arguments]",i="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Function]",f="[object Map]",p="[object Number]",g="[object Object]",v="[object RegExp]",x="[object Set]",A="[object String]",w="[object WeakMap]",S="[object ArrayBuffer]",O="[object DataView]",E="[object Float32Array]",j="[object Float64Array]",N="[object Int8Array]",C="[object Int16Array]",P="[object Int32Array]",D="[object Uint8Array]",M="[object Uint8ClampedArray]",k="[object Uint16Array]",q="[object Uint32Array]",L={};L[E]=L[j]=L[N]=L[C]=L[P]=L[D]=L[M]=L[k]=L[q]=!0,L[r]=L[i]=L[S]=L[s]=L[O]=L[l]=L[u]=L[d]=L[f]=L[p]=L[g]=L[v]=L[x]=L[A]=L[w]=!1;function U(X){return n(X)&&t(X.length)&&!!L[e(X)]}return kx=U,kx}var zx,sP;function v6(){if(sP)return zx;sP=1;function e(t){return function(n){return t(n)}}return zx=e,zx}var zc={exports:{}};zc.exports;var lP;function nK(){return lP||(lP=1,(function(e,t){var n=L5(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===r,l=s&&n.process,u=(function(){try{var d=i&&i.require&&i.require("util").types;return d||l&&l.binding&&l.binding("util")}catch{}})();e.exports=u})(zc,zc.exports)),zc.exports}var Lx,cP;function y6(){if(cP)return Lx;cP=1;var e=tK(),t=v6(),n=nK(),r=n&&n.isTypedArray,i=r?t(r):e;return Lx=i,Lx}var $x,uP;function rK(){if(uP)return $x;uP=1;var e=QG(),t=JS(),n=_n(),r=g6(),i=eA(),s=y6(),l=Object.prototype,u=l.hasOwnProperty;function d(f,p){var g=n(f),v=!g&&t(f),x=!g&&!v&&r(f),A=!g&&!v&&!x&&s(f),w=g||v||x||A,S=w?e(f.length,String):[],O=S.length;for(var E in f)(p||u.call(f,E))&&!(w&&(E=="length"||x&&(E=="offset"||E=="parent")||A&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||i(E,O)))&&S.push(E);return S}return $x=d,$x}var Bx,dP;function aK(){if(dP)return Bx;dP=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return Bx=t,Bx}var Ix,fP;function x6(){if(fP)return Ix;fP=1;function e(t,n){return function(r){return t(n(r))}}return Ix=e,Ix}var qx,hP;function iK(){if(hP)return qx;hP=1;var e=x6(),t=e(Object.keys,Object);return qx=t,qx}var Vx,pP;function oK(){if(pP)return Vx;pP=1;var e=aK(),t=iK(),n=Object.prototype,r=n.hasOwnProperty;function i(s){if(!e(s))return t(s);var l=[];for(var u in Object(s))r.call(s,u)&&u!="constructor"&&l.push(u);return l}return Vx=i,Vx}var Ux,mP;function Yu(){if(mP)return Ux;mP=1;var e=BS(),t=tA();function n(r){return r!=null&&t(r.length)&&!e(r)}return Ux=n,Ux}var Hx,gP;function Lp(){if(gP)return Hx;gP=1;var e=rK(),t=oK(),n=Yu();function r(i){return n(i)?e(i):t(i)}return Hx=r,Hx}var Fx,vP;function sK(){if(vP)return Fx;vP=1;var e=XG(),t=ZG(),n=Lp();function r(i){return e(i,n,t)}return Fx=r,Fx}var Gx,yP;function lK(){if(yP)return Gx;yP=1;var e=sK(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(s,l,u,d,f,p){var g=u&t,v=e(s),x=v.length,A=e(l),w=A.length;if(x!=w&&!g)return!1;for(var S=x;S--;){var O=v[S];if(!(g?O in l:r.call(l,O)))return!1}var E=p.get(s),j=p.get(l);if(E&&j)return E==l&&j==s;var N=!0;p.set(s,l),p.set(l,s);for(var C=g;++S<x;){O=v[S];var P=s[O],D=l[O];if(d)var M=g?d(D,P,O,l,s,p):d(P,D,O,s,l,p);if(!(M===void 0?P===D||f(P,D,u,d,p):M)){N=!1;break}C||(C=O=="constructor")}if(N&&!C){var k=s.constructor,q=l.constructor;k!=q&&"constructor"in s&&"constructor"in l&&!(typeof k=="function"&&k instanceof k&&typeof q=="function"&&q instanceof q)&&(N=!1)}return p.delete(s),p.delete(l),N}return Gx=i,Gx}var Kx,xP;function cK(){if(xP)return Kx;xP=1;var e=wo(),t=Xr(),n=e(t,"DataView");return Kx=n,Kx}var Xx,bP;function uK(){if(bP)return Xx;bP=1;var e=wo(),t=Xr(),n=e(t,"Promise");return Xx=n,Xx}var Yx,wP;function b6(){if(wP)return Yx;wP=1;var e=wo(),t=Xr(),n=e(t,"Set");return Yx=n,Yx}var Wx,SP;function dK(){if(SP)return Wx;SP=1;var e=wo(),t=Xr(),n=e(t,"WeakMap");return Wx=n,Wx}var Zx,AP;function fK(){if(AP)return Zx;AP=1;var e=cK(),t=qS(),n=uK(),r=b6(),i=dK(),s=Da(),l=$5(),u="[object Map]",d="[object Object]",f="[object Promise]",p="[object Set]",g="[object WeakMap]",v="[object DataView]",x=l(e),A=l(t),w=l(n),S=l(r),O=l(i),E=s;return(e&&E(new e(new ArrayBuffer(1)))!=v||t&&E(new t)!=u||n&&E(n.resolve())!=f||r&&E(new r)!=p||i&&E(new i)!=g)&&(E=function(j){var N=s(j),C=N==d?j.constructor:void 0,P=C?l(C):"";if(P)switch(P){case x:return v;case A:return u;case w:return f;case S:return p;case O:return g}return N}),Zx=E,Zx}var Qx,jP;function hK(){if(jP)return Qx;jP=1;var e=u6(),t=p6(),n=KG(),r=lK(),i=fK(),s=_n(),l=g6(),u=y6(),d=1,f="[object Arguments]",p="[object Array]",g="[object Object]",v=Object.prototype,x=v.hasOwnProperty;function A(w,S,O,E,j,N){var C=s(w),P=s(S),D=C?p:i(w),M=P?p:i(S);D=D==f?g:D,M=M==f?g:M;var k=D==g,q=M==g,L=D==M;if(L&&l(w)){if(!l(S))return!1;C=!0,k=!1}if(L&&!k)return N||(N=new e),C||u(w)?t(w,S,O,E,j,N):n(w,S,D,O,E,j,N);if(!(O&d)){var U=k&&x.call(w,"__wrapped__"),X=q&&x.call(S,"__wrapped__");if(U||X){var J=U?w.value():w,W=X?S.value():S;return N||(N=new e),j(J,W,O,E,N)}}return L?(N||(N=new e),r(w,S,O,E,j,N)):!1}return Qx=A,Qx}var Jx,OP;function nA(){if(OP)return Jx;OP=1;var e=hK(),t=Ma();function n(r,i,s,l,u){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,s,l,n,u)}return Jx=n,Jx}var eb,TP;function pK(){if(TP)return eb;TP=1;var e=u6(),t=nA(),n=1,r=2;function i(s,l,u,d){var f=u.length,p=f,g=!d;if(s==null)return!p;for(s=Object(s);f--;){var v=u[f];if(g&&v[2]?v[1]!==s[v[0]]:!(v[0]in s))return!1}for(;++f<p;){v=u[f];var x=v[0],A=s[x],w=v[1];if(g&&v[2]){if(A===void 0&&!(x in s))return!1}else{var S=new e;if(d)var O=d(A,w,x,s,l,S);if(!(O===void 0?t(w,A,n|r,d,S):O))return!1}}return!0}return eb=i,eb}var tb,CP;function w6(){if(CP)return tb;CP=1;var e=bi();function t(n){return n===n&&!e(n)}return tb=t,tb}var nb,EP;function mK(){if(EP)return nb;EP=1;var e=w6(),t=Lp();function n(r){for(var i=t(r),s=i.length;s--;){var l=i[s],u=r[l];i[s]=[l,u,e(u)]}return i}return nb=n,nb}var rb,_P;function S6(){if(_P)return rb;_P=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return rb=e,rb}var ab,PP;function gK(){if(PP)return ab;PP=1;var e=pK(),t=mK(),n=S6();function r(i){var s=t(i);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(l){return l===i||e(l,i,s)}}return ab=r,ab}var ib,NP;function vK(){if(NP)return ib;NP=1;function e(t,n){return t!=null&&n in Object(t)}return ib=e,ib}var ob,DP;function yK(){if(DP)return ob;DP=1;var e=q5(),t=JS(),n=_n(),r=eA(),i=tA(),s=Dp();function l(u,d,f){d=e(d,u);for(var p=-1,g=d.length,v=!1;++p<g;){var x=s(d[p]);if(!(v=u!=null&&f(u,x)))break;u=u[x]}return v||++p!=g?v:(g=u==null?0:u.length,!!g&&i(g)&&r(x,g)&&(n(u)||t(u)))}return ob=l,ob}var sb,MP;function xK(){if(MP)return sb;MP=1;var e=vK(),t=yK();function n(r,i){return r!=null&&t(r,i,e)}return sb=n,sb}var lb,RP;function bK(){if(RP)return lb;RP=1;var e=nA(),t=V5(),n=xK(),r=$S(),i=w6(),s=S6(),l=Dp(),u=1,d=2;function f(p,g){return r(p)&&i(g)?s(l(p),g):function(v){var x=t(v,p);return x===void 0&&x===g?n(v,p):e(g,x,u|d)}}return lb=f,lb}var cb,kP;function bl(){if(kP)return cb;kP=1;function e(t){return t}return cb=e,cb}var ub,zP;function wK(){if(zP)return ub;zP=1;function e(t){return function(n){return n?.[t]}}return ub=e,ub}var db,LP;function SK(){if(LP)return db;LP=1;var e=HS();function t(n){return function(r){return e(r,n)}}return db=t,db}var fb,$P;function AK(){if($P)return fb;$P=1;var e=wK(),t=SK(),n=$S(),r=Dp();function i(s){return n(s)?e(r(s)):t(s)}return fb=i,fb}var hb,BP;function Yr(){if(BP)return hb;BP=1;var e=gK(),t=bK(),n=bl(),r=_n(),i=AK();function s(l){return typeof l=="function"?l:l==null?n:typeof l=="object"?r(l)?t(l[0],l[1]):e(l):i(l)}return hb=s,hb}var pb,IP;function A6(){if(IP)return pb;IP=1;function e(t,n,r,i){for(var s=t.length,l=r+(i?1:-1);i?l--:++l<s;)if(n(t[l],l,t))return l;return-1}return pb=e,pb}var mb,qP;function jK(){if(qP)return mb;qP=1;function e(t){return t!==t}return mb=e,mb}var gb,VP;function OK(){if(VP)return gb;VP=1;function e(t,n,r){for(var i=r-1,s=t.length;++i<s;)if(t[i]===n)return i;return-1}return gb=e,gb}var vb,UP;function TK(){if(UP)return vb;UP=1;var e=A6(),t=jK(),n=OK();function r(i,s,l){return s===s?n(i,s,l):e(i,t,l)}return vb=r,vb}var yb,HP;function CK(){if(HP)return yb;HP=1;var e=TK();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return yb=t,yb}var xb,FP;function EK(){if(FP)return xb;FP=1;function e(t,n,r){for(var i=-1,s=t==null?0:t.length;++i<s;)if(r(n,t[i]))return!0;return!1}return xb=e,xb}var bb,GP;function _K(){if(GP)return bb;GP=1;function e(){}return bb=e,bb}var wb,KP;function PK(){if(KP)return wb;KP=1;var e=b6(),t=_K(),n=QS(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(s){return new e(s)}:t;return wb=i,wb}var Sb,XP;function NK(){if(XP)return Sb;XP=1;var e=d6(),t=CK(),n=EK(),r=h6(),i=PK(),s=QS(),l=200;function u(d,f,p){var g=-1,v=t,x=d.length,A=!0,w=[],S=w;if(p)A=!1,v=n;else if(x>=l){var O=f?null:i(d);if(O)return s(O);A=!1,v=r,S=new e}else S=f?[]:w;e:for(;++g<x;){var E=d[g],j=f?f(E):E;if(E=p||E!==0?E:0,A&&j===j){for(var N=S.length;N--;)if(S[N]===j)continue e;f&&S.push(j),w.push(E)}else v(S,j,p)||(S!==w&&S.push(j),w.push(E))}return w}return Sb=u,Sb}var Ab,YP;function DK(){if(YP)return Ab;YP=1;var e=Yr(),t=NK();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return Ab=n,Ab}var MK=DK();const WP=tt(MK);function j6(e,t,n){return t===!0?WP(e,n):_e(t)?WP(e,t):e}function Bs(e){"@babel/helpers - typeof";return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bs(e)}var RK=["ref"];function ZP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ga(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZP(Object(n),!0).forEach(function(r){$p(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,T6(r.key),r)}}function zK(e,t,n){return t&&QP(e.prototype,t),n&&QP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function LK(e,t,n){return t=wh(t),$K(e,O6()?Reflect.construct(t,n||[],wh(e).constructor):t.apply(e,n))}function $K(e,t){if(t&&(Bs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BK(e)}function BK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O6=function(){return!!e})()}function wh(e){return wh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wh(e)}function IK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I1(e,t)}function I1(e,t){return I1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},I1(e,t)}function $p(e,t,n){return t=T6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T6(e){var t=qK(e,"string");return Bs(t)=="symbol"?t:t+""}function qK(e,t){if(Bs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function VK(e,t){if(e==null)return{};var n=UK(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function HK(e){return e.value}function FK(e,t){if(B.isValidElement(e))return B.cloneElement(e,t);if(typeof e=="function")return B.createElement(e,t);t.ref;var n=VK(t,RK);return B.createElement(ZS,n)}var JP=1,io=(function(e){function t(){var n;kK(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=LK(this,t,[].concat(i)),$p(n,"lastBoundingBox",{width:-1,height:-1}),n}return IK(t,e),zK(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>JP||Math.abs(i.height-this.lastBoundingBox.height)>JP)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ga({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,s=i.layout,l=i.align,u=i.verticalAlign,d=i.margin,f=i.chartWidth,p=i.chartHeight,g,v;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(l==="center"&&s==="vertical"){var x=this.getBBoxSnapshot();g={left:((f||0)-x.width)/2}}else g=l==="right"?{right:d&&d.right||0}:{left:d&&d.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(u==="middle"){var A=this.getBBoxSnapshot();v={top:((p||0)-A.height)/2}}else v=u==="bottom"?{bottom:d&&d.bottom||0}:{top:d&&d.top||0};return ga(ga({},g),v)}},{key:"render",value:function(){var r=this,i=this.props,s=i.content,l=i.width,u=i.height,d=i.wrapperStyle,f=i.payloadUniqBy,p=i.payload,g=ga(ga({position:"absolute",width:l||"auto",height:u||"auto"},this.getDefaultPosition(d)),d);return B.createElement("div",{className:"recharts-legend-wrapper",style:g,ref:function(x){r.wrapperNode=x}},FK(s,ga(ga({},this.props),{},{payload:j6(p,f,HK)})))}}],[{key:"getWithHeight",value:function(r,i){var s=ga(ga({},this.defaultProps),r.props),l=s.layout;return l==="vertical"&&de(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||i}:null}}])})(T.PureComponent);$p(io,"displayName","Legend");$p(io,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var jb,eN;function GK(){if(eN)return jb;eN=1;var e=Ku(),t=JS(),n=_n(),r=e?e.isConcatSpreadable:void 0;function i(s){return n(s)||t(s)||!!(r&&s&&s[r])}return jb=i,jb}var Ob,tN;function C6(){if(tN)return Ob;tN=1;var e=m6(),t=GK();function n(r,i,s,l,u){var d=-1,f=r.length;for(s||(s=t),u||(u=[]);++d<f;){var p=r[d];i>0&&s(p)?i>1?n(p,i-1,s,l,u):e(u,p):l||(u[u.length]=p)}return u}return Ob=n,Ob}var Tb,nN;function KK(){if(nN)return Tb;nN=1;function e(t){return function(n,r,i){for(var s=-1,l=Object(n),u=i(n),d=u.length;d--;){var f=u[t?d:++s];if(r(l[f],f,l)===!1)break}return n}}return Tb=e,Tb}var Cb,rN;function XK(){if(rN)return Cb;rN=1;var e=KK(),t=e();return Cb=t,Cb}var Eb,aN;function E6(){if(aN)return Eb;aN=1;var e=XK(),t=Lp();function n(r,i){return r&&e(r,i,t)}return Eb=n,Eb}var _b,iN;function YK(){if(iN)return _b;iN=1;var e=Yu();function t(n,r){return function(i,s){if(i==null)return i;if(!e(i))return n(i,s);for(var l=i.length,u=r?l:-1,d=Object(i);(r?u--:++u<l)&&s(d[u],u,d)!==!1;);return i}}return _b=t,_b}var Pb,oN;function rA(){if(oN)return Pb;oN=1;var e=E6(),t=YK(),n=t(e);return Pb=n,Pb}var Nb,sN;function _6(){if(sN)return Nb;sN=1;var e=rA(),t=Yu();function n(r,i){var s=-1,l=t(r)?Array(r.length):[];return e(r,function(u,d,f){l[++s]=i(u,d,f)}),l}return Nb=n,Nb}var Db,lN;function WK(){if(lN)return Db;lN=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return Db=e,Db}var Mb,cN;function ZK(){if(cN)return Mb;cN=1;var e=vl();function t(n,r){if(n!==r){var i=n!==void 0,s=n===null,l=n===n,u=e(n),d=r!==void 0,f=r===null,p=r===r,g=e(r);if(!f&&!g&&!u&&n>r||u&&d&&p&&!f&&!g||s&&d&&p||!i&&p||!l)return 1;if(!s&&!u&&!g&&n<r||g&&i&&l&&!s&&!u||f&&i&&l||!d&&l||!p)return-1}return 0}return Mb=t,Mb}var Rb,uN;function QK(){if(uN)return Rb;uN=1;var e=ZK();function t(n,r,i){for(var s=-1,l=n.criteria,u=r.criteria,d=l.length,f=i.length;++s<d;){var p=e(l[s],u[s]);if(p){if(s>=f)return p;var g=i[s];return p*(g=="desc"?-1:1)}}return n.index-r.index}return Rb=t,Rb}var kb,dN;function JK(){if(dN)return kb;dN=1;var e=US(),t=HS(),n=Yr(),r=_6(),i=WK(),s=v6(),l=QK(),u=bl(),d=_n();function f(p,g,v){g.length?g=e(g,function(w){return d(w)?function(S){return t(S,w.length===1?w[0]:w)}:w}):g=[u];var x=-1;g=e(g,s(n));var A=r(p,function(w,S,O){var E=e(g,function(j){return j(w)});return{criteria:E,index:++x,value:w}});return i(A,function(w,S){return l(w,S,v)})}return kb=f,kb}var zb,fN;function eX(){if(fN)return zb;fN=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return zb=e,zb}var Lb,hN;function tX(){if(hN)return Lb;hN=1;var e=eX(),t=Math.max;function n(r,i,s){return i=t(i===void 0?r.length-1:i,0),function(){for(var l=arguments,u=-1,d=t(l.length-i,0),f=Array(d);++u<d;)f[u]=l[i+u];u=-1;for(var p=Array(i+1);++u<i;)p[u]=l[u];return p[i]=s(f),e(r,this,p)}}return Lb=n,Lb}var $b,pN;function nX(){if(pN)return $b;pN=1;function e(t){return function(){return t}}return $b=e,$b}var Bb,mN;function P6(){if(mN)return Bb;mN=1;var e=wo(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Bb=t,Bb}var Ib,gN;function rX(){if(gN)return Ib;gN=1;var e=nX(),t=P6(),n=bl(),r=t?function(i,s){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return Ib=r,Ib}var qb,vN;function aX(){if(vN)return qb;vN=1;var e=800,t=16,n=Date.now;function r(i){var s=0,l=0;return function(){var u=n(),d=t-(u-l);if(l=u,d>0){if(++s>=e)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}return qb=r,qb}var Vb,yN;function iX(){if(yN)return Vb;yN=1;var e=rX(),t=aX(),n=t(e);return Vb=n,Vb}var Ub,xN;function oX(){if(xN)return Ub;xN=1;var e=bl(),t=tX(),n=iX();function r(i,s){return n(t(i,s,e),i+"")}return Ub=r,Ub}var Hb,bN;function Bp(){if(bN)return Hb;bN=1;var e=IS(),t=Yu(),n=eA(),r=bi();function i(s,l,u){if(!r(u))return!1;var d=typeof l;return(d=="number"?t(u)&&n(l,u.length):d=="string"&&l in u)?e(u[l],s):!1}return Hb=i,Hb}var Fb,wN;function sX(){if(wN)return Fb;wN=1;var e=C6(),t=JK(),n=oX(),r=Bp(),i=n(function(s,l){if(s==null)return[];var u=l.length;return u>1&&r(s,l[0],l[1])?l=[]:u>2&&r(l[0],l[1],l[2])&&(l=[l[0]]),t(s,e(l,1),[])});return Fb=i,Fb}var lX=sX();const aA=tt(lX);function nu(e){"@babel/helpers - typeof";return nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nu(e)}function q1(){return q1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q1.apply(this,arguments)}function cX(e,t){return hX(e)||fX(e,t)||dX(e,t)||uX()}function uX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dX(e,t){if(e){if(typeof e=="string")return SN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SN(e,t)}}function SN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function hX(e){if(Array.isArray(e))return e}function AN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AN(Object(n),!0).forEach(function(r){pX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pX(e,t,n){return t=mX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mX(e){var t=gX(e,"string");return nu(t)=="symbol"?t:t+""}function gX(e,t){if(nu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vX(e){return Array.isArray(e)&&Gt(e[0])&&Gt(e[1])?e.join(" ~ "):e}var yX=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,s=i===void 0?{}:i,l=t.itemStyle,u=l===void 0?{}:l,d=t.labelStyle,f=d===void 0?{}:d,p=t.payload,g=t.formatter,v=t.itemSorter,x=t.wrapperClassName,A=t.labelClassName,w=t.label,S=t.labelFormatter,O=t.accessibilityLayer,E=O===void 0?!1:O,j=function(){if(p&&p.length){var U={padding:0,margin:0},X=(v?aA(p,v):p).map(function(J,W){if(J.type==="none")return null;var z=Gb({display:"block",paddingTop:4,paddingBottom:4,color:J.color||"#000"},u),H=J.formatter||g||vX,F=J.value,ie=J.name,ue=F,$=ie;if(H&&ue!=null&&$!=null){var G=H(F,ie,J,W,p);if(Array.isArray(G)){var te=cX(G,2);ue=te[0],$=te[1]}else ue=G}return B.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(W),style:z},Gt($)?B.createElement("span",{className:"recharts-tooltip-item-name"},$):null,Gt($)?B.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,B.createElement("span",{className:"recharts-tooltip-item-value"},ue),B.createElement("span",{className:"recharts-tooltip-item-unit"},J.unit||""))});return B.createElement("ul",{className:"recharts-tooltip-item-list",style:U},X)}return null},N=Gb({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},s),C=Gb({margin:0},f),P=!Ne(w),D=P?w:"",M=De("recharts-default-tooltip",x),k=De("recharts-tooltip-label",A);P&&S&&p!==void 0&&p!==null&&(D=S(w,p));var q=E?{role:"status","aria-live":"assertive"}:{};return B.createElement("div",q1({className:M,style:N},q),B.createElement("p",{className:k,style:C},B.isValidElement(D)?D:"".concat(D)),j())};function ru(e){"@babel/helpers - typeof";return ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ru(e)}function Lf(e,t,n){return t=xX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xX(e){var t=bX(e,"string");return ru(t)=="symbol"?t:t+""}function bX(e,t){if(ru(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ru(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jc="recharts-tooltip-wrapper",wX={visibility:"hidden"};function SX(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return De(jc,Lf(Lf(Lf(Lf({},"".concat(jc,"-right"),de(n)&&t&&de(t.x)&&n>=t.x),"".concat(jc,"-left"),de(n)&&t&&de(t.x)&&n<t.x),"".concat(jc,"-bottom"),de(r)&&t&&de(t.y)&&r>=t.y),"".concat(jc,"-top"),de(r)&&t&&de(t.y)&&r<t.y))}function jN(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,s=e.position,l=e.reverseDirection,u=e.tooltipDimension,d=e.viewBox,f=e.viewBoxDimension;if(s&&de(s[r]))return s[r];var p=n[r]-u-i,g=n[r]+i;if(t[r])return l[r]?p:g;if(l[r]){var v=p,x=d[r];return v<x?Math.max(g,d[r]):Math.max(p,d[r])}var A=g+u,w=d[r]+f;return A>w?Math.max(p,d[r]):Math.max(g,d[r])}function AX(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function jX(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,s=e.reverseDirection,l=e.tooltipBox,u=e.useTranslate3d,d=e.viewBox,f,p,g;return l.height>0&&l.width>0&&n?(p=jN({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:s,tooltipDimension:l.width,viewBox:d,viewBoxDimension:d.width}),g=jN({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:s,tooltipDimension:l.height,viewBox:d,viewBoxDimension:d.height}),f=AX({translateX:p,translateY:g,useTranslate3d:u})):f=wX,{cssProperties:f,cssClasses:SX({translateX:p,translateY:g,coordinate:n})}}function Is(e){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Is(e)}function ON(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function TN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ON(Object(n),!0).forEach(function(r){U1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ON(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D6(r.key),r)}}function CX(e,t,n){return t&&TX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EX(e,t,n){return t=Sh(t),_X(e,N6()?Reflect.construct(t,n||[],Sh(e).constructor):t.apply(e,n))}function _X(e,t){if(t&&(Is(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PX(e)}function PX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N6=function(){return!!e})()}function Sh(e){return Sh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sh(e)}function NX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V1(e,t)}function V1(e,t){return V1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},V1(e,t)}function U1(e,t,n){return t=D6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D6(e){var t=DX(e,"string");return Is(t)=="symbol"?t:t+""}function DX(e,t){if(Is(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var CN=1,MX=(function(e){function t(){var n;OX(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=EX(this,t,[].concat(i)),U1(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),U1(n,"handleKeyDown",function(l){if(l.key==="Escape"){var u,d,f,p;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(d=n.props.coordinate)===null||d===void 0?void 0:d.x)!==null&&u!==void 0?u:0,y:(f=(p=n.props.coordinate)===null||p===void 0?void 0:p.y)!==null&&f!==void 0?f:0}})}}),n}return NX(t,e),CX(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>CN||Math.abs(r.height-this.state.lastBoundingBox.height)>CN)&&this.setState({lastBoundingBox:{width:r.width,height:r.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 r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.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 r=this,i=this.props,s=i.active,l=i.allowEscapeViewBox,u=i.animationDuration,d=i.animationEasing,f=i.children,p=i.coordinate,g=i.hasPayload,v=i.isAnimationActive,x=i.offset,A=i.position,w=i.reverseDirection,S=i.useTranslate3d,O=i.viewBox,E=i.wrapperStyle,j=jX({allowEscapeViewBox:l,coordinate:p,offsetTopLeft:x,position:A,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:S,viewBox:O}),N=j.cssClasses,C=j.cssProperties,P=TN(TN({transition:v&&s?"transform ".concat(u,"ms ").concat(d):void 0},C),{},{pointerEvents:"none",visibility:!this.state.dismissed&&s&&g?"visible":"hidden",position:"absolute",top:0,left:0},E);return B.createElement("div",{tabIndex:-1,className:N,style:P,ref:function(M){r.wrapperNode=M}},f)}}])})(T.PureComponent),RX=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},So={isSsr:RX()};function qs(e){"@babel/helpers - typeof";return qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qs(e)}function EN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _N(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EN(Object(n),!0).forEach(function(r){iA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,R6(r.key),r)}}function LX(e,t,n){return t&&zX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $X(e,t,n){return t=Ah(t),BX(e,M6()?Reflect.construct(t,n||[],Ah(e).constructor):t.apply(e,n))}function BX(e,t){if(t&&(qs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IX(e)}function IX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M6=function(){return!!e})()}function Ah(e){return Ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ah(e)}function qX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H1(e,t)}function H1(e,t){return H1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},H1(e,t)}function iA(e,t,n){return t=R6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R6(e){var t=VX(e,"string");return qs(t)=="symbol"?t:t+""}function VX(e,t){if(qs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function UX(e){return e.dataKey}function HX(e,t){return B.isValidElement(e)?B.cloneElement(e,t):typeof e=="function"?B.createElement(e,t):B.createElement(yX,t)}var ur=(function(e){function t(){return kX(this,t),$X(this,t,arguments)}return qX(t,e),LX(t,[{key:"render",value:function(){var r=this,i=this.props,s=i.active,l=i.allowEscapeViewBox,u=i.animationDuration,d=i.animationEasing,f=i.content,p=i.coordinate,g=i.filterNull,v=i.isAnimationActive,x=i.offset,A=i.payload,w=i.payloadUniqBy,S=i.position,O=i.reverseDirection,E=i.useTranslate3d,j=i.viewBox,N=i.wrapperStyle,C=A??[];g&&C.length&&(C=j6(A.filter(function(D){return D.value!=null&&(D.hide!==!0||r.props.includeHidden)}),w,UX));var P=C.length>0;return B.createElement(MX,{allowEscapeViewBox:l,animationDuration:u,animationEasing:d,isAnimationActive:v,active:s,coordinate:p,hasPayload:P,offset:x,position:S,reverseDirection:O,useTranslate3d:E,viewBox:j,wrapperStyle:N},HX(f,_N(_N({},this.props),{},{payload:C})))}}])})(T.PureComponent);iA(ur,"displayName","Tooltip");iA(ur,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!So.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 Kb,PN;function FX(){if(PN)return Kb;PN=1;var e=Xr(),t=function(){return e.Date.now()};return Kb=t,Kb}var Xb,NN;function GX(){if(NN)return Xb;NN=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Xb=t,Xb}var Yb,DN;function KX(){if(DN)return Yb;DN=1;var e=GX(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Yb=n,Yb}var Wb,MN;function k6(){if(MN)return Wb;MN=1;var e=KX(),t=bi(),n=vl(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;function d(f){if(typeof f=="number")return f;if(n(f))return r;if(t(f)){var p=typeof f.valueOf=="function"?f.valueOf():f;f=t(p)?p+"":p}if(typeof f!="string")return f===0?f:+f;f=e(f);var g=s.test(f);return g||l.test(f)?u(f.slice(2),g?2:8):i.test(f)?r:+f}return Wb=d,Wb}var Zb,RN;function XX(){if(RN)return Zb;RN=1;var e=bi(),t=FX(),n=k6(),r="Expected a function",i=Math.max,s=Math.min;function l(u,d,f){var p,g,v,x,A,w,S=0,O=!1,E=!1,j=!0;if(typeof u!="function")throw new TypeError(r);d=n(d)||0,e(f)&&(O=!!f.leading,E="maxWait"in f,v=E?i(n(f.maxWait)||0,d):v,j="trailing"in f?!!f.trailing:j);function N(X){var J=p,W=g;return p=g=void 0,S=X,x=u.apply(W,J),x}function C(X){return S=X,A=setTimeout(M,d),O?N(X):x}function P(X){var J=X-w,W=X-S,z=d-J;return E?s(z,v-W):z}function D(X){var J=X-w,W=X-S;return w===void 0||J>=d||J<0||E&&W>=v}function M(){var X=t();if(D(X))return k(X);A=setTimeout(M,P(X))}function k(X){return A=void 0,j&&p?N(X):(p=g=void 0,x)}function q(){A!==void 0&&clearTimeout(A),S=0,p=w=g=A=void 0}function L(){return A===void 0?x:k(t())}function U(){var X=t(),J=D(X);if(p=arguments,g=this,w=X,J){if(A===void 0)return C(w);if(E)return clearTimeout(A),A=setTimeout(M,d),N(w)}return A===void 0&&(A=setTimeout(M,d)),x}return U.cancel=q,U.flush=L,U}return Zb=l,Zb}var Qb,kN;function YX(){if(kN)return Qb;kN=1;var e=XX(),t=bi(),n="Expected a function";function r(i,s,l){var u=!0,d=!0;if(typeof i!="function")throw new TypeError(n);return t(l)&&(u="leading"in l?!!l.leading:u,d="trailing"in l?!!l.trailing:d),e(i,s,{leading:u,maxWait:s,trailing:d})}return Qb=r,Qb}var WX=YX();const z6=tt(WX);function au(e){"@babel/helpers - typeof";return au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}function zN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $f(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zN(Object(n),!0).forEach(function(r){ZX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZX(e,t,n){return t=QX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QX(e){var t=JX(e,"string");return au(t)=="symbol"?t:t+""}function JX(e,t){if(au(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(au(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eY(e,t){return aY(e)||rY(e,t)||nY(e,t)||tY()}function tY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nY(e,t){if(e){if(typeof e=="string")return LN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LN(e,t)}}function LN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function aY(e){if(Array.isArray(e))return e}var Jb=T.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,s=e.width,l=s===void 0?"100%":s,u=e.height,d=u===void 0?"100%":u,f=e.minWidth,p=f===void 0?0:f,g=e.minHeight,v=e.maxHeight,x=e.children,A=e.debounce,w=A===void 0?0:A,S=e.id,O=e.className,E=e.onResize,j=e.style,N=j===void 0?{}:j,C=T.useRef(null),P=T.useRef();P.current=E,T.useImperativeHandle(t,function(){return Object.defineProperty(C.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),C.current},configurable:!0})});var D=T.useState({containerWidth:i.width,containerHeight:i.height}),M=eY(D,2),k=M[0],q=M[1],L=T.useCallback(function(X,J){q(function(W){var z=Math.round(X),H=Math.round(J);return W.containerWidth===z&&W.containerHeight===H?W:{containerWidth:z,containerHeight:H}})},[]);T.useEffect(function(){var X=function(ie){var ue,$=ie[0].contentRect,G=$.width,te=$.height;L(G,te),(ue=P.current)===null||ue===void 0||ue.call(P,G,te)};w>0&&(X=z6(X,w,{trailing:!0,leading:!1}));var J=new ResizeObserver(X),W=C.current.getBoundingClientRect(),z=W.width,H=W.height;return L(z,H),J.observe(C.current),function(){J.disconnect()}},[L,w]);var U=T.useMemo(function(){var X=k.containerWidth,J=k.containerHeight;if(X<0||J<0)return null;_r(Ji(l)||Ji(d),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,l,d),_r(!n||n>0,"The aspect(%s) must be greater than zero.",n);var W=Ji(l)?X:l,z=Ji(d)?J:d;n&&n>0&&(W?z=W/n:z&&(W=z*n),v&&z>v&&(z=v)),_r(W>0||z>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,W,z,l,d,p,g,n);var H=!Array.isArray(x)&&Sa(x.type).endsWith("Chart");return B.Children.map(x,function(F){return B.isValidElement(F)?T.cloneElement(F,$f({width:W,height:z},H?{style:$f({height:"100%",width:"100%",maxHeight:z,maxWidth:W},F.props.style)}:{})):F})},[n,x,d,v,g,p,k,l]);return B.createElement("div",{id:S?"".concat(S):void 0,className:De("recharts-responsive-container",O),style:$f($f({},N),{},{width:l,height:d,minWidth:p,minHeight:g,maxHeight:v}),ref:C},U)}),Ip=function(t){return null};Ip.displayName="Cell";function iu(e){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(e)}function $N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function F1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$N(Object(n),!0).forEach(function(r){iY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$N(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iY(e,t,n){return t=oY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oY(e){var t=sY(e,"string");return iu(t)=="symbol"?t:t+""}function sY(e,t){if(iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ms={widthCache:{},cacheCount:0},lY=2e3,cY={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},BN="recharts_measurement_span";function uY(e){var t=F1({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Ic=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||So.isSsr)return{width:0,height:0};var r=uY(n),i=JSON.stringify({text:t,copyStyle:r});if(ms.widthCache[i])return ms.widthCache[i];try{var s=document.getElementById(BN);s||(s=document.createElement("span"),s.setAttribute("id",BN),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var l=F1(F1({},cY),r);Object.assign(s.style,l),s.textContent="".concat(t);var u=s.getBoundingClientRect(),d={width:u.width,height:u.height};return ms.widthCache[i]=d,++ms.cacheCount>lY&&(ms.cacheCount=0,ms.widthCache={}),d}catch{return{width:0,height:0}}},dY=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ou(e){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ou(e)}function jh(e,t){return mY(e)||pY(e,t)||hY(e,t)||fY()}function fY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hY(e,t){if(e){if(typeof e=="string")return IN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IN(e,t)}}function IN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function mY(e){if(Array.isArray(e))return e}function gY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yY(r.key),r)}}function vY(e,t,n){return t&&qN(e.prototype,t),n&&qN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yY(e){var t=xY(e,"string");return ou(t)=="symbol"?t:t+""}function xY(e,t){if(ou(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ou(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var VN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,UN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,bY=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,wY=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,L6={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},SY=Object.keys(L6),xs="NaN";function AY(e,t){return e*L6[t]}var Bf=(function(){function e(t,n){gY(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!bY.test(n)&&(this.num=NaN,this.unit=""),SY.includes(n)&&(this.num=AY(t,n),this.unit="px")}return vY(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.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(n){var r,i=(r=wY.exec(n))!==null&&r!==void 0?r:[],s=jh(i,3),l=s[1],u=s[2];return new e(parseFloat(l),u??"")}}])})();function $6(e){if(e.includes(xs))return xs;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=VN.exec(t))!==null&&n!==void 0?n:[],i=jh(r,4),s=i[1],l=i[2],u=i[3],d=Bf.parse(s??""),f=Bf.parse(u??""),p=l==="*"?d.multiply(f):d.divide(f);if(p.isNaN())return xs;t=t.replace(VN,p.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var g,v=(g=UN.exec(t))!==null&&g!==void 0?g:[],x=jh(v,4),A=x[1],w=x[2],S=x[3],O=Bf.parse(A??""),E=Bf.parse(S??""),j=w==="+"?O.add(E):O.subtract(E);if(j.isNaN())return xs;t=t.replace(UN,j.toString())}return t}var HN=/\(([^()]*)\)/;function jY(e){for(var t=e;t.includes("(");){var n=HN.exec(t),r=jh(n,2),i=r[1];t=t.replace(HN,$6(i))}return t}function OY(e){var t=e.replace(/\s+/g,"");return t=jY(t),t=$6(t),t}function TY(e){try{return OY(e)}catch{return xs}}function e0(e){var t=TY(e.slice(5,-1));return t===xs?"":t}var CY=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],EY=["dx","dy","angle","className","breakAll"];function G1(){return G1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G1.apply(this,arguments)}function FN(e,t){if(e==null)return{};var n=_Y(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _Y(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function GN(e,t){return MY(e)||DY(e,t)||NY(e,t)||PY()}function PY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NY(e,t){if(e){if(typeof e=="string")return KN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KN(e,t)}}function KN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function DY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function MY(e){if(Array.isArray(e))return e}var B6=/[ \f\n\r\t\v\u2028\u2029]+/,I6=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var s=[];Ne(n)||(r?s=n.toString().split(""):s=n.toString().split(B6));var l=s.map(function(d){return{word:d,width:Ic(d,i).width}}),u=r?0:Ic(" ",i).width;return{wordsWithComputedWidth:l,spaceWidth:u}}catch{return null}},RY=function(t,n,r,i,s){var l=t.maxLines,u=t.children,d=t.style,f=t.breakAll,p=de(l),g=u,v=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return W.reduce(function(z,H){var F=H.word,ie=H.width,ue=z[z.length-1];if(ue&&(i==null||s||ue.width+ie+r<Number(i)))ue.words.push(F),ue.width+=ie+r;else{var $={words:[F],width:ie};z.push($)}return z},[])},x=v(n),A=function(W){return W.reduce(function(z,H){return z.width>H.width?z:H})};if(!p)return x;for(var w="…",S=function(W){var z=g.slice(0,W),H=I6({breakAll:f,style:d,children:z+w}).wordsWithComputedWidth,F=v(H),ie=F.length>l||A(F).width>Number(i);return[ie,F]},O=0,E=g.length-1,j=0,N;O<=E&&j<=g.length-1;){var C=Math.floor((O+E)/2),P=C-1,D=S(P),M=GN(D,2),k=M[0],q=M[1],L=S(C),U=GN(L,1),X=U[0];if(!k&&!X&&(O=C+1),k&&X&&(E=C-1),!k&&X){N=q;break}j++}return N||x},XN=function(t){var n=Ne(t)?[]:t.toString().split(B6);return[{words:n}]},kY=function(t){var n=t.width,r=t.scaleToFit,i=t.children,s=t.style,l=t.breakAll,u=t.maxLines;if((n||r)&&!So.isSsr){var d,f,p=I6({breakAll:l,children:i,style:s});if(p){var g=p.wordsWithComputedWidth,v=p.spaceWidth;d=g,f=v}else return XN(i);return RY({breakAll:l,children:i,maxLines:u,style:s},d,f,n,r)}return XN(i)},YN="#808080",mo=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,s=i===void 0?0:i,l=t.lineHeight,u=l===void 0?"1em":l,d=t.capHeight,f=d===void 0?"0.71em":d,p=t.scaleToFit,g=p===void 0?!1:p,v=t.textAnchor,x=v===void 0?"start":v,A=t.verticalAnchor,w=A===void 0?"end":A,S=t.fill,O=S===void 0?YN:S,E=FN(t,CY),j=T.useMemo(function(){return kY({breakAll:E.breakAll,children:E.children,maxLines:E.maxLines,scaleToFit:g,style:E.style,width:E.width})},[E.breakAll,E.children,E.maxLines,g,E.style,E.width]),N=E.dx,C=E.dy,P=E.angle,D=E.className,M=E.breakAll,k=FN(E,EY);if(!Gt(r)||!Gt(s))return null;var q=r+(de(N)?N:0),L=s+(de(C)?C:0),U;switch(w){case"start":U=e0("calc(".concat(f,")"));break;case"middle":U=e0("calc(".concat((j.length-1)/2," * -").concat(u," + (").concat(f," / 2))"));break;default:U=e0("calc(".concat(j.length-1," * -").concat(u,")"));break}var X=[];if(g){var J=j[0].width,W=E.width;X.push("scale(".concat((de(W)?W/J:1)/J,")"))}return P&&X.push("rotate(".concat(P,", ").concat(q,", ").concat(L,")")),X.length&&(k.transform=X.join(" ")),B.createElement("text",G1({},je(k,!0),{x:q,y:L,className:De("recharts-text",D),textAnchor:x,fill:O.includes("url")?YN:O}),j.map(function(z,H){var F=z.words.join(M?"":" ");return B.createElement("tspan",{x:q,dy:H===0?U:u,key:"".concat(F,"-").concat(H)},F)}))};function vi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function zY(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function oA(e){let t,n,r;e.length!==2?(t=vi,n=(u,d)=>vi(e(u),d),r=(u,d)=>e(u)-d):(t=e===vi||e===zY?e:LY,n=e,r=e);function i(u,d,f=0,p=u.length){if(f<p){if(t(d,d)!==0)return p;do{const g=f+p>>>1;n(u[g],d)<0?f=g+1:p=g}while(f<p)}return f}function s(u,d,f=0,p=u.length){if(f<p){if(t(d,d)!==0)return p;do{const g=f+p>>>1;n(u[g],d)<=0?f=g+1:p=g}while(f<p)}return f}function l(u,d,f=0,p=u.length){const g=i(u,d,f,p-1);return g>f&&r(u[g-1],d)>-r(u[g],d)?g-1:g}return{left:i,center:l,right:s}}function LY(){return 0}function q6(e){return e===null?NaN:+e}function*$Y(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const BY=oA(vi),Wu=BY.right;oA(q6).center;class WN extends Map{constructor(t,n=VY){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(ZN(this,t))}has(t){return super.has(ZN(this,t))}set(t,n){return super.set(IY(this,t),n)}delete(t){return super.delete(qY(this,t))}}function ZN({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function IY({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function qY({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function VY(e){return e!==null&&typeof e=="object"?e.valueOf():e}function UY(e=vi){if(e===vi)return V6;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function V6(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const HY=Math.sqrt(50),FY=Math.sqrt(10),GY=Math.sqrt(2);function Oh(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),s=r/Math.pow(10,i),l=s>=HY?10:s>=FY?5:s>=GY?2:1;let u,d,f;return i<0?(f=Math.pow(10,-i)/l,u=Math.round(e*f),d=Math.round(t*f),u/f<e&&++u,d/f>t&&--d,f=-f):(f=Math.pow(10,i)*l,u=Math.round(e/f),d=Math.round(t/f),u*f<e&&++u,d*f>t&&--d),d<u&&.5<=n&&n<2?Oh(e,t,n*2):[u,d,f]}function K1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,s,l]=r?Oh(t,e,n):Oh(e,t,n);if(!(s>=i))return[];const u=s-i+1,d=new Array(u);if(r)if(l<0)for(let f=0;f<u;++f)d[f]=(s-f)/-l;else for(let f=0;f<u;++f)d[f]=(s-f)*l;else if(l<0)for(let f=0;f<u;++f)d[f]=(i+f)/-l;else for(let f=0;f<u;++f)d[f]=(i+f)*l;return d}function X1(e,t,n){return t=+t,e=+e,n=+n,Oh(e,t,n)[2]}function Y1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?X1(t,e,n):X1(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function QN(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function JN(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function U6(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?V6:UY(i);r>n;){if(r-n>600){const d=r-n+1,f=t-n+1,p=Math.log(d),g=.5*Math.exp(2*p/3),v=.5*Math.sqrt(p*g*(d-g)/d)*(f-d/2<0?-1:1),x=Math.max(n,Math.floor(t-f*g/d+v)),A=Math.min(r,Math.floor(t+(d-f)*g/d+v));U6(e,t,x,A,i)}const s=e[t];let l=n,u=r;for(Oc(e,n,t),i(e[r],s)>0&&Oc(e,n,r);l<u;){for(Oc(e,l,u),++l,--u;i(e[l],s)<0;)++l;for(;i(e[u],s)>0;)--u}i(e[n],s)===0?Oc(e,n,u):(++u,Oc(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function Oc(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function KY(e,t,n){if(e=Float64Array.from($Y(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return JN(e);if(t>=1)return QN(e);var r,i=(r-1)*t,s=Math.floor(i),l=QN(U6(e,s).subarray(0,s+1)),u=JN(e.subarray(s+1));return l+(u-l)*(i-s)}}function XY(e,t,n=q6){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,s=Math.floor(i),l=+n(e[s],s,e),u=+n(e[s+1],s+1,e);return l+(u-l)*(i-s)}}function YY(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,s=new Array(i);++r<i;)s[r]=e+r*n;return s}function yr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ra(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const W1=Symbol("implicit");function sA(){var e=new WN,t=[],n=[],r=W1;function i(s){let l=e.get(s);if(l===void 0){if(r!==W1)return r;e.set(s,l=t.push(s)-1)}return n[l%n.length]}return i.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new WN;for(const l of s)e.has(l)||e.set(l,t.push(l)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return sA(t,n).unknown(r)},yr.apply(i,arguments),i}function su(){var e=sA().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,s,l,u=!1,d=0,f=0,p=.5;delete e.unknown;function g(){var v=t().length,x=i<r,A=x?i:r,w=x?r:i;s=(w-A)/Math.max(1,v-d+f*2),u&&(s=Math.floor(s)),A+=(w-A-s*(v-d))*p,l=s*(1-d),u&&(A=Math.round(A),l=Math.round(l));var S=YY(v).map(function(O){return A+s*O});return n(x?S.reverse():S)}return e.domain=function(v){return arguments.length?(t(v),g()):t()},e.range=function(v){return arguments.length?([r,i]=v,r=+r,i=+i,g()):[r,i]},e.rangeRound=function(v){return[r,i]=v,r=+r,i=+i,u=!0,g()},e.bandwidth=function(){return l},e.step=function(){return s},e.round=function(v){return arguments.length?(u=!!v,g()):u},e.padding=function(v){return arguments.length?(d=Math.min(1,f=+v),g()):d},e.paddingInner=function(v){return arguments.length?(d=Math.min(1,v),g()):d},e.paddingOuter=function(v){return arguments.length?(f=+v,g()):f},e.align=function(v){return arguments.length?(p=Math.max(0,Math.min(1,v)),g()):p},e.copy=function(){return su(t(),[r,i]).round(u).paddingInner(d).paddingOuter(f).align(p)},yr.apply(g(),arguments)}function H6(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return H6(t())},e}function qc(){return H6(su.apply(null,arguments).paddingInner(1))}function lA(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function F6(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Zu(){}var lu=.7,Th=1/lu,Ds="\\s*([+-]?\\d+)\\s*",cu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",WY=/^#([0-9a-f]{3,8})$/,ZY=new RegExp(`^rgb\\(${Ds},${Ds},${Ds}\\)$`),QY=new RegExp(`^rgb\\(${qr},${qr},${qr}\\)$`),JY=new RegExp(`^rgba\\(${Ds},${Ds},${Ds},${cu}\\)$`),eW=new RegExp(`^rgba\\(${qr},${qr},${qr},${cu}\\)$`),tW=new RegExp(`^hsl\\(${cu},${qr},${qr}\\)$`),nW=new RegExp(`^hsla\\(${cu},${qr},${qr},${cu}\\)$`),eD={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};lA(Zu,uu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:tD,formatHex:tD,formatHex8:rW,formatHsl:aW,formatRgb:nD,toString:nD});function tD(){return this.rgb().formatHex()}function rW(){return this.rgb().formatHex8()}function aW(){return G6(this).formatHsl()}function nD(){return this.rgb().formatRgb()}function uu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=WY.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?rD(t):n===3?new Cn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?If(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?If(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ZY.exec(e))?new Cn(t[1],t[2],t[3],1):(t=QY.exec(e))?new Cn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=JY.exec(e))?If(t[1],t[2],t[3],t[4]):(t=eW.exec(e))?If(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=tW.exec(e))?oD(t[1],t[2]/100,t[3]/100,1):(t=nW.exec(e))?oD(t[1],t[2]/100,t[3]/100,t[4]):eD.hasOwnProperty(e)?rD(eD[e]):e==="transparent"?new Cn(NaN,NaN,NaN,0):null}function rD(e){return new Cn(e>>16&255,e>>8&255,e&255,1)}function If(e,t,n,r){return r<=0&&(e=t=n=NaN),new Cn(e,t,n,r)}function iW(e){return e instanceof Zu||(e=uu(e)),e?(e=e.rgb(),new Cn(e.r,e.g,e.b,e.opacity)):new Cn}function Z1(e,t,n,r){return arguments.length===1?iW(e):new Cn(e,t,n,r??1)}function Cn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}lA(Cn,Z1,F6(Zu,{brighter(e){return e=e==null?Th:Math.pow(Th,e),new Cn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?lu:Math.pow(lu,e),new Cn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Cn(oo(this.r),oo(this.g),oo(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:aD,formatHex:aD,formatHex8:oW,formatRgb:iD,toString:iD}));function aD(){return`#${eo(this.r)}${eo(this.g)}${eo(this.b)}`}function oW(){return`#${eo(this.r)}${eo(this.g)}${eo(this.b)}${eo((isNaN(this.opacity)?1:this.opacity)*255)}`}function iD(){const e=Ch(this.opacity);return`${e===1?"rgb(":"rgba("}${oo(this.r)}, ${oo(this.g)}, ${oo(this.b)}${e===1?")":`, ${e})`}`}function Ch(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function eo(e){return e=oo(e),(e<16?"0":"")+e.toString(16)}function oD(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Er(e,t,n,r)}function G6(e){if(e instanceof Er)return new Er(e.h,e.s,e.l,e.opacity);if(e instanceof Zu||(e=uu(e)),!e)return new Er;if(e instanceof Er)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),s=Math.max(t,n,r),l=NaN,u=s-i,d=(s+i)/2;return u?(t===s?l=(n-r)/u+(n<r)*6:n===s?l=(r-t)/u+2:l=(t-n)/u+4,u/=d<.5?s+i:2-s-i,l*=60):u=d>0&&d<1?0:l,new Er(l,u,d,e.opacity)}function sW(e,t,n,r){return arguments.length===1?G6(e):new Er(e,t,n,r??1)}function Er(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}lA(Er,sW,F6(Zu,{brighter(e){return e=e==null?Th:Math.pow(Th,e),new Er(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?lu:Math.pow(lu,e),new Er(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Cn(t0(e>=240?e-240:e+120,i,r),t0(e,i,r),t0(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Er(sD(this.h),qf(this.s),qf(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 e=Ch(this.opacity);return`${e===1?"hsl(":"hsla("}${sD(this.h)}, ${qf(this.s)*100}%, ${qf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function sD(e){return e=(e||0)%360,e<0?e+360:e}function qf(e){return Math.max(0,Math.min(1,e||0))}function t0(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const cA=e=>()=>e;function lW(e,t){return function(n){return e+n*t}}function cW(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function uW(e){return(e=+e)==1?K6:function(t,n){return n-t?cW(t,n,e):cA(isNaN(t)?n:t)}}function K6(e,t){var n=t-e;return n?lW(e,n):cA(isNaN(e)?t:e)}const lD=(function e(t){var n=uW(t);function r(i,s){var l=n((i=Z1(i)).r,(s=Z1(s)).r),u=n(i.g,s.g),d=n(i.b,s.b),f=K6(i.opacity,s.opacity);return function(p){return i.r=l(p),i.g=u(p),i.b=d(p),i.opacity=f(p),i+""}}return r.gamma=e,r})(1);function dW(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(s){for(i=0;i<n;++i)r[i]=e[i]*(1-s)+t[i]*s;return r}}function fW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function hW(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),s=new Array(n),l;for(l=0;l<r;++l)i[l]=wl(e[l],t[l]);for(;l<n;++l)s[l]=t[l];return function(u){for(l=0;l<r;++l)s[l]=i[l](u);return s}}function pW(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Eh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function mW(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=wl(e[i],t[i]):r[i]=t[i];return function(s){for(i in n)r[i]=n[i](s);return r}}var Q1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,n0=new RegExp(Q1.source,"g");function gW(e){return function(){return e}}function vW(e){return function(t){return e(t)+""}}function yW(e,t){var n=Q1.lastIndex=n0.lastIndex=0,r,i,s,l=-1,u=[],d=[];for(e=e+"",t=t+"";(r=Q1.exec(e))&&(i=n0.exec(t));)(s=i.index)>n&&(s=t.slice(n,s),u[l]?u[l]+=s:u[++l]=s),(r=r[0])===(i=i[0])?u[l]?u[l]+=i:u[++l]=i:(u[++l]=null,d.push({i:l,x:Eh(r,i)})),n=n0.lastIndex;return n<t.length&&(s=t.slice(n),u[l]?u[l]+=s:u[++l]=s),u.length<2?d[0]?vW(d[0].x):gW(t):(t=d.length,function(f){for(var p=0,g;p<t;++p)u[(g=d[p]).i]=g.x(f);return u.join("")})}function wl(e,t){var n=typeof t,r;return t==null||n==="boolean"?cA(t):(n==="number"?Eh:n==="string"?(r=uu(t))?(t=r,lD):yW:t instanceof uu?lD:t instanceof Date?pW:fW(t)?dW:Array.isArray(t)?hW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?mW:Eh)(e,t)}function uA(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function xW(e,t){t===void 0&&(t=e,e=wl);for(var n=0,r=t.length-1,i=t[0],s=new Array(r<0?0:r);n<r;)s[n]=e(i,i=t[++n]);return function(l){var u=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return s[u](l-u)}}function bW(e){return function(){return e}}function _h(e){return+e}var cD=[0,1];function vn(e){return e}function J1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:bW(isNaN(t)?NaN:.5)}function wW(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function SW(e,t,n){var r=e[0],i=e[1],s=t[0],l=t[1];return i<r?(r=J1(i,r),s=n(l,s)):(r=J1(r,i),s=n(s,l)),function(u){return s(r(u))}}function AW(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),s=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)i[l]=J1(e[l],e[l+1]),s[l]=n(t[l],t[l+1]);return function(u){var d=Wu(e,u,1,r)-1;return s[d](i[d](u))}}function Qu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function qp(){var e=cD,t=cD,n=wl,r,i,s,l=vn,u,d,f;function p(){var v=Math.min(e.length,t.length);return l!==vn&&(l=wW(e[0],e[v-1])),u=v>2?AW:SW,d=f=null,g}function g(v){return v==null||isNaN(v=+v)?s:(d||(d=u(e.map(r),t,n)))(r(l(v)))}return g.invert=function(v){return l(i((f||(f=u(t,e.map(r),Eh)))(v)))},g.domain=function(v){return arguments.length?(e=Array.from(v,_h),p()):e.slice()},g.range=function(v){return arguments.length?(t=Array.from(v),p()):t.slice()},g.rangeRound=function(v){return t=Array.from(v),n=uA,p()},g.clamp=function(v){return arguments.length?(l=v?!0:vn,p()):l!==vn},g.interpolate=function(v){return arguments.length?(n=v,p()):n},g.unknown=function(v){return arguments.length?(s=v,g):s},function(v,x){return r=v,i=x,p()}}function dA(){return qp()(vn,vn)}function jW(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ph(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Vs(e){return e=Ph(Math.abs(e)),e?e[1]:NaN}function OW(e,t){return function(n,r){for(var i=n.length,s=[],l=0,u=e[0],d=0;i>0&&u>0&&(d+u+1>r&&(u=Math.max(1,r-d)),s.push(n.substring(i-=u,i+u)),!((d+=u+1)>r));)u=e[l=(l+1)%e.length];return s.reverse().join(t)}}function TW(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var CW=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function du(e){if(!(t=CW.exec(e)))throw new Error("invalid format: "+e);var t;return new fA({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}du.prototype=fA.prototype;function fA(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}fA.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 EW(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var X6;function _W(e,t){var n=Ph(e,t);if(!n)return e+"";var r=n[0],i=n[1],s=i-(X6=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,l=r.length;return s===l?r:s>l?r+new Array(s-l+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+Ph(e,Math.max(0,t+s-1))[0]}function uD(e,t){var n=Ph(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const dD={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:jW,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>uD(e*100,t),r:uD,s:_W,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function fD(e){return e}var hD=Array.prototype.map,pD=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function PW(e){var t=e.grouping===void 0||e.thousands===void 0?fD:OW(hD.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?fD:TW(hD.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function f(g){g=du(g);var v=g.fill,x=g.align,A=g.sign,w=g.symbol,S=g.zero,O=g.width,E=g.comma,j=g.precision,N=g.trim,C=g.type;C==="n"?(E=!0,C="g"):dD[C]||(j===void 0&&(j=12),N=!0,C="g"),(S||v==="0"&&x==="=")&&(S=!0,v="0",x="=");var P=w==="$"?n:w==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",D=w==="$"?r:/[%p]/.test(C)?l:"",M=dD[C],k=/[defgprs%]/.test(C);j=j===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,j)):Math.max(0,Math.min(20,j));function q(L){var U=P,X=D,J,W,z;if(C==="c")X=M(L)+X,L="";else{L=+L;var H=L<0||1/L<0;if(L=isNaN(L)?d:M(Math.abs(L),j),N&&(L=EW(L)),H&&+L==0&&A!=="+"&&(H=!1),U=(H?A==="("?A:u:A==="-"||A==="("?"":A)+U,X=(C==="s"?pD[8+X6/3]:"")+X+(H&&A==="("?")":""),k){for(J=-1,W=L.length;++J<W;)if(z=L.charCodeAt(J),48>z||z>57){X=(z===46?i+L.slice(J+1):L.slice(J))+X,L=L.slice(0,J);break}}}E&&!S&&(L=t(L,1/0));var F=U.length+L.length+X.length,ie=F<O?new Array(O-F+1).join(v):"";switch(E&&S&&(L=t(ie+L,ie.length?O-X.length:1/0),ie=""),x){case"<":L=U+L+X+ie;break;case"=":L=U+ie+L+X;break;case"^":L=ie.slice(0,F=ie.length>>1)+U+L+X+ie.slice(F);break;default:L=ie+U+L+X;break}return s(L)}return q.toString=function(){return g+""},q}function p(g,v){var x=f((g=du(g),g.type="f",g)),A=Math.max(-8,Math.min(8,Math.floor(Vs(v)/3)))*3,w=Math.pow(10,-A),S=pD[8+A/3];return function(O){return x(w*O)+S}}return{format:f,formatPrefix:p}}var Vf,hA,Y6;NW({thousands:",",grouping:[3],currency:["$",""]});function NW(e){return Vf=PW(e),hA=Vf.format,Y6=Vf.formatPrefix,Vf}function DW(e){return Math.max(0,-Vs(Math.abs(e)))}function MW(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Vs(t)/3)))*3-Vs(Math.abs(e)))}function RW(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Vs(t)-Vs(e))+1}function W6(e,t,n,r){var i=Y1(e,t,n),s;switch(r=du(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=MW(i,l))&&(r.precision=s),Y6(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=RW(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=DW(i))&&(r.precision=s-(r.type==="%")*2);break}}return hA(r)}function wi(e){var t=e.domain;return e.ticks=function(n){var r=t();return K1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return W6(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,s=r.length-1,l=r[i],u=r[s],d,f,p=10;for(u<l&&(f=l,l=u,u=f,f=i,i=s,s=f);p-- >0;){if(f=X1(l,u,n),f===d)return r[i]=l,r[s]=u,t(r);if(f>0)l=Math.floor(l/f)*f,u=Math.ceil(u/f)*f;else if(f<0)l=Math.ceil(l*f)/f,u=Math.floor(u*f)/f;else break;d=f}return e},e}function Nh(){var e=dA();return e.copy=function(){return Qu(e,Nh())},yr.apply(e,arguments),wi(e)}function Z6(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,_h),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Z6(e).unknown(t)},e=arguments.length?Array.from(e,_h):[0,1],wi(n)}function Q6(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],s=e[r],l;return s<i&&(l=n,n=r,r=l,l=i,i=s,s=l),e[n]=t.floor(i),e[r]=t.ceil(s),e}function mD(e){return Math.log(e)}function gD(e){return Math.exp(e)}function kW(e){return-Math.log(-e)}function zW(e){return-Math.exp(-e)}function LW(e){return isFinite(e)?+("1e"+e):e<0?0:e}function $W(e){return e===10?LW:e===Math.E?Math.exp:t=>Math.pow(e,t)}function BW(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function vD(e){return(t,n)=>-e(-t,n)}function pA(e){const t=e(mD,gD),n=t.domain;let r=10,i,s;function l(){return i=BW(r),s=$W(r),n()[0]<0?(i=vD(i),s=vD(s),e(kW,zW)):e(mD,gD),t}return t.base=function(u){return arguments.length?(r=+u,l()):r},t.domain=function(u){return arguments.length?(n(u),l()):n()},t.ticks=u=>{const d=n();let f=d[0],p=d[d.length-1];const g=p<f;g&&([f,p]=[p,f]);let v=i(f),x=i(p),A,w;const S=u==null?10:+u;let O=[];if(!(r%1)&&x-v<S){if(v=Math.floor(v),x=Math.ceil(x),f>0){for(;v<=x;++v)for(A=1;A<r;++A)if(w=v<0?A/s(-v):A*s(v),!(w<f)){if(w>p)break;O.push(w)}}else for(;v<=x;++v)for(A=r-1;A>=1;--A)if(w=v>0?A/s(-v):A*s(v),!(w<f)){if(w>p)break;O.push(w)}O.length*2<S&&(O=K1(f,p,S))}else O=K1(v,x,Math.min(x-v,S)).map(s);return g?O.reverse():O},t.tickFormat=(u,d)=>{if(u==null&&(u=10),d==null&&(d=r===10?"s":","),typeof d!="function"&&(!(r%1)&&(d=du(d)).precision==null&&(d.trim=!0),d=hA(d)),u===1/0)return d;const f=Math.max(1,r*u/t.ticks().length);return p=>{let g=p/s(Math.round(i(p)));return g*r<r-.5&&(g*=r),g<=f?d(p):""}},t.nice=()=>n(Q6(n(),{floor:u=>s(Math.floor(i(u))),ceil:u=>s(Math.ceil(i(u)))})),t}function J6(){const e=pA(qp()).domain([1,10]);return e.copy=()=>Qu(e,J6()).base(e.base()),yr.apply(e,arguments),e}function yD(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function xD(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function mA(e){var t=1,n=e(yD(t),xD(t));return n.constant=function(r){return arguments.length?e(yD(t=+r),xD(t)):t},wi(n)}function e8(){var e=mA(qp());return e.copy=function(){return Qu(e,e8()).constant(e.constant())},yr.apply(e,arguments)}function bD(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function IW(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function qW(e){return e<0?-e*e:e*e}function gA(e){var t=e(vn,vn),n=1;function r(){return n===1?e(vn,vn):n===.5?e(IW,qW):e(bD(n),bD(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},wi(t)}function vA(){var e=gA(qp());return e.copy=function(){return Qu(e,vA()).exponent(e.exponent())},yr.apply(e,arguments),e}function VW(){return vA.apply(null,arguments).exponent(.5)}function wD(e){return Math.sign(e)*e*e}function UW(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function t8(){var e=dA(),t=[0,1],n=!1,r;function i(s){var l=UW(e(s));return isNaN(l)?r:n?Math.round(l):l}return i.invert=function(s){return e.invert(wD(s))},i.domain=function(s){return arguments.length?(e.domain(s),i):e.domain()},i.range=function(s){return arguments.length?(e.range((t=Array.from(s,_h)).map(wD)),i):t.slice()},i.rangeRound=function(s){return i.range(s).round(!0)},i.round=function(s){return arguments.length?(n=!!s,i):n},i.clamp=function(s){return arguments.length?(e.clamp(s),i):e.clamp()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return t8(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},yr.apply(i,arguments),wi(i)}function n8(){var e=[],t=[],n=[],r;function i(){var l=0,u=Math.max(1,t.length);for(n=new Array(u-1);++l<u;)n[l-1]=XY(e,l/u);return s}function s(l){return l==null||isNaN(l=+l)?r:t[Wu(n,l)]}return s.invertExtent=function(l){var u=t.indexOf(l);return u<0?[NaN,NaN]:[u>0?n[u-1]:e[0],u<n.length?n[u]:e[e.length-1]]},s.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let u of l)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(vi),i()},s.range=function(l){return arguments.length?(t=Array.from(l),i()):t.slice()},s.unknown=function(l){return arguments.length?(r=l,s):r},s.quantiles=function(){return n.slice()},s.copy=function(){return n8().domain(e).range(t).unknown(r)},yr.apply(s,arguments)}function r8(){var e=0,t=1,n=1,r=[.5],i=[0,1],s;function l(d){return d!=null&&d<=d?i[Wu(r,d,0,n)]:s}function u(){var d=-1;for(r=new Array(n);++d<n;)r[d]=((d+1)*t-(d-n)*e)/(n+1);return l}return l.domain=function(d){return arguments.length?([e,t]=d,e=+e,t=+t,u()):[e,t]},l.range=function(d){return arguments.length?(n=(i=Array.from(d)).length-1,u()):i.slice()},l.invertExtent=function(d){var f=i.indexOf(d);return f<0?[NaN,NaN]:f<1?[e,r[0]]:f>=n?[r[n-1],t]:[r[f-1],r[f]]},l.unknown=function(d){return arguments.length&&(s=d),l},l.thresholds=function(){return r.slice()},l.copy=function(){return r8().domain([e,t]).range(i).unknown(s)},yr.apply(wi(l),arguments)}function a8(){var e=[.5],t=[0,1],n,r=1;function i(s){return s!=null&&s<=s?t[Wu(e,s,0,r)]:n}return i.domain=function(s){return arguments.length?(e=Array.from(s),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(s){return arguments.length?(t=Array.from(s),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(s){var l=t.indexOf(s);return[e[l-1],e[l]]},i.unknown=function(s){return arguments.length?(n=s,i):n},i.copy=function(){return a8().domain(e).range(t).unknown(n)},yr.apply(i,arguments)}const r0=new Date,a0=new Date;function Kt(e,t,n,r){function i(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(e(s=new Date(+s)),s),i.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),i.round=s=>{const l=i(s),u=i.ceil(s);return s-l<u-s?l:u},i.offset=(s,l)=>(t(s=new Date(+s),l==null?1:Math.floor(l)),s),i.range=(s,l,u)=>{const d=[];if(s=i.ceil(s),u=u==null?1:Math.floor(u),!(s<l)||!(u>0))return d;let f;do d.push(f=new Date(+s)),t(s,u),e(s);while(f<s&&s<l);return d},i.filter=s=>Kt(l=>{if(l>=l)for(;e(l),!s(l);)l.setTime(l-1)},(l,u)=>{if(l>=l)if(u<0)for(;++u<=0;)for(;t(l,-1),!s(l););else for(;--u>=0;)for(;t(l,1),!s(l););}),n&&(i.count=(s,l)=>(r0.setTime(+s),a0.setTime(+l),e(r0),e(a0),Math.floor(n(r0,a0))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?l=>r(l)%s===0:l=>i.count(0,l)%s===0):i)),i}const Dh=Kt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Dh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Kt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Dh);Dh.range;const xa=1e3,fr=xa*60,ba=fr*60,Oa=ba*24,yA=Oa*7,SD=Oa*30,i0=Oa*365,to=Kt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*xa)},(e,t)=>(t-e)/xa,e=>e.getUTCSeconds());to.range;const xA=Kt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*xa)},(e,t)=>{e.setTime(+e+t*fr)},(e,t)=>(t-e)/fr,e=>e.getMinutes());xA.range;const bA=Kt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*fr)},(e,t)=>(t-e)/fr,e=>e.getUTCMinutes());bA.range;const wA=Kt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*xa-e.getMinutes()*fr)},(e,t)=>{e.setTime(+e+t*ba)},(e,t)=>(t-e)/ba,e=>e.getHours());wA.range;const SA=Kt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ba)},(e,t)=>(t-e)/ba,e=>e.getUTCHours());SA.range;const Ju=Kt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fr)/Oa,e=>e.getDate()-1);Ju.range;const Vp=Kt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Oa,e=>e.getUTCDate()-1);Vp.range;const i8=Kt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Oa,e=>Math.floor(e/Oa));i8.range;function Ao(e){return Kt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*fr)/yA)}const Up=Ao(0),Mh=Ao(1),HW=Ao(2),FW=Ao(3),Us=Ao(4),GW=Ao(5),KW=Ao(6);Up.range;Mh.range;HW.range;FW.range;Us.range;GW.range;KW.range;function jo(e){return Kt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/yA)}const Hp=jo(0),Rh=jo(1),XW=jo(2),YW=jo(3),Hs=jo(4),WW=jo(5),ZW=jo(6);Hp.range;Rh.range;XW.range;YW.range;Hs.range;WW.range;ZW.range;const AA=Kt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());AA.range;const jA=Kt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());jA.range;const Ta=Kt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ta.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Kt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Ta.range;const Ca=Kt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Ca.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Kt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Ca.range;function o8(e,t,n,r,i,s){const l=[[to,1,xa],[to,5,5*xa],[to,15,15*xa],[to,30,30*xa],[s,1,fr],[s,5,5*fr],[s,15,15*fr],[s,30,30*fr],[i,1,ba],[i,3,3*ba],[i,6,6*ba],[i,12,12*ba],[r,1,Oa],[r,2,2*Oa],[n,1,yA],[t,1,SD],[t,3,3*SD],[e,1,i0]];function u(f,p,g){const v=p<f;v&&([f,p]=[p,f]);const x=g&&typeof g.range=="function"?g:d(f,p,g),A=x?x.range(f,+p+1):[];return v?A.reverse():A}function d(f,p,g){const v=Math.abs(p-f)/g,x=oA(([,,S])=>S).right(l,v);if(x===l.length)return e.every(Y1(f/i0,p/i0,g));if(x===0)return Dh.every(Math.max(Y1(f,p,g),1));const[A,w]=l[v/l[x-1][2]<l[x][2]/v?x-1:x];return A.every(w)}return[u,d]}const[QW,JW]=o8(Ca,jA,Hp,i8,SA,bA),[eZ,tZ]=o8(Ta,AA,Up,Ju,wA,xA);function o0(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function s0(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Tc(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function nZ(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,s=e.days,l=e.shortDays,u=e.months,d=e.shortMonths,f=Cc(i),p=Ec(i),g=Cc(s),v=Ec(s),x=Cc(l),A=Ec(l),w=Cc(u),S=Ec(u),O=Cc(d),E=Ec(d),j={a:H,A:F,b:ie,B:ue,c:null,d:ED,e:ED,f:OZ,g:kZ,G:LZ,H:SZ,I:AZ,j:jZ,L:s8,m:TZ,M:CZ,p:$,q:G,Q:ND,s:DD,S:EZ,u:_Z,U:PZ,V:NZ,w:DZ,W:MZ,x:null,X:null,y:RZ,Y:zZ,Z:$Z,"%":PD},N={a:te,A:le,b:fe,B:Se,c:null,d:_D,e:_D,f:VZ,g:QZ,G:eQ,H:BZ,I:IZ,j:qZ,L:c8,m:UZ,M:HZ,p:be,q:Fe,Q:ND,s:DD,S:FZ,u:GZ,U:KZ,V:XZ,w:YZ,W:WZ,x:null,X:null,y:ZZ,Y:JZ,Z:tQ,"%":PD},C={a:q,A:L,b:U,B:X,c:J,d:TD,e:TD,f:yZ,g:OD,G:jD,H:CD,I:CD,j:pZ,L:vZ,m:hZ,M:mZ,p:k,q:fZ,Q:bZ,s:wZ,S:gZ,u:sZ,U:lZ,V:cZ,w:oZ,W:uZ,x:W,X:z,y:OD,Y:jD,Z:dZ,"%":xZ};j.x=P(n,j),j.X=P(r,j),j.c=P(t,j),N.x=P(n,N),N.X=P(r,N),N.c=P(t,N);function P(ce,Ae){return function(Ce){var se=[],ht=-1,Re=0,bt=ce.length,wt,sn,xr;for(Ce instanceof Date||(Ce=new Date(+Ce));++ht<bt;)ce.charCodeAt(ht)===37&&(se.push(ce.slice(Re,ht)),(sn=AD[wt=ce.charAt(++ht)])!=null?wt=ce.charAt(++ht):sn=wt==="e"?" ":"0",(xr=Ae[wt])&&(wt=xr(Ce,sn)),se.push(wt),Re=ht+1);return se.push(ce.slice(Re,ht)),se.join("")}}function D(ce,Ae){return function(Ce){var se=Tc(1900,void 0,1),ht=M(se,ce,Ce+="",0),Re,bt;if(ht!=Ce.length)return null;if("Q"in se)return new Date(se.Q);if("s"in se)return new Date(se.s*1e3+("L"in se?se.L:0));if(Ae&&!("Z"in se)&&(se.Z=0),"p"in se&&(se.H=se.H%12+se.p*12),se.m===void 0&&(se.m="q"in se?se.q:0),"V"in se){if(se.V<1||se.V>53)return null;"w"in se||(se.w=1),"Z"in se?(Re=s0(Tc(se.y,0,1)),bt=Re.getUTCDay(),Re=bt>4||bt===0?Rh.ceil(Re):Rh(Re),Re=Vp.offset(Re,(se.V-1)*7),se.y=Re.getUTCFullYear(),se.m=Re.getUTCMonth(),se.d=Re.getUTCDate()+(se.w+6)%7):(Re=o0(Tc(se.y,0,1)),bt=Re.getDay(),Re=bt>4||bt===0?Mh.ceil(Re):Mh(Re),Re=Ju.offset(Re,(se.V-1)*7),se.y=Re.getFullYear(),se.m=Re.getMonth(),se.d=Re.getDate()+(se.w+6)%7)}else("W"in se||"U"in se)&&("w"in se||(se.w="u"in se?se.u%7:"W"in se?1:0),bt="Z"in se?s0(Tc(se.y,0,1)).getUTCDay():o0(Tc(se.y,0,1)).getDay(),se.m=0,se.d="W"in se?(se.w+6)%7+se.W*7-(bt+5)%7:se.w+se.U*7-(bt+6)%7);return"Z"in se?(se.H+=se.Z/100|0,se.M+=se.Z%100,s0(se)):o0(se)}}function M(ce,Ae,Ce,se){for(var ht=0,Re=Ae.length,bt=Ce.length,wt,sn;ht<Re;){if(se>=bt)return-1;if(wt=Ae.charCodeAt(ht++),wt===37){if(wt=Ae.charAt(ht++),sn=C[wt in AD?Ae.charAt(ht++):wt],!sn||(se=sn(ce,Ce,se))<0)return-1}else if(wt!=Ce.charCodeAt(se++))return-1}return se}function k(ce,Ae,Ce){var se=f.exec(Ae.slice(Ce));return se?(ce.p=p.get(se[0].toLowerCase()),Ce+se[0].length):-1}function q(ce,Ae,Ce){var se=x.exec(Ae.slice(Ce));return se?(ce.w=A.get(se[0].toLowerCase()),Ce+se[0].length):-1}function L(ce,Ae,Ce){var se=g.exec(Ae.slice(Ce));return se?(ce.w=v.get(se[0].toLowerCase()),Ce+se[0].length):-1}function U(ce,Ae,Ce){var se=O.exec(Ae.slice(Ce));return se?(ce.m=E.get(se[0].toLowerCase()),Ce+se[0].length):-1}function X(ce,Ae,Ce){var se=w.exec(Ae.slice(Ce));return se?(ce.m=S.get(se[0].toLowerCase()),Ce+se[0].length):-1}function J(ce,Ae,Ce){return M(ce,t,Ae,Ce)}function W(ce,Ae,Ce){return M(ce,n,Ae,Ce)}function z(ce,Ae,Ce){return M(ce,r,Ae,Ce)}function H(ce){return l[ce.getDay()]}function F(ce){return s[ce.getDay()]}function ie(ce){return d[ce.getMonth()]}function ue(ce){return u[ce.getMonth()]}function $(ce){return i[+(ce.getHours()>=12)]}function G(ce){return 1+~~(ce.getMonth()/3)}function te(ce){return l[ce.getUTCDay()]}function le(ce){return s[ce.getUTCDay()]}function fe(ce){return d[ce.getUTCMonth()]}function Se(ce){return u[ce.getUTCMonth()]}function be(ce){return i[+(ce.getUTCHours()>=12)]}function Fe(ce){return 1+~~(ce.getUTCMonth()/3)}return{format:function(ce){var Ae=P(ce+="",j);return Ae.toString=function(){return ce},Ae},parse:function(ce){var Ae=D(ce+="",!1);return Ae.toString=function(){return ce},Ae},utcFormat:function(ce){var Ae=P(ce+="",N);return Ae.toString=function(){return ce},Ae},utcParse:function(ce){var Ae=D(ce+="",!0);return Ae.toString=function(){return ce},Ae}}}var AD={"-":"",_:" ",0:"0"},Qt=/^\s*\d+/,rZ=/^%/,aZ=/[\\^$*+?|[\]().{}]/g;function Ye(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(t)+i:i)}function iZ(e){return e.replace(aZ,"\\$&")}function Cc(e){return new RegExp("^(?:"+e.map(iZ).join("|")+")","i")}function Ec(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function oZ(e,t,n){var r=Qt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function sZ(e,t,n){var r=Qt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function lZ(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function cZ(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function uZ(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function jD(e,t,n){var r=Qt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function OD(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function dZ(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function fZ(e,t,n){var r=Qt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function hZ(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function TD(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function pZ(e,t,n){var r=Qt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function CD(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mZ(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function gZ(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function vZ(e,t,n){var r=Qt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function yZ(e,t,n){var r=Qt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function xZ(e,t,n){var r=rZ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function bZ(e,t,n){var r=Qt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function wZ(e,t,n){var r=Qt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ED(e,t){return Ye(e.getDate(),t,2)}function SZ(e,t){return Ye(e.getHours(),t,2)}function AZ(e,t){return Ye(e.getHours()%12||12,t,2)}function jZ(e,t){return Ye(1+Ju.count(Ta(e),e),t,3)}function s8(e,t){return Ye(e.getMilliseconds(),t,3)}function OZ(e,t){return s8(e,t)+"000"}function TZ(e,t){return Ye(e.getMonth()+1,t,2)}function CZ(e,t){return Ye(e.getMinutes(),t,2)}function EZ(e,t){return Ye(e.getSeconds(),t,2)}function _Z(e){var t=e.getDay();return t===0?7:t}function PZ(e,t){return Ye(Up.count(Ta(e)-1,e),t,2)}function l8(e){var t=e.getDay();return t>=4||t===0?Us(e):Us.ceil(e)}function NZ(e,t){return e=l8(e),Ye(Us.count(Ta(e),e)+(Ta(e).getDay()===4),t,2)}function DZ(e){return e.getDay()}function MZ(e,t){return Ye(Mh.count(Ta(e)-1,e),t,2)}function RZ(e,t){return Ye(e.getFullYear()%100,t,2)}function kZ(e,t){return e=l8(e),Ye(e.getFullYear()%100,t,2)}function zZ(e,t){return Ye(e.getFullYear()%1e4,t,4)}function LZ(e,t){var n=e.getDay();return e=n>=4||n===0?Us(e):Us.ceil(e),Ye(e.getFullYear()%1e4,t,4)}function $Z(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ye(t/60|0,"0",2)+Ye(t%60,"0",2)}function _D(e,t){return Ye(e.getUTCDate(),t,2)}function BZ(e,t){return Ye(e.getUTCHours(),t,2)}function IZ(e,t){return Ye(e.getUTCHours()%12||12,t,2)}function qZ(e,t){return Ye(1+Vp.count(Ca(e),e),t,3)}function c8(e,t){return Ye(e.getUTCMilliseconds(),t,3)}function VZ(e,t){return c8(e,t)+"000"}function UZ(e,t){return Ye(e.getUTCMonth()+1,t,2)}function HZ(e,t){return Ye(e.getUTCMinutes(),t,2)}function FZ(e,t){return Ye(e.getUTCSeconds(),t,2)}function GZ(e){var t=e.getUTCDay();return t===0?7:t}function KZ(e,t){return Ye(Hp.count(Ca(e)-1,e),t,2)}function u8(e){var t=e.getUTCDay();return t>=4||t===0?Hs(e):Hs.ceil(e)}function XZ(e,t){return e=u8(e),Ye(Hs.count(Ca(e),e)+(Ca(e).getUTCDay()===4),t,2)}function YZ(e){return e.getUTCDay()}function WZ(e,t){return Ye(Rh.count(Ca(e)-1,e),t,2)}function ZZ(e,t){return Ye(e.getUTCFullYear()%100,t,2)}function QZ(e,t){return e=u8(e),Ye(e.getUTCFullYear()%100,t,2)}function JZ(e,t){return Ye(e.getUTCFullYear()%1e4,t,4)}function eQ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Hs(e):Hs.ceil(e),Ye(e.getUTCFullYear()%1e4,t,4)}function tQ(){return"+0000"}function PD(){return"%"}function ND(e){return+e}function DD(e){return Math.floor(+e/1e3)}var gs,d8,f8;nQ({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 nQ(e){return gs=nZ(e),d8=gs.format,gs.parse,f8=gs.utcFormat,gs.utcParse,gs}function rQ(e){return new Date(e)}function aQ(e){return e instanceof Date?+e:+new Date(+e)}function OA(e,t,n,r,i,s,l,u,d,f){var p=dA(),g=p.invert,v=p.domain,x=f(".%L"),A=f(":%S"),w=f("%I:%M"),S=f("%I %p"),O=f("%a %d"),E=f("%b %d"),j=f("%B"),N=f("%Y");function C(P){return(d(P)<P?x:u(P)<P?A:l(P)<P?w:s(P)<P?S:r(P)<P?i(P)<P?O:E:n(P)<P?j:N)(P)}return p.invert=function(P){return new Date(g(P))},p.domain=function(P){return arguments.length?v(Array.from(P,aQ)):v().map(rQ)},p.ticks=function(P){var D=v();return e(D[0],D[D.length-1],P??10)},p.tickFormat=function(P,D){return D==null?C:f(D)},p.nice=function(P){var D=v();return(!P||typeof P.range!="function")&&(P=t(D[0],D[D.length-1],P??10)),P?v(Q6(D,P)):p},p.copy=function(){return Qu(p,OA(e,t,n,r,i,s,l,u,d,f))},p}function iQ(){return yr.apply(OA(eZ,tZ,Ta,AA,Up,Ju,wA,xA,to,d8).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function oQ(){return yr.apply(OA(QW,JW,Ca,jA,Hp,Vp,SA,bA,to,f8).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Fp(){var e=0,t=1,n,r,i,s,l=vn,u=!1,d;function f(g){return g==null||isNaN(g=+g)?d:l(i===0?.5:(g=(s(g)-n)*i,u?Math.max(0,Math.min(1,g)):g))}f.domain=function(g){return arguments.length?([e,t]=g,n=s(e=+e),r=s(t=+t),i=n===r?0:1/(r-n),f):[e,t]},f.clamp=function(g){return arguments.length?(u=!!g,f):u},f.interpolator=function(g){return arguments.length?(l=g,f):l};function p(g){return function(v){var x,A;return arguments.length?([x,A]=v,l=g(x,A),f):[l(0),l(1)]}}return f.range=p(wl),f.rangeRound=p(uA),f.unknown=function(g){return arguments.length?(d=g,f):d},function(g){return s=g,n=g(e),r=g(t),i=n===r?0:1/(r-n),f}}function Si(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function h8(){var e=wi(Fp()(vn));return e.copy=function(){return Si(e,h8())},Ra.apply(e,arguments)}function p8(){var e=pA(Fp()).domain([1,10]);return e.copy=function(){return Si(e,p8()).base(e.base())},Ra.apply(e,arguments)}function m8(){var e=mA(Fp());return e.copy=function(){return Si(e,m8()).constant(e.constant())},Ra.apply(e,arguments)}function TA(){var e=gA(Fp());return e.copy=function(){return Si(e,TA()).exponent(e.exponent())},Ra.apply(e,arguments)}function sQ(){return TA.apply(null,arguments).exponent(.5)}function g8(){var e=[],t=vn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Wu(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(vi),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,s)=>KY(e,s/r))},n.copy=function(){return g8(t).domain(e)},Ra.apply(n,arguments)}function Gp(){var e=0,t=.5,n=1,r=1,i,s,l,u,d,f=vn,p,g=!1,v;function x(w){return isNaN(w=+w)?v:(w=.5+((w=+p(w))-s)*(r*w<r*s?u:d),f(g?Math.max(0,Math.min(1,w)):w))}x.domain=function(w){return arguments.length?([e,t,n]=w,i=p(e=+e),s=p(t=+t),l=p(n=+n),u=i===s?0:.5/(s-i),d=s===l?0:.5/(l-s),r=s<i?-1:1,x):[e,t,n]},x.clamp=function(w){return arguments.length?(g=!!w,x):g},x.interpolator=function(w){return arguments.length?(f=w,x):f};function A(w){return function(S){var O,E,j;return arguments.length?([O,E,j]=S,f=xW(w,[O,E,j]),x):[f(0),f(.5),f(1)]}}return x.range=A(wl),x.rangeRound=A(uA),x.unknown=function(w){return arguments.length?(v=w,x):v},function(w){return p=w,i=w(e),s=w(t),l=w(n),u=i===s?0:.5/(s-i),d=s===l?0:.5/(l-s),r=s<i?-1:1,x}}function v8(){var e=wi(Gp()(vn));return e.copy=function(){return Si(e,v8())},Ra.apply(e,arguments)}function y8(){var e=pA(Gp()).domain([.1,1,10]);return e.copy=function(){return Si(e,y8()).base(e.base())},Ra.apply(e,arguments)}function x8(){var e=mA(Gp());return e.copy=function(){return Si(e,x8()).constant(e.constant())},Ra.apply(e,arguments)}function CA(){var e=gA(Gp());return e.copy=function(){return Si(e,CA()).exponent(e.exponent())},Ra.apply(e,arguments)}function lQ(){return CA.apply(null,arguments).exponent(.5)}const MD=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:su,scaleDiverging:v8,scaleDivergingLog:y8,scaleDivergingPow:CA,scaleDivergingSqrt:lQ,scaleDivergingSymlog:x8,scaleIdentity:Z6,scaleImplicit:W1,scaleLinear:Nh,scaleLog:J6,scaleOrdinal:sA,scalePoint:qc,scalePow:vA,scaleQuantile:n8,scaleQuantize:r8,scaleRadial:t8,scaleSequential:h8,scaleSequentialLog:p8,scaleSequentialPow:TA,scaleSequentialQuantile:g8,scaleSequentialSqrt:sQ,scaleSequentialSymlog:m8,scaleSqrt:VW,scaleSymlog:e8,scaleThreshold:a8,scaleTime:iQ,scaleUtc:oQ,tickFormat:W6},Symbol.toStringTag,{value:"Module"}));var l0,RD;function Kp(){if(RD)return l0;RD=1;var e=vl();function t(n,r,i){for(var s=-1,l=n.length;++s<l;){var u=n[s],d=r(u);if(d!=null&&(f===void 0?d===d&&!e(d):i(d,f)))var f=d,p=u}return p}return l0=t,l0}var c0,kD;function b8(){if(kD)return c0;kD=1;function e(t,n){return t>n}return c0=e,c0}var u0,zD;function cQ(){if(zD)return u0;zD=1;var e=Kp(),t=b8(),n=bl();function r(i){return i&&i.length?e(i,n,t):void 0}return u0=r,u0}var uQ=cQ();const Xp=tt(uQ);var d0,LD;function w8(){if(LD)return d0;LD=1;function e(t,n){return t<n}return d0=e,d0}var f0,$D;function dQ(){if($D)return f0;$D=1;var e=Kp(),t=w8(),n=bl();function r(i){return i&&i.length?e(i,n,t):void 0}return f0=r,f0}var fQ=dQ();const Yp=tt(fQ);var h0,BD;function hQ(){if(BD)return h0;BD=1;var e=US(),t=Yr(),n=_6(),r=_n();function i(s,l){var u=r(s)?e:n;return u(s,t(l,3))}return h0=i,h0}var p0,ID;function pQ(){if(ID)return p0;ID=1;var e=C6(),t=hQ();function n(r,i){return e(t(r,i),1)}return p0=n,p0}var mQ=pQ();const gQ=tt(mQ);var m0,qD;function vQ(){if(qD)return m0;qD=1;var e=nA();function t(n,r){return e(n,r)}return m0=t,m0}var yQ=vQ();const ed=tt(yQ);var Sl=1e9,xQ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},_A,yt=!0,gr="[DecimalError] ",so=gr+"Invalid argument: ",EA=gr+"Exponent out of range: ",Al=Math.floor,Yi=Math.pow,bQ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Hn,Wt=1e7,gt=7,S8=9007199254740991,kh=Al(S8/gt),he={};he.absoluteValue=he.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};he.comparedTo=he.cmp=function(e){var t,n,r,i,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(r=s.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return r===i?0:r>i^s.s<0?1:-1};he.decimalPlaces=he.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*gt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};he.dividedBy=he.div=function(e){return Aa(this,new this.constructor(e))};he.dividedToIntegerBy=he.idiv=function(e){var t=this,n=t.constructor;return ct(Aa(t,new n(e),0,1),n.precision)};he.equals=he.eq=function(e){return!this.cmp(e)};he.exponent=function(){return Bt(this)};he.greaterThan=he.gt=function(e){return this.cmp(e)>0};he.greaterThanOrEqualTo=he.gte=function(e){return this.cmp(e)>=0};he.isInteger=he.isint=function(){return this.e>this.d.length-2};he.isNegative=he.isneg=function(){return this.s<0};he.isPositive=he.ispos=function(){return this.s>0};he.isZero=function(){return this.s===0};he.lessThan=he.lt=function(e){return this.cmp(e)<0};he.lessThanOrEqualTo=he.lte=function(e){return this.cmp(e)<1};he.logarithm=he.log=function(e){var t,n=this,r=n.constructor,i=r.precision,s=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Hn))throw Error(gr+"NaN");if(n.s<1)throw Error(gr+(n.s?"NaN":"-Infinity"));return n.eq(Hn)?new r(0):(yt=!1,t=Aa(fu(n,s),fu(e,s),s),yt=!0,ct(t,i))};he.minus=he.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O8(t,e):A8(t,(e.s=-e.s,e))};he.modulo=he.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(gr+"NaN");return n.s?(yt=!1,t=Aa(n,e,0,1).times(e),yt=!0,n.minus(t)):ct(new r(n),i)};he.naturalExponential=he.exp=function(){return j8(this)};he.naturalLogarithm=he.ln=function(){return fu(this)};he.negated=he.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};he.plus=he.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?A8(t,e):O8(t,(e.s=-e.s,e))};he.precision=he.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(so+e);if(t=Bt(i)+1,r=i.d.length-1,n=r*gt+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};he.squareRoot=he.sqrt=function(){var e,t,n,r,i,s,l,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(gr+"NaN")}for(e=Bt(u),yt=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=Ir(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Al((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new d(t)):r=new d(i.toString()),n=d.precision,i=l=n+3;;)if(s=r,r=s.plus(Aa(u,s,l+2)).times(.5),Ir(s.d).slice(0,l)===(t=Ir(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),i==l&&t=="4999"){if(ct(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!="9999")break;l+=4}return yt=!0,ct(r,n)};he.times=he.mul=function(e){var t,n,r,i,s,l,u,d,f,p=this,g=p.constructor,v=p.d,x=(e=new g(e)).d;if(!p.s||!e.s)return new g(0);for(e.s*=p.s,n=p.e+e.e,d=v.length,f=x.length,d<f&&(s=v,v=x,x=s,l=d,d=f,f=l),s=[],l=d+f,r=l;r--;)s.push(0);for(r=f;--r>=0;){for(t=0,i=d+r;i>r;)u=s[i]+x[r]*v[i-r-1]+t,s[i--]=u%Wt|0,t=u/Wt|0;s[i]=(s[i]+t)%Wt|0}for(;!s[--l];)s.pop();return t?++n:s.shift(),e.d=s,e.e=n,yt?ct(e,g.precision):e};he.toDecimalPlaces=he.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Fr(e,0,Sl),t===void 0?t=r.rounding:Fr(t,0,8),ct(n,e+Bt(n)+1,t))};he.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=go(r,!0):(Fr(e,0,Sl),t===void 0?t=i.rounding:Fr(t,0,8),r=ct(new i(r),e+1,t),n=go(r,!0,e+1)),n};he.toFixed=function(e,t){var n,r,i=this,s=i.constructor;return e===void 0?go(i):(Fr(e,0,Sl),t===void 0?t=s.rounding:Fr(t,0,8),r=ct(new s(i),e+Bt(i)+1,t),n=go(r.abs(),!1,e+Bt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};he.toInteger=he.toint=function(){var e=this,t=e.constructor;return ct(new t(e),Bt(e)+1,t.rounding)};he.toNumber=function(){return+this};he.toPower=he.pow=function(e){var t,n,r,i,s,l,u=this,d=u.constructor,f=12,p=+(e=new d(e));if(!e.s)return new d(Hn);if(u=new d(u),!u.s){if(e.s<1)throw Error(gr+"Infinity");return u}if(u.eq(Hn))return u;if(r=d.precision,e.eq(Hn))return ct(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=u.s,l){if((n=p<0?-p:p)<=S8){for(i=new d(Hn),t=Math.ceil(r/gt+4),yt=!1;n%2&&(i=i.times(u),UD(i.d,t)),n=Al(n/2),n!==0;)u=u.times(u),UD(u.d,t);return yt=!0,e.s<0?new d(Hn).div(i):ct(i,r)}}else if(s<0)throw Error(gr+"NaN");return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,yt=!1,i=e.times(fu(u,r+f)),yt=!0,i=j8(i),i.s=s,i};he.toPrecision=function(e,t){var n,r,i=this,s=i.constructor;return e===void 0?(n=Bt(i),r=go(i,n<=s.toExpNeg||n>=s.toExpPos)):(Fr(e,1,Sl),t===void 0?t=s.rounding:Fr(t,0,8),i=ct(new s(i),e,t),n=Bt(i),r=go(i,e<=n||n<=s.toExpNeg,e)),r};he.toSignificantDigits=he.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Fr(e,1,Sl),t===void 0?t=r.rounding:Fr(t,0,8)),ct(new r(n),e,t)};he.toString=he.valueOf=he.val=he.toJSON=he[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Bt(e),n=e.constructor;return go(e,t<=n.toExpNeg||t>=n.toExpPos)};function A8(e,t){var n,r,i,s,l,u,d,f,p=e.constructor,g=p.precision;if(!e.s||!t.s)return t.s||(t=new p(e)),yt?ct(t,g):t;if(d=e.d,f=t.d,l=e.e,i=t.e,d=d.slice(),s=l-i,s){for(s<0?(r=d,s=-s,u=f.length):(r=f,i=l,u=d.length),l=Math.ceil(g/gt),u=l>u?l+1:u+1,s>u&&(s=u,r.length=1),r.reverse();s--;)r.push(0);r.reverse()}for(u=d.length,s=f.length,u-s<0&&(s=u,r=f,f=d,d=r),n=0;s;)n=(d[--s]=d[s]+f[s]+n)/Wt|0,d[s]%=Wt;for(n&&(d.unshift(n),++i),u=d.length;d[--u]==0;)d.pop();return t.d=d,t.e=i,yt?ct(t,g):t}function Fr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(so+e)}function Ir(e){var t,n,r,i=e.length-1,s="",l=e[0];if(i>0){for(s+=l,t=1;t<i;t++)r=e[t]+"",n=gt-r.length,n&&(s+=hi(n)),s+=r;l=e[t],r=l+"",n=gt-r.length,n&&(s+=hi(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return s+l}var Aa=(function(){function e(r,i){var s,l=0,u=r.length;for(r=r.slice();u--;)s=r[u]*i+l,r[u]=s%Wt|0,l=s/Wt|0;return l&&r.unshift(l),r}function t(r,i,s,l){var u,d;if(s!=l)d=s>l?1:-1;else for(u=d=0;u<s;u++)if(r[u]!=i[u]){d=r[u]>i[u]?1:-1;break}return d}function n(r,i,s){for(var l=0;s--;)r[s]-=l,l=r[s]<i[s]?1:0,r[s]=l*Wt+r[s]-i[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,s,l){var u,d,f,p,g,v,x,A,w,S,O,E,j,N,C,P,D,M,k=r.constructor,q=r.s==i.s?1:-1,L=r.d,U=i.d;if(!r.s)return new k(r);if(!i.s)throw Error(gr+"Division by zero");for(d=r.e-i.e,D=U.length,C=L.length,x=new k(q),A=x.d=[],f=0;U[f]==(L[f]||0);)++f;if(U[f]>(L[f]||0)&&--d,s==null?E=s=k.precision:l?E=s+(Bt(r)-Bt(i))+1:E=s,E<0)return new k(0);if(E=E/gt+2|0,f=0,D==1)for(p=0,U=U[0],E++;(f<C||p)&&E--;f++)j=p*Wt+(L[f]||0),A[f]=j/U|0,p=j%U|0;else{for(p=Wt/(U[0]+1)|0,p>1&&(U=e(U,p),L=e(L,p),D=U.length,C=L.length),N=D,w=L.slice(0,D),S=w.length;S<D;)w[S++]=0;M=U.slice(),M.unshift(0),P=U[0],U[1]>=Wt/2&&++P;do p=0,u=t(U,w,D,S),u<0?(O=w[0],D!=S&&(O=O*Wt+(w[1]||0)),p=O/P|0,p>1?(p>=Wt&&(p=Wt-1),g=e(U,p),v=g.length,S=w.length,u=t(g,w,v,S),u==1&&(p--,n(g,D<v?M:U,v))):(p==0&&(u=p=1),g=U.slice()),v=g.length,v<S&&g.unshift(0),n(w,g,S),u==-1&&(S=w.length,u=t(U,w,D,S),u<1&&(p++,n(w,D<S?M:U,S))),S=w.length):u===0&&(p++,w=[0]),A[f++]=p,u&&w[0]?w[S++]=L[N]||0:(w=[L[N]],S=1);while((N++<C||w[0]!==void 0)&&E--)}return A[0]||A.shift(),x.e=d,ct(x,l?s+Bt(x)+1:s)}})();function j8(e,t){var n,r,i,s,l,u,d=0,f=0,p=e.constructor,g=p.precision;if(Bt(e)>16)throw Error(EA+Bt(e));if(!e.s)return new p(Hn);for(yt=!1,u=g,l=new p(.03125);e.abs().gte(.1);)e=e.times(l),f+=5;for(r=Math.log(Yi(2,f))/Math.LN10*2+5|0,u+=r,n=i=s=new p(Hn),p.precision=u;;){if(i=ct(i.times(e),u),n=n.times(++d),l=s.plus(Aa(i,n,u)),Ir(l.d).slice(0,u)===Ir(s.d).slice(0,u)){for(;f--;)s=ct(s.times(s),u);return p.precision=g,t==null?(yt=!0,ct(s,g)):s}s=l}}function Bt(e){for(var t=e.e*gt,n=e.d[0];n>=10;n/=10)t++;return t}function g0(e,t,n){if(t>e.LN10.sd())throw yt=!0,n&&(e.precision=n),Error(gr+"LN10 precision limit exceeded");return ct(new e(e.LN10),t)}function hi(e){for(var t="";e--;)t+="0";return t}function fu(e,t){var n,r,i,s,l,u,d,f,p,g=1,v=10,x=e,A=x.d,w=x.constructor,S=w.precision;if(x.s<1)throw Error(gr+(x.s?"NaN":"-Infinity"));if(x.eq(Hn))return new w(0);if(t==null?(yt=!1,f=S):f=t,x.eq(10))return t==null&&(yt=!0),g0(w,f);if(f+=v,w.precision=f,n=Ir(A),r=n.charAt(0),s=Bt(x),Math.abs(s)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=Ir(x.d),r=n.charAt(0),g++;s=Bt(x),r>1?(x=new w("0."+n),s++):x=new w(r+"."+n.slice(1))}else return d=g0(w,f+2,S).times(s+""),x=fu(new w(r+"."+n.slice(1)),f-v).plus(d),w.precision=S,t==null?(yt=!0,ct(x,S)):x;for(u=l=x=Aa(x.minus(Hn),x.plus(Hn),f),p=ct(x.times(x),f),i=3;;){if(l=ct(l.times(p),f),d=u.plus(Aa(l,new w(i),f)),Ir(d.d).slice(0,f)===Ir(u.d).slice(0,f))return u=u.times(2),s!==0&&(u=u.plus(g0(w,f+2,S).times(s+""))),u=Aa(u,new w(g),f),w.precision=S,t==null?(yt=!0,ct(u,S)):u;u=d,i+=2}}function VD(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Al(n/gt),e.d=[],r=(n+1)%gt,n<0&&(r+=gt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=gt;r<i;)e.d.push(+t.slice(r,r+=gt));t=t.slice(r),r=gt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),yt&&(e.e>kh||e.e<-kh))throw Error(EA+n)}else e.s=0,e.e=0,e.d=[0];return e}function ct(e,t,n){var r,i,s,l,u,d,f,p,g=e.d;for(l=1,s=g[0];s>=10;s/=10)l++;if(r=t-l,r<0)r+=gt,i=t,f=g[p=0];else{if(p=Math.ceil((r+1)/gt),s=g.length,p>=s)return e;for(f=s=g[p],l=1;s>=10;s/=10)l++;r%=gt,i=r-gt+l}if(n!==void 0&&(s=Yi(10,l-i-1),u=f/s%10|0,d=t<0||g[p+1]!==void 0||f%s,d=n<4?(u||d)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||d||n==6&&(r>0?i>0?f/Yi(10,l-i):0:g[p-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return d?(s=Bt(e),g.length=1,t=t-s-1,g[0]=Yi(10,(gt-t%gt)%gt),e.e=Al(-t/gt)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(r==0?(g.length=p,s=1,p--):(g.length=p+1,s=Yi(10,gt-r),g[p]=i>0?(f/Yi(10,l-i)%Yi(10,i)|0)*s:0),d)for(;;)if(p==0){(g[0]+=s)==Wt&&(g[0]=1,++e.e);break}else{if(g[p]+=s,g[p]!=Wt)break;g[p--]=0,s=1}for(r=g.length;g[--r]===0;)g.pop();if(yt&&(e.e>kh||e.e<-kh))throw Error(EA+Bt(e));return e}function O8(e,t){var n,r,i,s,l,u,d,f,p,g,v=e.constructor,x=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),yt?ct(t,x):t;if(d=e.d,g=t.d,r=t.e,f=e.e,d=d.slice(),l=f-r,l){for(p=l<0,p?(n=d,l=-l,u=g.length):(n=g,r=f,u=d.length),i=Math.max(Math.ceil(x/gt),u)+2,l>i&&(l=i,n.length=1),n.reverse(),i=l;i--;)n.push(0);n.reverse()}else{for(i=d.length,u=g.length,p=i<u,p&&(u=i),i=0;i<u;i++)if(d[i]!=g[i]){p=d[i]<g[i];break}l=0}for(p&&(n=d,d=g,g=n,t.s=-t.s),u=d.length,i=g.length-u;i>0;--i)d[u++]=0;for(i=g.length;i>l;){if(d[--i]<g[i]){for(s=i;s&&d[--s]===0;)d[s]=Wt-1;--d[s],d[i]+=Wt}d[i]-=g[i]}for(;d[--u]===0;)d.pop();for(;d[0]===0;d.shift())--r;return d[0]?(t.d=d,t.e=r,yt?ct(t,x):t):new v(0)}function go(e,t,n){var r,i=Bt(e),s=Ir(e.d),l=s.length;return t?(n&&(r=n-l)>0?s=s.charAt(0)+"."+s.slice(1)+hi(r):l>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(i<0?"e":"e+")+i):i<0?(s="0."+hi(-i-1)+s,n&&(r=n-l)>0&&(s+=hi(r))):i>=l?(s+=hi(i+1-l),n&&(r=n-i-1)>0&&(s=s+"."+hi(r))):((r=i+1)<l&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-l)>0&&(i+1===l&&(s+="."),s+=hi(r))),e.s<0?"-"+s:s}function UD(e,t){if(e.length>t)return e.length=t,!0}function T8(e){var t,n,r;function i(s){var l=this;if(!(l instanceof i))return new i(s);if(l.constructor=i,s instanceof i){l.s=s.s,l.e=s.e,l.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(so+s);if(s>0)l.s=1;else if(s<0)s=-s,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(s===~~s&&s<1e7){l.e=0,l.d=[s];return}return VD(l,s.toString())}else if(typeof s!="string")throw Error(so+s);if(s.charCodeAt(0)===45?(s=s.slice(1),l.s=-1):l.s=1,bQ.test(s))VD(l,s);else throw Error(so+s)}if(i.prototype=he,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=T8,i.config=i.set=wQ,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function wQ(e){if(!e||typeof e!="object")throw Error(gr+"Object expected");var t,n,r,i=["precision",1,Sl,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(Al(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(so+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(so+n+": "+r);return this}var _A=T8(xQ);Hn=new _A(1);const st=_A;function SQ(e){return TQ(e)||OQ(e)||jQ(e)||AQ()}function AQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jQ(e,t){if(e){if(typeof e=="string")return ew(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ew(e,t)}}function OQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function TQ(e){if(Array.isArray(e))return ew(e)}function ew(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var CQ=function(t){return t},C8={},E8=function(t){return t===C8},HD=function(t){return function n(){return arguments.length===0||arguments.length===1&&E8(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},EQ=function e(t,n){return t===1?n:HD(function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var l=i.filter(function(u){return u!==C8}).length;return l>=t?n.apply(void 0,i):e(t-l,HD(function(){for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];var p=i.map(function(g){return E8(g)?d.shift():g});return n.apply(void 0,SQ(p).concat(d))}))})},Wp=function(t){return EQ(t.length,t)},tw=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},_Q=Wp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),PQ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return CQ;var i=n.reverse(),s=i[0],l=i.slice(1);return function(){return l.reduce(function(u,d){return d(u)},s.apply(void 0,arguments))}},nw=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},_8=function(t){var n=null,r=null;return function(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return n&&s.every(function(u,d){return u===n[d]})||(n=s,r=t.apply(void 0,s)),r}};function NQ(e){var t;return e===0?t=1:t=Math.floor(new st(e).abs().log(10).toNumber())+1,t}function DQ(e,t,n){for(var r=new st(e),i=0,s=[];r.lt(t)&&i<1e5;)s.push(r.toNumber()),r=r.add(n),i++;return s}var MQ=Wp(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),RQ=Wp(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),kQ=Wp(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Zp={rangeStep:DQ,getDigitCount:NQ,interpolateNumber:MQ,uninterpolateNumber:RQ,uninterpolateTruncation:kQ};function rw(e){return $Q(e)||LQ(e)||P8(e)||zQ()}function zQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function $Q(e){if(Array.isArray(e))return aw(e)}function hu(e,t){return qQ(e)||IQ(e,t)||P8(e,t)||BQ()}function BQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P8(e,t){if(e){if(typeof e=="string")return aw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aw(e,t)}}function aw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function IQ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,s=void 0;try{for(var l=e[Symbol.iterator](),u;!(r=(u=l.next()).done)&&(n.push(u.value),!(t&&n.length===t));r=!0);}catch(d){i=!0,s=d}finally{try{!r&&l.return!=null&&l.return()}finally{if(i)throw s}}return n}}function qQ(e){if(Array.isArray(e))return e}function N8(e){var t=hu(e,2),n=t[0],r=t[1],i=n,s=r;return n>r&&(i=r,s=n),[i,s]}function D8(e,t,n){if(e.lte(0))return new st(0);var r=Zp.getDigitCount(e.toNumber()),i=new st(10).pow(r),s=e.div(i),l=r!==1?.05:.1,u=new st(Math.ceil(s.div(l).toNumber())).add(n).mul(l),d=u.mul(i);return t?d:new st(Math.ceil(d))}function VQ(e,t,n){var r=1,i=new st(e);if(!i.isint()&&n){var s=Math.abs(e);s<1?(r=new st(10).pow(Zp.getDigitCount(e)-1),i=new st(Math.floor(i.div(r).toNumber())).mul(r)):s>1&&(i=new st(Math.floor(e)))}else e===0?i=new st(Math.floor((t-1)/2)):n||(i=new st(Math.floor(e)));var l=Math.floor((t-1)/2),u=PQ(_Q(function(d){return i.add(new st(d-l).mul(r)).toNumber()}),tw);return u(0,t)}function M8(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new st(0),tickMin:new st(0),tickMax:new st(0)};var s=D8(new st(t).sub(e).div(n-1),r,i),l;e<=0&&t>=0?l=new st(0):(l=new st(e).add(t).div(2),l=l.sub(new st(l).mod(s)));var u=Math.ceil(l.sub(e).div(s).toNumber()),d=Math.ceil(new st(t).sub(l).div(s).toNumber()),f=u+d+1;return f>n?M8(e,t,n,r,i+1):(f<n&&(d=t>0?d+(n-f):d,u=t>0?u:u+(n-f)),{step:s,tickMin:l.sub(new st(u).mul(s)),tickMax:l.add(new st(d).mul(s))})}function UQ(e){var t=hu(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Math.max(i,2),u=N8([n,r]),d=hu(u,2),f=d[0],p=d[1];if(f===-1/0||p===1/0){var g=p===1/0?[f].concat(rw(tw(0,i-1).map(function(){return 1/0}))):[].concat(rw(tw(0,i-1).map(function(){return-1/0})),[p]);return n>r?nw(g):g}if(f===p)return VQ(f,i,s);var v=M8(f,p,l,s),x=v.step,A=v.tickMin,w=v.tickMax,S=Zp.rangeStep(A,w.add(new st(.1).mul(x)),x);return n>r?nw(S):S}function HQ(e,t){var n=hu(e,2),r=n[0],i=n[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=N8([r,i]),u=hu(l,2),d=u[0],f=u[1];if(d===-1/0||f===1/0)return[r,i];if(d===f)return[d];var p=Math.max(t,2),g=D8(new st(f).sub(d).div(p-1),s,0),v=[].concat(rw(Zp.rangeStep(new st(d),new st(f).sub(new st(.99).mul(g)),g)),[f]);return r>i?nw(v):v}var FQ=_8(UQ),GQ=_8(HQ),KQ="Invariant failed";function vo(e,t){throw new Error(KQ)}var XQ=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Fs(e){"@babel/helpers - typeof";return Fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fs(e)}function zh(){return zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zh.apply(this,arguments)}function YQ(e,t){return JQ(e)||QQ(e,t)||ZQ(e,t)||WQ()}function WQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZQ(e,t){if(e){if(typeof e=="string")return FD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FD(e,t)}}function FD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function QQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function JQ(e){if(Array.isArray(e))return e}function eJ(e,t){if(e==null)return{};var n=tJ(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tJ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function nJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,z8(r.key),r)}}function aJ(e,t,n){return t&&rJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iJ(e,t,n){return t=Lh(t),oJ(e,R8()?Reflect.construct(t,n||[],Lh(e).constructor):t.apply(e,n))}function oJ(e,t){if(t&&(Fs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sJ(e)}function sJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R8=function(){return!!e})()}function Lh(e){return Lh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lh(e)}function lJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iw(e,t)}function iw(e,t){return iw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},iw(e,t)}function k8(e,t,n){return t=z8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z8(e){var t=cJ(e,"string");return Fs(t)=="symbol"?t:t+""}function cJ(e,t){if(Fs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var td=(function(e){function t(){return nJ(this,t),iJ(this,t,arguments)}return lJ(t,e),aJ(t,[{key:"render",value:function(){var r=this.props,i=r.offset,s=r.layout,l=r.width,u=r.dataKey,d=r.data,f=r.dataPointFormatter,p=r.xAxis,g=r.yAxis,v=eJ(r,XQ),x=je(v,!1);this.props.direction==="x"&&p.type!=="number"&&vo();var A=d.map(function(w){var S=f(w,u),O=S.x,E=S.y,j=S.value,N=S.errorVal;if(!N)return null;var C=[],P,D;if(Array.isArray(N)){var M=YQ(N,2);P=M[0],D=M[1]}else P=D=N;if(s==="vertical"){var k=p.scale,q=E+i,L=q+l,U=q-l,X=k(j-P),J=k(j+D);C.push({x1:J,y1:L,x2:J,y2:U}),C.push({x1:X,y1:q,x2:J,y2:q}),C.push({x1:X,y1:L,x2:X,y2:U})}else if(s==="horizontal"){var W=g.scale,z=O+i,H=z-l,F=z+l,ie=W(j-P),ue=W(j+D);C.push({x1:H,y1:ue,x2:F,y2:ue}),C.push({x1:z,y1:ie,x2:z,y2:ue}),C.push({x1:H,y1:ie,x2:F,y2:ie})}return B.createElement(Xe,zh({className:"recharts-errorBar",key:"bar-".concat(C.map(function($){return"".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))},x),C.map(function($){return B.createElement("line",zh({},$,{key:"line-".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))}))});return B.createElement(Xe,{className:"recharts-errorBars"},A)}}])})(B.Component);k8(td,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});k8(td,"displayName","ErrorBar");function pu(e){"@babel/helpers - typeof";return pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(e)}function GD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GD(Object(n),!0).forEach(function(r){uJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uJ(e,t,n){return t=dJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dJ(e){var t=fJ(e,"string");return pu(t)=="symbol"?t:t+""}function fJ(e,t){if(pu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var L8=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,s=t.legendContent,l=qn(n,io);if(!l)return null;var u=io.defaultProps,d=u!==void 0?Hi(Hi({},u),l.props):{},f;return l.props&&l.props.payload?f=l.props&&l.props.payload:s==="children"?f=(r||[]).reduce(function(p,g){var v=g.item,x=g.props,A=x.sectors||x.data||[];return p.concat(A.map(function(w){return{type:l.props.iconType||v.props.legendType,value:w.name,color:w.fill,payload:w}}))},[]):f=(r||[]).map(function(p){var g=p.item,v=g.type.defaultProps,x=v!==void 0?Hi(Hi({},v),g.props):{},A=x.dataKey,w=x.name,S=x.legendType,O=x.hide;return{inactive:O,dataKey:A,type:d.iconType||S||"square",color:PA(g),value:w||A,payload:x}}),Hi(Hi(Hi({},d),io.getWithHeight(l,i)),{},{payload:f,item:l})};function mu(e){"@babel/helpers - typeof";return mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mu(e)}function KD(e){return gJ(e)||mJ(e)||pJ(e)||hJ()}function hJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pJ(e,t){if(e){if(typeof e=="string")return ow(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ow(e,t)}}function mJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gJ(e){if(Array.isArray(e))return ow(e)}function ow(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XD(Object(n),!0).forEach(function(r){Ms(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ms(e,t,n){return t=vJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vJ(e){var t=yJ(e,"string");return mu(t)=="symbol"?t:t+""}function yJ(e,t){if(mu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ft(e,t,n){return Ne(e)||Ne(t)?n:Gt(t)?Fn(e,t,n):_e(t)?t(e):n}function Vc(e,t,n,r){var i=gQ(e,function(u){return Ft(u,t)});if(n==="number"){var s=i.filter(function(u){return de(u)||parseFloat(u)});return s.length?[Yp(s),Xp(s)]:[1/0,-1/0]}var l=r?i.filter(function(u){return!Ne(u)}):i;return l.map(function(u){return Gt(u)||u instanceof Date?u:""})}var xJ=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,l=-1,u=(n=r?.length)!==null&&n!==void 0?n:0;if(u<=1)return 0;if(s&&s.axisType==="angleAxis"&&Math.abs(Math.abs(s.range[1]-s.range[0])-360)<=1e-6)for(var d=s.range,f=0;f<u;f++){var p=f>0?i[f-1].coordinate:i[u-1].coordinate,g=i[f].coordinate,v=f>=u-1?i[0].coordinate:i[f+1].coordinate,x=void 0;if(mn(g-p)!==mn(v-g)){var A=[];if(mn(v-g)===mn(d[1]-d[0])){x=v;var w=g+d[1]-d[0];A[0]=Math.min(w,(w+p)/2),A[1]=Math.max(w,(w+p)/2)}else{x=p;var S=v+d[1]-d[0];A[0]=Math.min(g,(S+g)/2),A[1]=Math.max(g,(S+g)/2)}var O=[Math.min(g,(x+g)/2),Math.max(g,(x+g)/2)];if(t>O[0]&&t<=O[1]||t>=A[0]&&t<=A[1]){l=i[f].index;break}}else{var E=Math.min(p,v),j=Math.max(p,v);if(t>(E+g)/2&&t<=(j+g)/2){l=i[f].index;break}}}else for(var N=0;N<u;N++)if(N===0&&t<=(r[N].coordinate+r[N+1].coordinate)/2||N>0&&N<u-1&&t>(r[N].coordinate+r[N-1].coordinate)/2&&t<=(r[N].coordinate+r[N+1].coordinate)/2||N===u-1&&t>(r[N].coordinate+r[N-1].coordinate)/2){l=r[N].index;break}return l},PA=function(t){var n,r=t,i=r.type.displayName,s=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ct(Ct({},t.type.defaultProps),t.props):t.props,l=s.stroke,u=s.fill,d;switch(i){case"Line":d=l;break;case"Area":case"Radar":d=l&&l!=="none"?l:u;break;default:d=u;break}return d},bJ=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,s=i===void 0?{}:i;if(!s)return{};for(var l={},u=Object.keys(s),d=0,f=u.length;d<f;d++)for(var p=s[u[d]].stackGroups,g=Object.keys(p),v=0,x=g.length;v<x;v++){var A=p[g[v]],w=A.items,S=A.cateAxisId,O=w.filter(function(D){return Sa(D.type).indexOf("Bar")>=0});if(O&&O.length){var E=O[0].type.defaultProps,j=E!==void 0?Ct(Ct({},E),O[0].props):O[0].props,N=j.barSize,C=j[S];l[C]||(l[C]=[]);var P=Ne(N)?n:N;l[C].push({item:O[0],stackList:O.slice(1),barSize:Ne(P)?void 0:gn(P,r,0)})}}return l},wJ=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,s=t.sizeList,l=s===void 0?[]:s,u=t.maxBarSize,d=l.length;if(d<1)return null;var f=gn(n,i,0,!0),p,g=[];if(l[0].barSize===+l[0].barSize){var v=!1,x=i/d,A=l.reduce(function(N,C){return N+C.barSize||0},0);A+=(d-1)*f,A>=i&&(A-=(d-1)*f,f=0),A>=i&&x>0&&(v=!0,x*=.9,A=d*x);var w=(i-A)/2>>0,S={offset:w-f,size:0};p=l.reduce(function(N,C){var P={item:C.item,position:{offset:S.offset+S.size+f,size:v?x:C.barSize}},D=[].concat(KD(N),[P]);return S=D[D.length-1].position,C.stackList&&C.stackList.length&&C.stackList.forEach(function(M){D.push({item:M,position:S})}),D},g)}else{var O=gn(r,i,0,!0);i-2*O-(d-1)*f<=0&&(f=0);var E=(i-2*O-(d-1)*f)/d;E>1&&(E>>=0);var j=u===+u?Math.min(E,u):E;p=l.reduce(function(N,C,P){var D=[].concat(KD(N),[{item:C.item,position:{offset:O+(E+f)*P+(E-j)/2,size:j}}]);return C.stackList&&C.stackList.length&&C.stackList.forEach(function(M){D.push({item:M,position:D[D.length-1].position})}),D},g)}return p},SJ=function(t,n,r,i){var s=r.children,l=r.width,u=r.margin,d=l-(u.left||0)-(u.right||0),f=L8({children:s,legendWidth:d});if(f){var p=i||{},g=p.width,v=p.height,x=f.align,A=f.verticalAlign,w=f.layout;if((w==="vertical"||w==="horizontal"&&A==="middle")&&x!=="center"&&de(t[x]))return Ct(Ct({},t),{},Ms({},x,t[x]+(g||0)));if((w==="horizontal"||w==="vertical"&&x==="center")&&A!=="middle"&&de(t[A]))return Ct(Ct({},t),{},Ms({},A,t[A]+(v||0)))}return t},AJ=function(t,n,r){return Ne(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},$8=function(t,n,r,i,s){var l=n.props.children,u=Gn(l,td).filter(function(f){return AJ(i,s,f.props.direction)});if(u&&u.length){var d=u.map(function(f){return f.props.dataKey});return t.reduce(function(f,p){var g=Ft(p,r);if(Ne(g))return f;var v=Array.isArray(g)?[Yp(g),Xp(g)]:[g,g],x=d.reduce(function(A,w){var S=Ft(p,w,0),O=v[0]-Math.abs(Array.isArray(S)?S[0]:S),E=v[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(O,A[0]),Math.max(E,A[1])]},[1/0,-1/0]);return[Math.min(x[0],f[0]),Math.max(x[1],f[1])]},[1/0,-1/0])}return null},jJ=function(t,n,r,i,s){var l=n.map(function(u){return $8(t,u,r,s,i)}).filter(function(u){return!Ne(u)});return l&&l.length?l.reduce(function(u,d){return[Math.min(u[0],d[0]),Math.max(u[1],d[1])]},[1/0,-1/0]):null},B8=function(t,n,r,i,s){var l=n.map(function(d){var f=d.props.dataKey;return r==="number"&&f&&$8(t,d,f,i)||Vc(t,f,r,s)});if(r==="number")return l.reduce(function(d,f){return[Math.min(d[0],f[0]),Math.max(d[1],f[1])]},[1/0,-1/0]);var u={};return l.reduce(function(d,f){for(var p=0,g=f.length;p<g;p++)u[f[p]]||(u[f[p]]=!0,d.push(f[p]));return d},[])},I8=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},q8=function(t,n,r,i){if(i)return t.map(function(d){return d.coordinate});var s,l,u=t.map(function(d){return d.coordinate===n&&(s=!0),d.coordinate===r&&(l=!0),d.coordinate});return s||u.push(n),l||u.push(r),u},wa=function(t,n,r){if(!t)return null;var i=t.scale,s=t.duplicateDomain,l=t.type,u=t.range,d=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,f=(n||r)&&l==="category"&&i.bandwidth?i.bandwidth()/d:0;if(f=t.axisType==="angleAxis"&&u?.length>=2?mn(u[0]-u[1])*2*f:f,n&&(t.ticks||t.niceTicks)){var p=(t.ticks||t.niceTicks).map(function(g){var v=s?s.indexOf(g):g;return{coordinate:i(v)+f,value:g,offset:f}});return p.filter(function(g){return!Xu(g.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(g,v){return{coordinate:i(g)+f,value:g,index:v,offset:f}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(g){return{coordinate:i(g)+f,value:g,offset:f}}):i.domain().map(function(g,v){return{coordinate:i(g)+f,value:s?s[g]:g,index:v,offset:f}})},v0=new WeakMap,Uf=function(t,n){if(typeof n!="function")return t;v0.has(t)||v0.set(t,new WeakMap);var r=v0.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},V8=function(t,n,r){var i=t.scale,s=t.type,l=t.layout,u=t.axisType;if(i==="auto")return l==="radial"&&u==="radiusAxis"?{scale:su(),realScaleType:"band"}:l==="radial"&&u==="angleAxis"?{scale:Nh(),realScaleType:"linear"}:s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:qc(),realScaleType:"point"}:s==="category"?{scale:su(),realScaleType:"band"}:{scale:Nh(),realScaleType:"linear"};if(ho(i)){var d="scale".concat(Mp(i));return{scale:(MD[d]||qc)(),realScaleType:MD[d]?d:"point"}}return _e(i)?{scale:i}:{scale:qc(),realScaleType:"point"}},YD=1e-4,U8=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),s=Math.min(i[0],i[1])-YD,l=Math.max(i[0],i[1])+YD,u=t(n[0]),d=t(n[r-1]);(u<s||u>l||d<s||d>l)&&t.domain([n[0],n[r-1]])}},OJ=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},TJ=function(t,n){if(!n||n.length!==2||!de(n[0])||!de(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),s=[t[0],t[1]];return(!de(t[0])||t[0]<r)&&(s[0]=r),(!de(t[1])||t[1]>i)&&(s[1]=i),s[0]>i&&(s[0]=i),s[1]<r&&(s[1]=r),s},CJ=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var s=0,l=0,u=0;u<n;++u){var d=Xu(t[u][r][1])?t[u][r][0]:t[u][r][1];d>=0?(t[u][r][0]=s,t[u][r][1]=s+d,s=t[u][r][1]):(t[u][r][0]=l,t[u][r][1]=l+d,l=t[u][r][1])}},EJ=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var s=0,l=0;l<n;++l){var u=Xu(t[l][r][1])?t[l][r][0]:t[l][r][1];u>=0?(t[l][r][0]=s,t[l][r][1]=s+u,s=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},_J={sign:CJ,expand:gG,none:Ls,silhouette:vG,wiggle:yG,positive:EJ},PJ=function(t,n,r){var i=n.map(function(u){return u.props.dataKey}),s=_J[r],l=mG().keys(i).value(function(u,d){return+Ft(u,d,0)}).order(z1).offset(s);return l(t)},NJ=function(t,n,r,i,s,l){if(!t)return null;var u=l?n.reverse():n,d={},f=u.reduce(function(g,v){var x,A=(x=v.type)!==null&&x!==void 0&&x.defaultProps?Ct(Ct({},v.type.defaultProps),v.props):v.props,w=A.stackId,S=A.hide;if(S)return g;var O=A[r],E=g[O]||{hasStack:!1,stackGroups:{}};if(Gt(w)){var j=E.stackGroups[w]||{numericAxisId:r,cateAxisId:i,items:[]};j.items.push(v),E.hasStack=!0,E.stackGroups[w]=j}else E.stackGroups[xl("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[v]};return Ct(Ct({},g),{},Ms({},O,E))},d),p={};return Object.keys(f).reduce(function(g,v){var x=f[v];if(x.hasStack){var A={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(w,S){var O=x.stackGroups[S];return Ct(Ct({},w),{},Ms({},S,{numericAxisId:r,cateAxisId:i,items:O.items,stackedData:PJ(t,O.items,s)}))},A)}return Ct(Ct({},g),{},Ms({},v,x))},p)},H8=function(t,n){var r=n.realScaleType,i=n.type,s=n.tickCount,l=n.originalDomain,u=n.allowDecimals,d=r||n.scale;if(d!=="auto"&&d!=="linear")return null;if(s&&i==="number"&&l&&(l[0]==="auto"||l[1]==="auto")){var f=t.domain();if(!f.length)return null;var p=FQ(f,s,u);return t.domain([Yp(p),Xp(p)]),{niceTicks:p}}if(s&&i==="number"){var g=t.domain(),v=GQ(g,s,u);return{niceTicks:v}}return null};function WD(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,s=e.index,l=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ne(i[t.dataKey])){var u=hh(n,"value",i[t.dataKey]);if(u)return u.coordinate+r/2}return n[s]?n[s].coordinate+r/2:null}var d=Ft(i,Ne(l)?t.dataKey:l);return Ne(d)?null:t.scale(d)}var ZD=function(t){var n=t.axis,r=t.ticks,i=t.offset,s=t.bandSize,l=t.entry,u=t.index;if(n.type==="category")return r[u]?r[u].coordinate+i:null;var d=Ft(l,n.dataKey,n.domain[u]);return Ne(d)?null:n.scale(d)-s/2+i},DJ=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);return i<=0&&s>=0?0:s<0?s:i}return r[0]},MJ=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ct(Ct({},t.type.defaultProps),t.props):t.props,s=i.stackId;if(Gt(s)){var l=n[s];if(l){var u=l.items.indexOf(t);return u>=0?l.stackedData[u]:null}}return null},RJ=function(t){return t.reduce(function(n,r){return[Yp(r.concat([n[0]]).filter(de)),Xp(r.concat([n[1]]).filter(de))]},[1/0,-1/0])},F8=function(t,n,r){return Object.keys(t).reduce(function(i,s){var l=t[s],u=l.stackedData,d=u.reduce(function(f,p){var g=RJ(p.slice(n,r+1));return[Math.min(f[0],g[0]),Math.max(f[1],g[1])]},[1/0,-1/0]);return[Math.min(d[0],i[0]),Math.max(d[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},QD=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,JD=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sw=function(t,n,r){if(_e(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(de(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(QD.test(t[0])){var s=+QD.exec(t[0])[1];i[0]=n[0]-s}else _e(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(de(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(JD.test(t[1])){var l=+JD.exec(t[1])[1];i[1]=n[1]+l}else _e(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},$h=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var s=aA(n,function(g){return g.coordinate}),l=1/0,u=1,d=s.length;u<d;u++){var f=s[u],p=s[u-1];l=Math.min((f.coordinate||0)-(p.coordinate||0),l)}return l===1/0?0:l}return r?void 0:0},eM=function(t,n,r){return!t||!t.length||ed(t,Fn(r,"type.defaultProps.domain"))?n:t},G8=function(t,n){var r=t.type.defaultProps?Ct(Ct({},t.type.defaultProps),t.props):t.props,i=r.dataKey,s=r.name,l=r.unit,u=r.formatter,d=r.tooltipType,f=r.chartType,p=r.hide;return Ct(Ct({},je(t,!1)),{},{dataKey:i,unit:l,formatter:u,name:s||i,color:PA(t),value:Ft(n,i),type:d,payload:n,chartType:f,hide:p})};function gu(e){"@babel/helpers - typeof";return gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gu(e)}function tM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tM(Object(n),!0).forEach(function(r){K8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function K8(e,t,n){return t=kJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kJ(e){var t=zJ(e,"string");return gu(t)=="symbol"?t:t+""}function zJ(e,t){if(gu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LJ(e,t){return qJ(e)||IJ(e,t)||BJ(e,t)||$J()}function $J(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BJ(e,t){if(e){if(typeof e=="string")return nM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nM(e,t)}}function nM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function IJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function qJ(e){if(Array.isArray(e))return e}var Bh=Math.PI/180,VJ=function(t){return t*180/Math.PI},ft=function(t,n,r,i){return{x:t+Math.cos(-Bh*i)*r,y:n+Math.sin(-Bh*i)*r}},X8=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},UJ=function(t,n,r,i,s){var l=t.width,u=t.height,d=t.startAngle,f=t.endAngle,p=gn(t.cx,l,l/2),g=gn(t.cy,u,u/2),v=X8(l,u,r),x=gn(t.innerRadius,v,0),A=gn(t.outerRadius,v,v*.8),w=Object.keys(n);return w.reduce(function(S,O){var E=n[O],j=E.domain,N=E.reversed,C;if(Ne(E.range))i==="angleAxis"?C=[d,f]:i==="radiusAxis"&&(C=[x,A]),N&&(C=[C[1],C[0]]);else{C=E.range;var P=C,D=LJ(P,2);d=D[0],f=D[1]}var M=V8(E,s),k=M.realScaleType,q=M.scale;q.domain(j).range(C),U8(q);var L=H8(q,va(va({},E),{},{realScaleType:k})),U=va(va(va({},E),L),{},{range:C,radius:A,realScaleType:k,scale:q,cx:p,cy:g,innerRadius:x,outerRadius:A,startAngle:d,endAngle:f});return va(va({},S),{},K8({},O,U))},{})},HJ=function(t,n){var r=t.x,i=t.y,s=n.x,l=n.y;return Math.sqrt(Math.pow(r-s,2)+Math.pow(i-l,2))},FJ=function(t,n){var r=t.x,i=t.y,s=n.cx,l=n.cy,u=HJ({x:r,y:i},{x:s,y:l});if(u<=0)return{radius:u};var d=(r-s)/u,f=Math.acos(d);return i>l&&(f=2*Math.PI-f),{radius:u,angle:VJ(f),angleInRadian:f}},GJ=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),s=Math.floor(r/360),l=Math.min(i,s);return{startAngle:n-l*360,endAngle:r-l*360}},KJ=function(t,n){var r=n.startAngle,i=n.endAngle,s=Math.floor(r/360),l=Math.floor(i/360),u=Math.min(s,l);return t+u*360},rM=function(t,n){var r=t.x,i=t.y,s=FJ({x:r,y:i},n),l=s.radius,u=s.angle,d=n.innerRadius,f=n.outerRadius;if(l<d||l>f)return!1;if(l===0)return!0;var p=GJ(n),g=p.startAngle,v=p.endAngle,x=u,A;if(g<=v){for(;x>v;)x-=360;for(;x<g;)x+=360;A=x>=g&&x<=v}else{for(;x>g;)x-=360;for(;x<v;)x+=360;A=x>=v&&x<=g}return A?va(va({},n),{},{radius:l,angle:KJ(x,n)}):null},Y8=function(t){return!T.isValidElement(t)&&!_e(t)&&typeof t!="boolean"?t.className:""};function vu(e){"@babel/helpers - typeof";return vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vu(e)}var XJ=["offset"];function YJ(e){return JJ(e)||QJ(e)||ZJ(e)||WJ()}function WJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZJ(e,t){if(e){if(typeof e=="string")return lw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lw(e,t)}}function QJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JJ(e){if(Array.isArray(e))return lw(e)}function lw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eee(e,t){if(e==null)return{};var n=tee(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tee(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function aM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aM(Object(n),!0).forEach(function(r){nee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nee(e,t,n){return t=ree(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ree(e){var t=aee(e,"string");return vu(t)=="symbol"?t:t+""}function aee(e,t){if(vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yu(){return yu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yu.apply(this,arguments)}var iee=function(t){var n=t.value,r=t.formatter,i=Ne(t.children)?n:t.children;return _e(r)?r(i):i},oee=function(t,n){var r=mn(n-t),i=Math.min(Math.abs(n-t),360);return r*i},see=function(t,n,r){var i=t.position,s=t.viewBox,l=t.offset,u=t.className,d=s,f=d.cx,p=d.cy,g=d.innerRadius,v=d.outerRadius,x=d.startAngle,A=d.endAngle,w=d.clockWise,S=(g+v)/2,O=oee(x,A),E=O>=0?1:-1,j,N;i==="insideStart"?(j=x+E*l,N=w):i==="insideEnd"?(j=A-E*l,N=!w):i==="end"&&(j=A+E*l,N=w),N=O<=0?N:!N;var C=ft(f,p,S,j),P=ft(f,p,S,j+(N?1:-1)*359),D="M".concat(C.x,",").concat(C.y,`
    A`).concat(S,",").concat(S,",0,1,").concat(N?0:1,`,
    `).concat(P.x,",").concat(P.y),M=Ne(t.id)?xl("recharts-radial-line-"):t.id;return B.createElement("text",yu({},r,{dominantBaseline:"central",className:De("recharts-radial-bar-label",u)}),B.createElement("defs",null,B.createElement("path",{id:M,d:D})),B.createElement("textPath",{xlinkHref:"#".concat(M)},n))},lee=function(t){var n=t.viewBox,r=t.offset,i=t.position,s=n,l=s.cx,u=s.cy,d=s.innerRadius,f=s.outerRadius,p=s.startAngle,g=s.endAngle,v=(p+g)/2;if(i==="outside"){var x=ft(l,u,f+r,v),A=x.x,w=x.y;return{x:A,y:w,textAnchor:A>=l?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:l,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:l,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:l,y:u,textAnchor:"middle",verticalAnchor:"end"};var S=(d+f)/2,O=ft(l,u,S,v),E=O.x,j=O.y;return{x:E,y:j,textAnchor:"middle",verticalAnchor:"middle"}},cee=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,s=t.position,l=n,u=l.x,d=l.y,f=l.width,p=l.height,g=p>=0?1:-1,v=g*i,x=g>0?"end":"start",A=g>0?"start":"end",w=f>=0?1:-1,S=w*i,O=w>0?"end":"start",E=w>0?"start":"end";if(s==="top"){var j={x:u+f/2,y:d-g*i,textAnchor:"middle",verticalAnchor:x};return Ht(Ht({},j),r?{height:Math.max(d-r.y,0),width:f}:{})}if(s==="bottom"){var N={x:u+f/2,y:d+p+v,textAnchor:"middle",verticalAnchor:A};return Ht(Ht({},N),r?{height:Math.max(r.y+r.height-(d+p),0),width:f}:{})}if(s==="left"){var C={x:u-S,y:d+p/2,textAnchor:O,verticalAnchor:"middle"};return Ht(Ht({},C),r?{width:Math.max(C.x-r.x,0),height:p}:{})}if(s==="right"){var P={x:u+f+S,y:d+p/2,textAnchor:E,verticalAnchor:"middle"};return Ht(Ht({},P),r?{width:Math.max(r.x+r.width-P.x,0),height:p}:{})}var D=r?{width:f,height:p}:{};return s==="insideLeft"?Ht({x:u+S,y:d+p/2,textAnchor:E,verticalAnchor:"middle"},D):s==="insideRight"?Ht({x:u+f-S,y:d+p/2,textAnchor:O,verticalAnchor:"middle"},D):s==="insideTop"?Ht({x:u+f/2,y:d+v,textAnchor:"middle",verticalAnchor:A},D):s==="insideBottom"?Ht({x:u+f/2,y:d+p-v,textAnchor:"middle",verticalAnchor:x},D):s==="insideTopLeft"?Ht({x:u+S,y:d+v,textAnchor:E,verticalAnchor:A},D):s==="insideTopRight"?Ht({x:u+f-S,y:d+v,textAnchor:O,verticalAnchor:A},D):s==="insideBottomLeft"?Ht({x:u+S,y:d+p-v,textAnchor:E,verticalAnchor:x},D):s==="insideBottomRight"?Ht({x:u+f-S,y:d+p-v,textAnchor:O,verticalAnchor:x},D):yl(s)&&(de(s.x)||Ji(s.x))&&(de(s.y)||Ji(s.y))?Ht({x:u+gn(s.x,f),y:d+gn(s.y,p),textAnchor:"end",verticalAnchor:"end"},D):Ht({x:u+f/2,y:d+p/2,textAnchor:"middle",verticalAnchor:"middle"},D)},uee=function(t){return"cx"in t&&de(t.cx)};function Zt(e){var t=e.offset,n=t===void 0?5:t,r=eee(e,XJ),i=Ht({offset:n},r),s=i.viewBox,l=i.position,u=i.value,d=i.children,f=i.content,p=i.className,g=p===void 0?"":p,v=i.textBreakAll;if(!s||Ne(u)&&Ne(d)&&!T.isValidElement(f)&&!_e(f))return null;if(T.isValidElement(f))return T.cloneElement(f,i);var x;if(_e(f)){if(x=T.createElement(f,i),T.isValidElement(x))return x}else x=iee(i);var A=uee(s),w=je(i,!0);if(A&&(l==="insideStart"||l==="insideEnd"||l==="end"))return see(i,x,w);var S=A?lee(i):cee(i);return B.createElement(mo,yu({className:De("recharts-label",g)},w,S,{breakAll:v}),x)}Zt.displayName="Label";var W8=function(t){var n=t.cx,r=t.cy,i=t.angle,s=t.startAngle,l=t.endAngle,u=t.r,d=t.radius,f=t.innerRadius,p=t.outerRadius,g=t.x,v=t.y,x=t.top,A=t.left,w=t.width,S=t.height,O=t.clockWise,E=t.labelViewBox;if(E)return E;if(de(w)&&de(S)){if(de(g)&&de(v))return{x:g,y:v,width:w,height:S};if(de(x)&&de(A))return{x,y:A,width:w,height:S}}return de(g)&&de(v)?{x:g,y:v,width:0,height:0}:de(n)&&de(r)?{cx:n,cy:r,startAngle:s||i||0,endAngle:l||i||0,innerRadius:f||0,outerRadius:p||d||u||0,clockWise:O}:t.viewBox?t.viewBox:{}},dee=function(t,n){return t?t===!0?B.createElement(Zt,{key:"label-implicit",viewBox:n}):Gt(t)?B.createElement(Zt,{key:"label-implicit",viewBox:n,value:t}):T.isValidElement(t)?t.type===Zt?T.cloneElement(t,{key:"label-implicit",viewBox:n}):B.createElement(Zt,{key:"label-implicit",content:t,viewBox:n}):_e(t)?B.createElement(Zt,{key:"label-implicit",content:t,viewBox:n}):yl(t)?B.createElement(Zt,yu({viewBox:n},t,{key:"label-implicit"})):null:null},fee=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,s=W8(t),l=Gn(i,Zt).map(function(d,f){return T.cloneElement(d,{viewBox:n||s,key:"label-".concat(f)})});if(!r)return l;var u=dee(t.label,n||s);return[u].concat(YJ(l))};Zt.parseViewBox=W8;Zt.renderCallByParent=fee;var y0,iM;function hee(){if(iM)return y0;iM=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return y0=e,y0}var pee=hee();const mee=tt(pee);function xu(e){"@babel/helpers - typeof";return xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xu(e)}var gee=["valueAccessor"],vee=["data","dataKey","clockWise","id","textBreakAll"];function yee(e){return See(e)||wee(e)||bee(e)||xee()}function xee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bee(e,t){if(e){if(typeof e=="string")return cw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cw(e,t)}}function wee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function See(e){if(Array.isArray(e))return cw(e)}function cw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ih(){return Ih=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ih.apply(this,arguments)}function oM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oM(Object(n),!0).forEach(function(r){Aee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Aee(e,t,n){return t=jee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jee(e){var t=Oee(e,"string");return xu(t)=="symbol"?t:t+""}function Oee(e,t){if(xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lM(e,t){if(e==null)return{};var n=Tee(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tee(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Cee=function(t){return Array.isArray(t.value)?mee(t.value):t.value};function ja(e){var t=e.valueAccessor,n=t===void 0?Cee:t,r=lM(e,gee),i=r.data,s=r.dataKey,l=r.clockWise,u=r.id,d=r.textBreakAll,f=lM(r,vee);return!i||!i.length?null:B.createElement(Xe,{className:"recharts-label-list"},i.map(function(p,g){var v=Ne(s)?n(p,g):Ft(p&&p.payload,s),x=Ne(u)?{}:{id:"".concat(u,"-").concat(g)};return B.createElement(Zt,Ih({},je(p,!0),f,x,{parentViewBox:p.parentViewBox,value:v,textBreakAll:d,viewBox:Zt.parseViewBox(Ne(l)?p:sM(sM({},p),{},{clockWise:l})),key:"label-".concat(g),index:g}))}))}ja.displayName="LabelList";function Eee(e,t){return e?e===!0?B.createElement(ja,{key:"labelList-implicit",data:t}):B.isValidElement(e)||_e(e)?B.createElement(ja,{key:"labelList-implicit",data:t,content:e}):yl(e)?B.createElement(ja,Ih({data:t},e,{key:"labelList-implicit"})):null:null}function _ee(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Gn(r,ja).map(function(l,u){return T.cloneElement(l,{data:t,key:"labelList-".concat(u)})});if(!n)return i;var s=Eee(e.label,t);return[s].concat(yee(i))}ja.renderCallByParent=_ee;function bu(e){"@babel/helpers - typeof";return bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bu(e)}function uw(){return uw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uw.apply(this,arguments)}function cM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cM(Object(n),!0).forEach(function(r){Pee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pee(e,t,n){return t=Nee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nee(e){var t=Dee(e,"string");return bu(t)=="symbol"?t:t+""}function Dee(e,t){if(bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mee=function(t,n){var r=mn(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Hf=function(t){var n=t.cx,r=t.cy,i=t.radius,s=t.angle,l=t.sign,u=t.isExternal,d=t.cornerRadius,f=t.cornerIsExternal,p=d*(u?1:-1)+i,g=Math.asin(d/p)/Bh,v=f?s:s+l*g,x=ft(n,r,p,v),A=ft(n,r,i,v),w=f?s-l*g:s,S=ft(n,r,p*Math.cos(g*Bh),w);return{center:x,circleTangency:A,lineTangency:S,theta:g}},Z8=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,s=t.outerRadius,l=t.startAngle,u=t.endAngle,d=Mee(l,u),f=l+d,p=ft(n,r,s,l),g=ft(n,r,s,f),v="M ".concat(p.x,",").concat(p.y,`
    A `).concat(s,",").concat(s,`,0,
    `).concat(+(Math.abs(d)>180),",").concat(+(l>f),`,
    `).concat(g.x,",").concat(g.y,`
  `);if(i>0){var x=ft(n,r,i,l),A=ft(n,r,i,f);v+="L ".concat(A.x,",").concat(A.y,`
            A `).concat(i,",").concat(i,`,0,
            `).concat(+(Math.abs(d)>180),",").concat(+(l<=f),`,
            `).concat(x.x,",").concat(x.y," Z")}else v+="L ".concat(n,",").concat(r," Z");return v},Ree=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,s=t.outerRadius,l=t.cornerRadius,u=t.forceCornerRadius,d=t.cornerIsExternal,f=t.startAngle,p=t.endAngle,g=mn(p-f),v=Hf({cx:n,cy:r,radius:s,angle:f,sign:g,cornerRadius:l,cornerIsExternal:d}),x=v.circleTangency,A=v.lineTangency,w=v.theta,S=Hf({cx:n,cy:r,radius:s,angle:p,sign:-g,cornerRadius:l,cornerIsExternal:d}),O=S.circleTangency,E=S.lineTangency,j=S.theta,N=d?Math.abs(f-p):Math.abs(f-p)-w-j;if(N<0)return u?"M ".concat(A.x,",").concat(A.y,`
        a`).concat(l,",").concat(l,",0,0,1,").concat(l*2,`,0
        a`).concat(l,",").concat(l,",0,0,1,").concat(-l*2,`,0
      `):Z8({cx:n,cy:r,innerRadius:i,outerRadius:s,startAngle:f,endAngle:p});var C="M ".concat(A.x,",").concat(A.y,`
    A`).concat(l,",").concat(l,",0,0,").concat(+(g<0),",").concat(x.x,",").concat(x.y,`
    A`).concat(s,",").concat(s,",0,").concat(+(N>180),",").concat(+(g<0),",").concat(O.x,",").concat(O.y,`
    A`).concat(l,",").concat(l,",0,0,").concat(+(g<0),",").concat(E.x,",").concat(E.y,`
  `);if(i>0){var P=Hf({cx:n,cy:r,radius:i,angle:f,sign:g,isExternal:!0,cornerRadius:l,cornerIsExternal:d}),D=P.circleTangency,M=P.lineTangency,k=P.theta,q=Hf({cx:n,cy:r,radius:i,angle:p,sign:-g,isExternal:!0,cornerRadius:l,cornerIsExternal:d}),L=q.circleTangency,U=q.lineTangency,X=q.theta,J=d?Math.abs(f-p):Math.abs(f-p)-k-X;if(J<0&&l===0)return"".concat(C,"L").concat(n,",").concat(r,"Z");C+="L".concat(U.x,",").concat(U.y,`
      A`).concat(l,",").concat(l,",0,0,").concat(+(g<0),",").concat(L.x,",").concat(L.y,`
      A`).concat(i,",").concat(i,",0,").concat(+(J>180),",").concat(+(g>0),",").concat(D.x,",").concat(D.y,`
      A`).concat(l,",").concat(l,",0,0,").concat(+(g<0),",").concat(M.x,",").concat(M.y,"Z")}else C+="L".concat(n,",").concat(r,"Z");return C},kee={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Q8=function(t){var n=uM(uM({},kee),t),r=n.cx,i=n.cy,s=n.innerRadius,l=n.outerRadius,u=n.cornerRadius,d=n.forceCornerRadius,f=n.cornerIsExternal,p=n.startAngle,g=n.endAngle,v=n.className;if(l<s||p===g)return null;var x=De("recharts-sector",v),A=l-s,w=gn(u,A,0,!0),S;return w>0&&Math.abs(p-g)<360?S=Ree({cx:r,cy:i,innerRadius:s,outerRadius:l,cornerRadius:Math.min(w,A/2),forceCornerRadius:d,cornerIsExternal:f,startAngle:p,endAngle:g}):S=Z8({cx:r,cy:i,innerRadius:s,outerRadius:l,startAngle:p,endAngle:g}),B.createElement("path",uw({},je(n,!0),{className:x,d:S,role:"img"}))};function wu(e){"@babel/helpers - typeof";return wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wu(e)}function dw(){return dw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dw.apply(this,arguments)}function dM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dM(Object(n),!0).forEach(function(r){zee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zee(e,t,n){return t=Lee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lee(e){var t=$ee(e,"string");return wu(t)=="symbol"?t:t+""}function $ee(e,t){if(wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hM={curveBasisClosed:aG,curveBasisOpen:iG,curveBasis:rG,curveBumpX:UF,curveBumpY:HF,curveLinearClosed:oG,curveLinear:kp,curveMonotoneX:sG,curveMonotoneY:lG,curveNatural:cG,curveStep:uG,curveStepAfter:fG,curveStepBefore:dG},Ff=function(t){return t.x===+t.x&&t.y===+t.y},_c=function(t){return t.x},Pc=function(t){return t.y},Bee=function(t,n){if(_e(t))return t;var r="curve".concat(Mp(t));return(r==="curveMonotone"||r==="curveBump")&&n?hM["".concat(r).concat(n==="vertical"?"Y":"X")]:hM[r]||kp},Iee=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,s=i===void 0?[]:i,l=t.baseLine,u=t.layout,d=t.connectNulls,f=d===void 0?!1:d,p=Bee(r,u),g=f?s.filter(function(w){return Ff(w)}):s,v;if(Array.isArray(l)){var x=f?l.filter(function(w){return Ff(w)}):l,A=g.map(function(w,S){return fM(fM({},w),{},{base:x[S]})});return u==="vertical"?v=zf().y(Pc).x1(_c).x0(function(w){return w.base.x}):v=zf().x(_c).y1(Pc).y0(function(w){return w.base.y}),v.defined(Ff).curve(p),v(A)}return u==="vertical"&&de(l)?v=zf().y(Pc).x1(_c).x0(l):de(l)?v=zf().x(_c).y1(Pc).y0(l):v=W5().x(_c).y(Pc),v.defined(Ff).curve(p),v(g)},qh=function(t){var n=t.className,r=t.points,i=t.path,s=t.pathRef;if((!r||!r.length)&&!i)return null;var l=r&&r.length?Iee(t):i;return T.createElement("path",dw({},je(t,!1),ph(t),{className:De("recharts-curve",n),d:l,ref:s}))},x0={exports:{}},b0,pM;function qee(){if(pM)return b0;pM=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return b0=e,b0}var w0,mM;function Vee(){if(mM)return w0;mM=1;var e=qee();function t(){}function n(){}return n.resetWarningCache=t,w0=function(){function r(l,u,d,f,p,g){if(g!==e){var v=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 v.name="Invariant Violation",v}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},w0}var gM;function Uee(){return gM||(gM=1,x0.exports=Vee()()),x0.exports}var Hee=Uee();const Je=tt(Hee);var Fee=Object.getOwnPropertyNames,Gee=Object.getOwnPropertySymbols,Kee=Object.prototype.hasOwnProperty;function vM(e,t){return function(r,i,s){return e(r,i,s)&&t(r,i,s)}}function Gf(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var s=i.cache,l=s.get(n),u=s.get(r);if(l&&u)return l===r&&u===n;s.set(n,r),s.set(r,n);var d=e(n,r,i);return s.delete(n),s.delete(r),d}}function Xee(e){return e?.[Symbol.toStringTag]}function yM(e){return Fee(e).concat(Gee(e))}var Yee=Object.hasOwn||(function(e,t){return Kee.call(e,t)});function Oo(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var Wee="__v",Zee="__o",Qee="_owner",xM=Object.getOwnPropertyDescriptor,bM=Object.keys;function Jee(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function ete(e,t){return Oo(e.getTime(),t.getTime())}function tte(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function nte(e,t){return e===t}function wM(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),s=e.entries(),l,u,d=0;(l=s.next())&&!l.done;){for(var f=t.entries(),p=!1,g=0;(u=f.next())&&!u.done;){if(i[g]){g++;continue}var v=l.value,x=u.value;if(n.equals(v[0],x[0],d,g,e,t,n)&&n.equals(v[1],x[1],v[0],x[0],e,t,n)){p=i[g]=!0;break}g++}if(!p)return!1;d++}return!0}var rte=Oo;function ate(e,t,n){var r=bM(e),i=r.length;if(bM(t).length!==i)return!1;for(;i-- >0;)if(!J8(e,t,n,r[i]))return!1;return!0}function Nc(e,t,n){var r=yM(e),i=r.length;if(yM(t).length!==i)return!1;for(var s,l,u;i-- >0;)if(s=r[i],!J8(e,t,n,s)||(l=xM(e,s),u=xM(t,s),(l||u)&&(!l||!u||l.configurable!==u.configurable||l.enumerable!==u.enumerable||l.writable!==u.writable)))return!1;return!0}function ite(e,t){return Oo(e.valueOf(),t.valueOf())}function ote(e,t){return e.source===t.source&&e.flags===t.flags}function SM(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),s=e.values(),l,u;(l=s.next())&&!l.done;){for(var d=t.values(),f=!1,p=0;(u=d.next())&&!u.done;){if(!i[p]&&n.equals(l.value,u.value,l.value,u.value,e,t,n)){f=i[p]=!0;break}p++}if(!f)return!1}return!0}function ste(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function lte(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function J8(e,t,n,r){return(r===Qee||r===Zee||r===Wee)&&(e.$$typeof||t.$$typeof)?!0:Yee(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var cte="[object Arguments]",ute="[object Boolean]",dte="[object Date]",fte="[object Error]",hte="[object Map]",pte="[object Number]",mte="[object Object]",gte="[object RegExp]",vte="[object Set]",yte="[object String]",xte="[object URL]",bte=Array.isArray,AM=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,jM=Object.assign,wte=Object.prototype.toString.call.bind(Object.prototype.toString);function Ste(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,i=e.areFunctionsEqual,s=e.areMapsEqual,l=e.areNumbersEqual,u=e.areObjectsEqual,d=e.arePrimitiveWrappersEqual,f=e.areRegExpsEqual,p=e.areSetsEqual,g=e.areTypedArraysEqual,v=e.areUrlsEqual,x=e.unknownTagComparators;return function(w,S,O){if(w===S)return!0;if(w==null||S==null)return!1;var E=typeof w;if(E!==typeof S)return!1;if(E!=="object")return E==="number"?l(w,S,O):E==="function"?i(w,S,O):!1;var j=w.constructor;if(j!==S.constructor)return!1;if(j===Object)return u(w,S,O);if(bte(w))return t(w,S,O);if(AM!=null&&AM(w))return g(w,S,O);if(j===Date)return n(w,S,O);if(j===RegExp)return f(w,S,O);if(j===Map)return s(w,S,O);if(j===Set)return p(w,S,O);var N=wte(w);if(N===dte)return n(w,S,O);if(N===gte)return f(w,S,O);if(N===hte)return s(w,S,O);if(N===vte)return p(w,S,O);if(N===mte)return typeof w.then!="function"&&typeof S.then!="function"&&u(w,S,O);if(N===xte)return v(w,S,O);if(N===fte)return r(w,S,O);if(N===cte)return u(w,S,O);if(N===ute||N===pte||N===yte)return d(w,S,O);if(x){var C=x[N];if(!C){var P=Xee(w);P&&(C=x[P])}if(C)return C(w,S,O)}return!1}}function Ate(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Nc:Jee,areDatesEqual:ete,areErrorsEqual:tte,areFunctionsEqual:nte,areMapsEqual:r?vM(wM,Nc):wM,areNumbersEqual:rte,areObjectsEqual:r?Nc:ate,arePrimitiveWrappersEqual:ite,areRegExpsEqual:ote,areSetsEqual:r?vM(SM,Nc):SM,areTypedArraysEqual:r?Nc:ste,areUrlsEqual:lte,unknownTagComparators:void 0};if(n&&(i=jM({},i,n(i))),t){var s=Gf(i.areArraysEqual),l=Gf(i.areMapsEqual),u=Gf(i.areObjectsEqual),d=Gf(i.areSetsEqual);i=jM({},i,{areArraysEqual:s,areMapsEqual:l,areObjectsEqual:u,areSetsEqual:d})}return i}function jte(e){return function(t,n,r,i,s,l,u){return e(t,n,u)}}function Ote(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,s=e.strict;if(r)return function(d,f){var p=r(),g=p.cache,v=g===void 0?t?new WeakMap:void 0:g,x=p.meta;return n(d,f,{cache:v,equals:i,meta:x,strict:s})};if(t)return function(d,f){return n(d,f,{cache:new WeakMap,equals:i,meta:void 0,strict:s})};var l={cache:void 0,equals:i,meta:void 0,strict:s};return function(d,f){return n(d,f,l)}}var Tte=Ai();Ai({strict:!0});Ai({circular:!0});Ai({circular:!0,strict:!0});Ai({createInternalComparator:function(){return Oo}});Ai({strict:!0,createInternalComparator:function(){return Oo}});Ai({circular:!0,createInternalComparator:function(){return Oo}});Ai({circular:!0,createInternalComparator:function(){return Oo},strict:!0});function Ai(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,s=e.strict,l=s===void 0?!1:s,u=Ate(e),d=Ste(u),f=r?r(d):jte(d);return Ote({circular:n,comparator:d,createState:i,equals:f,strict:l})}function Cte(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function OM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(s){n<0&&(n=s),s-n>t?(e(s),n=-1):Cte(i)};requestAnimationFrame(r)}function fw(e){"@babel/helpers - typeof";return fw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fw(e)}function Ete(e){return Dte(e)||Nte(e)||Pte(e)||_te()}function _te(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pte(e,t){if(e){if(typeof e=="string")return TM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TM(e,t)}}function TM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dte(e){if(Array.isArray(e))return e}function Mte(){var e={},t=function(){return null},n=!1,r=function i(s){if(!n){if(Array.isArray(s)){if(!s.length)return;var l=s,u=Ete(l),d=u[0],f=u.slice(1);if(typeof d=="number"){OM(i.bind(null,f),d);return}i(d),OM(i.bind(null,f));return}fw(s)==="object"&&(e=s,t(e)),typeof s=="function"&&s()}};return{stop:function(){n=!0},start:function(s){n=!1,r(s)},subscribe:function(s){return t=s,function(){t=function(){return null}}}}}function Su(e){"@babel/helpers - typeof";return Su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Su(e)}function CM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function EM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CM(Object(n),!0).forEach(function(r){ez(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ez(e,t,n){return t=Rte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rte(e){var t=kte(e,"string");return Su(t)==="symbol"?t:String(t)}function kte(e,t){if(Su(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Su(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zte=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(s){return i.includes(s)})})},Lte=function(t){return t},$te=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Uc=function(t,n){return Object.keys(n).reduce(function(r,i){return EM(EM({},r),{},ez({},i,t(i,n[i])))},{})},_M=function(t,n,r){return t.map(function(i){return"".concat($te(i)," ").concat(n,"ms ").concat(r)}).join(",")};function Bte(e,t){return Vte(e)||qte(e,t)||tz(e,t)||Ite()}function Ite(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qte(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function Vte(e){if(Array.isArray(e))return e}function Ute(e){return Gte(e)||Fte(e)||tz(e)||Hte()}function Hte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tz(e,t){if(e){if(typeof e=="string")return hw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hw(e,t)}}function Fte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gte(e){if(Array.isArray(e))return hw(e)}function hw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Vh=1e-4,nz=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},rz=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},PM=function(t,n){return function(r){var i=nz(t,n);return rz(i,r)}},Kte=function(t,n){return function(r){var i=nz(t,n),s=[].concat(Ute(i.map(function(l,u){return l*u}).slice(1)),[0]);return rz(s,r)}},NM=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],s=n[1],l=n[2],u=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,s=0,l=1,u=1;break;case"ease":i=.25,s=.1,l=.25,u=1;break;case"ease-in":i=.42,s=0,l=1,u=1;break;case"ease-out":i=.42,s=0,l=.58,u=1;break;case"ease-in-out":i=0,s=0,l=.58,u=1;break;default:{var d=n[0].split("(");if(d[0]==="cubic-bezier"&&d[1].split(")")[0].split(",").length===4){var f=d[1].split(")")[0].split(",").map(function(S){return parseFloat(S)}),p=Bte(f,4);i=p[0],s=p[1],l=p[2],u=p[3]}}}var g=PM(i,l),v=PM(s,u),x=Kte(i,l),A=function(O){return O>1?1:O<0?0:O},w=function(O){for(var E=O>1?1:O,j=E,N=0;N<8;++N){var C=g(j)-E,P=x(j);if(Math.abs(C-E)<Vh||P<Vh)return v(j);j=A(j-C/P)}return v(j)};return w.isStepper=!1,w},Xte=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,s=i===void 0?8:i,l=t.dt,u=l===void 0?17:l,d=function(p,g,v){var x=-(p-g)*r,A=v*s,w=v+(x-A)*u/1e3,S=v*u/1e3+p;return Math.abs(S-g)<Vh&&Math.abs(w)<Vh?[g,0]:[S,w]};return d.isStepper=!0,d.dt=u,d},Yte=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return NM(i);case"spring":return Xte();default:if(i.split("(")[0]==="cubic-bezier")return NM(i)}return typeof i=="function"?i:null};function Au(e){"@babel/helpers - typeof";return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Au(e)}function DM(e){return Qte(e)||Zte(e)||az(e)||Wte()}function Wte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qte(e){if(Array.isArray(e))return mw(e)}function MM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MM(Object(n),!0).forEach(function(r){pw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pw(e,t,n){return t=Jte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jte(e){var t=ene(e,"string");return Au(t)==="symbol"?t:String(t)}function ene(e,t){if(Au(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Au(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tne(e,t){return ane(e)||rne(e,t)||az(e,t)||nne()}function nne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function az(e,t){if(e){if(typeof e=="string")return mw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mw(e,t)}}function mw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function ane(e){if(Array.isArray(e))return e}var Uh=function(t,n,r){return t+(n-t)*r},gw=function(t){var n=t.from,r=t.to;return n!==r},ine=function e(t,n,r){var i=Uc(function(s,l){if(gw(l)){var u=t(l.from,l.to,l.velocity),d=tne(u,2),f=d[0],p=d[1];return an(an({},l),{},{from:f,velocity:p})}return l},n);return r<1?Uc(function(s,l){return gw(l)?an(an({},l),{},{velocity:Uh(l.velocity,i[s].velocity,r),from:Uh(l.from,i[s].from,r)}):l},n):e(t,i,r-1)};const one=(function(e,t,n,r,i){var s=zte(e,t),l=s.reduce(function(S,O){return an(an({},S),{},pw({},O,[e[O],t[O]]))},{}),u=s.reduce(function(S,O){return an(an({},S),{},pw({},O,{from:e[O],velocity:0,to:t[O]}))},{}),d=-1,f,p,g=function(){return null},v=function(){return Uc(function(O,E){return E.from},u)},x=function(){return!Object.values(u).filter(gw).length},A=function(O){f||(f=O);var E=O-f,j=E/n.dt;u=ine(n,u,j),i(an(an(an({},e),t),v())),f=O,x()||(d=requestAnimationFrame(g))},w=function(O){p||(p=O);var E=(O-p)/r,j=Uc(function(C,P){return Uh.apply(void 0,DM(P).concat([n(E)]))},l);if(i(an(an(an({},e),t),j)),E<1)d=requestAnimationFrame(g);else{var N=Uc(function(C,P){return Uh.apply(void 0,DM(P).concat([n(1)]))},l);i(an(an(an({},e),t),N))}};return g=n.isStepper?A:w,function(){return requestAnimationFrame(g),function(){cancelAnimationFrame(d)}}});function Gs(e){"@babel/helpers - typeof";return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gs(e)}var sne=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function lne(e,t){if(e==null)return{};var n=cne(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function S0(e){return hne(e)||fne(e)||dne(e)||une()}function une(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dne(e,t){if(e){if(typeof e=="string")return vw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vw(e,t)}}function fne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hne(e){if(Array.isArray(e))return vw(e)}function vw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RM(Object(n),!0).forEach(function(r){Lc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lc(e,t,n){return t=iz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iz(r.key),r)}}function gne(e,t,n){return t&&mne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iz(e){var t=vne(e,"string");return Gs(t)==="symbol"?t:String(t)}function vne(e,t){if(Gs(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yw(e,t)}function yw(e,t){return yw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},yw(e,t)}function xne(e){var t=bne();return function(){var r=Hh(e),i;if(t){var s=Hh(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return xw(this,i)}}function xw(e,t){if(t&&(Gs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bw(e)}function bw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bne(){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 Hh(e){return Hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hh(e)}var Gr=(function(e){yne(n,e);var t=xne(n);function n(r,i){var s;pne(this,n),s=t.call(this,r,i);var l=s.props,u=l.isActive,d=l.attributeName,f=l.from,p=l.to,g=l.steps,v=l.children,x=l.duration;if(s.handleStyleChange=s.handleStyleChange.bind(bw(s)),s.changeStyle=s.changeStyle.bind(bw(s)),!u||x<=0)return s.state={style:{}},typeof v=="function"&&(s.state={style:p}),xw(s);if(g&&g.length)s.state={style:g[0].style};else if(f){if(typeof v=="function")return s.state={style:f},xw(s);s.state={style:d?Lc({},d,f):f}}else s.state={style:{}};return s}return gne(n,[{key:"componentDidMount",value:function(){var i=this.props,s=i.isActive,l=i.canBegin;this.mounted=!0,!(!s||!l)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var s=this.props,l=s.isActive,u=s.canBegin,d=s.attributeName,f=s.shouldReAnimate,p=s.to,g=s.from,v=this.state.style;if(u){if(!l){var x={style:d?Lc({},d,p):p};this.state&&v&&(d&&v[d]!==p||!d&&v!==p)&&this.setState(x);return}if(!(Tte(i.to,p)&&i.canBegin&&i.isActive)){var A=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=A||f?g:i.to;if(this.state&&v){var S={style:d?Lc({},d,w):w};(d&&v[d]!==w||!d&&v!==w)&&this.setState(S)}this.runAnimation(jr(jr({},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 s=this,l=i.from,u=i.to,d=i.duration,f=i.easing,p=i.begin,g=i.onAnimationEnd,v=i.onAnimationStart,x=one(l,u,Yte(f),d,this.changeStyle),A=function(){s.stopJSAnimation=x()};this.manager.start([v,p,A,d,g])}},{key:"runStepAnimation",value:function(i){var s=this,l=i.steps,u=i.begin,d=i.onAnimationStart,f=l[0],p=f.style,g=f.duration,v=g===void 0?0:g,x=function(w,S,O){if(O===0)return w;var E=S.duration,j=S.easing,N=j===void 0?"ease":j,C=S.style,P=S.properties,D=S.onAnimationEnd,M=O>0?l[O-1]:S,k=P||Object.keys(C);if(typeof N=="function"||N==="spring")return[].concat(S0(w),[s.runJSAnimation.bind(s,{from:M.style,to:C,duration:E,easing:N}),E]);var q=_M(k,E,N),L=jr(jr(jr({},M.style),C),{},{transition:q});return[].concat(S0(w),[L,E,D]).filter(Lte)};return this.manager.start([d].concat(S0(l.reduce(x,[p,Math.max(v,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Mte());var s=i.begin,l=i.duration,u=i.attributeName,d=i.to,f=i.easing,p=i.onAnimationStart,g=i.onAnimationEnd,v=i.steps,x=i.children,A=this.manager;if(this.unSubscribe=A.subscribe(this.handleStyleChange),typeof f=="function"||typeof x=="function"||f==="spring"){this.runJSAnimation(i);return}if(v.length>1){this.runStepAnimation(i);return}var w=u?Lc({},u,d):d,S=_M(Object.keys(w),l,f);A.start([p,s,jr(jr({},w),{},{transition:S}),l,g])}},{key:"render",value:function(){var i=this.props,s=i.children;i.begin;var l=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var d=lne(i,sne),f=T.Children.count(s),p=this.state.style;if(typeof s=="function")return s(p);if(!u||f===0||l<=0)return s;var g=function(x){var A=x.props,w=A.style,S=w===void 0?{}:w,O=A.className,E=T.cloneElement(x,jr(jr({},d),{},{style:jr(jr({},S),p),className:O}));return E};return f===1?g(T.Children.only(s)):B.createElement("div",null,T.Children.map(s,function(v){return g(v)}))}}]),n})(T.PureComponent);Gr.displayName="Animate";Gr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Gr.propTypes={from:Je.oneOfType([Je.object,Je.string]),to:Je.oneOfType([Je.object,Je.string]),attributeName:Je.string,duration:Je.number,begin:Je.number,easing:Je.oneOfType([Je.string,Je.func]),steps:Je.arrayOf(Je.shape({duration:Je.number.isRequired,style:Je.object.isRequired,easing:Je.oneOfType([Je.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Je.func]),properties:Je.arrayOf("string"),onAnimationEnd:Je.func})),children:Je.oneOfType([Je.node,Je.func]),isActive:Je.bool,canBegin:Je.bool,onAnimationEnd:Je.func,shouldReAnimate:Je.bool,onAnimationStart:Je.func,onAnimationReStart:Je.func};function ju(e){"@babel/helpers - typeof";return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ju(e)}function Fh(){return Fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fh.apply(this,arguments)}function wne(e,t){return One(e)||jne(e,t)||Ane(e,t)||Sne()}function Sne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ane(e,t){if(e){if(typeof e=="string")return kM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kM(e,t)}}function kM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function One(e){if(Array.isArray(e))return e}function zM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function LM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zM(Object(n),!0).forEach(function(r){Tne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tne(e,t,n){return t=Cne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cne(e){var t=Ene(e,"string");return ju(t)=="symbol"?t:t+""}function Ene(e,t){if(ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $M=function(t,n,r,i,s){var l=Math.min(Math.abs(r)/2,Math.abs(i)/2),u=i>=0?1:-1,d=r>=0?1:-1,f=i>=0&&r>=0||i<0&&r<0?1:0,p;if(l>0&&s instanceof Array){for(var g=[0,0,0,0],v=0,x=4;v<x;v++)g[v]=s[v]>l?l:s[v];p="M".concat(t,",").concat(n+u*g[0]),g[0]>0&&(p+="A ".concat(g[0],",").concat(g[0],",0,0,").concat(f,",").concat(t+d*g[0],",").concat(n)),p+="L ".concat(t+r-d*g[1],",").concat(n),g[1]>0&&(p+="A ".concat(g[1],",").concat(g[1],",0,0,").concat(f,`,
        `).concat(t+r,",").concat(n+u*g[1])),p+="L ".concat(t+r,",").concat(n+i-u*g[2]),g[2]>0&&(p+="A ".concat(g[2],",").concat(g[2],",0,0,").concat(f,`,
        `).concat(t+r-d*g[2],",").concat(n+i)),p+="L ".concat(t+d*g[3],",").concat(n+i),g[3]>0&&(p+="A ".concat(g[3],",").concat(g[3],",0,0,").concat(f,`,
        `).concat(t,",").concat(n+i-u*g[3])),p+="Z"}else if(l>0&&s===+s&&s>0){var A=Math.min(l,s);p="M ".concat(t,",").concat(n+u*A,`
            A `).concat(A,",").concat(A,",0,0,").concat(f,",").concat(t+d*A,",").concat(n,`
            L `).concat(t+r-d*A,",").concat(n,`
            A `).concat(A,",").concat(A,",0,0,").concat(f,",").concat(t+r,",").concat(n+u*A,`
            L `).concat(t+r,",").concat(n+i-u*A,`
            A `).concat(A,",").concat(A,",0,0,").concat(f,",").concat(t+r-d*A,",").concat(n+i,`
            L `).concat(t+d*A,",").concat(n+i,`
            A `).concat(A,",").concat(A,",0,0,").concat(f,",").concat(t,",").concat(n+i-u*A," Z")}else p="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return p},_ne=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,s=n.x,l=n.y,u=n.width,d=n.height;if(Math.abs(u)>0&&Math.abs(d)>0){var f=Math.min(s,s+u),p=Math.max(s,s+u),g=Math.min(l,l+d),v=Math.max(l,l+d);return r>=f&&r<=p&&i>=g&&i<=v}return!1},Pne={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},NA=function(t){var n=LM(LM({},Pne),t),r=T.useRef(),i=T.useState(-1),s=wne(i,2),l=s[0],u=s[1];T.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var N=r.current.getTotalLength();N&&u(N)}catch{}},[]);var d=n.x,f=n.y,p=n.width,g=n.height,v=n.radius,x=n.className,A=n.animationEasing,w=n.animationDuration,S=n.animationBegin,O=n.isAnimationActive,E=n.isUpdateAnimationActive;if(d!==+d||f!==+f||p!==+p||g!==+g||p===0||g===0)return null;var j=De("recharts-rectangle",x);return E?B.createElement(Gr,{canBegin:l>0,from:{width:p,height:g,x:d,y:f},to:{width:p,height:g,x:d,y:f},duration:w,animationEasing:A,isActive:E},function(N){var C=N.width,P=N.height,D=N.x,M=N.y;return B.createElement(Gr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:w,isActive:O,easing:A},B.createElement("path",Fh({},je(n,!0),{className:j,d:$M(D,M,C,P,v),ref:r})))}):B.createElement("path",Fh({},je(n,!0),{className:j,d:$M(d,f,p,g,v)}))},Nne=["points","className","baseLinePoints","connectNulls"];function bs(){return bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bs.apply(this,arguments)}function Dne(e,t){if(e==null)return{};var n=Mne(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mne(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function BM(e){return Lne(e)||zne(e)||kne(e)||Rne()}function Rne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kne(e,t){if(e){if(typeof e=="string")return ww(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ww(e,t)}}function zne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lne(e){if(Array.isArray(e))return ww(e)}function ww(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var IM=function(t){return t&&t.x===+t.x&&t.y===+t.y},$ne=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){IM(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),IM(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Hc=function(t,n){var r=$ne(t);n&&(r=[r.reduce(function(s,l){return[].concat(BM(s),BM(l))},[])]);var i=r.map(function(s){return s.reduce(function(l,u,d){return"".concat(l).concat(d===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},Bne=function(t,n,r){var i=Hc(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Hc(n.reverse(),r).slice(1))},Ine=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,s=t.connectNulls,l=Dne(t,Nne);if(!n||!n.length)return null;var u=De("recharts-polygon",r);if(i&&i.length){var d=l.stroke&&l.stroke!=="none",f=Bne(n,i,s);return B.createElement("g",{className:u},B.createElement("path",bs({},je(l,!0),{fill:f.slice(-1)==="Z"?l.fill:"none",stroke:"none",d:f})),d?B.createElement("path",bs({},je(l,!0),{fill:"none",d:Hc(n,s)})):null,d?B.createElement("path",bs({},je(l,!0),{fill:"none",d:Hc(i,s)})):null)}var p=Hc(n,s);return B.createElement("path",bs({},je(l,!0),{fill:p.slice(-1)==="Z"?l.fill:"none",className:u,d:p}))};function Sw(){return Sw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sw.apply(this,arguments)}var Qp=function(t){var n=t.cx,r=t.cy,i=t.r,s=t.className,l=De("recharts-dot",s);return n===+n&&r===+r&&i===+i?T.createElement("circle",Sw({},je(t,!1),ph(t),{className:l,cx:n,cy:r,r:i})):null};function Ou(e){"@babel/helpers - typeof";return Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(e)}var qne=["x","y","top","left","width","height","className"];function Aw(){return Aw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aw.apply(this,arguments)}function qM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qM(Object(n),!0).forEach(function(r){Une(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Une(e,t,n){return t=Hne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hne(e){var t=Fne(e,"string");return Ou(t)=="symbol"?t:t+""}function Fne(e,t){if(Ou(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ou(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gne(e,t){if(e==null)return{};var n=Kne(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kne(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Xne=function(t,n,r,i,s,l){return"M".concat(t,",").concat(s,"v").concat(i,"M").concat(l,",").concat(n,"h").concat(r)},Yne=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,s=i===void 0?0:i,l=t.top,u=l===void 0?0:l,d=t.left,f=d===void 0?0:d,p=t.width,g=p===void 0?0:p,v=t.height,x=v===void 0?0:v,A=t.className,w=Gne(t,qne),S=Vne({x:r,y:s,top:u,left:f,width:g,height:x},w);return!de(r)||!de(s)||!de(g)||!de(x)||!de(u)||!de(f)?null:B.createElement("path",Aw({},je(S,!0),{className:De("recharts-cross",A),d:Xne(r,s,g,x,u,f)}))},A0,VM;function Wne(){if(VM)return A0;VM=1;var e=Kp(),t=b8(),n=Yr();function r(i,s){return i&&i.length?e(i,n(s,2),t):void 0}return A0=r,A0}var Zne=Wne();const Qne=tt(Zne);var j0,UM;function Jne(){if(UM)return j0;UM=1;var e=Kp(),t=Yr(),n=w8();function r(i,s){return i&&i.length?e(i,t(s,2),n):void 0}return j0=r,j0}var ere=Jne();const tre=tt(ere);var nre=["cx","cy","angle","ticks","axisLine"],rre=["ticks","tick","angle","tickFormatter","stroke"];function Ks(e){"@babel/helpers - typeof";return Ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ks(e)}function Fc(){return Fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fc.apply(this,arguments)}function HM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HM(Object(n),!0).forEach(function(r){Jp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FM(e,t){if(e==null)return{};var n=are(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function are(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ire(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sz(r.key),r)}}function ore(e,t,n){return t&&GM(e.prototype,t),n&&GM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sre(e,t,n){return t=Gh(t),lre(e,oz()?Reflect.construct(t,n||[],Gh(e).constructor):t.apply(e,n))}function lre(e,t){if(t&&(Ks(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cre(e)}function cre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oz=function(){return!!e})()}function Gh(e){return Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gh(e)}function ure(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jw(e,t)}function jw(e,t){return jw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},jw(e,t)}function Jp(e,t,n){return t=sz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sz(e){var t=dre(e,"string");return Ks(t)=="symbol"?t:t+""}function dre(e,t){if(Ks(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var em=(function(e){function t(){return ire(this,t),sre(this,t,arguments)}return ure(t,e),ore(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,s=this.props,l=s.angle,u=s.cx,d=s.cy;return ft(u,d,i,l)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,s=r.cy,l=r.angle,u=r.ticks,d=Qne(u,function(p){return p.coordinate||0}),f=tre(u,function(p){return p.coordinate||0});return{cx:i,cy:s,startAngle:l,endAngle:l,innerRadius:f.coordinate||0,outerRadius:d.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,s=r.cy,l=r.angle,u=r.ticks,d=r.axisLine,f=FM(r,nre),p=u.reduce(function(A,w){return[Math.min(A[0],w.coordinate),Math.max(A[1],w.coordinate)]},[1/0,-1/0]),g=ft(i,s,p[0],l),v=ft(i,s,p[1],l),x=Fi(Fi(Fi({},je(f,!1)),{},{fill:"none"},je(d,!1)),{},{x1:g.x,y1:g.y,x2:v.x,y2:v.y});return B.createElement("line",Fc({className:"recharts-polar-radius-axis-line"},x))}},{key:"renderTicks",value:function(){var r=this,i=this.props,s=i.ticks,l=i.tick,u=i.angle,d=i.tickFormatter,f=i.stroke,p=FM(i,rre),g=this.getTickTextAnchor(),v=je(p,!1),x=je(l,!1),A=s.map(function(w,S){var O=r.getTickValueCoord(w),E=Fi(Fi(Fi(Fi({textAnchor:g,transform:"rotate(".concat(90-u,", ").concat(O.x,", ").concat(O.y,")")},v),{},{stroke:"none",fill:f},x),{},{index:S},O),{},{payload:w});return B.createElement(Xe,Fc({className:De("recharts-polar-radius-axis-tick",Y8(l)),key:"tick-".concat(w.coordinate)},po(r.props,w,S)),t.renderTickItem(l,E,d?d(w.value,S):w.value))});return B.createElement(Xe,{className:"recharts-polar-radius-axis-ticks"},A)}},{key:"render",value:function(){var r=this.props,i=r.ticks,s=r.axisLine,l=r.tick;return!i||!i.length?null:B.createElement(Xe,{className:De("recharts-polar-radius-axis",this.props.className)},s&&this.renderAxisLine(),l&&this.renderTicks(),Zt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,s){var l;return B.isValidElement(r)?l=B.cloneElement(r,i):_e(r)?l=r(i):l=B.createElement(mo,Fc({},i,{className:"recharts-polar-radius-axis-tick-value"}),s),l}}])})(T.PureComponent);Jp(em,"displayName","PolarRadiusAxis");Jp(em,"axisType","radiusAxis");Jp(em,"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 Xs(e){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xs(e)}function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zi.apply(this,arguments)}function KM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KM(Object(n),!0).forEach(function(r){tm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cz(r.key),r)}}function hre(e,t,n){return t&&XM(e.prototype,t),n&&XM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pre(e,t,n){return t=Kh(t),mre(e,lz()?Reflect.construct(t,n||[],Kh(e).constructor):t.apply(e,n))}function mre(e,t){if(t&&(Xs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gre(e)}function gre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lz=function(){return!!e})()}function Kh(e){return Kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kh(e)}function vre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ow(e,t)}function Ow(e,t){return Ow=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ow(e,t)}function tm(e,t,n){return t=cz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cz(e){var t=yre(e,"string");return Xs(t)=="symbol"?t:t+""}function yre(e,t){if(Xs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xre=Math.PI/180,YM=1e-5,nm=(function(e){function t(){return fre(this,t),pre(this,t,arguments)}return vre(t,e),hre(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,s=i.cx,l=i.cy,u=i.radius,d=i.orientation,f=i.tickSize,p=f||8,g=ft(s,l,u,r.coordinate),v=ft(s,l,u+(d==="inner"?-1:1)*p,r.coordinate);return{x1:g.x,y1:g.y,x2:v.x,y2:v.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,s=Math.cos(-r.coordinate*xre),l;return s>YM?l=i==="outer"?"start":"end":s<-YM?l=i==="outer"?"end":"start":l="middle",l}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,s=r.cy,l=r.radius,u=r.axisLine,d=r.axisLineType,f=Gi(Gi({},je(this.props,!1)),{},{fill:"none"},je(u,!1));if(d==="circle")return B.createElement(Qp,Zi({className:"recharts-polar-angle-axis-line"},f,{cx:i,cy:s,r:l}));var p=this.props.ticks,g=p.map(function(v){return ft(i,s,l,v.coordinate)});return B.createElement(Ine,Zi({className:"recharts-polar-angle-axis-line"},f,{points:g}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,s=i.ticks,l=i.tick,u=i.tickLine,d=i.tickFormatter,f=i.stroke,p=je(this.props,!1),g=je(l,!1),v=Gi(Gi({},p),{},{fill:"none"},je(u,!1)),x=s.map(function(A,w){var S=r.getTickLineCoord(A),O=r.getTickTextAnchor(A),E=Gi(Gi(Gi({textAnchor:O},p),{},{stroke:"none",fill:f},g),{},{index:w,payload:A,x:S.x2,y:S.y2});return B.createElement(Xe,Zi({className:De("recharts-polar-angle-axis-tick",Y8(l)),key:"tick-".concat(A.coordinate)},po(r.props,A,w)),u&&B.createElement("line",Zi({className:"recharts-polar-angle-axis-tick-line"},v,S)),l&&t.renderTickItem(l,E,d?d(A.value,w):A.value))});return B.createElement(Xe,{className:"recharts-polar-angle-axis-ticks"},x)}},{key:"render",value:function(){var r=this.props,i=r.ticks,s=r.radius,l=r.axisLine;return s<=0||!i||!i.length?null:B.createElement(Xe,{className:De("recharts-polar-angle-axis",this.props.className)},l&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,s){var l;return B.isValidElement(r)?l=B.cloneElement(r,i):_e(r)?l=r(i):l=B.createElement(mo,Zi({},i,{className:"recharts-polar-angle-axis-tick-value"}),s),l}}])})(T.PureComponent);tm(nm,"displayName","PolarAngleAxis");tm(nm,"axisType","angleAxis");tm(nm,"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 O0,WM;function bre(){if(WM)return O0;WM=1;var e=x6(),t=e(Object.getPrototypeOf,Object);return O0=t,O0}var T0,ZM;function wre(){if(ZM)return T0;ZM=1;var e=Da(),t=bre(),n=Ma(),r="[object Object]",i=Function.prototype,s=Object.prototype,l=i.toString,u=s.hasOwnProperty,d=l.call(Object);function f(p){if(!n(p)||e(p)!=r)return!1;var g=t(p);if(g===null)return!0;var v=u.call(g,"constructor")&&g.constructor;return typeof v=="function"&&v instanceof v&&l.call(v)==d}return T0=f,T0}var Sre=wre();const Are=tt(Sre);var C0,QM;function jre(){if(QM)return C0;QM=1;var e=Da(),t=Ma(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return C0=r,C0}var Ore=jre();const Tre=tt(Ore);function Tu(e){"@babel/helpers - typeof";return Tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tu(e)}function Xh(){return Xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xh.apply(this,arguments)}function Cre(e,t){return Nre(e)||Pre(e,t)||_re(e,t)||Ere()}function Ere(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _re(e,t){if(e){if(typeof e=="string")return JM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JM(e,t)}}function JM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function Nre(e){if(Array.isArray(e))return e}function eR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eR(Object(n),!0).forEach(function(r){Dre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dre(e,t,n){return t=Mre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mre(e){var t=Rre(e,"string");return Tu(t)=="symbol"?t:t+""}function Rre(e,t){if(Tu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nR=function(t,n,r,i,s){var l=r-i,u;return u="M ".concat(t,",").concat(n),u+="L ".concat(t+r,",").concat(n),u+="L ".concat(t+r-l/2,",").concat(n+s),u+="L ".concat(t+r-l/2-i,",").concat(n+s),u+="L ".concat(t,",").concat(n," Z"),u},kre={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zre=function(t){var n=tR(tR({},kre),t),r=T.useRef(),i=T.useState(-1),s=Cre(i,2),l=s[0],u=s[1];T.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var j=r.current.getTotalLength();j&&u(j)}catch{}},[]);var d=n.x,f=n.y,p=n.upperWidth,g=n.lowerWidth,v=n.height,x=n.className,A=n.animationEasing,w=n.animationDuration,S=n.animationBegin,O=n.isUpdateAnimationActive;if(d!==+d||f!==+f||p!==+p||g!==+g||v!==+v||p===0&&g===0||v===0)return null;var E=De("recharts-trapezoid",x);return O?B.createElement(Gr,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:v,x:d,y:f},to:{upperWidth:p,lowerWidth:g,height:v,x:d,y:f},duration:w,animationEasing:A,isActive:O},function(j){var N=j.upperWidth,C=j.lowerWidth,P=j.height,D=j.x,M=j.y;return B.createElement(Gr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:w,easing:A},B.createElement("path",Xh({},je(n,!0),{className:E,d:nR(D,M,N,C,P),ref:r})))}):B.createElement("g",null,B.createElement("path",Xh({},je(n,!0),{className:E,d:nR(d,f,p,g,v)})))},Lre=["option","shapeType","propTransformer","activeClassName","isActive"];function Cu(e){"@babel/helpers - typeof";return Cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cu(e)}function $re(e,t){if(e==null)return{};var n=Bre(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bre(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rR(Object(n),!0).forEach(function(r){Ire(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ire(e,t,n){return t=qre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qre(e){var t=Vre(e,"string");return Cu(t)=="symbol"?t:t+""}function Vre(e,t){if(Cu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ure(e,t){return Yh(Yh({},t),e)}function Hre(e,t){return e==="symbols"}function aR(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return B.createElement(NA,n);case"trapezoid":return B.createElement(zre,n);case"sector":return B.createElement(Q8,n);case"symbols":if(Hre(t))return B.createElement(WS,n);break;default:return null}}function Fre(e){return T.isValidElement(e)?e.props:e}function uz(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?Ure:r,s=e.activeClassName,l=s===void 0?"recharts-active-shape":s,u=e.isActive,d=$re(e,Lre),f;if(T.isValidElement(t))f=T.cloneElement(t,Yh(Yh({},d),Fre(t)));else if(_e(t))f=t(d);else if(Are(t)&&!Tre(t)){var p=i(t,d);f=B.createElement(aR,{shapeType:n,elementProps:p})}else{var g=d;f=B.createElement(aR,{shapeType:n,elementProps:g})}return u?B.createElement(Xe,{className:l},f):f}function rm(e,t){return t!=null&&"trapezoids"in e.props}function am(e,t){return t!=null&&"sectors"in e.props}function Eu(e,t){return t!=null&&"points"in e.props}function Gre(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,s=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&s}function Kre(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Xre(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function Yre(e,t){var n;return rm(e,t)?n=Gre:am(e,t)?n=Kre:Eu(e,t)&&(n=Xre),n}function Wre(e,t){var n;return rm(e,t)?n="trapezoids":am(e,t)?n="sectors":Eu(e,t)&&(n="points"),n}function Zre(e,t){if(rm(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(am(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return Eu(e,t)?t.payload:{}}function Qre(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=Wre(n,t),s=Zre(n,t),l=r.filter(function(d,f){var p=ed(s,d),g=n.props[i].filter(function(A){var w=Yre(n,t);return w(A,t)}),v=n.props[i].indexOf(g[g.length-1]),x=f===v;return p&&x}),u=r.indexOf(l[l.length-1]);return u}var rh;function Ys(e){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ys(e)}function ws(){return ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ws.apply(this,arguments)}function iR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iR(Object(n),!0).forEach(function(r){dr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fz(r.key),r)}}function eae(e,t,n){return t&&oR(e.prototype,t),n&&oR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tae(e,t,n){return t=Wh(t),nae(e,dz()?Reflect.construct(t,n||[],Wh(e).constructor):t.apply(e,n))}function nae(e,t){if(t&&(Ys(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rae(e)}function rae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dz=function(){return!!e})()}function Wh(e){return Wh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wh(e)}function aae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tw(e,t)}function Tw(e,t){return Tw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Tw(e,t)}function dr(e,t,n){return t=fz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fz(e){var t=iae(e,"string");return Ys(t)=="symbol"?t:t+""}function iae(e,t){if(Ys(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ka=(function(e){function t(n){var r;return Jre(this,t),r=tae(this,t,[n]),dr(r,"pieRef",null),dr(r,"sectorRefs",[]),dr(r,"id",xl("recharts-pie-")),dr(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),_e(i)&&i()}),dr(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),_e(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return aae(t,e),eae(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.label,u=s.labelLine,d=s.dataKey,f=s.valueKey,p=je(this.props,!1),g=je(l,!1),v=je(u,!1),x=l&&l.offsetRadius||20,A=r.map(function(w,S){var O=(w.startAngle+w.endAngle)/2,E=ft(w.cx,w.cy,w.outerRadius+x,O),j=ut(ut(ut(ut({},p),w),{},{stroke:"none"},g),{},{index:S,textAnchor:t.getTextAnchor(E.x,w.cx)},E),N=ut(ut(ut(ut({},p),w),{},{fill:"none",stroke:w.fill},v),{},{index:S,points:[ft(w.cx,w.cy,w.outerRadius,O),E]}),C=d;return Ne(d)&&Ne(f)?C="value":Ne(d)&&(C=f),B.createElement(Xe,{key:"label-".concat(w.startAngle,"-").concat(w.endAngle,"-").concat(w.midAngle,"-").concat(S)},u&&t.renderLabelLineItem(u,N,"line"),t.renderLabelItem(l,j,Ft(w,C)))});return B.createElement(Xe,{className:"recharts-pie-labels"},A)}},{key:"renderSectorsStatically",value:function(r){var i=this,s=this.props,l=s.activeShape,u=s.blendStroke,d=s.inactiveShape;return r.map(function(f,p){if(f?.startAngle===0&&f?.endAngle===0&&r.length!==1)return null;var g=i.isActiveIndex(p),v=d&&i.hasActiveIndex()?d:null,x=g?l:v,A=ut(ut({},f),{},{stroke:u?f.fill:f.stroke,tabIndex:-1});return B.createElement(Xe,ws({ref:function(S){S&&!i.sectorRefs.includes(S)&&i.sectorRefs.push(S)},tabIndex:-1,className:"recharts-pie-sector"},po(i.props,f,p),{key:"sector-".concat(f?.startAngle,"-").concat(f?.endAngle,"-").concat(f.midAngle,"-").concat(p)}),B.createElement(uz,ws({option:x,isActive:g,shapeType:"sector"},A)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,s=i.sectors,l=i.isAnimationActive,u=i.animationBegin,d=i.animationDuration,f=i.animationEasing,p=i.animationId,g=this.state,v=g.prevSectors,x=g.prevIsAnimationActive;return B.createElement(Gr,{begin:u,duration:d,isActive:l,easing:f,from:{t:0},to:{t:1},key:"pie-".concat(p,"-").concat(x),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(A){var w=A.t,S=[],O=s&&s[0],E=O.startAngle;return s.forEach(function(j,N){var C=v&&v[N],P=N>0?Fn(j,"paddingAngle",0):0;if(C){var D=Vn(C.endAngle-C.startAngle,j.endAngle-j.startAngle),M=ut(ut({},j),{},{startAngle:E+P,endAngle:E+D(w)+P});S.push(M),E=M.endAngle}else{var k=j.endAngle,q=j.startAngle,L=Vn(0,k-q),U=L(w),X=ut(ut({},j),{},{startAngle:E+P,endAngle:E+U+P});S.push(X),E=X.endAngle}}),B.createElement(Xe,null,r.renderSectorsStatically(S))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(s){if(!s.altKey)switch(s.key){case"ArrowLeft":{var l=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,s=r.isAnimationActive,l=this.state.prevSectors;return s&&i&&i.length&&(!l||!ed(l,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,s=i.hide,l=i.sectors,u=i.className,d=i.label,f=i.cx,p=i.cy,g=i.innerRadius,v=i.outerRadius,x=i.isAnimationActive,A=this.state.isAnimationFinished;if(s||!l||!l.length||!de(f)||!de(p)||!de(g)||!de(v))return null;var w=De("recharts-pie",u);return B.createElement(Xe,{tabIndex:this.props.rootTabIndex,className:w,ref:function(O){r.pieRef=O}},this.renderSectors(),d&&this.renderLabels(l),Zt.renderCallByParent(this.props,null,!1),(!x||A)&&ja.renderCallByParent(this.props,l,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,s){if(B.isValidElement(r))return B.cloneElement(r,i);if(_e(r))return r(i);var l=De("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return B.createElement(qh,ws({},i,{key:s,type:"linear",className:l}))}},{key:"renderLabelItem",value:function(r,i,s){if(B.isValidElement(r))return B.cloneElement(r,i);var l=s;if(_e(r)&&(l=r(i),B.isValidElement(l)))return l;var u=De("recharts-pie-label-text",typeof r!="boolean"&&!_e(r)?r.className:"");return B.createElement(mo,ws({},i,{alignmentBaseline:"middle",className:u}),l)}}])})(T.PureComponent);rh=ka;dr(ka,"displayName","Pie");dr(ka,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!So.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});dr(ka,"parseDeltaAngle",function(e,t){var n=mn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});dr(ka,"getRealPieData",function(e){var t=e.data,n=e.children,r=je(e,!1),i=Gn(n,Ip);return t&&t.length?t.map(function(s,l){return ut(ut(ut({payload:s},r),s),i&&i[l]&&i[l].props)}):i&&i.length?i.map(function(s){return ut(ut({},r),s.props)}):[]});dr(ka,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,s=t.height,l=X8(i,s),u=r+gn(e.cx,i,i/2),d=n+gn(e.cy,s,s/2),f=gn(e.innerRadius,l,0),p=gn(e.outerRadius,l,l*.8),g=e.maxRadius||Math.sqrt(i*i+s*s)/2;return{cx:u,cy:d,innerRadius:f,outerRadius:p,maxRadius:g}});dr(ka,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?ut(ut({},t.type.defaultProps),t.props):t.props,i=rh.getRealPieData(r);if(!i||!i.length)return null;var s=r.cornerRadius,l=r.startAngle,u=r.endAngle,d=r.paddingAngle,f=r.dataKey,p=r.nameKey,g=r.valueKey,v=r.tooltipType,x=Math.abs(r.minAngle),A=rh.parseCoordinateOfPie(r,n),w=rh.parseDeltaAngle(l,u),S=Math.abs(w),O=f;Ne(f)&&Ne(g)?(_r(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),O="value"):Ne(f)&&(_r(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),O=g);var E=i.filter(function(M){return Ft(M,O,0)!==0}).length,j=(S>=360?E:E-1)*d,N=S-E*x-j,C=i.reduce(function(M,k){var q=Ft(k,O,0);return M+(de(q)?q:0)},0),P;if(C>0){var D;P=i.map(function(M,k){var q=Ft(M,O,0),L=Ft(M,p,k),U=(de(q)?q:0)/C,X;k?X=D.endAngle+mn(w)*d*(q!==0?1:0):X=l;var J=X+mn(w)*((q!==0?x:0)+U*N),W=(X+J)/2,z=(A.innerRadius+A.outerRadius)/2,H=[{name:L,value:q,payload:M,dataKey:O,type:v}],F=ft(A.cx,A.cy,z,W);return D=ut(ut(ut({percent:U,cornerRadius:s,name:L,tooltipPayload:H,midAngle:W,middleRadius:z,tooltipPosition:F},M),A),{},{value:Ft(M,O),startAngle:X,endAngle:J,payload:M,paddingAngle:mn(w)*d}),D})}return ut(ut({},A),{},{sectors:P,data:i})});var E0,sR;function oae(){if(sR)return E0;sR=1;var e=Math.ceil,t=Math.max;function n(r,i,s,l){for(var u=-1,d=t(e((i-r)/(s||1)),0),f=Array(d);d--;)f[l?d:++u]=r,r+=s;return f}return E0=n,E0}var _0,lR;function hz(){if(lR)return _0;lR=1;var e=k6(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var s=i<0?-1:1;return s*n}return i===i?i:0}return _0=r,_0}var P0,cR;function sae(){if(cR)return P0;cR=1;var e=oae(),t=Bp(),n=hz();function r(i){return function(s,l,u){return u&&typeof u!="number"&&t(s,l,u)&&(l=u=void 0),s=n(s),l===void 0?(l=s,s=0):l=n(l),u=u===void 0?s<l?1:-1:n(u),e(s,l,u,i)}}return P0=r,P0}var N0,uR;function lae(){if(uR)return N0;uR=1;var e=sae(),t=e();return N0=t,N0}var cae=lae();const Zh=tt(cae);function _u(e){"@babel/helpers - typeof";return _u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_u(e)}function dR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dR(Object(n),!0).forEach(function(r){pz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pz(e,t,n){return t=uae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uae(e){var t=dae(e,"string");return _u(t)=="symbol"?t:t+""}function dae(e,t){if(_u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fae=["Webkit","Moz","O","ms"],hae=function(t,n){var r=t.replace(/(\w)/,function(s){return s.toUpperCase()}),i=fae.reduce(function(s,l){return fR(fR({},s),{},pz({},l+r,n))},{});return i[t]=n,i};function Ws(e){"@babel/helpers - typeof";return Ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ws(e)}function Qh(){return Qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qh.apply(this,arguments)}function hR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function D0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hR(Object(n),!0).forEach(function(r){In(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gz(r.key),r)}}function mae(e,t,n){return t&&pR(e.prototype,t),n&&pR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gae(e,t,n){return t=Jh(t),vae(e,mz()?Reflect.construct(t,n||[],Jh(e).constructor):t.apply(e,n))}function vae(e,t){if(t&&(Ws(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yae(e)}function yae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mz=function(){return!!e})()}function Jh(e){return Jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jh(e)}function xae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cw(e,t)}function Cw(e,t){return Cw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Cw(e,t)}function In(e,t,n){return t=gz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gz(e){var t=bae(e,"string");return Ws(t)=="symbol"?t:t+""}function bae(e,t){if(Ws(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ws(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wae=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,s=t.x,l=t.width,u=t.travellerWidth;if(!n||!n.length)return{};var d=n.length,f=qc().domain(Zh(0,d)).range([s,s+l-u]),p=f.domain().map(function(g){return f(g)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:f(r),endX:f(i),scale:f,scaleValues:p}},mR=function(t){return t.changedTouches&&!!t.changedTouches.length},Zs=(function(e){function t(n){var r;return pae(this,t),r=gae(this,t,[n]),In(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),In(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),In(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,s=i.endIndex,l=i.onDragEnd,u=i.startIndex;l?.({endIndex:s,startIndex:u})}),r.detachDragEndListener()}),In(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),In(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),In(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),In(r,"handleSlideDragStart",function(i){var s=mR(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:s.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return xae(t,e),mae(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,s=r.endX,l=this.state.scaleValues,u=this.props,d=u.gap,f=u.data,p=f.length-1,g=Math.min(i,s),v=Math.max(i,s),x=t.getIndexInRange(l,g),A=t.getIndexInRange(l,v);return{startIndex:x-x%d,endIndex:A===p?p:A-A%d}}},{key:"getTextOfTick",value:function(r){var i=this.props,s=i.data,l=i.tickFormatter,u=i.dataKey,d=Ft(s[r],u,r);return _e(l)?l(d,r):d}},{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(r){var i=this.state,s=i.slideMoveStartX,l=i.startX,u=i.endX,d=this.props,f=d.x,p=d.width,g=d.travellerWidth,v=d.startIndex,x=d.endIndex,A=d.onChange,w=r.pageX-s;w>0?w=Math.min(w,f+p-g-u,f+p-g-l):w<0&&(w=Math.max(w,f-l,f-u));var S=this.getIndex({startX:l+w,endX:u+w});(S.startIndex!==v||S.endIndex!==x)&&A&&A(S),this.setState({startX:l+w,endX:u+w,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var s=mR(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:s.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,s=i.brushMoveStartX,l=i.movingTravellerId,u=i.endX,d=i.startX,f=this.state[l],p=this.props,g=p.x,v=p.width,x=p.travellerWidth,A=p.onChange,w=p.gap,S=p.data,O={startX:this.state.startX,endX:this.state.endX},E=r.pageX-s;E>0?E=Math.min(E,g+v-x-f):E<0&&(E=Math.max(E,g-f)),O[l]=f+E;var j=this.getIndex(O),N=j.startIndex,C=j.endIndex,P=function(){var M=S.length-1;return l==="startX"&&(u>d?N%w===0:C%w===0)||u<d&&C===M||l==="endX"&&(u>d?C%w===0:N%w===0)||u>d&&C===M};this.setState(In(In({},l,f+E),"brushMoveStartX",r.pageX),function(){A&&P()&&A(j)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var s=this,l=this.state,u=l.scaleValues,d=l.startX,f=l.endX,p=this.state[i],g=u.indexOf(p);if(g!==-1){var v=g+r;if(!(v===-1||v>=u.length)){var x=u[v];i==="startX"&&x>=f||i==="endX"&&x<=d||this.setState(In({},i,x),function(){s.props.onChange(s.getIndex({startX:s.state.startX,endX:s.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,s=r.y,l=r.width,u=r.height,d=r.fill,f=r.stroke;return B.createElement("rect",{stroke:f,fill:d,x:i,y:s,width:l,height:u})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,s=r.y,l=r.width,u=r.height,d=r.data,f=r.children,p=r.padding,g=T.Children.only(f);return g?B.cloneElement(g,{x:i,y:s,width:l,height:u,margin:p,compact:!0,data:d}):null}},{key:"renderTravellerLayer",value:function(r,i){var s,l,u=this,d=this.props,f=d.y,p=d.travellerWidth,g=d.height,v=d.traveller,x=d.ariaLabel,A=d.data,w=d.startIndex,S=d.endIndex,O=Math.max(r,this.props.x),E=D0(D0({},je(this.props,!1)),{},{x:O,y:f,width:p,height:g}),j=x||"Min value: ".concat((s=A[w])===null||s===void 0?void 0:s.name,", Max value: ").concat((l=A[S])===null||l===void 0?void 0:l.name);return B.createElement(Xe,{tabIndex:0,role:"slider","aria-label":j,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(C){["ArrowLeft","ArrowRight"].includes(C.key)&&(C.preventDefault(),C.stopPropagation(),u.handleTravellerMoveKeyboard(C.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(v,E))}},{key:"renderSlide",value:function(r,i){var s=this.props,l=s.y,u=s.height,d=s.stroke,f=s.travellerWidth,p=Math.min(r,i)+f,g=Math.max(Math.abs(i-r)-f,0);return B.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:d,fillOpacity:.2,x:p,y:l,width:g,height:u})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,s=r.endIndex,l=r.y,u=r.height,d=r.travellerWidth,f=r.stroke,p=this.state,g=p.startX,v=p.endX,x=5,A={pointerEvents:"none",fill:f};return B.createElement(Xe,{className:"recharts-brush-texts"},B.createElement(mo,Qh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(g,v)-x,y:l+u/2},A),this.getTextOfTick(i)),B.createElement(mo,Qh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(g,v)+d+x,y:l+u/2},A),this.getTextOfTick(s)))}},{key:"render",value:function(){var r=this.props,i=r.data,s=r.className,l=r.children,u=r.x,d=r.y,f=r.width,p=r.height,g=r.alwaysShowText,v=this.state,x=v.startX,A=v.endX,w=v.isTextActive,S=v.isSlideMoving,O=v.isTravellerMoving,E=v.isTravellerFocused;if(!i||!i.length||!de(u)||!de(d)||!de(f)||!de(p)||f<=0||p<=0)return null;var j=De("recharts-brush",s),N=B.Children.count(l)===1,C=hae("userSelect","none");return B.createElement(Xe,{className:j,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:C},this.renderBackground(),N&&this.renderPanorama(),this.renderSlide(x,A),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(A,"endX"),(w||S||O||E||g)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,s=r.y,l=r.width,u=r.height,d=r.stroke,f=Math.floor(s+u/2)-1;return B.createElement(B.Fragment,null,B.createElement("rect",{x:i,y:s,width:l,height:u,fill:d,stroke:"none"}),B.createElement("line",{x1:i+1,y1:f,x2:i+l-1,y2:f,fill:"none",stroke:"#fff"}),B.createElement("line",{x1:i+1,y1:f+2,x2:i+l-1,y2:f+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var s;return B.isValidElement(r)?s=B.cloneElement(r,i):_e(r)?s=r(i):s=t.renderDefaultTraveller(i),s}},{key:"getDerivedStateFromProps",value:function(r,i){var s=r.data,l=r.width,u=r.x,d=r.travellerWidth,f=r.updateId,p=r.startIndex,g=r.endIndex;if(s!==i.prevData||f!==i.prevUpdateId)return D0({prevData:s,prevTravellerWidth:d,prevUpdateId:f,prevX:u,prevWidth:l},s&&s.length?wae({data:s,width:l,x:u,travellerWidth:d,startIndex:p,endIndex:g}):{scale:null,scaleValues:null});if(i.scale&&(l!==i.prevWidth||u!==i.prevX||d!==i.prevTravellerWidth)){i.scale.range([u,u+l-d]);var v=i.scale.domain().map(function(x){return i.scale(x)});return{prevData:s,prevTravellerWidth:d,prevUpdateId:f,prevX:u,prevWidth:l,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:v}}return null}},{key:"getIndexInRange",value:function(r,i){for(var s=r.length,l=0,u=s-1;u-l>1;){var d=Math.floor((l+u)/2);r[d]>i?u=d:l=d}return i>=r[u]?u:l}}])})(T.PureComponent);In(Zs,"displayName","Brush");In(Zs,"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 M0,gR;function Sae(){if(gR)return M0;gR=1;var e=rA();function t(n,r){var i;return e(n,function(s,l,u){return i=r(s,l,u),!i}),!!i}return M0=t,M0}var R0,vR;function Aae(){if(vR)return R0;vR=1;var e=f6(),t=Yr(),n=Sae(),r=_n(),i=Bp();function s(l,u,d){var f=r(l)?e:n;return d&&i(l,u,d)&&(u=void 0),f(l,t(u,3))}return R0=s,R0}var jae=Aae();const Oae=tt(jae);var Vr=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},k0,yR;function Tae(){if(yR)return k0;yR=1;var e=P6();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return k0=t,k0}var z0,xR;function Cae(){if(xR)return z0;xR=1;var e=Tae(),t=E6(),n=Yr();function r(i,s){var l={};return s=n(s,3),t(i,function(u,d,f){e(l,d,s(u,d,f))}),l}return z0=r,z0}var Eae=Cae();const _ae=tt(Eae);var L0,bR;function Pae(){if(bR)return L0;bR=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!n(t[r],r,t))return!1;return!0}return L0=e,L0}var $0,wR;function Nae(){if(wR)return $0;wR=1;var e=rA();function t(n,r){var i=!0;return e(n,function(s,l,u){return i=!!r(s,l,u),i}),i}return $0=t,$0}var B0,SR;function Dae(){if(SR)return B0;SR=1;var e=Pae(),t=Nae(),n=Yr(),r=_n(),i=Bp();function s(l,u,d){var f=r(l)?e:t;return d&&i(l,u,d)&&(u=void 0),f(l,n(u,3))}return B0=s,B0}var Mae=Dae();const vz=tt(Mae);var Rae=["x","y"];function Pu(e){"@babel/helpers - typeof";return Pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pu(e)}function Ew(){return Ew=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ew.apply(this,arguments)}function AR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AR(Object(n),!0).forEach(function(r){kae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kae(e,t,n){return t=zae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zae(e){var t=Lae(e,"string");return Pu(t)=="symbol"?t:t+""}function Lae(e,t){if(Pu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $ae(e,t){if(e==null)return{};var n=Bae(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Iae(e,t){var n=e.x,r=e.y,i=$ae(e,Rae),s="".concat(n),l=parseInt(s,10),u="".concat(r),d=parseInt(u,10),f="".concat(t.height||i.height),p=parseInt(f,10),g="".concat(t.width||i.width),v=parseInt(g,10);return Dc(Dc(Dc(Dc(Dc({},t),i),l?{x:l}:{}),d?{y:d}:{}),{},{height:p,width:v,name:t.name,radius:t.radius})}function jR(e){return B.createElement(uz,Ew({shapeType:"rectangle",propTransformer:Iae,activeClassName:"recharts-active-bar"},e))}var qae=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var s=de(r)||uF(r);return s?t(r,i):(s||vo(),n)}},Vae=["value","background"],yz;function Qs(e){"@babel/helpers - typeof";return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qs(e)}function Uae(e,t){if(e==null)return{};var n=Hae(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ep(){return ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ep.apply(this,arguments)}function OR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OR(Object(n),!0).forEach(function(r){mi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bz(r.key),r)}}function Gae(e,t,n){return t&&TR(e.prototype,t),n&&TR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kae(e,t,n){return t=tp(t),Xae(e,xz()?Reflect.construct(t,n||[],tp(e).constructor):t.apply(e,n))}function Xae(e,t){if(t&&(Qs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yae(e)}function Yae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xz=function(){return!!e})()}function tp(e){return tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tp(e)}function Wae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_w(e,t)}function _w(e,t){return _w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},_w(e,t)}function mi(e,t,n){return t=bz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bz(e){var t=Zae(e,"string");return Qs(t)=="symbol"?t:t+""}function Zae(e,t){if(Qs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var To=(function(e){function t(){var n;Fae(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Kae(this,t,[].concat(i)),mi(n,"state",{isAnimationFinished:!1}),mi(n,"id",xl("recharts-bar-")),mi(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),l&&l()}),mi(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),l&&l()}),n}return Wae(t,e),Gae(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,s=this.props,l=s.shape,u=s.dataKey,d=s.activeIndex,f=s.activeBar,p=je(this.props,!1);return r&&r.map(function(g,v){var x=v===d,A=x?f:l,w=Lt(Lt(Lt({},p),g),{},{isActive:x,option:A,index:v,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return B.createElement(Xe,ep({className:"recharts-bar-rectangle"},po(i.props,g,v),{key:"rectangle-".concat(g?.x,"-").concat(g?.y,"-").concat(g?.value,"-").concat(v)}),B.createElement(jR,w))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,s=i.data,l=i.layout,u=i.isAnimationActive,d=i.animationBegin,f=i.animationDuration,p=i.animationEasing,g=i.animationId,v=this.state.prevData;return B.createElement(Gr,{begin:d,duration:f,isActive:u,easing:p,from:{t:0},to:{t:1},key:"bar-".concat(g),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var A=x.t,w=s.map(function(S,O){var E=v&&v[O];if(E){var j=Vn(E.x,S.x),N=Vn(E.y,S.y),C=Vn(E.width,S.width),P=Vn(E.height,S.height);return Lt(Lt({},S),{},{x:j(A),y:N(A),width:C(A),height:P(A)})}if(l==="horizontal"){var D=Vn(0,S.height),M=D(A);return Lt(Lt({},S),{},{y:S.y+S.height-M,height:M})}var k=Vn(0,S.width),q=k(A);return Lt(Lt({},S),{},{width:q})});return B.createElement(Xe,null,r.renderRectanglesStatically(w))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,s=r.isAnimationActive,l=this.state.prevData;return s&&i&&i.length&&(!l||!ed(l,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,s=i.data,l=i.dataKey,u=i.activeIndex,d=je(this.props.background,!1);return s.map(function(f,p){f.value;var g=f.background,v=Uae(f,Vae);if(!g)return null;var x=Lt(Lt(Lt(Lt(Lt({},v),{},{fill:"#eee"},g),d),po(r.props,f,p)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:l,index:p,className:"recharts-bar-background-rectangle"});return B.createElement(jR,ep({key:"background-bar-".concat(p),option:r.props.background,isActive:p===u},x))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.data,u=s.xAxis,d=s.yAxis,f=s.layout,p=s.children,g=Gn(p,td);if(!g)return null;var v=f==="vertical"?l[0].height/2:l[0].width/2,x=function(S,O){var E=Array.isArray(S.value)?S.value[1]:S.value;return{x:S.x,y:S.y,value:E,errorVal:Ft(S,O)}},A={clipPath:r?"url(#clipPath-".concat(i,")"):null};return B.createElement(Xe,A,g.map(function(w){return B.cloneElement(w,{key:"error-bar-".concat(i,"-").concat(w.props.dataKey),data:l,xAxis:u,yAxis:d,layout:f,offset:v,dataPointFormatter:x})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,s=r.data,l=r.className,u=r.xAxis,d=r.yAxis,f=r.left,p=r.top,g=r.width,v=r.height,x=r.isAnimationActive,A=r.background,w=r.id;if(i||!s||!s.length)return null;var S=this.state.isAnimationFinished,O=De("recharts-bar",l),E=u&&u.allowDataOverflow,j=d&&d.allowDataOverflow,N=E||j,C=Ne(w)?this.id:w;return B.createElement(Xe,{className:O},E||j?B.createElement("defs",null,B.createElement("clipPath",{id:"clipPath-".concat(C)},B.createElement("rect",{x:E?f:f-g/2,y:j?p:p-v/2,width:E?g:g*2,height:j?v:v*2}))):null,B.createElement(Xe,{className:"recharts-bar-rectangles",clipPath:N?"url(#clipPath-".concat(C,")"):null},A?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(N,C),(!x||S)&&ja.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])})(T.PureComponent);yz=To;mi(To,"displayName","Bar");mi(To,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!So.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});mi(To,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,s=e.xAxis,l=e.yAxis,u=e.xAxisTicks,d=e.yAxisTicks,f=e.stackedData,p=e.dataStartIndex,g=e.displayedData,v=e.offset,x=OJ(r,n);if(!x)return null;var A=t.layout,w=n.type.defaultProps,S=w!==void 0?Lt(Lt({},w),n.props):n.props,O=S.dataKey,E=S.children,j=S.minPointSize,N=A==="horizontal"?l:s,C=f?N.scale.domain():null,P=DJ({numericAxis:N}),D=Gn(E,Ip),M=g.map(function(k,q){var L,U,X,J,W,z;f?L=TJ(f[p+q],C):(L=Ft(k,O),Array.isArray(L)||(L=[P,L]));var H=qae(j,yz.defaultProps.minPointSize)(L[1],q);if(A==="horizontal"){var F,ie=[l.scale(L[0]),l.scale(L[1])],ue=ie[0],$=ie[1];U=ZD({axis:s,ticks:u,bandSize:i,offset:x.offset,entry:k,index:q}),X=(F=$??ue)!==null&&F!==void 0?F:void 0,J=x.size;var G=ue-$;if(W=Number.isNaN(G)?0:G,z={x:U,y:l.y,width:J,height:l.height},Math.abs(H)>0&&Math.abs(W)<Math.abs(H)){var te=mn(W||H)*(Math.abs(H)-Math.abs(W));X-=te,W+=te}}else{var le=[s.scale(L[0]),s.scale(L[1])],fe=le[0],Se=le[1];if(U=fe,X=ZD({axis:l,ticks:d,bandSize:i,offset:x.offset,entry:k,index:q}),J=Se-fe,W=x.size,z={x:s.x,y:X,width:s.width,height:W},Math.abs(H)>0&&Math.abs(J)<Math.abs(H)){var be=mn(J||H)*(Math.abs(H)-Math.abs(J));J+=be}}return Lt(Lt(Lt({},k),{},{x:U,y:X,width:J,height:W,value:f?L:L[1],payload:k,background:z},D&&D[q]&&D[q].props),{},{tooltipPayload:[G8(n,k)],tooltipPosition:{x:U+J/2,y:X+W/2}})});return Lt({data:M,layout:A},v)});function Nu(e){"@babel/helpers - typeof";return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(e)}function Qae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wz(r.key),r)}}function Jae(e,t,n){return t&&CR(e.prototype,t),n&&CR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ER(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ER(Object(n),!0).forEach(function(r){im(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ER(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function im(e,t,n){return t=wz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wz(e){var t=eie(e,"string");return Nu(t)=="symbol"?t:t+""}function eie(e,t){if(Nu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sz=function(t,n,r,i,s){var l=t.width,u=t.height,d=t.layout,f=t.children,p=Object.keys(n),g={left:r.left,leftMirror:r.left,right:l-r.right,rightMirror:l-r.right,top:r.top,topMirror:r.top,bottom:u-r.bottom,bottomMirror:u-r.bottom},v=!!qn(f,To);return p.reduce(function(x,A){var w=n[A],S=w.orientation,O=w.domain,E=w.padding,j=E===void 0?{}:E,N=w.mirror,C=w.reversed,P="".concat(S).concat(N?"Mirror":""),D,M,k,q,L;if(w.type==="number"&&(w.padding==="gap"||w.padding==="no-gap")){var U=O[1]-O[0],X=1/0,J=w.categoricalDomain.sort(hF);if(J.forEach(function(le,fe){fe>0&&(X=Math.min((le||0)-(J[fe-1]||0),X))}),Number.isFinite(X)){var W=X/U,z=w.layout==="vertical"?r.height:r.width;if(w.padding==="gap"&&(D=W*z/2),w.padding==="no-gap"){var H=gn(t.barCategoryGap,W*z),F=W*z/2;D=F-H-(F-H)/z*H}}}i==="xAxis"?M=[r.left+(j.left||0)+(D||0),r.left+r.width-(j.right||0)-(D||0)]:i==="yAxis"?M=d==="horizontal"?[r.top+r.height-(j.bottom||0),r.top+(j.top||0)]:[r.top+(j.top||0)+(D||0),r.top+r.height-(j.bottom||0)-(D||0)]:M=w.range,C&&(M=[M[1],M[0]]);var ie=V8(w,s,v),ue=ie.scale,$=ie.realScaleType;ue.domain(O).range(M),U8(ue);var G=H8(ue,Tr(Tr({},w),{},{realScaleType:$}));i==="xAxis"?(L=S==="top"&&!N||S==="bottom"&&N,k=r.left,q=g[P]-L*w.height):i==="yAxis"&&(L=S==="left"&&!N||S==="right"&&N,k=g[P]-L*w.width,q=r.top);var te=Tr(Tr(Tr({},w),G),{},{realScaleType:$,x:k,y:q,scale:ue,width:i==="xAxis"?r.width:w.width,height:i==="yAxis"?r.height:w.height});return te.bandSize=$h(te,G),!w.hide&&i==="xAxis"?g[P]+=(L?-1:1)*te.height:w.hide||(g[P]+=(L?-1:1)*te.width),Tr(Tr({},x),{},im({},A,te))},{})},Az=function(t,n){var r=t.x,i=t.y,s=n.x,l=n.y;return{x:Math.min(r,s),y:Math.min(i,l),width:Math.abs(s-r),height:Math.abs(l-i)}},tie=function(t){var n=t.x1,r=t.y1,i=t.x2,s=t.y2;return Az({x:n,y:r},{x:i,y:s})},jz=(function(){function e(t){Qae(this,e),this.scale=t}return Jae(e,[{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(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,s=r.position;if(n!==void 0){if(s)switch(s){case"start":return this.scale(n);case"middle":{var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(n)+u}default:return this.scale(n)}if(i){var d=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+d}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],s=r[r.length-1];return i<=s?n>=i&&n<=s:n>=s&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])})();im(jz,"EPS",1e-4);var DA=function(t){var n=Object.keys(t).reduce(function(r,i){return Tr(Tr({},r),{},im({},i,jz.create(t[i])))},{});return Tr(Tr({},n),{},{apply:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.bandAware,u=s.position;return _ae(i,function(d,f){return n[f].apply(d,{bandAware:l,position:u})})},isInRange:function(i){return vz(i,function(s,l){return n[l].isInRange(s)})}})};function nie(e){return(e%180+180)%180}var rie=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=nie(i),l=s*Math.PI/180,u=Math.atan(r/n),d=l>u&&l<Math.PI-u?r/Math.sin(l):n/Math.cos(l);return Math.abs(d)},I0,_R;function aie(){if(_R)return I0;_R=1;var e=Yr(),t=Yu(),n=Lp();function r(i){return function(s,l,u){var d=Object(s);if(!t(s)){var f=e(l,3);s=n(s),l=function(g){return f(d[g],g,d)}}var p=i(s,l,u);return p>-1?d[f?s[p]:p]:void 0}}return I0=r,I0}var q0,PR;function iie(){if(PR)return q0;PR=1;var e=hz();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return q0=t,q0}var V0,NR;function oie(){if(NR)return V0;NR=1;var e=A6(),t=Yr(),n=iie(),r=Math.max;function i(s,l,u){var d=s==null?0:s.length;if(!d)return-1;var f=u==null?0:n(u);return f<0&&(f=r(d+f,0)),e(s,t(l,3),f)}return V0=i,V0}var U0,DR;function sie(){if(DR)return U0;DR=1;var e=aie(),t=oie(),n=e(t);return U0=n,U0}var lie=sie();const cie=tt(lie);var uie=B5();const die=tt(uie);var fie=die(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),MA=T.createContext(void 0),RA=T.createContext(void 0),Oz=T.createContext(void 0),Tz=T.createContext({}),Cz=T.createContext(void 0),Ez=T.createContext(0),_z=T.createContext(0),MR=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,s=n.offset,l=t.clipPathId,u=t.children,d=t.width,f=t.height,p=fie(s);return B.createElement(MA.Provider,{value:r},B.createElement(RA.Provider,{value:i},B.createElement(Tz.Provider,{value:s},B.createElement(Oz.Provider,{value:p},B.createElement(Cz.Provider,{value:l},B.createElement(Ez.Provider,{value:f},B.createElement(_z.Provider,{value:d},u)))))))},hie=function(){return T.useContext(Cz)},Pz=function(t){var n=T.useContext(MA);n==null&&vo();var r=n[t];return r==null&&vo(),r},pie=function(){var t=T.useContext(MA);return pi(t)},mie=function(){var t=T.useContext(RA),n=cie(t,function(r){return vz(r.domain,Number.isFinite)});return n||pi(t)},Nz=function(t){var n=T.useContext(RA);n==null&&vo();var r=n[t];return r==null&&vo(),r},gie=function(){var t=T.useContext(Oz);return t},vie=function(){return T.useContext(Tz)},kA=function(){return T.useContext(_z)},zA=function(){return T.useContext(Ez)};function Js(e){"@babel/helpers - typeof";return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Js(e)}function yie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mz(r.key),r)}}function bie(e,t,n){return t&&xie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wie(e,t,n){return t=np(t),Sie(e,Dz()?Reflect.construct(t,n||[],np(e).constructor):t.apply(e,n))}function Sie(e,t){if(t&&(Js(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aie(e)}function Aie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dz=function(){return!!e})()}function np(e){return np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},np(e)}function jie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pw(e,t)}function Pw(e,t){return Pw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Pw(e,t)}function RR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RR(Object(n),!0).forEach(function(r){LA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LA(e,t,n){return t=Mz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mz(e){var t=Oie(e,"string");return Js(t)=="symbol"?t:t+""}function Oie(e,t){if(Js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Tie(e,t){return Pie(e)||_ie(e,t)||Eie(e,t)||Cie()}function Cie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eie(e,t){if(e){if(typeof e=="string")return zR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zR(e,t)}}function zR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _ie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function Pie(e){if(Array.isArray(e))return e}function Nw(){return Nw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nw.apply(this,arguments)}var Nie=function(t,n){var r;return B.isValidElement(t)?r=B.cloneElement(t,n):_e(t)?r=t(n):r=B.createElement("line",Nw({},n,{className:"recharts-reference-line-line"})),r},Die=function(t,n,r,i,s,l,u,d,f){var p=s.x,g=s.y,v=s.width,x=s.height;if(r){var A=f.y,w=t.y.apply(A,{position:l});if(Vr(f,"discard")&&!t.y.isInRange(w))return null;var S=[{x:p+v,y:w},{x:p,y:w}];return d==="left"?S.reverse():S}if(n){var O=f.x,E=t.x.apply(O,{position:l});if(Vr(f,"discard")&&!t.x.isInRange(E))return null;var j=[{x:E,y:g+x},{x:E,y:g}];return u==="top"?j.reverse():j}if(i){var N=f.segment,C=N.map(function(P){return t.apply(P,{position:l})});return Vr(f,"discard")&&Oae(C,function(P){return!t.isInRange(P)})?null:C}return null};function Mie(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,s=e.yAxisId,l=e.shape,u=e.className,d=e.alwaysShow,f=hie(),p=Pz(i),g=Nz(s),v=gie();if(!f||!v)return null;_r(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=DA({x:p.scale,y:g.scale}),A=Gt(t),w=Gt(n),S=r&&r.length===2,O=Die(x,A,w,S,v,e.position,p.orientation,g.orientation,e);if(!O)return null;var E=Tie(O,2),j=E[0],N=j.x,C=j.y,P=E[1],D=P.x,M=P.y,k=Vr(e,"hidden")?"url(#".concat(f,")"):void 0,q=kR(kR({clipPath:k},je(e,!0)),{},{x1:N,y1:C,x2:D,y2:M});return B.createElement(Xe,{className:De("recharts-reference-line",u)},Nie(l,q),Zt.renderCallByParent(e,tie({x1:N,y1:C,x2:D,y2:M})))}var $A=(function(e){function t(){return yie(this,t),wie(this,t,arguments)}return jie(t,e),bie(t,[{key:"render",value:function(){return B.createElement(Mie,this.props)}}])})(B.Component);LA($A,"displayName","ReferenceLine");LA($A,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Dw(){return Dw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dw.apply(this,arguments)}function el(e){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}function LR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $R(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LR(Object(n),!0).forEach(function(r){om(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kz(r.key),r)}}function zie(e,t,n){return t&&kie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lie(e,t,n){return t=rp(t),$ie(e,Rz()?Reflect.construct(t,n||[],rp(e).constructor):t.apply(e,n))}function $ie(e,t){if(t&&(el(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bie(e)}function Bie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rz=function(){return!!e})()}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rp(e)}function Iie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mw(e,t)}function Mw(e,t){return Mw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Mw(e,t)}function om(e,t,n){return t=kz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kz(e){var t=qie(e,"string");return el(t)=="symbol"?t:t+""}function qie(e,t){if(el(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(el(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Vie=function(t){var n=t.x,r=t.y,i=t.xAxis,s=t.yAxis,l=DA({x:i.scale,y:s.scale}),u=l.apply({x:n,y:r},{bandAware:!0});return Vr(t,"discard")&&!l.isInRange(u)?null:u},sm=(function(e){function t(){return Rie(this,t),Lie(this,t,arguments)}return Iie(t,e),zie(t,[{key:"render",value:function(){var r=this.props,i=r.x,s=r.y,l=r.r,u=r.alwaysShow,d=r.clipPathId,f=Gt(i),p=Gt(s);if(_r(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!f||!p)return null;var g=Vie(this.props);if(!g)return null;var v=g.x,x=g.y,A=this.props,w=A.shape,S=A.className,O=Vr(this.props,"hidden")?"url(#".concat(d,")"):void 0,E=$R($R({clipPath:O},je(this.props,!0)),{},{cx:v,cy:x});return B.createElement(Xe,{className:De("recharts-reference-dot",S)},t.renderDot(w,E),Zt.renderCallByParent(this.props,{x:v-l,y:x-l,width:2*l,height:2*l}))}}])})(B.Component);om(sm,"displayName","ReferenceDot");om(sm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});om(sm,"renderDot",function(e,t){var n;return B.isValidElement(e)?n=B.cloneElement(e,t):_e(e)?n=e(t):n=B.createElement(Qp,Dw({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function Rw(){return Rw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rw.apply(this,arguments)}function tl(e){"@babel/helpers - typeof";return tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tl(e)}function BR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function IR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BR(Object(n),!0).forEach(function(r){lm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lz(r.key),r)}}function Fie(e,t,n){return t&&Hie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gie(e,t,n){return t=ap(t),Kie(e,zz()?Reflect.construct(t,n||[],ap(e).constructor):t.apply(e,n))}function Kie(e,t){if(t&&(tl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xie(e)}function Xie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zz=function(){return!!e})()}function ap(e){return ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ap(e)}function Yie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kw(e,t)}function kw(e,t){return kw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},kw(e,t)}function lm(e,t,n){return t=Lz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lz(e){var t=Wie(e,"string");return tl(t)=="symbol"?t:t+""}function Wie(e,t){if(tl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Zie=function(t,n,r,i,s){var l=s.x1,u=s.x2,d=s.y1,f=s.y2,p=s.xAxis,g=s.yAxis;if(!p||!g)return null;var v=DA({x:p.scale,y:g.scale}),x={x:t?v.x.apply(l,{position:"start"}):v.x.rangeMin,y:r?v.y.apply(d,{position:"start"}):v.y.rangeMin},A={x:n?v.x.apply(u,{position:"end"}):v.x.rangeMax,y:i?v.y.apply(f,{position:"end"}):v.y.rangeMax};return Vr(s,"discard")&&(!v.isInRange(x)||!v.isInRange(A))?null:Az(x,A)},cm=(function(e){function t(){return Uie(this,t),Gie(this,t,arguments)}return Yie(t,e),Fie(t,[{key:"render",value:function(){var r=this.props,i=r.x1,s=r.x2,l=r.y1,u=r.y2,d=r.className,f=r.alwaysShow,p=r.clipPathId;_r(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var g=Gt(i),v=Gt(s),x=Gt(l),A=Gt(u),w=this.props.shape;if(!g&&!v&&!x&&!A&&!w)return null;var S=Zie(g,v,x,A,this.props);if(!S&&!w)return null;var O=Vr(this.props,"hidden")?"url(#".concat(p,")"):void 0;return B.createElement(Xe,{className:De("recharts-reference-area",d)},t.renderRect(w,IR(IR({clipPath:O},je(this.props,!0)),S)),Zt.renderCallByParent(this.props,S))}}])})(B.Component);lm(cm,"displayName","ReferenceArea");lm(cm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});lm(cm,"renderRect",function(e,t){var n;return B.isValidElement(e)?n=B.cloneElement(e,t):_e(e)?n=e(t):n=B.createElement(NA,Rw({},t,{className:"recharts-reference-area-rect"})),n});function $z(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function Qie(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return rie(r,n)}function Jie(e,t,n){var r=n==="width",i=e.x,s=e.y,l=e.width,u=e.height;return t===1?{start:r?i:s,end:r?i+l:s+u}:{start:r?i+l:s+u,end:r?i:s}}function ip(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var s=n();return e*(t-e*s/2-r)>=0&&e*(t+e*s/2-i)<=0}function eoe(e,t){return $z(e,t+1)}function toe(e,t,n,r,i){for(var s=(r||[]).slice(),l=t.start,u=t.end,d=0,f=1,p=l,g=function(){var A=r?.[d];if(A===void 0)return{v:$z(r,f)};var w=d,S,O=function(){return S===void 0&&(S=n(A,w)),S},E=A.coordinate,j=d===0||ip(e,E,O,p,u);j||(d=0,p=l,f+=1),j&&(p=E+e*(O()/2+i),d+=f)},v;f<=s.length;)if(v=g(),v)return v.v;return[]}function Du(e){"@babel/helpers - typeof";return Du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Du(e)}function qR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qR(Object(n),!0).forEach(function(r){noe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function noe(e,t,n){return t=roe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function roe(e){var t=aoe(e,"string");return Du(t)=="symbol"?t:t+""}function aoe(e,t){if(Du(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Du(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ioe(e,t,n,r,i){for(var s=(r||[]).slice(),l=s.length,u=t.start,d=t.end,f=function(v){var x=s[v],A,w=function(){return A===void 0&&(A=n(x,v)),A};if(v===l-1){var S=e*(x.coordinate+e*w()/2-d);s[v]=x=un(un({},x),{},{tickCoord:S>0?x.coordinate-S*e:x.coordinate})}else s[v]=x=un(un({},x),{},{tickCoord:x.coordinate});var O=ip(e,x.tickCoord,w,u,d);O&&(d=x.tickCoord-e*(w()/2+i),s[v]=un(un({},x),{},{isShow:!0}))},p=l-1;p>=0;p--)f(p);return s}function ooe(e,t,n,r,i,s){var l=(r||[]).slice(),u=l.length,d=t.start,f=t.end;if(s){var p=r[u-1],g=n(p,u-1),v=e*(p.coordinate+e*g/2-f);l[u-1]=p=un(un({},p),{},{tickCoord:v>0?p.coordinate-v*e:p.coordinate});var x=ip(e,p.tickCoord,function(){return g},d,f);x&&(f=p.tickCoord-e*(g/2+i),l[u-1]=un(un({},p),{},{isShow:!0}))}for(var A=s?u-1:u,w=function(E){var j=l[E],N,C=function(){return N===void 0&&(N=n(j,E)),N};if(E===0){var P=e*(j.coordinate-e*C()/2-d);l[E]=j=un(un({},j),{},{tickCoord:P<0?j.coordinate-P*e:j.coordinate})}else l[E]=j=un(un({},j),{},{tickCoord:j.coordinate});var D=ip(e,j.tickCoord,C,d,f);D&&(d=j.tickCoord+e*(C()/2+i),l[E]=un(un({},j),{},{isShow:!0}))},S=0;S<A;S++)w(S);return l}function BA(e,t,n){var r=e.tick,i=e.ticks,s=e.viewBox,l=e.minTickGap,u=e.orientation,d=e.interval,f=e.tickFormatter,p=e.unit,g=e.angle;if(!i||!i.length||!r)return[];if(de(d)||So.isSsr)return eoe(i,typeof d=="number"&&de(d)?d:0);var v=[],x=u==="top"||u==="bottom"?"width":"height",A=p&&x==="width"?Ic(p,{fontSize:t,letterSpacing:n}):{width:0,height:0},w=function(j,N){var C=_e(f)?f(j.value,N):j.value;return x==="width"?Qie(Ic(C,{fontSize:t,letterSpacing:n}),A,g):Ic(C,{fontSize:t,letterSpacing:n})[x]},S=i.length>=2?mn(i[1].coordinate-i[0].coordinate):1,O=Jie(s,S,x);return d==="equidistantPreserveStart"?toe(S,O,w,i,l):(d==="preserveStart"||d==="preserveStartEnd"?v=ooe(S,O,w,i,l,d==="preserveStartEnd"):v=ioe(S,O,w,i,l),v.filter(function(E){return E.isShow}))}var soe=["viewBox"],loe=["viewBox"],coe=["ticks"];function nl(e){"@babel/helpers - typeof";return nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ss.apply(this,arguments)}function VR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VR(Object(n),!0).forEach(function(r){IA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function H0(e,t){if(e==null)return{};var n=uoe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uoe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function doe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Iz(r.key),r)}}function foe(e,t,n){return t&&UR(e.prototype,t),n&&UR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hoe(e,t,n){return t=op(t),poe(e,Bz()?Reflect.construct(t,n||[],op(e).constructor):t.apply(e,n))}function poe(e,t){if(t&&(nl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return moe(e)}function moe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bz=function(){return!!e})()}function op(e){return op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},op(e)}function goe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zw(e,t)}function zw(e,t){return zw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zw(e,t)}function IA(e,t,n){return t=Iz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iz(e){var t=voe(e,"string");return nl(t)=="symbol"?t:t+""}function voe(e,t){if(nl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jl=(function(e){function t(n){var r;return doe(this,t),r=hoe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return goe(t,e),foe(t,[{key:"shouldComponentUpdate",value:function(r,i){var s=r.viewBox,l=H0(r,soe),u=this.props,d=u.viewBox,f=H0(u,loe);return!Ns(s,d)||!Ns(l,f)||!Ns(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,s=i.x,l=i.y,u=i.width,d=i.height,f=i.orientation,p=i.tickSize,g=i.mirror,v=i.tickMargin,x,A,w,S,O,E,j=g?-1:1,N=r.tickSize||p,C=de(r.tickCoord)?r.tickCoord:r.coordinate;switch(f){case"top":x=A=r.coordinate,S=l+ +!g*d,w=S-j*N,E=w-j*v,O=C;break;case"left":w=S=r.coordinate,A=s+ +!g*u,x=A-j*N,O=x-j*v,E=C;break;case"right":w=S=r.coordinate,A=s+ +g*u,x=A+j*N,O=x+j*v,E=C;break;default:x=A=r.coordinate,S=l+ +g*d,w=S+j*N,E=w+j*v,O=C;break}return{line:{x1:x,y1:w,x2:A,y2:S},tick:{x:O,y:E}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,s=r.mirror,l;switch(i){case"left":l=s?"start":"end";break;case"right":l=s?"end":"start";break;default:l="middle";break}return l}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,s=r.mirror,l="end";switch(i){case"left":case"right":l="middle";break;case"top":l=s?"start":"end";break;default:l=s?"end":"start";break}return l}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,s=r.y,l=r.width,u=r.height,d=r.orientation,f=r.mirror,p=r.axisLine,g=Ut(Ut(Ut({},je(this.props,!1)),je(p,!1)),{},{fill:"none"});if(d==="top"||d==="bottom"){var v=+(d==="top"&&!f||d==="bottom"&&f);g=Ut(Ut({},g),{},{x1:i,y1:s+v*u,x2:i+l,y2:s+v*u})}else{var x=+(d==="left"&&!f||d==="right"&&f);g=Ut(Ut({},g),{},{x1:i+x*l,y1:s,x2:i+x*l,y2:s+u})}return B.createElement("line",Ss({},g,{className:De("recharts-cartesian-axis-line",Fn(p,"className"))}))}},{key:"renderTicks",value:function(r,i,s){var l=this,u=this.props,d=u.tickLine,f=u.stroke,p=u.tick,g=u.tickFormatter,v=u.unit,x=BA(Ut(Ut({},this.props),{},{ticks:r}),i,s),A=this.getTickTextAnchor(),w=this.getTickVerticalAnchor(),S=je(this.props,!1),O=je(p,!1),E=Ut(Ut({},S),{},{fill:"none"},je(d,!1)),j=x.map(function(N,C){var P=l.getTickLineCoord(N),D=P.line,M=P.tick,k=Ut(Ut(Ut(Ut({textAnchor:A,verticalAnchor:w},S),{},{stroke:"none",fill:f},O),M),{},{index:C,payload:N,visibleTicksCount:x.length,tickFormatter:g});return B.createElement(Xe,Ss({className:"recharts-cartesian-axis-tick",key:"tick-".concat(N.value,"-").concat(N.coordinate,"-").concat(N.tickCoord)},po(l.props,N,C)),d&&B.createElement("line",Ss({},E,D,{className:De("recharts-cartesian-axis-tick-line",Fn(d,"className"))})),p&&t.renderTickItem(p,k,"".concat(_e(g)?g(N.value,C):N.value).concat(v||"")))});return B.createElement("g",{className:"recharts-cartesian-axis-ticks"},j)}},{key:"render",value:function(){var r=this,i=this.props,s=i.axisLine,l=i.width,u=i.height,d=i.ticksGenerator,f=i.className,p=i.hide;if(p)return null;var g=this.props,v=g.ticks,x=H0(g,coe),A=v;return _e(d)&&(A=v&&v.length>0?d(this.props):d(x)),l<=0||u<=0||!A||!A.length?null:B.createElement(Xe,{className:De("recharts-cartesian-axis",f),ref:function(S){r.layerReference=S}},s&&this.renderAxisLine(),this.renderTicks(A,this.state.fontSize,this.state.letterSpacing),Zt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,s){var l,u=De(i.className,"recharts-cartesian-axis-tick-value");return B.isValidElement(r)?l=B.cloneElement(r,Ut(Ut({},i),{},{className:u})):_e(r)?l=r(Ut(Ut({},i),{},{className:u})):l=B.createElement(mo,Ss({},i,{className:"recharts-cartesian-axis-tick-value"}),s),l}}])})(T.Component);IA(jl,"displayName","CartesianAxis");IA(jl,"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 yoe=["x1","y1","x2","y2","key"],xoe=["offset"];function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(e)}function HR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HR(Object(n),!0).forEach(function(r){boe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function boe(e,t,n){return t=woe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function woe(e){var t=Soe(e,"string");return yo(t)=="symbol"?t:t+""}function Soe(e,t){if(yo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},no.apply(this,arguments)}function FR(e,t){if(e==null)return{};var n=Aoe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Aoe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var joe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,s=t.y,l=t.width,u=t.height,d=t.ry;return B.createElement("rect",{x:i,y:s,ry:d,width:l,height:u,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function qz(e,t){var n;if(B.isValidElement(e))n=B.cloneElement(e,t);else if(_e(e))n=e(t);else{var r=t.x1,i=t.y1,s=t.x2,l=t.y2,u=t.key,d=FR(t,yoe),f=je(d,!1);f.offset;var p=FR(f,xoe);n=B.createElement("line",no({},p,{x1:r,y1:i,x2:s,y2:l,fill:"none",key:u}))}return n}function Ooe(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,s=e.horizontalPoints;if(!i||!s||!s.length)return null;var l=s.map(function(u,d){var f=dn(dn({},e),{},{x1:t,y1:u,x2:t+n,y2:u,key:"line-".concat(d),index:d});return qz(i,f)});return B.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function Toe(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,s=e.verticalPoints;if(!i||!s||!s.length)return null;var l=s.map(function(u,d){var f=dn(dn({},e),{},{x1:u,y1:t,x2:u,y2:t+n,key:"line-".concat(d),index:d});return qz(i,f)});return B.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function Coe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,s=e.width,l=e.height,u=e.horizontalPoints,d=e.horizontal,f=d===void 0?!0:d;if(!f||!t||!t.length)return null;var p=u.map(function(v){return Math.round(v+i-i)}).sort(function(v,x){return v-x});i!==p[0]&&p.unshift(0);var g=p.map(function(v,x){var A=!p[x+1],w=A?i+l-v:p[x+1]-v;if(w<=0)return null;var S=x%t.length;return B.createElement("rect",{key:"react-".concat(x),y:v,x:r,height:w,width:s,stroke:"none",fill:t[S],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return B.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},g)}function Eoe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,s=e.x,l=e.y,u=e.width,d=e.height,f=e.verticalPoints;if(!n||!r||!r.length)return null;var p=f.map(function(v){return Math.round(v+s-s)}).sort(function(v,x){return v-x});s!==p[0]&&p.unshift(0);var g=p.map(function(v,x){var A=!p[x+1],w=A?s+u-v:p[x+1]-v;if(w<=0)return null;var S=x%r.length;return B.createElement("rect",{key:"react-".concat(x),x:v,y:l,width:w,height:d,stroke:"none",fill:r[S],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return B.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},g)}var _oe=function(t,n){var r=t.xAxis,i=t.width,s=t.height,l=t.offset;return q8(BA(dn(dn(dn({},jl.defaultProps),r),{},{ticks:wa(r,!0),viewBox:{x:0,y:0,width:i,height:s}})),l.left,l.left+l.width,n)},Poe=function(t,n){var r=t.yAxis,i=t.width,s=t.height,l=t.offset;return q8(BA(dn(dn(dn({},jl.defaultProps),r),{},{ticks:wa(r,!0),viewBox:{x:0,y:0,width:i,height:s}})),l.top,l.top+l.height,n)},vs={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Lw(e){var t,n,r,i,s,l,u=kA(),d=zA(),f=vie(),p=dn(dn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:vs.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:vs.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:vs.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:vs.horizontalFill,vertical:(s=e.vertical)!==null&&s!==void 0?s:vs.vertical,verticalFill:(l=e.verticalFill)!==null&&l!==void 0?l:vs.verticalFill,x:de(e.x)?e.x:f.left,y:de(e.y)?e.y:f.top,width:de(e.width)?e.width:f.width,height:de(e.height)?e.height:f.height}),g=p.x,v=p.y,x=p.width,A=p.height,w=p.syncWithTicks,S=p.horizontalValues,O=p.verticalValues,E=pie(),j=mie();if(!de(x)||x<=0||!de(A)||A<=0||!de(g)||g!==+g||!de(v)||v!==+v)return null;var N=p.verticalCoordinatesGenerator||_oe,C=p.horizontalCoordinatesGenerator||Poe,P=p.horizontalPoints,D=p.verticalPoints;if((!P||!P.length)&&_e(C)){var M=S&&S.length,k=C({yAxis:j?dn(dn({},j),{},{ticks:M?S:j.ticks}):void 0,width:u,height:d,offset:f},M?!0:w);_r(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(yo(k),"]")),Array.isArray(k)&&(P=k)}if((!D||!D.length)&&_e(N)){var q=O&&O.length,L=N({xAxis:E?dn(dn({},E),{},{ticks:q?O:E.ticks}):void 0,width:u,height:d,offset:f},q?!0:w);_r(Array.isArray(L),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(yo(L),"]")),Array.isArray(L)&&(D=L)}return B.createElement("g",{className:"recharts-cartesian-grid"},B.createElement(joe,{fill:p.fill,fillOpacity:p.fillOpacity,x:p.x,y:p.y,width:p.width,height:p.height,ry:p.ry}),B.createElement(Ooe,no({},p,{offset:f,horizontalPoints:P,xAxis:E,yAxis:j})),B.createElement(Toe,no({},p,{offset:f,verticalPoints:D,xAxis:E,yAxis:j})),B.createElement(Coe,no({},p,{horizontalPoints:P})),B.createElement(Eoe,no({},p,{verticalPoints:D})))}Lw.displayName="CartesianGrid";var Noe=["type","layout","connectNulls","ref"],Doe=["key"];function rl(e){"@babel/helpers - typeof";return rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rl(e)}function GR(e,t){if(e==null)return{};var n=Moe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Moe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Gc(){return Gc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gc.apply(this,arguments)}function KR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KR(Object(n),!0).forEach(function(r){Cr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ys(e){return Loe(e)||zoe(e)||koe(e)||Roe()}function Roe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function koe(e,t){if(e){if(typeof e=="string")return $w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $w(e,t)}}function zoe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Loe(e){if(Array.isArray(e))return $w(e)}function $w(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Uz(r.key),r)}}function Boe(e,t,n){return t&&XR(e.prototype,t),n&&XR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ioe(e,t,n){return t=sp(t),qoe(e,Vz()?Reflect.construct(t,n||[],sp(e).constructor):t.apply(e,n))}function qoe(e,t){if(t&&(rl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Voe(e)}function Voe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vz=function(){return!!e})()}function sp(e){return sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sp(e)}function Uoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bw(e,t)}function Bw(e,t){return Bw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Bw(e,t)}function Cr(e,t,n){return t=Uz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uz(e){var t=Hoe(e,"string");return rl(t)=="symbol"?t:t+""}function Hoe(e,t){if(rl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nd=(function(e){function t(){var n;$oe(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Ioe(this,t,[].concat(i)),Cr(n,"state",{isAnimationFinished:!0,totalLength:0}),Cr(n,"generateSimpleStrokeDasharray",function(l,u){return"".concat(u,"px ").concat(l-u,"px")}),Cr(n,"getStrokeDasharray",function(l,u,d){var f=d.reduce(function(O,E){return O+E});if(!f)return n.generateSimpleStrokeDasharray(u,l);for(var p=Math.floor(l/f),g=l%f,v=u-l,x=[],A=0,w=0;A<d.length;w+=d[A],++A)if(w+d[A]>g){x=[].concat(ys(d.slice(0,A)),[g-w]);break}var S=x.length%2===0?[0,v]:[v];return[].concat(ys(t.repeat(d,p)),ys(x),S).map(function(O){return"".concat(O,"px")}).join(", ")}),Cr(n,"id",xl("recharts-line-")),Cr(n,"pathRef",function(l){n.mainCurve=l}),Cr(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Cr(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Uoe(t,e),Boe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.points,u=s.xAxis,d=s.yAxis,f=s.layout,p=s.children,g=Gn(p,td);if(!g)return null;var v=function(w,S){return{x:w.x,y:w.y,value:w.value,errorVal:Ft(w.payload,S)}},x={clipPath:r?"url(#clipPath-".concat(i,")"):null};return B.createElement(Xe,x,g.map(function(A){return B.cloneElement(A,{key:"bar-".concat(A.props.dataKey),data:l,xAxis:u,yAxis:d,layout:f,dataPointFormatter:v})}))}},{key:"renderDots",value:function(r,i,s){var l=this.props.isAnimationActive;if(l&&!this.state.isAnimationFinished)return null;var u=this.props,d=u.dot,f=u.points,p=u.dataKey,g=je(this.props,!1),v=je(d,!0),x=f.map(function(w,S){var O=Bn(Bn(Bn({key:"dot-".concat(S),r:3},g),v),{},{index:S,cx:w.x,cy:w.y,value:w.value,dataKey:p,payload:w.payload,points:f});return t.renderDotItem(d,O)}),A={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(s,")"):null};return B.createElement(Xe,Gc({className:"recharts-line-dots",key:"dots"},A),x)}},{key:"renderCurveStatically",value:function(r,i,s,l){var u=this.props,d=u.type,f=u.layout,p=u.connectNulls;u.ref;var g=GR(u,Noe),v=Bn(Bn(Bn({},je(g,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(s,")"):null,points:r},l),{},{type:d,layout:f,connectNulls:p});return B.createElement(qh,Gc({},v,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var s=this,l=this.props,u=l.points,d=l.strokeDasharray,f=l.isAnimationActive,p=l.animationBegin,g=l.animationDuration,v=l.animationEasing,x=l.animationId,A=l.animateNewValues,w=l.width,S=l.height,O=this.state,E=O.prevPoints,j=O.totalLength;return B.createElement(Gr,{begin:p,duration:g,isActive:f,easing:v,from:{t:0},to:{t:1},key:"line-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(N){var C=N.t;if(E){var P=E.length/u.length,D=u.map(function(U,X){var J=Math.floor(X*P);if(E[J]){var W=E[J],z=Vn(W.x,U.x),H=Vn(W.y,U.y);return Bn(Bn({},U),{},{x:z(C),y:H(C)})}if(A){var F=Vn(w*2,U.x),ie=Vn(S/2,U.y);return Bn(Bn({},U),{},{x:F(C),y:ie(C)})}return Bn(Bn({},U),{},{x:U.x,y:U.y})});return s.renderCurveStatically(D,r,i)}var M=Vn(0,j),k=M(C),q;if(d){var L="".concat(d).split(/[,\s]+/gim).map(function(U){return parseFloat(U)});q=s.getStrokeDasharray(k,j,L)}else q=s.generateSimpleStrokeDasharray(j,k);return s.renderCurveStatically(u,r,i,{strokeDasharray:q})})}},{key:"renderCurve",value:function(r,i){var s=this.props,l=s.points,u=s.isAnimationActive,d=this.state,f=d.prevPoints,p=d.totalLength;return u&&l&&l.length&&(!f&&p>0||!ed(f,l))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(l,r,i)}},{key:"render",value:function(){var r,i=this.props,s=i.hide,l=i.dot,u=i.points,d=i.className,f=i.xAxis,p=i.yAxis,g=i.top,v=i.left,x=i.width,A=i.height,w=i.isAnimationActive,S=i.id;if(s||!u||!u.length)return null;var O=this.state.isAnimationFinished,E=u.length===1,j=De("recharts-line",d),N=f&&f.allowDataOverflow,C=p&&p.allowDataOverflow,P=N||C,D=Ne(S)?this.id:S,M=(r=je(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},k=M.r,q=k===void 0?3:k,L=M.strokeWidth,U=L===void 0?2:L,X=SF(l)?l:{},J=X.clipDot,W=J===void 0?!0:J,z=q*2+U;return B.createElement(Xe,{className:j},N||C?B.createElement("defs",null,B.createElement("clipPath",{id:"clipPath-".concat(D)},B.createElement("rect",{x:N?v:v-x/2,y:C?g:g-A/2,width:N?x:x*2,height:C?A:A*2})),!W&&B.createElement("clipPath",{id:"clipPath-dots-".concat(D)},B.createElement("rect",{x:v-z/2,y:g-z/2,width:x+z,height:A+z}))):null,!E&&this.renderCurve(P,D),this.renderErrorBar(P,D),(E||l)&&this.renderDots(P,W,D),(!w||O)&&ja.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var s=r.length%2!==0?[].concat(ys(r),[0]):r,l=[],u=0;u<i;++u)l=[].concat(ys(l),ys(s));return l}},{key:"renderDotItem",value:function(r,i){var s;if(B.isValidElement(r))s=B.cloneElement(r,i);else if(_e(r))s=r(i);else{var l=i.key,u=GR(i,Doe),d=De("recharts-line-dot",typeof r!="boolean"?r.className:"");s=B.createElement(Qp,Gc({key:l},u,{className:d}))}return s}}])})(T.PureComponent);Cr(nd,"displayName","Line");Cr(nd,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!So.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Cr(nd,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,s=e.yAxisTicks,l=e.dataKey,u=e.bandSize,d=e.displayedData,f=e.offset,p=t.layout,g=d.map(function(v,x){var A=Ft(v,l);return p==="horizontal"?{x:WD({axis:n,ticks:i,bandSize:u,entry:v,index:x}),y:Ne(A)?null:r.scale(A),value:A,payload:v}:{x:Ne(A)?null:n.scale(A),y:WD({axis:r,ticks:s,bandSize:u,entry:v,index:x}),value:A,payload:v}});return Bn({points:g,layout:p},f)});function al(e){"@babel/helpers - typeof";return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(e)}function Foe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Goe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gz(r.key),r)}}function Koe(e,t,n){return t&&Goe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xoe(e,t,n){return t=lp(t),Yoe(e,Hz()?Reflect.construct(t,n||[],lp(e).constructor):t.apply(e,n))}function Yoe(e,t){if(t&&(al(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Woe(e)}function Woe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hz=function(){return!!e})()}function lp(e){return lp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lp(e)}function Zoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Iw(e,t)}function Iw(e,t){return Iw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Iw(e,t)}function Fz(e,t,n){return t=Gz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gz(e){var t=Qoe(e,"string");return al(t)=="symbol"?t:t+""}function Qoe(e,t){if(al(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(al(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function qw(){return qw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qw.apply(this,arguments)}function Joe(e){var t=e.xAxisId,n=kA(),r=zA(),i=Pz(t);return i==null?null:T.createElement(jl,qw({},i,{className:De("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(l){return wa(l,!0)}}))}var il=(function(e){function t(){return Foe(this,t),Xoe(this,t,arguments)}return Zoe(t,e),Koe(t,[{key:"render",value:function(){return T.createElement(Joe,this.props)}}])})(T.Component);Fz(il,"displayName","XAxis");Fz(il,"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 ol(e){"@babel/helpers - typeof";return ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ol(e)}function ese(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yz(r.key),r)}}function nse(e,t,n){return t&&tse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rse(e,t,n){return t=cp(t),ase(e,Kz()?Reflect.construct(t,n||[],cp(e).constructor):t.apply(e,n))}function ase(e,t){if(t&&(ol(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ise(e)}function ise(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kz=function(){return!!e})()}function cp(e){return cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cp(e)}function ose(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vw(e,t)}function Vw(e,t){return Vw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Vw(e,t)}function Xz(e,t,n){return t=Yz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yz(e){var t=sse(e,"string");return ol(t)=="symbol"?t:t+""}function sse(e,t){if(ol(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ol(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Uw(){return Uw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uw.apply(this,arguments)}var lse=function(t){var n=t.yAxisId,r=kA(),i=zA(),s=Nz(n);return s==null?null:T.createElement(jl,Uw({},s,{className:De("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(u){return wa(u,!0)}}))},sl=(function(e){function t(){return ese(this,t),rse(this,t,arguments)}return ose(t,e),nse(t,[{key:"render",value:function(){return T.createElement(lse,this.props)}}])})(T.Component);Xz(sl,"displayName","YAxis");Xz(sl,"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 YR(e){return fse(e)||dse(e)||use(e)||cse()}function cse(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function use(e,t){if(e){if(typeof e=="string")return Hw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hw(e,t)}}function dse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fse(e){if(Array.isArray(e))return Hw(e)}function Hw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Fw=function(t,n,r,i,s){var l=Gn(t,$A),u=Gn(t,sm),d=[].concat(YR(l),YR(u)),f=Gn(t,cm),p="".concat(i,"Id"),g=i[0],v=n;if(d.length&&(v=d.reduce(function(w,S){if(S.props[p]===r&&Vr(S.props,"extendDomain")&&de(S.props[g])){var O=S.props[g];return[Math.min(w[0],O),Math.max(w[1],O)]}return w},v)),f.length){var x="".concat(g,"1"),A="".concat(g,"2");v=f.reduce(function(w,S){if(S.props[p]===r&&Vr(S.props,"extendDomain")&&de(S.props[x])&&de(S.props[A])){var O=S.props[x],E=S.props[A];return[Math.min(w[0],O,E),Math.max(w[1],O,E)]}return w},v)}return s&&s.length&&(v=s.reduce(function(w,S){return de(S)?[Math.min(w[0],S),Math.max(w[1],S)]:w},v)),v},F0={exports:{}},WR;function hse(){return WR||(WR=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(d,f,p){this.fn=d,this.context=f,this.once=p||!1}function s(d,f,p,g,v){if(typeof p!="function")throw new TypeError("The listener must be a function");var x=new i(p,g||d,v),A=n?n+f:f;return d._events[A]?d._events[A].fn?d._events[A]=[d._events[A],x]:d._events[A].push(x):(d._events[A]=x,d._eventsCount++),d}function l(d,f){--d._eventsCount===0?d._events=new r:delete d._events[f]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var f=[],p,g;if(this._eventsCount===0)return f;for(g in p=this._events)t.call(p,g)&&f.push(n?g.slice(1):g);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(p)):f},u.prototype.listeners=function(f){var p=n?n+f:f,g=this._events[p];if(!g)return[];if(g.fn)return[g.fn];for(var v=0,x=g.length,A=new Array(x);v<x;v++)A[v]=g[v].fn;return A},u.prototype.listenerCount=function(f){var p=n?n+f:f,g=this._events[p];return g?g.fn?1:g.length:0},u.prototype.emit=function(f,p,g,v,x,A){var w=n?n+f:f;if(!this._events[w])return!1;var S=this._events[w],O=arguments.length,E,j;if(S.fn){switch(S.once&&this.removeListener(f,S.fn,void 0,!0),O){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,p),!0;case 3:return S.fn.call(S.context,p,g),!0;case 4:return S.fn.call(S.context,p,g,v),!0;case 5:return S.fn.call(S.context,p,g,v,x),!0;case 6:return S.fn.call(S.context,p,g,v,x,A),!0}for(j=1,E=new Array(O-1);j<O;j++)E[j-1]=arguments[j];S.fn.apply(S.context,E)}else{var N=S.length,C;for(j=0;j<N;j++)switch(S[j].once&&this.removeListener(f,S[j].fn,void 0,!0),O){case 1:S[j].fn.call(S[j].context);break;case 2:S[j].fn.call(S[j].context,p);break;case 3:S[j].fn.call(S[j].context,p,g);break;case 4:S[j].fn.call(S[j].context,p,g,v);break;default:if(!E)for(C=1,E=new Array(O-1);C<O;C++)E[C-1]=arguments[C];S[j].fn.apply(S[j].context,E)}}return!0},u.prototype.on=function(f,p,g){return s(this,f,p,g,!1)},u.prototype.once=function(f,p,g){return s(this,f,p,g,!0)},u.prototype.removeListener=function(f,p,g,v){var x=n?n+f:f;if(!this._events[x])return this;if(!p)return l(this,x),this;var A=this._events[x];if(A.fn)A.fn===p&&(!v||A.once)&&(!g||A.context===g)&&l(this,x);else{for(var w=0,S=[],O=A.length;w<O;w++)(A[w].fn!==p||v&&!A[w].once||g&&A[w].context!==g)&&S.push(A[w]);S.length?this._events[x]=S.length===1?S[0]:S:l(this,x)}return this},u.prototype.removeAllListeners=function(f){var p;return f?(p=n?n+f:f,this._events[p]&&l(this,p)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u})(F0)),F0.exports}var pse=hse();const mse=tt(pse);var G0=new mse,K0="recharts.syncMouseEvents";function Mu(e){"@babel/helpers - typeof";return Mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mu(e)}function gse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wz(r.key),r)}}function yse(e,t,n){return t&&vse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function X0(e,t,n){return t=Wz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wz(e){var t=xse(e,"string");return Mu(t)=="symbol"?t:t+""}function xse(e,t){if(Mu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bse=(function(){function e(){gse(this,e),X0(this,"activeIndex",0),X0(this,"coordinateList",[]),X0(this,"layout","horizontal")}return yse(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,s=i===void 0?null:i,l=n.container,u=l===void 0?null:l,d=n.layout,f=d===void 0?null:d,p=n.offset,g=p===void 0?null:p,v=n.mouseHandlerCallback,x=v===void 0?null:v;this.coordinateList=(r=s??this.coordinateList)!==null&&r!==void 0?r:[],this.container=u??this.container,this.layout=f??this.layout,this.offset=g??this.offset,this.mouseHandlerCallback=x??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(n){if(this.coordinateList.length!==0)switch(n.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(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),s=i.x,l=i.y,u=i.height,d=this.coordinateList[this.activeIndex].coordinate,f=((n=window)===null||n===void 0?void 0:n.scrollX)||0,p=((r=window)===null||r===void 0?void 0:r.scrollY)||0,g=s+d+f,v=l+this.offset.top+u/2+p;this.mouseHandlerCallback({pageX:g,pageY:v})}}}])})();function wse(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e?.[0],i=e?.[1];if(r&&i&&de(r)&&de(i))return!0}return!1}function Sse(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function Zz(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,s=e.endAngle,l=ft(t,n,r,i),u=ft(t,n,r,s);return{points:[l,u],cx:t,cy:n,radius:r,startAngle:i,endAngle:s}}function Ase(e,t,n){var r,i,s,l;if(e==="horizontal")r=t.x,s=r,i=n.top,l=n.top+n.height;else if(e==="vertical")i=t.y,l=i,r=n.left,s=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,d=t.cy,f=t.innerRadius,p=t.outerRadius,g=t.angle,v=ft(u,d,f,g),x=ft(u,d,p,g);r=v.x,i=v.y,s=x.x,l=x.y}else return Zz(t);return[{x:r,y:i},{x:s,y:l}]}function Ru(e){"@babel/helpers - typeof";return Ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ru(e)}function ZR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZR(Object(n),!0).forEach(function(r){jse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jse(e,t,n){return t=Ose(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ose(e){var t=Tse(e,"string");return Ru(t)=="symbol"?t:t+""}function Tse(e,t){if(Ru(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ru(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cse(e){var t,n,r=e.element,i=e.tooltipEventType,s=e.isActive,l=e.activeCoordinate,u=e.activePayload,d=e.offset,f=e.activeTooltipIndex,p=e.tooltipAxisBandSize,g=e.layout,v=e.chartName,x=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!x||!s||!l||v!=="ScatterChart"&&i!=="axis")return null;var A,w=qh;if(v==="ScatterChart")A=l,w=Yne;else if(v==="BarChart")A=Sse(g,l,d,p),w=NA;else if(g==="radial"){var S=Zz(l),O=S.cx,E=S.cy,j=S.radius,N=S.startAngle,C=S.endAngle;A={cx:O,cy:E,startAngle:N,endAngle:C,innerRadius:j,outerRadius:j},w=Q8}else A={points:Ase(g,l,d)},w=qh;var P=Kf(Kf(Kf(Kf({stroke:"#ccc",pointerEvents:"none"},d),A),je(x,!1)),{},{payload:u,payloadIndex:f,className:De("recharts-tooltip-cursor",x.className)});return T.isValidElement(x)?T.cloneElement(x,P):T.createElement(w,P)}var Ese=["item"],_se=["children","className","width","height","style","compact","title","desc"];function ll(e){"@babel/helpers - typeof";return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ll(e)}function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},As.apply(this,arguments)}function QR(e,t){return Dse(e)||Nse(e,t)||Jz(e,t)||Pse()}function Pse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nse(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,u=[],d=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}function Dse(e){if(Array.isArray(e))return e}function JR(e,t){if(e==null)return{};var n=Mse(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mse(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Rse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eL(r.key),r)}}function zse(e,t,n){return t&&kse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lse(e,t,n){return t=up(t),$se(e,Qz()?Reflect.construct(t,n||[],up(e).constructor):t.apply(e,n))}function $se(e,t){if(t&&(ll(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bse(e)}function Bse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qz=function(){return!!e})()}function up(e){return up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},up(e)}function Ise(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gw(e,t)}function Gw(e,t){return Gw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Gw(e,t)}function cl(e){return Use(e)||Vse(e)||Jz(e)||qse()}function qse(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jz(e,t){if(e){if(typeof e=="string")return Kw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kw(e,t)}}function Vse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Use(e){if(Array.isArray(e))return Kw(e)}function Kw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ek(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ek(Object(n),!0).forEach(function(r){Te(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ek(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Te(e,t,n){return t=eL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eL(e){var t=Hse(e,"string");return ll(t)=="symbol"?t:t+""}function Hse(e,t){if(ll(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ll(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fse={xAxis:["bottom","top"],yAxis:["left","right"]},Gse={width:"100%",height:"100%"},tL={x:0,y:0};function Xf(e){return e}var Kse=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Xse=function(t,n,r,i){var s=n.find(function(p){return p&&p.index===r});if(s){if(t==="horizontal")return{x:s.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:s.coordinate};if(t==="centric"){var l=s.coordinate,u=i.radius;return re(re(re({},i),ft(i.cx,i.cy,u,l)),{},{angle:l,radius:u})}var d=s.coordinate,f=i.angle;return re(re(re({},i),ft(i.cx,i.cy,d,f)),{},{angle:f,radius:d})}return tL},um=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,s=n.dataEndIndex,l=(r??[]).reduce(function(u,d){var f=d.props.data;return f&&f.length?[].concat(cl(u),cl(f)):u},[]);return l.length>0?l:t&&t.length&&de(i)&&de(s)?t.slice(i,s+1):[]};function nL(e){return e==="number"?[0,"auto"]:void 0}var Xw=function(t,n,r,i){var s=t.graphicalItems,l=t.tooltipAxis,u=um(n,t);return r<0||!s||!s.length||r>=u.length?null:s.reduce(function(d,f){var p,g=(p=f.props.data)!==null&&p!==void 0?p:n;g&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(g=g.slice(t.dataStartIndex,t.dataEndIndex+1));var v;if(l.dataKey&&!l.allowDuplicatedCategory){var x=g===void 0?u:g;v=hh(x,l.dataKey,i)}else v=g&&g[r]||u[r];return v?[].concat(cl(d),[G8(f,v)]):d},[])},tk=function(t,n,r,i){var s=i||{x:t.chartX,y:t.chartY},l=Kse(s,r),u=t.orderedTooltipTicks,d=t.tooltipAxis,f=t.tooltipTicks,p=xJ(l,u,f,d);if(p>=0&&f){var g=f[p]&&f[p].value,v=Xw(t,n,p,g),x=Xse(r,u,p,s);return{activeTooltipIndex:p,activeLabel:g,activePayload:v,activeCoordinate:x}}return null},Yse=function(t,n){var r=n.axes,i=n.graphicalItems,s=n.axisType,l=n.axisIdKey,u=n.stackGroups,d=n.dataStartIndex,f=n.dataEndIndex,p=t.layout,g=t.children,v=t.stackOffset,x=I8(p,s);return r.reduce(function(A,w){var S,O=w.type.defaultProps!==void 0?re(re({},w.type.defaultProps),w.props):w.props,E=O.type,j=O.dataKey,N=O.allowDataOverflow,C=O.allowDuplicatedCategory,P=O.scale,D=O.ticks,M=O.includeHidden,k=O[l];if(A[k])return A;var q=um(t.data,{graphicalItems:i.filter(function(G){var te,le=l in G.props?G.props[l]:(te=G.type.defaultProps)===null||te===void 0?void 0:te[l];return le===k}),dataStartIndex:d,dataEndIndex:f}),L=q.length,U,X,J;wse(O.domain,N,E)&&(U=sw(O.domain,null,N),x&&(E==="number"||P!=="auto")&&(J=Vc(q,j,"category")));var W=nL(E);if(!U||U.length===0){var z,H=(z=O.domain)!==null&&z!==void 0?z:W;if(j){if(U=Vc(q,j,E),E==="category"&&x){var F=fF(U);C&&F?(X=U,U=Zh(0,L)):C||(U=eM(H,U,w).reduce(function(G,te){return G.indexOf(te)>=0?G:[].concat(cl(G),[te])},[]))}else if(E==="category")C?U=U.filter(function(G){return G!==""&&!Ne(G)}):U=eM(H,U,w).reduce(function(G,te){return G.indexOf(te)>=0||te===""||Ne(te)?G:[].concat(cl(G),[te])},[]);else if(E==="number"){var ie=jJ(q,i.filter(function(G){var te,le,fe=l in G.props?G.props[l]:(te=G.type.defaultProps)===null||te===void 0?void 0:te[l],Se="hide"in G.props?G.props.hide:(le=G.type.defaultProps)===null||le===void 0?void 0:le.hide;return fe===k&&(M||!Se)}),j,s,p);ie&&(U=ie)}x&&(E==="number"||P!=="auto")&&(J=Vc(q,j,"category"))}else x?U=Zh(0,L):u&&u[k]&&u[k].hasStack&&E==="number"?U=v==="expand"?[0,1]:F8(u[k].stackGroups,d,f):U=B8(q,i.filter(function(G){var te=l in G.props?G.props[l]:G.type.defaultProps[l],le="hide"in G.props?G.props.hide:G.type.defaultProps.hide;return te===k&&(M||!le)}),E,p,!0);if(E==="number")U=Fw(g,U,k,s,D),H&&(U=sw(H,U,N));else if(E==="category"&&H){var ue=H,$=U.every(function(G){return ue.indexOf(G)>=0});$&&(U=ue)}}return re(re({},A),{},Te({},k,re(re({},O),{},{axisType:s,domain:U,categoricalDomain:J,duplicateDomain:X,originalDomain:(S=O.domain)!==null&&S!==void 0?S:W,isCategorical:x,layout:p})))},{})},Wse=function(t,n){var r=n.graphicalItems,i=n.Axis,s=n.axisType,l=n.axisIdKey,u=n.stackGroups,d=n.dataStartIndex,f=n.dataEndIndex,p=t.layout,g=t.children,v=um(t.data,{graphicalItems:r,dataStartIndex:d,dataEndIndex:f}),x=v.length,A=I8(p,s),w=-1;return r.reduce(function(S,O){var E=O.type.defaultProps!==void 0?re(re({},O.type.defaultProps),O.props):O.props,j=E[l],N=nL("number");if(!S[j]){w++;var C;return A?C=Zh(0,x):u&&u[j]&&u[j].hasStack?(C=F8(u[j].stackGroups,d,f),C=Fw(g,C,j,s)):(C=sw(N,B8(v,r.filter(function(P){var D,M,k=l in P.props?P.props[l]:(D=P.type.defaultProps)===null||D===void 0?void 0:D[l],q="hide"in P.props?P.props.hide:(M=P.type.defaultProps)===null||M===void 0?void 0:M.hide;return k===j&&!q}),"number",p),i.defaultProps.allowDataOverflow),C=Fw(g,C,j,s)),re(re({},S),{},Te({},j,re(re({axisType:s},i.defaultProps),{},{hide:!0,orientation:Fn(Fse,"".concat(s,".").concat(w%2),null),domain:C,originalDomain:N,isCategorical:A,layout:p})))}return S},{})},Zse=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,s=n.AxisComp,l=n.graphicalItems,u=n.stackGroups,d=n.dataStartIndex,f=n.dataEndIndex,p=t.children,g="".concat(i,"Id"),v=Gn(p,s),x={};return v&&v.length?x=Yse(t,{axes:v,graphicalItems:l,axisType:i,axisIdKey:g,stackGroups:u,dataStartIndex:d,dataEndIndex:f}):l&&l.length&&(x=Wse(t,{Axis:s,graphicalItems:l,axisType:i,axisIdKey:g,stackGroups:u,dataStartIndex:d,dataEndIndex:f})),x},Qse=function(t){var n=pi(t),r=wa(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:aA(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:$h(n,r)}},nk=function(t){var n=t.children,r=t.defaultShowTooltip,i=qn(n,Zs),s=0,l=0;return t.data&&t.data.length!==0&&(l=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(s=i.props.startIndex),i.props.endIndex>=0&&(l=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:l,activeTooltipIndex:-1,isTooltipActive:!!r}},Jse=function(t){return!t||!t.length?!1:t.some(function(n){var r=Sa(n&&n.type);return r&&r.indexOf("Bar")>=0})},rk=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},ele=function(t,n){var r=t.props,i=t.graphicalItems,s=t.xAxisMap,l=s===void 0?{}:s,u=t.yAxisMap,d=u===void 0?{}:u,f=r.width,p=r.height,g=r.children,v=r.margin||{},x=qn(g,Zs),A=qn(g,io),w=Object.keys(d).reduce(function(C,P){var D=d[P],M=D.orientation;return!D.mirror&&!D.hide?re(re({},C),{},Te({},M,C[M]+D.width)):C},{left:v.left||0,right:v.right||0}),S=Object.keys(l).reduce(function(C,P){var D=l[P],M=D.orientation;return!D.mirror&&!D.hide?re(re({},C),{},Te({},M,Fn(C,"".concat(M))+D.height)):C},{top:v.top||0,bottom:v.bottom||0}),O=re(re({},S),w),E=O.bottom;x&&(O.bottom+=x.props.height||Zs.defaultProps.height),A&&n&&(O=SJ(O,i,r,n));var j=f-O.left-O.right,N=p-O.top-O.bottom;return re(re({brushBottom:E},O),{},{width:Math.max(j,0),height:Math.max(N,0)})},tle=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},qA=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,s=i===void 0?"axis":i,l=t.validateTooltipEventTypes,u=l===void 0?["axis"]:l,d=t.axisComponents,f=t.legendContent,p=t.formatAxisMap,g=t.defaultProps,v=function(O,E){var j=E.graphicalItems,N=E.stackGroups,C=E.offset,P=E.updateId,D=E.dataStartIndex,M=E.dataEndIndex,k=O.barSize,q=O.layout,L=O.barGap,U=O.barCategoryGap,X=O.maxBarSize,J=rk(q),W=J.numericAxisName,z=J.cateAxisName,H=Jse(j),F=[];return j.forEach(function(ie,ue){var $=um(O.data,{graphicalItems:[ie],dataStartIndex:D,dataEndIndex:M}),G=ie.type.defaultProps!==void 0?re(re({},ie.type.defaultProps),ie.props):ie.props,te=G.dataKey,le=G.maxBarSize,fe=G["".concat(W,"Id")],Se=G["".concat(z,"Id")],be={},Fe=d.reduce(function(br,Wr){var El=E["".concat(Wr.axisType,"Map")],ln=G["".concat(Wr.axisType,"Id")];El&&El[ln]||Wr.axisType==="zAxis"||vo();var sd=El[ln];return re(re({},br),{},Te(Te({},Wr.axisType,sd),"".concat(Wr.axisType,"Ticks"),wa(sd)))},be),ce=Fe[z],Ae=Fe["".concat(z,"Ticks")],Ce=N&&N[fe]&&N[fe].hasStack&&MJ(ie,N[fe].stackGroups),se=Sa(ie.type).indexOf("Bar")>=0,ht=$h(ce,Ae),Re=[],bt=H&&bJ({barSize:k,stackGroups:N,totalSize:tle(Fe,z)});if(se){var wt,sn,xr=Ne(le)?X:le,Rr=(wt=(sn=$h(ce,Ae,!0))!==null&&sn!==void 0?sn:xr)!==null&&wt!==void 0?wt:0;Re=wJ({barGap:L,barCategoryGap:U,bandSize:Rr!==ht?Rr:ht,sizeList:bt[Se],maxBarSize:xr}),Rr!==ht&&(Re=Re.map(function(br){return re(re({},br),{},{position:re(re({},br.position),{},{offset:br.position.offset-Rr/2})})}))}var za=ie&&ie.type&&ie.type.getComposedData;za&&F.push({props:re(re({},za(re(re({},Fe),{},{displayedData:$,props:O,dataKey:te,item:ie,bandSize:ht,barPosition:Re,offset:C,stackedData:Ce,layout:q,dataStartIndex:D,dataEndIndex:M}))),{},Te(Te(Te({key:ie.key||"item-".concat(ue)},W,Fe[W]),z,Fe[z]),"animationId",P)),childIndex:OF(ie,O.children),item:ie})}),F},x=function(O,E){var j=O.props,N=O.dataStartIndex,C=O.dataEndIndex,P=O.updateId;if(!p_({props:j}))return null;var D=j.children,M=j.layout,k=j.stackOffset,q=j.data,L=j.reverseStackOrder,U=rk(M),X=U.numericAxisName,J=U.cateAxisName,W=Gn(D,r),z=NJ(q,W,"".concat(X,"Id"),"".concat(J,"Id"),k,L),H=d.reduce(function(G,te){var le="".concat(te.axisType,"Map");return re(re({},G),{},Te({},le,Zse(j,re(re({},te),{},{graphicalItems:W,stackGroups:te.axisType===X&&z,dataStartIndex:N,dataEndIndex:C}))))},{}),F=ele(re(re({},H),{},{props:j,graphicalItems:W}),E?.legendBBox);Object.keys(H).forEach(function(G){H[G]=p(j,H[G],F,G.replace("Map",""),n)});var ie=H["".concat(J,"Map")],ue=Qse(ie),$=v(j,re(re({},H),{},{dataStartIndex:N,dataEndIndex:C,updateId:P,graphicalItems:W,stackGroups:z,offset:F}));return re(re({formattedGraphicalItems:$,graphicalItems:W,offset:F,stackGroups:z},ue),H)},A=(function(S){function O(E){var j,N,C;return Rse(this,O),C=Lse(this,O,[E]),Te(C,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Te(C,"accessibilityManager",new bse),Te(C,"handleLegendBBoxUpdate",function(P){if(P){var D=C.state,M=D.dataStartIndex,k=D.dataEndIndex,q=D.updateId;C.setState(re({legendBBox:P},x({props:C.props,dataStartIndex:M,dataEndIndex:k,updateId:q},re(re({},C.state),{},{legendBBox:P}))))}}),Te(C,"handleReceiveSyncEvent",function(P,D,M){if(C.props.syncId===P){if(M===C.eventEmitterSymbol&&typeof C.props.syncMethod!="function")return;C.applySyncEvent(D)}}),Te(C,"handleBrushChange",function(P){var D=P.startIndex,M=P.endIndex;if(D!==C.state.dataStartIndex||M!==C.state.dataEndIndex){var k=C.state.updateId;C.setState(function(){return re({dataStartIndex:D,dataEndIndex:M},x({props:C.props,dataStartIndex:D,dataEndIndex:M,updateId:k},C.state))}),C.triggerSyncEvent({dataStartIndex:D,dataEndIndex:M})}}),Te(C,"handleMouseEnter",function(P){var D=C.getMouseInfo(P);if(D){var M=re(re({},D),{},{isTooltipActive:!0});C.setState(M),C.triggerSyncEvent(M);var k=C.props.onMouseEnter;_e(k)&&k(M,P)}}),Te(C,"triggeredAfterMouseMove",function(P){var D=C.getMouseInfo(P),M=D?re(re({},D),{},{isTooltipActive:!0}):{isTooltipActive:!1};C.setState(M),C.triggerSyncEvent(M);var k=C.props.onMouseMove;_e(k)&&k(M,P)}),Te(C,"handleItemMouseEnter",function(P){C.setState(function(){return{isTooltipActive:!0,activeItem:P,activePayload:P.tooltipPayload,activeCoordinate:P.tooltipPosition||{x:P.cx,y:P.cy}}})}),Te(C,"handleItemMouseLeave",function(){C.setState(function(){return{isTooltipActive:!1}})}),Te(C,"handleMouseMove",function(P){P.persist(),C.throttleTriggeredAfterMouseMove(P)}),Te(C,"handleMouseLeave",function(P){C.throttleTriggeredAfterMouseMove.cancel();var D={isTooltipActive:!1};C.setState(D),C.triggerSyncEvent(D);var M=C.props.onMouseLeave;_e(M)&&M(D,P)}),Te(C,"handleOuterEvent",function(P){var D=jF(P),M=Fn(C.props,"".concat(D));if(D&&_e(M)){var k,q;/.*touch.*/i.test(D)?q=C.getMouseInfo(P.changedTouches[0]):q=C.getMouseInfo(P),M((k=q)!==null&&k!==void 0?k:{},P)}}),Te(C,"handleClick",function(P){var D=C.getMouseInfo(P);if(D){var M=re(re({},D),{},{isTooltipActive:!0});C.setState(M),C.triggerSyncEvent(M);var k=C.props.onClick;_e(k)&&k(M,P)}}),Te(C,"handleMouseDown",function(P){var D=C.props.onMouseDown;if(_e(D)){var M=C.getMouseInfo(P);D(M,P)}}),Te(C,"handleMouseUp",function(P){var D=C.props.onMouseUp;if(_e(D)){var M=C.getMouseInfo(P);D(M,P)}}),Te(C,"handleTouchMove",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&C.throttleTriggeredAfterMouseMove(P.changedTouches[0])}),Te(C,"handleTouchStart",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&C.handleMouseDown(P.changedTouches[0])}),Te(C,"handleTouchEnd",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&C.handleMouseUp(P.changedTouches[0])}),Te(C,"handleDoubleClick",function(P){var D=C.props.onDoubleClick;if(_e(D)){var M=C.getMouseInfo(P);D(M,P)}}),Te(C,"handleContextMenu",function(P){var D=C.props.onContextMenu;if(_e(D)){var M=C.getMouseInfo(P);D(M,P)}}),Te(C,"triggerSyncEvent",function(P){C.props.syncId!==void 0&&G0.emit(K0,C.props.syncId,P,C.eventEmitterSymbol)}),Te(C,"applySyncEvent",function(P){var D=C.props,M=D.layout,k=D.syncMethod,q=C.state.updateId,L=P.dataStartIndex,U=P.dataEndIndex;if(P.dataStartIndex!==void 0||P.dataEndIndex!==void 0)C.setState(re({dataStartIndex:L,dataEndIndex:U},x({props:C.props,dataStartIndex:L,dataEndIndex:U,updateId:q},C.state)));else if(P.activeTooltipIndex!==void 0){var X=P.chartX,J=P.chartY,W=P.activeTooltipIndex,z=C.state,H=z.offset,F=z.tooltipTicks;if(!H)return;if(typeof k=="function")W=k(F,P);else if(k==="value"){W=-1;for(var ie=0;ie<F.length;ie++)if(F[ie].value===P.activeLabel){W=ie;break}}var ue=re(re({},H),{},{x:H.left,y:H.top}),$=Math.min(X,ue.x+ue.width),G=Math.min(J,ue.y+ue.height),te=F[W]&&F[W].value,le=Xw(C.state,C.props.data,W),fe=F[W]?{x:M==="horizontal"?F[W].coordinate:$,y:M==="horizontal"?G:F[W].coordinate}:tL;C.setState(re(re({},P),{},{activeLabel:te,activeCoordinate:fe,activePayload:le,activeTooltipIndex:W}))}else C.setState(P)}),Te(C,"renderCursor",function(P){var D,M=C.state,k=M.isTooltipActive,q=M.activeCoordinate,L=M.activePayload,U=M.offset,X=M.activeTooltipIndex,J=M.tooltipAxisBandSize,W=C.getTooltipEventType(),z=(D=P.props.active)!==null&&D!==void 0?D:k,H=C.props.layout,F=P.key||"_recharts-cursor";return B.createElement(Cse,{key:F,activeCoordinate:q,activePayload:L,activeTooltipIndex:X,chartName:n,element:P,isActive:z,layout:H,offset:U,tooltipAxisBandSize:J,tooltipEventType:W})}),Te(C,"renderPolarAxis",function(P,D,M){var k=Fn(P,"type.axisType"),q=Fn(C.state,"".concat(k,"Map")),L=P.type.defaultProps,U=L!==void 0?re(re({},L),P.props):P.props,X=q&&q[U["".concat(k,"Id")]];return T.cloneElement(P,re(re({},X),{},{className:De(k,X.className),key:P.key||"".concat(D,"-").concat(M),ticks:wa(X,!0)}))}),Te(C,"renderPolarGrid",function(P){var D=P.props,M=D.radialLines,k=D.polarAngles,q=D.polarRadius,L=C.state,U=L.radiusAxisMap,X=L.angleAxisMap,J=pi(U),W=pi(X),z=W.cx,H=W.cy,F=W.innerRadius,ie=W.outerRadius;return T.cloneElement(P,{polarAngles:Array.isArray(k)?k:wa(W,!0).map(function(ue){return ue.coordinate}),polarRadius:Array.isArray(q)?q:wa(J,!0).map(function(ue){return ue.coordinate}),cx:z,cy:H,innerRadius:F,outerRadius:ie,key:P.key||"polar-grid",radialLines:M})}),Te(C,"renderLegend",function(){var P=C.state.formattedGraphicalItems,D=C.props,M=D.children,k=D.width,q=D.height,L=C.props.margin||{},U=k-(L.left||0)-(L.right||0),X=L8({children:M,formattedGraphicalItems:P,legendWidth:U,legendContent:f});if(!X)return null;var J=X.item,W=JR(X,Ese);return T.cloneElement(J,re(re({},W),{},{chartWidth:k,chartHeight:q,margin:L,onBBoxUpdate:C.handleLegendBBoxUpdate}))}),Te(C,"renderTooltip",function(){var P,D=C.props,M=D.children,k=D.accessibilityLayer,q=qn(M,ur);if(!q)return null;var L=C.state,U=L.isTooltipActive,X=L.activeCoordinate,J=L.activePayload,W=L.activeLabel,z=L.offset,H=(P=q.props.active)!==null&&P!==void 0?P:U;return T.cloneElement(q,{viewBox:re(re({},z),{},{x:z.left,y:z.top}),active:H,label:W,payload:H?J:[],coordinate:X,accessibilityLayer:k})}),Te(C,"renderBrush",function(P){var D=C.props,M=D.margin,k=D.data,q=C.state,L=q.offset,U=q.dataStartIndex,X=q.dataEndIndex,J=q.updateId;return T.cloneElement(P,{key:P.key||"_recharts-brush",onChange:Uf(C.handleBrushChange,P.props.onChange),data:k,x:de(P.props.x)?P.props.x:L.left,y:de(P.props.y)?P.props.y:L.top+L.height+L.brushBottom-(M.bottom||0),width:de(P.props.width)?P.props.width:L.width,startIndex:U,endIndex:X,updateId:"brush-".concat(J)})}),Te(C,"renderReferenceElement",function(P,D,M){if(!P)return null;var k=C,q=k.clipPathId,L=C.state,U=L.xAxisMap,X=L.yAxisMap,J=L.offset,W=P.type.defaultProps||{},z=P.props,H=z.xAxisId,F=H===void 0?W.xAxisId:H,ie=z.yAxisId,ue=ie===void 0?W.yAxisId:ie;return T.cloneElement(P,{key:P.key||"".concat(D,"-").concat(M),xAxis:U[F],yAxis:X[ue],viewBox:{x:J.left,y:J.top,width:J.width,height:J.height},clipPathId:q})}),Te(C,"renderActivePoints",function(P){var D=P.item,M=P.activePoint,k=P.basePoint,q=P.childIndex,L=P.isRange,U=[],X=D.props.key,J=D.item.type.defaultProps!==void 0?re(re({},D.item.type.defaultProps),D.item.props):D.item.props,W=J.activeDot,z=J.dataKey,H=re(re({index:q,dataKey:z,cx:M.x,cy:M.y,r:4,fill:PA(D.item),strokeWidth:2,stroke:"#fff",payload:M.payload,value:M.value},je(W,!1)),ph(W));return U.push(O.renderActiveDot(W,H,"".concat(X,"-activePoint-").concat(q))),k?U.push(O.renderActiveDot(W,re(re({},H),{},{cx:k.x,cy:k.y}),"".concat(X,"-basePoint-").concat(q))):L&&U.push(null),U}),Te(C,"renderGraphicChild",function(P,D,M){var k=C.filterFormatItem(P,D,M);if(!k)return null;var q=C.getTooltipEventType(),L=C.state,U=L.isTooltipActive,X=L.tooltipAxis,J=L.activeTooltipIndex,W=L.activeLabel,z=C.props.children,H=qn(z,ur),F=k.props,ie=F.points,ue=F.isRange,$=F.baseLine,G=k.item.type.defaultProps!==void 0?re(re({},k.item.type.defaultProps),k.item.props):k.item.props,te=G.activeDot,le=G.hide,fe=G.activeBar,Se=G.activeShape,be=!!(!le&&U&&H&&(te||fe||Se)),Fe={};q!=="axis"&&H&&H.props.trigger==="click"?Fe={onClick:Uf(C.handleItemMouseEnter,P.props.onClick)}:q!=="axis"&&(Fe={onMouseLeave:Uf(C.handleItemMouseLeave,P.props.onMouseLeave),onMouseEnter:Uf(C.handleItemMouseEnter,P.props.onMouseEnter)});var ce=T.cloneElement(P,re(re({},k.props),Fe));function Ae(Wr){return typeof X.dataKey=="function"?X.dataKey(Wr.payload):null}if(be)if(J>=0){var Ce,se;if(X.dataKey&&!X.allowDuplicatedCategory){var ht=typeof X.dataKey=="function"?Ae:"payload.".concat(X.dataKey.toString());Ce=hh(ie,ht,W),se=ue&&$&&hh($,ht,W)}else Ce=ie?.[J],se=ue&&$&&$[J];if(Se||fe){var Re=P.props.activeIndex!==void 0?P.props.activeIndex:J;return[T.cloneElement(P,re(re(re({},k.props),Fe),{},{activeIndex:Re})),null,null]}if(!Ne(Ce))return[ce].concat(cl(C.renderActivePoints({item:k,activePoint:Ce,basePoint:se,childIndex:J,isRange:ue})))}else{var bt,wt=(bt=C.getItemByXY(C.state.activeCoordinate))!==null&&bt!==void 0?bt:{graphicalItem:ce},sn=wt.graphicalItem,xr=sn.item,Rr=xr===void 0?P:xr,za=sn.childIndex,br=re(re(re({},k.props),Fe),{},{activeIndex:za});return[T.cloneElement(Rr,br),null,null]}return ue?[ce,null,null]:[ce,null]}),Te(C,"renderCustomized",function(P,D,M){return T.cloneElement(P,re(re({key:"recharts-customized-".concat(M)},C.props),C.state))}),Te(C,"renderMap",{CartesianGrid:{handler:Xf,once:!0},ReferenceArea:{handler:C.renderReferenceElement},ReferenceLine:{handler:Xf},ReferenceDot:{handler:C.renderReferenceElement},XAxis:{handler:Xf},YAxis:{handler:Xf},Brush:{handler:C.renderBrush,once:!0},Bar:{handler:C.renderGraphicChild},Line:{handler:C.renderGraphicChild},Area:{handler:C.renderGraphicChild},Radar:{handler:C.renderGraphicChild},RadialBar:{handler:C.renderGraphicChild},Scatter:{handler:C.renderGraphicChild},Pie:{handler:C.renderGraphicChild},Funnel:{handler:C.renderGraphicChild},Tooltip:{handler:C.renderCursor,once:!0},PolarGrid:{handler:C.renderPolarGrid,once:!0},PolarAngleAxis:{handler:C.renderPolarAxis},PolarRadiusAxis:{handler:C.renderPolarAxis},Customized:{handler:C.renderCustomized}}),C.clipPathId="".concat((j=E.id)!==null&&j!==void 0?j:xl("recharts"),"-clip"),C.throttleTriggeredAfterMouseMove=z6(C.triggeredAfterMouseMove,(N=E.throttleDelay)!==null&&N!==void 0?N:1e3/60),C.state={},C}return Ise(O,S),zse(O,[{key:"componentDidMount",value:function(){var j,N;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(j=this.props.margin.left)!==null&&j!==void 0?j:0,top:(N=this.props.margin.top)!==null&&N!==void 0?N:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var j=this.props,N=j.children,C=j.data,P=j.height,D=j.layout,M=qn(N,ur);if(M){var k=M.props.defaultIndex;if(!(typeof k!="number"||k<0||k>this.state.tooltipTicks.length-1)){var q=this.state.tooltipTicks[k]&&this.state.tooltipTicks[k].value,L=Xw(this.state,C,k,q),U=this.state.tooltipTicks[k].coordinate,X=(this.state.offset.top+P)/2,J=D==="horizontal",W=J?{x:U,y:X}:{y:U,x:X},z=this.state.formattedGraphicalItems.find(function(F){var ie=F.item;return ie.type.name==="Scatter"});z&&(W=re(re({},W),z.props.points[k].tooltipPosition),L=z.props.points[k].tooltipPayload);var H={activeTooltipIndex:k,isTooltipActive:!0,activeLabel:q,activePayload:L,activeCoordinate:W};this.setState(H),this.renderCursor(M),this.accessibilityManager.setIndex(k)}}}},{key:"getSnapshotBeforeUpdate",value:function(j,N){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==N.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==j.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==j.margin){var C,P;this.accessibilityManager.setDetails({offset:{left:(C=this.props.margin.left)!==null&&C!==void 0?C:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0}})}return null}},{key:"componentDidUpdate",value:function(j){_1([qn(j.children,ur)],[qn(this.props.children,ur)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var j=qn(this.props.children,ur);if(j&&typeof j.props.shared=="boolean"){var N=j.props.shared?"axis":"item";return u.indexOf(N)>=0?N:s}return s}},{key:"getMouseInfo",value:function(j){if(!this.container)return null;var N=this.container,C=N.getBoundingClientRect(),P=dY(C),D={chartX:Math.round(j.pageX-P.left),chartY:Math.round(j.pageY-P.top)},M=C.width/N.offsetWidth||1,k=this.inRange(D.chartX,D.chartY,M);if(!k)return null;var q=this.state,L=q.xAxisMap,U=q.yAxisMap,X=this.getTooltipEventType(),J=tk(this.state,this.props.data,this.props.layout,k);if(X!=="axis"&&L&&U){var W=pi(L).scale,z=pi(U).scale,H=W&&W.invert?W.invert(D.chartX):null,F=z&&z.invert?z.invert(D.chartY):null;return re(re({},D),{},{xValue:H,yValue:F},J)}return J?re(re({},D),J):null}},{key:"inRange",value:function(j,N){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,P=this.props.layout,D=j/C,M=N/C;if(P==="horizontal"||P==="vertical"){var k=this.state.offset,q=D>=k.left&&D<=k.left+k.width&&M>=k.top&&M<=k.top+k.height;return q?{x:D,y:M}:null}var L=this.state,U=L.angleAxisMap,X=L.radiusAxisMap;if(U&&X){var J=pi(U);return rM({x:D,y:M},J)}return null}},{key:"parseEventsOfWrapper",value:function(){var j=this.props.children,N=this.getTooltipEventType(),C=qn(j,ur),P={};C&&N==="axis"&&(C.props.trigger==="click"?P={onClick:this.handleClick}:P={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 D=ph(this.props,this.handleOuterEvent);return re(re({},D),P)}},{key:"addListener",value:function(){G0.on(K0,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){G0.removeListener(K0,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(j,N,C){for(var P=this.state.formattedGraphicalItems,D=0,M=P.length;D<M;D++){var k=P[D];if(k.item===j||k.props.key===j.key||N===Sa(k.item.type)&&C===k.childIndex)return k}return null}},{key:"renderClipPath",value:function(){var j=this.clipPathId,N=this.state.offset,C=N.left,P=N.top,D=N.height,M=N.width;return B.createElement("defs",null,B.createElement("clipPath",{id:j},B.createElement("rect",{x:C,y:P,height:D,width:M})))}},{key:"getXScales",value:function(){var j=this.state.xAxisMap;return j?Object.entries(j).reduce(function(N,C){var P=QR(C,2),D=P[0],M=P[1];return re(re({},N),{},Te({},D,M.scale))},{}):null}},{key:"getYScales",value:function(){var j=this.state.yAxisMap;return j?Object.entries(j).reduce(function(N,C){var P=QR(C,2),D=P[0],M=P[1];return re(re({},N),{},Te({},D,M.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(j){var N;return(N=this.state.xAxisMap)===null||N===void 0||(N=N[j])===null||N===void 0?void 0:N.scale}},{key:"getYScaleByAxisId",value:function(j){var N;return(N=this.state.yAxisMap)===null||N===void 0||(N=N[j])===null||N===void 0?void 0:N.scale}},{key:"getItemByXY",value:function(j){var N=this.state,C=N.formattedGraphicalItems,P=N.activeItem;if(C&&C.length)for(var D=0,M=C.length;D<M;D++){var k=C[D],q=k.props,L=k.item,U=L.type.defaultProps!==void 0?re(re({},L.type.defaultProps),L.props):L.props,X=Sa(L.type);if(X==="Bar"){var J=(q.data||[]).find(function(F){return _ne(j,F)});if(J)return{graphicalItem:k,payload:J}}else if(X==="RadialBar"){var W=(q.data||[]).find(function(F){return rM(j,F)});if(W)return{graphicalItem:k,payload:W}}else if(rm(k,P)||am(k,P)||Eu(k,P)){var z=Qre({graphicalItem:k,activeTooltipItem:P,itemData:U.data}),H=U.activeIndex===void 0?z:U.activeIndex;return{graphicalItem:re(re({},k),{},{childIndex:H}),payload:Eu(k,P)?U.data[z]:k.props.data[z]}}}return null}},{key:"render",value:function(){var j=this;if(!p_(this))return null;var N=this.props,C=N.children,P=N.className,D=N.width,M=N.height,k=N.style,q=N.compact,L=N.title,U=N.desc,X=JR(N,_se),J=je(X,!1);if(q)return B.createElement(MR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},B.createElement(N1,As({},J,{width:D,height:M,title:L,desc:U}),this.renderClipPath(),g_(C,this.renderMap)));if(this.props.accessibilityLayer){var W,z;J.tabIndex=(W=this.props.tabIndex)!==null&&W!==void 0?W:0,J.role=(z=this.props.role)!==null&&z!==void 0?z:"application",J.onKeyDown=function(F){j.accessibilityManager.keyboardEvent(F)},J.onFocus=function(){j.accessibilityManager.focus()}}var H=this.parseEventsOfWrapper();return B.createElement(MR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},B.createElement("div",As({className:De("recharts-wrapper",P),style:re({position:"relative",cursor:"default",width:D,height:M},k)},H,{ref:function(ie){j.container=ie}}),B.createElement(N1,As({},J,{width:D,height:M,title:L,desc:U,style:Gse}),this.renderClipPath(),g_(C,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(T.Component);Te(A,"displayName",n),Te(A,"defaultProps",re({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},g)),Te(A,"getDerivedStateFromProps",function(S,O){var E=S.dataKey,j=S.data,N=S.children,C=S.width,P=S.height,D=S.layout,M=S.stackOffset,k=S.margin,q=O.dataStartIndex,L=O.dataEndIndex;if(O.updateId===void 0){var U=nk(S);return re(re(re({},U),{},{updateId:0},x(re(re({props:S},U),{},{updateId:0}),O)),{},{prevDataKey:E,prevData:j,prevWidth:C,prevHeight:P,prevLayout:D,prevStackOffset:M,prevMargin:k,prevChildren:N})}if(E!==O.prevDataKey||j!==O.prevData||C!==O.prevWidth||P!==O.prevHeight||D!==O.prevLayout||M!==O.prevStackOffset||!Ns(k,O.prevMargin)){var X=nk(S),J={chartX:O.chartX,chartY:O.chartY,isTooltipActive:O.isTooltipActive},W=re(re({},tk(O,j,D)),{},{updateId:O.updateId+1}),z=re(re(re({},X),J),W);return re(re(re({},z),x(re({props:S},z),O)),{},{prevDataKey:E,prevData:j,prevWidth:C,prevHeight:P,prevLayout:D,prevStackOffset:M,prevMargin:k,prevChildren:N})}if(!_1(N,O.prevChildren)){var H,F,ie,ue,$=qn(N,Zs),G=$&&(H=(F=$.props)===null||F===void 0?void 0:F.startIndex)!==null&&H!==void 0?H:q,te=$&&(ie=(ue=$.props)===null||ue===void 0?void 0:ue.endIndex)!==null&&ie!==void 0?ie:L,le=G!==q||te!==L,fe=!Ne(j),Se=fe&&!le?O.updateId:O.updateId+1;return re(re({updateId:Se},x(re(re({props:S},O),{},{updateId:Se,dataStartIndex:G,dataEndIndex:te}),O)),{},{prevChildren:N,dataStartIndex:G,dataEndIndex:te})}return null}),Te(A,"renderActiveDot",function(S,O,E){var j;return T.isValidElement(S)?j=T.cloneElement(S,O):_e(S)?j=S(O):j=B.createElement(Qp,O),B.createElement(Xe,{className:"recharts-active-dot",key:E},j)});var w=T.forwardRef(function(O,E){return B.createElement(A,As({},O,{ref:E}))});return w.displayName=A.displayName,w},nle=qA({chartName:"LineChart",GraphicalChild:nd,axisComponents:[{axisType:"xAxis",AxisComp:il},{axisType:"yAxis",AxisComp:sl}],formatAxisMap:Sz}),rle=qA({chartName:"BarChart",GraphicalChild:To,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:il},{axisType:"yAxis",AxisComp:sl}],formatAxisMap:Sz}),ale=qA({chartName:"PieChart",GraphicalChild:ka,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:nm},{axisType:"radiusAxis",AxisComp:em}],formatAxisMap:UJ,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function ile({onPeriodChange:e,currentPeriod:t}){const[n,r]=T.useState(!1),[i,s]=T.useState(""),[l,u]=T.useState(""),d=p=>{e(p)},f=()=>{if(i&&l){const p=new Date(i),g=new Date(l);p<=g&&(e("custom",p,g),r(!1))}};return m.jsxs(m.Fragment,{children:[m.jsxs("div",{"data-loc":"client/src/components/PeriodFilter.tsx:44",className:"flex gap-2 mb-6 flex-wrap",children:[m.jsx(ye,{"data-loc":"client/src/components/PeriodFilter.tsx:45",variant:t==="dia"?"default":"outline",size:"sm",onClick:()=>d("dia"),className:"rounded-lg",children:"📅 Hoje"}),m.jsx(ye,{"data-loc":"client/src/components/PeriodFilter.tsx:54",variant:t==="semana"?"default":"outline",size:"sm",onClick:()=>d("semana"),className:"rounded-lg",children:"📊 Esta Semana"}),m.jsx(ye,{"data-loc":"client/src/components/PeriodFilter.tsx:63",variant:t==="mes"?"default":"outline",size:"sm",onClick:()=>d("mes"),className:"rounded-lg",children:"📈 Este Mês"}),m.jsxs(ye,{"data-loc":"client/src/components/PeriodFilter.tsx:72",variant:t==="custom"?"default":"outline",size:"sm",onClick:()=>r(!0),className:"rounded-lg",children:[m.jsx(K9,{"data-loc":"client/src/components/PeriodFilter.tsx:78",size:16,className:"mr-2"}),"Personalizado"]})]}),m.jsx(w1,{"data-loc":"client/src/components/PeriodFilter.tsx:84",open:n,onOpenChange:r,children:m.jsxs(S1,{"data-loc":"client/src/components/PeriodFilter.tsx:85",className:"max-w-md rounded-2xl",children:[m.jsx(A1,{"data-loc":"client/src/components/PeriodFilter.tsx:86",children:m.jsx(j1,{"data-loc":"client/src/components/PeriodFilter.tsx:87",children:"Selecione o Período"})}),m.jsxs("div",{"data-loc":"client/src/components/PeriodFilter.tsx:90",className:"space-y-4 py-4",children:[m.jsxs("div",{"data-loc":"client/src/components/PeriodFilter.tsx:91",children:[m.jsx("label",{"data-loc":"client/src/components/PeriodFilter.tsx:92",className:"text-sm font-medium text-foreground mb-2 block",children:"Data Inicial"}),m.jsx("input",{"data-loc":"client/src/components/PeriodFilter.tsx:95",type:"date",value:i,onChange:p=>s(p.target.value),className:"w-full px-3 py-2 rounded-lg border border-border bg-secondary/30"})]}),m.jsxs("div",{"data-loc":"client/src/components/PeriodFilter.tsx:103",children:[m.jsx("label",{"data-loc":"client/src/components/PeriodFilter.tsx:104",className:"text-sm font-medium text-foreground mb-2 block",children:"Data Final"}),m.jsx("input",{"data-loc":"client/src/components/PeriodFilter.tsx:107",type:"date",value:l,onChange:p=>u(p.target.value),className:"w-full px-3 py-2 rounded-lg border border-border bg-secondary/30"})]}),m.jsxs("div",{"data-loc":"client/src/components/PeriodFilter.tsx:115",className:"flex gap-3 pt-4",children:[m.jsx(ye,{"data-loc":"client/src/components/PeriodFilter.tsx:116",variant:"outline",className:"flex-1 rounded-lg",onClick:()=>r(!1),children:"Cancelar"}),m.jsx(ye,{"data-loc":"client/src/components/PeriodFilter.tsx:123",className:"flex-1 rounded-lg",onClick:f,disabled:!i||!l,children:"Aplicar"})]})]})]})})]})}const ole=()=>{const e=[],t=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"];for(let n=29;n>=0;n--){const r=new Date;r.setDate(r.getDate()-n);const i=r.getDay(),l=i===0||i===6?800:400,u=Math.random()*300-150,d=Math.max(200,l+u),f=Math.floor(d/45),p=Math.floor(d/25);e.push({date:r.toISOString().split("T")[0],day:t[i],sales:p,orders:f,revenue:Math.round(d*100)/100,dayOfWeek:i})}return e},sle=ole(),lle=(e,t,n,r)=>{const i=new Date;i.setHours(0,0,0,0);let s=[];switch(t){case"dia":s=e.filter(p=>p.date===i.toISOString().split("T")[0]);break;case"semana":const l=new Date(i);l.setDate(i.getDate()-i.getDay());const u=new Date(l);u.setDate(l.getDate()+6),s=e.filter(p=>{const g=new Date(p.date);return g>=l&&g<=u});break;case"mes":const d=new Date(i.getFullYear(),i.getMonth(),1),f=new Date(i.getFullYear(),i.getMonth()+1,0);s=e.filter(p=>{const g=new Date(p.date);return g>=d&&g<=f});break;case"custom":if(n&&r){const p=new Date(n),g=new Date(r);p.setHours(0,0,0,0),g.setHours(23,59,59,999),s=e.filter(v=>{const x=new Date(v.date);return x>=p&&x<=g})}break}return s.length>0?s:e.slice(-7)},cle=e=>{const t=e.reduce((s,l)=>s+l.revenue,0),n=e.reduce((s,l)=>s+l.orders,0),r=e.reduce((s,l)=>s+l.sales,0),i=n>0?t/n:0;if(e.length>=2){const s=e.slice(0,Math.floor(e.length/2)),l=e.slice(Math.floor(e.length/2)),u=s.reduce((p,g)=>p+g.revenue,0),d=l.reduce((p,g)=>p+g.revenue,0),f=u>0?(d-u)/u*100:0;return{totalRevenue:t,totalOrders:n,totalSales:r,averageOrderValue:i,growth:Math.round(f*10)/10}}return{totalRevenue:t,totalOrders:n,totalSales:r,averageOrderValue:i,growth:0}},ule=[{id:"13",name:"Xis Filé",quantity:45,revenue:1350,category:"xis"},{id:"6",name:"Cachorro-Quente Filé",quantity:38,revenue:1026,category:"cachorro-quente"},{id:"14",name:"Xis Filé com Bacon",quantity:32,revenue:1056,category:"xis"},{id:"12",name:"Xis Bacon",quantity:28,revenue:756,category:"xis"},{id:"7",name:"Cachorro-Quente Filé com Bacon",quantity:25,revenue:750,category:"cachorro-quente"},{id:"2",name:"Cachorro-Quente Bacon",quantity:22,revenue:484,category:"cachorro-quente"},{id:"9",name:"Xis Especial",quantity:20,revenue:440,category:"xis"},{id:"1",name:"Cachorro-Quente Especial",quantity:18,revenue:342,category:"cachorro-quente"},{id:"18",name:"Coca-Cola Gelada",quantity:65,revenue:448.5,category:"drinks"},{id:"19",name:"Refrigerante 2L",quantity:15,revenue:180,category:"drinks"}],Y0=[{category:"Xis",revenue:3252,percentage:45},{category:"Cachorro-Quente",revenue:2602,percentage:36},{category:"Bebidas",revenue:628.5,percentage:9},{category:"Combos",revenue:517.5,percentage:10}];function dle(){const{isAuthenticated:e}=Dr(),[,t]=It(),[n,r]=T.useState("semana"),[i,s]=T.useState(),[l,u]=T.useState();if(!e)return t("/admin/login"),null;const d=(x,A,w)=>{r(x),A&&s(A),w&&u(w)},f=lle(sle,n,i,l),p=cle(f),g=["#FF6B35","#F7931E","#FDB913","#37B7C3"],v=()=>({dia:"Hoje",semana:"Esta Semana",mes:"Este Mês",custom:`${i?.toLocaleDateString("pt-BR")} a ${l?.toLocaleDateString("pt-BR")}`})[n]||"Selecione";return m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:43",className:"min-h-screen bg-background",children:[m.jsx("header",{"data-loc":"client/src/pages/AdminReports.tsx:45",className:"bg-white border-b border-border sticky top-0 z-50 shadow-sm",children:m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:46",className:"max-w-7xl mx-auto px-6 py-4 flex items-center gap-4",children:[m.jsx("button",{"data-loc":"client/src/pages/AdminReports.tsx:47",onClick:()=>t("/admin/dashboard"),className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center hover:bg-secondary/80 transition-colors",children:m.jsx(Kn,{"data-loc":"client/src/pages/AdminReports.tsx:51",size:20})}),m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:53",children:[m.jsx("h1",{"data-loc":"client/src/pages/AdminReports.tsx:54",className:"text-2xl font-bold text-foreground",children:"Relatórios de Vendas"}),m.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:55",className:"text-sm text-muted-foreground",children:["Período: ",v()]})]})]})}),m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:60",className:"max-w-7xl mx-auto px-6 py-8",children:[m.jsx(ile,{"data-loc":"client/src/pages/AdminReports.tsx:62",onPeriodChange:d,currentPeriod:n}),m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:65",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:[m.jsx("div",{"data-loc":"client/src/pages/AdminReports.tsx:66",className:"bg-gradient-to-br from-blue-50 to-blue-100 rounded-2xl p-6 border border-blue-200",children:m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:67",className:"flex items-center justify-between",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:68",children:[m.jsx("p",{"data-loc":"client/src/pages/AdminReports.tsx:69",className:"text-sm text-blue-600 font-medium",children:"Faturamento"}),m.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:70",className:"text-3xl font-bold text-blue-900 mt-2",children:["R$ ",p.totalRevenue.toFixed(2)]})]}),m.jsx(_3,{"data-loc":"client/src/pages/AdminReports.tsx:72",size:40,className:"text-blue-200"})]})}),m.jsx("div",{"data-loc":"client/src/pages/AdminReports.tsx:76",className:"bg-gradient-to-br from-green-50 to-green-100 rounded-2xl p-6 border border-green-200",children:m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:77",className:"flex items-center justify-between",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:78",children:[m.jsx("p",{"data-loc":"client/src/pages/AdminReports.tsx:79",className:"text-sm text-green-600 font-medium",children:"Pedidos"}),m.jsx("p",{"data-loc":"client/src/pages/AdminReports.tsx:80",className:"text-3xl font-bold text-green-900 mt-2",children:p.totalOrders})]}),m.jsx(m1,{"data-loc":"client/src/pages/AdminReports.tsx:82",size:40,className:"text-green-200"})]})}),m.jsx("div",{"data-loc":"client/src/pages/AdminReports.tsx:86",className:"bg-gradient-to-br from-purple-50 to-purple-100 rounded-2xl p-6 border border-purple-200",children:m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:87",className:"flex items-center justify-between",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:88",children:[m.jsx("p",{"data-loc":"client/src/pages/AdminReports.tsx:89",className:"text-sm text-purple-600 font-medium",children:"Ticket Médio"}),m.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:90",className:"text-3xl font-bold text-purple-900 mt-2",children:["R$ ",p.averageOrderValue.toFixed(2)]})]}),m.jsx(p1,{"data-loc":"client/src/pages/AdminReports.tsx:92",size:40,className:"text-purple-200"})]})}),m.jsx("div",{"data-loc":"client/src/pages/AdminReports.tsx:96",className:`bg-gradient-to-br ${p.growth>0?"from-emerald-50 to-emerald-100":"from-red-50 to-red-100"} rounded-2xl p-6 border ${p.growth>0?"border-emerald-200":"border-red-200"}`,children:m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:97",className:"flex items-center justify-between",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:98",children:[m.jsx("p",{"data-loc":"client/src/pages/AdminReports.tsx:99",className:`text-sm font-medium ${p.growth>0?"text-emerald-600":"text-red-600"}`,children:"Crescimento"}),m.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:100",className:`text-3xl font-bold mt-2 ${p.growth>0?"text-emerald-900":"text-red-900"}`,children:[p.growth>0?"+":"",p.growth.toFixed(1),"%"]})]}),m.jsx(sq,{"data-loc":"client/src/pages/AdminReports.tsx:104",size:40,className:p.growth>0?"text-emerald-200":"text-red-200"})]})})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:110",className:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:112",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[m.jsxs("h2",{"data-loc":"client/src/pages/AdminReports.tsx:113",className:"text-lg font-bold text-foreground mb-4",children:["Faturamento - ",v()]}),m.jsx(Jb,{"data-loc":"client/src/pages/AdminReports.tsx:114",width:"100%",height:300,children:m.jsxs(nle,{"data-loc":"client/src/pages/AdminReports.tsx:115",data:f,children:[m.jsx(Lw,{"data-loc":"client/src/pages/AdminReports.tsx:116",strokeDasharray:"3 3",stroke:"#e5e7eb"}),m.jsx(il,{"data-loc":"client/src/pages/AdminReports.tsx:117",dataKey:"day",stroke:"#9ca3af"}),m.jsx(sl,{"data-loc":"client/src/pages/AdminReports.tsx:118",stroke:"#9ca3af"}),m.jsx(ur,{"data-loc":"client/src/pages/AdminReports.tsx:119",contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"8px"},formatter:x=>`R$ ${typeof x=="number"?x.toFixed(2):x}`}),m.jsx(io,{"data-loc":"client/src/pages/AdminReports.tsx:123"}),m.jsx(nd,{"data-loc":"client/src/pages/AdminReports.tsx:124",type:"monotone",dataKey:"revenue",stroke:"#FF6B35",strokeWidth:3,dot:{fill:"#FF6B35",r:5},activeDot:{r:7},name:"Faturamento"})]})})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:138",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[m.jsxs("h2",{"data-loc":"client/src/pages/AdminReports.tsx:139",className:"text-lg font-bold text-foreground mb-4",children:["Pedidos - ",v()]}),m.jsx(Jb,{"data-loc":"client/src/pages/AdminReports.tsx:140",width:"100%",height:300,children:m.jsxs(rle,{"data-loc":"client/src/pages/AdminReports.tsx:141",data:f,children:[m.jsx(Lw,{"data-loc":"client/src/pages/AdminReports.tsx:142",strokeDasharray:"3 3",stroke:"#e5e7eb"}),m.jsx(il,{"data-loc":"client/src/pages/AdminReports.tsx:143",dataKey:"day",stroke:"#9ca3af"}),m.jsx(sl,{"data-loc":"client/src/pages/AdminReports.tsx:144",stroke:"#9ca3af"}),m.jsx(ur,{"data-loc":"client/src/pages/AdminReports.tsx:145",contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"8px"},formatter:x=>x}),m.jsx(To,{"data-loc":"client/src/pages/AdminReports.tsx:149",dataKey:"orders",fill:"#F7931E",radius:[8,8,0,0],name:"Quantidade de Pedidos"})]})})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:156",className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:158",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[m.jsx("h2",{"data-loc":"client/src/pages/AdminReports.tsx:159",className:"text-lg font-bold text-foreground mb-4",children:"Faturamento por Categoria"}),m.jsx(Jb,{"data-loc":"client/src/pages/AdminReports.tsx:160",width:"100%",height:300,children:m.jsxs(ale,{"data-loc":"client/src/pages/AdminReports.tsx:161",children:[m.jsx(ka,{"data-loc":"client/src/pages/AdminReports.tsx:162",data:Y0,cx:"50%",cy:"50%",labelLine:!1,label:({category:x,percentage:A})=>`${x} ${A}%`,outerRadius:100,fill:"#8884d8",dataKey:"revenue",children:Y0.map((x,A)=>m.jsx(Ip,{"data-loc":"client/src/pages/AdminReports.tsx:173",fill:g[A%g.length]},`cell-${A}`))}),m.jsx(ur,{"data-loc":"client/src/pages/AdminReports.tsx:176",formatter:x=>`R$ ${typeof x=="number"?x.toFixed(2):x}`})]})})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:182",className:"bg-card rounded-2xl p-6 border border-border shadow-sm",children:[m.jsx("h2",{"data-loc":"client/src/pages/AdminReports.tsx:183",className:"text-lg font-bold text-foreground mb-4",children:"Produtos Mais Vendidos"}),m.jsx("div",{"data-loc":"client/src/pages/AdminReports.tsx:184",className:"space-y-3 max-h-80 overflow-y-auto",children:ule.slice(0,8).map((x,A)=>m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:186",className:"flex items-center justify-between p-3 bg-secondary/30 rounded-lg",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:187",className:"flex-1",children:[m.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:188",className:"text-sm font-bold text-foreground",children:[A+1,". ",x.name]}),m.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:189",className:"text-xs text-muted-foreground",children:[x.quantity," unidades vendidas"]})]}),m.jsx("div",{"data-loc":"client/src/pages/AdminReports.tsx:191",className:"text-right",children:m.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:192",className:"text-sm font-bold text-primary",children:["R$ ",x.revenue.toFixed(2)]})})]},x.id))})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:201",className:"mt-8 bg-card rounded-2xl p-6 border border-border shadow-sm",children:[m.jsx("h2",{"data-loc":"client/src/pages/AdminReports.tsx:202",className:"text-lg font-bold text-foreground mb-4",children:"Desempenho por Categoria"}),m.jsx("div",{"data-loc":"client/src/pages/AdminReports.tsx:203",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:Y0.map((x,A)=>m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:205",className:"p-4 rounded-xl border border-border bg-secondary/30",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminReports.tsx:206",className:"flex items-center gap-3 mb-2",children:[m.jsx("div",{"data-loc":"client/src/pages/AdminReports.tsx:207",className:"w-4 h-4 rounded-full",style:{backgroundColor:g[A]}}),m.jsx("p",{"data-loc":"client/src/pages/AdminReports.tsx:211",className:"font-bold text-foreground",children:x.category})]}),m.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:213",className:"text-2xl font-bold text-primary",children:["R$ ",x.revenue.toFixed(2)]}),m.jsxs("p",{"data-loc":"client/src/pages/AdminReports.tsx:214",className:"text-xs text-muted-foreground mt-1",children:[x.percentage,"% do faturamento"]})]},x.category))})]})]})]})}function fle(){const{isAuthenticated:e}=Dr(),[,t]=It(),[n,r]=T.useState(()=>{const d=localStorage.getItem("dogmelina_categories");return d?JSON.parse(d):[{id:1,name:"Cachorro-quente",slug:"cachorro-quente"},{id:2,name:"Xis",slug:"xis"},{id:3,name:"Combos",slug:"combos"},{id:4,name:"Bebidas",slug:"drinks"}]}),[i,s]=T.useState("");if(T.useEffect(()=>{localStorage.setItem("dogmelina_categories",JSON.stringify(n))},[n]),!e)return t("/admin/login"),null;const l=()=>{if(!i.trim())return;const d=i.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-");r([...n,{id:Date.now(),name:i,slug:d}]),s(""),He.success("Categoria adicionada!")},u=d=>{confirm("Deseja excluir esta categoria?")&&(r(n.filter(f=>f.id!==d)),He.error("Categoria removida"))};return m.jsxs("div",{"data-loc":"client/src/pages/AdminCategories.tsx:49",className:"min-h-screen bg-background",children:[m.jsxs("header",{"data-loc":"client/src/pages/AdminCategories.tsx:50",className:"bg-white border-b border-border sticky top-0 z-50 px-6 py-4 flex items-center gap-4",children:[m.jsx(ye,{"data-loc":"client/src/pages/AdminCategories.tsx:51",variant:"ghost",size:"icon",onClick:()=>t("/admin/dashboard"),children:m.jsx(Kn,{"data-loc":"client/src/pages/AdminCategories.tsx:51",size:20})}),m.jsxs("h1",{"data-loc":"client/src/pages/AdminCategories.tsx:52",className:"text-xl font-bold flex items-center gap-2",children:[m.jsx(N3,{"data-loc":"client/src/pages/AdminCategories.tsx:52",size:20,className:"text-primary"})," Categorias"]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminCategories.tsx:55",className:"max-w-2xl mx-auto p-6",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminCategories.tsx:56",className:"flex gap-2 mb-8",children:[m.jsx(Ue,{"data-loc":"client/src/pages/AdminCategories.tsx:57",placeholder:"Nome da nova categoria...",value:i,onChange:d=>s(d.target.value),className:"h-12 rounded-xl"}),m.jsxs(ye,{"data-loc":"client/src/pages/AdminCategories.tsx:63",onClick:l,className:"h-12 rounded-xl px-6",children:[m.jsx(Pa,{"data-loc":"client/src/pages/AdminCategories.tsx:63",size:20,className:"mr-2"})," Adicionar"]})]}),m.jsx("div",{"data-loc":"client/src/pages/AdminCategories.tsx:66",className:"grid gap-3",children:n.map(d=>m.jsxs(fn,{"data-loc":"client/src/pages/AdminCategories.tsx:68",className:"p-4 flex items-center justify-between rounded-2xl border-border shadow-sm",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminCategories.tsx:69",children:[m.jsx("p",{"data-loc":"client/src/pages/AdminCategories.tsx:70",className:"font-bold text-lg",children:d.name}),m.jsxs("p",{"data-loc":"client/src/pages/AdminCategories.tsx:71",className:"text-xs text-muted-foreground",children:["Slug: ",d.slug]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminCategories.tsx:73",className:"flex gap-2",children:[m.jsx(ye,{"data-loc":"client/src/pages/AdminCategories.tsx:74",variant:"ghost",size:"icon",className:"text-muted-foreground",children:m.jsx(Qc,{"data-loc":"client/src/pages/AdminCategories.tsx:74",size:18})}),m.jsx(ye,{"data-loc":"client/src/pages/AdminCategories.tsx:75",variant:"ghost",size:"icon",onClick:()=>u(d.id),className:"text-destructive",children:m.jsx(Hu,{"data-loc":"client/src/pages/AdminCategories.tsx:75",size:18})})]})]},d.id))})]})]})}function hle(){const{isAuthenticated:e}=Dr(),[,t]=It(),[n,r]=T.useState(()=>{const p=localStorage.getItem("dogmelina_delivery_fees");return p?JSON.parse(p):[{id:1,neighborhood:"Centro",fee:5},{id:2,neighborhood:"Vila Nova",fee:7},{id:3,neighborhood:"Jardim América",fee:8}]}),[i,s]=T.useState(""),[l,u]=T.useState("");if(T.useEffect(()=>{localStorage.setItem("dogmelina_delivery_fees",JSON.stringify(n))},[n]),!e)return t("/admin/login"),null;const d=()=>{!i||!l||(r([...n,{id:Date.now(),neighborhood:i,fee:parseFloat(l)}]),s(""),u(""),He.success("Taxa adicionada!"))},f=p=>{r(n.filter(g=>g.id!==p)),He.error("Taxa removida")};return m.jsxs("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:47",className:"min-h-screen bg-background",children:[m.jsxs("header",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:48",className:"bg-white border-b border-border sticky top-0 z-50 px-6 py-4 flex items-center gap-4",children:[m.jsx(ye,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:49",variant:"ghost",size:"icon",onClick:()=>t("/admin/dashboard"),children:m.jsx(Kn,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:49",size:20})}),m.jsxs("h1",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:50",className:"text-xl font-bold flex items-center gap-2",children:[m.jsx(mr,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:50",size:20,className:"text-primary"})," Taxas de Entrega"]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:53",className:"max-w-2xl mx-auto p-6",children:[m.jsxs(fn,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:54",className:"p-6 rounded-2xl border-border shadow-sm mb-8",children:[m.jsx("h2",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:55",className:"font-bold mb-4",children:"Adicionar Novo Bairro"}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:56",className:"grid grid-cols-2 gap-4 mb-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:57",children:[m.jsx("label",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:58",className:"text-xs font-bold mb-1 block",children:"Nome do Bairro"}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:59",value:i,onChange:p=>s(p.target.value),placeholder:"Ex: Centro",className:"h-12 rounded-xl"})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:61",children:[m.jsx("label",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:62",className:"text-xs font-bold mb-1 block",children:"Taxa (R$)"}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:63",type:"number",value:l,onChange:p=>u(p.target.value),placeholder:"0.00",className:"h-12 rounded-xl"})]})]}),m.jsxs(ye,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:66",onClick:d,className:"w-full h-12 rounded-xl",children:[m.jsx(Pa,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:66",size:20,className:"mr-2"})," Adicionar Bairro"]})]}),m.jsx("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:69",className:"grid gap-3",children:n.map(p=>m.jsxs(fn,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:71",className:"p-4 flex items-center justify-between rounded-2xl border-border shadow-sm",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:72",className:"flex items-center gap-4",children:[m.jsx("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:73",className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary",children:m.jsx(mr,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:73",size:20})}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:74",children:[m.jsx("p",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:75",className:"font-bold text-lg",children:p.neighborhood}),m.jsxs("p",{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:76",className:"text-sm font-black text-primary",children:["R$ ",p.fee.toFixed(2)]})]})]}),m.jsx(ye,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:79",variant:"ghost",size:"icon",onClick:()=>f(p.id),className:"text-destructive",children:m.jsx(Hu,{"data-loc":"client/src/pages/AdminDeliveryFees.tsx:79",size:18})})]},p.id))})]})]})}function ple(){const{isAuthenticated:e}=Dr(),[,t]=It(),[n,r]=T.useState(""),[i,s]=T.useState([]);if(T.useEffect(()=>{const u=JSON.parse(localStorage.getItem("dogmelina_admin_orders")||"[]"),d=Array.from(new Set(u.map(f=>f.customerPhone))).map(f=>{const p=u.find(x=>x.customerPhone===f),g=u.filter(x=>x.customerPhone===f).reduce((x,A)=>x+A.total,0),v=u.filter(x=>x.customerPhone===f).length;return{name:p.customerName,phone:f,address:p.address,totalSpent:g,orderCount:v}});s(d)},[]),!e)return t("/admin/login"),null;const l=i.filter(u=>u.name.toLowerCase().includes(n.toLowerCase())||u.phone.includes(n));return m.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:46",className:"min-h-screen bg-background",children:[m.jsxs("header",{"data-loc":"client/src/pages/AdminCustomers.tsx:47",className:"bg-white border-b border-border sticky top-0 z-50 px-6 py-4 flex items-center gap-4",children:[m.jsx(ye,{"data-loc":"client/src/pages/AdminCustomers.tsx:48",variant:"ghost",size:"icon",onClick:()=>t("/admin/dashboard"),children:m.jsx(Kn,{"data-loc":"client/src/pages/AdminCustomers.tsx:48",size:20})}),m.jsxs("h1",{"data-loc":"client/src/pages/AdminCustomers.tsx:49",className:"text-xl font-bold flex items-center gap-2",children:[m.jsx(ks,{"data-loc":"client/src/pages/AdminCustomers.tsx:49",size:20,className:"text-primary"})," Clientes"]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:52",className:"max-w-4xl mx-auto p-6",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:53",className:"relative mb-8",children:[m.jsx(hl,{"data-loc":"client/src/pages/AdminCustomers.tsx:54",className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground",size:20}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminCustomers.tsx:55",placeholder:"Buscar por nome ou telefone...",value:n,onChange:u=>r(u.target.value),className:"h-14 rounded-2xl pl-12 bg-white border-border shadow-sm"})]}),m.jsx("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:63",className:"grid gap-4",children:l.length===0?m.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:65",className:"text-center py-20 opacity-30",children:[m.jsx(ks,{"data-loc":"client/src/pages/AdminCustomers.tsx:66",size:64,className:"mx-auto mb-4"}),m.jsx("p",{"data-loc":"client/src/pages/AdminCustomers.tsx:67",children:"Nenhum cliente encontrado"})]}):l.map((u,d)=>m.jsxs(fn,{"data-loc":"client/src/pages/AdminCustomers.tsx:71",className:"p-6 rounded-3xl border-border shadow-sm hover:shadow-md transition-all",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:72",className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:73",className:"flex items-center gap-4",children:[m.jsx("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:74",className:"w-14 h-14 rounded-2xl bg-primary/10 flex items-center justify-center text-primary font-black text-xl",children:u.name.charAt(0)}),m.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:77",children:[m.jsx("h3",{"data-loc":"client/src/pages/AdminCustomers.tsx:78",className:"font-black text-lg",children:u.name}),m.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:79",className:"flex items-center gap-4 mt-1",children:[m.jsxs("p",{"data-loc":"client/src/pages/AdminCustomers.tsx:80",className:"text-sm text-muted-foreground flex items-center gap-1",children:[m.jsx(yp,{"data-loc":"client/src/pages/AdminCustomers.tsx:80",size:14})," ",u.phone]}),m.jsxs("p",{"data-loc":"client/src/pages/AdminCustomers.tsx:81",className:"text-sm text-muted-foreground flex items-center gap-1",children:[m.jsx(Vu,{"data-loc":"client/src/pages/AdminCustomers.tsx:81",size:14})," ",u.orderCount," pedidos"]})]})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:85",className:"text-right",children:[m.jsx("p",{"data-loc":"client/src/pages/AdminCustomers.tsx:86",className:"text-xs text-muted-foreground uppercase font-bold",children:"Total Gasto"}),m.jsxs("p",{"data-loc":"client/src/pages/AdminCustomers.tsx:87",className:"text-2xl font-black text-primary",children:["R$ ",u.totalSpent.toFixed(2)]})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminCustomers.tsx:90",className:"mt-4 pt-4 border-t border-border/50 flex items-start gap-2 text-sm text-muted-foreground",children:[m.jsx(mr,{"data-loc":"client/src/pages/AdminCustomers.tsx:91",size:16,className:"shrink-0 mt-0.5"}),m.jsx("p",{"data-loc":"client/src/pages/AdminCustomers.tsx:92",children:u.address})]})]},d))})]})]})}var dm="Switch",[mle]=Na(dm),[gle,vle]=mle(dm),rL=T.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:i,defaultChecked:s,required:l,disabled:u,value:d="on",onCheckedChange:f,form:p,...g}=e,[v,x]=T.useState(null),A=At(t,j=>x(j)),w=T.useRef(!1),S=v?p||!!v.closest("form"):!0,[O,E]=gl({prop:i,defaultProp:s??!1,onChange:f,caller:dm});return m.jsxs(gle,{scope:n,checked:O,disabled:u,children:[m.jsx(Ze.button,{type:"button",role:"switch","aria-checked":O,"aria-required":l,"data-state":sL(O),"data-disabled":u?"":void 0,disabled:u,value:d,...g,ref:A,onClick:et(e.onClick,j=>{E(N=>!N),S&&(w.current=j.isPropagationStopped(),w.current||j.stopPropagation())})}),S&&m.jsx(oL,{control:v,bubbles:!w.current,name:r,value:d,checked:O,required:l,disabled:u,form:p,style:{transform:"translateX(-100%)"}})]})});rL.displayName=dm;var aL="SwitchThumb",iL=T.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,i=vle(aL,n);return m.jsx(Ze.span,{"data-state":sL(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})});iL.displayName=aL;var yle="SwitchBubbleInput",oL=T.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},s)=>{const l=T.useRef(null),u=At(l,s),d=PS(n),f=NS(t);return T.useEffect(()=>{const p=l.current;if(!p)return;const g=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(g,"checked").set;if(d!==n&&x){const A=new Event("click",{bubbles:r});x.call(p,n),p.dispatchEvent(A)}},[d,n,r]),m.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:u,style:{...i.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});oL.displayName=yle;function sL(e){return e?"checked":"unchecked"}var xle=rL,ble=iL;function wle({className:e,...t}){return m.jsx(xle,{"data-loc":"client/src/components/ui/switch.tsx:11","data-slot":"switch",className:Be("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:m.jsx(ble,{"data-loc":"client/src/components/ui/switch.tsx:19","data-slot":"switch-thumb",className:Be("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}function Sle(){const{isAuthenticated:e}=Dr(),[,t]=It(),[n,r]=T.useState(()=>{const s=localStorage.getItem("dogmelina_payments");return s?JSON.parse(s):[{id:"dinheiro",name:"Dinheiro",icon:"Banknote",active:!0},{id:"cartao",name:"Cartão de Crédito/Débito",icon:"CreditCard",active:!0},{id:"pix",name:"PIX",icon:"QrCode",active:!0}]});if(T.useEffect(()=>{localStorage.setItem("dogmelina_payments",JSON.stringify(n))},[n]),!e)return t("/admin/login"),null;const i=s=>{r(n.map(l=>l.id===s?{...l,active:!l.active}:l)),He.success("Configuração atualizada")};return m.jsxs("div",{"data-loc":"client/src/pages/AdminPayments.tsx:38",className:"min-h-screen bg-background",children:[m.jsxs("header",{"data-loc":"client/src/pages/AdminPayments.tsx:39",className:"bg-white border-b border-border sticky top-0 z-50 px-6 py-4 flex items-center gap-4",children:[m.jsx(ye,{"data-loc":"client/src/pages/AdminPayments.tsx:40",variant:"ghost",size:"icon",onClick:()=>t("/admin/dashboard"),children:m.jsx(Kn,{"data-loc":"client/src/pages/AdminPayments.tsx:40",size:20})}),m.jsxs("h1",{"data-loc":"client/src/pages/AdminPayments.tsx:41",className:"text-xl font-bold flex items-center gap-2",children:[m.jsx(lh,{"data-loc":"client/src/pages/AdminPayments.tsx:41",size:20,className:"text-primary"})," Formas de Pagamento"]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminPayments.tsx:44",className:"max-w-2xl mx-auto p-6",children:[m.jsx("div",{"data-loc":"client/src/pages/AdminPayments.tsx:45",className:"grid gap-4",children:n.map(s=>m.jsxs(fn,{"data-loc":"client/src/pages/AdminPayments.tsx:47",className:"p-6 rounded-3xl border-border shadow-sm flex items-center justify-between",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminPayments.tsx:48",className:"flex items-center gap-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminPayments.tsx:49",className:"w-12 h-12 rounded-2xl bg-primary/10 flex items-center justify-center text-primary",children:[s.id==="dinheiro"&&m.jsx(T3,{"data-loc":"client/src/pages/AdminPayments.tsx:50",size:24}),s.id==="cartao"&&m.jsx(lh,{"data-loc":"client/src/pages/AdminPayments.tsx:51",size:24}),s.id==="pix"&&m.jsx(AS,{"data-loc":"client/src/pages/AdminPayments.tsx:52",size:24})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminPayments.tsx:54",children:[m.jsx("p",{"data-loc":"client/src/pages/AdminPayments.tsx:55",className:"font-black text-lg",children:s.name}),m.jsx("p",{"data-loc":"client/src/pages/AdminPayments.tsx:56",className:"text-xs text-muted-foreground",children:s.active?"Ativo no Checkout":"Desativado"})]})]}),m.jsx(wle,{"data-loc":"client/src/pages/AdminPayments.tsx:59",checked:s.active,onCheckedChange:()=>i(s.id)})]},s.id))}),m.jsxs("div",{"data-loc":"client/src/pages/AdminPayments.tsx:64",className:"mt-8 p-6 bg-primary/5 rounded-3xl border border-primary/10",children:[m.jsx("h3",{"data-loc":"client/src/pages/AdminPayments.tsx:65",className:"font-bold text-primary mb-2",children:"Dica Profissional"}),m.jsx("p",{"data-loc":"client/src/pages/AdminPayments.tsx:66",className:"text-sm text-muted-foreground leading-relaxed",children:"Mantenha apenas as formas de pagamento que você realmente aceita para evitar cancelamentos de pedidos. O PIX é a forma mais rápida para delivery!"})]})]})]})}function Ale(){const[e,t]=T.useState([]),[n,r]=T.useState(null);T.useEffect(()=>{const l=()=>{const d=JSON.parse(localStorage.getItem("dogmelina_admin_orders")||"[]"),f=d.filter(v=>v.status==="pronto"&&v.senha).slice(0,8),p=d.filter(v=>v.status==="preparando"&&v.senha).slice(0,8);t([...f,...p]);const g=f[0]?.id;g&&g!==n&&(new Audio("/sounds/notification.mp3").play().catch(()=>{}),r(g))};l();const u=setInterval(l,3e3);return()=>clearInterval(u)},[n]);const i=e.filter(l=>l.status==="pronto"),s=e.filter(l=>l.status==="preparando");return m.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:35",className:"h-screen bg-[#0f172a] text-white flex flex-col overflow-hidden font-sans",children:[m.jsxs("header",{"data-loc":"client/src/pages/AdminTV.tsx:37",className:"bg-primary p-8 flex justify-between items-center shadow-2xl",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:38",className:"flex items-center gap-6",children:[m.jsx("div",{"data-loc":"client/src/pages/AdminTV.tsx:39",className:"w-20 h-20 bg-white rounded-3xl flex items-center justify-center text-primary font-black text-4xl shadow-lg",children:"DM"}),m.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:40",children:[m.jsx("h1",{"data-loc":"client/src/pages/AdminTV.tsx:41",className:"text-5xl font-black tracking-tighter",children:"DOG MELINA"}),m.jsx("p",{"data-loc":"client/src/pages/AdminTV.tsx:42",className:"text-white/70 text-xl font-bold uppercase tracking-widest",children:"Acompanhe seu Pedido"})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:45",className:"text-right",children:[m.jsx("p",{"data-loc":"client/src/pages/AdminTV.tsx:46",className:"text-6xl font-black",children:new Date().toLocaleTimeString("pt-BR",{hour:"2-2-digit",minute:"2-2-digit"})}),m.jsx("p",{"data-loc":"client/src/pages/AdminTV.tsx:47",className:"text-white/50 font-bold",children:new Date().toLocaleDateString("pt-BR",{weekday:"long"})})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:51",className:"flex-1 flex p-8 gap-8",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:53",className:"flex-1 flex flex-col gap-6",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:54",className:"bg-green-500 p-6 rounded-[40px] flex items-center gap-4 shadow-lg shadow-green-500/20",children:[m.jsx(F9,{"data-loc":"client/src/pages/AdminTV.tsx:55",size:48,className:"animate-bounce"}),m.jsx("h2",{"data-loc":"client/src/pages/AdminTV.tsx:56",className:"text-5xl font-black uppercase",children:"Prontos / Retirar"})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:58",className:"grid grid-cols-2 gap-6",children:[i.map(l=>m.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:60",className:"bg-white text-[#0f172a] p-10 rounded-[40px] flex flex-col items-center justify-center shadow-2xl animate-pulse border-8 border-green-500",children:[m.jsx("span",{"data-loc":"client/src/pages/AdminTV.tsx:61",className:"text-9xl font-black leading-none",children:l.senha}),m.jsx("span",{"data-loc":"client/src/pages/AdminTV.tsx:62",className:"text-2xl font-bold mt-4 opacity-50",children:l.customerName.split(" ")[0]})]},l.id)),i.length===0&&m.jsx("div",{"data-loc":"client/src/pages/AdminTV.tsx:66",className:"col-span-2 h-64 flex items-center justify-center opacity-20",children:m.jsx("p",{"data-loc":"client/src/pages/AdminTV.tsx:67",className:"text-4xl font-bold italic",children:"Aguardando pedidos..."})})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:74",className:"w-[450px] flex flex-col gap-6",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:75",className:"bg-orange-500 p-6 rounded-[40px] flex items-center gap-4 shadow-lg shadow-orange-500/20",children:[m.jsx(fl,{"data-loc":"client/src/pages/AdminTV.tsx:76",size:48}),m.jsx("h2",{"data-loc":"client/src/pages/AdminTV.tsx:77",className:"text-4xl font-black uppercase",children:"Em Preparo"})]}),m.jsx("div",{"data-loc":"client/src/pages/AdminTV.tsx:79",className:"flex flex-col gap-4",children:s.map(l=>m.jsxs("div",{"data-loc":"client/src/pages/AdminTV.tsx:81",className:"bg-white/10 p-6 rounded-[32px] flex justify-between items-center border border-white/10",children:[m.jsx("span",{"data-loc":"client/src/pages/AdminTV.tsx:82",className:"text-6xl font-black",children:l.senha}),m.jsx(xn,{"data-loc":"client/src/pages/AdminTV.tsx:83",className:"bg-orange-500/20 text-orange-500 border-none text-xl px-4 py-2",children:"PREPARANDO"})]},l.id))})]})]}),m.jsx("footer",{"data-loc":"client/src/pages/AdminTV.tsx:91",className:"bg-white/5 p-6 text-center border-t border-white/10",children:m.jsxs("p",{"data-loc":"client/src/pages/AdminTV.tsx:92",className:"text-2xl font-bold text-white/40 flex items-center justify-center gap-4",children:[m.jsx(ch,{"data-loc":"client/src/pages/AdminTV.tsx:93",size:24})," Bom apetite! Peça também pelo nosso site: ",m.jsx("span",{"data-loc":"client/src/pages/AdminTV.tsx:93",className:"text-primary",children:"www.dogmelina.com.br"})]})})]})}function jle(){const{isAuthenticated:e}=Dr(),[,t]=It(),[n,r]=T.useState(""),[i,s]=T.useState(()=>{const d=localStorage.getItem("dogmelina_drivers");return d?JSON.parse(d):[{id:"driver_01",name:"João Silva",phone:"(51) 99999-9999",status:"disponivel",vehicle:"Moto Honda CG",totalDeliveries:145,balance:75},{id:"driver_02",name:"Ricardo Souza",phone:"(51) 88888-8888",status:"ocupado",vehicle:"Moto Yamaha Fazer",totalDeliveries:89,balance:42},{id:"driver_03",name:"Marcos Oliveira",phone:"(51) 77777-7777",status:"offline",vehicle:"Bicicleta Elétrica",totalDeliveries:32,balance:0}]});if(T.useEffect(()=>{localStorage.setItem("dogmelina_drivers",JSON.stringify(i))},[i]),!e)return t("/admin/login"),null;const l=i.filter(d=>d.name.toLowerCase().includes(n.toLowerCase())),u=d=>{s(i.map(f=>{if(f.id===d){const p=f.status==="disponivel"?"offline":"disponivel";return{...f,status:p}}return f})),He.success("Status do entregador atualizado")};return m.jsxs("div",{"data-loc":"client/src/pages/AdminDrivers.tsx:61",className:"min-h-screen bg-secondary/10 pb-24",children:[m.jsxs("header",{"data-loc":"client/src/pages/AdminDrivers.tsx:62",className:"bg-white px-6 pt-8 pb-6 rounded-b-[40px] shadow-sm sticky top-0 z-50",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminDrivers.tsx:63",className:"flex justify-between items-center mb-6",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminDrivers.tsx:64",className:"flex items-center gap-4",children:[m.jsx(ye,{"data-loc":"client/src/pages/AdminDrivers.tsx:65",variant:"ghost",size:"icon",onClick:()=>t("/admin/dashboard"),className:"rounded-full",children:m.jsx(Kn,{"data-loc":"client/src/pages/AdminDrivers.tsx:66",size:20})}),m.jsx("h1",{"data-loc":"client/src/pages/AdminDrivers.tsx:68",className:"text-xl font-black",children:"Gestão de Entregadores"})]}),m.jsxs(ye,{"data-loc":"client/src/pages/AdminDrivers.tsx:70",className:"rounded-xl gap-2 font-bold",children:[m.jsx(Pa,{"data-loc":"client/src/pages/AdminDrivers.tsx:70",size:18})," Novo Entregador"]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDrivers.tsx:73",className:"relative",children:[m.jsx(hl,{"data-loc":"client/src/pages/AdminDrivers.tsx:74",className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground",size:20}),m.jsx(Ue,{"data-loc":"client/src/pages/AdminDrivers.tsx:75",placeholder:"Buscar entregador...",className:"pl-12 h-12 rounded-xl bg-secondary/20 border-none font-bold",value:n,onChange:d=>r(d.target.value)})]})]}),m.jsx("div",{"data-loc":"client/src/pages/AdminDrivers.tsx:84",className:"p-6 space-y-4",children:m.jsx("div",{"data-loc":"client/src/pages/AdminDrivers.tsx:85",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:l.map(d=>m.jsxs(fn,{"data-loc":"client/src/pages/AdminDrivers.tsx:87",className:"p-6 rounded-[32px] border-none shadow-sm bg-white relative overflow-hidden",children:[m.jsx("div",{"data-loc":"client/src/pages/AdminDrivers.tsx:88",className:`absolute top-0 left-0 w-1.5 h-full ${d.status==="disponivel"?"bg-green-500":d.status==="ocupado"?"bg-orange-500":"bg-gray-300"}`}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDrivers.tsx:90",className:"flex justify-between items-start mb-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminDrivers.tsx:91",className:"flex items-center gap-3",children:[m.jsx("div",{"data-loc":"client/src/pages/AdminDrivers.tsx:92",className:"w-12 h-12 rounded-2xl bg-secondary/50 flex items-center justify-center text-muted-foreground",children:m.jsx(ya,{"data-loc":"client/src/pages/AdminDrivers.tsx:93",size:24})}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDrivers.tsx:95",children:[m.jsx("h3",{"data-loc":"client/src/pages/AdminDrivers.tsx:96",className:"font-black text-lg",children:d.name}),m.jsx("p",{"data-loc":"client/src/pages/AdminDrivers.tsx:97",className:"text-xs text-muted-foreground font-bold uppercase tracking-tighter",children:d.vehicle})]})]}),m.jsx(xn,{"data-loc":"client/src/pages/AdminDrivers.tsx:100",className:d.status==="disponivel"?"bg-green-500":d.status==="ocupado"?"bg-orange-500":"bg-gray-500",children:d.status.toUpperCase()})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDrivers.tsx:105",className:"grid grid-cols-2 gap-4 mb-6",children:[m.jsxs("div",{"data-loc":"client/src/pages/AdminDrivers.tsx:106",className:"bg-secondary/20 p-3 rounded-2xl",children:[m.jsx("p",{"data-loc":"client/src/pages/AdminDrivers.tsx:107",className:"text-[10px] font-black text-muted-foreground uppercase mb-1",children:"Entregas"}),m.jsx("p",{"data-loc":"client/src/pages/AdminDrivers.tsx:108",className:"text-xl font-black",children:d.totalDeliveries})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDrivers.tsx:110",className:"bg-primary/5 p-3 rounded-2xl",children:[m.jsx("p",{"data-loc":"client/src/pages/AdminDrivers.tsx:111",className:"text-[10px] font-black text-primary uppercase mb-1",children:"Saldo"}),m.jsxs("p",{"data-loc":"client/src/pages/AdminDrivers.tsx:112",className:"text-xl font-black text-primary",children:["R$ ",d.balance.toFixed(2)]})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/AdminDrivers.tsx:116",className:"flex gap-2",children:[m.jsx(ye,{"data-loc":"client/src/pages/AdminDrivers.tsx:117",variant:"outline",className:"flex-1 rounded-xl font-bold border-border",onClick:()=>u(d.id),children:d.status==="offline"?"Ativar":"Desativar"}),m.jsx(ye,{"data-loc":"client/src/pages/AdminDrivers.tsx:120",variant:"outline",className:"w-12 h-12 rounded-xl border-border p-0",children:m.jsx(Qc,{"data-loc":"client/src/pages/AdminDrivers.tsx:120",size:18})}),m.jsx(ye,{"data-loc":"client/src/pages/AdminDrivers.tsx:121",variant:"outline",className:"w-12 h-12 rounded-xl border-border p-0 text-red-500",children:m.jsx(Hu,{"data-loc":"client/src/pages/AdminDrivers.tsx:121",size:18})})]})]},d.id))})})]})}function Ole(){It();const[e,t]=T.useState(()=>localStorage.getItem("driver_logged")==="true"),[n,r]=T.useState("offline"),[i,s]=T.useState([]),[l,u]=T.useState({daily:45,weekly:280,total:1250}),[d,f]=T.useState(null);T.useEffect(()=>{if(e){const A=()=>{const O=JSON.parse(localStorage.getItem("dogmelina_admin_orders")||"[]").filter(j=>j.status==="pronto"&&!j.driverId&&j.type==="delivery"||j.driverId==="driver_01"&&j.status==="saiu_entrega");s(O);const E=O.find(j=>j.driverId==="driver_01"&&j.status==="saiu_entrega");E&&(f(E),r("ocupado"))};A();const w=setInterval(A,5e3);return()=>clearInterval(w)}},[e]);const p=A=>{A.preventDefault(),localStorage.setItem("driver_logged","true"),t(!0),r("disponivel"),He.success("Bem-vindo, Entregador!")},g=()=>{localStorage.removeItem("driver_logged"),t(!1),r("offline")},v=A=>{const w={...A,status:"saiu_entrega",driverId:"driver_01",driverName:"João Silva"},O=JSON.parse(localStorage.getItem("dogmelina_admin_orders")||"[]").map(E=>E.id===A.id?w:E);localStorage.setItem("dogmelina_admin_orders",JSON.stringify(O)),f(w),r("ocupado"),He.success("Pedido aceito! Siga para o endereço.")},x=()=>{const A={...d,status:"entregue"},S=JSON.parse(localStorage.getItem("dogmelina_admin_orders")||"[]").map(O=>O.id===d.id?A:O);localStorage.setItem("dogmelina_admin_orders",JSON.stringify(S)),u(O=>({...O,daily:O.daily+7,total:O.total+7})),f(null),r("disponivel"),He.success("Entrega finalizada com sucesso!")};return e?m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:112",className:"min-h-screen bg-secondary/10 pb-24",children:[m.jsxs("header",{"data-loc":"client/src/pages/DriverApp.tsx:114",className:"bg-white px-6 pt-8 pb-6 rounded-b-[40px] shadow-sm sticky top-0 z-50",children:[m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:115",className:"flex justify-between items-center mb-6",children:[m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:116",className:"flex items-center gap-3",children:[m.jsx("div",{"data-loc":"client/src/pages/DriverApp.tsx:117",className:"w-12 h-12 rounded-2xl bg-primary/10 flex items-center justify-center text-primary",children:m.jsx(ya,{"data-loc":"client/src/pages/DriverApp.tsx:118",size:24})}),m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:120",children:[m.jsx("h2",{"data-loc":"client/src/pages/DriverApp.tsx:121",className:"font-black text-lg",children:"Olá, João!"}),m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:122",className:"flex items-center gap-2",children:[m.jsx("div",{"data-loc":"client/src/pages/DriverApp.tsx:123",className:`w-2 h-2 rounded-full ${n==="disponivel"?"bg-green-500":n==="ocupado"?"bg-orange-500":"bg-gray-400"}`}),m.jsx("span",{"data-loc":"client/src/pages/DriverApp.tsx:124",className:"text-[10px] font-black uppercase text-muted-foreground tracking-tighter",children:n})]})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:128",className:"flex gap-2",children:[m.jsxs("button",{"data-loc":"client/src/pages/DriverApp.tsx:129",className:"w-10 h-10 rounded-xl bg-secondary/50 flex items-center justify-center relative",children:[m.jsx(G9,{"data-loc":"client/src/pages/DriverApp.tsx:130",size:18}),i.length>0&&!d&&m.jsx("span",{"data-loc":"client/src/pages/DriverApp.tsx:131",className:"absolute -top-1 -right-1 w-4 h-4 bg-primary text-white text-[10px] font-black rounded-full flex items-center justify-center border-2 border-white",children:i.length})]}),m.jsx("button",{"data-loc":"client/src/pages/DriverApp.tsx:133",onClick:g,className:"w-10 h-10 rounded-xl bg-red-50 text-red-500 flex items-center justify-center",children:m.jsx(bS,{"data-loc":"client/src/pages/DriverApp.tsx:133",size:18})})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:137",className:"grid grid-cols-3 gap-2",children:[m.jsx("button",{"data-loc":"client/src/pages/DriverApp.tsx:138",onClick:()=>r("disponivel"),className:`py-2 rounded-xl text-[10px] font-black uppercase border transition-all ${n==="disponivel"?"bg-green-500 text-white border-green-500":"bg-white border-border text-muted-foreground"}`,children:"Disponível"}),m.jsx("button",{"data-loc":"client/src/pages/DriverApp.tsx:139",onClick:()=>r("ocupado"),className:`py-2 rounded-xl text-[10px] font-black uppercase border transition-all ${n==="ocupado"?"bg-orange-500 text-white border-orange-500":"bg-white border-border text-muted-foreground"}`,children:"Ocupado"}),m.jsx("button",{"data-loc":"client/src/pages/DriverApp.tsx:140",onClick:()=>r("offline"),className:`py-2 rounded-xl text-[10px] font-black uppercase border transition-all ${n==="offline"?"bg-gray-500 text-white border-gray-500":"bg-white border-border text-muted-foreground"}`,children:"Offline"})]})]}),m.jsx("div",{"data-loc":"client/src/pages/DriverApp.tsx:144",className:"p-6 space-y-6",children:d?m.jsxs("section",{"data-loc":"client/src/pages/DriverApp.tsx:147",children:[m.jsxs("h3",{"data-loc":"client/src/pages/DriverApp.tsx:148",className:"text-lg font-black mb-4 flex items-center gap-2 text-primary",children:[m.jsx(SS,{"data-loc":"client/src/pages/DriverApp.tsx:148",size:20})," Entrega em Curso"]}),m.jsxs(fn,{"data-loc":"client/src/pages/DriverApp.tsx:149",className:"p-6 rounded-[32px] border-primary border-2 shadow-xl shadow-primary/5 bg-white",children:[m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:150",className:"flex justify-between items-start mb-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:151",children:[m.jsx(xn,{"data-loc":"client/src/pages/DriverApp.tsx:152",className:"bg-primary text-white mb-2",children:"SAIU PARA ENTREGA"}),m.jsx("h4",{"data-loc":"client/src/pages/DriverApp.tsx:153",className:"text-xl font-black",children:d.customerName}),m.jsxs("p",{"data-loc":"client/src/pages/DriverApp.tsx:154",className:"text-sm text-muted-foreground font-medium flex items-center gap-1 mt-1",children:[m.jsx(mr,{"data-loc":"client/src/pages/DriverApp.tsx:154",size:14})," ",d.address]})]}),m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:156",className:"text-right",children:[m.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:157",className:"text-xs font-bold text-muted-foreground uppercase",children:"Ganhos"}),m.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:158",className:"text-xl font-black text-green-600",children:"R$ 7,00"})]})]}),m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:162",className:"grid grid-cols-2 gap-3 mb-6",children:[m.jsxs(ye,{"data-loc":"client/src/pages/DriverApp.tsx:163",variant:"outline",className:"rounded-xl h-12 gap-2 border-primary/20 text-primary font-bold",children:[m.jsx(yp,{"data-loc":"client/src/pages/DriverApp.tsx:163",size:18})," Ligar"]}),m.jsxs(ye,{"data-loc":"client/src/pages/DriverApp.tsx:164",variant:"outline",className:"rounded-xl h-12 gap-2 border-primary/20 text-primary font-bold",children:[m.jsx(rq,{"data-loc":"client/src/pages/DriverApp.tsx:164",size:18})," Chat"]})]}),m.jsxs(ye,{"data-loc":"client/src/pages/DriverApp.tsx:167",onClick:x,className:"w-full h-14 rounded-2xl text-lg font-black shadow-lg shadow-primary/20 gap-2",children:[m.jsx(E3,{"data-loc":"client/src/pages/DriverApp.tsx:168",size:24})," FINALIZAR ENTREGA"]})]})]}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:175",className:"grid grid-cols-2 gap-4",children:[m.jsxs(fn,{"data-loc":"client/src/pages/DriverApp.tsx:176",className:"p-4 rounded-3xl border-none shadow-sm bg-white",children:[m.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:177",className:"text-[10px] font-black text-muted-foreground uppercase mb-1",children:"Hoje"}),m.jsxs("p",{"data-loc":"client/src/pages/DriverApp.tsx:178",className:"text-2xl font-black text-primary",children:["R$ ",l.daily.toFixed(2)]})]}),m.jsxs(fn,{"data-loc":"client/src/pages/DriverApp.tsx:180",className:"p-4 rounded-3xl border-none shadow-sm bg-white",children:[m.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:181",className:"text-[10px] font-black text-muted-foreground uppercase mb-1",children:"Total"}),m.jsxs("p",{"data-loc":"client/src/pages/DriverApp.tsx:182",className:"text-2xl font-black text-foreground",children:["R$ ",l.total.toFixed(2)]})]})]}),m.jsxs("section",{"data-loc":"client/src/pages/DriverApp.tsx:187",children:[m.jsxs("h3",{"data-loc":"client/src/pages/DriverApp.tsx:188",className:"text-lg font-black mb-4 flex items-center gap-2",children:[m.jsx(ya,{"data-loc":"client/src/pages/DriverApp.tsx:188",size:20})," Pedidos Disponíveis"]}),m.jsx("div",{"data-loc":"client/src/pages/DriverApp.tsx:189",className:"space-y-4",children:i.length===0?m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:191",className:"text-center py-12 opacity-30",children:[m.jsx(ya,{"data-loc":"client/src/pages/DriverApp.tsx:192",size:48,className:"mx-auto mb-2"}),m.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:193",className:"font-bold",children:"Nenhum pedido no momento"})]}):i.map(A=>m.jsxs(fn,{"data-loc":"client/src/pages/DriverApp.tsx:197",className:"p-5 rounded-[32px] border-none shadow-sm bg-white",children:[m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:198",className:"flex justify-between items-start mb-4",children:[m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:199",children:[m.jsx(xn,{"data-loc":"client/src/pages/DriverApp.tsx:200",variant:"outline",className:"text-[10px] font-black text-primary uppercase mb-2 border-primary/20",children:A.id}),m.jsx("h4",{"data-loc":"client/src/pages/DriverApp.tsx:201",className:"font-black text-lg",children:A.customerName}),m.jsxs("p",{"data-loc":"client/src/pages/DriverApp.tsx:202",className:"text-xs text-muted-foreground font-medium flex items-center gap-1 mt-1",children:[m.jsx(mr,{"data-loc":"client/src/pages/DriverApp.tsx:202",size:12})," ",A.address.split(",")[0]]})]}),m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:204",className:"text-right",children:[m.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:205",className:"text-lg font-black text-green-600",children:"R$ 7,00"}),m.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:206",className:"text-[10px] font-bold text-muted-foreground uppercase",children:"Taxa"})]})]}),m.jsx(ye,{"data-loc":"client/src/pages/DriverApp.tsx:209",onClick:()=>v(A),className:"w-full h-12 rounded-xl font-black shadow-md",children:"ACEITAR ENTREGA"})]},A.id))})]})]})}),m.jsxs("nav",{"data-loc":"client/src/pages/DriverApp.tsx:220",className:"fixed bottom-0 left-0 right-0 bg-white border-t border-border px-8 py-4 flex justify-between items-center z-50 rounded-t-[32px] shadow-2xl",children:[m.jsxs("button",{"data-loc":"client/src/pages/DriverApp.tsx:221",className:"flex flex-col items-center gap-1 text-primary",children:[m.jsx(ya,{"data-loc":"client/src/pages/DriverApp.tsx:222",size:24}),m.jsx("span",{"data-loc":"client/src/pages/DriverApp.tsx:223",className:"text-[10px] font-black uppercase tracking-tighter",children:"Corridas"})]}),m.jsxs("button",{"data-loc":"client/src/pages/DriverApp.tsx:225",className:"flex flex-col items-center gap-1 text-muted-foreground",children:[m.jsx(fq,{"data-loc":"client/src/pages/DriverApp.tsx:226",size:24}),m.jsx("span",{"data-loc":"client/src/pages/DriverApp.tsx:227",className:"text-[10px] font-black uppercase tracking-tighter",children:"Carteira"})]}),m.jsxs("button",{"data-loc":"client/src/pages/DriverApp.tsx:229",className:"flex flex-col items-center gap-1 text-muted-foreground",children:[m.jsx(eq,{"data-loc":"client/src/pages/DriverApp.tsx:230",size:24}),m.jsx("span",{"data-loc":"client/src/pages/DriverApp.tsx:231",className:"text-[10px] font-black uppercase tracking-tighter",children:"Histórico"})]}),m.jsxs("button",{"data-loc":"client/src/pages/DriverApp.tsx:233",className:"flex flex-col items-center gap-1 text-muted-foreground",children:[m.jsx(L3,{"data-loc":"client/src/pages/DriverApp.tsx:234",size:24}),m.jsx("span",{"data-loc":"client/src/pages/DriverApp.tsx:235",className:"text-[10px] font-black uppercase tracking-tighter",children:"Perfil"})]})]})]}):m.jsxs("div",{"data-loc":"client/src/pages/DriverApp.tsx:93",className:"min-h-screen bg-primary flex flex-col items-center justify-center p-6",children:[m.jsx("div",{"data-loc":"client/src/pages/DriverApp.tsx:94",className:"w-24 h-24 bg-white rounded-[32px] flex items-center justify-center mb-8 shadow-2xl",children:m.jsx(ya,{"data-loc":"client/src/pages/DriverApp.tsx:95",size:48,className:"text-primary"})}),m.jsx("h1",{"data-loc":"client/src/pages/DriverApp.tsx:97",className:"text-3xl font-black text-white mb-2 tracking-tighter",children:"DOG MELINA"}),m.jsx("p",{"data-loc":"client/src/pages/DriverApp.tsx:98",className:"text-white/70 font-bold mb-8 uppercase tracking-widest text-xs",children:"App do Entregador"}),m.jsx(fn,{"data-loc":"client/src/pages/DriverApp.tsx:100",className:"w-full max-w-sm p-8 rounded-[40px] border-none shadow-2xl",children:m.jsxs("form",{"data-loc":"client/src/pages/DriverApp.tsx:101",onSubmit:p,className:"space-y-4",children:[m.jsx(Ue,{"data-loc":"client/src/pages/DriverApp.tsx:102",placeholder:"Usuário",className:"h-14 rounded-2xl bg-secondary/30 border-none font-bold",required:!0}),m.jsx(Ue,{"data-loc":"client/src/pages/DriverApp.tsx:103",type:"password",placeholder:"Senha",className:"h-14 rounded-2xl bg-secondary/30 border-none font-bold",required:!0}),m.jsx(ye,{"data-loc":"client/src/pages/DriverApp.tsx:104",type:"submit",className:"w-full h-14 rounded-2xl text-lg font-black shadow-lg shadow-primary/20",children:"ENTRAR"})]})})]})}const VA=T.createContext({});function UA(e){const t=T.useRef(null);return t.current===null&&(t.current=e()),t.current}const HA=typeof window<"u",lL=HA?T.useLayoutEffect:T.useEffect,fm=T.createContext(null);function FA(e,t){e.indexOf(t)===-1&&e.push(t)}function GA(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ea=(e,t,n)=>n>t?t:n<e?e:n;let KA=()=>{};const _a={},cL=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function uL(e){return typeof e=="object"&&e!==null}const dL=e=>/^0[^.\s]+$/u.test(e);function XA(e){let t;return()=>(t===void 0&&(t=e()),t)}const pr=e=>e,Tle=(e,t)=>n=>t(e(n)),rd=(...e)=>e.reduce(Tle),ku=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class YA{constructor(){this.subscriptions=[]}add(t){return FA(this.subscriptions,t),()=>GA(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const l=this.subscriptions[s];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ur=e=>e*1e3,hr=e=>e/1e3;function fL(e,t){return t?e*(1e3/t):0}const hL=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Cle=1e-7,Ele=12;function _le(e,t,n,r,i){let s,l,u=0;do l=t+(n-t)/2,s=hL(l,r,i)-e,s>0?n=l:t=l;while(Math.abs(s)>Cle&&++u<Ele);return l}function ad(e,t,n,r){if(e===t&&n===r)return pr;const i=s=>_le(s,0,1,e,n);return s=>s===0||s===1?s:hL(i(s),t,r)}const pL=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mL=e=>t=>1-e(1-t),gL=ad(.33,1.53,.69,.99),WA=mL(gL),vL=pL(WA),yL=e=>(e*=2)<1?.5*WA(e):.5*(2-Math.pow(2,-10*(e-1))),ZA=e=>1-Math.sin(Math.acos(e)),xL=mL(ZA),bL=pL(ZA),Ple=ad(.42,0,1,1),Nle=ad(0,0,.58,1),wL=ad(.42,0,.58,1),Dle=e=>Array.isArray(e)&&typeof e[0]!="number",SL=e=>Array.isArray(e)&&typeof e[0]=="number",Mle={linear:pr,easeIn:Ple,easeInOut:wL,easeOut:Nle,circIn:ZA,circInOut:bL,circOut:xL,backIn:WA,backInOut:vL,backOut:gL,anticipate:yL},Rle=e=>typeof e=="string",ak=e=>{if(SL(e)){KA(e.length===4);const[t,n,r,i]=e;return ad(t,n,r,i)}else if(Rle(e))return Mle[e];return e},Yf=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function kle(e,t){let n=new Set,r=new Set,i=!1,s=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function d(p){l.has(p)&&(f.schedule(p),e()),p(u)}const f={schedule:(p,g=!1,v=!1)=>{const A=v&&i?n:r;return g&&l.add(p),A.has(p)||A.add(p),p},cancel:p=>{r.delete(p),l.delete(p)},process:p=>{if(u=p,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),n.clear(),i=!1,s&&(s=!1,f.process(p))}};return f}const zle=40;function AL(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=Yf.reduce((j,N)=>(j[N]=kle(s),j),{}),{setup:u,read:d,resolveKeyframes:f,preUpdate:p,update:g,preRender:v,render:x,postRender:A}=l,w=()=>{const j=_a.useManualTiming?i.timestamp:performance.now();n=!1,_a.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(j-i.timestamp,zle),1)),i.timestamp=j,i.isProcessing=!0,u.process(i),d.process(i),f.process(i),p.process(i),g.process(i),v.process(i),x.process(i),A.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(w))},S=()=>{n=!0,r=!0,i.isProcessing||e(w)};return{schedule:Yf.reduce((j,N)=>{const C=l[N];return j[N]=(P,D=!1,M=!1)=>(n||S(),C.schedule(P,D,M)),j},{}),cancel:j=>{for(let N=0;N<Yf.length;N++)l[Yf[N]].cancel(j)},state:i,steps:l}}const{schedule:xt,cancel:yi,state:on,steps:W0}=AL(typeof requestAnimationFrame<"u"?requestAnimationFrame:pr,!0);let ah;function Lle(){ah=void 0}const En={now:()=>(ah===void 0&&En.set(on.isProcessing||_a.useManualTiming?on.timestamp:performance.now()),ah),set:e=>{ah=e,queueMicrotask(Lle)}},jL=e=>t=>typeof t=="string"&&t.startsWith(e),QA=jL("--"),$le=jL("var(--"),JA=e=>$le(e)?Ble.test(e.split("/*")[0].trim()):!1,Ble=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ol={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},zu={...Ol,transform:e=>Ea(0,1,e)},Wf={...Ol,default:1},Kc=e=>Math.round(e*1e5)/1e5,e2=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ile(e){return e==null}const qle=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,t2=(e,t)=>n=>!!(typeof n=="string"&&qle.test(n)&&n.startsWith(e)||t&&!Ile(n)&&Object.prototype.hasOwnProperty.call(n,t)),OL=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,l,u]=r.match(e2);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},Vle=e=>Ea(0,255,e),Z0={...Ol,transform:e=>Math.round(Vle(e))},ro={test:t2("rgb","red"),parse:OL("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Z0.transform(e)+", "+Z0.transform(t)+", "+Z0.transform(n)+", "+Kc(zu.transform(r))+")"};function Ule(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Yw={test:t2("#"),parse:Ule,transform:ro.transform},id=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),fi=id("deg"),Hr=id("%"),Ee=id("px"),Hle=id("vh"),Fle=id("vw"),ik={...Hr,parse:e=>Hr.parse(e)/100,transform:e=>Hr.transform(e*100)},js={test:t2("hsl","hue"),parse:OL("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Hr.transform(Kc(t))+", "+Hr.transform(Kc(n))+", "+Kc(zu.transform(r))+")"},$t={test:e=>ro.test(e)||Yw.test(e)||js.test(e),parse:e=>ro.test(e)?ro.parse(e):js.test(e)?js.parse(e):Yw.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ro.transform(e):js.transform(e),getAnimatableNone:e=>{const t=$t.parse(e);return t.alpha=0,$t.transform(t)}},Gle=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Kle(e){return isNaN(e)&&typeof e=="string"&&(e.match(e2)?.length||0)+(e.match(Gle)?.length||0)>0}const TL="number",CL="color",Xle="var",Yle="var(",ok="${}",Wle=/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 Lu(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const u=t.replace(Wle,d=>($t.test(d)?(r.color.push(s),i.push(CL),n.push($t.parse(d))):d.startsWith(Yle)?(r.var.push(s),i.push(Xle),n.push(d)):(r.number.push(s),i.push(TL),n.push(parseFloat(d))),++s,ok)).split(ok);return{values:n,split:u,indexes:r,types:i}}function EL(e){return Lu(e).values}function _L(e){const{split:t,types:n}=Lu(e),r=t.length;return i=>{let s="";for(let l=0;l<r;l++)if(s+=t[l],i[l]!==void 0){const u=n[l];u===TL?s+=Kc(i[l]):u===CL?s+=$t.transform(i[l]):s+=i[l]}return s}}const Zle=e=>typeof e=="number"?0:$t.test(e)?$t.getAnimatableNone(e):e;function Qle(e){const t=EL(e);return _L(e)(t.map(Zle))}const xi={test:Kle,parse:EL,createTransformer:_L,getAnimatableNone:Qle};function Q0(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Jle({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,l=0;if(!t)i=s=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,d=2*n-u;i=Q0(d,u,e+1/3),s=Q0(d,u,e),l=Q0(d,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:r}}function dp(e,t){return n=>n>0?t:e}const St=(e,t,n)=>e+(t-e)*n,J0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ece=[Yw,ro,js],tce=e=>ece.find(t=>t.test(e));function sk(e){const t=tce(e);if(!t)return!1;let n=t.parse(e);return t===js&&(n=Jle(n)),n}const lk=(e,t)=>{const n=sk(e),r=sk(t);if(!n||!r)return dp(e,t);const i={...n};return s=>(i.red=J0(n.red,r.red,s),i.green=J0(n.green,r.green,s),i.blue=J0(n.blue,r.blue,s),i.alpha=St(n.alpha,r.alpha,s),ro.transform(i))},Ww=new Set(["none","hidden"]);function nce(e,t){return Ww.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function rce(e,t){return n=>St(e,t,n)}function n2(e){return typeof e=="number"?rce:typeof e=="string"?JA(e)?dp:$t.test(e)?lk:oce:Array.isArray(e)?PL:typeof e=="object"?$t.test(e)?lk:ace:dp}function PL(e,t){const n=[...e],r=n.length,i=e.map((s,l)=>n2(s)(s,t[l]));return s=>{for(let l=0;l<r;l++)n[l]=i[l](s);return n}}function ace(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=n2(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function ice(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],l=e.indexes[s][r[s]],u=e.values[l]??0;n[i]=u,r[s]++}return n}const oce=(e,t)=>{const n=xi.createTransformer(t),r=Lu(e),i=Lu(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ww.has(e)&&!i.values.length||Ww.has(t)&&!r.values.length?nce(e,t):rd(PL(ice(r,i),i.values),n):dp(e,t)};function NL(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?St(e,t,n):n2(e)(e,t)}const sce=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>xt.update(t,n),stop:()=>yi(t),now:()=>on.isProcessing?on.timestamp:En.now()}},DL=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},fp=2e4;function r2(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<fp;)t+=n,r=e.next(t);return t>=fp?1/0:t}function lce(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(r2(r),fp);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:hr(i)}}const cce=5;function ML(e,t,n){const r=Math.max(t-cce,0);return fL(n-e(r),t-r)}const Tt={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},e1=.001;function uce({duration:e=Tt.duration,bounce:t=Tt.bounce,velocity:n=Tt.velocity,mass:r=Tt.mass}){let i,s,l=1-t;l=Ea(Tt.minDamping,Tt.maxDamping,l),e=Ea(Tt.minDuration,Tt.maxDuration,hr(e)),l<1?(i=f=>{const p=f*l,g=p*e,v=p-n,x=Zw(f,l),A=Math.exp(-g);return e1-v/x*A},s=f=>{const g=f*l*e,v=g*n+n,x=Math.pow(l,2)*Math.pow(f,2)*e,A=Math.exp(-g),w=Zw(Math.pow(f,2),l);return(-i(f)+e1>0?-1:1)*((v-x)*A)/w}):(i=f=>{const p=Math.exp(-f*e),g=(f-n)*e+1;return-e1+p*g},s=f=>{const p=Math.exp(-f*e),g=(n-f)*(e*e);return p*g});const u=5/e,d=fce(i,s,u);if(e=Ur(e),isNaN(d))return{stiffness:Tt.stiffness,damping:Tt.damping,duration:e};{const f=Math.pow(d,2)*r;return{stiffness:f,damping:l*2*Math.sqrt(r*f),duration:e}}}const dce=12;function fce(e,t,n){let r=n;for(let i=1;i<dce;i++)r=r-e(r)/t(r);return r}function Zw(e,t){return e*Math.sqrt(1-t*t)}const hce=["duration","bounce"],pce=["stiffness","damping","mass"];function ck(e,t){return t.some(n=>e[n]!==void 0)}function mce(e){let t={velocity:Tt.velocity,stiffness:Tt.stiffness,damping:Tt.damping,mass:Tt.mass,isResolvedFromDuration:!1,...e};if(!ck(e,pce)&&ck(e,hce))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Ea(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Tt.mass,stiffness:i,damping:s}}else{const n=uce(e);t={...t,...n,mass:Tt.mass},t.isResolvedFromDuration=!0}return t}function hp(e=Tt.visualDuration,t=Tt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:d,damping:f,mass:p,duration:g,velocity:v,isResolvedFromDuration:x}=mce({...n,velocity:-hr(n.velocity||0)}),A=v||0,w=f/(2*Math.sqrt(d*p)),S=l-s,O=hr(Math.sqrt(d/p)),E=Math.abs(S)<5;r||(r=E?Tt.restSpeed.granular:Tt.restSpeed.default),i||(i=E?Tt.restDelta.granular:Tt.restDelta.default);let j;if(w<1){const C=Zw(O,w);j=P=>{const D=Math.exp(-w*O*P);return l-D*((A+w*O*S)/C*Math.sin(C*P)+S*Math.cos(C*P))}}else if(w===1)j=C=>l-Math.exp(-O*C)*(S+(A+O*S)*C);else{const C=O*Math.sqrt(w*w-1);j=P=>{const D=Math.exp(-w*O*P),M=Math.min(C*P,300);return l-D*((A+w*O*S)*Math.sinh(M)+C*S*Math.cosh(M))/C}}const N={calculatedDuration:x&&g||null,next:C=>{const P=j(C);if(x)u.done=C>=g;else{let D=C===0?A:0;w<1&&(D=C===0?Ur(A):ML(j,C,P));const M=Math.abs(D)<=r,k=Math.abs(l-P)<=i;u.done=M&&k}return u.value=u.done?l:P,u},toString:()=>{const C=Math.min(r2(N),fp),P=DL(D=>N.next(C*D).value,C,30);return C+"ms "+P},toTransition:()=>{}};return N}hp.applyToOptions=e=>{const t=lce(e,100,hp);return e.ease=t.ease,e.duration=Ur(t.duration),e.type="keyframes",e};function Qw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:l,min:u,max:d,restDelta:f=.5,restSpeed:p}){const g=e[0],v={done:!1,value:g},x=M=>u!==void 0&&M<u||d!==void 0&&M>d,A=M=>u===void 0?d:d===void 0||Math.abs(u-M)<Math.abs(d-M)?u:d;let w=n*t;const S=g+w,O=l===void 0?S:l(S);O!==S&&(w=O-g);const E=M=>-w*Math.exp(-M/r),j=M=>O+E(M),N=M=>{const k=E(M),q=j(M);v.done=Math.abs(k)<=f,v.value=v.done?O:q};let C,P;const D=M=>{x(v.value)&&(C=M,P=hp({keyframes:[v.value,A(v.value)],velocity:ML(j,M,v.value),damping:i,stiffness:s,restDelta:f,restSpeed:p}))};return D(0),{calculatedDuration:null,next:M=>{let k=!1;return!P&&C===void 0&&(k=!0,N(M),D(M)),C!==void 0&&M>=C?P.next(M-C):(!k&&N(M),v)}}}function gce(e,t,n){const r=[],i=n||_a.mix||NL,s=e.length-1;for(let l=0;l<s;l++){let u=i(e[l],e[l+1]);if(t){const d=Array.isArray(t)?t[l]||pr:t;u=rd(d,u)}r.push(u)}return r}function vce(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(KA(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=gce(t,r,i),d=u.length,f=p=>{if(l&&p<e[0])return t[0];let g=0;if(d>1)for(;g<e.length-2&&!(p<e[g+1]);g++);const v=ku(e[g],e[g+1],p);return u[g](v)};return n?p=>f(Ea(e[0],e[s-1],p)):f}function yce(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ku(0,t,r);e.push(St(n,1,i))}}function xce(e){const t=[0];return yce(t,e.length-1),t}function bce(e,t){return e.map(n=>n*t)}function wce(e,t){return e.map(()=>t||wL).splice(0,e.length-1)}function Xc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Dle(r)?r.map(ak):ak(r),s={done:!1,value:t[0]},l=bce(n&&n.length===t.length?n:xce(t),e),u=vce(l,t,{ease:Array.isArray(i)?i:wce(t,i)});return{calculatedDuration:e,next:d=>(s.value=u(d),s.done=d>=e,s)}}const Sce=e=>e!==null;function a2(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(Sce),u=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!u||r===void 0?s[u]:r}const Ace={decay:Qw,inertia:Qw,tween:Xc,keyframes:Xc,spring:hp};function RL(e){typeof e.type=="string"&&(e.type=Ace[e.type])}class i2{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const jce=e=>e/100;class o2 extends i2{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==En.now()&&this.tick(En.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;RL(t);const{type:n=Xc,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:l=0}=t;let{keyframes:u}=t;const d=n||Xc;d!==Xc&&typeof u[0]!="number"&&(this.mixKeyframes=rd(jce,NL(u[0],u[1])),u=[0,100]);const f=d({...t,keyframes:u});s==="mirror"&&(this.mirroredGenerator=d({...t,keyframes:[...u].reverse(),velocity:-l})),f.calculatedDuration===null&&(f.calculatedDuration=r2(f));const{calculatedDuration:p}=f;this.calculatedDuration=p,this.resolvedDuration=p+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=f}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:l,resolvedDuration:u,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:p,repeat:g,repeatType:v,repeatDelay:x,type:A,onUpdate:w,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const O=this.currentTime-f*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?O<0:O>i;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let j=this.currentTime,N=r;if(g){const M=Math.min(this.currentTime,i)/u;let k=Math.floor(M),q=M%1;!q&&M>=1&&(q=1),q===1&&k--,k=Math.min(k,g+1),!!(k%2)&&(v==="reverse"?(q=1-q,x&&(q-=x/u)):v==="mirror"&&(N=l)),j=Ea(0,1,q)*u}const C=E?{done:!1,value:p[0]}:N.next(j);s&&(C.value=s(C.value));let{done:P}=C;!E&&d!==null&&(P=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return D&&A!==Qw&&(C.value=a2(p,this.options,S,this.speed)),w&&w(C.value),D&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return hr(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+hr(t)}get time(){return hr(this.currentTime)}set time(t){t=Ur(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(En.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=hr(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=sce,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(En.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Oce(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ao=e=>e*180/Math.PI,Jw=e=>{const t=ao(Math.atan2(e[1],e[0]));return eS(t)},Tce={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Jw,rotateZ:Jw,skewX:e=>ao(Math.atan(e[1])),skewY:e=>ao(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},eS=e=>(e=e%360,e<0&&(e+=360),e),uk=Jw,dk=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),fk=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Cce={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dk,scaleY:fk,scale:e=>(dk(e)+fk(e))/2,rotateX:e=>eS(ao(Math.atan2(e[6],e[5]))),rotateY:e=>eS(ao(Math.atan2(-e[2],e[0]))),rotateZ:uk,rotate:uk,skewX:e=>ao(Math.atan(e[4])),skewY:e=>ao(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function tS(e){return e.includes("scale")?1:0}function nS(e,t){if(!e||e==="none")return tS(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Cce,i=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Tce,i=u}if(!i)return tS(t);const s=r[t],l=i[1].split(",").map(_ce);return typeof s=="function"?s(l):l[s]}const Ece=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nS(n,t)};function _ce(e){return parseFloat(e.trim())}const Tl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Cl=new Set(Tl),hk=e=>e===Ol||e===Ee,Pce=new Set(["x","y","z"]),Nce=Tl.filter(e=>!Pce.has(e));function Dce(e){const t=[];return Nce.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const lo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>nS(t,"x"),y:(e,{transform:t})=>nS(t,"y")};lo.translateX=lo.x;lo.translateY=lo.y;const co=new Set;let rS=!1,aS=!1,iS=!1;function kL(){if(aS){const e=Array.from(co).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Dce(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,l])=>{r.getValue(s)?.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}aS=!1,rS=!1,co.forEach(e=>e.complete(iS)),co.clear()}function zL(){co.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(aS=!0)})}function Mce(){iS=!0,zL(),kL(),iS=!1}class s2{constructor(t,n,r,i,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(co.add(this),rS||(rS=!0,xt.read(zL),xt.resolveKeyframes(kL))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i?.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const u=r.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),i&&s===void 0&&i.set(t[0])}Oce(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),co.delete(this)}cancel(){this.state==="scheduled"&&(co.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Rce=e=>e.startsWith("--");function kce(e,t,n){Rce(t)?e.style.setProperty(t,n):e.style[t]=n}const zce=XA(()=>window.ScrollTimeline!==void 0),Lce={};function $ce(e,t){const n=XA(e);return()=>Lce[t]??n()}const LL=$ce(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$c=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$c([0,.65,.55,1]),circOut:$c([.55,0,1,.45]),backIn:$c([.31,.01,.66,-.59]),backOut:$c([.33,1.53,.69,.99])};function $L(e,t){if(e)return typeof e=="function"?LL()?DL(e,t):"ease-out":SL(e)?$c(e):Array.isArray(e)?e.map(n=>$L(n,t)||pk.easeOut):pk[e]}function Bce(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:l="loop",ease:u="easeOut",times:d}={},f=void 0){const p={[t]:n};d&&(p.offset=d);const g=$L(u,i);Array.isArray(g)&&(p.easing=g);const v={delay:r,duration:i,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return f&&(v.pseudoElement=f),e.animate(p,v)}function BL(e){return typeof e=="function"&&"applyToOptions"in e}function Ice({type:e,...t}){return BL(e)&&LL()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class qce extends i2{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:u,onComplete:d}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,KA(typeof t.type!="string");const f=Ice(t);this.animation=Bce(n,r,i,f,s),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const p=a2(i,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(p):kce(n,r,p),this.animation.cancel()}d?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return hr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+hr(t)}get time(){return hr(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ur(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&zce()?(this.animation.timeline=t,pr):n(this)}}const IL={anticipate:yL,backInOut:vL,circInOut:bL};function Vce(e){return e in IL}function Uce(e){typeof e.ease=="string"&&Vce(e.ease)&&(e.ease=IL[e.ease])}const mk=10;class Hce extends qce{constructor(t){Uce(t),RL(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new o2({...l,autoplay:!1}),d=Ur(this.finishedTime??this.time);n.setWithVelocity(u.sample(d-mk).value,u.sample(d).value,mk),u.stop()}}const gk=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xi.test(e)||e==="0")&&!e.startsWith("url("));function Fce(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Gce(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],l=gk(i,t),u=gk(s,t);return!l||!u?!1:Fce(e)||(n==="spring"||BL(n))&&r}function oS(e){e.duration=0,e.type="keyframes"}const Kce=new Set(["opacity","clipPath","filter","transform"]),Xce=XA(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Yce(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:f}=t.owner.getProps();return Xce()&&n&&Kce.has(n)&&(n!=="transform"||!f)&&!d&&!r&&i!=="mirror"&&s!==0&&l!=="inertia"}const Wce=40;class Zce extends i2{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:l="loop",keyframes:u,name:d,motionValue:f,element:p,...g}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=En.now();const v={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:l,name:d,motionValue:f,element:p,...g},x=p?.KeyframeResolver||s2;this.keyframeResolver=new x(u,(A,w,S)=>this.onKeyframesResolved(A,w,v,!S),d,f,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:l,velocity:u,delay:d,isHandoff:f,onUpdate:p}=r;this.resolvedAt=En.now(),Gce(t,s,l,u)||((_a.instantAnimations||!d)&&p?.(a2(t,r,n)),t[0]=t[t.length-1],oS(r),r.repeat=0);const v={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Wce?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},x=!f&&Yce(v)?new Hce({...v,element:v.motionValue.owner.current}):new o2(v);x.finished.then(()=>this.notifyFinished()).catch(pr),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(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Mce()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Qce=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Jce(e){const t=Qce.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function qL(e,t,n=1){const[r,i]=Jce(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const l=s.trim();return cL(l)?parseFloat(l):l}return JA(i)?qL(i,t,n+1):i}function l2(e,t){return e?.[t]??e?.default??e}const VL=new Set(["width","height","top","left","right","bottom",...Tl]),eue={test:e=>e==="auto",parse:e=>e},UL=e=>t=>t.test(e),HL=[Ol,Ee,Hr,fi,Fle,Hle,eue],vk=e=>HL.find(UL(e));function tue(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||dL(e):!0}const nue=new Set(["brightness","contrast","saturate","opacity"]);function rue(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(e2)||[];if(!r)return e;const i=n.replace(r,"");let s=nue.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const aue=/\b([a-z-]*)\(.*?\)/gu,sS={...xi,getAnimatableNone:e=>{const t=e.match(aue);return t?t.map(rue).join(" "):e}},yk={...Ol,transform:Math.round},iue={rotate:fi,rotateX:fi,rotateY:fi,rotateZ:fi,scale:Wf,scaleX:Wf,scaleY:Wf,scaleZ:Wf,skew:fi,skewX:fi,skewY:fi,distance:Ee,translateX:Ee,translateY:Ee,translateZ:Ee,x:Ee,y:Ee,z:Ee,perspective:Ee,transformPerspective:Ee,opacity:zu,originX:ik,originY:ik,originZ:Ee},c2={borderWidth:Ee,borderTopWidth:Ee,borderRightWidth:Ee,borderBottomWidth:Ee,borderLeftWidth:Ee,borderRadius:Ee,radius:Ee,borderTopLeftRadius:Ee,borderTopRightRadius:Ee,borderBottomRightRadius:Ee,borderBottomLeftRadius:Ee,width:Ee,maxWidth:Ee,height:Ee,maxHeight:Ee,top:Ee,right:Ee,bottom:Ee,left:Ee,padding:Ee,paddingTop:Ee,paddingRight:Ee,paddingBottom:Ee,paddingLeft:Ee,margin:Ee,marginTop:Ee,marginRight:Ee,marginBottom:Ee,marginLeft:Ee,backgroundPositionX:Ee,backgroundPositionY:Ee,...iue,zIndex:yk,fillOpacity:zu,strokeOpacity:zu,numOctaves:yk},oue={...c2,color:$t,backgroundColor:$t,outlineColor:$t,fill:$t,stroke:$t,borderColor:$t,borderTopColor:$t,borderRightColor:$t,borderBottomColor:$t,borderLeftColor:$t,filter:sS,WebkitFilter:sS},FL=e=>oue[e];function GL(e,t){let n=FL(e);return n!==sS&&(n=xi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const sue=new Set(["auto","none","0"]);function lue(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!sue.has(s)&&Lu(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=GL(n,i)}class cue extends s2{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),JA(f))){const p=qL(f,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!VL.has(r)||t.length!==2)return;const[i,s]=t,l=vk(i),u=vk(s);if(l!==u)if(hk(l)&&hk(u))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else lo[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||tue(t[i]))&&r.push(i);r.length&&lue(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=lo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,l=r[s];r[s]=lo[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),this.removedTransforms?.length&&this.removedTransforms.forEach(([u,d])=>{t.getValue(u).set(d)}),this.resolveNoneKeyframes()}}function uue(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const KL=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function XL(e){return uL(e)&&"offsetHeight"in e}const xk=30,due=e=>!isNaN(parseFloat(e));class fue{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=En.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=En.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=due(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new YA);const r=this.events[t].add(n);return t==="change"?()=>{r(),xt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=En.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>xk)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xk);return fL(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ul(e,t){return new fue(e,t)}const{schedule:u2}=AL(queueMicrotask,!1),Or={x:!1,y:!1};function YL(){return Or.x||Or.y}function hue(e){return e==="x"||e==="y"?Or[e]?null:(Or[e]=!0,()=>{Or[e]=!1}):Or.x||Or.y?null:(Or.x=Or.y=!0,()=>{Or.x=Or.y=!1})}function WL(e,t){const n=uue(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function bk(e){return!(e.pointerType==="touch"||YL())}function pue(e,t,n={}){const[r,i,s]=WL(e,n),l=u=>{if(!bk(u))return;const{target:d}=u,f=t(d,u);if(typeof f!="function"||!d)return;const p=g=>{bk(g)&&(f(g),d.removeEventListener("pointerleave",p))};d.addEventListener("pointerleave",p,i)};return r.forEach(u=>{u.addEventListener("pointerenter",l,i)}),s}const ZL=(e,t)=>t?e===t?!0:ZL(e,t.parentElement):!1,d2=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,mue=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function gue(e){return mue.has(e.tagName)||e.tabIndex!==-1}const ih=new WeakSet;function wk(e){return t=>{t.key==="Enter"&&e(t)}}function t1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const vue=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=wk(()=>{if(ih.has(n))return;t1(n,"down");const i=wk(()=>{t1(n,"up")}),s=()=>t1(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Sk(e){return d2(e)&&!YL()}function yue(e,t,n={}){const[r,i,s]=WL(e,n),l=u=>{const d=u.currentTarget;if(!Sk(u))return;ih.add(d);const f=t(d,u),p=(x,A)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",v),ih.has(d)&&ih.delete(d),Sk(x)&&typeof f=="function"&&f(x,{success:A})},g=x=>{p(x,d===window||d===document||n.useGlobalTarget||ZL(d,x.target))},v=x=>{p(x,!1)};window.addEventListener("pointerup",g,i),window.addEventListener("pointercancel",v,i)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,i),XL(u)&&(u.addEventListener("focus",f=>vue(f,i)),!gue(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),s}function QL(e){return uL(e)&&"ownerSVGElement"in e}function xue(e){return QL(e)&&e.tagName==="svg"}const hn=e=>!!(e&&e.getVelocity),bue=[...HL,$t,xi],wue=e=>bue.find(UL(e)),f2=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Ak(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Sue(...e){return t=>{let n=!1;const r=e.map(i=>{const s=Ak(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():Ak(e[i],null)}}}}function Aue(...e){return T.useCallback(Sue(...e),e)}class jue extends T.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=XL(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Oue({children:e,isPresent:t,anchorX:n,root:r}){const i=T.useId(),s=T.useRef(null),l=T.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=T.useContext(f2),d=Aue(s,e?.ref);return T.useInsertionEffect(()=>{const{width:f,height:p,top:g,left:v,right:x}=l.current;if(t||!s.current||!f||!p)return;const A=n==="left"?`left: ${v}`:`right: ${x}`;s.current.dataset.motionPopId=i;const w=document.createElement("style");u&&(w.nonce=u);const S=r??document.head;return S.appendChild(w),w.sheet&&w.sheet.insertRule(`
          [data-motion-pop-id="${i}"] {
            position: absolute !important;
            width: ${f}px !important;
            height: ${p}px !important;
            ${A}px !important;
            top: ${g}px !important;
          }
        `),()=>{S.contains(w)&&S.removeChild(w)}},[t]),m.jsx(jue,{isPresent:t,childRef:s,sizeRef:l,children:T.cloneElement(e,{ref:d})})}const Tue=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:l,anchorX:u,root:d})=>{const f=UA(Cue),p=T.useId();let g=!0,v=T.useMemo(()=>(g=!1,{id:p,initial:t,isPresent:n,custom:i,onExitComplete:x=>{f.set(x,!0);for(const A of f.values())if(!A)return;r&&r()},register:x=>(f.set(x,!1),()=>f.delete(x))}),[n,f,r]);return s&&g&&(v={...v}),T.useMemo(()=>{f.forEach((x,A)=>f.set(A,!1))},[n]),T.useEffect(()=>{!n&&!f.size&&r&&r()},[n]),l==="popLayout"&&(e=m.jsx(Oue,{isPresent:n,anchorX:u,root:d,children:e})),m.jsx(fm.Provider,{value:v,children:e})};function Cue(){return new Map}function JL(e=!0){const t=T.useContext(fm);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=T.useId();T.useEffect(()=>{if(e)return i(s)},[e]);const l=T.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,l]:[!0]}const Zf=e=>e.key||"";function jk(e){const t=[];return T.Children.forEach(e,n=>{T.isValidElement(n)&&t.push(n)}),t}const Eue=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:l=!1,anchorX:u="left",root:d})=>{const[f,p]=JL(l),g=T.useMemo(()=>jk(e),[e]),v=l&&!f?[]:g.map(Zf),x=T.useRef(!0),A=T.useRef(g),w=UA(()=>new Map),[S,O]=T.useState(g),[E,j]=T.useState(g);lL(()=>{x.current=!1,A.current=g;for(let P=0;P<E.length;P++){const D=Zf(E[P]);v.includes(D)?w.delete(D):w.get(D)!==!0&&w.set(D,!1)}},[E,v.length,v.join("-")]);const N=[];if(g!==S){let P=[...g];for(let D=0;D<E.length;D++){const M=E[D],k=Zf(M);v.includes(k)||(P.splice(D,0,M),N.push(M))}return s==="wait"&&N.length&&(P=N),j(jk(P)),O(g),null}const{forceRender:C}=T.useContext(VA);return m.jsx(m.Fragment,{children:E.map(P=>{const D=Zf(P),M=l&&!f?!1:g===E||v.includes(D),k=()=>{if(w.has(D))w.set(D,!0);else return;let q=!0;w.forEach(L=>{L||(q=!1)}),q&&(C?.(),j(A.current),l&&p?.(),r&&r())};return m.jsx(Tue,{isPresent:M,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:d,onExitComplete:M?void 0:k,anchorX:u,children:P},D)})})},e$=T.createContext({strict:!1}),Ok={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"]},dl={};for(const e in Ok)dl[e]={isEnabled:t=>Ok[e].some(n=>!!t[n])};function _ue(e){for(const t in e)dl[t]={...dl[t],...e[t]}}const Pue=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function pp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Pue.has(e)}let t$=e=>!pp(e);function Nue(e){typeof e=="function"&&(t$=t=>t.startsWith("on")?!pp(t):e(t))}try{Nue(require("@emotion/is-prop-valid").default)}catch{}function Due(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(t$(i)||n===!0&&pp(i)||!t&&!pp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const hm=T.createContext({});function pm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function $u(e){return typeof e=="string"||Array.isArray(e)}const h2=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],p2=["initial",...h2];function mm(e){return pm(e.animate)||p2.some(t=>$u(e[t]))}function n$(e){return!!(mm(e)||e.variants)}function Mue(e,t){if(mm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||$u(n)?n:void 0,animate:$u(r)?r:void 0}}return e.inherit!==!1?t:{}}function Rue(e){const{initial:t,animate:n}=Mue(e,T.useContext(hm));return T.useMemo(()=>({initial:t,animate:n}),[Tk(t),Tk(n)])}function Tk(e){return Array.isArray(e)?e.join(" "):e}const Bu={};function kue(e){for(const t in e)Bu[t]=e[t],QA(t)&&(Bu[t].isCSSVariable=!0)}function r$(e,{layout:t,layoutId:n}){return Cl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Bu[e]||e==="opacity")}const zue={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Lue=Tl.length;function $ue(e,t,n){let r="",i=!0;for(let s=0;s<Lue;s++){const l=Tl[s],u=e[l];if(u===void 0)continue;let d=!0;if(typeof u=="number"?d=u===(l.startsWith("scale")?1:0):d=parseFloat(u)===0,!d||n){const f=KL(u,c2[l]);if(!d){i=!1;const p=zue[l]||l;r+=`${p}(${f}) `}n&&(t[l]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function m2(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let l=!1,u=!1;for(const d in t){const f=t[d];if(Cl.has(d)){l=!0;continue}else if(QA(d)){i[d]=f;continue}else{const p=KL(f,c2[d]);d.startsWith("origin")?(u=!0,s[d]=p):r[d]=p}}if(t.transform||(l||n?r.transform=$ue(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=s;r.transformOrigin=`${d} ${f} ${p}`}}const g2=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function a$(e,t,n){for(const r in t)!hn(t[r])&&!r$(r,n)&&(e[r]=t[r])}function Bue({transformTemplate:e},t){return T.useMemo(()=>{const n=g2();return m2(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Iue(e,t){const n=e.style||{},r={};return a$(r,n,e),Object.assign(r,Bue(e,t)),r}function que(e,t){const n={},r=Iue(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Vue={offset:"stroke-dashoffset",array:"stroke-dasharray"},Uue={offset:"strokeDashoffset",array:"strokeDasharray"};function Hue(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Vue:Uue;e[s.offset]=Ee.transform(-r);const l=Ee.transform(t),u=Ee.transform(n);e[s.array]=`${l} ${u}`}function i$(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:l=0,...u},d,f,p){if(m2(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:v}=e;g.transform&&(v.transform=g.transform,delete g.transform),(v.transform||g.transformOrigin)&&(v.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),v.transform&&(v.transformBox=p?.transformBox??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),i!==void 0&&Hue(g,i,s,l,!1)}const o$=()=>({...g2(),attrs:{}}),s$=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Fue(e,t,n,r){const i=T.useMemo(()=>{const s=o$();return i$(s,t,s$(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};a$(s,e.style,e),i.style={...s,...i.style}}return i}const Gue=["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 v2(e){return typeof e!="string"||e.includes("-")?!1:!!(Gue.indexOf(e)>-1||/[A-Z]/u.test(e))}function Kue(e,t,n,{latestValues:r},i,s=!1){const u=(v2(e)?Fue:que)(t,r,i,e),d=Due(t,typeof e=="string",s),f=e!==T.Fragment?{...d,...u,ref:n}:{},{children:p}=t,g=T.useMemo(()=>hn(p)?p.get():p,[p]);return T.createElement(e,{...f,children:g})}function Ck(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function y2(e,t,n,r){if(typeof t=="function"){const[i,s]=Ck(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=Ck(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function oh(e){return hn(e)?e.get():e}function Xue({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Yue(n,r,i,e),renderState:t()}}function Yue(e,t,n,r){const i={},s=r(e,{});for(const v in s)i[v]=oh(s[v]);let{initial:l,animate:u}=e;const d=mm(e),f=n$(e);t&&f&&!d&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||l===!1;const g=p?u:l;if(g&&typeof g!="boolean"&&!pm(g)){const v=Array.isArray(g)?g:[g];for(let x=0;x<v.length;x++){const A=y2(e,v[x]);if(A){const{transitionEnd:w,transition:S,...O}=A;for(const E in O){let j=O[E];if(Array.isArray(j)){const N=p?j.length-1:0;j=j[N]}j!==null&&(i[E]=j)}for(const E in w)i[E]=w[E]}}}return i}const l$=e=>(t,n)=>{const r=T.useContext(hm),i=T.useContext(fm),s=()=>Xue(e,t,r,i);return n?s():UA(s)};function x2(e,t,n){const{style:r}=e,i={};for(const s in r)(hn(r[s])||t.style&&hn(t.style[s])||r$(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}const Wue=l$({scrapeMotionValuesFromProps:x2,createRenderState:g2});function c$(e,t,n){const r=x2(e,t,n);for(const i in e)if(hn(e[i])||hn(t[i])){const s=Tl.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const Zue=l$({scrapeMotionValuesFromProps:c$,createRenderState:o$}),Que=Symbol.for("motionComponentSymbol");function Os(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Jue(e,t,n){return T.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Os(n)&&(n.current=r))},[t])}const b2=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ede="framerAppearId",u$="data-"+b2(ede),d$=T.createContext({});function tde(e,t,n,r,i){const{visualElement:s}=T.useContext(hm),l=T.useContext(e$),u=T.useContext(fm),d=T.useContext(f2).reducedMotion,f=T.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:s,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const p=f.current,g=T.useContext(d$);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&nde(f.current,n,i,g);const v=T.useRef(!1);T.useInsertionEffect(()=>{p&&v.current&&p.update(n,u)});const x=n[u$],A=T.useRef(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return lL(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),A.current&&p.animationState&&p.animationState.animateChanges())}),T.useEffect(()=>{p&&(!A.current&&p.animationState&&p.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),A.current=!1),p.enteringChildren=void 0)}),p}function nde(e,t,n,r){const{layoutId:i,layout:s,drag:l,dragConstraints:u,layoutScroll:d,layoutRoot:f,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:f$(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!l||u&&Os(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:d,layoutRoot:f})}function f$(e){if(e)return e.options.allowProjection!==!1?e.projection:f$(e.parent)}function n1(e,{forwardMotionProps:t=!1}={},n,r){n&&_ue(n);const i=v2(e)?Zue:Wue;function s(u,d){let f;const p={...T.useContext(f2),...u,layoutId:rde(u)},{isStatic:g}=p,v=Rue(u),x=i(u,g);if(!g&&HA){ade();const A=ide(p);f=A.MeasureLayout,v.visualElement=tde(e,x,p,r,A.ProjectionNode)}return m.jsxs(hm.Provider,{value:v,children:[f&&v.visualElement?m.jsx(f,{visualElement:v.visualElement,...p}):null,Kue(e,u,Jue(x,v.visualElement,d),x,g,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=T.forwardRef(s);return l[Que]=e,l}function rde({layoutId:e}){const t=T.useContext(VA).id;return t&&e!==void 0?t+"-"+e:e}function ade(e,t){T.useContext(e$).strict}function ide(e){const{drag:t,layout:n}=dl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function ode(e,t){if(typeof Proxy>"u")return n1;const n=new Map,r=(s,l)=>n1(s,l,e,t),i=(s,l)=>r(s,l);return new Proxy(i,{get:(s,l)=>l==="create"?r:(n.has(l)||n.set(l,n1(l,void 0,e,t)),n.get(l))})}function h$({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function sde({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lde(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function r1(e){return e===void 0||e===1}function lS({scale:e,scaleX:t,scaleY:n}){return!r1(e)||!r1(t)||!r1(n)}function Wi(e){return lS(e)||p$(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function p$(e){return Ek(e.x)||Ek(e.y)}function Ek(e){return e&&e!=="0%"}function mp(e,t,n){const r=e-n,i=t*r;return n+i}function _k(e,t,n,r,i){return i!==void 0&&(e=mp(e,i,r)),mp(e,n,r)+t}function cS(e,t=0,n=1,r,i){e.min=_k(e.min,t,n,r,i),e.max=_k(e.max,t,n,r,i)}function m$(e,{x:t,y:n}){cS(e.x,t.translate,t.scale,t.originPoint),cS(e.y,n.translate,n.scale,n.originPoint)}const Pk=.999999999999,Nk=1.0000000000001;function cde(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,l;for(let u=0;u<i;u++){s=n[u],l=s.projectionDelta;const{visualElement:d}=s.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Cs(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,m$(e,l)),r&&Wi(s.latestValues)&&Cs(e,s.latestValues))}t.x<Nk&&t.x>Pk&&(t.x=1),t.y<Nk&&t.y>Pk&&(t.y=1)}function Ts(e,t){e.min=e.min+t,e.max=e.max+t}function Dk(e,t,n,r,i=.5){const s=St(e.min,e.max,i);cS(e,t,n,s,r)}function Cs(e,t){Dk(e.x,t.x,t.scaleX,t.scale,t.originX),Dk(e.y,t.y,t.scaleY,t.scale,t.originY)}function g$(e,t){return h$(lde(e.getBoundingClientRect(),t))}function ude(e,t,n){const r=g$(e,n),{scroll:i}=t;return i&&(Ts(r.x,i.offset.x),Ts(r.y,i.offset.y)),r}const Mk=()=>({translate:0,scale:1,origin:0,originPoint:0}),Es=()=>({x:Mk(),y:Mk()}),Rk=()=>({min:0,max:0}),Nt=()=>({x:Rk(),y:Rk()}),uS={current:null},v$={current:!1};function dde(){if(v$.current=!0,!!HA)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>uS.current=e.matches;e.addEventListener("change",t),t()}else uS.current=!1}const fde=new WeakMap;function hde(e,t,n){for(const r in t){const i=t[r],s=n[r];if(hn(i))e.addValue(r,i);else if(hn(s))e.addValue(r,ul(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(i):l.hasAnimated||l.set(i)}else{const l=e.getStaticValue(r);e.addValue(r,ul(l!==void 0?l:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const kk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class pde{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:l},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=s2,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=En.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,xt.render(this.render,!1,!0))};const{latestValues:d,renderState:f}=l;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!s,this.isControllingVariants=mm(n),this.isVariantNode=n$(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in g){const x=g[v];d[v]!==void 0&&hn(x)&&x.set(d[v])}}mount(t){this.current=t,fde.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),v$.current||dde(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:uS.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),yi(this.notifyUpdate),yi(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Cl.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&xt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in dl){const n=dl[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Nt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<kk.length;r++){const i=kk[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,l=t[s];l&&(this.propEventSubscriptions[i]=this.on(i,l))}this.prevMotionValues=hde(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ul(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(cL(r)||dL(r))?r=parseFloat(r):!wue(r)&&xi.test(n)&&(r=GL(t,n)),this.setBaseTarget(t,hn(r)?r.get():r)),hn(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=y2(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!hn(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new YA),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){u2.render(this.render)}}class y$ extends pde{constructor(){super(...arguments),this.KeyframeResolver=cue}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;hn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function x$(e,{style:t,vars:n},r,i){const s=e.style;let l;for(l in t)s[l]=t[l];i?.applyProjectionStyles(s,r);for(l in n)s.setProperty(l,n[l])}function mde(e){return window.getComputedStyle(e)}class gde extends y${constructor(){super(...arguments),this.type="html",this.renderInstance=x$}readValueFromInstance(t,n){if(Cl.has(n))return this.projection?.isProjecting?tS(n):Ece(t,n);{const r=mde(t),i=(QA(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return g$(t,n)}build(t,n,r){m2(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return x2(t,n,r)}}const b$=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function vde(e,t,n,r){x$(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(b$.has(i)?i:b2(i),t.attrs[i])}class yde extends y${constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Nt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Cl.has(n)){const r=FL(n);return r&&r.default||0}return n=b$.has(n)?n:b2(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return c$(t,n,r)}build(t,n,r){i$(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){vde(t,n,r,i)}mount(t){this.isSVGTag=s$(t.tagName),super.mount(t)}}const xde=(e,t)=>v2(e)?new yde(t):new gde(t,{allowProjection:e!==T.Fragment});function Rs(e,t,n){const r=e.getProps();return y2(r,t,n!==void 0?n:r.custom,e)}const dS=e=>Array.isArray(e);function bde(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ul(n))}function wde(e){return dS(e)?e[e.length-1]||0:e}function Sde(e,t){const n=Rs(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const l in s){const u=wde(s[l]);bde(e,l,u)}}function Ade(e){return!!(hn(e)&&e.add)}function fS(e,t){const n=e.getValue("willChange");if(Ade(n))return n.add(t);if(!n&&_a.WillChange){const r=new _a.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function w$(e){return e.props[u$]}const jde=e=>e!==null;function Ode(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(jde),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const Tde={type:"spring",stiffness:500,damping:25,restSpeed:10},Cde=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ede={type:"keyframes",duration:.8},_de={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Pde=(e,{keyframes:t})=>t.length>2?Ede:Cl.has(e)?e.startsWith("scale")?Cde(t[1]):Tde:_de;function Nde({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:l,repeatDelay:u,from:d,elapsed:f,...p}){return!!Object.keys(p).length}const w2=(e,t,n,r={},i,s)=>l=>{const u=l2(r,e)||{},d=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Ur(d);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:v=>{t.set(v),u.onUpdate&&u.onUpdate(v)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:i};Nde(u)||Object.assign(p,Pde(e,p)),p.duration&&(p.duration=Ur(p.duration)),p.repeatDelay&&(p.repeatDelay=Ur(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let g=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(oS(p),p.delay===0&&(g=!0)),(_a.instantAnimations||_a.skipAnimations)&&(g=!0,oS(p),p.delay=0),p.allowFlatten=!u.type&&!u.ease,g&&!s&&t.get()!==void 0){const v=Ode(p.keyframes,u);if(v!==void 0){xt.update(()=>{p.onUpdate(v),p.onComplete()});return}}return u.isSync?new o2(p):new Zce(p)};function Dde({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function S$(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:l,...u}=t;r&&(s=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const p in u){const g=e.getValue(p,e.latestValues[p]??null),v=u[p];if(v===void 0||f&&Dde(f,p))continue;const x={delay:n,...l2(s||{},p)},A=g.get();if(A!==void 0&&!g.isAnimating&&!Array.isArray(v)&&v===A&&!x.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const O=w$(e);if(O){const E=window.MotionHandoffAnimation(O,p,xt);E!==null&&(x.startTime=E,w=!0)}}fS(e,p),g.start(w2(p,g,v,e.shouldReduceMotion&&VL.has(p)?{type:!1}:x,e,w));const S=g.animation;S&&d.push(S)}return l&&Promise.all(d).then(()=>{xt.update(()=>{l&&Sde(e,l)})}),d}function A$(e,t,n,r=0,i=1){const s=Array.from(e).sort((f,p)=>f.sortNodePosition(p)).indexOf(t),l=e.size,u=(l-1)*r;return typeof n=="function"?n(s,l):i===1?s*r:u-s*r}function hS(e,t,n={}){const r=Rs(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(S$(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:p,staggerDirection:g}=i;return Mde(e,t,d,f,p,g,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[d,f]=u==="beforeChildren"?[s,l]:[l,s];return d().then(()=>f())}else return Promise.all([s(),l(n.delay)])}function Mde(e,t,n=0,r=0,i=0,s=1,l){const u=[];for(const d of e.variantChildren)d.notify("AnimationStart",t),u.push(hS(d,t,{...l,delay:n+(typeof r=="function"?0:r)+A$(e.variantChildren,d,r,i,s)}).then(()=>d.notify("AnimationComplete",t)));return Promise.all(u)}function Rde(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>hS(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=hS(e,t,n);else{const i=typeof t=="function"?Rs(e,t,n.custom):t;r=Promise.all(S$(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function j$(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const kde=p2.length;function O$(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?O$(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<kde;n++){const r=p2[n],i=e.props[r];($u(i)||i===!1)&&(t[r]=i)}return t}const zde=[...h2].reverse(),Lde=h2.length;function $de(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Rde(e,n,r)))}function Bde(e){let t=$de(e),n=zk(),r=!0;const i=d=>(f,p)=>{const g=Rs(e,p,d==="exit"?e.presenceContext?.custom:void 0);if(g){const{transition:v,transitionEnd:x,...A}=g;f={...f,...A,...x}}return f};function s(d){t=d(e)}function l(d){const{props:f}=e,p=O$(e.parent)||{},g=[],v=new Set;let x={},A=1/0;for(let S=0;S<Lde;S++){const O=zde[S],E=n[O],j=f[O]!==void 0?f[O]:p[O],N=$u(j),C=O===d?E.isActive:null;C===!1&&(A=S);let P=j===p[O]&&j!==f[O]&&N;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),E.protectedKeys={...x},!E.isActive&&C===null||!j&&!E.prevProp||pm(j)||typeof j=="boolean")continue;const D=Ide(E.prevProp,j);let M=D||O===d&&E.isActive&&!P&&N||S>A&&N,k=!1;const q=Array.isArray(j)?j:[j];let L=q.reduce(i(O),{});C===!1&&(L={});const{prevResolvedValues:U={}}=E,X={...U,...L},J=H=>{M=!0,v.has(H)&&(k=!0,v.delete(H)),E.needsAnimating[H]=!0;const F=e.getValue(H);F&&(F.liveStyle=!1)};for(const H in X){const F=L[H],ie=U[H];if(x.hasOwnProperty(H))continue;let ue=!1;dS(F)&&dS(ie)?ue=!j$(F,ie):ue=F!==ie,ue?F!=null?J(H):v.add(H):F!==void 0&&v.has(H)?J(H):E.protectedKeys[H]=!0}E.prevProp=j,E.prevResolvedValues=L,E.isActive&&(x={...x,...L}),r&&e.blockInitialAnimation&&(M=!1);const W=P&&D;M&&(!W||k)&&g.push(...q.map(H=>{const F={type:O};if(typeof H=="string"&&r&&!W&&e.manuallyAnimateOnMount&&e.parent){const{parent:ie}=e,ue=Rs(ie,H);if(ie.enteringChildren&&ue){const{delayChildren:$}=ue.transition||{};F.delay=A$(ie.enteringChildren,e,$)}}return{animation:H,options:F}}))}if(v.size){const S={};if(typeof f.initial!="boolean"){const O=Rs(e,Array.isArray(f.initial)?f.initial[0]:f.initial);O&&O.transition&&(S.transition=O.transition)}v.forEach(O=>{const E=e.getBaseTarget(O),j=e.getValue(O);j&&(j.liveStyle=!0),S[O]=E??null}),g.push({animation:S})}let w=!!g.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(g):Promise.resolve()}function u(d,f){if(n[d].isActive===f)return Promise.resolve();e.variantChildren?.forEach(g=>g.animationState?.setActive(d,f)),n[d].isActive=f;const p=l(d);for(const g in n)n[g].protectedKeys={};return p}return{animateChanges:l,setActive:u,setAnimateFunction:s,getState:()=>n,reset:()=>{n=zk(),r=!0}}}function Ide(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!j$(t,e):!1}function Ki(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zk(){return{animate:Ki(!0),whileInView:Ki(),whileHover:Ki(),whileTap:Ki(),whileDrag:Ki(),whileFocus:Ki(),exit:Ki()}}class ji{constructor(t){this.isMounted=!1,this.node=t}update(){}}class qde extends ji{constructor(t){super(t),t.animationState||(t.animationState=Bde(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();pm(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Vde=0;class Ude extends ji{constructor(){super(...arguments),this.id=Vde++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Hde={animation:{Feature:qde},exit:{Feature:Ude}};function Iu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function od(e){return{point:{x:e.pageX,y:e.pageY}}}const Fde=e=>t=>d2(t)&&e(t,od(t));function Yc(e,t,n,r){return Iu(e,t,Fde(n),r)}const T$=1e-4,Gde=1-T$,Kde=1+T$,C$=.01,Xde=0-C$,Yde=0+C$;function yn(e){return e.max-e.min}function Wde(e,t,n){return Math.abs(e-t)<=n}function Lk(e,t,n,r=.5){e.origin=r,e.originPoint=St(t.min,t.max,e.origin),e.scale=yn(n)/yn(t),e.translate=St(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Gde&&e.scale<=Kde||isNaN(e.scale))&&(e.scale=1),(e.translate>=Xde&&e.translate<=Yde||isNaN(e.translate))&&(e.translate=0)}function Wc(e,t,n,r){Lk(e.x,t.x,n.x,r?r.originX:void 0),Lk(e.y,t.y,n.y,r?r.originY:void 0)}function $k(e,t,n){e.min=n.min+t.min,e.max=e.min+yn(t)}function Zde(e,t,n){$k(e.x,t.x,n.x),$k(e.y,t.y,n.y)}function Bk(e,t,n){e.min=t.min-n.min,e.max=e.min+yn(t)}function Zc(e,t,n){Bk(e.x,t.x,n.x),Bk(e.y,t.y,n.y)}function lr(e){return[e("x"),e("y")]}const E$=({current:e})=>e?e.ownerDocument.defaultView:null,Ik=(e,t)=>Math.abs(e-t);function Qde(e,t){const n=Ik(e.x,t.x),r=Ik(e.y,t.y);return Math.sqrt(n**2+r**2)}class _${constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:l=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=i1(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,A=Qde(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!A)return;const{point:w}=v,{timestamp:S}=on;this.history.push({...w,timestamp:S});const{onStart:O,onMove:E}=this.handlers;x||(O&&O(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,v)},this.handlePointerMove=(v,x)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=a1(x,this.transformPagePoint),xt.update(this.updatePoint,!0)},this.handlePointerUp=(v,x)=>{this.end();const{onEnd:A,onSessionEnd:w,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const O=i1(v.type==="pointercancel"?this.lastMoveEventInfo:a1(x,this.transformPagePoint),this.history);this.startEvent&&A&&A(v,O),w&&w(v,O)},!d2(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=i||window;const u=od(t),d=a1(u,this.transformPagePoint),{point:f}=d,{timestamp:p}=on;this.history=[{...f,timestamp:p}];const{onSessionStart:g}=n;g&&g(t,i1(d,this.history)),this.removeListeners=rd(Yc(this.contextWindow,"pointermove",this.handlePointerMove),Yc(this.contextWindow,"pointerup",this.handlePointerUp),Yc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),yi(this.updatePoint)}}function a1(e,t){return t?{point:t(e.point)}:e}function qk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function i1({point:e},t){return{point:e,delta:qk(e,P$(t)),offset:qk(e,Jde(t)),velocity:efe(t,.1)}}function Jde(e){return e[0]}function P$(e){return e[e.length-1]}function efe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=P$(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ur(t)));)n--;if(!r)return{x:0,y:0};const s=hr(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const l={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function tfe(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?St(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?St(n,e,r.max):Math.min(e,n)),e}function Vk(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function nfe(e,{top:t,left:n,bottom:r,right:i}){return{x:Vk(e.x,n,i),y:Vk(e.y,t,r)}}function Uk(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function rfe(e,t){return{x:Uk(e.x,t.x),y:Uk(e.y,t.y)}}function afe(e,t){let n=.5;const r=yn(e),i=yn(t);return i>r?n=ku(t.min,t.max-r,e.min):r>i&&(n=ku(e.min,e.max-i,t.min)),Ea(0,1,n)}function ife(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const pS=.35;function ofe(e=pS){return e===!1?e=0:e===!0&&(e=pS),{x:Hk(e,"left","right"),y:Hk(e,"top","bottom")}}function Hk(e,t,n){return{min:Fk(e,t),max:Fk(e,n)}}function Fk(e,t){return typeof e=="number"?e:e[t]||0}const sfe=new WeakMap;class lfe{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Nt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=g=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(od(g).point)},l=(g,v)=>{const{drag:x,dragPropagation:A,onDragStart:w}=this.getProps();if(x&&!A&&(this.openDragLock&&this.openDragLock(),this.openDragLock=hue(x),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),lr(O=>{let E=this.getAxisMotionValue(O).get()||0;if(Hr.test(E)){const{projection:j}=this.visualElement;if(j&&j.layout){const N=j.layout.layoutBox[O];N&&(E=yn(N)*(parseFloat(E)/100))}}this.originPoint[O]=E}),w&&xt.postRender(()=>w(g,v)),fS(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},u=(g,v)=>{this.latestPointerEvent=g,this.latestPanInfo=v;const{dragPropagation:x,dragDirectionLock:A,onDirectionLock:w,onDrag:S}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:O}=v;if(A&&this.currentDirection===null){this.currentDirection=cfe(O),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",v.point,O),this.updateAxis("y",v.point,O),this.visualElement.render(),S&&S(g,v)},d=(g,v)=>{this.latestPointerEvent=g,this.latestPanInfo=v,this.stop(g,v),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>lr(g=>this.getAnimationState(g)==="paused"&&this.getAxisMotionValue(g).animation?.play()),{dragSnapToOrigin:p}=this.getProps();this.panSession=new _$(t,{onSessionStart:s,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:E$(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:l}=i;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&xt.postRender(()=>u(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Qf(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=tfe(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Os(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=nfe(r.layoutBox,t):this.constraints=!1,this.elastic=ofe(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&lr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=ife(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Os(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=ude(r,i.root,this.visualElement.getTransformPagePoint());let l=rfe(i.layout.layoutBox,s);if(n){const u=n(sde(l));this.hasMutatedConstraints=!!u,u&&(l=h$(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),d=this.constraints||{},f=lr(p=>{if(!Qf(p,n,this.currentDirection))return;let g=d&&d[p]||{};l&&(g={min:0,max:0});const v=i?200:1e6,x=i?40:1e7,A={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...s,...g};return this.startAxisValueAnimation(p,A)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return fS(this.visualElement,t),r.start(w2(t,r,0,n,this.visualElement,!1))}stopAnimation(){lr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){lr(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){lr(n=>{const{drag:r}=this.getProps();if(!Qf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:u}=i.layout.layoutBox[n];s.set(t[n]-St(l,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Os(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};lr(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const d=u.get();i[l]=afe({min:d,max:d},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),lr(l=>{if(!Qf(l,t,null))return;const u=this.getAxisMotionValue(l),{min:d,max:f}=this.constraints[l];u.set(St(d,f,i[l]))})}addListeners(){if(!this.visualElement.current)return;sfe.set(this.visualElement,this);const t=this.visualElement.current,n=Yc(t,"pointerdown",d=>{const{drag:f,dragListener:p=!0}=this.getProps();f&&p&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();Os(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),xt.read(r);const l=Iu(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:f})=>{this.isDragging&&f&&(lr(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=d[p].translate,g.set(g.get()+d[p].translate))}),this.visualElement.render())}));return()=>{l(),n(),s(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:l=pS,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:l,dragMomentum:u}}}function Qf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function cfe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ufe extends ji{constructor(t){super(t),this.removeGroupControls=pr,this.removeListeners=pr,this.controls=new lfe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||pr}unmount(){this.removeGroupControls(),this.removeListeners()}}const Gk=e=>(t,n)=>{e&&xt.postRender(()=>e(t,n))};class dfe extends ji{constructor(){super(...arguments),this.removePointerDownListener=pr}onPointerDown(t){this.session=new _$(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:E$(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Gk(t),onStart:Gk(n),onMove:r,onEnd:(s,l)=>{delete this.session,i&&xt.postRender(()=>i(s,l))}}}mount(){this.removePointerDownListener=Yc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const sh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Kk(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Mc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ee.test(e))e=parseFloat(e);else return e;const n=Kk(e,t.target.x),r=Kk(e,t.target.y);return`${n}% ${r}%`}},ffe={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=xi.parse(e);if(i.length>5)return r;const s=xi.createTransformer(e),l=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,d=n.y.scale*t.y;i[0+l]/=u,i[1+l]/=d;const f=St(u,d,.5);return typeof i[2+l]=="number"&&(i[2+l]/=f),typeof i[3+l]=="number"&&(i[3+l]/=f),s(i)}};let o1=!1;class hfe extends T.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;kue(pfe),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),o1&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),sh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:l}=r;return l&&(l.isPresent=s,o1=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||xt.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),u2.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;o1=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function N$(e){const[t,n]=JL(),r=T.useContext(VA);return m.jsx(hfe,{...e,layoutGroup:r,switchLayoutGroup:T.useContext(d$),isPresent:t,safeToRemove:n})}const pfe={borderRadius:{...Mc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Mc,borderTopRightRadius:Mc,borderBottomLeftRadius:Mc,borderBottomRightRadius:Mc,boxShadow:ffe};function mfe(e,t,n){const r=hn(e)?e:ul(e);return r.start(w2("",r,t,n)),r.animation}const gfe=(e,t)=>e.depth-t.depth;class vfe{constructor(){this.children=[],this.isDirty=!1}add(t){FA(this.children,t),this.isDirty=!0}remove(t){GA(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(gfe),this.isDirty=!1,this.children.forEach(t)}}function yfe(e,t){const n=En.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(yi(r),e(s-t))};return xt.setup(r,!0),()=>yi(r)}const D$=["TopLeft","TopRight","BottomLeft","BottomRight"],xfe=D$.length,Xk=e=>typeof e=="string"?parseFloat(e):e,Yk=e=>typeof e=="number"||Ee.test(e);function bfe(e,t,n,r,i,s){i?(e.opacity=St(0,n.opacity??1,wfe(r)),e.opacityExit=St(t.opacity??1,0,Sfe(r))):s&&(e.opacity=St(t.opacity??1,n.opacity??1,r));for(let l=0;l<xfe;l++){const u=`border${D$[l]}Radius`;let d=Wk(t,u),f=Wk(n,u);if(d===void 0&&f===void 0)continue;d||(d=0),f||(f=0),d===0||f===0||Yk(d)===Yk(f)?(e[u]=Math.max(St(Xk(d),Xk(f),r),0),(Hr.test(f)||Hr.test(d))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=St(t.rotate||0,n.rotate||0,r))}function Wk(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const wfe=M$(0,.5,xL),Sfe=M$(.5,.95,pr);function M$(e,t,n){return r=>r<e?0:r>t?1:n(ku(e,t,r))}function Zk(e,t){e.min=t.min,e.max=t.max}function sr(e,t){Zk(e.x,t.x),Zk(e.y,t.y)}function Qk(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Jk(e,t,n,r,i){return e-=t,e=mp(e,1/n,r),i!==void 0&&(e=mp(e,1/i,r)),e}function Afe(e,t=0,n=1,r=.5,i,s=e,l=e){if(Hr.test(t)&&(t=parseFloat(t),t=St(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=St(s.min,s.max,r);e===s&&(u-=t),e.min=Jk(e.min,t,n,u,i),e.max=Jk(e.max,t,n,u,i)}function e3(e,t,[n,r,i],s,l){Afe(e,t[n],t[r],t[i],t.scale,s,l)}const jfe=["x","scaleX","originX"],Ofe=["y","scaleY","originY"];function t3(e,t,n,r){e3(e.x,t,jfe,n?n.x:void 0,r?r.x:void 0),e3(e.y,t,Ofe,n?n.y:void 0,r?r.y:void 0)}function n3(e){return e.translate===0&&e.scale===1}function R$(e){return n3(e.x)&&n3(e.y)}function r3(e,t){return e.min===t.min&&e.max===t.max}function Tfe(e,t){return r3(e.x,t.x)&&r3(e.y,t.y)}function a3(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function k$(e,t){return a3(e.x,t.x)&&a3(e.y,t.y)}function i3(e){return yn(e.x)/yn(e.y)}function o3(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Cfe{constructor(){this.members=[]}add(t){FA(this.members,t),t.scheduleRender()}remove(t){if(GA(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Efe(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,l=n?.z||0;if((i||s||l)&&(r=`translate3d(${i}px, ${s}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:p,rotateX:g,rotateY:v,skewX:x,skewY:A}=n;f&&(r=`perspective(${f}px) ${r}`),p&&(r+=`rotate(${p}deg) `),g&&(r+=`rotateX(${g}deg) `),v&&(r+=`rotateY(${v}deg) `),x&&(r+=`skewX(${x}deg) `),A&&(r+=`skewY(${A}deg) `)}const u=e.x.scale*t.x,d=e.y.scale*t.y;return(u!==1||d!==1)&&(r+=`scale(${u}, ${d})`),r||"none"}const s1=["","X","Y","Z"],_fe=1e3;let Pfe=0;function l1(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function z$(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=w$(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",xt,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&z$(r)}function L$({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(l={},u=t?.()){this.id=Pfe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Mfe),this.nodes.forEach(Lfe),this.nodes.forEach($fe),this.nodes.forEach(Rfe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new vfe)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new YA),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const d=this.eventHandlers.get(l);d&&d.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=QL(l)&&!xue(l),this.instance=l;const{layoutId:u,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||u)&&(this.isLayoutDirty=!0),e){let p,g=0;const v=()=>this.root.updateBlockedByResize=!1;xt.read(()=>{g=window.innerWidth}),e(l,()=>{const x=window.innerWidth;x!==g&&(g=x,this.root.updateBlockedByResize=!0,p&&p(),p=yfe(v,250),sh.hasAnimatedSinceResize&&(sh.hasAnimatedSinceResize=!1,this.nodes.forEach(c3)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&f&&(u||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:g,hasRelativeLayoutChanged:v,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||f.getDefaultTransition()||Ufe,{onLayoutAnimationStart:w,onLayoutAnimationComplete:S}=f.getProps(),O=!this.targetLayout||!k$(this.targetLayout,x),E=!g&&v;if(this.options.layoutRoot||this.resumeFrom||E||g&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const j={...l2(A,"layout"),onPlay:w,onComplete:S};(f.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j),this.setAnimationOrigin(p,E)}else g||c3(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),yi(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(Bfe),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&z$(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:u,layout:d}=this.options;if(u===void 0&&!d)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(s3);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(l3);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(zfe),this.nodes.forEach(Nfe),this.nodes.forEach(Dfe)):this.nodes.forEach(l3),this.clearAllSnapshots();const u=En.now();on.delta=Ea(0,1e3/60,u-on.timestamp),on.timestamp=u,on.isProcessing=!0,W0.update.process(on),W0.preRender.process(on),W0.render.process(on),on.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,u2.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(kfe),this.sharedNodes.forEach(Ife)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,xt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){xt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!yn(this.snapshot.measuredBox.x)&&!yn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Nt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(u=!1),u&&this.instance){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!i)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!R$(this.projectionDelta),d=this.getTransformTemplate(),f=d?d(this.latestValues,""):void 0,p=f!==this.prevTransformTemplateValue;l&&this.instance&&(u||Wi(this.latestValues)||p)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let d=this.removeElementScroll(u);return l&&(d=this.removeTransform(d)),Hfe(d),{animationId:this.root.animationId,measuredBox:u,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return Nt();const u=l.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ffe))){const{scroll:f}=this.root;f&&(Ts(u.x,f.offset.x),Ts(u.y,f.offset.y))}return u}removeElementScroll(l){const u=Nt();if(sr(u,l),this.scroll?.wasRoot)return u;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:p,options:g}=f;f!==this.root&&p&&g.layoutScroll&&(p.wasRoot&&sr(u,l),Ts(u.x,p.offset.x),Ts(u.y,p.offset.y))}return u}applyTransform(l,u=!1){const d=Nt();sr(d,l);for(let f=0;f<this.path.length;f++){const p=this.path[f];!u&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Cs(d,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Wi(p.latestValues)&&Cs(d,p.latestValues)}return Wi(this.latestValues)&&Cs(d,this.latestValues),d}removeTransform(l){const u=Nt();sr(u,l);for(let d=0;d<this.path.length;d++){const f=this.path[d];if(!f.instance||!Wi(f.latestValues))continue;lS(f.latestValues)&&f.updateSnapshot();const p=Nt(),g=f.measurePageBox();sr(p,g),t3(u,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,p)}return Wi(this.latestValues)&&t3(u,this.latestValues),u}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==on.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(l||d&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:g}=this.options;if(!(!this.layout||!(p||g))){if(this.resolvedRelativeTargetAt=on.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Nt(),this.relativeTargetOrigin=Nt(),Zc(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),sr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Nt(),this.targetWithTransforms=Nt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Zde(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sr(this.target,this.layout.layoutBox),m$(this.target,this.targetDelta)):sr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Nt(),this.relativeTargetOrigin=Nt(),Zc(this.relativeTargetOrigin,this.target,v.target),sr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||lS(this.parent.latestValues)||p$(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const l=this.getLead(),u=!!this.resumingFrom||this!==l;let d=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===on.timestamp&&(d=!1),d)return;const{layout:f,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||p))return;sr(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,v=this.treeScale.y;cde(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Nt());const{target:x}=l;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Qk(this.prevProjectionDelta.x,this.projectionDelta.x),Qk(this.prevProjectionDelta.y,this.projectionDelta.y)),Wc(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==v||!o3(this.projectionDelta.x,this.prevProjectionDelta.x)||!o3(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.visualElement?.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Es(),this.projectionDelta=Es(),this.projectionDeltaWithTransform=Es()}setAnimationOrigin(l,u=!1){const d=this.snapshot,f=d?d.latestValues:{},p={...this.latestValues},g=Es();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const v=Nt(),x=d?d.source:void 0,A=this.layout?this.layout.source:void 0,w=x!==A,S=this.getStack(),O=!S||S.members.length<=1,E=!!(w&&!O&&this.options.crossfade===!0&&!this.path.some(Vfe));this.animationProgress=0;let j;this.mixTargetDelta=N=>{const C=N/1e3;u3(g.x,l.x,C),u3(g.y,l.y,C),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Zc(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),qfe(this.relativeTarget,this.relativeTargetOrigin,v,C),j&&Tfe(this.relativeTarget,j)&&(this.isProjectionDirty=!1),j||(j=Nt()),sr(j,this.relativeTarget)),w&&(this.animationValues=p,bfe(p,f,this.latestValues,C,E,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(yi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xt.update(()=>{sh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ul(0)),this.currentAnimation=mfe(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),l.onUpdate&&l.onUpdate(u)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_fe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:d,layout:f,latestValues:p}=l;if(!(!u||!d||!f)){if(this!==l&&this.layout&&f&&$$(this.options.animationType,this.layout.layoutBox,f.layoutBox)){d=this.target||Nt();const g=yn(this.layout.layoutBox.x);d.x.min=l.target.x.min,d.x.max=d.x.min+g;const v=yn(this.layout.layoutBox.y);d.y.min=l.target.y.min,d.y.max=d.y.min+v}sr(u,d),Cs(u,p),Wc(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new Cfe),this.sharedNodes.get(l).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){const{layoutId:l}=this.options;return l?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:l}=this.options;return l?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:d}={}){const f=this.getStack();f&&f.promote(this,d),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:d}=l;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(u=!0),!u)return;const f={};d.z&&l1("z",l,f,this.animationValues);for(let p=0;p<s1.length;p++)l1(`rotate${s1[p]}`,l,f,this.animationValues),l1(`skew${s1[p]}`,l,f,this.animationValues);l.render();for(const p in f)l.setStaticValue(p,f[p]),this.animationValues&&(this.animationValues[p]=f[p]);l.scheduleRender()}applyProjectionStyles(l,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const d=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=oh(u?.pointerEvents)||"",l.transform=d?d(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=oh(u?.pointerEvents)||""),this.hasProjected&&!Wi(this.latestValues)&&(l.transform=d?d({},""):"none",this.hasProjected=!1);return}l.visibility="";const p=f.animationValues||f.latestValues;this.applyTransformsToTarget();let g=Efe(this.projectionDeltaWithTransform,this.treeScale,p);d&&(g=d(p,g)),l.transform=g;const{x:v,y:x}=this.projectionDelta;l.transformOrigin=`${v.origin*100}% ${x.origin*100}% 0`,f.animationValues?l.opacity=f===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:l.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const A in Bu){if(p[A]===void 0)continue;const{correct:w,applyTo:S,isCSSVariable:O}=Bu[A],E=g==="none"?p[A]:w(p[A],f);if(S){const j=S.length;for(let N=0;N<j;N++)l[S[N]]=E}else O?this.options.visualElement.renderState.vars[A]=E:l[A]=E}this.options.layoutId&&(l.pointerEvents=f===this?oh(u?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>l.currentAnimation?.stop()),this.root.nodes.forEach(s3),this.root.sharedNodes.clear()}}}function Nfe(e){e.updateLayout()}function Dfe(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;i==="size"?lr(p=>{const g=s?t.measuredBox[p]:t.layoutBox[p],v=yn(g);g.min=n[p].min,g.max=g.min+v}):$$(i,t.layoutBox,n)&&lr(p=>{const g=s?t.measuredBox[p]:t.layoutBox[p],v=yn(n[p]);g.max=g.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+v)});const l=Es();Wc(l,n,t.layoutBox);const u=Es();s?Wc(u,e.applyTransform(r,!0),t.measuredBox):Wc(u,n,t.layoutBox);const d=!R$(l);let f=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:g,layout:v}=p;if(g&&v){const x=Nt();Zc(x,t.layoutBox,g.layoutBox);const A=Nt();Zc(A,n,v.layoutBox),k$(x,A)||(f=!0),p.options.layoutRoot&&(e.relativeTarget=A,e.relativeTargetOrigin=x,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:u,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:f})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Mfe(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Rfe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function kfe(e){e.clearSnapshot()}function s3(e){e.clearMeasurements()}function l3(e){e.isLayoutDirty=!1}function zfe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function c3(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Lfe(e){e.resolveTargetDelta()}function $fe(e){e.calcProjection()}function Bfe(e){e.resetSkewAndRotation()}function Ife(e){e.removeLeadSnapshot()}function u3(e,t,n){e.translate=St(t.translate,0,n),e.scale=St(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function d3(e,t,n,r){e.min=St(t.min,n.min,r),e.max=St(t.max,n.max,r)}function qfe(e,t,n,r){d3(e.x,t.x,n.x,r),d3(e.y,t.y,n.y,r)}function Vfe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Ufe={duration:.45,ease:[.4,0,.1,1]},f3=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),h3=f3("applewebkit/")&&!f3("chrome/")?Math.round:pr;function p3(e){e.min=h3(e.min),e.max=h3(e.max)}function Hfe(e){p3(e.x),p3(e.y)}function $$(e,t,n){return e==="position"||e==="preserve-aspect"&&!Wde(i3(t),i3(n),.2)}function Ffe(e){return e!==e.root&&e.scroll?.wasRoot}const Gfe=L$({attachResizeListener:(e,t)=>Iu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),c1={current:void 0},B$=L$({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!c1.current){const e=new Gfe({});e.mount(window),e.setOptions({layoutScroll:!0}),c1.current=e}return c1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Kfe={pan:{Feature:dfe},drag:{Feature:ufe,ProjectionNode:B$,MeasureLayout:N$}};function m3(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&xt.postRender(()=>s(t,od(t)))}class Xfe extends ji{mount(){const{current:t}=this.node;t&&(this.unmount=pue(t,(n,r)=>(m3(this.node,r,"Start"),i=>m3(this.node,i,"End"))))}unmount(){}}class Yfe extends ji{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rd(Iu(this.node.current,"focus",()=>this.onFocus()),Iu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function g3(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&xt.postRender(()=>s(t,od(t)))}class Wfe extends ji{mount(){const{current:t}=this.node;t&&(this.unmount=yue(t,(n,r)=>(g3(this.node,r,"Start"),(i,{success:s})=>g3(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const mS=new WeakMap,u1=new WeakMap,Zfe=e=>{const t=mS.get(e.target);t&&t(e)},Qfe=e=>{e.forEach(Zfe)};function Jfe({root:e,...t}){const n=e||document;u1.has(n)||u1.set(n,{});const r=u1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Qfe,{root:e,...t})),r[i]}function ehe(e,t,n){const r=Jfe(t);return mS.set(e,n),r.observe(e),()=>{mS.delete(e),r.unobserve(e)}}const the={some:0,all:1};class nhe extends ji{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:the[i]},u=d=>{const{isIntersecting:f}=d;if(this.isInView===f||(this.isInView=f,s&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),v=f?p:g;v&&v(d)};return ehe(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(rhe(t,n))&&this.startObserver()}unmount(){}}function rhe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const ahe={inView:{Feature:nhe},tap:{Feature:Wfe},focus:{Feature:Yfe},hover:{Feature:Xfe}},ihe={layout:{ProjectionNode:B$,MeasureLayout:N$}},ohe={...Hde,...ahe,...Kfe,...ihe},Jf=ode(ohe,xde);function she(){const[e,t]=T.useState(!0);return T.useEffect(()=>{const n=setTimeout(()=>{t(!1)},2500);return()=>clearTimeout(n)},[]),m.jsx(Eue,{"data-loc":"client/src/components/SplashScreen.tsx:15",children:e&&m.jsxs(Jf.div,{"data-loc":"client/src/components/SplashScreen.tsx:17",initial:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:"fixed inset-0 z-[9999] bg-white flex flex-col items-center justify-center",children:[m.jsxs(Jf.div,{"data-loc":"client/src/components/SplashScreen.tsx:23",initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",stiffness:260,damping:20,duration:.8},className:"relative w-64 h-64",children:[m.jsx("div",{"data-loc":"client/src/components/SplashScreen.tsx:34",className:"absolute inset-0 bg-primary/10 rounded-full animate-ping duration-1000"}),m.jsx("img",{"data-loc":"client/src/components/SplashScreen.tsx:35",src:"/images/logo.png",alt:"Dog Melina Logo",className:"w-full h-full object-contain relative z-10"})]}),m.jsxs(Jf.div,{"data-loc":"client/src/components/SplashScreen.tsx:42",initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.5,duration:.5},className:"mt-8 text-center",children:[m.jsx("h1",{"data-loc":"client/src/components/SplashScreen.tsx:48",className:"text-3xl font-bold text-primary tracking-tighter",children:"DOG MELINA"}),m.jsx("p",{"data-loc":"client/src/components/SplashScreen.tsx:49",className:"text-muted-foreground font-medium mt-2",children:"O melhor lanche da região"}),m.jsx("div",{"data-loc":"client/src/components/SplashScreen.tsx:51",className:"mt-12 flex gap-1 justify-center",children:[0,1,2].map(n=>m.jsx(Jf.div,{"data-loc":"client/src/components/SplashScreen.tsx:53",animate:{scale:[1,1.5,1]},transition:{repeat:1/0,duration:1,delay:n*.2},className:"w-2 h-2 bg-primary rounded-full"},n))})]})]})})}function lhe(){return T.useEffect(()=>{const e=localStorage.getItem("dogmelina_products"),t=localStorage.getItem("dogmelina_categories");(!e||JSON.parse(e).length<5)&&localStorage.setItem("dogmelina_products",JSON.stringify(Fu)),(!t||JSON.parse(t).length<2)&&localStorage.setItem("dogmelina_categories",JSON.stringify(_S))},[]),m.jsxs(eH,{"data-loc":"client/src/App.tsx:45",children:[m.jsx(she,{"data-loc":"client/src/App.tsx:46"}),m.jsxs(q9,{"data-loc":"client/src/App.tsx:47",children:[m.jsx(Pt,{"data-loc":"client/src/App.tsx:48",path:"/",component:RV}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:49",path:"/menu",component:kV}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:50",path:"/product/:id",component:SU}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:51",path:"/cart",component:CU}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:52",path:"/checkout",component:EU}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:53",path:"/order-confirmation",component:kU}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:54",path:"/order-tracking",component:qU}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:55",path:"/profile",component:JU}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:56",path:"/admin/login",component:tH}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:57",path:"/admin/dashboard",component:rH}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:58",path:"/admin/products",component:iH}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:59",path:"/admin/pdv",component:SH}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:60",path:"/admin/settings",component:AH}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:61",path:"/admin/reports",component:dle}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:62",path:"/admin/categories",component:fle}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:63",path:"/admin/delivery-fees",component:hle}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:64",path:"/admin/customers",component:ple}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:65",path:"/admin/payments",component:Sle}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:66",path:"/admin/tv",component:Ale}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:67",path:"/admin/drivers",component:jle}),m.jsx(Pt,{"data-loc":"client/src/App.tsx:68",path:"/driver",component:Ole})]})]})}p9.createRoot(document.getElementById("root")).render(m.jsx(lhe,{"data-loc":"client/src/main.tsx:5"}));
