vendor: 6,850 bytes, lines 1-9
1var Z8=Object.defineProperty;var $N=e=>{throw TypeError(e)};var eW=(e,t,r)=>t in e?Z8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Qa=(e,t,r)=>eW(e,typeof t!="symbol"?t+"":t,r),A0=(e,t,r)=>t.has(e)||$N("Cannot "+r);var Y=(e,t,r)=>(A0(e,t,"read from private field"),r?r.call(e):t.get(e)),st=(e,t,r)=>t.has(e)?$N("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ke=(e,t,r,n)=>(A0(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Fr=(e,t,r)=>(A0(e,t,"access private method"),r);var Vp=(e,t,r,n)=>({set _(i){Ke(e,t,i,r)},get _(){return Y(e,t,n)}});function tW(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[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"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var Lr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rW(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var vQ={exports:{}},Ky={},yQ={exports:{}},qe={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Zh=Symbol.for("react.element"),nW=Symbol.for("react.portal"),iW=Symbol.for("react.fragment"),aW=Symbol.for("react.strict_mode"),sW=Symbol.for("react.profiler"),oW=Symbol.for("react.provider"),lW=Symbol.for("react.context"),AW=Symbol.for("react.forward_ref"),cW=Symbol.for("react.suspense"),uW=Symbol.for("react.memo"),dW=Symbol.for("react.lazy"),HN=Symbol.iterator;function fW(e){return e===null||typeof e!="object"?null:(e=HN&&e[HN]||e["@@iterator"],typeof e=="function"?e:null)}var xQ={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wQ=Object.assign,bQ={};function Ru(e,t,r){this.props=e,this.context=t,this.refs=bQ,this.updater=r||xQ}Ru.prototype.isReactComponent={};Ru.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ru.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function BQ(){}BQ.prototype=Ru.prototype;function i_(e,t,r){this.props=e,this.context=t,this.refs=bQ,this.updater=r||xQ}var a_=i_.prototype=new BQ;a_.constructor=i_;wQ(a_,Ru.prototype);a_.isPureReactComponent=!0;var KN=Array.isArray,CQ=Object.prototype.hasOwnProperty,s_={current:null},jQ={key:!0,ref:!0,__self:!0,__source:!0};function _Q(e,t,r){var n,i={},a=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)CQ.call(t,n)&&!jQ.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){for(var A=Array(l),c=0;c<l;c++)A[c]=arguments[c+2];i.children=A}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)i[n]===void 0&&(i[n]=l[n]);return{$$typeof:Zh,type:e,key:a,ref:s,props:i,_owner:s_.current}}function hW(e,t){return{$$typeof:Zh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function o_(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zh}function pW(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var VN=/\/+/g;function c0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?pW(""+e.key):t.toString(36)}function ag(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Zh:case nW:s=!0}}if(s)return s=e,i=i(s),e=n===""?"."+c0(s,0):n,KN(i)?(r="",e!=null&&(r=e.replace(VN,"$&/")+"/"),ag(i,t,r,"",function(c){return c})):i!=null&&(o_(i)&&(i=hW(i,r+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(VN,"$&/")+"/")+e)),t.push(i)),1;if(s=0,n=n===""?".":n+":",KN(e))for(var l=0;l<e.length;l++){a=e[l];var A=n+c0(a,l);s+=ag(a,t,r,A,i)}else if(A=fW(e),typeof A=="function")for(e=A.call(e),l=0;!(a=e.next()).done;)a=a.value,A=n+c0(a,l++),s+=ag(a,t,r,A,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Wp(e,t,r){if(e==null)return e;var n=[],i=0;return ag(e,n,"","",function(a){return t.call(r,a,i++)}),n}function mW(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var en={current:null},sg={transition:null},gW={ReactCurrentDispatcher:en,ReactCurrentBatchConfig:sg,ReactCurrentOwner:s_};function EQ(){throw Error("act(...) is not supported in production builds of React.")}qe.Children={map:Wp,forEach:function(e,t,r){Wp(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Wp(e,function(){t++}),t},toArray:function(e){return Wp(e,function(t){return t})||[]},only:function(e){if(!o_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};qe.Component=Ru;qe.Fragment=iW;qe.Profiler=sW;qe.PureComponent=i_;qe.StrictMode=aW;qe.Suspense=cW;
vendor: 5,057 bytes, lines 9-25
9qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gW;qe.act=EQ;qe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=wQ({},e.props),i=e.key,a=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,s=s_.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(A in t)CQ.call(t,A)&&!jQ.hasOwnProperty(A)&&(n[A]=t[A]===void 0&&l!==void 0?l[A]:t[A])}var A=arguments.length-2;if(A===1)n.children=r;else if(1<A){l=Array(A);for(var c=0;c<A;c++)l[c]=arguments[c+2];n.children=l}return{$$typeof:Zh,type:e.type,key:i,ref:a,props:n,_owner:s}};qe.createContext=function(e){return e={$$typeof:lW,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:oW,_context:e},e.Consumer=e};qe.createElement=_Q;qe.createFactory=function(e){var t=_Q.bind(null,e);return t.type=e,t};qe.createRef=function(){return{current:null}};qe.forwardRef=function(e){return{$$typeof:AW,render:e}};qe.isValidElement=o_;qe.lazy=function(e){return{$$typeof:dW,_payload:{_status:-1,_result:e},_init:mW}};qe.memo=function(e,t){return{$$typeof:uW,type:e,compare:t===void 0?null:t}};qe.startTransition=function(e){var t=sg.transition;sg.transition={};try{e()}finally{sg.transition=t}};qe.unstable_act=EQ;qe.useCallback=function(e,t){return en.current.useCallback(e,t)};qe.useContext=function(e){return en.current.useContext(e)};qe.useDebugValue=function(){};qe.useDeferredValue=function(e){return en.current.useDeferredValue(e)};qe.useEffect=function(e,t){return en.current.useEffect(e,t)};qe.useId=function(){return en.current.useId()};qe.useImperativeHandle=function(e,t,r){return en.current.useImperativeHandle(e,t,r)};qe.useInsertionEffect=function(e,t){return en.current.useInsertionEffect(e,t)};qe.useLayoutEffect=function(e,t){return en.current.useLayoutEffect(e,t)};qe.useMemo=function(e,t){return en.current.useMemo(e,t)};qe.useReducer=function(e,t,r){return en.current.useReducer(e,t,r)};qe.useRef=function(e){return en.current.useRef(e)};qe.useState=function(e){return en.current.useState(e)};qe.useSyncExternalStore=function(e,t,r){return en.current.useSyncExternalStore(e,t,r)};qe.useTransition=function(){return en.current.useTransition()};qe.version="18.3.1";yQ.exports=qe;var w=yQ.exports;const S=nt(w),l_=tW({__proto__:null,default:S},[w]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var vW=w,yW=Symbol.for("react.element"),xW=Symbol.for("react.fragment"),wW=Object.prototype.hasOwnProperty,bW=vW.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,BW={key:!0,ref:!0,__self:!0,__source:!0};function SQ(e,t,r){var n,i={},a=null,s=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)wW.call(t,n)&&!BW.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:yW,type:e,key:a,ref:s,props:i,_owner:bW.current}}Ky.Fragment=xW;Ky.jsx=SQ;Ky.jsxs=SQ;vQ.exports=Ky;var o=vQ.exports,NQ={exports:{}},Kn={},OQ={exports:{}},TQ={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(P,Q){var $=P.length;P.push(Q);e:for(;0<$;){var G=$-1>>>1,K=P[G];if(0<i(K,Q))P[G]=Q,P[$]=K,$=G;else break e}}function r(P){return P.length===0?null:P[0]}function n(P){if(P.length===0)return null;var Q=P[0],$=P.pop();if($!==Q){P[0]=$;e:for(var G=0,K=P.length,X=K>>>1;G<X;){var ae=2*(G+1)-1,ve=P[ae],Fe=ae+1,L=P[Fe];if(0>i(ve,$))Fe<K&&0>i(L,ve)?(P[G]=L,P[Fe]=$,G=Fe):(P[G]=ve,P[ae]=$,G=ae);else if(Fe<K&&0>i(L,$))P[G]=L,P[Fe]=$,G=Fe;else break e}}return Q}function i(P,Q){var $=P.sortIndex-Q.sortIndex;return $!==0?$:P.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var A=[],c=[],u=1,d=null,f=3,h=!1,m=!1,p=!1,v=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(P){for(var Q=r(c);Q!==null;){if(Q.callback===null)n(c);else if(Q.startTime<=P)n(c),Q.sortIndex=Q.expirationTime,t(A,Q);else break;Q=r(c)}}function B(P){if(p=!1,y(P),!m)if(r(A)!==null)m=!0,O(b);else{var Q=r(c);Q!==null&&U(B,Q.startTime-P)}}function b(P,Q){m=!1,p&&(p=!1,x(_),_=-1),h=!0;var $=f;try{for(y(Q),d=r(A);d!==null&&(!(d.expirationTime>Q)||P&&!T());){var G=d.callback;
vendor: 9,156 bytes, lines 25-34
25if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var K=G(d.expirationTime<=Q);Q=e.unstable_now(),typeof K=="function"?d.callback=K:d===r(A)&&n(A),y(Q)}else n(A);d=r(A)}if(d!==null)var X=!0;else{var ae=r(c);ae!==null&&U(B,ae.startTime-Q),X=!1}return X}finally{d=null,f=$,h=!1}}var C=!1,j=null,_=-1,E=5,I=-1;function T(){return!(e.unstable_now()-I<E)}function k(){if(j!==null){var P=e.unstable_now();I=P;var Q=!0;try{Q=j(!0,P)}finally{Q?N():(C=!1,j=null)}}else C=!1}var N;if(typeof g=="function")N=function(){g(k)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,M=F.port2;F.port1.onmessage=k,N=function(){M.postMessage(null)}}else N=function(){v(k,0)};function O(P){j=P,C||(C=!0,N())}function U(P,Q){_=v(function(){P(e.unstable_now())},Q)}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(P){P.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,O(b))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(A)},e.unstable_next=function(P){switch(f){case 1:case 2:case 3:var Q=3;break;default:Q=f}var $=f;f=Q;try{return P()}finally{f=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,Q){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var $=f;f=P;try{return Q()}finally{f=$}},e.unstable_scheduleCallback=function(P,Q,$){var G=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?G+$:G):$=G,P){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=$+K,P={id:u++,callback:Q,priorityLevel:P,startTime:$,expirationTime:K,sortIndex:-1},$>G?(P.sortIndex=$,t(c,P),r(A)===null&&P===r(c)&&(p?(x(_),_=-1):p=!0,U(B,$-G))):(P.sortIndex=K,t(A,P),m||h||(m=!0,O(b))),P},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(P){var Q=f;return function(){var $=f;f=Q;try{return P.apply(this,arguments)}finally{f=$}}}})(TQ);OQ.exports=TQ;var CW=OQ.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var jW=w,Ln=CW;function re(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var FQ=new Set,Uf={};function nA(e,t){Gc(e,t),Gc(e+"Capture",t)}function Gc(e,t){for(Uf[e]=t,e=0;e<t.length;e++)FQ.add(t[e])}var cs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vB=Object.prototype.hasOwnProperty,_W=/^[: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]*$/,WN={},GN={};function EW(e){return vB.call(GN,e)?!0:vB.call(WN,e)?!1:_W.test(e)?GN[e]=!0:(WN[e]=!0,!1)}function SW(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function NW(e,t,r,n){if(t===null||typeof t>"u"||SW(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function tn(e,t,r,n,i,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var Or={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Or[e]=new tn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Or[t]=new tn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Or[e]=new tn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Or[e]=new tn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Or[e]=new tn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Or[e]=new tn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Or[e]=new tn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Or[e]=new tn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Or[e]=new tn(e,5,!1,e.toLowerCase(),null,!1,!1)});var A_=/[\-:]([a-z])/g;function c_(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(A_,c_);Or[t]=new tn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(A_,c_);Or[t]=new tn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(A_,c_);Or[t]=new tn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Or[e]=new tn(e,1,!1,e.toLowerCase(),null,!1,!1)});Or.xlinkHref=new tn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Or[e]=new tn(e,1,!1,e.toLowerCase(),null,!0,!0)});function u_(e,t,r,n){var i=Or.hasOwnProperty(t)?Or[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(NW(t,r,i,n)&&(r=null),n||i===null?EW(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var bs=jW.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Gp=Symbol.for("react.element"),ic=Symbol.for("react.portal"),ac=Symbol.for("react.fragment"),d_=Symbol.for("react.strict_mode"),yB=Symbol.for("react.profiler"),PQ=Symbol.for("react.provider"),kQ=Symbol.for("react.context"),f_=Symbol.for("react.forward_ref"),xB=Symbol.for("react.suspense"),wB=Symbol.for("react.suspense_list"),h_=Symbol.for("react.memo"),Hs=Symbol.for("react.lazy"),IQ=Symbol.for("react.offscreen"),zN=Symbol.iterator;function dd(e){return e===null||typeof e!="object"?null:(e=zN&&e[zN]||e["@@iterator"],typeof e=="function"?e:null)}var Dt=Object.assign,u0;function Wd(e){if(u0===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);u0=t&&t[1]||""}return` 34`+u0+e}var d0=!1;function f0(e,t){if(!e||d0)return"";d0=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}
vendor: 5,289 bytes, lines 34-37
34catch(c){if(c&&n&&typeof c.stack=="string"){for(var i=c.stack.split(` 35`),a=n.stack.split(` 36`),s=i.length-1,l=a.length-1;1<=s&&0<=l&&i[s]!==a[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==a[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==a[l]){var A=` 37`+i[s].replace(" at new "," at ");return e.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",e.displayName)),A}while(1<=s&&0<=l);break}}}finally{d0=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Wd(e):""}function OW(e){switch(e.tag){case 5:return Wd(e.type);case 16:return Wd("Lazy");case 13:return Wd("Suspense");case 19:return Wd("SuspenseList");case 0:case 2:case 15:return e=f0(e.type,!1),e;case 11:return e=f0(e.type.render,!1),e;case 1:return e=f0(e.type,!0),e;default:return""}}function bB(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ac:return"Fragment";case ic:return"Portal";case yB:return"Profiler";case d_:return"StrictMode";case xB:return"Suspense";case wB:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case kQ:return(e.displayName||"Context")+".Consumer";case PQ:return(e._context.displayName||"Context")+".Provider";case f_:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case h_:return t=e.displayName||null,t!==null?t:bB(e.type)||"Memo";case Hs:t=e._payload,e=e._init;try{return bB(e(t))}catch{}}return null}function TW(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return bB(t);case 8:return t===d_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Eo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function UQ(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function FW(e){var t=UQ(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zp(e){e._valueTracker||(e._valueTracker=FW(e))}function QQ(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=UQ(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function kg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function BB(e,t){var r=t.checked;return Dt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function qN(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Eo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function MQ(e,t){t=t.checked,t!=null&&u_(e,"checked",t,!1)}function CB(e,t){MQ(e,t);var r=Eo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jB(e,t.type,r):t.hasOwnProperty("defaultValue")&&jB(e,t.type,Eo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function YN(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function jB(e,t,r){(t!=="number"||kg(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Gd=Array.isArray;function bc(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Eo(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function _B(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(re(91)
vendor: 8,817 bytes, line 37
37);return Dt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function XN(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(re(92));if(Gd(r)){if(1<r.length)throw Error(re(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Eo(r)}}function RQ(e,t){var r=Eo(t.value),n=Eo(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function JN(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function DQ(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function EB(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?DQ(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var qp,LQ=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(qp=qp||document.createElement("div"),qp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=qp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Af={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},PW=["Webkit","ms","Moz","O"];Object.keys(Af).forEach(function(e){PW.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Af[t]=Af[e]})});function $Q(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Af.hasOwnProperty(e)&&Af[e]?(""+t).trim():t+"px"}function HQ(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=$Q(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var kW=Dt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function SB(e,t){if(t){if(kW[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(re(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(re(62))}}function NB(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 OB=null;function p_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var TB=null,Bc=null,Cc=null;function ZN(e){if(e=rp(e)){if(typeof TB!="function")throw Error(re(280));var t=e.stateNode;t&&(t=qy(t),TB(e.stateNode,e.type,t))}}function KQ(e){Bc?Cc?Cc.push(e):Cc=[e]:Bc=e}function VQ(){if(Bc){var e=Bc,t=Cc;if(Cc=Bc=null,ZN(e),t)for(e=0;e<t.length;e++)ZN(t[e])}}function WQ(e,t){return e(t)}function GQ(){}var h0=!1;function zQ(e,t,r){if(h0)return e(t,r);h0=!0;try{return WQ(e,t,r)}finally{h0=!1,(Bc!==null||Cc!==null)&&(GQ(),VQ())}}function Mf(e,t){var r=e.stateNode;if(r===null)return null;var n=qy(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(re(231,t,typeof r));return r}var FB=!1;if(cs)try{var fd={};Object.defineProperty(fd,"passive",{get:function(){FB=!0}}),window.addEventListener("test",fd,fd),window.removeEventListener("test",fd,fd)}catch{FB=!1}function IW(e,t,r,n,i,a,s,l,A){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var cf=!1,Ig=null,Ug=!1,PB=null,UW={onError:function(e){cf=!0,Ig=e}};function QW(e,t,r,n,i,a,s,l,A){cf=!1,Ig=null,IW.apply(UW,arguments)}function MW(e,t,r,n,i,a,s,l,A){if(QW.apply(this,arguments),cf){if(cf){var c=Ig;cf=!1,Ig=null}else throw Error(re(198));Ug||(Ug=!0,PB=c)}}function iA(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function qQ(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function eO(e){if(iA(e)!==e)throw Error(re(188))}function RW(e){var t=e.alternate;if(!t){if(t=iA(e),t===null)throw Error(re(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return eO(i),e;if(a===n)return eO(i),t;a=a.sibling}throw Error(re(188))}if(r.return!==n.return)r=i,n=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,n=a;break}if(l===n){s=!0,n=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,n=i;break}if(l===n){s=!0,n=a,r=i;break}l=l.sibling}if(!s)throw Error(re(189))}}if(r.alternate!==n)throw Error(re(190))}if(r.tag!==3)throw Error(re(188));return r.stateNode.current===r?e:t}function YQ(e){return e=RW(e),e!==null?XQ(e):null}function XQ(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=XQ(e);if(t!==null)return t;e=e.sibling}return null}var JQ=Ln.unstable_scheduleCallback,tO=Ln.unstable_cancelCallback,DW=Ln.unstable_shouldYield,LW=Ln.unstable_requestPaint,qt=Ln.unstable_now,$W=Ln.unstable_getCurrentPriorityLevel,m_=Ln.unstable_ImmediatePriority,ZQ=Ln.unstable_UserBlockingPriority,Qg=Ln.unstable_NormalPriority,HW=Ln.unstable_LowPriority,eM=Ln.unstable_IdlePriority,Vy=null,pa=null;function KW(e){if(pa&&typeof pa.onCommitFiberRoot=="function")try{pa.onCommitFiberRoot(Vy,e,void 0,(e.current.flags&128)===128)}catch{}}var Di=Math.clz32?Math.clz32:GW,VW=Math.log,WW=Math.LN2;function GW(e){return e>>>=0,e===0?32:31-(VW(e)/WW|0)|0}var Yp=64,Xp=4194304;function zd(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mg(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,s=r&268435455;if(s!==0){var l=s&~i;l!==0?n=zd(l):(a&=s,a!==0&&(n=zd(a)))}else s=r&~i,s!==0?n=zd(s):a!==0&&(n=zd(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Di(t),i=1<<r,n|=e[r],t&=~i;return n}function zW(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qW(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-Di(a),l=1<<s,A=i[s];A===-1?(!(l&r)||l&n)&&(i[s]=zW(l,t)):A<=t&&(e.expiredLanes|=l),a&=~l}}function kB(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function tM(){var e=Yp;return Yp<<=1,!(Yp&4194240)&&(Yp=64),e}function p0(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function ep(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Di(t),e[t]=r}function YW(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-Di(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}function g_(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Di(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var ht=0;function rM(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var nM,v_,iM,aM,sM,IB=!1,Jp=[],ho=null,po=null,mo=null,Rf=new Map,Df=new Map,zs=[],XW="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function rO(e,t){switch(e){case"focusin":case"focusout":ho=null;break;case"dragenter":case"dragleave":po=null;break;case"mouseover":case"mouseout":mo=null;break;case"pointerover":case"pointerout":Rf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Df.delete(t.pointerId)}}function hd(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},t!==null&&(t=rp(t),t!==null&&v_(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function JW(e,t,r,n,i){switch(t){case"focusin":return ho=hd(ho,e,t,r,n,i),!0;case"dragenter":return po=hd(po,e,t,r,n,i),!0;case"mouseover":return mo=hd(mo,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return Rf.set(a,hd(Rf.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,Df.set(a,hd(Df.get(a)||null,e,t,r,n,i)),!0}return!1}function oM(e){var t=pl(e.target);if(t!==null){var r=iA(t);if(r!==null){if(t=r.tag,t===13){if(t=qQ(r),t!==null){e.blockedOn=t,sM(e.priority,function(){iM(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function og(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=UB(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);OB=n,r.target.dispatchEvent(n),OB=null}else return t=rp(r),t!==null&&v_(t),e.blockedOn=r,!1;t.shift()}return!0}function nO(e,t,r){og(e)&&r.delete(t)}function ZW(){IB=!1,ho!==null&&og(ho)&&(ho=null),po!==null&&og(po)&&(po=null),mo!==null&&og(mo)&&(mo=null),Rf.forEach(nO),Df.forEach(nO)}function pd(e,t){e.blockedOn===t&&(e.blockedOn=null,IB||(IB=!0,Ln.unstable_scheduleCallback(Ln.unstable_NormalPriority,ZW)))}function Lf(e){function t(i){return pd(i,e)}if(0<Jp.length){pd(Jp[0],e);for(var r=1;r<Jp.length;r++){var n=Jp[r];n.blockedOn===e&&(n.blockedOn=null)}}for(ho!==null&&pd(ho,e),po!==null&&pd(po,e),mo!==null&&pd(mo,e),Rf.forEach(t),Df.forEach(t),r=0;r<zs.length;r++)n=zs[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<zs.length&&(r=zs[0],r.blockedOn===null);)oM(r),r.blockedOn===null&&zs.shift()}var jc=bs.ReactCurrentBatchConfig,Rg=!0;function eG(e,t,r,n){var i=ht,a=jc.transition;jc.transition=null;try{ht=1,y_(e,t,r,n)}finally{ht=i,jc.transition=a}}function tG(e,t,r,n){var i=ht,a=jc.transition;jc.transition=null;try{ht=4,y_(e,t,r,n)}finally{ht=i,jc.transition=a}}function y_(e,t,r,n){if(Rg){var i=UB(e,t,r,n);if(i===null)j0(e,t,n,Dg,r),rO(e,n);else if(JW(i,e,t,r,n))n.stopPropagation();else if(rO(e,n),t&4&&-1<XW.indexOf(e)){for(;i!==null;){var a=rp(i);if(a!==null&&nM(a),a=UB(e,t,r,n),a===null&&j0(e,t,n,Dg,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else j0(e,t,n,null,r)}}var Dg=null;function UB(e,t,r,n){if(Dg=null,e=p_(n),e=pl(e),e!==null)if(t=iA(e),t===null)e=null;else if(r=t.tag,r===13){if(e=qQ(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Dg=e,null}
vendor: 10,401 bytes, line 37
37function lM(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($W()){case m_:return 1;case ZQ:return 4;case Qg:case HW:return 16;case eM:return 536870912;default:return 16}default:return 16}}var no=null,x_=null,lg=null;function AM(){if(lg)return lg;var e,t=x_,r=t.length,n,i="value"in no?no.value:no.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===i[a-n];n++);return lg=i.slice(e,1<n?1-n:void 0)}function Ag(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Zp(){return!0}function iO(){return!1}function Vn(e){function t(r,n,i,a,s){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Zp:iO,this.isPropagationStopped=iO,this}return Dt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Zp)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Zp)},persist:function(){},isPersistent:Zp}),t}var Du={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},w_=Vn(Du),tp=Dt({},Du,{view:0,detail:0}),rG=Vn(tp),m0,g0,md,Wy=Dt({},tp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:b_,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==md&&(md&&e.type==="mousemove"?(m0=e.screenX-md.screenX,g0=e.screenY-md.screenY):g0=m0=0,md=e),m0)},movementY:function(e){return"movementY"in e?e.movementY:g0}}),aO=Vn(Wy),nG=Dt({},Wy,{dataTransfer:0}),iG=Vn(nG),aG=Dt({},tp,{relatedTarget:0}),v0=Vn(aG),sG=Dt({},Du,{animationName:0,elapsedTime:0,pseudoElement:0}),oG=Vn(sG),lG=Dt({},Du,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),AG=Vn(lG),cG=Dt({},Du,{data:0}),sO=Vn(cG),uG={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dG={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"},fG={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hG(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fG[e])?!!t[e]:!1}function b_(){return hG}var pG=Dt({},tp,{key:function(e){if(e.key){var t=uG[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ag(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dG[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:b_,charCode:function(e){return e.type==="keypress"?Ag(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ag(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mG=Vn(pG),gG=Dt({},Wy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oO=Vn(gG),vG=Dt({},tp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:b_}),yG=Vn(vG),xG=Dt({},Du,{propertyName:0,elapsedTime:0,pseudoElement:0}),wG=Vn(xG),bG=Dt({},Wy,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),BG=Vn(bG),CG=[9,13,27,32],B_=cs&&"CompositionEvent"in window,uf=null;cs&&"documentMode"in document&&(uf=document.documentMode);var jG=cs&&"TextEvent"in window&&!uf,cM=cs&&(!B_||uf&&8<uf&&11>=uf),lO=" ",AO=!1;function uM(e,t){switch(e){case"keyup":return CG.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sc=!1;function _G(e,t){switch(e){case"compositionend":return dM(t);case"keypress":return t.which!==32?null:(AO=!0,lO);case"textInput":return e=t.data,e===lO&&AO?null:e;default:return null}}function EG(e,t){if(sc)return e==="compositionend"||!B_&&uM(e,t)?(e=AM(),lg=x_=no=null,sc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return cM&&t.locale!=="ko"?null:t.data;default:return null}}var SG={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 cO(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!SG[e.type]:t==="textarea"}function fM(e,t,r,n){KQ(n),t=Lg(t,"onChange"),0<t.length&&(r=new w_("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var df=null,$f=null;function NG(e){CM(e,0)}function Gy(e){var t=Ac(e);if(QQ(t))return e}function OG(e,t){if(e==="change")return t}var hM=!1;if(cs){var y0;if(cs){var x0="oninput"in document;if(!x0){var uO=document.createElement("div");uO.setAttribute("oninput","return;"),x0=typeof uO.oninput=="function"}y0=x0}else y0=!1;hM=y0&&(!document.documentMode||9<document.documentMode)}function dO(){df&&(df.detachEvent("onpropertychange",pM),$f=df=null)}function pM(e){if(e.propertyName==="value"&&Gy($f)){var t=[];fM(t,$f,e,p_(e)),zQ(NG,t)}}function TG(e,t,r){e==="focusin"?(dO(),df=t,$f=r,df.attachEvent("onpropertychange",pM)):e==="focusout"&&dO()}function FG(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gy($f)}function PG(e,t){if(e==="click")return Gy(t)}function kG(e,t){if(e==="input"||e==="change")return Gy(t)}function IG(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ki=typeof Object.is=="function"?Object.is:IG;function Hf(e,t){if(Ki(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!vB.call(t,i)||!Ki(e[i],t[i]))return!1}return!0}function fO(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hO(e,t){var r=fO(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fO(r)}}function mM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gM(){for(var e=window,t=kg();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=kg(e.document)}return t}function C_(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function UG(e){var t=gM(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&mM(r.ownerDocument.documentElement,r)){if(n!==null&&C_(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=hO(r,a);var s=hO(r,n);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var QG=cs&&"documentMode"in document&&11>=document.documentMode,oc=null,QB=null,ff=null,MB=!1;function pO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;MB||oc==null||oc!==kg(n)||(n=oc,"selectionStart"in n&&C_(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),ff&&Hf(ff,n)||(ff=n,n=Lg(QB,"onSelect"),0<n.length&&(t=new w_("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=oc)))}function em(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var lc={animationend:em("Animation","AnimationEnd"),animationiteration:em("Animation","AnimationIteration"),animationstart:em("Animation","AnimationStart"),transitionend:em("Transition","TransitionEnd")},w0={},vM={};cs&&(vM=document.createElement("div").style,"AnimationEvent"in window||(delete lc.animationend.animation,delete lc.animationiteration.animation,delete lc.animationstart.animation),"TransitionEvent"in window||delete lc.transitionend.transition);function zy(e){if(w0[e])return w0[e];if(!lc[e])return e;var t=lc[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in vM)return w0[e]=t[r];return e}var yM=zy("animationend"),xM=zy("animationiteration"),wM=zy("animationstart"),bM=zy("transitionend"),BM=new Map,mO="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Io(e,t){BM.set(e,t),nA(t,[e])}for(var b0=0;b0<mO.length;b0++){var B0=mO[b0],MG=B0.toLowerCase(),RG=B0[0].toUpperCase()+B0.slice(1);Io(MG,"on"+RG)}Io(yM,"onAnimationEnd");Io(xM,"onAnimationIteration");Io(wM,"onAnimationStart");Io("dblclick","onDoubleClick");Io("focusin","onFocus");Io("focusout","onBlur");Io(bM,"onTransitionEnd");Gc("onMouseEnter",["mouseout","mouseover"]);Gc("onMouseLeave",["mouseout","mouseover"]);Gc("onPointerEnter",["pointerout","pointerover"]);Gc("onPointerLeave",["pointerout","pointerover"]);nA("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));nA("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));nA("onBeforeInput",["compositionend","keypress","textInput","paste"]);nA("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));nA("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));nA("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qd="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(" "),DG=new Set("cancel close invalid load scroll toggle".split(" ").concat(qd));function gO(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,MW(n,t,void 0,e),e.currentTarget=null}function CM(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var s=n.length-1;0<=s;s--){var l=n[s],A=l.instance,c=l.currentTarget;if(l=l.listener,A!==a&&i.isPropagationStopped())break e;gO(i,l,c),a=A}else for(s=0;s<n.length;s++){if(l=n[s],A=l.instance,c=l.currentTarget,l=l.listener,A!==a&&i.isPropagationStopped())break e;gO(i,l,c),a=A}}}if(Ug)throw e=PB,Ug=!1,PB=null,e}function Nt(e,t){var r=t[HB];r===void 0&&(r=t[HB]=new Set);var n=e+"__bubble";r.has(n)||(jM(t,e,2,!1),r.add(n))}function C0(e,t,r){var n=0;t&&(n|=4),jM(r,e,n,t)}var tm="_reactListening"+Math.random().toString(36).slice(2);function Kf(e){if(!e[tm]){e[tm]=!0,FQ.forEach(function(r){r!=="selectionchange"&&(DG.has(r)||C0(r,!1,e),C0(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[tm]||(t[tm]=!0,C0("selectionchange",!1,t))}}function jM(e,t,r,n){switch(lM(t)){case 1:var i=eG;break;case 4:i=tG;break;default:i=y_}r=i.bind(null,t,r,e),i=void 0,!FB||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function j0(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var l=n.stateNode.containerInfo;
vendor: 5,573 bytes, lines 37-38
37if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=n.return;s!==null;){var A=s.tag;if((A===3||A===4)&&(A=s.stateNode.containerInfo,A===i||A.nodeType===8&&A.parentNode===i))return;s=s.return}for(;l!==null;){if(s=pl(l),s===null)return;if(A=s.tag,A===5||A===6){n=a=s;continue e}l=l.parentNode}}n=n.return}zQ(function(){var c=a,u=p_(r),d=[];e:{var f=BM.get(e);if(f!==void 0){var h=w_,m=e;switch(e){case"keypress":if(Ag(r)===0)break e;case"keydown":case"keyup":h=mG;break;case"focusin":m="focus",h=v0;break;case"focusout":m="blur",h=v0;break;case"beforeblur":case"afterblur":h=v0;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=aO;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=iG;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=yG;break;case yM:case xM:case wM:h=oG;break;case bM:h=wG;break;case"scroll":h=rG;break;case"wheel":h=BG;break;case"copy":case"cut":case"paste":h=AG;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=oO}var p=(t&4)!==0,v=!p&&e==="scroll",x=p?f!==null?f+"Capture":null:f;p=[];for(var g=c,y;g!==null;){y=g;var B=y.stateNode;if(y.tag===5&&B!==null&&(y=B,x!==null&&(B=Mf(g,x),B!=null&&p.push(Vf(g,B,y)))),v)break;g=g.return}0<p.length&&(f=new h(f,m,null,r,u),d.push({event:f,listeners:p}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&r!==OB&&(m=r.relatedTarget||r.fromElement)&&(pl(m)||m[us]))break e;if((h||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,h?(m=r.relatedTarget||r.toElement,h=c,m=m?pl(m):null,m!==null&&(v=iA(m),m!==v||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=c),h!==m)){if(p=aO,B="onMouseLeave",x="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(p=oO,B="onPointerLeave",x="onPointerEnter",g="pointer"),v=h==null?f:Ac(h),y=m==null?f:Ac(m),f=new p(B,g+"leave",h,r,u),f.target=v,f.relatedTarget=y,B=null,pl(u)===c&&(p=new p(x,g+"enter",m,r,u),p.target=y,p.relatedTarget=v,B=p),v=B,h&&m)t:{for(p=h,x=m,g=0,y=p;y;y=bA(y))g++;for(y=0,B=x;B;B=bA(B))y++;for(;0<g-y;)p=bA(p),g--;for(;0<y-g;)x=bA(x),y--;for(;g--;){if(p===x||x!==null&&p===x.alternate)break t;p=bA(p),x=bA(x)}p=null}else p=null;h!==null&&vO(d,f,h,p,!1),m!==null&&v!==null&&vO(d,v,m,p,!0)}}e:{if(f=c?Ac(c):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var b=OG;else if(cO(f))if(hM)b=kG;else{b=FG;var C=TG}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(b=PG);if(b&&(b=b(e,c))){fM(d,b,r,u);break e}C&&C(e,f,c),e==="focusout"&&(C=f._wrapperState)&&C.controlled&&f.type==="number"&&jB(f,"number",f.value)}switch(C=c?Ac(c):window,e){case"focusin":(cO(C)||C.contentEditable==="true")&&(oc=C,QB=c,ff=null);break;case"focusout":ff=QB=oc=null;break;case"mousedown":MB=!0;break;case"contextmenu":case"mouseup":case"dragend":MB=!1,pO(d,r,u);break;case"selectionchange":if(QG)break;case"keydown":case"keyup":pO(d,r,u)}var j;if(B_)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else sc?uM(e,r)&&(_="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(_="onCompositionStart");_&&(cM&&r.locale!=="ko"&&(sc||_!=="onCompositionStart"?_==="onCompositionEnd"&&sc&&(j=AM()):(no=u,x_="value"in no?no.value:no.textContent,sc=!0)),C=Lg(c,_),0<C.length&&(_=new sO(_,e,null,r,u),d.push({event:_,listeners:C}),j?_.data=j:(j=dM(r),j!==null&&(_.data=j)))),(j=jG?_G(e,r):EG(e,r))&&(c=Lg(c,"onBeforeInput"),0<c.length&&(u=new sO("onBeforeInput","beforeinput",null,r,u),d.push({event:u,listeners:c}),u.data=j))}CM(d,t)})}function Vf(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Lg(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Mf(e,r),a!=null&&n.unshift(Vf(e,a,i)),a=Mf(e,t),a!=null&&n.push(Vf(e,a,i))),e=e.return}return n}function bA(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function vO(e,t,r,n,i){for(var a=t._reactName,s=[];r!==null&&r!==n;){var l=r,A=l.alternate,c=l.stateNode;if(A!==null&&A===n)break;l.tag===5&&c!==null&&(l=c,i?(A=Mf(r,a),A!=null&&s.unshift(Vf(r,A,l))):i||(A=Mf(r,a),A!=null&&s.push(Vf(r,A,l)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var LG=/\r\n?/g,$G=/\u0000|\uFFFD/g;function yO(e){return(typeof e=="string"?e:""+e).replace(LG,` 38`).replace($G,"")}function rm(e,t,r){if(t=yO(t),yO(e)!==t&&r)throw Error(re(425))}function $g(){}var RB=null,DB=null;function LB(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var $B=typeof setTimeout=="function"?setTimeout:void 0,HG=typeof clearTimeout=="function"?clearTimeout:void 0,xO=typeof Promise=="function"?Promise:void 0,KG=typeof queueMicrotask=="function"?queueMicrotask:typeof xO<"u"?function(e){return xO.resolve(null).then(e).catch(VG)}:$B;function VG(e){setTimeout(function(){throw e})}function _0(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Lf(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}
vendor: 2,531 bytes, line 38
38while(r);Lf(t)}function go(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function wO(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Lu=Math.random().toString(36).slice(2),Aa="__reactFiber$"+Lu,Wf="__reactProps$"+Lu,us="__reactContainer$"+Lu,HB="__reactEvents$"+Lu,WG="__reactListeners$"+Lu,GG="__reactHandles$"+Lu;function pl(e){var t=e[Aa];if(t)return t;for(var r=e.parentNode;r;){if(t=r[us]||r[Aa]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=wO(e);e!==null;){if(r=e[Aa])return r;e=wO(e)}return t}e=r,r=e.parentNode}return null}function rp(e){return e=e[Aa]||e[us],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ac(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(re(33))}function qy(e){return e[Wf]||null}var KB=[],cc=-1;function Uo(e){return{current:e}}function Ft(e){0>cc||(e.current=KB[cc],KB[cc]=null,cc--)}function jt(e,t){cc++,KB[cc]=e.current,e.current=t}var So={},Hr=Uo(So),mn=Uo(!1),Dl=So;function zc(e,t){var r=e.type.contextTypes;if(!r)return So;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function gn(e){return e=e.childContextTypes,e!=null}function Hg(){Ft(mn),Ft(Hr)}function bO(e,t,r){if(Hr.current!==So)throw Error(re(168));jt(Hr,t),jt(mn,r)}function _M(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(re(108,TW(e)||"Unknown",i));return Dt({},r,n)}function Kg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||So,Dl=Hr.current,jt(Hr,e),jt(mn,mn.current),!0}function BO(e,t,r){var n=e.stateNode;if(!n)throw Error(re(169));r?(e=_M(e,t,Dl),n.__reactInternalMemoizedMergedChildContext=e,Ft(mn),Ft(Hr),jt(Hr,e)):Ft(mn),jt(mn,r)}var za=null,Yy=!1,E0=!1;function EM(e){za===null?za=[e]:za.push(e)}function zG(e){Yy=!0,EM(e)}function Qo(){if(!E0&&za!==null){E0=!0;var e=0,t=ht;try{var r=za;for(ht=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}za=null,Yy=!1}catch(i){throw za!==null&&(za=za.slice(e+1)),JQ(m_,Qo),i}finally{ht=t,E0=!1}}return null}
vendor: 15,325 bytes, line 38
38var uc=[],dc=0,Vg=null,Wg=0,ei=[],ti=0,Ll=null,Ja=1,Za="";function il(e,t){uc[dc++]=Wg,uc[dc++]=Vg,Vg=e,Wg=t}function SM(e,t,r){ei[ti++]=Ja,ei[ti++]=Za,ei[ti++]=Ll,Ll=e;var n=Ja;e=Za;var i=32-Di(n)-1;n&=~(1<<i),r+=1;var a=32-Di(t)+i;if(30<a){var s=i-i%5;a=(n&(1<<s)-1).toString(32),n>>=s,i-=s,Ja=1<<32-Di(t)+i|r<<i|n,Za=a+e}else Ja=1<<a|r<<i|n,Za=e}function j_(e){e.return!==null&&(il(e,1),SM(e,1,0))}function __(e){for(;e===Vg;)Vg=uc[--dc],uc[dc]=null,Wg=uc[--dc],uc[dc]=null;for(;e===Ll;)Ll=ei[--ti],ei[ti]=null,Za=ei[--ti],ei[ti]=null,Ja=ei[--ti],ei[ti]=null}var Un=null,kn=null,It=!1,Ii=null;function NM(e,t){var r=ii(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function CO(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Un=e,kn=go(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Un=e,kn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Ll!==null?{id:Ja,overflow:Za}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=ii(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Un=e,kn=null,!0):!1;default:return!1}}function VB(e){return(e.mode&1)!==0&&(e.flags&128)===0}function WB(e){if(It){var t=kn;if(t){var r=t;if(!CO(e,t)){if(VB(e))throw Error(re(418));t=go(r.nextSibling);var n=Un;t&&CO(e,t)?NM(n,r):(e.flags=e.flags&-4097|2,It=!1,Un=e)}}else{if(VB(e))throw Error(re(418));e.flags=e.flags&-4097|2,It=!1,Un=e}}}function jO(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Un=e}function nm(e){if(e!==Un)return!1;if(!It)return jO(e),It=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!LB(e.type,e.memoizedProps)),t&&(t=kn)){if(VB(e))throw OM(),Error(re(418));for(;t;)NM(e,t),t=go(t.nextSibling)}if(jO(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(re(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){kn=go(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}kn=null}}else kn=Un?go(e.stateNode.nextSibling):null;return!0}function OM(){for(var e=kn;e;)e=go(e.nextSibling)}function qc(){kn=Un=null,It=!1}function E_(e){Ii===null?Ii=[e]:Ii.push(e)}var qG=bs.ReactCurrentBatchConfig;function gd(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(re(309));var n=r.stateNode}if(!n)throw Error(re(147,e));var i=n,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(s){var l=i.refs;s===null?delete l[a]:l[a]=s},t._stringRef=a,t)}if(typeof e!="string")throw Error(re(284));if(!r._owner)throw Error(re(290,e))}return e}function im(e,t){throw e=Object.prototype.toString.call(t),Error(re(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _O(e){var t=e._init;return t(e._payload)}function TM(e){function t(x,g){if(e){var y=x.deletions;y===null?(x.deletions=[g],x.flags|=16):y.push(g)}}function r(x,g){if(!e)return null;for(;g!==null;)t(x,g),g=g.sibling;return null}function n(x,g){for(x=new Map;g!==null;)g.key!==null?x.set(g.key,g):x.set(g.index,g),g=g.sibling;return x}function i(x,g){return x=wo(x,g),x.index=0,x.sibling=null,x}function a(x,g,y){return x.index=y,e?(y=x.alternate,y!==null?(y=y.index,y<g?(x.flags|=2,g):y):(x.flags|=2,g)):(x.flags|=1048576,g)}function s(x){return e&&x.alternate===null&&(x.flags|=2),x}function l(x,g,y,B){return g===null||g.tag!==6?(g=k0(y,x.mode,B),g.return=x,g):(g=i(g,y),g.return=x,g)}function A(x,g,y,B){var b=y.type;return b===ac?u(x,g,y.props.children,B,y.key):g!==null&&(g.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Hs&&_O(b)===g.type)?(B=i(g,y.props),B.ref=gd(x,g,y),B.return=x,B):(B=mg(y.type,y.key,y.props,null,x.mode,B),B.ref=gd(x,g,y),B.return=x,B)}function c(x,g,y,B){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=I0(y,x.mode,B),g.return=x,g):(g=i(g,y.children||[]),g.return=x,g)}function u(x,g,y,B,b){return g===null||g.tag!==7?(g=Pl(y,x.mode,B,b),g.return=x,g):(g=i(g,y),g.return=x,g)}function d(x,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=k0(""+g,x.mode,y),g.return=x,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Gp:return y=mg(g.type,g.key,g.props,null,x.mode,y),y.ref=gd(x,null,g),y.return=x,y;case ic:return g=I0(g,x.mode,y),g.return=x,g;case Hs:var B=g._init;return d(x,B(g._payload),y)}if(Gd(g)||dd(g))return g=Pl(g,x.mode,y,null),g.return=x,g;im(x,g)}return null}function f(x,g,y,B){var b=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return b!==null?null:l(x,g,""+y,B);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Gp:return y.key===b?A(x,g,y,B):null;case ic:return y.key===b?c(x,g,y,B):null;case Hs:return b=y._init,f(x,g,b(y._payload),B)}if(Gd(y)||dd(y))return b!==null?null:u(x,g,y,B,null);im(x,y)}return null}function h(x,g,y,B,b){if(typeof B=="string"&&B!==""||typeof B=="number")return x=x.get(y)||null,l(g,x,""+B,b);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Gp:return x=x.get(B.key===null?y:B.key)||null,A(g,x,B,b);case ic:return x=x.get(B.key===null?y:B.key)||null,c(g,x,B,b);case Hs:var C=B._init;return h(x,g,y,C(B._payload),b)}if(Gd(B)||dd(B))return x=x.get(y)||null,u(g,x,B,b,null);im(g,B)}return null}function m(x,g,y,B){for(var b=null,C=null,j=g,_=g=0,E=null;j!==null&&_<y.length;_++){j.index>_?(E=j,j=null):E=j.sibling;var I=f(x,j,y[_],B);if(I===null){j===null&&(j=E);break}e&&j&&I.alternate===null&&t(x,j),g=a(I,g,_),C===null?b=I:C.sibling=I,C=I,j=E}if(_===y.length)return r(x,j),It&&il(x,_),b;if(j===null){for(;_<y.length;_++)j=d(x,y[_],B),j!==null&&(g=a(j,g,_),C===null?b=j:C.sibling=j,C=j);return It&&il(x,_),b}for(j=n(x,j);_<y.length;_++)E=h(j,x,_,y[_],B),E!==null&&(e&&E.alternate!==null&&j.delete(E.key===null?_:E.key),g=a(E,g,_),C===null?b=E:C.sibling=E,C=E);return e&&j.forEach(function(T){return t(x,T)}),It&&il(x,_),b}function p(x,g,y,B){var b=dd(y);if(typeof b!="function")throw Error(re(150));if(y=b.call(y),y==null)throw Error(re(151));for(var C=b=null,j=g,_=g=0,E=null,I=y.next();j!==null&&!I.done;_++,I=y.next()){j.index>_?(E=j,j=null):E=j.sibling;var T=f(x,j,I.value,B);if(T===null){j===null&&(j=E);break}e&&j&&T.alternate===null&&t(x,j),g=a(T,g,_),C===null?b=T:C.sibling=T,C=T,j=E}if(I.done)return r(x,j),It&&il(x,_),b;if(j===null){for(;!I.done;_++,I=y.next())I=d(x,I.value,B),I!==null&&(g=a(I,g,_),C===null?b=I:C.sibling=I,C=I);return It&&il(x,_),b}for(j=n(x,j);!I.done;_++,I=y.next())I=h(j,x,_,I.value,B),I!==null&&(e&&I.alternate!==null&&j.delete(I.key===null?_:I.key),g=a(I,g,_),C===null?b=I:C.sibling=I,C=I);return e&&j.forEach(function(k){return t(x,k)}),It&&il(x,_),b}function v(x,g,y,B){if(typeof y=="object"&&y!==null&&y.type===ac&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Gp:e:{for(var b=y.key,C=g;C!==null;){if(C.key===b){if(b=y.type,b===ac){if(C.tag===7){r(x,C.sibling),g=i(C,y.props.children),g.return=x,x=g;break e}}else if(C.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Hs&&_O(b)===C.type){r(x,C.sibling),g=i(C,y.props),g.ref=gd(x,C,y),g.return=x,x=g;break e}r(x,C);break}else t(x,C);C=C.sibling}y.type===ac?(g=Pl(y.props.children,x.mode,B,y.key),g.return=x,x=g):(B=mg(y.type,y.key,y.props,null,x.mode,B),B.ref=gd(x,g,y),B.return=x,x=B)}return s(x);case ic:e:{for(C=y.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){r(x,g.sibling),g=i(g,y.children||[]),g.return=x,x=g;break e}else{r(x,g);break}else t(x,g);g=g.sibling}g=I0(y,x.mode,B),g.return=x,x=g}return s(x);case Hs:return C=y._init,v(x,g,C(y._payload),B)}if(Gd(y))return m(x,g,y,B);if(dd(y))return p(x,g,y,B);im(x,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(r(x,g.sibling),g=i(g,y),g.return=x,x=g):(r(x,g),g=k0(y,x.mode,B),g.return=x,x=g),s(x)):r(x,g)}return v}var Yc=TM(!0),FM=TM(!1),Gg=Uo(null),zg=null,fc=null,S_=null;function N_(){S_=fc=zg=null}function O_(e){var t=Gg.current;Ft(Gg),e._currentValue=t}function GB(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function _c(e,t){zg=e,S_=fc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(fn=!0),e.firstContext=null)}function ci(e){var t=e._currentValue;if(S_!==e)if(e={context:e,memoizedValue:t,next:null},fc===null){if(zg===null)throw Error(re(308));fc=e,zg.dependencies={lanes:0,firstContext:e}}else fc=fc.next=e;return t}var ml=null;function T_(e){ml===null?ml=[e]:ml.push(e)}function PM(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,T_(t)):(r.next=i.next,i.next=r),t.interleaved=r,ds(e,n)}function ds(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Ks=!1;function F_(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function kM(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ns(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vo(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,tt&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,ds(e,r)}return i=n.interleaved,i===null?(t.next=t,T_(n)):(t.next=i.next,i.next=t),n.interleaved=t,ds(e,r)}function cg(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,g_(e,r)}}function EO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=s:a=a.next=s,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function qg(e,t,r,n){var i=e.updateQueue;Ks=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var A=l,c=A.next;A.next=null,s===null?a=c:s.next=c,s=A;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==s&&(l===null?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=A))}if(a!==null){var d=i.baseState;s=0,u=c=A=null,l=a;do{var f=l.lane,h=l.eventTime;if((n&f)===f){u!==null&&(u=u.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,p=l;switch(f=t,h=r,p.tag){case 1:if(m=p.payload,typeof m=="function"){d=m.call(h,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=p.payload,f=typeof m=="function"?m.call(h,d,f):m,f==null)break e;d=Dt({},d,f);break e;case 2:Ks=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[l]:f.push(l))}else h={eventTime:h,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(c=u=h,A=d):u=u.next=h,s|=f;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(u===null&&(A=d),i.baseState=A,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Hl|=s,e.lanes=s,e.memoizedState=d}}function SO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(re(191,i));i.call(n)}}}var np={},ma=Uo(np),Gf=Uo(np),zf=Uo(np);function gl(e){if(e===np)throw Error(re(174));return e}function P_(e,t){switch(jt(zf,t),jt(Gf,e),jt(ma,np),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:EB(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=EB(t,e)}Ft(ma),jt(ma,t)}function Xc(){Ft(ma),Ft(Gf),Ft(zf)}function IM(e){gl(zf.current);var t=gl(ma.current),r=EB(t,e.type);t!==r&&(jt(Gf,e),jt(ma,r))}function k_(e){Gf.current===e&&(Ft(ma),Ft(Gf))}var Mt=Uo(0);function Yg(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var S0=[];function I_(){for(var e=0;e<S0.length;e++)S0[e]._workInProgressVersionPrimary=null;S0.length=0}var ug=bs.ReactCurrentDispatcher,N0=bs.ReactCurrentBatchConfig,$l=0,Rt=null,Ar=null,vr=null,Xg=!1,hf=!1,qf=0,YG=0;function Pr(){throw Error(re(321))}function U_(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ki(e[r],t[r]))return!1;return!0}function Q_(e,t,r,n,i,a){if($l=a,Rt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ug.current=e===null||e.memoizedState===null?ez:tz,e=r(n,i),hf){a=0;do{if(hf=!1,qf=0,25<=a)throw Error(re(301));a+=1,vr=Ar=null,t.updateQueue=null,ug.current=rz,e=r(n,i)}while(hf)}if(ug.current=Jg,t=Ar!==null&&Ar.next!==null,$l=0,vr=Ar=Rt=null,Xg=!1,t)throw Error(re(300));return e}function M_(){var e=qf!==0;return qf=0,e}function na(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vr===null?Rt.memoizedState=vr=e:vr=vr.next=e,vr}function ui(){if(Ar===null){var e=Rt.alternate;e=e!==null?e.memoizedState:null}else e=Ar.next;var t=vr===null?Rt.memoizedState:vr.next;if(t!==null)vr=t,Ar=e;else{if(e===null)throw Error(re(310));Ar=e,e={memoizedState:Ar.memoizedState,baseState:Ar.baseState,baseQueue:Ar.baseQueue,queue:Ar.queue,next:null},vr===null?Rt.memoizedState=vr=e:vr=vr.next=e}return vr}function Yf(e,t){return typeof t=="function"?t(e):t}function O0(e){var t=ui(),r=t.queue;if(r===null)throw Error(re(311));r.lastRenderedReducer=e;var n=Ar,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}n.baseQueue=i=a,r.pending=null}if(i!==null){a=i.next,n=n.baseState;var l=s=null,A=null,c=a;do{var u=c.lane;if(($l&u)===u)A!==null&&(A=A.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};A===null?(l=A=d,s=n):A=A.next=d,Rt.lanes|=u,Hl|=u}c=c.next}while(c!==null&&c!==a);A===null?s=n:A.next=l,Ki(n,t.memoizedState)||(fn=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=A,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do a=i.lane,Rt.lanes|=a,Hl|=a,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);
vendor: 4,902 bytes, line 38
38return[t.memoizedState,r.dispatch]}function T0(e){var t=ui(),r=t.queue;if(r===null)throw Error(re(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);Ki(a,t.memoizedState)||(fn=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function UM(){}function QM(e,t){var r=Rt,n=ui(),i=t(),a=!Ki(n.memoizedState,i);if(a&&(n.memoizedState=i,fn=!0),n=n.queue,R_(DM.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||vr!==null&&vr.memoizedState.tag&1){if(r.flags|=2048,Xf(9,RM.bind(null,r,n,i,t),void 0,null),xr===null)throw Error(re(349));$l&30||MM(r,t,i)}return i}function MM(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Rt.updateQueue,t===null?(t={lastEffect:null,stores:null},Rt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function RM(e,t,r,n){t.value=r,t.getSnapshot=n,LM(t)&&$M(e)}function DM(e,t,r){return r(function(){LM(t)&&$M(e)})}function LM(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ki(e,r)}catch{return!0}}function $M(e){var t=ds(e,1);t!==null&&Li(t,e,1,-1)}function NO(e){var t=na();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yf,lastRenderedState:e},t.queue=e,e=e.dispatch=ZG.bind(null,Rt,e),[t.memoizedState,e]}function Xf(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Rt.updateQueue,t===null?(t={lastEffect:null,stores:null},Rt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function HM(){return ui().memoizedState}function dg(e,t,r,n){var i=na();Rt.flags|=e,i.memoizedState=Xf(1|t,r,void 0,n===void 0?null:n)}function Xy(e,t,r,n){var i=ui();n=n===void 0?null:n;var a=void 0;if(Ar!==null){var s=Ar.memoizedState;if(a=s.destroy,n!==null&&U_(n,s.deps)){i.memoizedState=Xf(t,r,a,n);return}}Rt.flags|=e,i.memoizedState=Xf(1|t,r,a,n)}function OO(e,t){return dg(8390656,8,e,t)}function R_(e,t){return Xy(2048,8,e,t)}function KM(e,t){return Xy(4,2,e,t)}function VM(e,t){return Xy(4,4,e,t)}function WM(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function GM(e,t,r){return r=r!=null?r.concat([e]):null,Xy(4,4,WM.bind(null,t,e),r)}function D_(){}function zM(e,t){var r=ui();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&U_(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function qM(e,t){var r=ui();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&U_(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function YM(e,t,r){return $l&21?(Ki(r,t)||(r=tM(),Rt.lanes|=r,Hl|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,fn=!0),e.memoizedState=r)}function XG(e,t){var r=ht;ht=r!==0&&4>r?r:4,e(!0);var n=N0.transition;N0.transition={};try{e(!1),t()}finally{ht=r,N0.transition=n}}function XM(){return ui().memoizedState}function JG(e,t,r){var n=xo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},JM(e))ZM(t,r);else if(r=PM(e,t,r,n),r!==null){var i=Zr();Li(r,e,n,i),eR(r,t,n)}}function ZG(e,t,r){var n=xo(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(JM(e))ZM(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,l=a(s,r);if(i.hasEagerState=!0,i.eagerState=l,Ki(l,s)){var A=t.interleaved;A===null?(i.next=i,T_(t)):(i.next=A.next,A.next=i),t.interleaved=i;return}}catch{}finally{}r=PM(e,t,i,n),r!==null&&(i=Zr(),Li(r,e,n,i),eR(r,t,n))}}function JM(e){var t=e.alternate;return e===Rt||t!==null&&t===Rt}function ZM(e,t){hf=Xg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function eR(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,g_(e,r)}}var Jg={readContext:ci,useCallback:Pr,useContext:Pr,useEffect:Pr,useImperativeHandle:Pr,useInsertionEffect:Pr,useLayoutEffect:Pr,useMemo:Pr,useReducer:Pr,useRef:Pr,useState:Pr,useDebugValue:Pr,useDeferredValue:Pr,useTransition:Pr,useMutableSource:Pr,useSyncExternalStore:Pr,useId:Pr,unstable_isNewReconciler:!1},ez={readContext:ci,useCallback:function(e,t){return na().memoizedState=[e,t===void 0?null:t],e},useContext:ci,useEffect:OO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,dg(4194308,4,WM.bind(null,t,e),r)},useLayoutEffect:function(e,t){return dg(4194308,4,e,t)},useInsertionEffect:function(e,t){return dg(4,2,e,t)},useMemo:function(e,t){var r=na();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=na();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=JG.bind(null,Rt,e),[n.memoizedState,e]}
vendor: 4,246 bytes, line 38
38,useRef:function(e){var t=na();return e={current:e},t.memoizedState=e},useState:NO,useDebugValue:D_,useDeferredValue:function(e){return na().memoizedState=e},useTransition:function(){var e=NO(!1),t=e[0];return e=XG.bind(null,e[1]),na().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Rt,i=na();if(It){if(r===void 0)throw Error(re(407));r=r()}else{if(r=t(),xr===null)throw Error(re(349));$l&30||MM(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,OO(DM.bind(null,n,a,e),[e]),n.flags|=2048,Xf(9,RM.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=na(),t=xr.identifierPrefix;if(It){var r=Za,n=Ja;r=(n&~(1<<32-Di(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=qf++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=YG++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},tz={readContext:ci,useCallback:zM,useContext:ci,useEffect:R_,useImperativeHandle:GM,useInsertionEffect:KM,useLayoutEffect:VM,useMemo:qM,useReducer:O0,useRef:HM,useState:function(){return O0(Yf)},useDebugValue:D_,useDeferredValue:function(e){var t=ui();return YM(t,Ar.memoizedState,e)},useTransition:function(){var e=O0(Yf)[0],t=ui().memoizedState;return[e,t]},useMutableSource:UM,useSyncExternalStore:QM,useId:XM,unstable_isNewReconciler:!1},rz={readContext:ci,useCallback:zM,useContext:ci,useEffect:R_,useImperativeHandle:GM,useInsertionEffect:KM,useLayoutEffect:VM,useMemo:qM,useReducer:T0,useRef:HM,useState:function(){return T0(Yf)},useDebugValue:D_,useDeferredValue:function(e){var t=ui();return Ar===null?t.memoizedState=e:YM(t,Ar.memoizedState,e)},useTransition:function(){var e=T0(Yf)[0],t=ui().memoizedState;return[e,t]},useMutableSource:UM,useSyncExternalStore:QM,useId:XM,unstable_isNewReconciler:!1};function Ei(e,t){if(e&&e.defaultProps){t=Dt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function zB(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Dt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Jy={isMounted:function(e){return(e=e._reactInternals)?iA(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Zr(),i=xo(e),a=ns(n,i);a.payload=t,r!=null&&(a.callback=r),t=vo(e,a,i),t!==null&&(Li(t,e,i,n),cg(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Zr(),i=xo(e),a=ns(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=vo(e,a,i),t!==null&&(Li(t,e,i,n),cg(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Zr(),n=xo(e),i=ns(r,n);i.tag=2,t!=null&&(i.callback=t),t=vo(e,i,n),t!==null&&(Li(t,e,n,r),cg(t,e,n))}};function TO(e,t,r,n,i,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,s):t.prototype&&t.prototype.isPureReactComponent?!Hf(r,n)||!Hf(i,a):!0}function tR(e,t,r){var n=!1,i=So,a=t.contextType;return typeof a=="object"&&a!==null?a=ci(a):(i=gn(t)?Dl:Hr.current,n=t.contextTypes,a=(n=n!=null)?zc(e,i):So),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Jy,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function FO(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Jy.enqueueReplaceState(t,t.state,null)}function qB(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},F_(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=ci(a):(a=gn(t)?Dl:Hr.current,i.context=zc(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(zB(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Jy.enqueueReplaceState(i,i.state,null),qg(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}
vendor: 7,898 bytes, lines 38-40
38function Jc(e,t){try{var r="",n=t;do r+=OW(n),n=n.return;while(n);var i=r}catch(a){i=` 39Error generating stack: `+a.message+` 40`+a.stack}return{value:e,source:t,stack:i,digest:null}}function F0(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function YB(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var nz=typeof WeakMap=="function"?WeakMap:Map;function rR(e,t,r){r=ns(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){ev||(ev=!0,sC=n),YB(e,t)},r}function nR(e,t,r){r=ns(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){YB(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){YB(e,t),typeof n!="function"&&(yo===null?yo=new Set([this]):yo.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function PO(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new nz;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=gz.bind(null,e,t,r),t.then(e,e))}function kO(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function IO(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=ns(-1,1),t.tag=2,vo(r,t,1))),r.lanes|=1),e)}var iz=bs.ReactCurrentOwner,fn=!1;function Wr(e,t,r,n){t.child=e===null?FM(t,null,r,n):Yc(t,e.child,r,n)}function UO(e,t,r,n,i){r=r.render;var a=t.ref;return _c(t,i),n=Q_(e,t,r,n,a,i),r=M_(),e!==null&&!fn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,fs(e,t,i)):(It&&r&&j_(t),t.flags|=1,Wr(e,t,n,i),t.child)}function QO(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!z_(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,iR(e,t,a,n,i)):(e=mg(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var s=a.memoizedProps;if(r=r.compare,r=r!==null?r:Hf,r(s,n)&&e.ref===t.ref)return fs(e,t,i)}return t.flags|=1,e=wo(a,n),e.ref=t.ref,e.return=t,t.child=e}function iR(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(Hf(a,n)&&e.ref===t.ref)if(fn=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(fn=!0);else return t.lanes=e.lanes,fs(e,t,i)}return XB(e,t,r,n,i)}function aR(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},jt(pc,Sn),Sn|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,jt(pc,Sn),Sn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,jt(pc,Sn),Sn|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,jt(pc,Sn),Sn|=n;return Wr(e,t,i,r),t.child}function sR(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function XB(e,t,r,n,i){var a=gn(r)?Dl:Hr.current;return a=zc(t,a),_c(t,i),r=Q_(e,t,r,n,a,i),n=M_(),e!==null&&!fn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,fs(e,t,i)):(It&&n&&j_(t),t.flags|=1,Wr(e,t,r,i),t.child)}function MO(e,t,r,n,i){if(gn(r)){var a=!0;Kg(t)}else a=!1;if(_c(t,i),t.stateNode===null)fg(e,t),tR(t,r,n),qB(t,r,n,i),n=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var A=s.context,c=r.contextType;typeof c=="object"&&c!==null?c=ci(c):(c=gn(r)?Dl:Hr.current,c=zc(t,c));var u=r.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==n||A!==c)&&FO(t,s,n,c),Ks=!1;var f=t.memoizedState;s.state=f,qg(t,n,s,i),A=t.memoizedState,l!==n||f!==A||mn.current||Ks?(typeof u=="function"&&(zB(t,r,u,n),A=t.memoizedState),(l=Ks||TO(t,r,l,n,f,A,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=A),s.props=n,s.state=A,s.context=c,n=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,kM(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Ei(t.type,l),s.props=c,d=t.pendingProps,f=s.context,A=r.contextType,typeof A=="object"&&A!==null?A=ci(A):(A=gn(r)?Dl:Hr.current,A=zc(t,A));var h=r.getDerivedStateFromProps;(u=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==d||f!==A)&&FO(t,s,n,A),Ks=!1,f=t.memoizedState,s.state=f,qg(t,n,s,i);var m=t.memoizedState;l!==d||f!==m||mn.current||Ks?(typeof h=="function"&&(zB(t,r,h,n),m=t.memoizedState),(c=Ks||TO(t,r,c,n,f,m,A)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,m,A),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,m,A)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),s.props=n,s.state=m,s.context=A,n=c):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return JB(e,t,r,n,a,i)}function JB(e,t,r,n,i,a){sR(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return i&&BO(t,r,!1),fs(e,t,a);n=t.stateNode,iz.current=t;var l=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=Yc(t,e.child,null,a),t.child=Yc(t,null,l,a)):Wr(e,t,l,a),t.memoizedState=n.state,i&&BO(t,r,!0),t.child}function oR(e){var t=e.stateNode;t.pendingContext?bO(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bO(e,t.context,!1),P_(e,t.containerInfo)}function RO(e,t,r,n,i){return qc(),E_(i),t.flags|=256,Wr(e,t,r,n),t.child}var ZB={dehydrated:null,treeContext:null,retryLane:0};function eC(e){return{baseLanes:e,cachePool:null,transitions:null}}function lR(e,t,r){var n=t.pendingProps,i=Mt.current,a=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),jt(Mt,i&1),e===null)return WB(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=n.children,e=n.fallback,a?(n=t.mode,a=t.child,s={mode:"hidden",children:s},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=s):a=tx(s,n,0,null),e=Pl(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=eC(r),t.memoizedState=ZB,e):L_(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return az(e,t,s,n,l,i,r);if(a){a=n.fallback,s=t.mode,i=e.child,l=i.sibling;var A={mode:"hidden",children:n.children};return!(s&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=A,t.deletions=null):(n=wo(i,A),n.subtreeFlags=i.subtreeFlags&14680064),l!==null?a=wo(l,a):(a=Pl(a,s,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,s=e.child.memoizedState,s=s===null?eC(r):{base
vendor: 7,574 bytes, line 40
40Lanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~r,t.memoizedState=ZB,n}return a=e.child,e=a.sibling,n=wo(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function L_(e,t){return t=tx({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function am(e,t,r,n){return n!==null&&E_(n),Yc(t,e.child,null,r),e=L_(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function az(e,t,r,n,i,a,s){if(r)return t.flags&256?(t.flags&=-257,n=F0(Error(re(422))),am(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=tx({mode:"visible",children:n.children},i,0,null),a=Pl(a,i,s,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&Yc(t,e.child,null,s),t.child.memoizedState=eC(s),t.memoizedState=ZB,a);if(!(t.mode&1))return am(e,t,s,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var l=n.dgst;return n=l,a=Error(re(419)),n=F0(a,n,void 0),am(e,t,s,n)}if(l=(s&e.childLanes)!==0,fn||l){if(n=xr,n!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|s)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,ds(e,i),Li(n,e,i,-1))}return G_(),n=F0(Error(re(421))),am(e,t,s,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=vz.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,kn=go(i.nextSibling),Un=t,It=!0,Ii=null,e!==null&&(ei[ti++]=Ja,ei[ti++]=Za,ei[ti++]=Ll,Ja=e.id,Za=e.overflow,Ll=t),t=L_(t,n.children),t.flags|=4096,t)}function DO(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),GB(e.return,t,r)}function P0(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function AR(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(Wr(e,t,n.children,r),n=Mt.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&DO(e,r,t);else if(e.tag===19)DO(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(jt(Mt,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Yg(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),P0(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Yg(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}P0(t,!0,r,null,a);break;case"together":P0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function fg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function fs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Hl|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(re(153));if(t.child!==null){for(e=t.child,r=wo(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=wo(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function sz(e,t,r){switch(t.tag){case 3:oR(t),qc();break;case 5:IM(t);break;case 1:gn(t.type)&&Kg(t);break;case 4:P_(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;jt(Gg,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(jt(Mt,Mt.current&1),t.flags|=128,null):r&t.child.childLanes?lR(e,t,r):(jt(Mt,Mt.current&1),e=fs(e,t,r),e!==null?e.sibling:null);jt(Mt,Mt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return AR(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),jt(Mt,Mt.current),n)break;return null;case 22:case 23:return t.lanes=0,aR(e,t,r)}return fs(e,t,r)}var cR,tC,uR,dR;cR=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};tC=function(){};uR=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,gl(ma.current);var a=null;switch(r){case"input":i=BB(e,i),n=BB(e,n),a=[];break;case"select":i=Dt({},i,{value:void 0}),n=Dt({},n,{value:void 0}),a=[];break;case"textarea":i=_B(e,i),n=_B(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=$g)}SB(r,n);var s;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(s in l)l.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Uf.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in n){var A=n[c];if(l=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&A!==l&&(A!=null||l!=null))if(c==="style")if(l){for(s in l)!l.hasOwnProperty(s)||A&&A.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in A)A.hasOwnProperty(s)&&l[s]!==A[s]&&(r||(r={}),r[s]=A[s])}else r||(a||(a=[]),a.push(c,r)),r=A;else c==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,l=l?l.__html:void 0,A!=null&&l!==A&&(a=a||[]).push(c,A)):c==="children"?typeof A!="string"&&typeof A!="number"||(a=a||[]).push(c,""+A):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Uf.hasOwnProperty(c)?(A!=null&&c==="onScroll"&&Nt("scroll",e),a||l===A||(a=[])):(a=a||[]).push(c,A))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};dR=function(e,t,r,n){r!==n&&(t.flags|=4)};function vd(e,t){if(!It)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function kr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function oz(e,t,r){var n=t.pendingProps;switch(__(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kr(t),null;case 1:return gn(t.type)&&Hg(),kr(t),null;case 3:return n=t.stateNode,Xc(),Ft(mn),Ft(Hr),I_(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(nm(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ii!==null&&(AC(Ii),Ii=null))),tC(e,t),kr(t),null;case 5:k_(t);var i=gl(zf.current);if(r=t.type,e!==null&&t.stateNode!=null)uR(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(re(166));return kr(t),null}
vendor: 32,435 bytes, line 40
40if(e=gl(ma.current),nm(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Aa]=t,n[Wf]=a,e=(t.mode&1)!==0,r){case"dialog":Nt("cancel",n),Nt("close",n);break;case"iframe":case"object":case"embed":Nt("load",n);break;case"video":case"audio":for(i=0;i<qd.length;i++)Nt(qd[i],n);break;case"source":Nt("error",n);break;case"img":case"image":case"link":Nt("error",n),Nt("load",n);break;case"details":Nt("toggle",n);break;case"input":qN(n,a),Nt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Nt("invalid",n);break;case"textarea":XN(n,a),Nt("invalid",n)}SB(r,a),i=null;for(var s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="children"?typeof l=="string"?n.textContent!==l&&(a.suppressHydrationWarning!==!0&&rm(n.textContent,l,e),i=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&rm(n.textContent,l,e),i=["children",""+l]):Uf.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&Nt("scroll",n)}switch(r){case"input":zp(n),YN(n,a,!0);break;case"textarea":zp(n),JN(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=$g)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=DQ(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[Aa]=t,e[Wf]=n,cR(e,t,!1,!1),t.stateNode=e;e:{switch(s=NB(r,n),r){case"dialog":Nt("cancel",e),Nt("close",e),i=n;break;case"iframe":case"object":case"embed":Nt("load",e),i=n;break;case"video":case"audio":for(i=0;i<qd.length;i++)Nt(qd[i],e);i=n;break;case"source":Nt("error",e),i=n;break;case"img":case"image":case"link":Nt("error",e),Nt("load",e),i=n;break;case"details":Nt("toggle",e),i=n;break;case"input":qN(e,n),i=BB(e,n),Nt("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Dt({},n,{value:void 0}),Nt("invalid",e);break;case"textarea":XN(e,n),i=_B(e,n),Nt("invalid",e);break;default:i=n}SB(r,i),l=i;for(a in l)if(l.hasOwnProperty(a)){var A=l[a];a==="style"?HQ(e,A):a==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&LQ(e,A)):a==="children"?typeof A=="string"?(r!=="textarea"||A!=="")&&Qf(e,A):typeof A=="number"&&Qf(e,""+A):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Uf.hasOwnProperty(a)?A!=null&&a==="onScroll"&&Nt("scroll",e):A!=null&&u_(e,a,A,s))}switch(r){case"input":zp(e),YN(e,n,!1);break;case"textarea":zp(e),JN(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Eo(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?bc(e,!!n.multiple,a,!1):n.defaultValue!=null&&bc(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=$g)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return kr(t),null;case 6:if(e&&t.stateNode!=null)dR(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(re(166));if(r=gl(zf.current),gl(ma.current),nm(t)){if(n=t.stateNode,r=t.memoizedProps,n[Aa]=t,(a=n.nodeValue!==r)&&(e=Un,e!==null))switch(e.tag){case 3:rm(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&rm(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Aa]=t,t.stateNode=n}return kr(t),null;case 13:if(Ft(Mt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(It&&kn!==null&&t.mode&1&&!(t.flags&128))OM(),qc(),t.flags|=98560,a=!1;else if(a=nm(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(re(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(re(317));a[Aa]=t}else qc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;kr(t),a=!1}else Ii!==null&&(AC(Ii),Ii=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Mt.current&1?dr===0&&(dr=3):G_())),t.updateQueue!==null&&(t.flags|=4),kr(t),null);case 4:return Xc(),tC(e,t),e===null&&Kf(t.stateNode.containerInfo),kr(t),null;case 10:return O_(t.type._context),kr(t),null;case 17:return gn(t.type)&&Hg(),kr(t),null;case 19:if(Ft(Mt),a=t.memoizedState,a===null)return kr(t),null;if(n=(t.flags&128)!==0,s=a.rendering,s===null)if(n)vd(a,!1);else{if(dr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Yg(e),s!==null){for(t.flags|=128,vd(a,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=14680066,s=a.alternate,s===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return jt(Mt,Mt.current&1|2),t.child}e=e.sibling}a.tail!==null&&qt()>Zc&&(t.flags|=128,n=!0,vd(a,!1),t.lanes=4194304)}else{if(!n)if(e=Yg(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),vd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!It)return kr(t),null}else 2*qt()-a.renderingStartTime>Zc&&r!==1073741824&&(t.flags|=128,n=!0,vd(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(r=a.last,r!==null?r.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=qt(),t.sibling=null,r=Mt.current,jt(Mt,n?r&1|2:r&1),t):(kr(t),null);case 22:case 23:return W_(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Sn&1073741824&&(kr(t),t.subtreeFlags&6&&(t.flags|=8192)):kr(t),null;case 24:return null;case 25:return null}throw Error(re(156,t.tag))}function lz(e,t){switch(__(t),t.tag){case 1:return gn(t.type)&&Hg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xc(),Ft(mn),Ft(Hr),I_(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return k_(t),null;case 13:if(Ft(Mt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(re(340));qc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ft(Mt),null;case 4:return Xc(),null;case 10:return O_(t.type._context),null;case 22:case 23:return W_(),null;case 24:return null;default:return null}}var sm=!1,Rr=!1,Az=typeof WeakSet=="function"?WeakSet:Set,xe=null;function hc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Kt(e,t,n)}else r.current=null}function rC(e,t,r){try{r()}catch(n){Kt(e,t,n)}}var LO=!1;function cz(e,t){if(RB=Rg,e=gM(),C_(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var s=0,l=-1,A=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==r||i!==0&&d.nodeType!==3||(l=s+i),d!==a||n!==0&&d.nodeType!==3||(A=s+n),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===r&&++c===i&&(l=s),f===a&&++u===n&&(A=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}r=l===-1||A===-1?null:{start:l,end:A}}else r=null}r=r||{start:0,end:0}}else r=null;for(DB={focusedElem:e,selectionRange:r},Rg=!1,xe=t;xe!==null;)if(t=xe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xe=e;else for(;xe!==null;){t=xe;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var p=m.memoizedProps,v=m.memoizedState,x=t.stateNode,g=x.getSnapshotBeforeUpdate(t.elementType===t.type?p:Ei(t.type,p),v);x.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(B){Kt(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,xe=e;break}xe=t.return}return m=LO,LO=!1,m}function pf(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&rC(t,r,a)}i=i.next}while(i!==n)}}function Zy(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function nC(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function fR(e){var t=e.alternate;t!==null&&(e.alternate=null,fR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Aa],delete t[Wf],delete t[HB],delete t[WG],delete t[GG])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function hR(e){return e.tag===5||e.tag===3||e.tag===4}function $O(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hR(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function iC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=$g));else if(n!==4&&(e=e.child,e!==null))for(iC(e,t,r),e=e.sibling;e!==null;)iC(e,t,r),e=e.sibling}function aC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(aC(e,t,r),e=e.sibling;e!==null;)aC(e,t,r),e=e.sibling}var jr=null,Ti=!1;function Ps(e,t,r){for(r=r.child;r!==null;)pR(e,t,r),r=r.sibling}function pR(e,t,r){if(pa&&typeof pa.onCommitFiberUnmount=="function")try{pa.onCommitFiberUnmount(Vy,r)}catch{}switch(r.tag){case 5:Rr||hc(r,t);case 6:var n=jr,i=Ti;jr=null,Ps(e,t,r),jr=n,Ti=i,jr!==null&&(Ti?(e=jr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):jr.removeChild(r.stateNode));break;case 18:jr!==null&&(Ti?(e=jr,r=r.stateNode,e.nodeType===8?_0(e.parentNode,r):e.nodeType===1&&_0(e,r),Lf(e)):_0(jr,r.stateNode));break;case 4:n=jr,i=Ti,jr=r.stateNode.containerInfo,Ti=!0,Ps(e,t,r),jr=n,Ti=i;break;case 0:case 11:case 14:case 15:if(!Rr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&rC(r,t,s),i=i.next}while(i!==n)}Ps(e,t,r);break;case 1:if(!Rr&&(hc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Kt(r,t,l)}Ps(e,t,r);break;case 21:Ps(e,t,r);break;case 22:r.mode&1?(Rr=(n=Rr)||r.memoizedState!==null,Ps(e,t,r),Rr=n):Ps(e,t,r);break;default:Ps(e,t,r)}}function HO(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Az),t.forEach(function(n){var i=yz.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function wi(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:jr=l.stateNode,Ti=!1;break e;case 3:jr=l.stateNode.containerInfo,Ti=!0;break e;case 4:jr=l.stateNode.containerInfo,Ti=!0;break e}l=l.return}if(jr===null)throw Error(re(160));pR(a,s,i),jr=null,Ti=!1;var A=i.alternate;A!==null&&(A.return=null),i.return=null}catch(c){Kt(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)mR(t,e),t=t.sibling}function mR(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(wi(t,e),ta(e),n&4){try{pf(3,e,e.return),Zy(3,e)}catch(p){Kt(e,e.return,p)}try{pf(5,e,e.return)}catch(p){Kt(e,e.return,p)}}break;case 1:wi(t,e),ta(e),n&512&&r!==null&&hc(r,r.return);break;case 5:if(wi(t,e),ta(e),n&512&&r!==null&&hc(r,r.return),e.flags&32){var i=e.stateNode;try{Qf(i,"")}catch(p){Kt(e,e.return,p)}}if(n&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,s=r!==null?r.memoizedProps:a,l=e.type,A=e.updateQueue;if(e.updateQueue=null,A!==null)try{l==="input"&&a.type==="radio"&&a.name!=null&&MQ(i,a),NB(l,s);var c=NB(l,a);for(s=0;s<A.length;s+=2){var u=A[s],d=A[s+1];u==="style"?HQ(i,d):u==="dangerouslySetInnerHTML"?LQ(i,d):u==="children"?Qf(i,d):u_(i,u,d,c)}switch(l){case"input":CB(i,a);break;case"textarea":RQ(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?bc(i,!!a.multiple,h,!1):f!==!!a.multiple&&(a.defaultValue!=null?bc(i,!!a.multiple,a.defaultValue,!0):bc(i,!!a.multiple,a.multiple?[]:"",!1))}i[Wf]=a}catch(p){Kt(e,e.return,p)}}break;case 6:if(wi(t,e),ta(e),n&4){if(e.stateNode===null)throw Error(re(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(p){Kt(e,e.return,p)}}break;case 3:if(wi(t,e),ta(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Lf(t.containerInfo)}catch(p){Kt(e,e.return,p)}break;case 4:wi(t,e),ta(e);break;case 13:wi(t,e),ta(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(K_=qt())),n&4&&HO(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(Rr=(c=Rr)||u,wi(t,e),Rr=c):wi(t,e),ta(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(xe=e,u=e.child;u!==null;){for(d=xe=u;xe!==null;){switch(f=xe,h=f.child,f.tag){case 0:case 11:case 14:case 15:pf(4,f,f.return);break;case 1:hc(f,f.return);var m=f.stateNode;if(typeof m.componentWillUnmount=="function"){n=f,r=f.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(p){Kt(n,r,p)}}break;case 5:hc(f,f.return);break;case 22:if(f.memoizedState!==null){VO(d);continue}}h!==null?(h.return=f,xe=h):VO(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{i=d.stateNode,c?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(l=d.stateNode,A=d.memoizedProps.style,s=A!=null&&A.hasOwnProperty("display")?A.display:null,l.style.display=$Q("display",s))}catch(p){Kt(e,e.return,p)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(p){Kt(e,e.return,p)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:wi(t,e),ta(e),n&4&&HO(e);break;case 21:break;default:wi(t,e),ta(e)}}function ta(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(hR(r)){var n=r;break e}r=r.return}throw Error(re(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Qf(i,""),n.flags&=-33);var a=$O(e);aC(e,a,i);break;case 3:case 4:var s=n.stateNode.containerInfo,l=$O(e);iC(e,l,s);break;default:throw Error(re(161))}}catch(A){Kt(e,e.return,A)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function uz(e,t,r){xe=e,gR(e)}function gR(e,t,r){for(var n=(e.mode&1)!==0;xe!==null;){var i=xe,a=i.child;if(i.tag===22&&n){var s=i.memoizedState!==null||sm;if(!s){var l=i.alternate,A=l!==null&&l.memoizedState!==null||Rr;l=sm;var c=Rr;if(sm=s,(Rr=A)&&!c)for(xe=i;xe!==null;)s=xe,A=s.child,s.tag===22&&s.memoizedState!==null?WO(i):A!==null?(A.return=s,xe=A):WO(i);for(;a!==null;)xe=a,gR(a),a=a.sibling;xe=i,sm=l,Rr=c}KO(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,xe=a):KO(e)}}function KO(e){for(;xe!==null;){var t=xe;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Rr||Zy(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Rr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Ei(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&SO(t,a,n);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}SO(t,s,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var A=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&r.focus();break;case"img":A.src&&(r.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Lf(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(re(163))}Rr||t.flags&512&&nC(t)}catch(f){Kt(t,t.return,f)}}if(t===e){xe=null;break}if(r=t.sibling,r!==null){r.return=t.return,xe=r;break}xe=t.return}}function VO(e){for(;xe!==null;){var t=xe;if(t===e){xe=null;break}var r=t.sibling;if(r!==null){r.return=t.return,xe=r;break}xe=t.return}}function WO(e){for(;xe!==null;){var t=xe;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Zy(4,t)}catch(A){Kt(t,r,A)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(A){Kt(t,i,A)}}var a=t.return;try{nC(t)}catch(A){Kt(t,a,A)}break;case 5:var s=t.return;try{nC(t)}catch(A){Kt(t,s,A)}}}catch(A){Kt(t,t.return,A)}if(t===e){xe=null;break}var l=t.sibling;if(l!==null){l.return=t.return,xe=l;break}xe=t.return}}var dz=Math.ceil,Zg=bs.ReactCurrentDispatcher,$_=bs.ReactCurrentOwner,li=bs.ReactCurrentBatchConfig,tt=0,xr=null,rr=null,Nr=0,Sn=0,pc=Uo(0),dr=0,Jf=null,Hl=0,ex=0,H_=0,mf=null,un=null,K_=0,Zc=1/0,Va=null,ev=!1,sC=null,yo=null,om=!1,io=null,tv=0,gf=0,oC=null,hg=-1,pg=0;function Zr(){return tt&6?qt():hg!==-1?hg:hg=qt()}function xo(e){return e.mode&1?tt&2&&Nr!==0?Nr&-Nr:qG.transition!==null?(pg===0&&(pg=tM()),pg):(e=ht,e!==0||(e=window.event,e=e===void 0?16:lM(e.type)),e):1}function Li(e,t,r,n){if(50<gf)throw gf=0,oC=null,Error(re(185));ep(e,r,n),(!(tt&2)||e!==xr)&&(e===xr&&(!(tt&2)&&(ex|=r),dr===4&&qs(e,Nr)),vn(e,n),r===1&&tt===0&&!(t.mode&1)&&(Zc=qt()+500,Yy&&Qo()))}function vn(e,t){var r=e.callbackNode;qW(e,t);var n=Mg(e,e===xr?Nr:0);if(n===0)r!==null&&tO(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&tO(r),t===1)e.tag===0?zG(GO.bind(null,e)):EM(GO.bind(null,e)),KG(function(){!(tt&6)&&Qo()}),r=null;else{switch(rM(n)){case 1:r=m_;break;case 4:r=ZQ;break;case 16:r=Qg;break;case 536870912:r=eM;break;default:r=Qg}r=jR(r,vR.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function vR(e,t){if(hg=-1,pg=0,tt&6)throw Error(re(327));var r=e.callbackNode;if(Ec()&&e.callbackNode!==r)return null;var n=Mg(e,e===xr?Nr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=rv(e,n);else{t=n;var i=tt;tt|=2;var a=xR();(xr!==e||Nr!==t)&&(Va=null,Zc=qt()+500,Fl(e,t));do try{pz();break}catch(l){yR(e,l)}while(!0);N_(),Zg.current=a,tt=i,rr!==null?t=0:(xr=null,Nr=0,t=dr)}if(t!==0){if(t===2&&(i=kB(e),i!==0&&(n=i,t=lC(e,i))),t===1)throw r=Jf,Fl(e,0),qs(e,n),vn(e,qt()),r;if(t===6)qs(e,n);else{if(i=e.current.alternate,!(n&30)&&!fz(i)&&(t=rv(e,n),t===2&&(a=kB(e),a!==0&&(n=a,t=lC(e,a))),t===1))throw r=Jf,Fl(e,0),qs(e,n),vn(e,qt()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(re(345));case 2:al(e,un,Va);break;case 3:if(qs(e,n),(n&130023424)===n&&(t=K_+500-qt(),10<t)){if(Mg(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Zr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=$B(al.bind(null,e,un,Va),t);break}al(e,un,Va);break;case 4:if(qs(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-Di(n);a=1<<s,s=t[s],s>i&&(i=s),n&=~a}if(n=i,n=qt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*dz(n/1960))-n,10<n){e.timeoutHandle=$B(al.bind(null,e,un,Va),n);break}al(e,un,Va);break;case 5:al(e,un,Va);break;default:throw Error(re(329))}}}return vn(e,qt()),e.callbackNode===r?vR.bind(null,e):null}function lC(e,t){var r=mf;return e.current.memoizedState.isDehydrated&&(Fl(e,t).flags|=256),e=rv(e,t),e!==2&&(t=un,un=r,t!==null&&AC(t)),e}function AC(e){un===null?un=e:un.push.apply(un,e)}function fz(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!Ki(a(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function qs(e,t){for(t&=~H_,t&=~ex,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Di(t),n=1<<r;e[r]=-1,t&=~n}}function GO(e){if(tt&6)throw Error(re(327));Ec();var t=Mg(e,0);if(!(t&1))return vn(e,qt()),null;var r=rv(e,t);if(e.tag!==0&&r===2){var n=kB(e);n!==0&&(t=n,r=lC(e,n))}if(r===1)throw r=Jf,Fl(e,0),qs(e,t),vn(e,qt()),r;if(r===6)throw Error(re(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,al(e,un,Va),vn(e,qt()),null}function V_(e,t){var r=tt;tt|=1;try{return e(t)}finally{tt=r,tt===0&&(Zc=qt()+500,Yy&&Qo())}}function Kl(e){io!==null&&io.tag===0&&!(tt&6)&&Ec();var t=tt;tt|=1;var r=li.transition,n=ht;try{if(li.transition=null,ht=1,e)return e()}finally{ht=n,li.transition=r,tt=t,!(tt&6)&&Qo()}}function W_(){Sn=pc.current,Ft(pc)}function Fl(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,HG(r)),rr!==null)for(r=rr.return;r!==null;){var n=r;switch(__(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Hg();break;case 3:Xc(),Ft(mn),Ft(Hr),I_();break;case 5:k_(n);break;case 4:Xc();break;case 13:Ft(Mt);break;case 19:Ft(Mt);break;case 10:O_(n.type._context);break;case 22:case 23:W_()}r=r.return}if(xr=e,rr=e=wo(e.current,null),Nr=Sn=t,dr=0,Jf=null,H_=ex=Hl=0,un=mf=null,ml!==null){for(t=0;t<ml.length;t++)if(r=ml[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,a=r.pending;if(a!==null){var s=a.next;a.next=i,n.next=s}r.pending=n}ml=null}return e}function yR(e,t){do{var r=rr;try{if(N_(),ug.current=Jg,Xg){for(var n=Rt.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Xg=!1}if($l=0,vr=Ar=Rt=null,hf=!1,qf=0,$_.current=null,r===null||r.return===null){dr=1,Jf=t,rr=null;break}e:{var a=e,s=r.return,l=r,A=t;if(t=Nr,l.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var c=A,u=l,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=kO(s);if(h!==null){h.flags&=-257,IO(h,s,l,a,t),h.mode&1&&PO(a,c,t),t=h,A=c;var m=t.updateQueue;if(m===null){var p=new Set;p.add(A),t.updateQueue=p}else m.add(A);break e}else{if(!(t&1)){PO(a,c,t),G_();break e}A=Error(re(426))}}else if(It&&l.mode&1){var v=kO(s);if(v!==null){!(v.flags&65536)&&(v.flags|=256),IO(v,s,l,a,t),E_(Jc(A,l));break e}}a=A=Jc(A,l),dr!==4&&(dr=2),mf===null?mf=[a]:mf.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var x=rR(a,A,t);EO(a,x);break e;case 1:l=A;var g=a.type,y=a.stateNode;if(!(a.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(yo===null||!yo.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t;var B=nR(a,l,t);EO(a,B);break e}}a=a.return}while(a!==null)}bR(r)}catch(b){t=b,rr===r&&r!==null&&(rr=r=r.return);continue}break}while(!0)}function xR(){var e=Zg.current;return Zg.current=Jg,e===null?Jg:e}function G_(){(dr===0||dr===3||dr===2)&&(dr=4),xr===null||!(Hl&268435455)&&!(ex&268435455)||qs(xr,Nr)}function rv(e,t){var r=tt;tt|=2;var n=xR();(xr!==e||Nr!==t)&&(Va=null,Fl(e,t));do try{hz();break}catch(i){yR(e,i)}while(!0);if(N_(),tt=r,Zg.current=n,rr!==null)throw Error(re(261));return xr=null,Nr=0,dr}function hz(){for(;rr!==null;)wR(rr)}function pz(){for(;rr!==null&&!DW();)wR(rr)}function wR(e){var t=CR(e.alternate,e,Sn);e.memoizedProps=e.pendingProps,t===null?bR(e):rr=t,$_.current=null}function bR(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=lz(r,t),r!==null){r.flags&=32767,rr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{dr=6,rr=null;return}}else if(r=oz(r,t,Sn),r!==null){rr=r;return}if(t=t.sibling,t!==null){rr=t;return}rr=t=e}while(t!==null);dr===0&&(dr=5)}function al(e,t,r){var n=ht,i=li.transition;try{li.transition=null,ht=1,mz(e,t,r,n)}finally{li.transition=i,ht=n}return null}function mz(e,t,r,n){do Ec();while(io!==null);if(tt&6)throw Error(re(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(re(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(YW(e,a),e===xr&&(rr=xr=null,Nr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||om||(om=!0,jR(Qg,function(){return Ec(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=li.transition,li.transition=null;var s=ht;ht=1;var l=tt;tt|=4,$_.current=null,cz(e,r),mR(r,e),UG(DB),Rg=!!RB,DB=RB=null,e.current=r,uz(r),LW(),tt=l,ht=s,li.transition=a}else e.current=r;if(om&&(om=!1,io=e,tv=i),a=e.pendingLanes,a===0&&(yo=null),KW(r.stateNode),vn(e,qt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(ev)throw ev=!1,e=sC,sC=null,e;return tv&1&&e.tag!==0&&Ec(),a=e.pendingLanes,a&1?e===oC?gf++:(gf=0,oC=e):gf=0,Qo(),null}function Ec(){if(io!==null){var e=rM(tv),t=li.transition,r=ht;try{if(li.transition=null,ht=16>e?16:e,io===null)var n=!1;else{if(e=io,io=null,tv=0,tt&6)throw Error(re(331));var i=tt;for(tt|=4,xe=e.current;xe!==null;){var a=xe,s=a.child;if(xe.flags&16){var l=a.deletions;if(l!==null){for(var A=0;A<l.length;A++){var c=l[A];for(xe=c;xe!==null;){var u=xe;switch(u.tag){case 0:case 11:case 15:pf(8,u,a)}var d=u.child;if(d!==null)d.return=u,xe=d;else for(;xe!==null;){u=xe;var f=u.sibling,h=u.return;if(fR(u),u===c){xe=null;break}if(f!==null){f.return=h,xe=f;break}xe=h}}}var m=a.alternate;if(m!==null){var p=m.child;if(p!==null){m.child=null;do{var v=p.sibling;p.sibling=null,p=v}while(p!==null)}}xe=a}}if(a.subtreeFlags&2064&&s!==null)s.return=a,xe=s;else e:for(;xe!==null;){if(a=xe,a.flags&2048)switch(a.tag){case 0:case 11:case 15:pf(9,a,a.return)}var x=a.sibling;if(x!==null){x.return=a.return,xe=x;break e}xe=a.return}}var g=e.current;for(xe=g;xe!==null;){s=xe;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,xe=y;else e:for(s=g;xe!==null;){if(l=xe,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Zy(9,l)}}catch(b){Kt(l,l.return,b)}if(l===s){xe=null;break e}var B=l.sibling;if(B!==null){B.return=l.return,xe=B;break e}xe=l.return}}if(tt=i,Qo(),pa&&typeof pa.onPostCommitFiberRoot=="function")try{pa.onPostCommitFiberRoot(Vy,e)}catch{}n=!0}return n}finally{ht=r,li.transition=t}}return!1}function zO(e,t,r){t=Jc(r,t),t=rR(e,t,1),e=vo(e,t,1),t=Zr(),e!==null&&(ep(e,1,t),vn(e,t))}function Kt(e,t,r){if(e.tag===3)zO(e,e,r);else for(;t!==null;){if(t.tag===3){zO(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(yo===null||!yo.has(n))){e=Jc(r,e),e=nR(t,e,1),t=vo(t,e,1),e=Zr(),t!==null&&(ep(t,1,e),vn(t,e));break}}t=t.return}}function gz(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Zr(),e.pingedLanes|=e.suspendedLanes&r,xr===e&&(Nr&r)===r&&(dr===4||dr===3&&(Nr&130023424)===Nr&&500>qt()-K_?Fl(e,0):H_|=r),vn(e,t)}function BR(e,t){t===0&&(e.mode&1?(t=Xp,Xp<<=1,!(Xp&130023424)&&(Xp=4194304)):t=1);var r=Zr();e=ds(e,t),e!==null&&(ep(e,t,r),vn(e,r))}function vz(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),BR(e,r)}function yz(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(re(314))}n!==null&&n.delete(t),BR(e,r)}var CR;CR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||mn.current)fn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return fn=!1,sz(e,t,r);fn=!!(e.flags&131072)}else fn=!1,It&&t.flags&1048576&&SM(t,Wg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;fg(e,t),e=t.pendingProps;var i=zc(t,Hr.current);_c(t,r),i=Q_(null,t,n,e,i,r);var a=M_();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gn(n)?(a=!0,Kg(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,F_(t),i.updater=Jy,t.stateNode=i,i._reactInternals=t,qB(t,n,e,r),t=JB(null,t,n,!0,a,r)):(t.tag=0,It&&a&&j_(t),Wr(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(fg(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=wz(n),e=Ei(n,e),i){case 0:t=XB(null,t,n,e,r);break e;case 1:t=MO(null,t,n,e,r);break e;case 11:t=UO(null,t,n,e,r);break e;case 14:t=QO(null,t,n,Ei(n.type,e),r);break e}throw Error(re(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),XB(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),MO(e,t,n,i,r);case 3:e:{if(oR(t),e===null)throw Error(re(387));n=t.pendingProps,a=t.memoizedState,i=a.element,kM(e,t),qg(t,n,null,r);var s=t.memoizedState;if(n=s.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Jc(Error(re(423)),t),t=RO(e,t,n,r,i);break e}else if(n!==i){i=Jc(Error(re(424)),t),t=RO(e,t,n,r,i);break e}else for(kn=go(t.stateNode.containerInfo.firstChild),Un=t,It=!0,Ii=null,r=FM(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(qc(),n===i){t=fs(e,t,r);break e}Wr(e,t,n,r)}t=t.child}return t;case 5:return IM(t),e===null&&WB(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,LB(n,i)?s=null:a!==null&&LB(n,a)&&(t.flags|=32),sR(e,t),Wr(e,t,s,r),t.child;case 6:return e===null&&WB(t),null;case 13:return lR(e,t,r);case 4:return P_(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Yc(t,null,n,r):Wr(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),UO(e,t,n,i,r);case 7:return Wr(e,t,t.pendingProps,r),t.child;case 8:return Wr(e,t,t.pendingProps.children,r),t.child;case 12:return Wr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,jt(Gg,n._currentValue),n._currentValue=s,a!==null)if(Ki(a.value,s)){if(a.children===i.children&&!mn.current){t=fs(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){s=a.child;for(var A=l.firstContext;A!==null;){if(A.context===n){if(a.tag===1){A=ns(-1,r&-r),A.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?A.next=A:(A.next=u.next,u.next=A),c.pending=A}}a.lanes|=r,A=a.alternate,A!==null&&(A.lanes|=r),GB(a.return,r,t),l.lanes|=r;break}A=A.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(re(341));s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),GB(s,r,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Wr(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,_c(t,r),i=ci(i),n=n(i),t.flags|=1,Wr(e,t,n,r),t.child;case 14:return n=t.type,i=Ei(n,t.pendingProps),i=Ei(n.type,i),QO(e,t,n,i,r);case 15:return iR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),fg(e,t),t.tag=1,gn(n)?(e=!0,Kg(t)):e=!1,_c(t,r),tR(t,n,i),qB(t,n,i,r),JB(null,t,n,!0,e,r);case 19:return AR(e,t,r);case 22:return aR(e,t,r)}throw Error(re(156,t.tag))};function jR(e,t){return JQ(e,t)}function xz(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 5,165 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ii(e,t,r,n){return new xz(e,t,r,n)}function z_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wz(e){if(typeof e=="function")return z_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===f_)return 11;if(e===h_)return 14}return 2}function wo(e,t){var r=e.alternate;return r===null?(r=ii(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function mg(e,t,r,n,i,a){var s=2;if(n=e,typeof e=="function")z_(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ac:return Pl(r.children,i,a,t);case d_:s=8,i|=8;break;case yB:return e=ii(12,r,t,i|2),e.elementType=yB,e.lanes=a,e;case xB:return e=ii(13,r,t,i),e.elementType=xB,e.lanes=a,e;case wB:return e=ii(19,r,t,i),e.elementType=wB,e.lanes=a,e;case IQ:return tx(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case PQ:s=10;break e;case kQ:s=9;break e;case f_:s=11;break e;case h_:s=14;break e;case Hs:s=16,n=null;break e}throw Error(re(130,e==null?e:typeof e,""))}return t=ii(s,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Pl(e,t,r,n){return e=ii(7,e,n,t),e.lanes=r,e}function tx(e,t,r,n){return e=ii(22,e,n,t),e.elementType=IQ,e.lanes=r,e.stateNode={isHidden:!1},e}function k0(e,t,r){return e=ii(6,e,null,t),e.lanes=r,e}function I0(e,t,r){return t=ii(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bz(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=p0(0),this.expirationTimes=p0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=p0(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function q_(e,t,r,n,i,a,s,l,A){return e=new bz(e,t,r,l,A),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ii(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},F_(a),e}function Bz(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ic,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function _R(e){if(!e)return So;e=e._reactInternals;e:{if(iA(e)!==e||e.tag!==1)throw Error(re(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(gn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(re(171))}if(e.tag===1){var r=e.type;if(gn(r))return _M(e,r,t)}return t}function ER(e,t,r,n,i,a,s,l,A){return e=q_(r,n,!0,e,i,a,s,l,A),e.context=_R(null),r=e.current,n=Zr(),i=xo(r),a=ns(n,i),a.callback=t??null,vo(r,a,i),e.current.lanes=i,ep(e,i,n),vn(e,n),e}function rx(e,t,r,n){var i=t.current,a=Zr(),s=xo(i);return r=_R(r),t.context===null?t.context=r:t.pendingContext=r,t=ns(a,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=vo(i,t,s),e!==null&&(Li(e,i,s,a),cg(e,i,s)),s}function nv(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function qO(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Y_(e,t){qO(e,t),(e=e.alternate)&&qO(e,t)}function Cz(){return null}var SR=typeof reportError=="function"?reportError:function(e){console.error(e)};function X_(e){this._internalRoot=e}nx.prototype.render=X_.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(re(409));rx(e,t,null,null)};nx.prototype.unmount=X_.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Kl(function(){rx(null,e,null,null)}),t[us]=null}};function nx(e){this._internalRoot=e}nx.prototype.unstable_scheduleHydration=function(e){if(e){var t=aM();e={blockedOn:null,target:e,priority:t};for(var r=0;r<zs.length&&t!==0&&t<zs[r].priority;r++);zs.splice(r,0,e),r===0&&oM(e)}};function J_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ix(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function YO(){}function jz(e,t,r,n,i){if(i){if(typeof n=="function"){var a=n;n=function(){var c=nv(s);a.call(c)}}
vendor: 4,996 bytes, line 40
40var s=ER(t,n,e,0,null,!1,!1,"",YO);return e._reactRootContainer=s,e[us]=s.current,Kf(e.nodeType===8?e.parentNode:e),Kl(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var l=n;n=function(){var c=nv(A);l.call(c)}}var A=q_(e,0,!1,null,null,!1,!1,"",YO);return e._reactRootContainer=A,e[us]=A.current,Kf(e.nodeType===8?e.parentNode:e),Kl(function(){rx(t,A,r,n)}),A}function ax(e,t,r,n,i){var a=r._reactRootContainer;if(a){var s=a;if(typeof i=="function"){var l=i;i=function(){var A=nv(s);l.call(A)}}rx(t,s,e,i)}else s=jz(r,t,e,i,n);return nv(s)}nM=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=zd(t.pendingLanes);r!==0&&(g_(t,r|1),vn(t,qt()),!(tt&6)&&(Zc=qt()+500,Qo()))}break;case 13:Kl(function(){var n=ds(e,1);if(n!==null){var i=Zr();Li(n,e,1,i)}}),Y_(e,1)}};v_=function(e){if(e.tag===13){var t=ds(e,134217728);if(t!==null){var r=Zr();Li(t,e,134217728,r)}Y_(e,134217728)}};iM=function(e){if(e.tag===13){var t=xo(e),r=ds(e,t);if(r!==null){var n=Zr();Li(r,e,t,n)}Y_(e,t)}};aM=function(){return ht};sM=function(e,t){var r=ht;try{return ht=e,t()}finally{ht=r}};TB=function(e,t,r){switch(t){case"input":if(CB(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=qy(n);if(!i)throw Error(re(90));QQ(n),CB(n,i)}}}break;case"textarea":RQ(e,r);break;case"select":t=r.value,t!=null&&bc(e,!!r.multiple,t,!1)}};WQ=V_;GQ=Kl;var _z={usingClientEntryPoint:!1,Events:[rp,Ac,qy,KQ,VQ,V_]},yd={findFiberByHostInstance:pl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ez={bundleType:yd.bundleType,version:yd.version,rendererPackageName:yd.rendererPackageName,rendererConfig:yd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:bs.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=YQ(e),e===null?null:e.stateNode},findFiberByHostInstance:yd.findFiberByHostInstance||Cz,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lm.isDisabled&&lm.supportsFiber)try{Vy=lm.inject(Ez),pa=lm}catch{}}Kn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_z;Kn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!J_(t))throw Error(re(200));return Bz(e,t,null,r)};Kn.createRoot=function(e,t){if(!J_(e))throw Error(re(299));var r=!1,n="",i=SR;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=q_(e,1,!1,null,null,r,!1,n,i),e[us]=t.current,Kf(e.nodeType===8?e.parentNode:e),new X_(t)};Kn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(re(188)):(e=Object.keys(e).join(","),Error(re(268,e)));return e=YQ(t),e=e===null?null:e.stateNode,e};Kn.flushSync=function(e){return Kl(e)};Kn.hydrate=function(e,t,r){if(!ix(t))throw Error(re(200));return ax(null,e,t,!0,r)};Kn.hydrateRoot=function(e,t,r){if(!J_(e))throw Error(re(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",s=SR;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=ER(t,null,e,1,r??null,i,!1,a,s),e[us]=t.current,Kf(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new nx(t)};Kn.render=function(e,t,r){if(!ix(t))throw Error(re(200));return ax(null,e,t,!1,r)};Kn.unmountComponentAtNode=function(e){if(!ix(e))throw Error(re(40));return e._reactRootContainer?(Kl(function(){ax(null,null,e,!1,function(){e._reactRootContainer=null,e[us]=null})}),!0):!1};Kn.unstable_batchedUpdates=V_;Kn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!ix(r))throw Error(re(200));if(e==null||e._reactInternals===void 0)throw Error(re(38));return ax(e,t,r,!1,n)};Kn.version="18.3.1-next-f1338f8080-20240426";function NR(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(NR)}catch(e){console.error(e)}}NR(),NQ.exports=Kn;var aA=NQ.exports;const OR=nt(aA);var TR,XO=aA;TR=XO.createRoot,XO.hydrateRoot;var Sz=typeof Element<"u",Nz=typeof Map=="function",Oz=typeof Set=="function",Tz=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function gg(e,t){if(e===t)return!0;
40if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!gg(e[n],t[n]))return!1;return!0}var a;if(Nz&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!gg(n.value[1],t.get(n.value[0])))return!1;return!0}if(Oz&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Tz&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;if(Sz&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((i[n]==="_owner"||i[n]==="__v"||i[n]==="__o")&&e.$$typeof)&&!gg(e[i[n]],t[i[n]]))return!1;return!0}return e!==e&&t!==t}var Fz=function(t,r){try{return gg(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Pz=nt(Fz);var kz=function(e,t,r,n,i,a,s,l){if(!e){var A;if(t===void 0)A=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,a,s,l],u=0;A=new Error(t.replace(/%s/g,function(){return c[u++]})),A.name="Invariant Violation"}throw A.framesToPop=1,A}},Iz=kz;const JO=nt(Iz);var Uz=function(t,r,n,i){var a=n?n.call(i,t,r):void 0;if(a!==void 0)return!!a;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var s=Object.keys(t),l=Object.keys(r);if(s.length!==l.length)return!1;for(var A=Object.prototype.hasOwnProperty.bind(r),c=0;c<s.length;c++){var u=s[c];if(!A(u))return!1;var d=t[u],f=r[u];if(a=n?n.call(i,d,f,u):void 0,a===!1||a===void 0&&d!==f)return!1}return!0};const Qz=nt(Uz);var FR=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(FR||{}),U0={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},ZO=Object.values(FR),Z_={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Mz=Object.entries(Z_).reduce((e,[t,r])=>(e[r]=t,e),{}),Ri="data-rh",Sc={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Nc=(e,t)=>{for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},Rz=e=>{let t=Nc(e,"title");const r=Nc(e,Sc.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const n=Nc(e,Sc.DEFAULT_TITLE);return t||n||void 0},Dz=e=>Nc(e,Sc.ON_CHANGE_CLIENT_STATE)||(()=>{}),Q0=(e,t)=>t.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,n)=>({...r,...n}),{}),Lz=(e,t)=>t.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,n)=>{if(!r.length){const i=Object.keys(n);for(let a=0;a<i.length;a+=1){const l=i[a].toLowerCase();if(e.indexOf(l)!==-1&&n[l])return r.concat(n)}}return r},[]),$z=e=>console&&typeof console.warn=="function"&&console.warn(e),xd=(e,t,r)=>{const n={};return r.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&$z(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,a)=>{const s={};a.filter(A=>{let c;const u=Object.keys(A);for(let f=0;f<u.length;f+=1){const h=u[f],m=h.toLowerCase();t.indexOf(m)!==-1&&!(c==="rel"&&A[c].toLowerCase()==="canonical")&&!(m==="rel"&&A[m].toLowerCase()==="stylesheet")&&(c=m),t.indexOf(h)!==-1&&(h==="innerHTML"||h==="cssText"||h==="itemprop")&&(c=h)}if(!c||!A[c])return!1;const d=A[c].toLowerCase();return n[c]||(n[c]={}),s[c]||(s[c]={}),n[c][d]?!1:(s[c][d]=!0,!0)}
40).reverse().forEach(A=>i.push(A));const l=Object.keys(s);for(let A=0;A<l.length;A+=1){const c=l[A],u={...n[c],...s[c]};n[c]=u}return i},[]).reverse()},Hz=(e,t)=>{if(Array.isArray(e)&&e.length){for(let r=0;r<e.length;r+=1)if(e[r][t])return!0}return!1},Kz=e=>({baseTag:Lz(["href"],e),bodyAttributes:Q0("bodyAttributes",e),defer:Nc(e,Sc.DEFER),encode:Nc(e,Sc.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Q0("htmlAttributes",e),linkTags:xd("link",["rel","href"],e),metaTags:xd("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:xd("noscript",["innerHTML"],e),onChangeClientState:Dz(e),scriptTags:xd("script",["src","innerHTML"],e),styleTags:xd("style",["cssText"],e),title:Rz(e),titleAttributes:Q0("titleAttributes",e),prioritizeSeoTags:Hz(e,Sc.PRIORITIZE_SEO_TAGS)}),PR=e=>Array.isArray(e)?e.join(""):e,Vz=(e,t)=>{const r=Object.keys(e);for(let n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1},M0=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(Vz(n,t)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:e,priority:[]},eT=(e,t)=>({...e,[t]:void 0}),Wz=["noscript","script","style"],cC=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),kR=e=>Object.keys(e).reduce((t,r)=>{const n=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${n}`:n},""),Gz=(e,t,r,n)=>{const i=kR(r),a=PR(t);return i?`<${e} ${Ri}="true" ${i}>${cC(a,n)}</${e}>`:`<${e} ${Ri}="true">${cC(a,n)}</${e}>`},zz=(e,t,r=!0)=>t.reduce((n,i)=>{const a=i,s=Object.keys(a).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const d=typeof a[u]>
40"u"?u:`${u}="${cC(a[u],r)}"`;return c?`${c} ${d}`:d},""),l=a.innerHTML||a.cssText||"",A=Wz.indexOf(e)===-1;return`${n}<${e} ${Ri}="true" ${s}${A?"/>":`>${l}</${e}>`}`},""),IR=(e,t={})=>Object.keys(e).reduce((r,n)=>{const i=Z_[n];return r[i||n]=e[n],r},t),qz=(e,t,r)=>{const n={key:t,[Ri]:!0},i=IR(r,n);return[S.createElement("title",i,t)]},vg=(e,t)=>t.map((r,n)=>{const i={key:n,[Ri]:!0};return Object.keys(r).forEach(a=>{const l=Z_[a]||a;if(l==="innerHTML"||l==="cssText"){const A=r.innerHTML||r.cssText;i.dangerouslySetInnerHTML={__html:A}}else i[l]=r[a]}),S.createElement(e,i)}),Xn=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>qz(e,t.title,t.titleAttributes),toString:()=>Gz(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>IR(t),toString:()=>kR(t)};default:return{toComponent:()=>vg(e,t),toString:()=>zz(e,t,r)}}},Yz=({metaTags:e,linkTags:t,scriptTags:r,encode:n})=>{const i=M0(e,U0.meta),a=M0(t,U0.link),s=M0(r,U0.script);return{priorityMethods:{toComponent:()=>[...vg("meta",i.priority),...vg("link",a.priority),...vg("script",s.priority)],toString:()=>`${Xn("meta",i.priority,n)} ${Xn("link",a.priority,n)} ${Xn("script",s.priority,n)}`},metaTags:i.default,linkTags:a.default,scriptTags:s.default}},Xz=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:i,noscriptTags:a,styleTags:s,title:l="",titleAttributes:A,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:f}=e,h={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:h,linkTags:u,metaTags:d,scriptTags:f}=Yz(e)),{priority:h,base:Xn("base",t,n),bodyAttributes:Xn("bodyAttributes",r,n),htmlAttributes:Xn("htmlAttributes",i,n),link:Xn("link",u,n),meta:Xn("meta",d,n),noscript:Xn("noscript",a,n),script:Xn("script",f,n),style:Xn("style",s,n),title:Xn("title",{title:l,titleAttributes:A},n)}},uC=Xz,Am=[],UR=!!(typeof window<"u"&&window.document&&window.document.createElement),dC=class{constructor(e,t){Qa(this,"instances",[]);Qa(this,"canUseDOM",UR);Qa(this,"context");Qa(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Am:this.instances,add:e=>{(this.canUseDOM?Am:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Am:this.instances).indexOf(e);(this.canUseDOM?Am:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=uC({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Jz={},QR=S.createContext(Jz),jl,MR=(jl=class extends w.Component{constructor(r){super(r);Qa(this,"helmetData");this.helmetData=new dC(this.props.context||{},jl.canUseDOM)}render(){return S.createElement(QR.Provider,{value:this.helmetData.value},this.props.children)}},Qa(jl,"canUseDOM",UR),jl),BA=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${Ri}]`),i=[].slice.call(n),a=[];let s;return t&&t.length&&t.forEach(l=>{const A=document.createElement(e);for(const c in l)if(Object.prototype.hasOwnProperty.call(l,c))if(c==="innerHTML")A.innerHTML=l.innerHTML;else if(c==="cssText")A.styleSheet?A.styleSheet.cssText=l.cssText:A.appendChild(document.createTextNode(l.cssText));else{const u=c,d=typeof l[u]>"u"?"":l[u];A.setAttribute(c,d)}A.setAttribute(Ri,"true"),i.some((c,u)=>(s=u,A.isEqualNode(c)))?i.splice(s,1):a.push(A)}),i.forEach(l=>{var A;return(A=l.parentNode)==null?void 0:A.removeChild(l)}),a.forEach(l=>r.appendChild(l)),{oldTags:i,newTags:a}},fC=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const n=r.getAttribute(Ri),i=n?n.split(","):[],a=[...i],s=Object.keys(t);for(const l of s){const A=t[l]||"";r.getAttribute(l)!==A&&r.setAttribute(l,A),i.indexOf(l)===-1&&i.push(l);const c=a.indexOf(l);c!==-1&&a.splice(c,1)}for(let l=a.length-1;l>=0;l-=1)r.removeAttribute(a[l]);i.length===a.length?r.removeAttribute(Ri):r.getAttribute(Ri)!==s.join(",")&&r.setAttribute(Ri,s.join(","))},Zz=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=PR(e)),fC("title",t)},tT=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:i,linkTags:a,metaTags:s,noscriptTags:l,onChangeClientState:A,scriptTags:c,styleTags:u,title:d,titleAttributes:f}=e;fC("body",n),fC("html",i),Zz(d,f);const h={baseTag:BA("base",r),linkTags:BA("link",a),metaTags:BA("meta",s),noscriptTags:BA("noscript",l),scriptTags:BA("script",c),styleTags:BA("style",u)},m={},p={};
40Object.keys(h).forEach(v=>{const{newTags:x,oldTags:g}=h[v];x.length&&(m[v]=x),g.length&&(p[v]=h[v].oldTags)}),t&&t(),A(e,m,p)},wd=null,e9=e=>{wd&&cancelAnimationFrame(wd),e.defer?wd=requestAnimationFrame(()=>{tT(e,()=>{wd=null})}):(tT(e),wd=null)},t9=e9,rT=class extends w.Component{constructor(){super(...arguments);Qa(this,"rendered",!1)}shouldComponentUpdate(t){return!Qz(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:r}=this.props.context;let n=null;const i=Kz(t.get().map(a=>{const s={...a.props};return delete s.context,s}));MR.canUseDOM?t9(i):uC&&(n=uC(i)),r(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},gB,r9=(gB=class extends w.Component{shouldComponentUpdate(e){return!Pz(eT(this.props,"helmetData"),eT(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,r,n){return{...t,[e.type]:[...t[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,t,r,n){switch(e.type){case"title":return{...t,[e.type]:n,titleAttributes:{...r}};case"body":return{...t,bodyAttributes:{...r}};case"html":return{...t,htmlAttributes:{...r}};default:return{...t,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,t){let r={...t};return Object.keys(e).forEach(n=>{r={...r,[n]:e[n]}}),r}warnOnInvalidChildren(e,t){return JO(ZO.some(r=>e.type===r),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${ZO.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),JO(!t||typeof t=="string"||Array.isArray(t)&&!t.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let r={};return S.Children.forEach(e,n=>{if(!n||!n.props)return;const{children:i,...a}=n.props,s=Object.keys(a).reduce((A,c)=>(A[Mz[c]||c]=a[c],A),{});let{type:l}=n;
40switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(n,i),l){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(n,r,s,i);break;default:t=this.mapObjectTypeChildren(n,t,s,i);break}}),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:n}=t;if(e&&(r=this.mapChildrenToProps(e,r)),n&&!(n instanceof dC)){const i=n;n=new dC(i.context,!0),delete r.helmetData}return n?S.createElement(rT,{...r,context:n.value}):S.createElement(QR.Consumer,null,i=>S.createElement(rT,{...r,context:i}))}},Qa(gB,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),gB);const n9=1,i9=1e6;let R0=0;function a9(){return R0=(R0+1)%Number.MAX_SAFE_INTEGER,R0.toString()}const D0=new Map,nT=e=>{if(D0.has(e))return;const t=setTimeout(()=>{D0.delete(e),vf({type:"REMOVE_TOAST",toastId:e})},i9);D0.set(e,t)},s9=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,n9)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?nT(r):e.toasts.forEach(n=>{nT(n.id)}),{...e,toasts:e.toasts.map(n=>
vendor: 13,906 bytes, line 40
40n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},yg=[];let xg={toasts:[]};function vf(e){xg=s9(xg,e),yg.forEach(t=>{t(xg)})}function be({...e}){const t=a9(),r=i=>vf({type:"UPDATE_TOAST",toast:{...i,id:t}}),n=()=>vf({type:"DISMISS_TOAST",toastId:t});return vf({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||n()}}}),{id:t,dismiss:n,update:r}}function ip(){const[e,t]=w.useState(xg);return w.useEffect(()=>(yg.push(t),()=>{const r=yg.indexOf(t);r>-1&&yg.splice(r,1)}),[e]),{...e,toast:be,dismiss:r=>vf({type:"DISMISS_TOAST",toastId:r})}}function Ae(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function iT(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function sx(...e){return t=>{let r=!1;const n=e.map(i=>{const a=iT(i,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():iT(e[i],null)}}}}function ze(...e){return w.useCallback(sx(...e),e)}function o9(e,t){const r=w.createContext(t),n=a=>{const{children:s,...l}=a,A=w.useMemo(()=>l,Object.values(l));return o.jsx(r.Provider,{value:A,children:s})};n.displayName=e+"Provider";function i(a){const s=w.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,i]}function rn(e,t=[]){let r=[];function n(a,s){const l=w.createContext(s),A=r.length;r=[...r,s];const c=d=>{var x;const{scope:f,children:h,...m}=d,p=((x=f==null?void 0:f[e])==null?void 0:x[A])||l,v=w.useMemo(()=>m,Object.values(m));return o.jsx(p.Provider,{value:v,children:h})};c.displayName=a+"Provider";function u(d,f){var p;const h=((p=f==null?void 0:f[e])==null?void 0:p[A])||l,m=w.useContext(h);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[c,u]}const i=()=>{const a=r.map(s=>w.createContext(s));return function(l){const A=(l==null?void 0:l[e])||a;return w.useMemo(()=>({[`__scope${e}`]:{...l,[e]:A}}),[l,A])}};return i.scopeName=e,[n,l9(i,...t)]}function l9(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const s=n.reduce((l,{useScope:A,scopeName:c})=>{const d=A(a)[`__scope${c}`];return{...l,...d}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function No(e){const t=A9(e),r=w.forwardRef((n,i)=>{const{children:a,...s}=n,l=w.Children.toArray(a),A=l.find(u9);if(A){const c=A.props.children,u=l.map(d=>d===A?w.Children.count(c)>1?w.Children.only(null):w.isValidElement(c)?c.props.children:null:d);return o.jsx(t,{...s,ref:i,children:w.isValidElement(c)?w.cloneElement(c,void 0,u):null})}return o.jsx(t,{...s,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var eE=No("Slot");function A9(e){const t=w.forwardRef((r,n)=>{const{children:i,...a}=r;if(w.isValidElement(i)){const s=f9(i),l=d9(a,i.props);return i.type!==w.Fragment&&(l.ref=n?sx(n,s):s),w.cloneElement(i,l)}return w.Children.count(i)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var RR=Symbol("radix.slottable");function c9(e){const t=({children:r})=>o.jsx(o.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=RR,t}function u9(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===RR}function d9(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...l)=>{const A=a(...l);return i(...l),A}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function f9(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function ap(e){const t=e+"CollectionProvider",[r,n]=rn(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:v,children:x}=p,g=S.useRef(null),y=S.useRef(new Map).current;return o.jsx(i,{scope:v,itemMap:y,collectionRef:g,children:x})};s.displayName=t;const l=e+"CollectionSlot",A=No(l),c=S.forwardRef((p,v)=>{const{scope:x,children:g}=p,y=a(l,x),B=ze(v,y.collectionRef);return o.jsx(A,{ref:B,children:g})});c.displayName=l;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=No(u),h=S.forwardRef((p,v)=>{const{scope:x,children:g,...y}=p,B=S.useRef(null),b=ze(v,B),C=a(u,x);return S.useEffect(()=>(C.itemMap.set(B,{ref:B,...y}),()=>void C.itemMap.delete(B))),o.jsx(f,{[d]:"",ref:b,children:g})});h.displayName=u;function m(p){const v=a(e+"CollectionConsumer",p);return S.useCallback(()=>{const g=v.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((C,j)=>y.indexOf(C.ref.current)-y.indexOf(j.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:c,ItemSlot:h},m,n]}var h9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Oe=h9.reduce((e,t)=>{const r=No(`Primitive.${t}`),n=w.forwardRef((i,a)=>{const{asChild:s,...l}=i,A=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),o.jsx(A,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function tE(e,t){e&&aA.flushSync(()=>e.dispatchEvent(t))}function wn(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function p9(e,t=globalThis==null?void 0:globalThis.document){const r=wn(e);w.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var m9="DismissableLayer",hC="dismissableLayer.update",g9="dismissableLayer.pointerDownOutside",v9="dismissableLayer.focusOutside",aT,DR=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sA=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...A}=e,c=w.useContext(DR),[u,d]=w.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=w.useState({}),m=ze(t,j=>d(j)),p=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(v),g=u?p.indexOf(u):-1,y=c.layersWithOutsidePointerEventsDisabled.size>0,B=g>=x,b=x9(j=>{const _=j.target,E=[...c.branches].some(I=>I.contains(_));!B||E||(i==null||i(j),s==null||s(j),j.defaultPrevented||l==null||l())},f),C=w9(j=>{const _=j.target;[...c.branches].some(I=>I.contains(_))||(a==null||a(j),s==null||s(j),j.defaultPrevented||l==null||l())},f);return p9(j=>{g===c.layers.size-1&&(n==null||n(j),!j.defaultPrevented&&l&&(j.preventDefault(),l()))},f),w.useEffect(()=>{if(u)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(aT=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),sT(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=aT)}},[u,f,r,c]),w.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),sT())},[u,c]),w.useEffect(()=>{const j=()=>h({});return document.addEventListener(hC,j),()=>document.removeEventListener(hC,j)},[]),o.jsx(Oe.div,{...A,ref:m,style:{pointerEvents:y?B?"auto":"none":void 0,...e.style},onFocusCapture:Ae(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Ae(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Ae(e.onPointerDownCapture,b.onPointerDownCapture)})});sA.displayName=m9;var y9="DismissableLayerBranch",LR=w.forwardRef((e,t)=>{const r=w.useContext(DR),n=w.useRef(null),i=ze(t,n);return w.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),o.jsx(Oe.div,{...e,ref:i})});LR.displayName=y9;function x9(e,t=globalThis==null?void 0:globalThis.document){const r=wn(e),n=w.useRef(!1),i=w.useRef(()=>{});return w.useEffect(()=>{const a=l=>{if(l.target&&!n.current){let A=function(){$R(g9,r,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=A,t.addEventListener("click",i.current,{once:!0})):A()}else t.removeEventListener("click",i.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function w9(e,t=globalThis==null?void 0:globalThis.document){const r=wn(e),n=w.useRef(!1);return w.useEffect(()=>{const i=a=>{a.target&&!n.current&&$R(v9,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function sT(){const e=new CustomEvent(hC);document.dispatchEvent(e)}function $R(e,t,r,{discrete:n}){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?tE(i,a):i.dispatchEvent(a)}var b9=sA,B9=LR,wr=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},C9="Portal",$u=w.forwardRef((e,t)=>{var l;const{container:r,...n}=e,[i,a]=w.useState(!1);wr(()=>a(!0),[]);const s=r||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?OR.createPortal(o.jsx(Oe.div,{...n,ref:t}),s):null});$u.displayName=C9;function j9(e,t){return w.useReducer((r,n)=>t[r][n]??r,e)}var bn=e=>{const{present:t,children:r}=e,n=_9(t),i=typeof r=="function"?r({present:n.isPresent}):w.Children.only(r),a=ze(n.ref,E9(i));return typeof r=="function"||n.isPresent?w.cloneElement(i,{ref:a}):null};bn.displayName="Presence";function _9(e){const[t,r]=w.useState(),n=w.useRef(null),i=w.useRef(e),a=w.useRef("none"),s=e?"mounted":"unmounted",[l,A]=j9(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const c=cm(n.current);a.current=l==="mounted"?c:"none"},[l]),wr(()=>{const c=n.current,u=i.current;if(u!==e){const f=a.current,h=cm(c);e?A("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?A("UNMOUNT"):A(u&&f!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,A]),wr(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=h=>{const p=cm(n.current).includes(h.animationName);if(h.target===t&&p&&(A("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},f=h=>{h.target===t&&(a.current=cm(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else A("ANIMATION_END")},[t,A]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:w.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function cm(e){return(e==null?void 0:e.animationName)||"none"}function E9(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var S9=l_[" useInsertionEffect ".trim().toString()]||wr;function di({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,a,s]=N9({defaultProp:t,onChange:r}),l=e!==void 0,A=l?e:i;{const u=w.useRef(e!==void 0);w.useEffect(()=>{const d=u.current;d!==l&&console.warn(`${n} is changing from ${d?"controlled":"uncontrolled"} to ${l?"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.`),u.current=l},[l,n])}const c=w.useCallback(u=>{var d;if(l){const f=O9(u)?u(e):u;f!==e&&((d=s.current)==null||d.call(s,f))}else a(u)},[l,e,a,s]);return[A,c]}function N9({defaultProp:e,onChange:t}){const[r,n]=w.useState(e),i=w.useRef(r),a=w.useRef(t);return S9(()=>{a.current=t},[t]),w.useEffect(()=>{var s;i.current!==r&&((s=a.current)==null||s.call(a,r),i.current=r)},[r,i]),[r,n,a]}function O9(e){return typeof e=="function"}var HR=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),T9="VisuallyHidden",ox=w.forwardRef((e,t)=>o.jsx(Oe.span,{...e,ref:t,style:{...HR,...e.style}}));ox.displayName=T9;var F9=ox,rE="ToastProvider",[nE,P9,k9]=ap("Toast"),[KR,k4e]=rn("Toast",[k9]),[I9,lx]=KR(rE),VR=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:a=50,children:s}=e,[l,A]=w.useState(null),[c,u]=w.useState(0),d=w.useRef(!1),f=w.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${rE}\`. Expected non-empty \`string\`.`),o.jsx(nE.Provider,{scope:t,children:o.jsx(I9,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:a,toastCount:c,viewport:l,onViewportChange:A,onToastAdd:w.useCallback(()=>u(h=>h+1),[]),onToastRemove:w.useCallback(()=>u(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};VR.displayName=rE;var WR="ToastViewport",U9=["F8"],pC="toast.viewportPause",mC="toast.viewportResume",GR=w.forwardRef((e,t)=>
40{const{__scopeToast:r,hotkey:n=U9,label:i="Notifications ({hotkey})",...a}=e,s=lx(WR,r),l=P9(r),A=w.useRef(null),c=w.useRef(null),u=w.useRef(null),d=w.useRef(null),f=ze(t,d,s.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),m=s.toastCount>0;w.useEffect(()=>{const v=x=>{var y;n.length!==0&&n.every(B=>x[B]||x.code===B)&&((y=d.current)==null||y.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[n]),w.useEffect(()=>{const v=A.current,x=d.current;if(m&&v&&x){const g=()=>{if(!s.isClosePausedRef.current){const C=new CustomEvent(pC);x.dispatchEvent(C),s.isClosePausedRef.current=!0}},y=()=>{if(s.isClosePausedRef.current){const C=new CustomEvent(mC);x.dispatchEvent(C),s.isClosePausedRef.current=!1}},B=C=>{!v.contains(C.relatedTarget)&&y()},b=()=>{v.contains(document.activeElement)||y()};return v.addEventListener("focusin",g),v.addEventListener("focusout",B),v.addEventListener("pointermove",g),v.addEventListener("pointerleave",b),window.addEventListener("blur",g),window.addEventListener("focus",y),()=>{v.removeEventListener("focusin",g),v.removeEventListener("focusout",B),v.removeEventListener("pointermove",g),v.removeEventListener("pointerleave",b),window.removeEventListener("blur",g),window.removeEventListener("focus",y)}}},[m,s.isClosePausedRef]);const p=w.useCallback(({tabbingDirection:v})=>{const g=l().map(y=>{const B=y.ref.current,b=[B,...q9(B)];return v==="forwards"?b:b.reverse()});return(v==="forwards"?g.reverse():g).flat()},[l]);return w.useEffect(()=>{const v=d.current;if(v){const x=g=>{var b,C,j;const y=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!y){const _=document.activeElement,E=g.shiftKey;if(g.target===v&&E){(b=c.current)==null||b.focus();return}const k=p({tabbingDirection:E?"backwards":"forwards"}),N=k.findIndex(F=>F===_);L0(k.slice(N+1))?g.preventDefault():E?(C=c.current)==null||C.focus():(j=u.current)==null||j.focus()}};return v.addEventListener("keydown",x),()=>v.removeEventListener("keydown",x)}},[l,p]),o.jsxs(B9,{ref:A,role:"region","aria-label":i.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:m?void 0:"none"},children:[m&&o.jsx(gC,{ref:c,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"forwards"});L0(v)}}),o.jsx(nE.Slot,{scope:r,children:o.jsx(Oe.ol,{tabIndex:-1,...a,ref:f})}),m&&o.jsx(gC,{ref:u,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"backwards"});L0(v)}})]})});GR.displayName=WR;var zR="ToastFocusProxy",gC=w.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...i}=e,a=lx(zR,r);return o.jsx(ox,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:s=>{var c;const l=s.relatedTarget;!((c=a.viewport)!=null&&c.contains(l))&&n()}})});gC.displayName=zR;var sp="Toast",Q9="toast.swipeStart",M9="toast.swipeMove",R9="toast.swipeCancel",D9="toast.swipeEnd",qR=w.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:i,onOpenChange:a,...s}=e,[l,A]=di({prop:n,defaultProp:i??!0,onChange:a,caller:sp});return o.jsx(bn,{present:r||l,children:o.jsx(H9,{open:l,...s,ref:t,onClose:()=>A(!1),onPause:wn(e.onPause),onResume:wn(e.onResume),onSwipeStart:Ae(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ae(e.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Ae(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ae(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),A(!1)})})})});qR.displayName=sp;var[L9,$9]=KR(sp,{onClose(){}}),H9=w.forwardRef((e,t)=>
40{const{__scopeToast:r,type:n="foreground",duration:i,open:a,onClose:s,onEscapeKeyDown:l,onPause:A,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:h,...m}=e,p=lx(sp,r),[v,x]=w.useState(null),g=ze(t,F=>x(F)),y=w.useRef(null),B=w.useRef(null),b=i||p.duration,C=w.useRef(0),j=w.useRef(b),_=w.useRef(0),{onToastAdd:E,onToastRemove:I}=p,T=wn(()=>{var M;(v==null?void 0:v.contains(document.activeElement))&&((M=p.viewport)==null||M.focus()),s()}),k=w.useCallback(F=>{!F||F===1/0||(window.clearTimeout(_.current),C.current=new Date().getTime(),_.current=window.setTimeout(T,F))},[T]);w.useEffect(()=>{const F=p.viewport;if(F){const M=()=>{k(j.current),c==null||c()},O=()=>{const U=new Date().getTime()-C.current;j.current=j.current-U,window.clearTimeout(_.current),A==null||A()};return F.addEventListener(pC,O),F.addEventListener(mC,M),()=>{F.removeEventListener(pC,O),F.removeEventListener(mC,M)}}},[p.viewport,b,A,c,k]),w.useEffect(()=>{a&&!p.isClosePausedRef.current&&k(b)},[a,b,p.isClosePausedRef,k]),w.useEffect(()=>(E(),()=>I()),[E,I]);const N=w.useMemo(()=>v?rD(v):null,[v]);return p.viewport?o.jsxs(o.Fragment,{children:[N&&o.jsx(K9,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:N}),o.jsx(L9,{scope:r,onClose:T,children:aA.createPortal(o.jsx(nE.ItemSlot,{scope:r,children:o.jsx(b9,{asChild:!0,onEscapeKeyDown:Ae(l,()=>{p.isFocusedToastEscapeKeyDownRef.current||T(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:o.jsx(Oe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":p.swipeDirection,...m,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ae(e.onKeyDown,F=>{F.key==="Escape"&&(l==null||l(F.nativeEvent),F.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,T()))}),onPointerDown:Ae(e.onPointerDown,F=>{F.button===0&&(y.current={x:F.clientX,y:F.clientY})}),onPointerMove:Ae(e.onPointerMove,F=>{if(!y.current)return;const M=F.clientX-y.current.x,O=F.clientY-y.current.y,U=!!B.current,P=["left","right"].includes(p.swipeDirection),Q=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,$=P?Q(0,M):0,G=P?0:Q(0,O),K=F.pointerType==="touch"?10:2,X={x:$,y:G},ae={originalEvent:F,delta:X};U?(B.current=X,um(M9,d,ae,{discrete:!1})):oT(X,p.swipeDirection,K)?(B.current=X,um(Q9,u,ae,{discrete:!1}),F.target.setPointerCapture(F.pointerId)):(Math.abs(M)>K||Math.abs(O)>K)&&(y.current=null)}),onPointerUp:Ae(e.onPointerUp,F=>{const M=B.current,O=F.target;if(O.hasPointerCapture(F.pointerId)&&O.releasePointerCapture(F.pointerId),B.current=null,y.current=null,M){const U=F.currentTarget,P={originalEvent:F,delta:M};oT(M,p.swipeDirection,p.swipeThreshold)?um(D9,h,P,{discrete:!0}):um(R9,f,P,{discrete:!0}),U.addEventListener("click",Q=>Q.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),K9=e=>{const{__scopeToast:t,children:r,...n}=e,i=lx(sp,t),[a,s]=w.useState(!1),[l,A]=w.useState(!1);return G9(()=>s(!0)),w.useEffect(()=>{const c=window.setTimeout(()=>A(!0),1e3);return()=>window.clearTimeout(c)},[]),l?null:o.jsx($u,{asChild:!0,children:o.jsx(ox,{...n,children:a&&o.jsxs(o.Fragment,{children:[i.label," ",r]})})})},V9="ToastTitle",YR=w.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return o.jsx(Oe.div,{...n,ref:t})});YR.displayName=V9;var W9="ToastDescription",XR=w.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return o.jsx(Oe.div,{...n,ref:t})});XR.displayName=W9;var JR="ToastAction",ZR=w.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?o.jsx(tD,{altText:r,asChild:!0,children:o.jsx(iE,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${JR}\`. Expected non-empty \`string\`.`),null)});ZR.displayName=JR;var eD="ToastClose",iE=w.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,i=$9(eD,r);return o.jsx(tD,{asChild:!0,children:o.jsx(Oe.button,{type:"button",...n,ref:t,onClick:Ae(e.onClick,i.onClose)})})});iE.displayName=eD;var tD=w.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...i}=e;return o.jsx(Oe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...i,ref:t})});function rD(e){const t=[];
vendor: 13,255 bytes, lines 40-194
40return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),z9(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",a=n.dataset.radixToastAnnounceExclude==="";if(!i)if(a){const s=n.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...rD(n))}}),t}function um(e,t,r,{discrete:n}){const i=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?tE(i,a):i.dispatchEvent(a)}var oT=(e,t,r=0)=>{const n=Math.abs(e.x),i=Math.abs(e.y),a=n>i;return t==="left"||t==="right"?a&&n>r:!a&&i>r};function G9(e=()=>{}){const t=wn(e);wr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function z9(e){return e.nodeType===e.ELEMENT_NODE}function q9(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function L0(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var Y9=VR,nD=GR,iD=qR,aD=YR,sD=XR,oD=ZR,lD=iE;function AD(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=AD(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ve(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=AD(e))&&(n&&(n+=" "),n+=t);return n}const lT=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,AT=Ve,op=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return AT(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:a}=t,s=Object.keys(i).map(c=>{const u=r==null?void 0:r[c],d=a==null?void 0:a[c];if(u===null)return null;const f=lT(u)||lT(d);return i[c][f]}),l=r&&Object.entries(r).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),A=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:d,className:f,...h}=u;return Object.entries(h).every(m=>{let[p,v]=m;return Array.isArray(v)?v.includes({...a,...l}[p]):{...a,...l}[p]===v})?[...c,d,f]:c},[]);return AT(e,s,A,r==null?void 0:r.class,r==null?void 0:r.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const X9=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),cD=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/** 46 * @license lucide-react v0.462.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var J9={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"};/** 51 * @license lucide-react v0.462.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const Z9=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:s,...l},A)=>w.createElement("svg",{ref:A,...J9,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:cD("lucide",i),...l},[...s.map(([c,u])=>w.createElement(c,u)),...Array.isArray(a)?a:[a]]));/** 56 * @license lucide-react v0.462.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const Pe=(e,t)=>{const r=w.forwardRef(({className:n,...i},a)=>w.createElement(Z9,{ref:a,iconNode:t,className:cD(`lucide-${X9(e)}`,n),...i}));return r.displayName=`${e}`,r};/** 61 * @license lucide-react v0.462.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const Bs=Pe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const Zf=Pe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 71 * @license lucide-react v0.462.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const aE=Pe("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 76 * @license lucide-react v0.462.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const e7=Pe("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/** 81 * @license lucide-react v0.462.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const ao=Pe("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"}]]);/** 86 * @license lucide-react v0.462.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const t7=Pe("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 91 * @license lucide-react v0.462.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const Yn=Pe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 96 * @license lucide-react v0.462.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const sE=Pe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 101 * @license lucide-react v0.462.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const r7=Pe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 106 * @license lucide-react v0.462.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const Ax=Pe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 111 * @license lucide-react v0.462.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const n7=Pe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 116 * @license lucide-react v0.462.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const bd=Pe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 121 * @license lucide-react v0.462.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const Bd=Pe("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"}]]);/** 126 * @license lucide-react v0.462.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const i7=Pe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 131 * @license lucide-react v0.462.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const so=Pe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 136 * @license lucide-react v0.462.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const a7=Pe("Coffee",[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]]);/** 141 * @license lucide-react v0.462.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const lp=Pe("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** 146 * @license lucide-react v0.462.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const eu=Pe("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"}]]);/** 151 * @license lucide-react v0.462.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const s7=Pe("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/** 156 * @license lucide-react v0.462.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const wg=Pe("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 161 * @license lucide-react v0.462.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const cT=Pe("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 166 * @license lucide-react v0.462.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const o7=Pe("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 171 * @license lucide-react v0.462.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const cx=Pe("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 176 * @license lucide-react v0.462.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const vC=Pe("FolderKanban",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]]);/** 181 * @license lucide-react v0.462.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const l7=Pe("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** 186 * @license lucide-react v0.462.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const A7=Pe("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);/** 191 * @license lucide-react v0.462.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree.
195 */const uD=Pe("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"}]]);/** 196 * @license lucide-react v0.462.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const kl=Pe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 201 * @license lucide-react v0.462.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const uT=Pe("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"}]]);/** 206 * @license lucide-react v0.462.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const c7=Pe("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 211 * @license lucide-react v0.462.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const u7=Pe("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"}]]);/** 216 * @license lucide-react v0.462.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const d7=Pe("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"}]]);/** 221 * @license lucide-react v0.462.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const f7=Pe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** 226 * @license lucide-react v0.462.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const h7=Pe("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/** 231 * @license lucide-react v0.462.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree. 235 */const p7=Pe("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"}]]);/** 236 * @license lucide-react v0.462.0 - ISC 237 * 238 * This source code is licensed under the ISC license. 239 * See the LICENSE file in the root directory of this source tree. 240 */const m7=Pe("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 241 * @license lucide-react v0.462.0 - ISC 242 * 243 * This source code is licensed under the ISC license. 244 * See the LICENSE file in the root directory of this source tree. 245 */const yn=Pe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 246 * @license lucide-react v0.462.0 - ISC 247 * 248 * This source code is licensed under the ISC license. 249 * See the LICENSE file in the root directory of this source tree. 250 */const g7=Pe("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/** 251 * @license lucide-react v0.462.0 - ISC 252 * 253 * This source code is licensed under the ISC license. 254 * See the LICENSE file in the root directory of this source tree. 255 */const dD=Pe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 256 * @license lucide-react v0.462.0 - ISC 257 * 258 * This source code is licensed under the ISC license. 259 * See the LICENSE file in the root directory of this source tree. 260 */const yC=Pe("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/** 261 * @license lucide-react v0.462.0 - ISC 262 * 263 * This source code is licensed under the ISC license. 264 * See the LICENSE file in the root directory of this source tree. 265 */const v7=Pe("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"}]]);/** 266 * @license lucide-react v0.462.0 - ISC 267 * 268 * This source code is licensed under the ISC license. 269 * See the LICENSE file in the root directory of this source tree. 270 */const oE=Pe("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"}]]);/** 271 * @license lucide-react v0.462.0 - ISC 272 * 273 * This source code is licensed under the ISC license. 274 * See the LICENSE file in the root directory of this source tree. 275 */const fD=Pe("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/** 276 * @license lucide-react v0.462.0 - ISC 277 * 278 * This source code is licensed under the ISC license. 279 * See the LICENSE file in the root directory of this source tree. 280 */const y7=Pe("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/** 281 * @license lucide-react v0.462.0 - ISC 282 * 283 * This source code is licensed under the ISC license. 284 * See the LICENSE file in the root directory of this source tree. 285 */const x7=Pe("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** 286 * @license lucide-react v0.462.0 - ISC 287 * 288 * This source code is licensed under the ISC license. 289 * See the LICENSE file in the root directory of this source tree. 290 */const w7=Pe("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** 291 * @license lucide-react v0.462.0 - ISC 292 * 293 * This source code is licensed under the ISC license. 294 * See the LICENSE file in the root directory of this source tree. 295 */const iv=Pe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
vendor: 9,677 bytes, lines 295-325
295],["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"}]]);/** 296 * @license lucide-react v0.462.0 - ISC 297 * 298 * This source code is licensed under the ISC license. 299 * See the LICENSE file in the root directory of this source tree. 300 */const lE=Pe("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/** 301 * @license lucide-react v0.462.0 - ISC 302 * 303 * This source code is licensed under the ISC license. 304 * See the LICENSE file in the root directory of this source tree. 305 */const ux=Pe("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"}]]);/** 306 * @license lucide-react v0.462.0 - ISC 307 * 308 * This source code is licensed under the ISC license. 309 * See the LICENSE file in the root directory of this source tree. 310 */const b7=Pe("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/** 311 * @license lucide-react v0.462.0 - ISC 312 * 313 * This source code is licensed under the ISC license. 314 * See the LICENSE file in the root directory of this source tree. 315 */const hs=Pe("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"}]]);/** 316 * @license lucide-react v0.462.0 - ISC 317 * 318 * This source code is licensed under the ISC license. 319 * See the LICENSE file in the root directory of this source tree. 320 */const B7=Pe("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/** 321 * @license lucide-react v0.462.0 - ISC 322 * 323 * This source code is licensed under the ISC license. 324 * See the LICENSE file in the root directory of this source tree. 325 */const $i=Pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),AE="-",C7=e=>{const t=_7(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const l=s.split(AE);return l[0]===""&&l.length!==1&&l.shift(),hD(l,t)||j7(s)},getConflictingClassGroupIds:(s,l)=>{const A=r[s]||[];return l&&n[s]?[...A,...n[s]]:A}}},hD=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?hD(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(AE);return(s=t.validators.find(({validator:l})=>l(a)))==null?void 0:s.classGroupId},dT=/^\[(.+)\]$/,j7=e=>{if(dT.test(e)){const t=dT.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},_7=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return S7(Object.entries(e.classGroups),r).forEach(([a,s])=>{xC(s,n,a,t)}),n},xC=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:fT(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(E7(i)){xC(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,s])=>{xC(s,fT(t,a),r,n)})})},fT=(e,t)=>{let r=e;return t.split(AE).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},E7=e=>e.isThemeGetter,S7=(e,t)=>t?e.map(([r,n])=>{const i=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,l])=>[t+s,l])):a);return[r,i]}):e,N7=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return i(a,s),s},set(a,s){r.has(a)?r.set(a,s):i(a,s)}}},pD="!",O7=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],a=t.length,s=l=>{const A=[];let c=0,u=0,d;for(let v=0;v<l.length;v++){let x=l[v];if(c===0){if(x===i&&(n||l.slice(v,v+a)===t)){A.push(l.slice(u,v)),u=v+a;continue}if(x==="/"){d=v;continue}}x==="["?c++:x==="]"&&c--}const f=A.length===0?l:l.substring(u),h=f.startsWith(pD),m=h?f.substring(1):f,p=d&&d>u?d-u:void 0;return{modifiers:A,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:p}};return r?l=>r({className:l,parseClassName:s}):s},T7=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},F7=e=>({cache:N7(e.cacheSize),parseClassName:O7(e),...C7(e)}),P7=/\s+/,k7=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],s=e.trim().split(P7);let l="";for(let A=s.length-1;A>=0;A-=1){const c=s[A],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=r(c);let m=!!h,p=n(m?f.substring(0,h):f);if(!p){if(!m){l=c+(l.length>0?" "+l:l);continue}if(p=n(f),!p){l=c+(l.length>0?" "+l:l);continue}m=!1}const v=T7(u).join(":"),x=d?v+pD:v,g=x+p;if(a.includes(g))continue;a.push(g);const y=i(p,m);for(let B=0;B<y.length;++B){const b=y[B];a.push(x+b)}l=c+(l.length>0?" "+l:l)}return l};function I7(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=mD(t))&&(n&&(n+=" "),n+=r);return n}const mD=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=mD(e[n]))&&(r&&(r+=" "),r+=t);return r};function U7(e,...t){let r,n,i,a=s;function s(A){const c=t.reduce((u,d)=>d(u),e());return r=F7(c),n=r.cache.get,i=r.cache.set,a=l,l(A)}function l(A){const c=n(A);if(c)return c;const u=k7(A,r);return i(A,u),u}return function(){return a(I7.apply(null,arguments))}}const St=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},gD=/^\[(?:([a-z-]+):)?(.+)\]$/i,Q7=/^\d+\/\d+$/,M7=new Set(["px","full","screen"]),R7=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,D7=/\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$/,L7=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$7=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,H7=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ma=e=>Oc(e)||M7.has(e)||Q7.test(e),ks=e=>Hu(e,"length",X7),Oc=e=>!!e&&!Number.isNaN(Number(e)),$0=e=>Hu(e,"number",Oc),Cd=e=>!!e&&Number.isInteger(Number(e)),K7=e=>e.endsWith("%")&&Oc(e.slice(0,-1)),We=e=>gD.test(e),Is=e=>R7.test(e),V7=new Set(["length","size","percentage"]),W7=e=>Hu(e,V7,vD),G7=e=>Hu(e,"position",vD),z7=new Set(["image","url"]),q7=e=>Hu(e,z7,Z7),Y7=e=>Hu(e,"",J7),jd=()=>!0,Hu=(e,t,r)=>{const n=gD.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},X7=e=>D7.test(e)&&!L7.test(e),vD=()=>!1,J7=e=>$7.test(e),Z7=e=>H7.test(e),eq=()=>{const e=St("colors"),t=St("spacing"),r=St("blur"),n=St("brightness"),i=St("borderColor"),a=St("borderRadius"),s=St("borderSpacing"),l=St("borderWidth"),A=St("contrast"),c=St("grayscale"),u=St("hueRotate"),d=St("invert"),f=St("gap"),h=St("gradientColorStops"),m=St("gradientColorStopPositions"),p=St("inset"),v=St("margin"),x=St("opacity"),g=St("padding"),y=St("saturate"),B=St("scale"),b=St("sepia"),C=St("skew"),j=St("space"),_=St("translate"),E=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",We,t],k=()=>[We,t],N=()=>["",Ma,ks],F=()=>["auto",Oc,We],M=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",We],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[Oc,We];return{cacheSize:500,separator:":",theme:{colors:[jd],spacing:[Ma,ks],blur:["none","",Is,We],brightness:G(),borderColor:[e],borderRadius:["none","","full",Is,We],borderSpacing:k(),borderWidth:N(),contrast:G(),grayscale:Q(),hueRotate:G(),invert:Q(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[K7,ks],inset:T(),margin:T(),opacity:G(),padding:k(),saturate:G(),scale:G(),sepia:Q(),skew:G(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",We]}],container:["container"],columns:[{columns:[Is]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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"],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:[...M(),We]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}
vendor: 9,947 bytes, line 325
325],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Cd,We]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",We]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",Cd,We]}],"grid-cols":[{"grid-cols":[jd]}],"col-start-end":[{col:["auto",{span:["full",Cd,We]},We]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[jd]}],"row-start-end":[{row:["auto",{span:[Cd,We]},We]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",We]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",We]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",We,t]}],"min-w":[{"min-w":[We,t,"min","max","fit"]}],"max-w":[{"max-w":[We,t,"none","full","min","max","fit","prose",{screen:[Is]},Is]}],h:[{h:[We,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[We,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[We,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[We,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Is,ks]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$0]}],"font-family":[{font:[jd]}],"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:["tighter","tight","normal","wide","wider","widest",We]}],"line-clamp":[{"line-clamp":["none",Oc,$0]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ma,We]}],"list-image":[{"list-image":["none",We]}],"list-style-type":[{list:["none","disc","decimal",We]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ma,ks]}],"underline-offset":[{"underline-offset":["auto",Ma,We]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",We]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",We]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...M(),G7]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",W7]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},q7]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:O()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[Ma,We]}],"outline-w":[{outline:[Ma,ks]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Ma,ks]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Is,Y7]}],"shadow-color":[{shadow:[jd]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[A]}],"drop-shadow":[{"drop-shadow":["","none",Is,We]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[A]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",We]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",We]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",We]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-x":[{"scale-x":[B]}],"scale-y":[{"scale-y":[B]}],rotate:[{rotate:[Cd,We]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",We]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",We]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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"]}
vendor: 4,647 bytes, line 325
325],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",We]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ma,ks,$0]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},tq=U7(eq);function ce(...e){return tq(Ve(e))}const rq=Y9,yD=w.forwardRef(({className:e,...t},r)=>o.jsx(nD,{ref:r,className:ce("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));yD.displayName=nD.displayName;const nq=op("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),xD=w.forwardRef(({className:e,variant:t,...r},n)=>o.jsx(iD,{ref:n,className:ce(nq({variant:t}),e),...r}));xD.displayName=iD.displayName;const iq=w.forwardRef(({className:e,...t},r)=>o.jsx(oD,{ref:r,className:ce("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));iq.displayName=oD.displayName;const wD=w.forwardRef(({className:e,...t},r)=>o.jsx(lD,{ref:r,className:ce("absolute right-2 top-2 rounded-md p-1 text-foreground
325/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:o.jsx($i,{className:"h-4 w-4"})}));wD.displayName=lD.displayName;const bD=w.forwardRef(({className:e,...t},r)=>o.jsx(aD,{ref:r,className:ce("text-sm font-semibold",e),...t}));bD.displayName=aD.displayName;const BD=w.forwardRef(({className:e,...t},r)=>o.jsx(sD,{ref:r,className:ce("text-sm opacity-90",e),...t}));BD.displayName=sD.displayName;function aq(){const{toasts:e}=ip();return o.jsxs(rq,{children:[e.map(function({id:t,title:r,description:n,action:i,...a}){return o.jsxs(xD,{...a,children:[o.jsxs("div",{className:"grid gap-1",children:[r&&o.jsx(bD,{children:r}),n&&o.jsx(BD,{children:n})]}),i,o.jsx(wD,{})]},t)}),o.jsx(yD,{})]})}var hT=["light","dark"],sq="(prefers-color-scheme: dark)",oq=w.createContext(void 0),lq={setTheme:e=>{},themes:[]},Aq=()=>{var e;return(e=w.useContext(oq))!=null?e:lq};w.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:i,defaultTheme:a,value:s,attrs:l,nonce:A})=>{let c=a==="system",u=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(m=>`'${m}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,d=i?hT.includes(a)&&a?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(m,p=!1,v=!0)=>{let x=s?s[m]:m,g=p?m+"|| ''":`'${x}'`,y="";return i&&v&&!p&&hT.includes(m)&&(y+=`d.style.colorScheme = '${m}';`),r==="class"?p||x?y+=`c.add(${g})`:y+="null":x&&(y+=`d[s](n,${g})`),y},h=e?`!function(){${u}${f(e)}}()`:n?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${sq}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${f(s?"x[e]":"e",!0)}}${c?"":"else{"+f(a,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${f(s?"x[e]":"e",!0)}}else{${f(a,!1,!1)};}${d}}catch(t){}}();`;return w.createElement("script",{nonce:A,dangerouslySetInnerHTML:{__html:h}})});var cq=e=>{switch(e){case"success":return fq;case"info":return pq;case"warning":return hq;case"error":return mq;default:return null}},uq=Array(12).fill(0),dq=({visible:e,className:t})=>S.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},S.createElement("div",{className:"sonner-spinner"},uq.map((r,n)=>S.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),fq=S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},S.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),hq=S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},S.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),pq=S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},S.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),mq=S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},S.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),gq=S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},S.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),S.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),vq=()=>{let[e,t]=S.useState(document.hidden);return S.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},wC=1,yq=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
vendor: 1,050 bytes, line 325
325{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:wC++,a=this.toasts.find(l=>l.id===i),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),a?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...e,id:i,title:r}),{...l,...e,id:i,dismissible:s,title:r}):l):this.addToast({title:r,...n,dismissible:s,id:i}),i},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
325this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),i=r!==void 0,a,s=n.then(async A=>{if(a=["resolve",A],S.isValidElement(A))i=!1,this.create({id:r,type:"default",message:A});else if(wq(A)&&!A.ok){i=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${A.status}`):t.error,u=typeof t.description=="function"?await t.description(`HTTP error! status: ${A.status}`):t.description;this.create({id:r,type:"error",message:c,description:u})}else if(t.success!==void 0){i=!1;let c=typeof t.success=="function"?await t.success(A):t.success,u=typeof t.description=="function"?await t.description(A):t.description;this.create({id:r,type:"success",message:c,description:u})}}).catch(async A=>{if(a=["reject",A],t.error!==void 0){i=!1;let c=typeof t.error=="function"?await t.error(A):t.error,u=typeof t.description=="function"?await t.description(A):t.description;this.create({id:r,type:"error",message:c,description:u})}}).finally(()=>{var A;i&&(this.dismiss(r),r=void 0),(A=t.finally)==null||A.call(t)}),l=()=>new Promise((A,c)=>s.then(()=>a[0]==="reject"?c(a[1]):A(a[1])).catch(c));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||wC++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},An=new yq,xq=(e,t)=>{let r=(t==null?void 0:t.id)||wC++;return An.addToast({title:e,...t,id:r}),r},wq=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",bq=xq,Bq=()=>An.toasts,Cq=()=>An.getActiveToasts(),on=Object.assign(bq,{success:An.success,info:An.info,warning:An.warning,error:An.error,custom:An.custom,message:An.message,promise:An.promise,dismiss:An.dismiss,loading:An.loading},{getHistory:Bq,getToasts:Cq});function jq(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}jq(`:where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
325left: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);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-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
325:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px)) translate(var(--swipe-amount-x, 0px));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{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{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{0%{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-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
325--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-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-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],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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%)} 326`);function dm(e){return e.label!==void 0}var _q=3,Eq="32px",Sq="16px",pT=4e3,Nq=356,Oq=14,Tq=20,Fq=200;function bi(...e){return e.filter(Boolean).join(" ")}function Pq(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var kq=e=>{var t,r,n,i,a,s,l,A,c,u,d;let{invert:f,toast:h,unstyled:m,interacting:p,setHeights:v,visibleToasts:x,heights:g,index:y,toasts:B,expanded:b,removeToast:C,defaultRichColors:j,closeButton:_,style:E,cancelButtonStyle:I,actionButtonStyle:T,className:k="",descriptionClassName:N="",duration:F,position:M,gap:O,loadingIcon:U,expandByDefault:P,classNames:Q,icons:$,closeButtonAriaLabel:G="Close toast",pauseWhenPageIsHidden:K}=e,[X,ae]=S.useState(null),[ve,Fe]=S.useState(null),[L,pe]=S.useState(!1),[W,ee]=S.useState(!1),[le,V]=S.useState(!1),[Te,Ne]=S.useState(!1),[Ze,Ye]=S.useState(!1),[at,Br]=S.useState(0),[pr,R]=S.useState(0),D=S.useRef(h.duration||F||pT),H=S.useRef(null),te=S.useRef(null),ie=y===0,ne=y+1<=x,ye=h.type,Xe=h.dismissible!==!1,mt=h.className||"",an=h.descriptionClassName||"",Ia=S.useMemo(()=>g.findIndex(He=>He.toastId===h.id)||0,[g,h.id]),Zi=S.useMemo(()=>{var He;return(He=h.closeButton)!=null?He:_},[h.closeButton,_]),$p=S.useMemo(()=>h.duration||F||pT,[h.duration,F]),Yo=S.useRef(0),ea=S.useRef(0),Hp=S.useRef(0),Ua=S.useRef(null),[o0,Kp]=M.split("-"),DN=S.useMemo(()=>g.reduce((He,gt,Pt)=>Pt>=Ia?He:He+gt.height,0),[g,Ia]),LN=vq(),X8=h.invert||f,l0=ye==="loading";ea.current=S.useMemo(()=>Ia*O+DN,[Ia,DN]),S.useEffect(()=>{D.current=$p},[$p]),S.useEffect(()=>{pe(!0)},[]),S.useEffect(()=>{let He=te.current;if(He){let gt=He.getBoundingClientRect().height;return R(gt),v(Pt=>[{toastId:h.id,height:gt,position:h.position},...Pt]),()=>v(Pt=>Pt.filter(vi=>vi.toastId!==h.id))}},[v,h.id]),S.useLayoutEffect(()=>{if(!L)return;let He=te.current,gt=He.style.height;He.style.height="auto";let Pt=He.getBoundingClientRect().height;He.style.height=gt,R(Pt),v(vi=>vi.find(yi=>yi.toastId===h.id)?vi.map(yi=>yi.toastId===h.id?{...yi,height:Pt}:yi):[{toastId:h.id,height:Pt,position:h.position},...vi])},[L,h.title,h.description,v,h.id]);let Os=S.useCallback(()=>{ee(!0),Br(ea.current),v(He=>He.filter(gt=>gt.toastId!==h.id)),setTimeout(()=>{C(h)},Fq)},[h,C,v,ea]);S.useEffect(()=>{if(h.promise&&ye==="loading"||h.duration===1/0||h.type==="loading")return;let He;return b||p||K&&LN?(()=>{if(Hp.current<Yo.current){let gt=new Date().getTime()-Yo.current;D.current=D.current-gt}
326Hp.current=new Date().getTime()})():D.current!==1/0&&(Yo.current=new Date().getTime(),He=setTimeout(()=>{var gt;(gt=h.onAutoClose)==null||gt.call(h,h),Os()},D.current)),()=>clearTimeout(He)},[b,p,h,ye,K,LN,Os]),S.useEffect(()=>{h.delete&&Os()},[Os,h.delete]);function J8(){var He,gt,Pt;return $!=null&&$.loading?S.createElement("div",{className:bi(Q==null?void 0:Q.loader,(He=h==null?void 0:h.classNames)==null?void 0:He.loader,"sonner-loader"),"data-visible":ye==="loading"},$.loading):U?S.createElement("div",{className:bi(Q==null?void 0:Q.loader,(gt=h==null?void 0:h.classNames)==null?void 0:gt.loader,"sonner-loader"),"data-visible":ye==="loading"},U):S.createElement(dq,{className:bi(Q==null?void 0:Q.loader,(Pt=h==null?void 0:h.classNames)==null?void 0:Pt.loader),visible:ye==="loading"})}return S.createElement("li",{tabIndex:0,ref:te,className:bi(k,mt,Q==null?void 0:Q.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,Q==null?void 0:Q.default,Q==null?void 0:Q[ye],(r=h==null?void 0:h.classNames)==null?void 0:r[ye]),"data-sonner-toast":"","data-rich-colors":(n=h.richColors)!=null?n:j,"data-styled":!(h.jsx||h.unstyled||m),"data-mounted":L,"data-promise":!!h.promise,"data-swiped":Ze,"data-removed":W,"data-visible":ne,"data-y-position":o0,"data-x-position":Kp,"data-index":y,"data-front":ie,"data-swiping":le,"data-dismissible":Xe,"data-type":ye,"data-invert":X8,"data-swipe-out":Te,"data-swipe-direction":ve,"data-expanded":!!(b||P&&L),style:{"--index":y,"--toasts-before":y,"--z-index":B.length-y,"--offset":`${W?at:ea.current}px`,"--initial-height":P?"auto":`${pr}px`,...E,...h.style},onDragEnd:()=>{V(!1),ae(null),Ua.current=null},onPointerDown:He=>{l0||!Xe||(H.current=new Date,Br(ea.current),He.target.setPointerCapture(He.pointerId),He.target.tagName!=="BUTTON"&&(V(!0),Ua.current={x:He.clientX,y:He.clientY}))},onPointerUp:()=>{var He,gt,Pt,vi;if(Te||!Xe)return;Ua.current=null;let yi=Number(((He=te.current)==null?void 0:He.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ts=Number(((gt=te.current)==null?void 0:gt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Xo=new Date().getTime()-((Pt=H.current)==null?void 0:Pt.getTime()),xi=X==="x"?yi:Ts,Fs=Math.abs(xi)/Xo;if(Math.abs(xi)>=Tq||Fs>.11){Br(ea.current),(vi=h.onDismiss)==null||vi.call(h,h),Fe(X==="x"?yi>0?"right":"left":Ts>0?"down":"up"),Os(),Ne(!0),Ye(!1);return}V(!1),ae(null)},onPointerMove:He=>{var gt,Pt,vi,yi;if(!Ua.current||!Xe||((gt=window.getSelection())==null?void 0:gt.toString().length)>0)return;let Ts=He.clientY-Ua.current.y,Xo=He.clientX-Ua.current.x,xi=(Pt=e.swipeDirections)!=null?Pt:Pq(M);!X&&(Math.abs(Xo)>1||Math.abs(Ts)>1)&&ae(Math.abs(Xo)>Math.abs(Ts)?"x":"y");let Fs={x:0,y:0};X==="y"?(xi.includes("top")||xi.includes("bottom"))&&(xi.includes("top")&&Ts<0||xi.includes("bottom")&&Ts>0)&&(Fs.y=Ts):X==="x"&&(xi.includes("left")||xi.includes("right"))&&(xi.includes("left")&&Xo<0||xi.includes("right")&&Xo>0)&&(Fs.x=Xo),(Math.abs(Fs.x)>0||Math.abs(Fs.y)>0)&&Ye(!0),(vi=te.current)==null||vi.style.setProperty("--swipe-amount-x",`${Fs.x}px`),(yi=te.current)==null||yi.style.setProperty("--swipe-amount-y",`${Fs.y}px`)}},Zi&&!h.jsx?S.createElement("button",{"aria-label":G,"data-disabled":l0,"data-close-button":!0,onClick:l0||!Xe?()=>{}:()=>{var He;Os(),(He=h.onDismiss)==null||He.call(h,h)},className:bi(Q==null?void 0:Q.closeButton,(i=h==null?void 0:h.classNames)==null?void 0:i.closeButton)},(a=$==null?void 0:$.close)!=null?a:gq):null,h.jsx||w.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:S.createElement(S.Fragment,null,ye||h.icon||h.promise?S.createElement("div",{"data-icon":"",className:bi(Q==null?void 0:Q.icon,(s=h==null?void 0:h.classNames)==null?void 0:s.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||J8():null,h.type!=="loading"?h.icon||($==null?void 0:$[ye])||cq(ye):null):null,S.createElement("div",{"data-content":"",className:bi(Q==null?void 0:Q.content,(l=h==null?void 0:h.classNames)==null?void 0:l.content)},S.createElement("div",{"data-title":"",className:bi(Q==null?void 0:Q.title,(A=h==null?void 0:h.classNames)==null?void 0:A.title)},typeof h.title=="function"?h.title():h.title),h.description?S.createElement("div",{"data-description":"",className:bi(N,an,Q==null?void 0:Q.description,(c=h==null?void 0:h.classNames)==null?void 0:c.description)},typeof h.description=="function"?h.description():h.description):null),w.isValidElement(h.cancel)?h.cancel:h.cancel&&dm(h.cancel)?S.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||I,onClick:He=>{var gt,Pt;dm(h.cancel)&&Xe&&((Pt=(gt=h.cancel).onClick)==null||Pt.call(gt,He),Os())},className:bi(Q==null?void 0:Q.cancelButton,(u=h==null?void 0:h.classNames)==null?void 0:u.cancelButton)},h.cancel.label):null,w.isValidElement(h.action)?h.action:h.action&&dm(h.action)?S.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||T,onClick:He=>{var gt,Pt;dm(h.action)&&((Pt=(gt=h.action).onClick)==null||Pt.call(gt,He),!He.defaultPrevented&&Os())},className:bi(Q==null?void 0:Q.actionButton,(d=h==null?void 0:h.classNames)==null?void 0:d.actionButton)},h.action.label):null))};function mT(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Iq(e,t){let r={};return[e,t].forEach((n,i)=>{let a=i===1,s=a?"--mobile-offset":"--offset",l=a?Sq:Eq;function A(c){["top","right","bottom","left"].forEach(u=>{r[`${s}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof n=="number"||typeof n=="string"?A(n):typeof n=="object"?["top","right","bottom","left"].forEach(c=>{n[c]===void 0?r[`${s}-${c}`]=l:r[`${s}-${c}`]=typeof n[c]=="number"?`${n[c]}px`:n[c]}):A(l)}),r}var Uq=w.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:s,className:l,offset:A,mobileOffset:c,theme:u="light",richColors:d,duration:f,style:h,visibleToasts:m=_q,toastOptions:p,dir:v=mT(),gap:x=Oq,loadingIcon:g,icons:y,containerAriaLabel:B="Notifications",pauseWhenPageIsHidden:b}=e,[C,j]=S.useState([]),_=S.useMemo(()=>Array.from(new Set([n].concat(C.filter(K=>K.position).map(K=>K.position)))),[C,n]),[E,I]=S.useState([]),[T,k]=S.useState(!1),[N,F]=S.useState(!1),[M,O]=S.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
326k":"light"),U=S.useRef(null),P=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),Q=S.useRef(null),$=S.useRef(!1),G=S.useCallback(K=>{j(X=>{var ae;return(ae=X.find(ve=>ve.id===K.id))!=null&&ae.delete||An.dismiss(K.id),X.filter(({id:ve})=>ve!==K.id)})},[]);return S.useEffect(()=>An.subscribe(K=>{if(K.dismiss){j(X=>X.map(ae=>ae.id===K.id?{...ae,delete:!0}:ae));return}setTimeout(()=>{OR.flushSync(()=>{j(X=>{let ae=X.findIndex(ve=>ve.id===K.id);return ae!==-1?[...X.slice(0,ae),{...X[ae],...K},...X.slice(ae+1)]:[K,...X]})})})}),[]),S.useEffect(()=>{if(u!=="system"){O(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?O("dark"):O("light")),typeof window>"u")return;let K=window.matchMedia("(prefers-color-scheme: dark)");try{K.addEventListener("change",({matches:X})=>{O(X?"dark":"light")})}catch{K.addListener(({matches:ae})=>{try{O(ae?"dark":"light")}catch(ve){console.error(ve)}})}},[u]),S.useEffect(()=>{C.length<=1&&k(!1)},[C]),S.useEffect(()=>{let K=X=>{var ae,ve;i.every(Fe=>X[Fe]||X.code===Fe)&&(k(!0),(ae=U.current)==null||ae.focus()),X.code==="Escape"&&(document.activeElement===U.current||(ve=U.current)!=null&&ve.contains(document.activeElement))&&k(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[i]),S.useEffect(()=>{if(U.current)return()=>{Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null,$.current=!1)}},[U.current]),S.createElement("section",{ref:t,"aria-label":`${B} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},_.map((K,X)=>{var ae;let[ve,Fe]=K.split("-");return C.length?S.createElement("ol",{key:K,dir:v==="auto"?mT():v,tabIndex:-1,ref:U,className:l,"data-sonner-toaster":!0,"data-theme":M,"data-y-position":ve,"data-lifted":T&&C.length>1&&!a,"data-x-position":Fe,style:{"--front-toast-height":`${((ae=E[0])==null?void 0:ae.height)||0}px`,"--width":`${Nq}px`,"--gap":`${x}px`,...h,...Iq(A,c)},onBlur:L=>{$.current&&!L.currentTarget.contains(L.relatedTarget)&&($.current=!1,Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null))},onFocus:L=>{L.target instanceof HTMLElement&&L.target.dataset.dismissible==="false"||$.current||($.current=!0,Q.current=L.relatedTarget)},onMouseEnter:()=>k(!0),onMouseMove:()=>k(!0),onMouseLeave:()=>{N||k(!1)},onDragEnd:()=>k(!1),onPointerDown:L=>{L.target instanceof HTMLElement&&L.target.dataset.dismissible==="false"||F(!0)},onPointerUp:()=>F(!1)},C.filter(L=>!L.position&&X===0||L.position===K).map((L,pe)=>{var W,ee;return S.createElement(kq,{key:L.id,icons:y,index:pe,toast:L,defaultRichColors:d,duration:(W=p==null?void 0:p.duration)!=null?W:f,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:r,visibleToasts:m,closeButton:(ee=p==null?void 0:p.closeButton)!=null?ee:s,interacting:N,position:K,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:G,toasts:C.filter(le=>le.position==L.position),heights:E.filter(le=>le.position==L.position),setHeights:I,expandByDefault:a,gap:x,loadingIcon:g,expanded:T,pauseWhenPageIsHidden:b,swipeDirections:e.swipeDirections})})):null}))});const Qq=({...e})=>{const{theme:t="system"}=Aq();return o.jsx(Uq,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var Mq=l_[" useId ".trim().toString()]||(()=>{}),Rq=0;function Qn(e){const[t,r]=w.useState(Mq());return wr(()=>{r(n=>n??String(Rq++))},[e]),t?`radix-${t}`:""}const Dq=["top","right","bottom","left"],Oo=Math.min,Tn=Math.max,av=Math.round,fm=Math.floor,ga=e=>({x:e,y:e}
vendor: 12,649 bytes, line 326
326),Lq={left:"right",right:"left",bottom:"top",top:"bottom"},$q={start:"end",end:"start"};function bC(e,t,r){return Tn(e,Oo(t,r))}function ps(e,t){return typeof e=="function"?e(t):e}function ms(e){return e.split("-")[0]}function Ku(e){return e.split("-")[1]}function cE(e){return e==="x"?"y":"x"}function uE(e){return e==="y"?"height":"width"}const Hq=new Set(["top","bottom"]);function ua(e){return Hq.has(ms(e))?"y":"x"}function dE(e){return cE(ua(e))}function Kq(e,t,r){r===void 0&&(r=!1);const n=Ku(e),i=dE(e),a=uE(i);let s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=sv(s)),[s,sv(s)]}function Vq(e){const t=sv(e);return[BC(e),t,BC(t)]}function BC(e){return e.replace(/start|end/g,t=>$q[t])}const gT=["left","right"],vT=["right","left"],Wq=["top","bottom"],Gq=["bottom","top"];function zq(e,t,r){switch(e){case"top":case"bottom":return r?t?vT:gT:t?gT:vT;case"left":case"right":return t?Wq:Gq;default:return[]}}function qq(e,t,r,n){const i=Ku(e);let a=zq(ms(e),r==="start",n);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(BC)))),a}function sv(e){return e.replace(/left|right|bottom|top/g,t=>Lq[t])}function Yq(e){return{top:0,right:0,bottom:0,left:0,...e}}function CD(e){return typeof e!="number"?Yq(e):{top:e,right:e,bottom:e,left:e}}function ov(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function yT(e,t,r){let{reference:n,floating:i}=e;const a=ua(t),s=dE(t),l=uE(s),A=ms(t),c=a==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,f=n[l]/2-i[l]/2;let h;switch(A){case"top":h={x:u,y:n.y-i.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-i.width,y:d};break;default:h={x:n.x,y:n.y}}switch(Ku(t)){case"start":h[s]-=f*(r&&c?-1:1);break;case"end":h[s]+=f*(r&&c?-1:1);break}return h}const Xq=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),A=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=yT(c,n,A),f=n,h={},m=0;for(let p=0;p<l.length;p++){const{name:v,fn:x}=l[p],{x:g,y,data:B,reset:b}=await x({x:u,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});u=g??u,d=y??d,h={...h,[v]:{...h[v],...B}},b&&m<=50&&(m++,typeof b=="object"&&(b.placement&&(f=b.placement),b.rects&&(c=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:u,y:d}=yT(c,f,A)),p=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:h}};async function eh(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:a,rects:s,elements:l,strategy:A}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=ps(t,e),m=CD(h),v=l[f?d==="floating"?"reference":"floating":d],x=ov(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(v)))==null||r?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:A})),g=d==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),B=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},b=ov(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:y,strategy:A}):g);return{top:(x.top-b.top+m.top)/B.y,bottom:(b.bottom-x.bottom+m.bottom)/B.y,left:(x.left-b.left+m.left)/B.x,right:(b.right-x.right+m.right)/B.x}}const Jq=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:a,platform:s,elements:l,middlewareData:A}=t,{element:c,padding:u=0}=ps(e,t)||{};if(c==null)return{};const d=CD(u),f={x:r,y:n},h=dE(i),m=uE(h),p=await s.getDimensions(c),v=h==="y",x=v?"top":"left",g=v?"bottom":"right",y=v?"clientHeight":"clientWidth",B=a.reference[m]+a.reference[h]-f[h]-a.floating[m],b=f[h]-a.reference[h],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let j=C?C[y]:0;(!j||!await(s.isElement==null?void 0:s.isElement(C)))&&(j=l.floating[y]||a.floating[m]);const _=B/2-b/2,E=j/2-p[m]/2-1,I=Oo(d[x],E),T=Oo(d[g],E),k=I,N=j-p[m]-T,F=j/2-p[m]/2+_,M=bC(k,F,N),O=!A.arrow&&Ku(i)!=null&&F!==M&&a.reference[m]/2-(F<k?I:T)-p[m]/2<0,U=O?F<k?F-k:F-N:0;return{[h]:f[h]+U,data:{[h]:M,centerOffset:F-M-U,...O&&{alignmentOffset:U}},reset:O}}}),Zq=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:a,rects:s,initialPlacement:l,platform:A,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...v}=ps(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=ms(i),g=ua(l),y=ms(l)===l,B=await(A.isRTL==null?void 0:A.isRTL(c.floating)),b=f||(y||!p?[sv(l)]:Vq(l)),C=m!=="none";!f&&C&&b.push(...qq(l,p,m,B));const j=[l,...b],_=await eh(t,v),E=[];let I=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&E.push(_[x]),d){const F=Kq(i,s,B);E.push(_[F[0]],_[F[1]])}if(I=[...I,{placement:i,overflows:E}],!E.every(F=>F<=0)){var T,k;const F=(((T=a.flip)==null?void 0:T.index)||0)+1,M=j[F];if(M&&(!(d==="alignment"?g!==ua(M):!1)||I.every(P=>P.overflows[0]>0&&ua(P.placement)===g)))return{data:{index:F,overflows:I},reset:{placement:M}};let O=(k=I.filter(U=>U.overflows[0]<=0).sort((U,P)=>U.overflows[1]-P.overflows[1])[0])==null?void 0:k.placement;if(!O)switch(h){case"bestFit":{var N;const U=(N=I.filter(P=>{if(C){const Q=ua(P.placement);return Q===g||Q==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(Q=>Q>0).reduce((Q,$)=>Q+$,0)]).sort((P,Q)=>P[1]-Q[1])[0])==null?void 0:N[0];U&&(O=U);break}case"initialPlacement":O=l;break}if(i!==O)return{reset:{placement:O}}}return{}}}};function xT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wT(e){return Dq.some(t=>e[t]>=0)}const eY=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...i}=ps(e,t);switch(n){case"referenceHidden":{const a=await eh(t,{...i,elementContext:"reference"}),s=xT(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:wT(s)}}}case"escaped":{const a=await eh(t,{...i,altBoundary:!0}),s=xT(a,r.floating);return{data:{escapedOffsets:s,escaped:wT(s)}}}default:return{}}}}},jD=new Set(["left","top"]);async function tY(e,t){const{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=ms(r),l=Ku(r),A=ua(r)==="y",c=jD.has(s)?-1:1,u=a&&A?-1:1,d=ps(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof m=="number"&&(h=l==="end"?m*-1:m),A?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const rY=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:a,placement:s,middlewareData:l}=t,A=await tY(t,e);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:i+A.x,y:a+A.y,data:{...A,placement:s}}}}},nY=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:v=>{let{x,y:g}=v;return{x,y:g}}},...A}=ps(e,t),c={x:r,y:n},u=await eh(t,A),d=ua(ms(i)),f=cE(d);let h=c[f],m=c[d];if(a){const v=f==="y"?"top":"left",x=f==="y"?"bottom":"right",g=h+u[v],y=h-u[x];h=bC(g,h,y)}if(s){const v=d==="y"?"top":"left",x=d==="y"?"bottom":"right",g=m+u[v],y=m-u[x];m=bC(g,m,y)}const p=l.fn({...t,[f]:h,[d]:m});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[f]:a,[d]:s}}}}}},iY=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:A=!0,crossAxis:c=!0}=ps(e,t),u={x:r,y:n},d=ua(i),f=cE(d);let h=u[f],m=u[d];const p=ps(l,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(A){const y=f==="y"?"height":"width",B=a.reference[f]-a.floating[y]+v.mainAxis,b=a.reference[f]+a.reference[y]-v.mainAxis;h<B?h=B:h>b&&(h=b)}if(c){var x,g;const y=f==="y"?"width":"height",B=jD.has(ms(i)),b=a.reference[d]-a.floating[y]+(B&&((x=s.offset)==null?void 0:x[d])||0)+(B?0:v.crossAxis),C=a.reference[d]+a.reference[y]+(B?0:((g=s.offset)==null?void 0:g[d])||0)-(B?v.crossAxis:0);m<b?m=b:m>C&&(m=C)}return{[f]:h,[d]:m}}}},aY=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:a,platform:s,elements:l}=t,{apply:A=()=>{},...c}=ps(e,t),u=await eh(t,c),d=ms(i),f=Ku(i),h=ua(i)==="y",{width:m,height:p}=a.floating;let v,x;d==="top"||d==="bottom"?(v=d,x=f===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(x=d,v=f==="end"?"top":"bottom");const g=p-u.top-u.bottom,y=m-u.left-u.right,B=Oo(p-u[v],g),b=Oo(m-u[x],y),C=!t.middlewareData.shift;let j=B,_=b;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(_=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(j=g),C&&!f){const I=Tn(u.left,0),T=Tn(u.right,0),k=Tn(u.top,0),N=Tn(u.bottom,0);h?_=m-2*(I!==0||T!==0?I+T:Tn(u.left,u.right)):j=p-2*(k!==0||N!==0?k+N:Tn(u.top,u.bottom))}await A({...t,availableWidth:_,availableHeight:j});const E=await s.getDimensions(l.floating);return m!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}};function dx(){return typeof window<"u"}function Vu(e){return _D(e)?(e.nodeName||"").toLowerCase():"#document"}function Mn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ea(e){var t;return(t=(_D(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _D(e){return dx()?e instanceof Node||e instanceof Mn(e).Node:!1}function Vi(e){return dx()?e instanceof Element||e instanceof Mn(e).Element:!1}function ba(e){return dx()?e instanceof HTMLElement||e instanceof Mn(e).HTMLElement:!1}function bT(e){return!dx()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mn(e).ShadowRoot}const sY=new Set(["inline","contents"]);function Ap(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=Wi(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!sY.has(i)}const oY=new Set(["table","td","th"]);function lY(e){return oY.has(Vu(e))}const AY=[":popover-open",":modal"];function fx(e){return AY.some(t=>{try{return e.matches(t)}catch{return!1}})}const cY=["transform","translate","scale","rotate","perspective"],uY=["transform","translate","scale","rotate","perspective","filter"],dY=["paint","layout","strict","content"];function fE(e){const t=hE(),r=Vi(e)?Wi(e):e;return cY.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||uY.some(n=>(r.willChange||"").includes(n))||dY.some(n=>(r.contain||"").includes(n))}function fY(e){let t=To(e);for(;ba(t)&&!tu(t);){if(fE(t))return t;if(fx(t))return null;t=To(t)}return null}function hE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const hY=new Set(["html","body","#document"]);function tu(e){return hY.has(Vu(e))}function Wi(e){return Mn(e).getComputedStyle(e)}function hx(e){return Vi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function To(e){if(Vu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bT(e)&&e.host||Ea(e);return bT(t)?t.host:t}function ED(e){const t=To(e);return tu(t)?e.ownerDocument?e.ownerDocument.body:e.body:ba(t)&&Ap(t)?t:ED(t)}function th(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=ED(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),s=Mn(i);if(a){const l=CC(s);return t.concat(s,s.visualViewport||[],Ap(i)?i:[],l&&r?th(l):[])}return t.concat(i,th(i,[],r))}function CC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function SD(e){const t=Wi(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=ba(e),a=i?e.offsetWidth:r,s=i?e.offsetHeight:n,l=av(r)!==a||av(n)!==s;return l&&(r=a,n=s),{width:r,height:n,$:l}}function pE(e){return Vi(e)?e:e.contextElement}function Tc(e){const t=pE(e);if(!ba(t))return ga(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:a}=SD(t);let s=(a?av(r.width):r.width)/n,l=(a?av(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const pY=ga(0);function ND(e){const t=Mn(e);
vendor: 6,402 bytes, line 326
326return!hE()||!t.visualViewport?pY:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mY(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Mn(e)?!1:t}function Vl(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),a=pE(e);let s=ga(1);t&&(n?Vi(n)&&(s=Tc(n)):s=Tc(e));const l=mY(a,r,n)?ND(a):ga(0);let A=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(a){const f=Mn(a),h=n&&Vi(n)?Mn(n):n;let m=f,p=CC(m);for(;p&&n&&h!==m;){const v=Tc(p),x=p.getBoundingClientRect(),g=Wi(p),y=x.left+(p.clientLeft+parseFloat(g.paddingLeft))*v.x,B=x.top+(p.clientTop+parseFloat(g.paddingTop))*v.y;A*=v.x,c*=v.y,u*=v.x,d*=v.y,A+=y,c+=B,m=Mn(p),p=CC(m)}}return ov({width:u,height:d,x:A,y:c})}function mE(e,t){const r=hx(e).scrollLeft;return t?t.left+r:Vl(Ea(e)).left+r}function OD(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:mE(e,n)),a=n.top+t.scrollTop;return{x:i,y:a}}function gY(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const a=i==="fixed",s=Ea(n),l=t?fx(t.floating):!1;if(n===s||l&&a)return r;let A={scrollLeft:0,scrollTop:0},c=ga(1);const u=ga(0),d=ba(n);if((d||!d&&!a)&&((Vu(n)!=="body"||Ap(s))&&(A=hx(n)),ba(n))){const h=Vl(n);c=Tc(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const f=s&&!d&&!a?OD(s,A,!0):ga(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-A.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-A.scrollTop*c.y+u.y+f.y}}function vY(e){return Array.from(e.getClientRects())}function yY(e){const t=Ea(e),r=hx(e),n=e.ownerDocument.body,i=Tn(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Tn(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+mE(e);const l=-r.scrollTop;return Wi(n).direction==="rtl"&&(s+=Tn(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:l}}function xY(e,t){const r=Mn(e),n=Ea(e),i=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,l=0,A=0;if(i){a=i.width,s=i.height;const c=hE();(!c||c&&t==="fixed")&&(l=i.offsetLeft,A=i.offsetTop)}return{width:a,height:s,x:l,y:A}}const wY=new Set(["absolute","fixed"]);function bY(e,t){const r=Vl(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=ba(e)?Tc(e):ga(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,A=i*a.x,c=n*a.y;return{width:s,height:l,x:A,y:c}}function BT(e,t,r){let n;if(t==="viewport")n=xY(e,r);else if(t==="document")n=yY(Ea(e));else if(Vi(t))n=bY(t,r);else{const i=ND(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ov(n)}function TD(e,t){const r=To(e);return r===t||!Vi(r)||tu(r)?!1:Wi(r).position==="fixed"||TD(r,t)}function BY(e,t){const r=t.get(e);if(r)return r;let n=th(e,[],!1).filter(l=>Vi(l)&&Vu(l)!=="body"),i=null;const a=Wi(e).position==="fixed";let s=a?To(e):e;for(;Vi(s)&&!tu(s);){const l=Wi(s),A=fE(s);!A&&l.position==="fixed"&&(i=null),(a?!A&&!i:!A&&l.position==="static"&&!!i&&wY.has(i.position)||Ap(s)&&!A&&TD(e,s))?n=n.filter(u=>u!==s):i=l,s=To(s)}return t.set(e,n),n}function CY(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const s=[...r==="clippingAncestors"?fx(t)?[]:BY(t,this._c):[].concat(r),n],l=s[0],A=s.reduce((c,u)=>{const d=BT(t,u,i);return c.top=Tn(d.top,c.top),c.right=Oo(d.right,c.right),c.bottom=Oo(d.bottom,c.bottom),c.left=Tn(d.left,c.left),c},BT(t,l,i));return{width:A.right-A.left,height:A.bottom-A.top,x:A.left,y:A.top}}function jY(e){const{width:t,height:r}=SD(e);return{width:t,height:r}}function _Y(e,t,r){const n=ba(t),i=Ea(t),a=r==="fixed",s=Vl(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const A=ga(0);function c(){A.x=mE(i)}if(n||!n&&!a)if((Vu(t)!=="body"||Ap(i))&&(l=hx(t)),n){const h=Vl(t,!0,a,t);A.x=h.x+t.clientLeft,A.y=h.y+t.clientTop}else i&&c();a&&!n&&i&&c();const u=i&&!n&&!a?OD(i,l):ga(0),d=s.left+l.scrollLeft-A.x-u.x,f=s.top+l.scrollTop-A.y-u.y;return{x:d,y:f,width:s.width,height:s.height}}function H0(e){return Wi(e).position==="static"}function CT(e,t){if(!ba(e)||Wi(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ea(e)===r&&(r=r.ownerDocument.body),r}function FD(e,t){const r=Mn(e);if(fx(e))return r;if(!ba(e)){let i=To(e);for(;i&&!tu(i);){if(Vi(i)&&!H0(i))return i;i=To(i)}return r}let n=CT(e,t);for(;n&&lY(n)&&H0(n);)n=CT(n,t);return n&&tu(n)&&H0(n)&&!fE(n)?r:n||fY(e)||r}const EY=async function(e){const t=this.getOffsetParent||FD,r=this.getDimensions,n=await r(e.floating);return{reference:_Y(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function SY(e){return Wi(e).direction==="rtl"}const NY={convertOffsetParentRelativeRectToViewportRelativeRect:gY,getDocumentElement:Ea,getClippingRect:CY,getOffsetParent:FD,getElementRects:EY,getClientRects:vY,getDimensions:jY,getScale:Tc,isElement:Vi,isRTL:SY};function PD(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function OY(e,t){let r=null,n;const i=Ea(e);function a(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function s(l,A){l===void 0&&(l=!1),A===void 0&&(A=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:h}=c;if(l||t(),!f||!h)return;const m=fm(d),p=fm(i.clientWidth-(u+f)),v=fm(i.clientHeight-(d+h)),x=fm(u),y={rootMargin:-m+"px "+-p+"px "+-v+"px "+-x+"px",threshold:Tn(0,Oo(1,A))||1};let B=!0;function b(C){const j=C[0].intersectionRatio;if(j!==A){if(!B)return s();j?s(!1,j):n=setTimeout(()=>{s(!1,1e-7)},1e3)}j===1&&!PD(c,e.getBoundingClientRect())&&s(),B=!1}try{r=new IntersectionObserver(b,{...y,root:i.ownerDocument})}catch{r=new IntersectionObserver(b,y)}r.observe(e)}return s(!0),a}function TY(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:A=!1}=n,c=pE(e),u=i||a?[...c?th(c):[],...th(t)]:[];u.forEach(x=>{i&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const d=c&&l?OY(c,r):null;let f=-1,h=null;s&&(h=new ResizeObserver(x=>{let[g]=x;g&&g.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),r()}),c&&!A&&h.observe(c),h.observe(t));let m,p=A?Vl(e):null;A&&v();function v(){const x=Vl(e);p&&!PD(p,x)&&r(),p=x,m=requestAnimationFrame(v)}return r(),()=>{var x;u.forEach(g=>{i&&g.removeEventListener("scroll",r),a&&g.removeEventListener("resize",r)}),d==null||d(),(x=h)==null||x.disconnect(),h=null,A&&cancelAnimationFrame(m)}}
vendor: 7,278 bytes, line 326
326const FY=rY,PY=nY,kY=Zq,IY=aY,UY=eY,jT=Jq,QY=iY,MY=(e,t,r)=>{const n=new Map,i={platform:NY,...r},a={...i.platform,_c:n};return Xq(e,t,{...i,platform:a})};var RY=typeof document<"u",DY=function(){},bg=RY?w.useLayoutEffect:DY;function lv(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!lv(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const a=i[n];if(!(a==="_owner"&&e.$$typeof)&&!lv(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function kD(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _T(e,t){const r=kD(e);return Math.round(t*r)/r}function K0(e){const t=w.useRef(e);return bg(()=>{t.current=e}),t}function LY(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:A,open:c}=e,[u,d]=w.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=w.useState(n);lv(f,n)||h(n);const[m,p]=w.useState(null),[v,x]=w.useState(null),g=w.useCallback(P=>{P!==C.current&&(C.current=P,p(P))},[]),y=w.useCallback(P=>{P!==j.current&&(j.current=P,x(P))},[]),B=a||m,b=s||v,C=w.useRef(null),j=w.useRef(null),_=w.useRef(u),E=A!=null,I=K0(A),T=K0(i),k=K0(c),N=w.useCallback(()=>{if(!C.current||!j.current)return;const P={placement:t,strategy:r,middleware:f};T.current&&(P.platform=T.current),MY(C.current,j.current,P).then(Q=>{const $={...Q,isPositioned:k.current!==!1};F.current&&!lv(_.current,$)&&(_.current=$,aA.flushSync(()=>{d($)}))})},[f,t,r,T,k]);bg(()=>{c===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[c]);const F=w.useRef(!1);bg(()=>(F.current=!0,()=>{F.current=!1}),[]),bg(()=>{if(B&&(C.current=B),b&&(j.current=b),B&&b){if(I.current)return I.current(B,b,N);N()}},[B,b,N,I,E]);const M=w.useMemo(()=>({reference:C,floating:j,setReference:g,setFloating:y}),[g,y]),O=w.useMemo(()=>({reference:B,floating:b}),[B,b]),U=w.useMemo(()=>{const P={position:r,left:0,top:0};if(!O.floating)return P;const Q=_T(O.floating,u.x),$=_T(O.floating,u.y);return l?{...P,transform:"translate("+Q+"px, "+$+"px)",...kD(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Q,top:$}},[r,l,O.floating,u.x,u.y]);return w.useMemo(()=>({...u,update:N,refs:M,elements:O,floatingStyles:U}),[u,N,M,O,U])}const $Y=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?jT({element:n.current,padding:i}).fn(r):{}:n?jT({element:n,padding:i}).fn(r):{}}}},HY=(e,t)=>({...FY(e),options:[e,t]}),KY=(e,t)=>({...PY(e),options:[e,t]}),VY=(e,t)=>({...QY(e),options:[e,t]}),WY=(e,t)=>({...kY(e),options:[e,t]}),GY=(e,t)=>({...IY(e),options:[e,t]}),zY=(e,t)=>({...UY(e),options:[e,t]}),qY=(e,t)=>({...$Y(e),options:[e,t]});var YY="Arrow",ID=w.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...a}=e;return o.jsx(Oe.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:o.jsx("polygon",{points:"0,0 30,0 15,10"})})});ID.displayName=YY;var XY=ID;function UD(e){const[t,r]=w.useState(void 0);return wr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let s,l;if("borderBoxSize"in a){const A=a.borderBoxSize,c=Array.isArray(A)?A[0]:A;s=c.inlineSize,l=c.blockSize}else s=e.offsetWidth,l=e.offsetHeight;r({width:s,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var gE="Popper",[QD,Mo]=rn(gE),[JY,MD]=QD(gE),RD=e=>{const{__scopePopper:t,children:r}=e,[n,i]=w.useState(null);return o.jsx(JY,{scope:t,anchor:n,onAnchorChange:i,children:r})};RD.displayName=gE;var DD="PopperAnchor",LD=w.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,a=MD(DD,r),s=w.useRef(null),l=ze(t,s);return w.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||s.current)}),n?null:o.jsx(Oe.div,{...i,ref:l})});LD.displayName=DD;var vE="PopperContent",[ZY,eX]=QD(vE),$D=w.forwardRef((e,t)=>{var L,pe,W,ee,le,V;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:A=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:m,...p}=e,v=MD(vE,r),[x,g]=w.useState(null),y=ze(t,Te=>g(Te)),[B,b]=w.useState(null),C=UD(B),j=(C==null?void 0:C.width)??0,_=(C==null?void 0:C.height)??0,E=n+(a!=="center"?"-"+a:""),I=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},T=Array.isArray(c)?c:[c],k=T.length>0,N={padding:I,boundary:T.filter(rX),altBoundary:k},{refs:F,floatingStyles:M,placement:O,isPositioned:U,middlewareData:P}=LY({strategy:"fixed",placement:E,whileElementsMounted:(...Te)=>TY(...Te,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[HY({mainAxis:i+_,alignmentAxis:s}),A&&KY({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?VY():void 0,...N}),A&&WY({...N}),GY({...N,apply:({elements:Te,rects:Ne,availableWidth:Ze,availableHeight:Ye})=>{const{width:at,height:Br}=Ne.reference,pr=Te.floating.style;pr.setProperty("--radix-popper-available-width",`${Ze}px`),pr.setProperty("--radix-popper-available-height",`${Ye}px`),pr.setProperty("--radix-popper-anchor-width",`${at}px`),pr.setProperty("--radix-popper-anchor-height",`${Br}px`)}}),B&&qY({element:B,padding:l}),nX({arrowWidth:j,arrowHeight:_}),f&&zY({strategy:"referenceHidden",...N})]}),[Q,$]=VD(O),G=wn(m);wr(()=>{U&&(G==null||G())},[U,G]);const K=(L=P.arrow)==null?void 0:L.x,X=(pe=P.arrow)==null?void 0:pe.y,ae=((W=P.arrow)==null?void 0:W.centerOffset)!==0,[ve,Fe]=w.useState();return wr(()=>{x&&Fe(window.getComputedStyle(x).zIndex)},[x]),o.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:U?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ve,"--radix-popper-transform-origin":[(ee=P.transformOrigin)==null?void 0:ee.x,(le=P.transformOrigin)==null?void 0:le.y].join(" "),...((V=P.hide)==null?void 0:V.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:o.jsx(ZY,{scope:r,placedSide:Q,onArrowChange:b,arrowX:K,arrowY:X,shouldHideArrow:ae,children:o.jsx(Oe.div,{"data-side":Q,"data-align":$,...p,ref:y,style:{...p.style,animation:U?void 0:"none"}})})})});$D.displayName=vE;var HD="PopperArrow",tX={top:"bottom",right:"left",bottom:"top",left:"right"},KD=w.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,a=eX(HD,n),s=tX[a.placedSide];return o.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}
vendor: 5,139 bytes, line 326
326,children:o.jsx(XY,{...i,ref:r,style:{...i.style,display:"block"}})})});KD.displayName=HD;function rX(e){return e!==null}var nX=e=>({name:"transformOrigin",options:e,fn(t){var v,x,g;const{placement:r,rects:n,middlewareData:i}=t,s=((v=i.arrow)==null?void 0:v.centerOffset)!==0,l=s?0:e.arrowWidth,A=s?0:e.arrowHeight,[c,u]=VD(r),d={start:"0%",center:"50%",end:"100%"}[u],f=(((x=i.arrow)==null?void 0:x.x)??0)+l/2,h=(((g=i.arrow)==null?void 0:g.y)??0)+A/2;let m="",p="";return c==="bottom"?(m=s?d:`${f}px`,p=`${-A}px`):c==="top"?(m=s?d:`${f}px`,p=`${n.floating.height+A}px`):c==="right"?(m=`${-A}px`,p=s?d:`${h}px`):c==="left"&&(m=`${n.floating.width+A}px`,p=s?d:`${h}px`),{data:{x:m,y:p}}}});function VD(e){const[t,r="center"]=e.split("-");return[t,r]}var yE=RD,cp=LD,px=$D,mx=KD,[gx,I4e]=rn("Tooltip",[Mo]),xE=Mo(),WD="TooltipProvider",iX=700,ET="tooltip.open",[aX,GD]=gx(WD),zD=e=>{const{__scopeTooltip:t,delayDuration:r=iX,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:a}=e,s=w.useRef(!0),l=w.useRef(!1),A=w.useRef(0);return w.useEffect(()=>{const c=A.current;return()=>window.clearTimeout(c)},[]),o.jsx(aX,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:w.useCallback(()=>{window.clearTimeout(A.current),s.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(A.current),A.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:w.useCallback(c=>{l.current=c},[]),disableHoverableContent:i,children:a})};zD.displayName=WD;var qD="Tooltip",[U4e,vx]=gx(qD),jC="TooltipTrigger",sX=w.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=vx(jC,r),a=GD(jC,r),s=xE(r),l=w.useRef(null),A=ze(t,l,i.onTriggerChange),c=w.useRef(!1),u=w.useRef(!1),d=w.useCallback(()=>c.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),o.jsx(cp,{asChild:!0,...s,children:o.jsx(Oe.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:A,onPointerMove:Ae(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:Ae(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:Ae(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Ae(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:Ae(e.onBlur,i.onClose),onClick:Ae(e.onClick,i.onClose)})})});sX.displayName=jC;var oX="TooltipPortal",[Q4e,lX]=gx(oX,{forceMount:void 0}),ru="TooltipContent",YD=w.forwardRef((e,t)=>{const r=lX(ru,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...a}=e,s=vx(ru,e.__scopeTooltip);return o.jsx(bn,{present:n||s.open,children:s.disableHoverableContent?o.jsx(XD,{side:i,...a,ref:t}):o.jsx(AX,{side:i,...a,ref:t})})}),AX=w.forwardRef((e,t)=>{const r=vx(ru,e.__scopeTooltip),n=GD(ru,e.__scopeTooltip),i=w.useRef(null),a=ze(t,i),[s,l]=w.useState(null),{trigger:A,onClose:c}=r,u=i.current,{onPointerInTransitChange:d}=n,f=w.useCallback(()=>{l(null),d(!1)},[d]),h=w.useCallback((m,p)=>{const v=m.currentTarget,x={x:m.clientX,y:m.clientY},g=hX(x,v.getBoundingClientRect()),y=pX(x,g),B=mX(p.getBoundingClientRect()),b=vX([...y,...B]);l(b),d(!0)},[d]);return w.useEffect(()=>()=>f(),[f]),w.useEffect(()=>{if(A&&u){const m=v=>h(v,u),p=v=>h(v,A);return A.addEventListener("pointerleave",m),u.addEventListener("pointerleave",p),()=>{A.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",p)}}},[A,u,h,f]),w.useEffect(()=>{if(s){const m=p=>{const v=p.target,x={x:p.clientX,y:p.clientY},g=(A==null?void 0:A.contains(v))||(u==null?void 0:u.contains(v)),y=!gX(x,s);g?f():y&&(f(),c())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[A,u,s,c,f]),o.jsx(XD,{...e,ref:a})}),[cX,uX]=gx(qD,{isInside:!1}),dX=c9("TooltipContent"),XD=w.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=e,A=vx(ru,r),c=xE(r),{onClose:u}=A;return w.useEffect(()=>(document.addEventListener(ET,u),()=>document.removeEventListener(ET,u)),[u]),w.useEffect(()=>{if(A.trigger){const d=f=>{const h=f.target;h!=null&&h.contains(A.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[A.trigger,u]),o.jsx(sA,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:o.jsxs(px,{"data-state":A.stateAttribute,...c,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[o.jsx(dX,{children:n}),o.jsx(cX,{scope:r,isInside:!0,children:o.jsx(F9,{id:A.contentId,role:"tooltip",children:i||n})})]})})});YD.displayName=ru;var JD="TooltipArrow",fX=w.forwardRef((e,t)=>
326{const{__scopeTooltip:r,...n}=e,i=xE(r);return uX(JD,r).isInside?null:o.jsx(mx,{...i,...n,ref:t})});fX.displayName=JD;function hX(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,i,a)){case a:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function pX(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function mX(e){const{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}function gX(e,t){const{x:r,y:n}=e;let i=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const l=t[a],A=t[s],c=l.x,u=l.y,d=A.x,f=A.y;u>n!=f>n&&r<(d-c)*(n-u)/(f-u)+c&&(i=!i)}return i}function vX(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),yX(t)}function yX(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const i=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const i=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))r.pop();else break}r.push(i)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var xX=zD,ZD=YD;const wX=xX,bX=w.forwardRef(({className:e,sideOffset:t=4,...r},n)=>o.jsx(ZD,{ref:n,sideOffset:t,className:ce("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));bX.displayName=ZD.displayName;var yx=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xx=typeof window>"u"||"Deno"in globalThis;function Si(){}function BX(e,t){return typeof e=="function"?e(t):e}function CX(e){return typeof e=="number"&&e>=0&&e!==1/0}function jX(e,t){return Math.max(e+(t||0)-Date.now(),0)}function _C(e,t){return typeof e=="function"?e(t):e}function _X(e,t){return typeof e=="function"?e(t):e}function ST(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:s,stale:l}=e;if(s){if(n){if(t.queryHash!==wE(s,t.options))return!1}else if(!nh(t.queryKey,s))return!1}if(r!=="all"){const A=t.isActive();if(r==="active"&&!A||r==="inactive"&&A)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||a&&!a(t))}function NT(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(rh(t.options.mutationKey)!==rh(a))return!1}else if(!nh(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function wE(e,t){return((t==null?void 0:t.queryKeyHashFn)||rh)(e)}function rh(e){return JSON.stringify(e,(t,r)=>EC(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function nh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>nh(e[r],t[r])):!1}function e4(e,t){if(e===t)return e;const r=OT(e)&&OT(t);if(r||EC(e)&&EC(t)){const n=r?e:Object.keys(e),i=n.length,a=r?t:Object.keys(t),s=a.length,l=r?[]:{},A=new Set(n);let c=0;for(let u=0;u<s;u++){const d=r?u:a[u];(!r&&A.has(d)||r)&&e[d]===void 0&&t[d]===void 0?(l[d]=void 0,c++):(l[d]=e4(e[d],t[d]),l[d]===e[d]&&e[d]!==void 0&&c++)}return i===s&&c===i?e:l}return t}function OT(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function EC(e){if(!TT(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!TT(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function TT(e){return Object.prototype.toString.call(e)==="[object Object]"}function EX(e){return new Promise(t=>{setTimeout(t,e)})}function SX(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?e4(e,t):t}function NX(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function OX(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var bE=Symbol();function t4(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===bE?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var _l,Js,Rc,cQ,TX=(cQ=class extends yx{constructor(){super();st(this,_l);st(this,Js);st(this,Rc);Ke(this,Rc,t=>{if(!xx&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){Y(this,Js)||this.setEventListener(Y(this,Rc))}onUnsubscribe(){var t;this.hasListeners()||((t=Y(this,Js))==null||t.call(this),Ke(this,Js,void 0))}setEventListener(t){var r;Ke(this,Rc,t),(r=Y(this,Js))==null||r.call(this),Ke(this,Js,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){Y(this,_l)!==t&&(Ke(this,_l,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,924 bytes, line 326
326this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof Y(this,_l)=="boolean"?Y(this,_l):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_l=new WeakMap,Js=new WeakMap,Rc=new WeakMap,cQ),r4=new TX,Dc,Zs,Lc,uQ,FX=(uQ=class extends yx{constructor(){super();st(this,Dc,!0);st(this,Zs);st(this,Lc);Ke(this,Lc,t=>{if(!xx&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){Y(this,Zs)||this.setEventListener(Y(this,Lc))}onUnsubscribe(){var t;this.hasListeners()||((t=Y(this,Zs))==null||t.call(this),Ke(this,Zs,void 0))}setEventListener(t){var r;Ke(this,Lc,t),(r=Y(this,Zs))==null||r.call(this),Ke(this,Zs,t(this.setOnline.bind(this)))}setOnline(t){Y(this,Dc)!==t&&(Ke(this,Dc,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return Y(this,Dc)}},Dc=new WeakMap,Zs=new WeakMap,Lc=new WeakMap,uQ),Av=new FX;function PX(){let e,t;const r=new Promise((i,a)=>{e=i,t=a});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}function kX(e){return Math.min(1e3*2**e,3e4)}function n4(e){return(e??"online")==="online"?Av.isOnline():!0}var i4=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function V0(e){return e instanceof i4}function a4(e){let t=!1,r=0,n=!1,i;const a=PX(),s=p=>{var v;n||(f(new i4(p)),(v=e.abort)==null||v.call(e))},l=()=>{t=!0},A=()=>{t=!1},c=()=>r4.isFocused()&&(e.networkMode==="always"||Av.isOnline())&&e.canRun(),u=()=>n4(e.networkMode)&&e.canRun(),d=p=>{var v;n||(n=!0,(v=e.onSuccess)==null||v.call(e,p),i==null||i(),a.resolve(p))},f=p=>{var v;n||(n=!0,(v=e.onError)==null||v.call(e,p),i==null||i(),a.reject(p))},h=()=>new Promise(p=>{var v;i=x=>{(n||c())&&p(x)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;i=void 0,n||(p=e.onContinue)==null||p.call(e)}),m=()=>{if(n)return;let p;const v=r===0?e.initialPromise:void 0;try{p=v??e.fn()}catch(x){p=Promise.reject(x)}Promise.resolve(p).then(d).catch(x=>{var C;if(n)return;const g=e.retry??(xx?0:3),y=e.retryDelay??kX,B=typeof y=="function"?y(r,x):y,b=g===!0||typeof g=="number"&&r<g||typeof g=="function"&&g(r,x);if(t||!b){f(x);return}r++,(C=e.onFail)==null||C.call(e,r,x),EX(B).then(()=>c()?void 0:h()).then(()=>{t?f(x):m()})})};return{promise:a,cancel:s,continue:()=>(i==null||i(),a),cancelRetry:l,continueRetry:A,canStart:u,start:()=>(u()?m():h().then(m),a)}}var IX=e=>setTimeout(e,0);function UX(){let e=[],t=0,r=l=>{l()},n=l=>{l()},i=IX;const a=l=>{t?e.push(l):i(()=>{r(l)})},s=()=>{const l=e;e=[],l.length&&i(()=>{n(()=>{l.forEach(A=>{r(A)})})})};return{batch:l=>{let A;t++;try{A=l()}finally{t--,t||s()}return A},batchCalls:l=>(...A)=>{a(()=>{l(...A)})},schedule:a,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{i=l}}}var qr=UX(),El,dQ,s4=(dQ=class{constructor(){st(this,El)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),CX(this.gcTime)&&Ke(this,El,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xx?1/0:5*60*1e3))}clearGcTimeout(){Y(this,El)&&(clearTimeout(Y(this,El)),Ke(this,El,void 0))}},El=new WeakMap,dQ),$c,Sl,Zn,Nl,Ir,Xh,Ol,Ni,Ka,fQ,QX=(fQ=class extends s4{constructor(t){super();st(this,Ni);st(this,$c);st(this,Sl);st(this,Zn);st(this,Nl);st(this,Ir);st(this,Xh);st(this,Ol);Ke(this,Ol,!1),Ke(this,Xh,t.defaultOptions),this.setOptions(t.options),this.observers=[],Ke(this,Nl,t.client),Ke(this,Zn,Y(this,Nl).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ke(this,$c,RX(this.options)),this.state=t.state??Y(this,$c),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Y(this,Ir))==null?void 0:t.promise}setOptions(t){this.options={...Y(this,Xh),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Y(this,Zn).remove(this)}setData(t,r){const n=SX(this.state.data,t,this.options);return Fr(this,Ni,Ka).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){Fr(this,Ni,Ka).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=Y(this,Ir))==null?void 0:n.promise;return(i=Y(this,Ir))==null||i.cancel(t),r?r.then(Si).catch(Si):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Y(this,$c))}isActive(){return this.observers.some(t=>_X(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===bE||this.state.dataUpdateCount+this.state.errorUpdate
326Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>_C(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!jX(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=Y(this,Ir))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=Y(this,Ir))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Y(this,Zn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(Y(this,Ir)&&(Y(this,Ol)?Y(this,Ir).cancel({revert:!0}):Y(this,Ir).cancelRetry()),this.scheduleGc()),Y(this,Zn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Fr(this,Ni,Ka).call(this,{type:"invalidate"})}fetch(t,r){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(Y(this,Ir))return Y(this,Ir).continueRetry(),Y(this,Ir).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(Ke(this,Ol,!0),n.signal)})},a=()=>{const f=t4(this.options,r),m=(()=>{const p={client:Y(this,Nl),queryKey:this.queryKey,meta:this.meta};return i(p),p})();return Ke(this,Ol,!1),this.options.persister?this.options.persister(f,m,this):f(m)},l=(()=>{const f={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:Y(this,Nl),state:this.state,fetchFn:a};return i(f),f})();(c=this.options.behavior)==null||c.onFetch(l,this),Ke(this,Sl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=l.fetchOptions)==null?void 0:u.meta))&&Fr(this,Ni,Ka).call(this,{type:"fetch",meta:(d=l.fetchOptions)==null?void 0:d.meta});const A=f=>{var h,m,p,v;V0(f)&&f.silent||Fr(this,Ni,Ka).call(this,{type:"error",error:f}),V0(f)||((m=(h=Y(this,Zn).config).onError)==null||m.call(h,f,this),(v=(p=Y(this,Zn).config).onSettled)==null||v.call(p,this.state.data,f,this)),this.scheduleGc()};return Ke(this,Ir,a4({initialPromise:r==null?void 0:r.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var h,m,p,v;if(f===void 0){A(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(x){A(x);return}(m=(h=Y(this,Zn).config).onSuccess)==null||m.call(h,f,this),(v=(p=Y(this,Zn).config).onSettled)==null||v.call(p,f,this.state.error,this),this.scheduleGc()},onError:A,onFail:(f,h)=>{Fr(this,Ni,Ka).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{Fr(this,Ni,Ka).call(this,{type:"pause"})},onContinue:()=>{Fr(this,Ni,Ka).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),Y(this,Ir).start()}},$c=new WeakMap,Sl=new WeakMap,Zn=new WeakMap,Nl=new WeakMap,Ir=new WeakMap,Xh=new WeakMap,Ol=new WeakMap,Ni=new WeakSet,Ka=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...MX(n.data,this.options),fetchMeta:t.meta??null};case"success":return Ke(this,Sl,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return V0(i)&&i.revert&&Y(this,Sl)?{...Y(this,Sl),fetchStatus:"idle"}
vendor: 5,105 bytes, line 326
326:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),qr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),Y(this,Zn).notify({query:this,type:"updated",action:t})})},fQ);function MX(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:n4(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function RX(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var sa,hQ,DX=(hQ=class extends yx{constructor(t={}){super();st(this,sa);this.config=t,Ke(this,sa,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??wE(i,r);let s=this.get(a);return s||(s=new QX({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){Y(this,sa).has(t.queryHash)||(Y(this,sa).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=Y(this,sa).get(t.queryHash);r&&(t.destroy(),r===t&&Y(this,sa).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){qr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Y(this,sa).get(t)}getAll(){return[...Y(this,sa).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>ST(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>ST(t,n)):r}notify(t){qr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){qr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){qr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},sa=new WeakMap,hQ),oa,Kr,Tl,la,Ms,pQ,LX=(pQ=class extends s4{constructor(t){super();st(this,la);st(this,oa);st(this,Kr);st(this,Tl);this.mutationId=t.mutationId,Ke(this,Kr,t.mutationCache),Ke(this,oa,[]),this.state=t.state||$X(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Y(this,oa).includes(t)||(Y(this,oa).push(t),this.clearGcTimeout(),Y(this,Kr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Ke(this,oa,Y(this,oa).filter(r=>r!==t)),this.scheduleGc(),Y(this,Kr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Y(this,oa).length||(this.state.status==="pending"?this.scheduleGc():Y(this,Kr).remove(this))}continue(){var t;return((t=Y(this,Tl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,s,l,A,c,u,d,f,h,m,p,v,x,g,y,B,b,C,j,_;const r=()=>{Fr(this,la,Ms).call(this,{type:"continue"})};Ke(this,Tl,a4({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(E,I)=>{Fr(this,la,Ms).call(this,{type:"failed",failureCount:E,error:I})},onPause:()=>{Fr(this,la,Ms).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Y(this,Kr).canRun(this)}));const n=this.state.status==="pending",i=!Y(this,Tl).canStart();try{if(n)r();else{Fr(this,la,Ms).call(this,{type:"pending",variables:t,isPaused:i}),await((s=(a=Y(this,Kr).config).onMutate)==null?void 0:s.call(a,t,this));const I=await((A=(l=this.options).onMutate)==null?void 0:A.call(l,t));I!==this.state.context&&Fr(this,la,Ms).call(this,{type:"pending",context:I,variables:t,isPaused:i})}const E=await Y(this,Tl).start();return await((u=(c=Y(this,Kr).config).onSuccess)==null?void 0:u.call(c,E,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,E,t,this.state.context)),await((m=(h=Y(this,Kr).config).onSettled)==null?void 0:m.call(h,E,null,this.state.variables,this.state.context,this)),await((v=(p=this.options).onSettled)==null?void 0:v.call(p,E,null,t,this.state.context)),Fr(this,la,Ms).call(this,{type:"success",data:E}),E}catch(E){try{throw await((g=(x=Y(this,Kr).config).onError)==null?void 0:g.call(x,E,t,this.state.context,this)),await((B=(y=this.options).onError)==null?void 0:B.call(y,E,t,this.state.context)),await((C=(b=Y(this,Kr).config).onSettled)==null?void 0:C.call(b,void 0,E,this.state.variables,this.state.context,this)),await((_=(j=this.options).onSettled)==null?void 0:_.call(j,void 0,E,t,this.state.context)),E}finally{Fr(this,la,Ms).call(this,{type:"error",error:E})}}finally{Y(this,Kr).runNext(this)}}},oa=new WeakMap,Kr=new WeakMap,Tl=new WeakMap,la=new WeakSet,Ms=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};
326case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),qr.batch(()=>{Y(this,oa).forEach(n=>{n.onMutationUpdate(t)}),Y(this,Kr).notify({mutation:this,type:"updated",action:t})})},pQ);function $X(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var qa,Oi,Jh,mQ,HX=(mQ=class extends yx{constructor(t={}){super();st(this,qa);st(this,Oi);st(this,Jh);this.config=t,Ke(this,qa,new Set),Ke(this,Oi,new Map),Ke(this,Jh,0)}build(t,r,n){const i=new LX({mutationCache:this,mutationId:++Vp(this,Jh)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){Y(this,qa).add(t);const r=hm(t);if(typeof r=="string"){const n=Y(this,Oi).get(r);n?n.push(t):Y(this,Oi).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Y(this,qa).delete(t)){const r=hm(t);if(typeof r=="string"){const n=Y(this,Oi).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&Y(this,Oi).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=hm(t);if(typeof r=="string"){const n=Y(this,Oi).get(r),i=n==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=hm(t);if(typeof r=="string"){const i=(n=Y(this,Oi).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){qr.batch(()=>{Y(this,qa).forEach(t=>{this.notify({type:"removed",mutation:t})}),Y(this,qa).clear(),Y(this,Oi).clear()})}getAll(){return Array.from(Y(this,qa))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>NT(r,n))}findAll(t={}){return this.getAll().filter(r=>NT(t,r))}notify(t){qr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>
vendor: 5,355 bytes, line 326
326r.state.isPaused);return qr.batch(()=>Promise.all(t.map(r=>r.continue().catch(Si))))}},qa=new WeakMap,Oi=new WeakMap,Jh=new WeakMap,mQ);function hm(e){var t;return(t=e.options.scope)==null?void 0:t.id}function FT(e){return{onFetch:(t,r)=>{var u,d,f,h,m;const n=t.options,i=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,a=((h=t.state.data)==null?void 0:h.pages)||[],s=((m=t.state.data)==null?void 0:m.pageParams)||[];let l={pages:[],pageParams:[]},A=0;const c=async()=>{let p=!1;const v=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},x=t4(t.options,t.fetchOptions),g=async(y,B,b)=>{if(p)return Promise.reject();if(B==null&&y.pages.length)return Promise.resolve(y);const j=(()=>{const T={client:t.client,queryKey:t.queryKey,pageParam:B,direction:b?"backward":"forward",meta:t.options.meta};return v(T),T})(),_=await x(j),{maxPages:E}=t.options,I=b?OX:NX;return{pages:I(y.pages,_,E),pageParams:I(y.pageParams,B,E)}};if(i&&a.length){const y=i==="backward",B=y?KX:PT,b={pages:a,pageParams:s},C=B(n,b);l=await g(b,C,y)}else{const y=e??a.length;do{const B=A===0?s[0]??n.initialPageParam:PT(n,l);if(A>0&&B==null)break;l=await g(l,B),A++}while(A<y)}return l};t.options.persister?t.fetchFn=()=>{var p,v;return(v=(p=t.options).persister)==null?void 0:v.call(p,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=c}}}function PT(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function KX(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var $t,eo,to,Hc,Kc,ro,Vc,Wc,gQ,VX=(gQ=class{constructor(e={}){st(this,$t);st(this,eo);st(this,to);st(this,Hc);st(this,Kc);st(this,ro);st(this,Vc);st(this,Wc);Ke(this,$t,e.queryCache||new DX),Ke(this,eo,e.mutationCache||new HX),Ke(this,to,e.defaultOptions||{}),Ke(this,Hc,new Map),Ke(this,Kc,new Map),Ke(this,ro,0)}mount(){Vp(this,ro)._++,Y(this,ro)===1&&(Ke(this,Vc,r4.subscribe(async e=>{e&&(await this.resumePausedMutations(),Y(this,$t).onFocus())})),Ke(this,Wc,Av.subscribe(async e=>{e&&(await this.resumePausedMutations(),Y(this,$t).onOnline())})))}unmount(){var e,t;Vp(this,ro)._--,Y(this,ro)===0&&((e=Y(this,Vc))==null||e.call(this),Ke(this,Vc,void 0),(t=Y(this,Wc))==null||t.call(this),Ke(this,Wc,void 0))}isFetching(e){return Y(this,$t).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Y(this,eo).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Y(this,$t).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=Y(this,$t).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(_C(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return Y(this,$t).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=Y(this,$t).get(n.queryHash),a=i==null?void 0:i.state.data,s=BX(t,a);if(s!==void 0)return Y(this,$t).build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return qr.batch(()=>Y(this,$t).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Y(this,$t).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=Y(this,$t);qr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=Y(this,$t);return qr.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=qr.batch(()=>Y(this,$t).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(Si).catch(Si)}invalidateQueries(e,t={}){return qr.batch(()=>(Y(this,$t).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=qr.batch(()=>Y(this,$t).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch(Si)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(Si)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=Y(this,$t).build(this,t);return r.isStaleByTime(_C(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Si).catch(Si)}fetchInfiniteQuery(e){return e.behavior=FT(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Si).catch(Si)}ensureInfiniteQueryData(e){return e.behavior=FT(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Av.isOnline()?Y(this,eo).resumePausedMutations():Promise.resolve()}getQueryCache(){return Y(this,$t)}getMutationCache(){return Y(this,eo)}getDefaultOptions(){return Y(this,to)}setDefaultOptions(e){Ke(this,to,e)}setQueryDefaults(e,t){Y(this,Hc).set(rh(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Y(this,Hc).values()],r={};return t.forEach(n=>
326{nh(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){Y(this,Kc).set(rh(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Y(this,Kc).values()],r={};return t.forEach(n=>{nh(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Y(this,to).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=wE(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===bE&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Y(this,to).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Y(this,$t).clear(),Y(this,eo).clear()}},$t=new WeakMap,eo=new WeakMap,to=new WeakMap,Hc=new WeakMap,Kc=new WeakMap,ro=new WeakMap,Vc=new WeakMap,Wc=new WeakMap,gQ),WX=w.createContext(void 0),GX=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),o.jsx(WX.Provider,{value:e,children:t}));/** 327 * @remix-run/router v1.23.0 328 * 329 * Copyright (c) Remix Software Inc. 330 * 331 * This source code is licensed under the MIT license found in the 332 * LICENSE.md file in the root directory of this source tree. 333 * 334 * @license MIT 335 */function ih(){return ih=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ih.apply(this,arguments)}var oo;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(oo||(oo={}));const kT="popstate";function zX(e){e===void 0&&(e={});function t(n,i){let{pathname:a,search:s,hash:l}=n.location;return SC("",{pathname:a,search:s,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:cv(i)}return YX(t,r,null,e)}function nr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function o4(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qX(){return Math.random().toString(36).substr(2,8)}function IT(e,t){return{usr:e.state,key:e.key,idx:t}}function SC(e,t,r,n){return r===void 0&&(r=null),ih({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Wu(t):t,{state:r,key:t&&t.key||n||qX()})}function cv(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Wu(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function YX(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,s=i.history,l=oo.Pop,A=null,c=u();c==null&&(c=0,s.replaceState(ih({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){l=oo.Pop;let v=u(),x=v==null?null:v-c;c=v,A&&A({action:l,location:p.location,delta:x})}function f(v,x){l=oo.Push;let g=SC(p.location,v,x);c=u()+1;let y=IT(g,c),B=p.createHref(g);try{s.pushState(y,"",B)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;i.location.assign(B)}a&&A&&A({action:l,location:p.location,delta:1})}function h(v,x){l=oo.Replace;let g=SC(p.location,v,x);c=u();let y=IT(g,c),B=p.createHref(g);s.replaceState(y,"",B),a&&A&&A({action:l,location:p.location,delta:0})}function m(v){let x=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof v=="string"?v:cv(v);return g=g.replace(/ $/,"%20"),nr(x,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,x)}let p={get action(){return l},get location(){return e(i,s)},listen(v){if(A)throw new Error("A history only accepts one active listener");return i.addEventListener(kT,d),A=v,()=>{i.removeEventListener(kT,d),A=null}},createHref(v){return t(i,v)},createURL:m,encodeLocation(v){let x=m(v);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:f,replace:h,go(v){return s.go(v)}};return p}var UT;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(UT||(UT={}));function XX(e,t,r){return r===void 0&&(r="/"),JX(e,t,r,!1)}function JX(e,t,r,n){let i=typeof t=="string"?Wu(t):t,a=BE(i.pathname||"/",r);if(a==null)return null;let s=l4(e);ZX(s);let l=null;for(let A=0;l==null&&A<s.length;++A){let c=cJ(a);l=lJ(s[A],c,n)}return l}function l4(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(a,s,l)=>{let A={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};A.relativePath.startsWith("/")&&(nr(A.relativePath.startsWith(n),'Absolute route path "'+A.relativePath+'" nested under path '+('"'+n+'" is not val
335id. An absolute child route path ')+"must start with the combined path of all its parent routes."),A.relativePath=A.relativePath.slice(n.length));let c=bo([n,A.relativePath]),u=r.concat(A);a.children&&a.children.length>0&&(nr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),l4(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:sJ(c,a.index),routesMeta:u})};return e.forEach((a,s)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,s);else for(let A of A4(a.path))i(a,s,A)}),t}function A4(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let s=A4(n.join("/")),l=[];return l.push(...s.map(A=>A===""?a:[a,A].join("/"))),i&&l.push(...s),l.map(A=>e.startsWith("/")&&A===""?"/":A)}function ZX(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:oJ(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const eJ=/^:[\w-]+$/,tJ=3,rJ=2,nJ=1,iJ=10,aJ=-2,QT=e=>e==="*";function sJ(e,t){let r=e.split("/"),n=r.length;return r.some(QT)&&(n+=aJ),t&&(n+=rJ),r.filter(i=>!QT(i)).reduce((i,a)=>i+(eJ.test(a)?tJ:a===""?nJ:iJ),n)}function oJ(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function lJ(e,t,r){let{routesMeta:n}=e,i={},a="/",s=[];for(let l=0;l<n.length;++l){let A=n[l],c=l===n.length-1,u=a==="/"?t:t.slice(a.length)||"/",d=MT({path:A.relativePath,caseSensitive:A.caseSensitive,end:c},u),f=A.route;if(!d&&c&&r&&!n[n.length-1].route.index&&(d=MT({path:A.relativePath,caseSensitive:A.caseSensitive,end:!1},u)),!d)return null;
vendor: 12,611 bytes, lines 335-353
335Object.assign(i,d.params),s.push({params:i,pathname:bo([a,d.pathname]),pathnameBase:hJ(bo([a,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(a=bo([a,d.pathnameBase]))}return s}function MT(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=AJ(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:n.reduce((c,u,d)=>{let{paramName:f,isOptional:h}=u;if(f==="*"){let p=l[d]||"";s=a.slice(0,a.length-p.length).replace(/(.)\/+$/,"$1")}const m=l[d];return h&&!m?c[f]=void 0:c[f]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:s,pattern:e}}function AJ(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),o4(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,A)=>(n.push({paramName:l,isOptional:A!=null}),A?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function cJ(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return o4(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function BE(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function uJ(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Wu(e):e;return{pathname:r?r.startsWith("/")?r:dJ(r,t):t,search:pJ(n),hash:mJ(i)}}function dJ(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function W0(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function fJ(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function c4(e,t){let r=fJ(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function u4(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Wu(e):(i=ih({},e),nr(!i.pathname||!i.pathname.includes("?"),W0("?","pathname","search",i)),nr(!i.pathname||!i.pathname.includes("#"),W0("#","pathname","hash",i)),nr(!i.search||!i.search.includes("#"),W0("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,l;if(s==null)l=r;else{let d=t.length-1;if(!n&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}l=d>=0?t[d]:"/"}let A=uJ(i,l),c=s&&s!=="/"&&s.endsWith("/"),u=(a||s===".")&&r.endsWith("/");return!A.pathname.endsWith("/")&&(c||u)&&(A.pathname+="/"),A}const bo=e=>e.join("/").replace(/\/\/+/g,"/"),hJ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),pJ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mJ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function gJ(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const d4=["post","put","patch","delete"];new Set(d4);const vJ=["get",...d4];new Set(vJ);/** 336 * React Router v6.30.1 337 * 338 * Copyright (c) Remix Software Inc. 339 * 340 * This source code is licensed under the MIT license found in the 341 * LICENSE.md file in the root directory of this source tree. 342 * 343 * @license MIT 344 */function ah(){return ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ah.apply(this,arguments)}const CE=w.createContext(null),yJ=w.createContext(null),oA=w.createContext(null),wx=w.createContext(null),Ro=w.createContext({outlet:null,matches:[],isDataRoute:!1}),f4=w.createContext(null);function xJ(e,t){let{relative:r}=t===void 0?{}:t;up()||nr(!1);let{basename:n,navigator:i}=w.useContext(oA),{hash:a,pathname:s,search:l}=p4(e,{relative:r}),A=s;return n!=="/"&&(A=s==="/"?n:bo([n,s])),i.createHref({pathname:A,search:l,hash:a})}function up(){return w.useContext(wx)!=null}function Do(){return up()||nr(!1),w.useContext(wx).location}function h4(e){w.useContext(oA).static||w.useLayoutEffect(e)}function Wn(){let{isDataRoute:e}=w.useContext(Ro);return e?PJ():wJ()}function wJ(){up()||nr(!1);let e=w.useContext(CE),{basename:t,future:r,navigator:n}=w.useContext(oA),{matches:i}=w.useContext(Ro),{pathname:a}=Do(),s=JSON.stringify(c4(i,r.v7_relativeSplatPath)),l=w.useRef(!1);return h4(()=>{l.current=!0}),w.useCallback(function(c,u){if(u===void 0&&(u={}),!l.current)return;if(typeof c=="number"){n.go(c);return}let d=u4(c,JSON.parse(s),a,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:bo([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,s,a,e])}function jE(){let{matches:e}=w.useContext(Ro),t=e[e.length-1];return t?t.params:{}}function p4(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=w.useContext(oA),{matches:i}=w.useContext(Ro),{pathname:a}=Do(),s=JSON.stringify(c4(i,n.v7_relativeSplatPath));return w.useMemo(()=>u4(e,JSON.parse(s),a,r==="path"),[e,s,a,r])}function bJ(e,t){return BJ(e,t)}function BJ(e,t,r,n){up()||nr(!1);let{navigator:i}=w.useContext(oA),{matches:a}=w.useContext(Ro),s=a[a.length-1],l=s?s.params:{};s&&s.pathname;let A=s?s.pathnameBase:"/";s&&s.route;let c=Do(),u;if(t){var d;let v=typeof t=="string"?Wu(t):t;A==="/"||(d=v.pathname)!=null&&d.startsWith(A)||nr(!1),u=v}else u=c;let f=u.pathname||"/",h=f;if(A!=="/"){let v=A.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(v.length).join("/")}let m=XX(e,{pathname:h}),p=SJ(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:bo([A,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?A:bo([A,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,r,n);return t&&p?w.createElement(wx.Provider,{value:{location:ah({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:oo.Pop}},p):p}function CJ(){let e=FJ(),t=gJ(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),r?w.createElement("pre",{style:i},r):null,null)}const jJ=w.createElement(CJ,null);class _J extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?w.createElement(Ro.Provider,{value:this.props.routeContext},w.createElement(f4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function EJ(e){let{routeContext:t,match:r,children:n}=e,i=w.useContext(CE);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),w.createElement(Ro.Provider,{value:t},n)}function SJ(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,l=(i=r)==null?void 0:i.errors;if(l!=null){let u=s.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id])!==void 0);u>=0||nr(!1),s=s.slice(0,Math.min(s.length,u+1))}let A=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u<s.length;u++){let d=s[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:f,errors:h}=r,m=d.route.loader&&f[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||m){A=!0,c>=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,f)=>{let h,m=!1,p=null,v=null;r&&(h=l&&d.route.id?l[d.route.id]:void 0,p=d.route.errorElement||jJ,A&&(c<0&&f===0?(m=!0,v=null):c===f&&(m=!0,v=d.route.hydrateFallbackElement||null)));let x=t.concat(s.slice(0,f+1)),g=()=>{let y;return h?y=p:m?y=v:d.route.Component?y=w.createElement(d.route.Component,null):d.route.element?y=d.route.element:y=u,w.createElement(EJ,{match:d,routeContext:{outlet:u,matches:x,isDataRoute:r!=null},children:y})};return r&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?w.createElement(_J,{location:r.location,revalidation:r.revalidation,component:p,error:h,children:g(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):g()},null)}var m4=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(m4||{}),uv=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(uv||{});function NJ(e){let t=w.useContext(CE);return t||nr(!1),t}function OJ(e){let t=w.useContext(yJ);return t||nr(!1),t}function TJ(e){let t=w.useContext(Ro);return t||nr(!1),t}function g4(e){let t=TJ(),r=t.matches[t.matches.length-1];return r.route.id||nr(!1),r.route.id}function FJ(){var e;let t=w.useContext(f4),r=OJ(uv.UseRouteError),n=g4(uv.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function PJ(){let{router:e}=NJ(m4.UseNavigateStable),t=g4(uv.UseNavigateStable),r=w.useRef(!1);return h4(()=>{r.current=!0}),w.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ah({fromRouteId:t},a)))},[e,t])}function kJ(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Lt(e){nr(!1)}function IJ(e){let{basename:t="/",children:r=null,location:n,navigationType:i=oo.Pop,navigator:a,static:s=!1,future:l}=e;up()&&nr(!1);let A=t.replace(/^\/*/,"/"),c=w.useMemo(()=>({basename:A,navigator:a,static:s,future:ah({v7_relativeSplatPath:!1},l)}),[A,l,a,s]);typeof n=="string"&&(n=Wu(n));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:m="default"}=n,p=w.useMemo(()=>{let v=BE(u,A);return v==null?null:{location:{pathname:v,search:d,hash:f,state:h,key:m},navigationType:i}},[A,u,d,f,h,m,i]);return p==null?null:w.createElement(oA.Provider,{value:c},w.createElement(wx.Provider,{children:r,value:p}))}function UJ(e){let{children:t,location:r}=e;return bJ(NC(t),r)}new Promise(()=>{});function NC(e,t){t===void 0&&(t=[]);let r=[];return w.Children.forEach(e,(n,i)=>{if(!w.isValidElement(n))return;let a=[...t,i];if(n.type===w.Fragment){r.push.apply(r,NC(n.props.children,a));return}n.type!==Lt&&nr(!1),!n.props.index||!n.props.children||nr(!1);let s={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=NC(n.props.children,a)),r.push(s)}),r}/** 345 * React Router DOM v6.30.1 346 * 347 * Copyright (c) Remix Software Inc. 348 * 349 * This source code is licensed under the MIT license found in the 350 * LICENSE.md file in the root directory of this source tree. 351 * 352 * @license MIT 353 */function OC(){return OC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
353for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},OC.apply(this,arguments)}function QJ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function MJ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function RJ(e,t){return e.button===0&&(!t||t==="_self")&&!MJ(e)}const DJ=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],LJ="6";try{window.__reactRouterVersion=LJ}catch{}const $J="startTransition",RT=l_[$J];function HJ(e){let{basename:t,children:r,future:n,window:i}=e,a=w.useRef();a.current==null&&(a.current=zX({window:i,v5Compat:!0}));let s=a.current,[l,A]=w.useState({action:s.action,location:s.location}),{v7_startTransition:c}=n||{},u=w.useCallback(d=>{c&&RT?RT(()=>A(d)):A(d)},[A,c]);return w.useLayoutEffect(()=>s.listen(u),[s,u]),w.useEffect(()=>kJ(n),[n]),w.createElement(IJ,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:s,future:n})}const KJ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",VJ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,de=w.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:a,replace:s,state:l,target:A,to:c,preventScrollReset:u,viewTransition:d}=t,f=QJ(t,DJ),{basename:h}=w.useContext(oA),m,p=!1;if(typeof c=="string"&&VJ.test(c)&&(m=c,KJ))try{let y=new URL(window.location.href),B=c.startsWith("//")?new URL(y.protocol+c):new URL(c),b=BE(B.pathname,h);B.origin===y.origin&&b!=null?c=b+B.search+B.hash:p=!0}catch{}let v=xJ(c,{relative:i}),x=WJ(c,{replace:s,state:l,target:A,preventScrollReset:u,relative:i,viewTransition:d});function g(y){n&&n(y),y.defaultPrevented||x(y)}return w.createElement("a",OC({},f,{href:m||v,onClick:p||a?n:g,ref:r,target:A}))});var DT;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(DT||(DT={}));var LT;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(LT||(LT={}));function WJ(e,t){let{target:r,replace:n,state:i,preventScrollReset:a,relative:s,viewTransition:l}=t===void 0?{}:t,A=Wn(),c=Do(),u=p4(e,{relative:s});return w.useCallback(d=>{if(RJ(d,r)){d.preventDefault();let f=n!==void 0?n:cv(c)===cv(u);A(e,{replace:f,state:i,preventScrollReset:a,relative:s,viewTransition:l})}},[c,A,u,n,i,r,e,a,s,l])}const GJ="modulepreload",zJ=function(e){return"/"+e},$T={},dp=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(r.map(A=>{if(A=zJ(A),A in $T)return;$T[A]=!0;const c=A.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${A}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":GJ,c||(d.as="script"),d.crossOrigin="",d.href=A,l&&d.setAttribute("nonce",l),document.head.appendChild(d),c)return new Promise((f,h)=>{d.addEventListener("load",f),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${A}`)))})}))}function a(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return i.then(s=>{for(const l of s||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})},qJ=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>dp(async()=>{const{default:n}=await Promise.resolve().then(()=>Gu);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)};class _E extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class HT extends _E{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class KT extends _E{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class VT extends _E{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var TC;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(TC||(TC={}));var YJ=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(u){try{c(n.next(u))}catch(d){s(d)}}function A(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?a(u.value):i(u.value).then(l,A)}c((n=n.apply(e,t||[])).next())})};class XJ{constructor(t,{headers:r={},customFetch:n,region:i=TC.Any}={}){this.url=t,this.headers=r,this.region=i,this.fetch=qJ(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return YJ(this,arguments,void 0,function*(r,n={}){var i;try{const{headers:a,method:s,body:l,signal:A}=n;let c={},{region:u}=n;u||(u=this.region);const d=new URL(`${this.url}/${r}`);u&&u!=="any"&&(c["x-region"]=u,d.searchParams.set("forceFunctionRegion",u));let f;
353l&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)&&(typeof Blob<"u"&&l instanceof Blob||l instanceof ArrayBuffer?(c["Content-Type"]="application/octet-stream",f=l):typeof l=="string"?(c["Content-Type"]="text/plain",f=l):typeof FormData<"u"&&l instanceof FormData?f=l:(c["Content-Type"]="application/json",f=JSON.stringify(l)));const h=yield this.fetch(d.toString(),{method:s||"POST",headers:Object.assign(Object.assign(Object.assign({},c),this.headers),a),body:f,signal:A}).catch(x=>{throw x.name==="AbortError"?x:new HT(x)}),m=h.headers.get("x-relay-error");if(m&&m==="true")throw new KT(h);if(!h.ok)throw new VT(h);let p=((i=h.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),v;return p==="application/json"?v=yield h.json():p==="application/octet-stream"?v=yield h.blob():p==="text/event-stream"?v=h:p==="multipart/form-data"?v=yield h.formData():v=yield h.text(),{data:v,error:null,response:h}}catch(a){return a instanceof Error&&a.name==="AbortError"?{data:null,error:new HT(a)}:{data:null,error:a,response:a instanceof VT||a instanceof KT?a.context:void 0}}})}}var dn={},EE={},bx={},fp={},Bx={},Cx={},JJ=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},nu=JJ();const ZJ=nu.fetch,v4=nu.fetch.bind(nu),y4=nu.Headers,eZ=nu.Request,tZ=nu.Response,Gu=Object.freeze(Object.defineProperty({__proto__:null,Headers:y4,Request:eZ,Response:tZ,default:v4,fetch:ZJ},Symbol.toStringTag,{value:"Module"})),rZ=rW(Gu);var jx={};Object.defineProperty(jx,"__esModule",{value:!0});let nZ=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
353de=t.code}};jx.default=nZ;var x4=Lr&&Lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Cx,"__esModule",{value:!0});const iZ=x4(rZ),aZ=x4(jx);let sZ=class{constructor(t){var r,n;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(r=t.shouldThrowOnError)!==null&&r!==void 0?r:!1,this.signal=t.signal,this.isMaybeSingle=(n=t.isMaybeSingle)!==null&&n!==void 0?n:!1,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=iZ.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,r){return this.headers=new Headers(this.headers),this.headers.set(t,r),this}then(t,r){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const n=this.fetch;let i=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async a=>{var s,l,A,c;let u=null,d=null,f=null,h=a.status,m=a.statusText;if(a.ok){if(this.method!=="HEAD"){const g=await a.text();g===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((s=this.headers.get("Accept"))===null||s===void 0)&&s.includes("application/vnd.pgrst.plan+text"))?d=g:d=JSON.parse(g))}const v=(l=this.headers.get("Prefer"))===null||l===void 0?void 0:l.match(/count=(exact|planned|estimated)/),x=(A=a.headers.get("content-range"))===null||A===void 0?void 0:A.split("/");v&&x&&x.length>1&&(f=parseInt(x[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(d)&&(d.length>1?(u={code:"PGRST116",details:`Results contain ${d.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},d=null,f=null,h=406,m="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const v=await a.text();try{u=JSON.parse(v),Array.isArray(u)&&a.status===404&&(d=[],u=null,h=200,m="OK")}catch{a.status===404&&v===""?(h=204,m="No Content"):u={message:v}}if(u&&this.isMaybeSingle&&(!((c=u==null?void 0:u.details)===null||c===void 0)&&c.includes("0 rows"))&&(u=null,h=200,m="OK"),u&&this.shouldThrowOnError)throw new aZ.default(u)}return{error:u,data:d,count:f,status:h,statusText:m}});return this.shouldThrowOnError||(i=i.catch(a=>{var s,l,A;return{error:{message:`${(s=a==null?void 0:a.name)!==null&&s!==void 0?s:"FetchError"}: ${a==null?void 0:a.message}`,details:`${(l=a==null?void 0:a.stack)!==null&&l!==void 0?l:""}`,hint:"",code:`${(A=a==null?void 0:a.code)!==null&&A!==void 0?A:""}`},data:null,count:null,status:0,statusText:""}})),i.then(t,r)}returns(){return this}overrideTypes(){return this}};Cx.default=sZ;var oZ=Lr&&Lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bx,"__esModule",{value:!0});const lZ=oZ(Cx);let AZ=class extends lZ.default{select(t){let r=!1;const n=(t??"*").split("").map(i=>/\s/.test(i)&&!r?"":(i==='"'&&(r=!r),i)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:r=!0,nullsFirst:n,foreignTable:i,referencedTable:a=i}={}){const s=a?`${a}.order`:"order",l=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${l?`${l},`:""}${t}.${r?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:r,referencedTable:n=r}={}){const i=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(i,`${t}`),this}range(t,r,{foreignTable:n,referencedTable:i=n}={}){const a=typeof i>"u"?"offset":`${i}.offset`,s=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(a,`${t}`),this.url.searchParams.set(s,`${r-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
353explain({analyze:t=!1,verbose:r=!1,settings:n=!1,buffers:i=!1,wal:a=!1,format:s="text"}={}){var l;const A=[t?"analyze":null,r?"verbose":null,n?"settings":null,i?"buffers":null,a?"wal":null].filter(Boolean).join("|"),c=(l=this.headers.get("Accept"))!==null&&l!==void 0?l:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${s}; for="${c}"; options=${A};`),s==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};Bx.default=AZ;var cZ=Lr&&Lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fp,"__esModule",{value:!0});const uZ=cZ(Bx);let dZ=class extends uZ.default{eq(t,r){return this.url.searchParams.append(t,`eq.${r}`),this}neq(t,r){return this.url.searchParams.append(t,`neq.${r}`),this}gt(t,r){return this.url.searchParams.append(t,`gt.${r}`),this}gte(t,r){return this.url.searchParams.append(t,`gte.${r}`),this}lt(t,r){return this.url.searchParams.append(t,`lt.${r}`),this}lte(t,r){return this.url.searchParams.append(t,`lte.${r}`),this}like(t,r){return this.url.searchParams.append(t,`like.${r}`),this}likeAllOf(t,r){return this.url.searchParams.append(t,`like(all).{${r.join(",")}}`),this}likeAnyOf(t,r){return this.url.searchParams.append(t,`like(any).{${r.join(",")}}`),this}ilike(t,r){return this.url.searchParams.append(t,`ilike.${r}`),this}ilikeAllOf(t,r){return this.url.searchParams.append(t,`ilike(all).{${r.join(",")}}`),this}ilikeAnyOf(t,r){return this.url.searchParams.append(t,`ilike(any).{${r.join(",")}}`),this}is(t,r){return this.url.searchParams.append(t,`is.${r}`),this}in(t,r){const n=Array.from(new Set(r)).map(i=>typeof i=="string"&&new RegExp("[,()]").test(i)?`"${i}"`:`${i}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}contains(t,r){return typeof r=="string"?this.url.searchParams.append(t,`cs.${r}`):Array.isArray(r)?this.url.searchParams.append(t,`cs.{${r.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(r)}`),this}containedBy(t,r){return typeof r=="string"?this.url.searchParams.append(t,`cd.${r}`):Array.isArray(r)?this.url.searchParams.append(t,`cd.{${r.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(r)}`),this}rangeGt(t,r){return this.url.searchParams.append(t,`sr.${r}`),this}rangeGte(t,r){return this.url.searchParams.append(t,`nxl.${r}`),this}rangeLt(t,r){return this.url.searchParams.append(t,`sl.${r}`),this}rangeLte(t,r){return this.url.searchParams.append(t,`nxr.${r}`),this}rangeAdjacent(t,r){return this.url.searchParams.append(t,`adj.${r}`),this}overlaps(t,r){return typeof r=="string"?this.url.searchParams.append(t,`ov.${r}`):this.url.searchParams.append(t,`ov.{${r.join(",")}}`),this}textSearch(t,r,{config:n,type:i}={}){let a="";i==="plain"?a="pl":i==="phrase"?a="ph":i==="websearch"&&(a="w");const s=n===void 0?"":`(${n})`;return this.url.searchParams.append(t,`${a}fts${s}.${r}`),this}match(t){return Object.entries(t).forEach(([r,n])=>{this.url.searchParams.append(r,`eq.${n}`)}),this}not(t,r,n){return this.url.searchParams.append(t,`not.${r}.${n}`),this}or(t,{foreignTable:r,referencedTable:n=r}={}){const i=n?`${n}.or`:"or";return this.url.searchParams.append(i,`(${t})`),this}filter(t,r,n){return this.url.searchParams.append(t,`${r}.${n}`),this}};fp.default=dZ;var fZ=Lr&&Lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bx,"__esModule",{value:!0});const _d=fZ(fp);let hZ=class{constructor(t,{headers:r={},schema:n,fetch:i}){this.url=t,this.headers=new Headers(r),this.schema=n,this.fetch=i}select(t,r){const{head:n=!1,count:i}=r??{},a=n?"HEAD":"GET";let s=!1;const l=(t??"*").split("").map(A=>/\s/.test(A)&&!s?"":(A==='"'&&(s=!s),A)).join("");return this.url.searchParams.set("select",l),i&&this.headers.append("Prefer",`count=${i}`),new _d.default({method:a,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(t,{count:r,defaultToNull:n=!0}={}){var i;const a="POST";if(r&&this.headers.append("Prefer",`count=${r}`),n||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const s=t.reduce((l,A)=>l.concat(Object.keys(A)),[]);if(s.length>0){const l=[...new Set(s)].map(A=>`"${A}"`);this.url.searchParams.set("columns",l.join(","))}}return new _d.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}upsert(t,{onConflict:r,ignoreDuplicates:n=!1,count:i,defaultToNull:a=!0}={}){var s;const l="POST";if(this.headers.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),r!==void 0&&this.url.searchParams.set("on_conflict",r),i&&this.headers.append("Prefer",`count=${i}`),a||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const A=t.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(A.length>0){const c=[...new Set(A)].map(u=>`"${u}"`);this.url.searchParams.set("columns",c.join(","))}}return new _d.default({method:l,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}update(t,{count:r}={}){var n;const i="PATCH";return r&&this.headers.append("Prefer",`count=${r}`),new _d.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}delete({count:t}={}){var r;const n="DELETE";return t&&this.headers.append("Prefer",`count=${t}`),new _d.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}};bx.default=hZ;
353var w4=Lr&&Lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(EE,"__esModule",{value:!0});const pZ=w4(bx),mZ=w4(fp);let gZ=class b4{constructor(t,{headers:r={},schema:n,fetch:i}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.fetch=i}from(t){const r=new URL(`${this.url}/${t}`);return new pZ.default(r,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new b4(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,r={},{head:n=!1,get:i=!1,count:a}={}){var s;let l;const A=new URL(`${this.url}/rpc/${t}`);let c;n||i?(l=n?"HEAD":"GET",Object.entries(r).filter(([d,f])=>f!==void 0).map(([d,f])=>[d,Array.isArray(f)?`{${f.join(",")}}`:`${f}`]).forEach(([d,f])=>{A.searchParams.append(d,f)})):(l="POST",c=r);const u=new Headers(this.headers);return a&&u.set("Prefer",`count=${a}`),new mZ.default({method:l,url:A,headers:u,schema:this.schemaName,body:c,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}};EE.default=gZ;var zu=Lr&&Lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dn,"__esModule",{value:!0});dn.PostgrestError=dn.PostgrestBuilder=dn.PostgrestTransformBuilder=dn.PostgrestFilterBuilder=dn.PostgrestQueryBuilder=dn.PostgrestClient=void 0;const B4=zu(EE);dn.PostgrestClient=B4.default;const C4=zu(bx);dn.PostgrestQueryBuilder=C4.default;const j4=zu(fp);dn.PostgrestFilterBuilder=j4.default;const _4=zu(Bx);dn.PostgrestTransformBuilder=_4.default;const E4=zu(Cx);dn.PostgrestBuilder=E4.default;const S4=zu(jx);dn.PostgrestError=S4.default;var vZ=dn.default={PostgrestClient:B4.default,PostgrestQueryBuilder:C4.default,PostgrestFilterBuilder:j4.default,PostgrestTransformBuilder:_4.default,PostgrestBuilder:E4.default,PostgrestError:S4.default};const{PostgrestClient:yZ,PostgrestQueryBuilder:H4e,PostgrestFilterBuilder:K4e,PostgrestTransformBuilder:V4e,PostgrestBuilder:W4e,PostgrestError:G4e}=vZ;class xZ{static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const r=process.versions;if(r&&r.node){const n=r.node,i=parseInt(n.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 354import ws from "ws" 355new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=` 356 357Suggested solution: ${t.workaround}`),new Error(r)}static createWebSocket(t,r){const n=this.getWebSocketConstructor();return new n(t,r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const wZ="2.75.0",bZ=`realtime-js/${wZ}`,BZ="1.0.0",FC=1e4,CZ=1e3,jZ=100;var yf;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(yf||(yf={}));var or;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(or||(or={}));var Fi;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Fi||(Fi={}));var PC;(function(e){e.websocket="websocket"})(PC||(PC={}));var ul;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(ul||(ul={}));class _Z{constructor(){this.HEADER_LENGTH=1}decode(t,r){return t.constructor===ArrayBuffer?r(this._binaryDecode(t)):r(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const r=new DataView(t),n=new TextDecoder;return this._decodeBroadcast(t,r,n)}_decodeBroadcast(t,r,n){const i=r.getUint8(1),a=r.getUint8(2);let s=this.HEADER_LENGTH+2;const l=n.decode(t.slice(s,s+i));s=s+i;const A=n.decode(t.slice(s,s+a));s=s+a;const c=JSON.parse(n.decode(t.slice(s,t.byteLength)));return{ref:null,topic:l,event:A,payload:c}}}class N4{constructor(t,r){this.callback=t,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var wt;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(wt||(wt={}));const WT=(e,t,r={})=>{var n;const i=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((a,s)=>(a[s]=EZ(s,e,t,i),a),{}):{}},EZ=(e,t,r,n)=>{const i=t.find(l=>
357l.name===e),a=i==null?void 0:i.type,s=r[e];return a&&!n.includes(a)?O4(a,s):kC(s)},O4=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return TZ(t,r)}switch(e){case wt.bool:return SZ(t);case wt.float4:case wt.float8:case wt.int2:case wt.int4:case wt.int8:case wt.numeric:case wt.oid:return NZ(t);case wt.json:case wt.jsonb:return OZ(t);case wt.timestamp:return FZ(t);case wt.abstime:case wt.date:case wt.daterange:case wt.int4range:case wt.int8range:case wt.money:case wt.reltime:case wt.text:case wt.time:case wt.timestamptz:case wt.timetz:case wt.tsrange:case wt.tstzrange:return kC(t);default:return kC(t)}},kC=e=>e,SZ=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},NZ=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},OZ=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},TZ=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let a;const s=e.slice(1,r);try{a=JSON.parse("["+s+"]")}catch{a=s?s.split(","):[]}return a.map(l=>O4(t,l))}return e},FZ=e=>typeof e=="string"?e.replace(" ","T"):e,T4=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class G0{constructor(t,r,n={},i=FC){this.channel=t,this.event=r,this.payload=n,this.timeout=i,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,r){var n;return this._hasReceived(t)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:t,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:r}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(r))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var GT;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(GT||(GT={}));class xf{constructor(t,r){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},i=>{const{onJoin:a,onLeave:s,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=xf.syncState(this.state,i,a,s),this.pendingDiffs.forEach(A=>{this.state=xf.syncDiff(this.state,A,a,s)}),this.pendingDiffs=[],l()}),this.channel._on(n.diff,{},i=>{const{onJoin:a,onLeave:s,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=xf.syncDiff(this.state,i,a,s),l())}),this.onJoin((i,a,s)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:a,newPresences:s})}),this.onLeave((i,a,s)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:a,leftPresences:s})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,i){const a=this.cloneDeep(t),s=this.transformState(r),l={},A={};return this.map(a,(c,u)=>{s[c]||(A[c]=u)}),this.map(s,(c,u)=>{const d=a[c];if(d){const f=u.map(v=>v.presence_ref),h=d.map(v=>v.presence_ref),m=u.filter(v=>h.indexOf(v.presence_ref)<0),p=d.filter(v=>f.indexOf(v.presence_ref)<0);m.length>0&&(l[c]=m),p.length>0&&(A[c]=p)}else l[c]=u}),this.syncDiff(a,{joins:l,leaves:A},n,i)}static syncDiff(t,r,n,i){const{joins:a,leaves:s}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),i||(i=()=>{}),this.map(a,(l,A)=>{var c;const u=(c=t[l])!==null&&c!==void 0?c:[];if(t[l]=this.cloneDeep(A),u.length>0){const d=t[l].map(h=>h.presence_ref),f=u.filter(h=>d.indexOf(h.presence_ref)<0);t[l].unshift(...f)}n(l,u,A)}),this.map(s,(l,A)=>{let c=t[l];if(!c)return;const u=A.map(d=>d.presence_ref);c=c.filter(d=>u.indexOf(d.presence_ref)<0),t[l]=c,i(l,c,A),c.length===0&&delete t[l]}),t}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const i=t[n];return"metas"in i?r[n]=i.metas.map(a=>(a.presence_ref=a.phx_ref,delete a.phx_ref,delete a.phx_ref_prev,a)):r[n]=i,r},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var zT;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(zT||(zT={}));var wf;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(wf||(wf={}));var Wa;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Wa||(Wa={}));class SE{constructor(t,r={config:{}},n){var i,a;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=or.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new G0(this,Fi.join,this.params,this.timeout),this.rejoinTimer=new N4(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=or.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=or.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=or.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=or.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=or.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Fi.reply,{},(s,l)=>{this._trigger(this._replyEventName(l),s)}),this.presence=new xf(this),this.broadcastEndpointURL=T4(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((a=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||a===void 0)&&a.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,r=this.timeout){var n,i,a;if(this.socket.isConnected()||this.socket.connect(),this.state==or.closed){const{config:{broadcast:s,presence:l,private:A}}=this.params,c=(i=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(h=>h.filter))!==null&&i!==void 0?i:[],u=!!this.bindings[wf.PRESENCE]&&this.bindings[wf.PRESENCE].length>0||((a=this.params.config.presence)===null||a===void 0?void 0:a.enabled)===!0,d={},f={broadcast:s,presence:Object.assign(Object.assign({},l),{enabled:u}),postgres_changes:c,private:A};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(h=>t==null?void 0:t(Wa.CHANNEL_ERROR,h)),this._onClose(()=>t==null?void 0:t(Wa.CLOSED)),this.updateJoinPayload(Object.assign({config:f},d)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:h})=>{var m;if(this.socket.setAuth(),h===void 0){t==null||t(Wa.SUBSCRIBED);return}else{const p=this.bindings.postgres_changes,v=(m=p==null?void 0:p.length)!==null&&m!==void 0?m:0,x=[];for(let g=0;g<v;g++){const y=p[g],{filter:{event:B,schema:b,table:C,filter:j}}=y,_=h&&h[g];if(_&&_.event===B&&_.schema===b&&_.table===C&&_.filter===j)x.push(Object.assign(Object.assign({},y),{id:_.id}));else{this.unsubscribe(),this.state=or.errored,t==null||t(Wa.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=x,t&&t(Wa.SUBSCRIBED);return}}).receive("error",h=>{this.state=or.errored,t==null||t(Wa.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(h).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Wa.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){return this.state===or.joined&&t===wf.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(t,r,n)}async send(t,r={}){var n,i;if(!this._canPush()&&t.type==="broadcast"){const{event:a,payload:s}=t,A={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:a,payload:s,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,A,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((i=c.body)===null||i===void 0?void 0:i.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(a=>{var s,l,A;const c=this._push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((A=(l=(s=this.params)===null||s===void 0?void 0:s.config)===null||l===void 0?void 0:l.broadcast)===null||A===void 0)&&A.ack)&&a("ok"),
357c.receive("ok",()=>a("ok")),c.receive("error",()=>a("error")),c.receive("timeout",()=>a("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=or.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Fi.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(i=>{n=new G0(this,Fi.leave,{},t),n.receive("ok",()=>{r(),i("ok")}).receive("timeout",()=>{r(),i("timed out")}).receive("error",()=>{i("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=or.closed,this.bindings={}}async _fetchWithTimeout(t,r,n){const i=new AbortController,a=setTimeout(()=>i.abort(),n),s=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:i.signal}));return clearTimeout(a),s}_push(t,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new G0(this,t,r,n);return this._canPush()?i.send():this._addToPushBuffer(i),i}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>jZ){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(t,r,n){return r}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,r,n){var i,a;const s=t.toLocaleLowerCase(),{close:l,error:A,leave:c,join:u}=Fi;if(n&&[l,A,c,u].indexOf(s)>=0&&n!==this._joinRef())return;let f=this._onMessage(s,r,n);if(r&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(s)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(h=>{var m,p,v;return((m=h.filter)===null||m===void 0?void 0:m.event)==="*"||((v=(p=h.filter)===null||p===void 0?void 0:p.event)===null||v===void 0?void 0:v.toLocaleLowerCase())===s}).map(h=>h.callback(f,n)):(a=this.bindings[s])===null||a===void 0||a.filter(h=>{var m,p,v,x,g,y;if(["broadcast","presence","postgres_changes"].includes(s))if("id"in h){const B=h.id,b=(m=h.filter)===null||m===void 0?void 0:m.event;return B&&((p=r.ids)===null||p===void 0?void 0:p.includes(B))&&(b==="*"||(b==null?void 0:b.toLocaleLowerCase())===((v=r.data)===null||v===void 0?void 0:v.type.toLocaleLowerCase()))}else{const B=(g=(x=h==null?void 0:h.filter)===null||x===void 0?void 0:x.event)===null||g===void 0?void 0:g.toLocaleLowerCase();return B==="*"||B===((y=r==null?void 0:r.event)===null||y===void 0?void 0:y.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===s}).map(h=>{if(typeof f=="object"&&"ids"in f){const m=f.data,{schema:p,table:v,commit_timestamp:x,type:g,errors:y}=m;f=Object.assign(Object.assign({},{schema:p,table:v,commit_timestamp:x,eventType:g,new:{},old:{},errors:y}),this._getPayloadRecords(m))}h.callback(f,n)})}_isClosed(){return this.state===or.closed}_isJoined(){return this.state===or.joined}_isJoining(){return this.state===or.joining}_isLeaving(){return this.state===or.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const i=t.toLocaleLowerCase(),a={type:i,filter:r,callback:n};return this.bindings[i]?this.bindings[i].push(a):this.bindings[i]=[a],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(i=>{var a;return!(((a=i.type)===null||a===void 0?void 0:a.toLocaleLowerCase())===n&&SE.isEqual(i.filter,r))})),this}static isEqual(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(t[n]!==r[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Fi.close,{},t)}_onError(t){this._on(Fi.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=or.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=WT(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=WT(t.columns,t.old_record)),r}}const z0=()=>{},pm={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},PZ=[1e3,2e3,5e3,1e4],kZ=1e4,IZ=` 358 addEventListener("message", (e) => { 359 if (e.data.event === "start") { 360 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 361 } 362 });`;class UZ{constructor(t,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=FC,this.transport=null,this.heartbeatIntervalMs=pm.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=z0,this.ref=0,this.reconnectTimer=null,this.logger=z0,this.conn=null,this.sendBuffer=[],this.serializer
362=new _Z,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=i=>{let a;return i?a=i:typeof fetch>"u"?a=(...s)=>dp(async()=>{const{default:l}=await Promise.resolve().then(()=>Gu);return{default:l}},void 0).then(({default:l})=>l(...s)).catch(l=>{throw new Error(`Failed to load @supabase/node-fetch: ${l.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):a=fetch,(...s)=>a(...s)},!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${t}/${PC.websocket}`,this.httpEndpoint=T4(t),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=xZ.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const r=t.message;throw r.includes("Node.js")?new Error(`${r} 363 364To use Realtime in Node.js, you need to provide a WebSocket implementation: 365 366Option 1: Use Node.js 22+ which has native WebSocket support 367Option 2: Install and provide the "ws" package: 368 369 npm install ws 370 371 import ws from "ws" 372 const client = new RealtimeClient(url, { 373 ...options, 374 transport: ws 375 })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:BZ}))}disconnect(t,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},t?this.conn.close(t,r??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,r,n){this.logger(t,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case yf.connecting:return ul.Connecting;case yf.open:return ul.Open;case yf.closing:return ul.Closing;default:return ul.Closed}}isConnected(){return this.connectionState()===ul.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,r={config:{}}){const n=`realtime:${t}`,i=this.getChannels().find(a=>a.topic===n);if(i)return i;{const a=new SE(`realtime:${t}`,r,this);return this.channels.push(a),a}}push(t){const{topic:r,event:n,payload:i,ref:a}=t,s=()=>{this.encode(t,l=>{var A;(A=this.conn)===null||A===void 0||A.send(l)})};this.log("push",`${r} ${n} (${a})`,i),this.isConnected()?s():this.sendBuffer.push(s)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(CZ,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
375heduleTimeout()},pm.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let r=this.channels.find(n=>n.topic===t&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${t}"`),r.unsubscribe())}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply")try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error")}catch(c){this.log("error","error in heartbeat callback",c)}r.ref&&r.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:n,event:i,payload:a,ref:s}=r,l=s?`(${s})`:"",A=a.status||"";this.log("receive",`${A} ${n} ${i} ${l}`.trim(),a),this.channels.filter(c=>c._isMember(n)).forEach(c=>c._trigger(i,a,s)),this._triggerStateCallbacks("message",r)})}_clearTimer(t){var r;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this.workerRef.terminate()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){var r;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
375heduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(Fi.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",i=new URLSearchParams(r);return`${t}${n}${i}`}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([IZ],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(t,r=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(t=null){let r;t?r=t:this.accessToken?r=await this.accessToken():r=this.accessTokenValue,this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(n=>{const i={access_token:r,version:bZ};r&&n.updateJoinPayload(i),n.joinedOnce&&n._isJoined()&&n._push(Fi.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this.setAuth().catch(r=>{this.log("error",`error setting auth in ${t}`,r)})}_triggerStateCallbacks(t,r){try{this.stateChangeCallbacks[t].forEach(n=>{try{n(r)}catch(i){this.log("error",`error in ${t} callback`,i)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new N4(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},pm.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var r,n,i,a,s,l,A,c,u;if(this.transport=(r=t==null?void 0:t.transport)!==null&&r!==void 0?r:null,this.timeout=(n=t==null?void 0:t.timeout)!==null&&n!==void 0?n:FC,this.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:pm.HEARTBEAT_INTERVAL,this.worker=(a=t==null?void 0:t.worker)!==null&&a!==void 0?a:!1,this.accessToken=(s=t==null?void 0:t.accessToken)!==null&&s!==void 0?s:null,this.heartbeatCallback=(l=t==null?void 0:t.heartbeatCallback)!==null&&l!==void 0?l:z0,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(A=t==null?void 0:t.reconnectAfterMs)!==null&&A!==void 0?A:d=>PZ[d-1]||kZ,this.encode=(c=t==null?void 0:t.encode)!==null&&c!==void 0?c:(d,f)=>f(JSON.stringify(d)),this.decode=(u=t==null?void 0:t.decode)!==null&&u!==void 0?u:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}
375class NE extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function er(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class QZ extends NE{constructor(t,r,n){super(t),this.name="StorageApiError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class IC extends NE{constructor(t,r){super(t),this.name="StorageUnknownError",this.originalError=r}}var MZ=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(u){try{c(n.next(u))}catch(d){s(d)}}function A(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?a(u.value):i(u.value).then(l,A)}c((n=n.apply(e,t||[])).next())})};const F4=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>dp(async()=>{const{default:n}=await Promise.resolve().then(()=>Gu);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)},RZ=()=>MZ(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield dp(()=>Promise.resolve().then(()=>Gu),void 0)).Response:Response}),UC=e=>{if(Array.isArray(e))return e.map(r=>UC(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const i=r.replace(/([-_][a-z])/gi,a=>a.toUpperCase().replace(/[-_]/g,""));t[i]=UC(n)}),t},DZ=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};var lA=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(u){try{c(n.next(u))}catch(d){s(d)}}function A(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?a(u.value):i(u.value).then(l,A)}c((n=n.apply(e,t||[])).next())})};const q0=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),LZ=(e,t,r)=>lA(void 0,void 0,void 0,function*(){const n=yield RZ();e instanceof n&&!(r!=null&&r.noResolveJson)?e.json().then(i=>{const a=e.status||500,s=(i==null?void 0:i.statusCode)||a+"";t(new QZ(q0(i),a,s))}).catch(i=>{t(new IC(q0(i),i))}):t(new IC(q0(e),e))}),$Z=(e,t,r,n)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!n?i:(DZ(n)?(i.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(n)):i.body=n,t!=null&&t.duplex&&(i.duplex=t.duplex),Object.assign(Object.assign({},i),r))};function hp(e,t,r,n,i,a){return lA(this,void 0,void 0,function*(){return new Promise((s,l)=>{e(r,$Z(t,n,i,a)).then(A=>{if(!A.ok)throw A;return n!=null&&n.noResolveJson?A:A.json()}).then(A=>s(A)).catch(A=>LZ(A,l,n))})})}function dv(e,t,r,n){return lA(this,void 0,void 0,function*(){return hp(e,"GET",t,r,n)})}function ia(e,t,r,n,i){return lA(this,void 0,void 0,function*(){return hp(e,"POST",t,n,i,r)})}function QC(e,t,r,n,i){return lA(this,void 0,void 0,function*(){return hp(e,"PUT",t,n,i,r)})}function HZ(e,t,r,n){return lA(this,void 0,void 0,function*(){return hp(e,"HEAD",t,Object.assign(Object.assign({},r),{noResolveJson:!0}),n)})}function P4(e,t,r,n,i){return lA(this,void 0,void 0,function*(){return hp(e,"DELETE",t,n,i,r)})}var KZ=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(u){try{c(n.next(u))}catch(d){s(d)}}function A(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?a(u.value):i(u.value).then(l,A)}c((n=n.apply(e,t||[])).next())})};class VZ{constructor(t,r){this.downloadFn=t,this.shouldThrowOnError=r}then(t,r){return this.execute().then(t,r)}execute(){return KZ(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(er(t))return{data:null,error:t};throw t}})}}var WZ=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(u){try{c(n.next(u))}catch(d){s(d)}}function A(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?a(u.value):i(u.value).then(l,A)}c((n=n.apply(e,t||[])).next())})};class GZ{constructor(t,r){this.downloadFn=t,this.shouldThrowOnError=r}asStream(){return new VZ(this.downloadFn,this.shouldThrowOnError)}then(t,r){return this.execute().then(t,r)}execute(){return WZ(this,void 0,void 0,function*(){try{return{data:yield(yield this.downloadFn()).blob(),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(er(t))return{data:null,error:t};throw t}})}}var sn=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(u){try{c(n.next(u))}catch(d){s(d)}}function A(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?a(u.value):i(u.value).then(l,A)}c((n=n.apply(e,t||[])).next())})};const zZ={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},qT={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class qZ{constructor(t,r={},n,i){this.shouldThrowOnError=!1,this.url=t,this.headers=r,this.bucketId=n,this.fetch=F4(i)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(t,r,n,i){return sn(this,void 0,void 0,function*(){try{let a;const s=Object.assign(Object.assign({},qT),i);let l=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(s.upsert)});const A=s.metadata;typeof Blob<"u"&&n instanceof Blob?(a=new FormData,a.append("cacheControl",s.cacheControl),A&&a.append("metadata",this.encodeMetadata(A)),a.append("",n)):typeof FormData<"u"&&n instanceof FormData?(a=n,a.append("cacheControl",s.cacheControl),A&&a.append("metadata",this.encodeMetadata(A))):(a=n,l["cache-control"]=`max-age=${s.cacheControl}`,l["content-type"]=s.contentType,A&&(l["x-metadata"]=this.toBase64(this.encodeMetadata(A)))),i!=null&&i.headers&&(l=Object.assign(Object.assign({},l),i.headers));const c=this._removeEmptyFolders(r),u=this._getFinalPath(c),d=yield(t=="PUT"?QC:ia)(this.fetch,`${this.url}/object/${u}`,a,Object.assign({headers:l},s!=null&&s.duplex?{duplex:s.duplex}:{}));return{data:{path:c,id:d.Id,fullPath:d.Key},error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(er(a))return{data:null,error:a};throw a}})}upload(t,r,n){return sn(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,r,n)})}uploadToSignedUrl(t,r,n,i){return sn(this,void 0,void 0,function*(){const a=this._removeEmptyFolders(t),s=this._getFinalPath(a),l=new URL(this.url+`/object/upload/sign/${s}`);l.searchParams.set("token",r);try{let A;const c=Object.assign({upsert:qT.upsert},i),u=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&n instanceof Blob?(A=new FormData,A.append("cacheControl",c.cacheControl),A.append("",n)):typeof FormData<"u"&&n instanceof FormData?(A=n,A.append("cacheControl",c.cacheControl)):(A=n,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType);const d=yield QC(this.fetch,l.toString(),A,{headers:u});return{data:{path:a,fullPath:d.Key},error:null}}catch(A){if(this.shouldThrowOnError)throw A;if(er(A))return{data:null,error:A};throw A}})}createSignedUploadUrl(t,r){return sn(this,void 0,void 0,function*(){try{let n=this._getFinalPath(t);const i=Object.assign({},this.headers);r!=null&&r.upsert&&(i["x-upsert"]="true");const a=yield ia(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:i}),s=new URL(this.url+a.url),l=s.searchParams.get("token");if(!l)throw new NE("No token returned by API");return{data:{signedUrl:s.toString(),path:t,token:l},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(er(n))return{data:null,error:n};throw n}})}update(t,r,n){return sn(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,r,n)})}move(t,r,n){return sn(this,void 0,void 0,function*(){try{return{data:yield ia(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(er(i))return{data:null,error:i};throw i}})}copy(t,r,n){return sn(this,void 0,void 0,function*(){try{return{data:{path:(yield ia(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers})).Key},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(er(i))return{data:null,error:i};throw i}})}createSignedUrl(t,r,n){return sn(this,void 0,void 0,function*(){try{let i=this._getFinalPath(t),a=yield ia(this.fetch,`${this.url}/object/sign/${i}
375`,Object.assign({expiresIn:r},n!=null&&n.transform?{transform:n.transform}:{}),{headers:this.headers});const s=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return a={signedUrl:encodeURI(`${this.url}${a.signedURL}${s}`)},{data:a,error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(er(i))return{data:null,error:i};throw i}})}createSignedUrls(t,r,n){return sn(this,void 0,void 0,function*(){try{const i=yield ia(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:r,paths:t},{headers:this.headers}),a=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:i.map(s=>Object.assign(Object.assign({},s),{signedUrl:s.signedURL?encodeURI(`${this.url}${s.signedURL}${a}`):null})),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(er(i))return{data:null,error:i};throw i}})}download(t,r){const i=typeof(r==null?void 0:r.transform)<"u"?"render/image/authenticated":"object",a=this.transformOptsToQueryString((r==null?void 0:r.transform)||{}),s=a?`?${a}`:"",l=this._getFinalPath(t),A=()=>dv(this.fetch,`${this.url}/${i}/${l}${s}`,{headers:this.headers,noResolveJson:!0});return new GZ(A,this.shouldThrowOnError)}info(t){return sn(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{const n=yield dv(this.fetch,`${this.url}/object/info/${r}`,{headers:this.headers});return{data:UC(n),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(er(n))return{data:null,error:n};throw n}})}exists(t){return sn(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{return yield HZ(this.fetch,`${this.url}/object/${r}`,{headers:this.headers}),{data:!0,error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(er(n)&&n instanceof IC){const i=n.originalError;if([400,404].includes(i==null?void 0:i.status))return{data:!1,error:n}}throw n}})}getPublicUrl(t,r){const n=this._getFinalPath(t),i=[],a=r!=null&&r.download?`download=${r.download===!0?"":r.download}`:"";a!==""&&i.push(a);const l=typeof(r==null?void 0:r.transform)<"u"?"render/image":"object",A=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});A!==""&&i.push(A);let c=i.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${l}/public/${n}${c}`)}}}remove(t){return sn(this,void 0,void 0,function*(){try{return{data:yield P4(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(er(r))return{data:null,error:r};throw r}})}list(t,r,n){return sn(this,void 0,void 0,function*(){try{const i=Object.assign(Object.assign(Object.assign({},zZ),r),{prefix:t||""});return{data:yield ia(this.fetch,`${this.url}/object/list/${this.bucketId}`,i,{headers:this.headers},n),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(er(i))return{data:null,error:i};throw i}})}listV2(t,r){return sn(this,void 0,void 0,function*(){try{const n=Object.assign({},t);return{data:yield ia(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,n,{headers:this.headers},r),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(er(n))return{data:null,error:n};throw n}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const r=[];return t.width&&r.push(`width=${t.width}`),t.height&&r.push(`height=${t.height}`),t.resize&&r.push(`resize=${t.resize}`),t.format&&r.push(`format=${t.format}`),t.quality&&r.push(`quality=${t.quality}`),r.join("&")}}const YZ="2.75.0",XZ={"X-Client-Info":`storage-js/${YZ}`};var CA=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(u){try{c(n.next(u))}catch(d){s(d)}}function A(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?a(u.value):i(u.value).then(l,A)}c((n=n.apply(e,t||[])).next())})};class JZ{constructor(t,r={},n,i){this.shouldThrowOnError=!1;const a=new URL(t);i!=null&&i.useNewHostname&&/supabase\.(co|in|red)$/.test(a.hostname)&&!a.hostname.includes("storage.supabase.")&&(a.hostname=a.hostname.replace("supabase.","storage.supabase.")),this.url=a.href.replace(/\/$/,""),this.headers=Object.assign(Object.assign({}
375,XZ),r),this.fetch=F4(n)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return CA(this,void 0,void 0,function*(){try{return{data:yield dv(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(er(t))return{data:null,error:t};throw t}})}getBucket(t){return CA(this,void 0,void 0,function*(){try{return{data:yield dv(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(er(r))return{data:null,error:r};throw r}})}createBucket(t){return CA(this,arguments,void 0,function*(r,n={public:!1}){try{return{data:yield ia(this.fetch,`${this.url}/bucket`,{id:r,name:r,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(er(i))return{data:null,error:i};throw i}})}updateBucket(t,r){return CA(this,void 0,void 0,function*(){try{return{data:yield QC(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(er(n))return{data:null,error:n};throw n}})}emptyBucket(t){return CA(this,void 0,void 0,function*(){try{return{data:yield ia(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(er(r))return{data:null,error:r};throw r}})}deleteBucket(t){return CA(this,void 0,void 0,function*(){try{return{data:yield P4(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(er(r))return{data:null,error:r};throw r}})}}class ZZ extends JZ{constructor(t,r={},n,i){super(t,r,n,i)}from(t){return new qZ(this.url,this.headers,t,this.fetch)}}const eee="2.75.0";let Yd="";typeof Deno<"u"?Yd="deno":typeof document<"u"?Yd="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Yd="react-native":Yd="node";const tee={"X-Client-Info":`supabase-js-${Yd}/${eee}`},ree={headers:tee},nee={schema:"public"},iee={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},aee={};var see=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(u){try{c(n.next(u))}catch(d){s(d)}}function A(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?a(u.value):i(u.value).then(l,A)}c((n=n.apply(e,t||[])).next())})};const oee=e=>{let t;return e?t=e:typeof fetch>"u"?t=v4:t=fetch,(...r)=>t(...r)},lee=()=>typeof Headers>"u"?y4:Headers,Aee=(e,t,r)=>{const n=oee(r),i=lee();return(a,s)=>see(void 0,void 0,void 0,function*(){var l;const A=(l=yield t())!==null&&l!==void 0?l:e;let c=new i(s==null?void 0:s.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${A}`),n(a,Object.assign(Object.assign({},s),{headers:c}))})};var cee=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(u){try{c(n.next(u))}catch(d){s(d)}}function A(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?a(u.value):i(u.value).then(l,A)}c((n=n.apply(e,t||[])).next())})};function uee(e){return e.endsWith("/")?e:e+"/"}function dee(e,t){var r,n;const{db:i,auth:a,realtime:s,global:l}=e,{db:A,auth:c,realtime:u,global:d}=t,f={db:Object.assign(Object.assign({},A),i),auth:Object.assign(Object.assign({},c),a),realtime:Object.assign(Object.assign({},u),s),storage:{},global:Object.assign(Object.assign(Object.assign({},d),l),{headers:Object.assign(Object.assign({},(r=d==null?void 0:d.headers)!==null&&r!==void 0?r:{}),(n=l==null?void 0:l.headers)!==null&&n!==void 0?n:{})}),accessToken:()=>cee(this,void 0,void 0,function*(){return""})};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}function fee(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(uee(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const k4="2.75.0",VA=30*1e3,MC=3,Y0=MC*VA,hee="http://localhost:9999",pee="supabase.auth.token",mee={"X-Client-Info":`gotrue-js/${k4}`},RC="X-Supabase-Api-Version",I4={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},gee=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,vee=10*60*1e3;
375class sh extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function ke(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class yee extends sh{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function xee(e){return ke(e)&&e.name==="AuthApiError"}class dl extends sh{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class Lo extends sh{constructor(t,r,n,i){super(t,n,i),this.name=r,this.status=n}}class Rs extends Lo{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function wee(e){return ke(e)&&e.name==="AuthSessionMissingError"}class jA extends Lo{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class mm extends Lo{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class gm extends Lo{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function bee(e){return ke(e)&&e.name==="AuthImplicitGrantRedirectError"}class YT extends Lo{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class DC extends Lo{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function X0(e){return ke(e)&&e.name==="AuthRetryableFetchError"}class XT extends Lo{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class LC extends Lo{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const fv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),JT=` 376\r=`.split(""),Bee=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<JT.length;t+=1)e[JT[t].charCodeAt(0)]=-2;for(let t=0;t<fv.length;t+=1)e[fv[t].charCodeAt(0)]=t;return e})();function ZT(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(fv[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(fv[n]),t.queuedBits-=6}}function U4(e,t,r){const n=Bee[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function eF(e){const t=[],r=s=>{t.push(String.fromCodePoint(s))},n={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},a=s=>{_ee(s,n,r)};for(let s=0;s<e.length;s+=1)U4(e.charCodeAt(s),i,a);return t.join("")}function Cee(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function jee(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const i=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|i)+65536,r+=1}Cee(n,t)}}function _ee(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function Fc(e){const t=[],r={queue:0,queuedBits:0},n=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)U4(e.charCodeAt(i),r,n);return new Uint8Array(t)}function Eee(e){const t=[];return jee(e,r=>t.push(r)),new Uint8Array(t)}function vl(e){const t=[],r={queue:0,queuedBits:0},n=i=>{t.push(i)};return e.forEach(i=>ZT(i,r,n)),ZT(null,r,n),t.join("")}function See(e){return Math.round(Date.now()/1e3)+e}function Nee(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const _n=()=>typeof window<"u"&&typeof document<"u",Jo={tested:!1,writable:!1},Q4=()=>{if(!_n())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Jo.tested)return Jo.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Jo.tested=!0,Jo.writable=!0}catch{Jo.tested=!0,Jo.writable=!1}return Jo.writable};function Oee(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEac
376h((i,a)=>{t[a]=i})}catch{}return r.searchParams.forEach((n,i)=>{t[i]=n}),t}const M4=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>dp(async()=>{const{default:n}=await Promise.resolve().then(()=>Gu);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)},Tee=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",WA=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},Zo=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},Us=async(e,t)=>{await e.removeItem(t)};class _x{constructor(){this.promise=new _x.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}_x.promiseConstructor=Promise;function J0(e){const t=e.split(".");if(t.length!==3)throw new LC("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!gee.test(t[n]))throw new LC("JWT not in base64url format");return{header:JSON.parse(eF(t[0])),payload:JSON.parse(eF(t[1])),signature:Fc(t[2]),raw:{header:t[0],payload:t[1]}}}async function Fee(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function Pee(e,t){return new Promise((n,i)=>{(async()=>{for(let a=0;a<1/0;a++)try{const s=await e(a);if(!t(a,null,s)){n(s);return}}catch(s){if(!t(a,s)){i(s);return}}})()})}function kee(e){return("0"+e.toString(16)).substr(-2)}function Iee(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let i="";for(let a=0;a<56;a++)i+=r.charAt(Math.floor(Math.random()*n));return i}return crypto.getRandomValues(t),Array.from(t,kee).join("")}async function Uee(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),i=new Uint8Array(n);return Array.from(i).map(a=>String.fromCharCode(a)).join("")}async function Qee(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const r=await Uee(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function _A(e,t,r=!1){const n=Iee();let i=n;r&&(i+="/PASSWORD_RECOVERY"),await WA(e,`${t}-code-verifier`,i);const a=await Qee(n);return[a,n===a?"plain":"s256"]}const Mee=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function Ree(e){const t=e.headers.get(RC);if(!t||!t.match(Mee))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function Dee(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function Lee(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const $ee=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function EA(e){if(!$ee.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Z0(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function tF(e){return JSON.parse(JSON.stringify(e))}var Hee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const sl=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),Kee=[502,503,504];async function rF(e){var t;if(!Tee(e))throw new DC(sl(e),0);if(Kee.includes(e.status))throw new DC(sl(e),e.status);let r;try{r=await e.json()}catch(a){throw new dl(sl(a),a)}let n;const i=Ree(e);
376if(i&&i.getTime()>=I4["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new XT(sl(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new Rs}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((a,s)=>a&&typeof s=="string",!0))throw new XT(sl(r),e.status,r.weak_password.reasons);throw new yee(sl(r),e.status||500,n)}const Vee=(e,t,r,n)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(n),Object.assign(Object.assign({},i),r))};async function Re(e,t,r,n){var i;const a=Object.assign({},n==null?void 0:n.headers);a[RC]||(a[RC]=I4["2024-01-01"].name),n!=null&&n.jwt&&(a.Authorization=`Bearer ${n.jwt}`);const s=(i=n==null?void 0:n.query)!==null&&i!==void 0?i:{};n!=null&&n.redirectTo&&(s.redirect_to=n.redirectTo);const l=Object.keys(s).length?"?"+new URLSearchParams(s).toString():"",A=await Wee(e,t,r+l,{headers:a,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(A):{data:Object.assign({},A),error:null}}async function Wee(e,t,r,n,i,a){const s=Vee(t,n,i,a);let l;try{l=await e(r,Object.assign({},s))}catch(A){throw console.error(A),new DC(sl(A),0)}if(l.ok||await rF(l),n!=null&&n.noResolveJson)return l;try{return await l.json()}catch(A){await rF(A)}}function Ci(e){var t;let r=null;qee(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=See(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function nF(e){const t=Ci(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Ys(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function Gee(e){return{data:e,error:null}}function zee(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:a}=e,s=Hee(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:a},A=Object.assign({},s);return{data:{properties:l,user:A},error:null}}function iF(e){return e}function qee(e){return e.access_token&&e.refresh_token&&e.expires_in}const eb=["global","local","others"];var Yee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};class Xee{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=M4(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,r=eb[0]){if(eb.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${eb.join(", ")}`);try{return await Re(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(ke(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await Re(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Ys})}catch(n){if(ke(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=Yee(t,["options"]),i=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(i.new_email=n==null?void 0:n.newEmail,delete i.newEmail),await Re(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:zee,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(ke(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await Re(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Ys})}catch(r){if(ke(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,i,a,s,l,A;try{const c={nextPage:null,lastPage:0,total:0},u=await Re(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(a=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:""},xform:iF});if(u.error)throw u.error;const d=await u.json(),f=(s=u.headers.get("x-total-count"))!==null&&s!==void 0?s:0,h=(A=(l=u.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&A!==void 0?A:[];return h.length>
3760&&(h.forEach(m=>{const p=parseInt(m.split(";")[0].split("=")[1].substring(0,1)),v=JSON.parse(m.split(";")[1].split("=")[1]);c[`${v}Page`]=p}),c.total=parseInt(f)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(ke(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){EA(t);try{return await Re(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Ys})}catch(r){if(ke(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){EA(t);try{return await Re(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:Ys})}catch(n){if(ke(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){EA(t);try{return await Re(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:Ys})}catch(n){if(ke(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){EA(t.userId);try{const{data:r,error:n}=await Re(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:r,error:n}}catch(r){if(ke(r))return{data:null,error:r};throw r}}async _deleteFactor(t){EA(t.userId),EA(t.id);try{return{data:await Re(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(ke(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,i,a,s,l,A;try{const c={nextPage:null,lastPage:0,total:0},u=await Re(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(a=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:""},xform:iF});if(u.error)throw u.error;const d=await u.json(),f=(s=u.headers.get("x-total-count"))!==null&&s!==void 0?s:0,h=(A=(l=u.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&A!==void 0?A:[];return h.length>0&&(h.forEach(m=>{const p=parseInt(m.split(";")[0].split("=")[1].substring(0,1)),v=JSON.parse(m.split(";")[1].split("=")[1]);c[`${v}Page`]=p}),c.total=parseInt(f)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(ke(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await Re(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ke(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await Re(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ke(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await Re(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ke(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await Re(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ke(r))return{data:null,error:r};throw r}}}function aF(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}const SA={debug:!!(globalThis&&Q4()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class R4 extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class Jee extends R4{}async function Zee(e,t,r){SA.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;return t>0&&setTimeout(()=>{n.abort(),SA.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async i=>{if(i){SA.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await r()}finally{SA.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw SA.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new Jee(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(SA.debug)try{const a=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(a,null," "))}catch(a){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",a)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}function ete(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function D4(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
376" is invalid.`);return e.toLowerCase()}function tte(e){return parseInt(e,16)}function rte(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function nte(e){var t;const{chainId:r,domain:n,expirationTime:i,issuedAt:a=new Date,nonce:s,notBefore:l,requestId:A,resources:c,scheme:u,uri:d,version:f}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(s&&s.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${s}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 377`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const h=D4(e.address),m=u?`${u}://${n}`:n,p=e.statement?`${e.statement} 378`:"",v=`${m} wants you to sign in with your Ethereum account: 379${h} 380 381${p}`;let x=`URI: ${d} 382Version: ${f} 383Chain ID: ${r}${s?` 384Nonce: ${s}`:""} 385Issued At: ${a.toISOString()}`;if(i&&(x+=` 386Expiration Time: ${i.toISOString()}`),l&&(x+=` 387Not Before: ${l.toISOString()}`),A&&(x+=` 388Request ID: ${A}`),c){let g=` 389Resources:`;for(const y of c){if(!y||typeof y!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${y}`);g+=` 390- ${y}`}x+=g}return`${v} 391${x}`}class Zt extends Error{constructor({message:t,code:r,cause:n,name:i}){var a;super(t,{cause:n}),this.__isWebAuthnError=!0,this.name=(a=i??(n instanceof Error?n.name:void 0))!==null&&a!==void 0?a:"Unknown Error",this.code=r}}class hv extends Zt{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function ite({error:e,options:t}){var r,n,i;const{publicKey:a}=t;if(!a)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Zt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=a.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new Zt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((n=a.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new Zt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=a.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new Zt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Zt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Zt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return a.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new Zt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Zt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const s=window.location.hostname;if($4(s)){if(a.rp.id!==s)return new Zt({message:`The RP ID "${a.rp.id}
391" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Zt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(a.user.id.byteLength<1||a.user.id.byteLength>64)return new Zt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Zt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Zt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function ate({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Zt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Zt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if($4(n)){if(r.rpId!==n)return new Zt({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Zt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Zt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Zt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}var L4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};class ste{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const ote=new ste;function lte(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:n}=e,i=L4(e,["challenge","user","excludeCredentials"]),a=Fc(t).buffer,s=Object.assign(Object.assign({},r),{id:Fc(r.id).buffer}),l=Object.assign(Object.assign({},i),{challenge:a,user:s});if(n&&n.length>0){l.excludeCredentials=new Array(n.length);for(let A=0;A<n.length;A++){const c=n[A];l.excludeCredentials[A]=Object.assign(Object.assign({},c),{id:Fc(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return l}function Ate(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,n=L4(e,["challenge","allowCredentials"]),i=Fc(t).buffer,a=Object.assign(Object.assign({},n),{challenge:i});if(r&&r.length>0){a.allowCredentials=new Array(r.length);for(let s=0;s<r.length;s++){const l=r[s];a.allowCredentials[s]=Object.assign(Object.assign({},l),{id:Fc(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return a}function cte(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:vl(new Uint8Array(e.response.attestationObject)),clientDataJSON:vl(new
391Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function ute(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,n=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:vl(new Uint8Array(i.authenticatorData)),clientDataJSON:vl(new Uint8Array(i.clientDataJSON)),signature:vl(new Uint8Array(i.signature)),userHandle:i.userHandle?vl(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function $4(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function sF(){var e,t;return!!(_n()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function dte(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new hv("Browser returned unexpected credential type",t)}:{data:null,error:new hv("Empty credential response",t)}}catch(t){return{data:null,error:ite({error:t,options:e})}}}async function fte(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new hv("Browser returned unexpected credential type",t)}:{data:null,error:new hv("Empty credential response",t)}}catch(t){return{data:null,error:ate({error:t,options:e})}}}const hte={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"none"},pte={userVerification:"preferred",hints:["security-key"]};function pv(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),r=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),n={};for(const i of e)if(i)for(const a in i){const s=i[a];if(s!==void 0)if(Array.isArray(s))n[a]=s;else if(r(s))n[a]=s;else if(t(s)){const l=n[a];t(l)?n[a]=pv(l,s):n[a]=pv(s)}else n[a]=s}return n}function mte(e,t){return pv(hte,e,t||{})}function gte(e,t){return pv(pte,e,t||{})}class vte{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:r,friendlyName:n,signal:i},a){try{const{data:s,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!s)return{data:null,error:l};const A=i??ote.createNewAbortSignal();if(s.webauthn.type==="create"){const{user:c}=s.webauthn.credential_options.publicKey;c.name||(c.name=`${c.id}:${n}`),c.displayName||(c.displayName=c.name)}switch(s.webauthn.type){case"create":{const c=mte(s.webauthn.credential_options.publicKey,a==null?void 0:a.create),{data:u,error:d}=await dte({publicKey:c,signal:A});return u?{data:{factorId:t,challengeId:s.id,webauthn:{type:s.webauthn.type,credential_response:u}},error:null}:{data:null,error:d}}case"request":{const c=gte(s.webauthn.credential_options.publicKey,a==null?void 0:a.request),{data:u,error:d}=await fte(Object.assign(Object.assign({},s.webauthn.credential_options),{publicKey:c,signal:A}));return u?{data:{factorId:t,challengeId:s.id,webauthn:{type:s.webauthn.type,credential_response:u}},error:null}:{data:null,error:d}}}}catch(s){return ke(s)?{data:null,error:s}:{data:null,error:new dl("Unexpected error in challenge",s)}}}async _verify({challengeId:t,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:n})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:i}},a){if(!r)return{data:null,error:new sh("rpId is required for WebAuthn authentication")};try{if(!sF())return{data:null,error:new dl("Browser does not support WebAuthn",null)};const{data:s,error:l}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:i},{request:a});if(!s)return{data:null,error:l};const{webauthn:A}=s;return this._verify({factorId:t,challengeId:s.challengeId,webauthn:{type:A.type,rpId:r,rpOrigins:n,credential_response:A.credential_response}})}catch(s){return ke(s)?{data:null,error:s}:{data:null,error:new dl("Unexpected error in authenticate",s)}}}async _register({friendlyName:t,rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:i},a){if(!r)return{data:null,error:new sh("rpId is required for WebAuthn registration")};try{if(!sF())return{data:null,error:new dl("Browser does not support WebAuthn",null)};const{data:s,error:l}=await this._enroll({friendlyName:t});if(!s)return await this.client.mfa.listFactors().then(u=>{var d;return(d=u.data)===null||d===void 0?void 0:d.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===t&&f.status!=="unverified")}).then(u=>u?this.client.mfa.unenroll({factorId:u==null?void 0:u.id}):void 0),{data:null,error:l};const{data:A,error:c}=await this._challenge({factorId:s.id,friendlyName:s.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:i},{create:a});return A?this._verify({factorId:s.id,challengeId:A.challengeId,webauthn:{rpId:r,rpOrigins:n,type:A.webauthn.type,credential_response:A.webauthn.credential_response}}):{data:null,error:c}}catch(s){return ke(s)?{data:null,error:s}:{data:null,error:new dl("Unexpected error in register",s)}}}}ete();const yte={url:hee,storageKey:pee,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:mee,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function oF(e,t,r){return await r()}const NA={};class oh{get jwks(){var t,r;return(r=(t=NA[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){NA[this.storageKey]=Object.assign(Object.assign({},NA[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=NA[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){NA[this.storageKey]=Object.assign(Object.assign({},NA[this.storageKey]),{cachedAt:t})}constructor(t){var r,n;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=oh.nextInstanceID,oh.nextInstanceID+=1,this.instanceID>0&&_n()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const i=Object.assign(Object.assign({},yte),t);if(this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.persistSession=i.persistSession,this.storageKey=i.storageKey,this.autoRefreshToken=i.autoRefreshToken,this.admin=new Xee({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=M4(i.fetch),this.lock=i.lock||oF,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,i.lock?this.lock=i.lock:_n()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=Zee:this.lock=oF,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new vte(this)},this.persistSession?(i.storage?this.storage=i.storage:Q4()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=aF(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=aF(this.memoryStorage)),_n()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(n=this.broadcastChannel)===null||n===void 0||n.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a),await this._notifyAllSubscribers(a.data.event,a.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${k4}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const r=Oee(window.location.href);let n="none";if(this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce"),_n()&&this.detectSessionInUrl&&n!=="none"){const{data:i,error:a}=await this._getSessionFromURL(r,n);if(a){if(this._debug("#_initialize()","error detecting session from URL",a),bee(a)){const A=(t=a.details)===null||t===void 0?void 0:t.code;if(A==="identity_already_exists"||A==="identity_not_found"||A==="single_identity_not_deletable")return{error:a}}return await this._removeSession(),{error:a}}const{session:s,redirectType:l}=i;return this._debug("#_initialize()","detected session in URL",s,"redirect type",l),await this._saveSession(s),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",s):await this._notifyAllSubscribers("SIGNED_IN",s)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return ke(r)?{error:r}:{error:new dl("Unexpected error during initialization",r)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,i;try{const a=await Re(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:Ci}),{data:s,error:l}=a;if(l||!s)return{data:{user:null,session:null},error:l};const A=s.session,c=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",A)),{data:{user:c,session:A},error:null}}
391catch(a){if(ke(a))return{data:{user:null,session:null},error:a};throw a}}async signUp(t){var r,n,i;try{let a;if("email"in t){const{email:u,password:d,options:f}=t;let h=null,m=null;this.flowType==="pkce"&&([h,m]=await _A(this.storage,this.storageKey)),a=await Re(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:u,password:d,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:h,code_challenge_method:m},xform:Ci})}else if("phone"in t){const{phone:u,password:d,options:f}=t;a=await Re(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:d,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},channel:(i=f==null?void 0:f.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Ci})}else throw new mm("You must provide either an email or phone number and a password");const{data:s,error:l}=a;if(l||!s)return{data:{user:null,session:null},error:l};const A=s.session,c=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",A)),{data:{user:c,session:A},error:null}}catch(a){if(ke(a))return{data:{user:null,session:null},error:a};throw a}}async signInWithPassword(t){try{let r;if("email"in t){const{email:a,password:s,options:l}=t;r=await Re(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:a,password:s,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:nF})}else if("phone"in t){const{phone:a,password:s,options:l}=t;r=await Re(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:a,password:s,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:nF})}else throw new mm("You must provide either an email or phone number and a password");const{data:n,error:i}=r;return i?{data:{user:null,session:null},error:i}:!n||!n.session||!n.user?{data:{user:null,session:null},error:new jA}:(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:i})}catch(r){if(ke(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOAuth(t){var r,n,i,a;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(a=t.options)===null||a===void 0?void 0:a.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,i,a,s,l,A,c,u,d,f;let h,m;if("message"in t)h=t.message,m=t.signature;else{const{chain:p,wallet:v,statement:x,options:g}=t;let y;if(_n())if(typeof v=="object")y=v;else{const E=window;if("ethereum"in E&&typeof E.ethereum=="object"&&"request"in E.ethereum&&typeof E.ethereum.request=="function")y=E.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");y=v}const B=new URL((r=g==null?void 0:g.url)!==null&&r!==void 0?r:window.location.href),b=await y.request({method:"eth_requestAccounts"}).then(E=>E).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!b||b.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const C=D4(b[0]);let j=(n=g==null?void 0:g.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!j){const E=await y.request({method:"eth_chainId"});j=tte(E)}const _={domain:B.host,address:C,statement:x,uri:B.href,version:"1",chainId:j,nonce:(i=g==null?void 0:g.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(s=(a=g==null?void 0:g.signInWithEthereum)===null||a===void 0?void 0:a.issuedAt)!==null&&s!==void 0?s:new Date,expirationTime:(l=g==null?void 0:g.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(A=g==null?void 0:g.signInWithEthereum)===null||A===void 0?void 0:A.notBefore,requestId:(c=g==null?void 0:g.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(u=g==null?void 0:g.signInWithEthereum)===null||u===void 0?void 0:u.resources};h=nte(_),m=await y.request({method:"personal_sign",params:[rte(h),C]})}try{const{data:p,error:v}=await Re(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:h,signature:m},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Ci});if(v)throw v;
391return!p||!p.session||!p.user?{data:{user:null,session:null},error:new jA}:(p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("SIGNED_IN",p.session)),{data:Object.assign({},p),error:v})}catch(p){if(ke(p))return{data:{user:null,session:null},error:p};throw p}}async signInWithSolana(t){var r,n,i,a,s,l,A,c,u,d,f,h;let m,p;if("message"in t)m=t.message,p=t.signature;else{const{chain:v,wallet:x,statement:g,options:y}=t;let B;if(_n())if(typeof x=="object")B=x;else{const C=window;if("solana"in C&&typeof C.solana=="object"&&("signIn"in C.solana&&typeof C.solana.signIn=="function"||"signMessage"in C.solana&&typeof C.solana.signMessage=="function"))B=C.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");B=x}const b=new URL((r=y==null?void 0:y.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in B&&B.signIn){const C=await B.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},y==null?void 0:y.signInWithSolana),{version:"1",domain:b.host,uri:b.href}),g?{statement:g}:null));let j;if(Array.isArray(C)&&C[0]&&typeof C[0]=="object")j=C[0];else if(C&&typeof C=="object"&&"signedMessage"in C&&"signature"in C)j=C;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in j&&"signature"in j&&(typeof j.signedMessage=="string"||j.signedMessage instanceof Uint8Array)&&j.signature instanceof Uint8Array)m=typeof j.signedMessage=="string"?j.signedMessage:new TextDecoder().decode(j.signedMessage),p=j.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in B)||typeof B.signMessage!="function"||!("publicKey"in B)||typeof B!="object"||!B.publicKey||!("toBase58"in B.publicKey)||typeof B.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");m=[`${b.host} wants you to sign in with your Solana account:`,B.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${b.href}`,`Issued At: ${(i=(n=y==null?void 0:y.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((a=y==null?void 0:y.signInWithSolana)===null||a===void 0)&&a.notBefore?[`Not Before: ${y.signInWithSolana.notBefore}`]:[],...!((s=y==null?void 0:y.signInWithSolana)===null||s===void 0)&&s.expirationTime?[`Expiration Time: ${y.signInWithSolana.expirationTime}`]:[],...!((l=y==null?void 0:y.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${y.signInWithSolana.chainId}`]:[],...!((A=y==null?void 0:y.signInWithSolana)===null||A===void 0)&&A.nonce?[`Nonce: ${y.signInWithSolana.nonce}`]:[],...!((c=y==null?void 0:y.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${y.signInWithSolana.requestId}`]:[],...!((d=(u=y==null?void 0:y.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||d===void 0)&&d.length?["Resources",...y.signInWithSolana.resources.map(j=>`- ${j}`)]:[]].join(` 392`);const C=await B.signMessage(new TextEncoder().encode(m),"utf8");if(!C||!(C instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=C}}try{const{data:v,error:x}=await Re(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:m,signature:vl(p)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Ci});if(x)throw x;return!v||!v.session||!v.user?{data:{user:null,session:null},error:new jA}:(v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),{data:Object.assign({},v),error:x})}catch(v){if(ke(v))return{data:{user:null,session:null},error:v};throw v}}async _exchangeCodeForSession(t){const r=await Zo(this.storage,`${this.storageKey}-code-verifier`),[n,i]=(r??"").split("/");try{const{data:a,error:s}=await Re(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:Ci});if(await Us(this.storage,`${this.storageKey}-code-verifier`),s)throw s;return!a||!a.session||!a.user?{data:{user:null,session:null,redirectType:null},error:new jA}:(a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),{data:Object.assign(Object.assign({},a),{redirectType:i??null}),error:s})}
392catch(a){if(ke(a))return{data:{user:null,session:null,redirectType:null},error:a};throw a}}async signInWithIdToken(t){try{const{options:r,provider:n,token:i,access_token:a,nonce:s}=t,l=await Re(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:i,access_token:a,nonce:s,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:Ci}),{data:A,error:c}=l;return c?{data:{user:null,session:null},error:c}:!A||!A.session||!A.user?{data:{user:null,session:null},error:new jA}:(A.session&&(await this._saveSession(A.session),await this._notifyAllSubscribers("SIGNED_IN",A.session)),{data:A,error:c})}catch(r){if(ke(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOtp(t){var r,n,i,a,s;try{if("email"in t){const{email:l,options:A}=t;let c=null,u=null;this.flowType==="pkce"&&([c,u]=await _A(this.storage,this.storageKey));const{error:d}=await Re(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(r=A==null?void 0:A.data)!==null&&r!==void 0?r:{},create_user:(n=A==null?void 0:A.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:A==null?void 0:A.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:A==null?void 0:A.emailRedirectTo});return{data:{user:null,session:null},error:d}}if("phone"in t){const{phone:l,options:A}=t,{data:c,error:u}=await Re(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(i=A==null?void 0:A.data)!==null&&i!==void 0?i:{},create_user:(a=A==null?void 0:A.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:A==null?void 0:A.captchaToken},channel:(s=A==null?void 0:A.channel)!==null&&s!==void 0?s:"sms"}});return{data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u}}throw new mm("You must provide either an email or phone number.")}catch(l){if(ke(l))return{data:{user:null,session:null},error:l};throw l}}async verifyOtp(t){var r,n;try{let i,a;"options"in t&&(i=(r=t.options)===null||r===void 0?void 0:r.redirectTo,a=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:s,error:l}=await Re(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:a}}),redirectTo:i,xform:Ci});if(l)throw l;if(!s)throw new Error("An error occurred on token verification.");const A=s.session,c=s.user;return A!=null&&A.access_token&&(await this._saveSession(A),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",A)),{data:{user:c,session:A},error:null}}catch(i){if(ke(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithSSO(t){var r,n,i;try{let a=null,s=null;return this.flowType==="pkce"&&([a,s]=await _A(this.storage,this.storageKey)),await Re(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:s}),headers:this.headers,xform:Gee})}catch(a){if(ke(a))return{data:null,error:a};throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new Rs;const{error:i}=await Re(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return{data:{user:null,session:null},error:i}})}catch(t){if(ke(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:i,options:a}=t,{error:s}=await Re(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},redirectTo:a==null?void 0:a.emailRedirectTo});return{data:{user:null,session:null},error:s}}else if("phone"in t){const{phone:n,type:i,options:a}=t,{data:s,error:l}=await Re(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}}});return{data:{user:null,session:null,messageId:s==null?void 0:s.message_id},error:l}}throw new mm("You must provide either an email or phone number and a type")}catch(r){if(ke(r))return{data:{user:null,session:null},error:r};throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await Zo(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not val
392id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<Y0:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const s=await Zo(this.userStorage,this.storageKey+"-user");s!=null&&s.user?t.user=s.user:t.user=Z0()}if(this.storage.isServer&&t.user){let s=this.suppressGetSessionWarning;t=new Proxy(t,{get:(A,c,u)=>(!s&&c==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),s=!0,this.suppressGetSessionWarning=!0),Reflect.get(A,c,u))})}return{data:{session:t},error:null}}const{data:i,error:a}=await this._callRefreshToken(t.refresh_token);return a?{data:{session:null},error:a}:{data:{session:i},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await Re(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Ys}):await this._useSession(async r=>{var n,i,a;const{data:s,error:l}=r;if(l)throw l;return!(!((n=s.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Rs}:await Re(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(a=(i=s.session)===null||i===void 0?void 0:i.access_token)!==null&&a!==void 0?a:void 0,xform:Ys})})}catch(r){if(ke(r))return wee(r)&&(await this._removeSession(),await Us(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:r};throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:i,error:a}=n;if(a)throw a;if(!i.session)throw new Rs;const s=i.session;let l=null,A=null;this.flowType==="pkce"&&t.email!=null&&([l,A]=await _A(this.storage,this.storageKey));const{data:c,error:u}=await Re(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:l,code_challenge_method:A}),jwt:s.access_token,xform:Ys});if(u)throw u;return s.user=c.user,await this._saveSession(s),await this._notifyAllSubscribers("USER_UPDATED",s),{data:{user:s.user},error:null}})}catch(n){if(ke(n))return{data:{user:null},error:n};throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Rs;const r=Date.now()/1e3;let n=r,i=!0,a=null;const{payload:s}=J0(t.access_token);if(s.exp&&(n=s.exp,i=n<=r),i){const{data:l,error:A}=await this._callRefreshToken(t.refresh_token);if(A)return{data:{user:null,session:null},error:A};if(!l)return{data:{user:null,session:null},error:null};a=l}else{const{data:l,error:A}=await this._getUser(t.access_token);if(A)throw A;a={access_token:t.access_token,refresh_token:t.refresh_token,user:l.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)}return{data:{user:a.user,session:a},error:null}}catch(r){if(ke(r))return{data:{session:null,user:null},error:r};throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:s,error:l}=r;if(l)throw l;t=(n=s.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new Rs;const{data:i,error:a}=await this._callRefreshToken(t.refresh_token);return a?{data:{user:null,session:null},error:a}:i?{data:{user:i.user,session:i},error:null}:{data:{user:null,session:null},error:null}})}catch(r){if(ke(r))return{data:{user:null,session:null},error:r};throw r}}async _getSessionFromURL(t,r){try{if(!_n())throw new gm("No browser detected.");
392if(t.error||t.error_description||t.error_code)throw new gm(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new YT("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new gm("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new YT("No code detected.");const{data:g,error:y}=await this._exchangeCodeForSession(t.code);if(y)throw y;const B=new URL(window.location.href);return B.searchParams.delete("code"),window.history.replaceState(window.history.state,"",B.toString()),{data:{session:g.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:i,access_token:a,refresh_token:s,expires_in:l,expires_at:A,token_type:c}=t;if(!a||!l||!s||!c)throw new gm("No session defined in URL");const u=Math.round(Date.now()/1e3),d=parseInt(l);let f=u+d;A&&(f=parseInt(A));const h=f-u;h*1e3<=VA&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${d}s`);const m=f-d;u-m>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",m,f,u):u-m<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",m,f,u);const{data:p,error:v}=await this._getUser(a);if(v)throw v;const x={provider_token:n,provider_refresh_token:i,access_token:a,expires_in:d,expires_at:f,refresh_token:s,token_type:c,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:x,redirectType:t.type},error:null}}catch(n){if(ke(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await Zo(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:i,error:a}=r;if(a)return{error:a};const s=(n=i.session)===null||n===void 0?void 0:n.access_token;if(s){const{error:l}=await this.admin.signOut(s,t);if(l&&!(xee(l)&&(l.status===404||l.status===401||l.status===403)))return{error:l}}return t!=="others"&&(await this._removeSession(),await Us(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const r=Nee(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,i;try{const{data:{session:a},error:s}=r;if(s)throw s;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",a)),this._debug("INITIAL_SESSION","callback id",t,"session",a)}catch(a){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",a),console.error(a)}})}async resetPasswordForEmail(t,r={}){let n=null,i=null;this.flowType==="pkce"&&([n,i]=await _A(this.storage,this.storageKey,!0));try{return await Re(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:i,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(a){if(ke(a))return{data:null,error:a};throw a}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return{data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(r){if(ke(r))return{data:null,error:r};throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:n,error:i}=await this._useSession(async a=>{var s,l,A,c,u;const{data:d,error:f}=a;if(f)throw f;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(s=t.options)===null||s===void 0?void 0:s.redirectTo,scopes:(l=t.options)===null||l===void 0?void 0:l.scopes,queryParams:(A=t.options)===null||A===void 0?void 0:A.queryParams,skipBrowserRedirect:!0});return await Re(this.fetch,"GET",h,{headers:this.headers,jwt:(u=(c=d.session)===null||c===void 0?void 0:c.access_token)!==null&&u!==void 0?u:void 0})});if(i)throw i;return _n()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),{data:{provider:t.provider,url:n==null?void 0:n.url},error:null}}catch(n){if(ke(n))return{data:{provider:t.provider,url:null},error:n};throw n}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var n;try{const{error:i,data:{session:a}}=r;if(i)throw i;const{options:s,provider:l,token:A,access_token:c,nonce:u}=t,d=await Re(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=a==null?void 0:a.access_token)!==null&&n!==void 0?n:void 0,body:{provider:l,id_token:A,access_token:c,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},xform:Ci}),{data:f,error:h}=d;return h?{data:{user:null,session:null},error:h}:!f||!f.session||!f.user?{data:{user:null,session:null},error:new jA}:(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),{data:f,error:h})}catch(i){if(ke(i))return{data:{user:null,session:null},error:i};throw i}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,i;const{data:a,error:s}=r;if(s)throw s;
392return await Re(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(n=a.session)===null||n===void 0?void 0:n.access_token)!==null&&i!==void 0?i:void 0})})}catch(r){if(ke(r))return{data:null,error:r};throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await Pee(async i=>(i>0&&await Fee(200*Math.pow(2,i-1)),this._debug(r,"refreshing attempt",i),await Re(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Ci})),(i,a)=>{const s=200*Math.pow(2,i);return a&&X0(a)&&Date.now()+s-n<VA})}catch(n){if(this._debug(r,"error",n),ke(n))return{data:{session:null,user:null},error:n};throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),_n()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const i=await Zo(this.storage,this.storageKey);if(i&&this.userStorage){let s=await Zo(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!s&&(s={user:i.user},await WA(this.userStorage,this.storageKey+"-user",s)),i.user=(t=s==null?void 0:s.user)!==null&&t!==void 0?t:Z0()}else if(i&&!i.user&&!i.user){const s=await Zo(this.storage,this.storageKey+"-user");s&&(s!=null&&s.user)?(i.user=s.user,await Us(this.storage,this.storageKey+"-user"),await WA(this.storage,this.storageKey,i)):i.user=Z0()}if(this._debug(n,"session from storage",i),!this._isValidSession(i)){this._debug(n,"session is not valid"),i!==null&&await this._removeSession();return}const a=((r=i.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<Y0;if(this._debug(n,`session has${a?"":" not"} expired with margin of ${Y0}s`),a){if(this.autoRefreshToken&&i.refresh_token){const{error:s}=await this._callRefreshToken(i.refresh_token);s&&(console.error(s),X0(s)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",s),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:s,error:l}=await this._getUser(i.access_token);!l&&(s!=null&&s.user)?(i.user=s.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(s){console.error("Error getting user data:",s),this._debug(n,"error getting user data, skipping SIGNED_IN notification",s)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(n,"error",i),console.error(i);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new Rs;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new _x;const{data:a,error:s}=await this._refreshAccessToken(t);if(s)throw s;if(!a.session)throw new Rs;await this._saveSession(a.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",a.session);const l={data:a.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(a){if(this._debug(i,"error",a),ke(a)){const s={data:null,error:a};return X0(a)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(s),s}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(a),a}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,r,n=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const a=[],s=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,r)}catch(A){a.push(A)}});if(await Promise.all(s),a.length>0){for(let l=0;l<a.length;l+=1)console.error(a[l]);throw a[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await WA(this.userStorage,this.storageKey+"-user",{user:r.user});const i=Object.assign({},r);delete i.user;const a=tF(i);await WA(this.storage,this.storageKey,a)}else{const i=tF(r);await WA(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),await Us(this.storage,this.storageKey),await Us(this.storage,this.storageKey+"-code-verifier"),await Us(this.storage,this.storageKey+"-user"),this.userStorage&&await Us(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&_n()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
392catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),VA);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((n.expires_at*1e3-t)/VA);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${VA}ms, refresh threshold is ${MC} ticks`),i<=MC&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof R4)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!_n()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const i=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&i.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&i.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[a,s]=await _A(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(a)}`,code_challenge_method:`${encodeURIComponent(s)}`});i.push(l.toString())}if(n!=null&&n.queryParams){const a=new URLSearchParams(n.queryParams);i.push(a.toString())}return n!=null&&n.skipBrowserRedirect&&i.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:i,error:a}=r;return a?{data:null,error:a}:await Re(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(ke(r))return{data:null,error:r};throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,i;const{data:a,error:s}=r;if(s)return{data:null,error:s};const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:A,error:c}=await Re(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token});return c?{data:null,error:c}:(t.factorType==="totp"&&A.type==="totp"&&(!((i=A==null?void 0:A.totp)===null||i===void 0)&&i.qr_code)&&(A.totp.qr_code=`data:image/svg+xml;utf-8,${A.totp.qr_code}`),{data:A,error:null})})}catch(r){if(ke(r))return{data:null,error:r};throw r}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:i,error:a}=r;if(a)return{data:null,error:a};const s=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?cte(t.webauthn.credential_response):ute(t.webauthn.credential_response)})}:{code:t.code}),{data:l,error:A}=await Re(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:s,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return A?{data:null,error:A}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),{data:l,error:A})})}catch(r){if(ke(r))return{data:null,error:r};throw r}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:i,error:a}=r;if(a)return{data:null,error:a};const s=await Re(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});if(s.error)return s;const{data:l}=s;if(l.type!=="webauthn")return{data:l,error:null};switch(l.webauthn.type){case"create":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:lte(l.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:Ate(l.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(ke(r))return{data:null,error:r};throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?{data:null,error:n}:await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const i={all:[],phone:[],totp:[],webauthn:[]};for(const a of(t=r==null?void 0:r.factors)!==null&&t!==void 0?t:[])i.all.push(a),a.status==="verified"&&i[a.factor_type].push(a);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var r,n;const{data:{session:i},error:a}=t;if(a)return{data:null,error:a};if(!i)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:s}=J0(i.access_token);let l=null;s.aal&&(l=s.aal);let A=l;((n=(r=i.user.factors)===null||r===void 0?void 0:r.filter(d=>d.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(A="aal2");const u=s.amr||[];return{data:{currentLevel:l,nextLevel:A,currentAuthenticationMethods:u},error:null}}))}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(l=>l.kid===t);if(n)return n;const i=Date.now();if(n=this.jwks.keys.find(l=>l.kid===t),n&&this.jwks_cached_at+vee>i)return n;const{data:a,error:s}=await Re(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(s)throw s;return!a.keys||a.keys.length===0||(this.jwks=a,this.jwks_cached_at=i,n=a.keys.find(l=>l.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:h,error:m}
392=await this.getSession();if(m||!h.session)return{data:null,error:m};n=h.session.access_token}const{header:i,payload:a,signature:s,raw:{header:l,payload:A}}=J0(n);r!=null&&r.allowExpired||Dee(a.exp);const c=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!c){const{error:h}=await this.getUser(n);if(h)throw h;return{data:{claims:a,header:i,signature:s},error:null}}const u=Lee(i.alg),d=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,d,s,Eee(`${l}.${A}`)))throw new LC("Invalid JWT signature");return{data:{claims:a,header:i,signature:s},error:null}}catch(n){if(ke(n))return{data:null,error:n};throw n}}}oh.nextInstanceID=0;const xte=oh;class wte extends xte{constructor(t){super(t)}}var bte=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(u){try{c(n.next(u))}catch(d){s(d)}}function A(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?a(u.value):i(u.value).then(l,A)}c((n=n.apply(e,t||[])).next())})};class Bte{constructor(t,r,n){var i,a,s;this.supabaseUrl=t,this.supabaseKey=r;const l=fee(t);if(!r)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",l),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",l),this.storageUrl=new URL("storage/v1",l),this.functionsUrl=new URL("functions/v1",l);const A=`sb-${l.hostname.split(".")[0]}-auth-token`,c={db:nee,realtime:aee,auth:Object.assign(Object.assign({},iee),{storageKey:A}),global:ree},u=dee(n??{},c);this.storageKey=(i=u.auth.storageKey)!==null&&i!==void 0?i:"",this.headers=(a=u.global.headers)!==null&&a!==void 0?a:{},u.accessToken?(this.accessToken=u.accessToken,this.auth=new Proxy({},{get:(d,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((s=u.auth)!==null&&s!==void 0?s:{},this.headers,u.global.fetch),this.fetch=Aee(r,this._getAccessToken.bind(this),u.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},u.realtime)),this.rest=new yZ(new URL("rest/v1",l).href,{headers:this.headers,schema:u.db.schema,fetch:this.fetch}),this.storage=new ZZ(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),u.accessToken||this._listenForAuthEvents()}get functions(){return new XJ(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,r={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,r,n)}channel(t,r={config:{}}){return this.realtime.channel(t,r)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){return bte(this,void 0,void 0,function*(){var t,r;if(this.accessToken)return yield this.accessToken();const{data:n}=yield this.auth.getSession();return(r=(t=n.session)===null||t===void 0?void 0:t.access_token)!==null&&r!==void 0?r:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:i,userStorage:a,storageKey:s,flowType:l,lock:A,debug:c},u,d){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new wte({url:this.authUrl.href,headers:Object.assign(Object.assign({},f),u),storageKey:s,autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:i,userStorage:a,flowType:l,lock:A,debug:c,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(h=>h.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new UZ(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((r,n)=>{this._handleTokenChanged(r,"CLIENT",n==null?void 0:n.access_token)})}_handleTokenChanged(t,r,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const Cte=(e,t,r)=>new Bte(e,t,r);function jte(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}jte()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
392ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const _te="https://mqwmyzhavgnjbirrwwgt.supabase.co",Ete="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1xd215emhhdmduamJpcnJ3d2d0Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjA1NzA4MDMsImV4cCI6MjA3NjE0NjgwM30.N9nrERBHFzH2X-qUFu0HT2YUp2hWCyV85GqZqLDmoCA",Be=Cte(_te,Ete,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),H4=w.createContext(void 0),Ste=({children:e})=>{const[t,r]=w.useState(null),[n,i]=w.useState(null),[a,s]=w.useState(!0),[l,A]=w.useState(null),c=Wn(),u=async x=>{const{data:g,error:y}=await Be.from("user_roles").select("role").eq("user_id",x).single();return y?(console.error("Error fetching user role:",y),"free"):(g==null?void 0:g.role)||"free"},d=async()=>{if(t){const x=await u(t.id);A(x)}},f=l==="pro"||l==="admin",h=l==="admin";w.useEffect(()=>{const{data:{subscription:x}}=Be.auth.onAuthStateChange((g,y)=>{i(y),r((y==null?void 0:y.user)??null),s(!1),y!=null&&y.user?setTimeout(()=>{u(y.user.id).then(A)},0):A(null)});return Be.auth.getSession().then(({data:{session:g}})=>{i(g),r((g==null?void 0:g.user)??null),s(!1),g!=null&&g.user&&u(g.user.id).then(A)}),()=>x.unsubscribe()},[]);const m=async(x,g,y)=>{const B=`${window.location.origin}/dashboard`,{error:b}=await Be.auth.signUp({email:x,password:g,options:{emailRedirectTo:B,data:{full_name:y||""}}});return b?be({title:"Sign up failed",description:b.message,variant:"destructive"}):(be({title:"Success!",description:"Account created successfully. Redirecting to dashboard..."}),c("/dashboard")),{error:b}},p=async(x,g)=>{const{error:y}=await Be.auth.signInWithPassword({email:x,password:g});return y?be({title:"Sign in failed",description:y.message,variant:"destructive"}):(be({title:"Welcome back!",description:"Signed in successfully."}),c("/dashboard")),{error:y}},v=async()=>{await Be.auth.signOut(),r(null),i(null),be({title:"Signed out",description:"You have been signed out successfully."}),c("/")};return o.jsx(H4.Provider,{value:{user:t,session:n,loading:a,userRole:l,isPro:f,isAdmin:h,refreshUserRole:d,signUp:m,signIn:p,signOut:v},children:e})},Tr=()=>{const e=w.useContext(H4);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e},Nte={theme:"system",setTheme:()=>null},K4=w.createContext(Nte);function Ote({children:e,defaultTheme:t="light",storageKey:r="meetingcost-ui-theme",...n}){const[i,a]=w.useState(()=>localStorage.getItem(r)||t);w.useEffect(()=>{const l=window.document.documentElement;if(l.classList.remove("light","dark"),i==="system"){const A=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";l.classList.add(A);return}l.classList.add(i)},[i]);const s={theme:i,setTheme:l=>{localStorage.setItem(r,l),a(l)}};return o.jsx(K4.Provider,{...n,value:s,children:e})}const Tte=()=>{const e=w.useContext(K4);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},$C=op("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),z=w.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},a)=>{const s=n?eE:"button";return o.jsx(s,{className:ce($C({variant:t,size:r,className:e})),ref:a,...i})});z.displayName="Button";var tb="focusScope.autoFocusOnMount",rb="focusScope.autoFocusOnUnmount",lF={bubbles:!1,cancelable:!0},Fte="FocusScope",pp=w.forwardRef((e,t)=>
vendor: 5,025 bytes, line 392
392{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[l,A]=w.useState(null),c=wn(i),u=wn(a),d=w.useRef(null),f=ze(t,p=>A(p)),h=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(n){let p=function(y){if(h.paused||!l)return;const B=y.target;l.contains(B)?d.current=B:Ds(d.current,{select:!0})},v=function(y){if(h.paused||!l)return;const B=y.relatedTarget;B!==null&&(l.contains(B)||Ds(d.current,{select:!0}))},x=function(y){if(document.activeElement===document.body)for(const b of y)b.removedNodes.length>0&&Ds(l)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const g=new MutationObserver(x);return l&&g.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),g.disconnect()}}},[n,l,h.paused]),w.useEffect(()=>{if(l){cF.add(h);const p=document.activeElement;if(!l.contains(p)){const x=new CustomEvent(tb,lF);l.addEventListener(tb,c),l.dispatchEvent(x),x.defaultPrevented||(Pte(Mte(V4(l)),{select:!0}),document.activeElement===p&&Ds(l))}return()=>{l.removeEventListener(tb,c),setTimeout(()=>{const x=new CustomEvent(rb,lF);l.addEventListener(rb,u),l.dispatchEvent(x),x.defaultPrevented||Ds(p??document.body,{select:!0}),l.removeEventListener(rb,u),cF.remove(h)},0)}}},[l,c,u,h]);const m=w.useCallback(p=>{if(!r&&!n||h.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,x=document.activeElement;if(v&&x){const g=p.currentTarget,[y,B]=kte(g);y&&B?!p.shiftKey&&x===B?(p.preventDefault(),r&&Ds(y,{select:!0})):p.shiftKey&&x===y&&(p.preventDefault(),r&&Ds(B,{select:!0})):x===g&&p.preventDefault()}},[r,n,h.paused]);return o.jsx(Oe.div,{tabIndex:-1,...s,ref:f,onKeyDown:m})});pp.displayName=Fte;function Pte(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ds(n,{select:t}),document.activeElement!==r)return}function kte(e){const t=V4(e),r=AF(t,e),n=AF(t.reverse(),e);return[r,n]}function V4(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function AF(e,t){for(const r of e)if(!Ite(r,{upTo:t}))return r}function Ite(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 Ute(e){return e instanceof HTMLInputElement&&"select"in e}function Ds(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Ute(e)&&t&&e.select()}}var cF=Qte();function Qte(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=uF(e,t),e.unshift(t)},remove(t){var r;e=uF(e,t),(r=e[0])==null||r.resume()}}}function uF(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Mte(e){return e.filter(t=>t.tagName!=="A")}var nb=0;function Ex(){w.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??dF()),document.body.insertAdjacentElement("beforeend",e[1]??dF()),nb++,()=>{nb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),nb--}},[])}function dF(){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 ca=function(){return ca=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ca.apply(this,arguments)};function W4(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Rte(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Bg="right-scroll-bar-position",Cg="width-before-scroll-bar",Dte="with-scroll-bars-hidden",Lte="--removed-body-scroll-bar-size";function ib(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $te(e,t){var r=w.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var Hte=typeof window<"u"?w.useLayoutEffect:w.useEffect,fF=new WeakMap;function Kte(e,t){var r=$te(null,function(n){return e.forEach(function(i){return ib(i,n)})});return Hte(function(){var n=fF.get(r);if(n){var i=new Set(n),a=new Set(e),s=r.current;
vendor: 4,224 bytes, lines 392-407
392i.forEach(function(l){a.has(l)||ib(l,null)}),a.forEach(function(l){i.has(l)||ib(l,s)})}fF.set(r,e)},[e]),r}function Vte(e){return e}function Wte(e,t){t===void 0&&(t=Vte);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(l){return l!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(l){return a(l)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var l=r;r=[],l.forEach(a),s=r}var A=function(){var u=s;s=[],u.forEach(a)},c=function(){return Promise.resolve().then(A)};c(),r={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),r}}}};return i}function Gte(e){e===void 0&&(e={});var t=Wte(null);return t.options=ca({async:!0,ssr:!1},e),t}var G4=function(e){var t=e.sideCar,r=W4(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return w.createElement(n,ca({},r))};G4.isSideCarExport=!0;function zte(e,t){return e.useMedium(t),G4}var z4=Gte(),ab=function(){},Sx=w.forwardRef(function(e,t){var r=w.useRef(null),n=w.useState({onScrollCapture:ab,onWheelCapture:ab,onTouchMoveCapture:ab}),i=n[0],a=n[1],s=e.forwardProps,l=e.children,A=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,m=e.noIsolation,p=e.inert,v=e.allowPinchZoom,x=e.as,g=x===void 0?"div":x,y=e.gapMode,B=W4(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=f,C=Kte([r,t]),j=ca(ca({},B),i);return w.createElement(w.Fragment,null,u&&w.createElement(b,{sideCar:z4,removeScrollBar:c,shards:d,noRelative:h,noIsolation:m,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:y}),s?w.cloneElement(w.Children.only(l),ca(ca({},j),{ref:C})):w.createElement(g,ca({},j,{className:A,ref:C}),l))});Sx.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Sx.classNames={fullWidth:Cg,zeroRight:Bg};var qte=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yte(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=qte();return t&&e.setAttribute("nonce",t),e}function Xte(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Jte(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Zte=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Yte())&&(Xte(t,r),Jte(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ere=function(){var e=Zte();return function(t,r){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},q4=function(){var e=ere(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},tre={left:0,top:0,right:0,gap:0},sb=function(e){return parseInt(e||"",10)||0},rre=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[sb(r),sb(n),sb(i)]},nre=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tre;var t=rre(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},ire=q4(),Pc="data-scroll-locked",are=function(e,t,r,n){var i=e.left,a=e.top,s=e.right,l=e.gap;return r===void 0&&(r="margin"),` 393 .`.concat(Dte,` { 394 overflow: hidden `).concat(n,`; 395 padding-right: `).concat(l,"px ").concat(n,`; 396 } 397 body[`).concat(Pc,`] { 398 overflow: hidden `).concat(n,`; 399 overscroll-behavior: contain; 400 `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` 401 padding-left: `.concat(i,`px; 402 padding-top: `).concat(a,`px; 403 padding-right: `).concat(s,`px; 404 margin-left:0; 405 margin-top:0; 406 margin-right: `).concat(l,"px ").concat(n,`; 407 `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";
407")].filter(Boolean).join(""),` 408 } 409 410 .`).concat(Bg,` { 411 right: `).concat(l,"px ").concat(n,`; 412 } 413 414 .`).concat(Cg,` { 415 margin-right: `).concat(l,"px ").concat(n,`; 416 } 417 418 .`).concat(Bg," .").concat(Bg,` { 419 right: 0 `).concat(n,`; 420 } 421 422 .`).concat(Cg," .").concat(Cg,` { 423 margin-right: 0 `).concat(n,`; 424 } 425 426 body[`).concat(Pc,`] { 427 `).concat(Lte,": ").concat(l,`px; 428 } 429`)},hF=function(){var e=parseInt(document.body.getAttribute(Pc)||"0",10);return isFinite(e)?e:0},sre=function(){w.useEffect(function(){return document.body.setAttribute(Pc,(hF()+1).toString()),function(){var e=hF()-1;e<=0?document.body.removeAttribute(Pc):document.body.setAttribute(Pc,e.toString())}},[])},ore=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;sre();var a=w.useMemo(function(){return nre(i)},[i]);return w.createElement(ire,{styles:are(a,!t,i,r?"":"!important")})},HC=!1;if(typeof window<"u")try{var vm=Object.defineProperty({},"passive",{get:function(){return HC=!0,!0}});window.addEventListener("test",vm,vm),window.removeEventListener("test",vm,vm)}catch{HC=!1}var OA=HC?{passive:!1}:!1,lre=function(e){return e.tagName==="TEXTAREA"},Y4=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!lre(e)&&r[t]==="visible")},Are=function(e){return Y4(e,"overflowY")},cre=function(e){return Y4(e,"overflowX")},pF=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=X4(e,n);if(i){var a=J4(e,n),s=a[1],l=a[2];if(s>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ure=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},dre=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},X4=function(e,t){return e==="v"?Are(t):cre(t)},J4=function(e,t){return e==="v"?ure(t):dre(t)},fre=function(e,t){return e==="h"&&t==="rtl"?-1:1},hre=function(e,t,r,n,i){var a=fre(e,window.getComputedStyle(t).direction),s=a*n,l=r.target,A=t.contains(l),c=!1,u=s>0,d=0,f=0;do{if(!l)break;var h=J4(e,l),m=h[0],p=h[1],v=h[2],x=p-v-a*m;(m||x)&&X4(e,l)&&(d+=x,f+=m);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!A&&l!==document.body||A&&(t.contains(l)||t===l));return(u&&(Math.abs(d)<1||!i)||!u&&(Math.abs(f)<1||!i))&&(c=!0),c},ym=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mF=function(e){return[e.deltaX,e.deltaY]},gF=function(e){return e&&"current"in e?e.current:e},pre=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mre=function(e){return` 430 .block-interactivity-`.concat(e,` {pointer-events: none;} 431 .allow-interactivity-`).concat(e,` {pointer-events: all;} 432`)},gre=0,TA=[];function vre(e){var t=w.useRef([]),r=w.useRef([0,0]),n=w.useRef(),i=w.useState(gre++)[0],a=w.useState(q4)[0],s=w.useRef(e);w.useEffect(function(){s.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var p=Rte([e.lockRef.current],(e.shards||[]).map(gF),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=w.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var x=ym(p),g=r.current,y="deltaX"in p?p.deltaX:g[0]-x[0],B="deltaY"in p?p.deltaY:g[1]-x[1],b,C=p.target,j=Math.abs(y)>Math.abs(B)?"h":"v";if("touches"in p&&j==="h"&&C.type==="range")return!1;var _=pF(j,C);if(!_)return!0;if(_?b=j:(b=j==="v"?"h":"v",_=pF(j,C)),!_)return!1;if(!n.current&&"changedTouches"in p&&(y||B)&&(n.current=b),!b)return!0;var E=n.current||b;return hre(E,v,p,E==="h"?y:B,!0)},[]),A=w.useCallback(function(p){var v=p;if(!(!TA.length||TA[TA.length-1]!==a)){var x="deltaY"in v?mF(v):ym(v),g=t.current.filter(function(b){return b.name===v.type&&(b.target===v.target||v.target===b.shadowParent)&&pre(b.delta,x)})[0];if(g&&g.should){v.cancelable&&v.preventDefault();return}
vendor: 4,355 bytes, line 432
432if(!g){var y=(s.current.shards||[]).map(gF).filter(Boolean).filter(function(b){return b.contains(v.target)}),B=y.length>0?l(v,y[0]):!s.current.noIsolation;B&&v.cancelable&&v.preventDefault()}}},[]),c=w.useCallback(function(p,v,x,g){var y={name:p,delta:v,target:x,should:g,shadowParent:yre(x)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(B){return B!==y})},1)},[]),u=w.useCallback(function(p){r.current=ym(p),n.current=void 0},[]),d=w.useCallback(function(p){c(p.type,mF(p),p.target,l(p,e.lockRef.current))},[]),f=w.useCallback(function(p){c(p.type,ym(p),p.target,l(p,e.lockRef.current))},[]);w.useEffect(function(){return TA.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",A,OA),document.addEventListener("touchmove",A,OA),document.addEventListener("touchstart",u,OA),function(){TA=TA.filter(function(p){return p!==a}),document.removeEventListener("wheel",A,OA),document.removeEventListener("touchmove",A,OA),document.removeEventListener("touchstart",u,OA)}},[]);var h=e.removeScrollBar,m=e.inert;return w.createElement(w.Fragment,null,m?w.createElement(a,{styles:mre(i)}):null,h?w.createElement(ore,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function yre(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xre=zte(z4,vre);var mp=w.forwardRef(function(e,t){return w.createElement(Sx,ca({},e,{ref:t,sideCar:xre}))});mp.classNames=Sx.classNames;var wre=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},FA=new WeakMap,xm=new WeakMap,wm={},ob=0,Z4=function(e){return e&&(e.host||Z4(e.parentNode))},bre=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Z4(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Bre=function(e,t,r,n){var i=bre(t,Array.isArray(e)?e:[e]);wm[r]||(wm[r]=new WeakMap);var a=wm[r],s=[],l=new Set,A=new Set(i),c=function(d){!d||l.has(d)||(l.add(d),c(d.parentNode))};i.forEach(c);var u=function(d){!d||A.has(d)||Array.prototype.forEach.call(d.children,function(f){if(l.has(f))u(f);else try{var h=f.getAttribute(n),m=h!==null&&h!=="false",p=(FA.get(f)||0)+1,v=(a.get(f)||0)+1;FA.set(f,p),a.set(f,v),s.push(f),p===1&&m&&xm.set(f,!0),v===1&&f.setAttribute(r,"true"),m||f.setAttribute(n,"true")}catch(x){console.error("aria-hidden: cannot operate on ",f,x)}})};return u(t),l.clear(),ob++,function(){s.forEach(function(d){var f=FA.get(d)-1,h=a.get(d)-1;FA.set(d,f),a.set(d,h),f||(xm.has(d)||d.removeAttribute(n),xm.delete(d)),h||d.removeAttribute(r)}),ob--,ob||(FA=new WeakMap,FA=new WeakMap,xm=new WeakMap,wm={})}},Nx=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=wre(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),Bre(n,i,r,"aria-hidden")):function(){return null}},Ox="Dialog",[eL,z4e]=rn(Ox),[Cre,qi]=eL(Ox),tL=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=w.useRef(null),A=w.useRef(null),[c,u]=di({prop:n,defaultProp:i??!1,onChange:a,caller:Ox});return o.jsx(Cre,{scope:t,triggerRef:l,contentRef:A,contentId:Qn(),titleId:Qn(),descriptionId:Qn(),open:c,onOpenChange:u,onOpenToggle:w.useCallback(()=>u(d=>!d),[u]),modal:s,children:r})};tL.displayName=Ox;var rL="DialogTrigger",nL=w.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=qi(rL,r),a=ze(t,i.triggerRef);return o.jsx(Oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":FE(i.open),...n,ref:a,onClick:Ae(e.onClick,i.onOpenToggle)})});nL.displayName=rL;var OE="DialogPortal",[jre,iL]=eL(OE,{forceMount:void 0}),aL=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=e,a=qi(OE,t);return o.jsx(jre,{scope:t,forceMount:r,children:w.Children.map(n,s=>o.jsx(bn,{present:r||a.open,children:o.jsx($u,{asChild:!0,container:i,children:s})}))})};aL.displayName=OE;var mv="DialogOverlay",sL=w.forwardRef((e,t)=>{const r=iL(mv,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=qi(mv,e.__scopeDialog);return a.modal?o.jsx(bn,{present:n||a.open,children:o.jsx(Ere,{...i,ref:t})}):null});sL.displayName=mv;var _re=No("DialogOverlay.RemoveScroll"),Ere=w.forwardRef((e,t)=>
vendor: 4,655 bytes, lines 432-436
432{const{__scopeDialog:r,...n}=e,i=qi(mv,r);return o.jsx(mp,{as:_re,allowPinchZoom:!0,shards:[i.contentRef],children:o.jsx(Oe.div,{"data-state":FE(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Wl="DialogContent",oL=w.forwardRef((e,t)=>{const r=iL(Wl,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=qi(Wl,e.__scopeDialog);return o.jsx(bn,{present:n||a.open,children:a.modal?o.jsx(Sre,{...i,ref:t}):o.jsx(Nre,{...i,ref:t})})});oL.displayName=Wl;var Sre=w.forwardRef((e,t)=>{const r=qi(Wl,e.__scopeDialog),n=w.useRef(null),i=ze(t,r.contentRef,n);return w.useEffect(()=>{const a=n.current;if(a)return Nx(a)},[]),o.jsx(lL,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ae(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Ae(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&a.preventDefault()}),onFocusOutside:Ae(e.onFocusOutside,a=>a.preventDefault())})}),Nre=w.forwardRef((e,t)=>{const r=qi(Wl,e.__scopeDialog),n=w.useRef(!1),i=w.useRef(!1);return o.jsx(lL,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,l;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),a.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:a=>{var A,c;(A=e.onInteractOutside)==null||A.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=a.target;((c=r.triggerRef.current)==null?void 0:c.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),lL=w.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,l=qi(Wl,r),A=w.useRef(null),c=ze(t,A);return Ex(),o.jsxs(o.Fragment,{children:[o.jsx(pp,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:a,children:o.jsx(sA,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":FE(l.open),...s,ref:c,onDismiss:()=>l.onOpenChange(!1)})}),o.jsxs(o.Fragment,{children:[o.jsx(Ore,{titleId:l.titleId}),o.jsx(Fre,{contentRef:A,descriptionId:l.descriptionId})]})]})}),TE="DialogTitle",AL=w.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=qi(TE,r);return o.jsx(Oe.h2,{id:i.titleId,...n,ref:t})});AL.displayName=TE;var cL="DialogDescription",uL=w.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=qi(cL,r);return o.jsx(Oe.p,{id:i.descriptionId,...n,ref:t})});uL.displayName=cL;var dL="DialogClose",fL=w.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=qi(dL,r);return o.jsx(Oe.button,{type:"button",...n,ref:t,onClick:Ae(e.onClick,()=>i.onOpenChange(!1))})});fL.displayName=dL;function FE(e){return e?"open":"closed"}var hL="DialogTitleWarning",[q4e,pL]=o9(hL,{contentName:Wl,titleName:TE,docsSlug:"dialog"}),Ore=({titleId:e})=>{const t=pL(hL),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 433 434If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 435 436For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return w.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Tre="DialogDescriptionWarning",Fre=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pL(Tre).contentName}}.`;return w.useEffect(()=>{var a;const i=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},mL=tL,gL=nL,vL=aL,Tx=sL,Fx=oL,Px=AL,kx=uL,yL=fL;const qu=mL,Pre=gL,kre=vL,xL=w.forwardRef(({className:e,...t},r)=>o.jsx(Tx,{ref:r,className:ce("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));xL.displayName=Tx.displayName;const AA=w.forwardRef(({className:e,children:t,...r},n)=>o.jsxs(kre,{children:[o.jsx(xL,{}),o.jsxs(Fx,{ref:n,className:ce("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
436nded-lg",e),...r,children:[t,o.jsxs(yL,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[o.jsx($i,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));AA.displayName=Fx.displayName;const cA=({className:e,...t})=>o.jsx("div",{className:ce("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});cA.displayName="DialogHeader";const Ix=({className:e,...t})=>o.jsx("div",{className:ce("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ix.displayName="DialogFooter";const uA=w.forwardRef(({className:e,...t},r)=>o.jsx(Px,{ref:r,className:ce("text-lg font-semibold leading-none tracking-tight",e),...t}));uA.displayName=Px.displayName;const dA=w.forwardRef(({className:e,...t},r)=>o.jsx(kx,{ref:r,className:ce("text-sm text-muted-foreground",e),...t}));dA.displayName=kx.displayName;function vF(e,[t,r]){return Math.min(r,Math.max(t,e))}var Ire=w.createContext(void 0);function gp(e){const t=w.useContext(Ire);return e||t||"ltr"}function wL(e){const t=w.useRef({value:e,previous:e});return w.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ure=[" ","Enter","ArrowUp","ArrowDown"],Qre=[" ","Enter"],Gl="Select",[Ux,Qx,Mre]=ap(Gl),[Yu,Y4e]=rn(Gl,[Mre,Mo]),Mx=Mo(),[Rre,$o]=Yu(Gl),[Dre,Lre]=Yu(Gl),bL=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:a,value:s,defaultValue:l,onValueChange:A,dir:c,name:u,autoComplete:d,disabled:f,required:h,form:m}=e,p=Mx(t),[v,x]=w.useState(null),[g,y]=w.useState(null),[B,b]=w.useState(!1),C=gp(c),[j,_]=di({prop:n,defaultProp:i??!1,onChange:a,caller:Gl}),[E,I]=di({prop:s,defaultProp:l,onChange:A,caller:Gl}),T=w.useRef(null),k=v?m||!!v.closest("form"):!0,[N,F]=w.useState(new Set),M=Array.from(N).map(O=>O.props.value).join(";");return o.jsx(yE,{...p,children:o.jsxs(Rre,{required:h,scope:t,trigger:v,onTriggerChange:x,valueNode:g,onValueNodeChange:y,valueNodeHasChildren:B,onValueNodeHasChildrenChange:b,contentId:Qn(),value:E,onValueChange:I,open:j,onOpenChange:_,dir:C,triggerPointerDownPosRef:T,disabled:f,children:[o.jsx(Ux.Provider,{scope:t,children:o.jsx(Dre,{scope:e.__scopeSelect,onNativeOptionAdd:w.useCallback(O=>{F(U=>new Set(U).add(O))},[]),onNativeOptionRemove:w.useCallback(O=>{F(U=>{const P=new Set(U);return P.delete(O),P})},[]),children:r})}),k?o.jsxs(WL,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:d,value:E,onChange:O=>I(O.target.value),disabled:f,form:m,children:[E===void 0?o.jsx("option",{value:""}):null,Array.from(N)]},M):null]})})};bL.displayName=Gl;var BL="SelectTrigger",CL=w.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,a=Mx(r),s=$o(BL,r),l=s.disabled||n,A=ze(t,s.onTriggerChange),c=Qx(r),u=w.useRef("touch"),[d,f,h]=zL(p=>{const v=c().filter(y=>!y.disabled),x=v.find(y=>y.value===s.value),g=qL(v,p,x);g!==void 0&&s.onValueChange(g.value)}),m=p=>{l||(s.onOpenChange(!0),h()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return o.jsx(cp,{asChild:!0,...a,children:o.jsx(Oe.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":GL(s.value)?"":void 0,...i,ref:A,onClick:Ae(i.onClick,p=>{p.currentTarget.focus(),u.current!=="mouse"&&m(p)}),onPointerDown:Ae(i.onPointerDown,p=>{u.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(m(p),p.preventDefault())}),onKeyDown:Ae(i.onKeyDown,p=>{const v=d.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&f(p.key),!(v&&p.key===" ")&&Ure.includes(p.key)&&(m(),p.preventDefault())})})})});CL.displayName=BL;var jL="SelectValue",_L=w.forwardRef((e,t)=>
vendor: 15,549 bytes, line 436
436{const{__scopeSelect:r,className:n,style:i,children:a,placeholder:s="",...l}=e,A=$o(jL,r),{onValueNodeHasChildrenChange:c}=A,u=a!==void 0,d=ze(t,A.onValueNodeChange);return wr(()=>{c(u)},[c,u]),o.jsx(Oe.span,{...l,ref:d,style:{pointerEvents:"none"},children:GL(A.value)?o.jsx(o.Fragment,{children:s}):a})});_L.displayName=jL;var $re="SelectIcon",EL=w.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return o.jsx(Oe.span,{"aria-hidden":!0,...i,ref:t,children:n||"â¼"})});EL.displayName=$re;var Hre="SelectPortal",SL=e=>o.jsx($u,{asChild:!0,...e});SL.displayName=Hre;var zl="SelectContent",NL=w.forwardRef((e,t)=>{const r=$o(zl,e.__scopeSelect),[n,i]=w.useState();if(wr(()=>{i(new DocumentFragment)},[]),!r.open){const a=n;return a?aA.createPortal(o.jsx(OL,{scope:e.__scopeSelect,children:o.jsx(Ux.Slot,{scope:e.__scopeSelect,children:o.jsx("div",{children:e.children})})}),a):null}return o.jsx(TL,{...e,ref:t})});NL.displayName=zl;var _i=10,[OL,Ho]=Yu(zl),Kre="SelectContentImpl",Vre=No("SelectContent.RemoveScroll"),TL=w.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:s,side:l,sideOffset:A,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:m,hideWhenDetached:p,avoidCollisions:v,...x}=e,g=$o(zl,r),[y,B]=w.useState(null),[b,C]=w.useState(null),j=ze(t,L=>B(L)),[_,E]=w.useState(null),[I,T]=w.useState(null),k=Qx(r),[N,F]=w.useState(!1),M=w.useRef(!1);w.useEffect(()=>{if(y)return Nx(y)},[y]),Ex();const O=w.useCallback(L=>{const[pe,...W]=k().map(V=>V.ref.current),[ee]=W.slice(-1),le=document.activeElement;for(const V of L)if(V===le||(V==null||V.scrollIntoView({block:"nearest"}),V===pe&&b&&(b.scrollTop=0),V===ee&&b&&(b.scrollTop=b.scrollHeight),V==null||V.focus(),document.activeElement!==le))return},[k,b]),U=w.useCallback(()=>O([_,y]),[O,_,y]);w.useEffect(()=>{N&&U()},[N,U]);const{onOpenChange:P,triggerPointerDownPosRef:Q}=g;w.useEffect(()=>{if(y){let L={x:0,y:0};const pe=ee=>{var le,V;L={x:Math.abs(Math.round(ee.pageX)-(((le=Q.current)==null?void 0:le.x)??0)),y:Math.abs(Math.round(ee.pageY)-(((V=Q.current)==null?void 0:V.y)??0))}},W=ee=>{L.x<=10&&L.y<=10?ee.preventDefault():y.contains(ee.target)||P(!1),document.removeEventListener("pointermove",pe),Q.current=null};return Q.current!==null&&(document.addEventListener("pointermove",pe),document.addEventListener("pointerup",W,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",pe),document.removeEventListener("pointerup",W,{capture:!0})}}},[y,P,Q]),w.useEffect(()=>{const L=()=>P(!1);return window.addEventListener("blur",L),window.addEventListener("resize",L),()=>{window.removeEventListener("blur",L),window.removeEventListener("resize",L)}},[P]);const[$,G]=zL(L=>{const pe=k().filter(le=>!le.disabled),W=pe.find(le=>le.ref.current===document.activeElement),ee=qL(pe,L,W);ee&&setTimeout(()=>ee.ref.current.focus())}),K=w.useCallback((L,pe,W)=>{const ee=!M.current&&!W;(g.value!==void 0&&g.value===pe||ee)&&(E(L),ee&&(M.current=!0))},[g.value]),X=w.useCallback(()=>y==null?void 0:y.focus(),[y]),ae=w.useCallback((L,pe,W)=>{const ee=!M.current&&!W;(g.value!==void 0&&g.value===pe||ee)&&T(L)},[g.value]),ve=n==="popper"?KC:FL,Fe=ve===KC?{side:l,sideOffset:A,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:m,hideWhenDetached:p,avoidCollisions:v}:{};return o.jsx(OL,{scope:r,content:y,viewport:b,onViewportChange:C,itemRefCallback:K,selectedItem:_,onItemLeave:X,itemTextRefCallback:ae,focusSelectedItem:U,selectedItemText:I,position:n,isPositioned:N,searchRef:$,children:o.jsx(mp,{as:Vre,allowPinchZoom:!0,children:o.jsx(pp,{asChild:!0,trapped:g.open,onMountAutoFocus:L=>{L.preventDefault()},onUnmountAutoFocus:Ae(i,L=>{var pe;(pe=g.trigger)==null||pe.focus({preventScroll:!0}),L.preventDefault()}),children:o.jsx(sA,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:L=>L.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:o.jsx(ve,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:L=>L.preventDefault(),...x,...Fe,onPlaced:()=>F(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:Ae(x.onKeyDown,L=>{const pe=L.ctrlKey||L.altKey||L.metaKey;if(L.key==="Tab"&&L.preventDefault(),!pe&&L.key.length===1&&G(L.key),["ArrowUp","ArrowDown","Home","End"].includes(L.key)){let ee=k().filter(le=>!le.disabled).map(le=>le.ref.current);if(["ArrowUp","End"].includes(L.key)&&(ee=ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(L.key)){const le=L.target,V=ee.indexOf(le);ee=ee.slice(V+1)}setTimeout(()=>O(ee)),L.preventDefault()}})})})})})})});TL.displayName=Kre;var Wre="SelectItemAlignedPosition",FL=w.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,a=$o(zl,r),s=Ho(zl,r),[l,A]=w.useState(null),[c,u]=w.useState(null),d=ze(t,j=>u(j)),f=Qx(r),h=w.useRef(!1),m=w.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:x,focusSelectedItem:g}=s,y=w.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&c&&p&&v&&x){const j=a.trigger.getBoundingClientRect(),_=c.getBoundingClientRect(),E=a.valueNode.getBoundingClientRect(),I=x.getBoundingClientRect();if(a.dir!=="rtl"){const le=I.left-_.left,V=E.left-le,Te=j.left-V,Ne=j.width+Te,Ze=Math.max(Ne,_.width),Ye=window.innerWidth-_i,at=vF(V,[_i,Math.max(_i,Ye-Ze)]);l.style.minWidth=Ne+"px",l.style.left=at+"px"}else{const le=_.right-I.right,V=window.innerWidth-E.right-le,Te=window.innerWidth-j.right-V,Ne=j.width+Te,Ze=Math.max(Ne,_.width),Ye=window.innerWidth-_i,at=vF(V,[_i,Math.max(_i,Ye-Ze)]);l.style.minWidth=Ne+"px",l.style.right=at+"px"}const T=f(),k=window.innerHeight-_i*2,N=p.scrollHeight,F=window.getComputedStyle(c),M=parseInt(F.borderTopWidth,10),O=parseInt(F.paddingTop,10),U=parseInt(F.borderBottomWidth,10),P=parseInt(F.paddingBottom,10),Q=M+O+N+P+U,$=Math.min(v.offsetHeight*5,Q),G=window.getComputedStyle(p),K=parseInt(G.paddingTop,10),X=parseInt(G.paddingBottom,10),ae=j.top+j.height/2-_i,ve=k-ae,Fe=v.offsetHeight/2,L=v.offsetTop+Fe,pe=M+O+L,W=Q-pe;if(pe<=ae){const le=T.length>0&&v===T[T.length-1].ref.current;l.style.bottom="0px";const V=c.clientHeight-p.offsetTop-p.offsetHeight,Te=Math.max(ve,Fe+(le?X:0)+V+U),Ne=pe+Te;l.style.height=Ne+"px"}else{const le=T.length>0&&v===T[0].ref.current;l.style.top="0px";const Te=Math.max(ae,M+p.offsetTop+(le?K:0)+Fe)+W;l.style.height=Te+"px",p.scrollTop=pe-ae+p.offsetTop}l.style.margin=`${_i}px 0`,l.style.minHeight=$+"px",l.style.maxHeight=k+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[f,a.trigger,a.valueNode,l,c,p,v,x,a.dir,n]);wr(()=>y(),[y]);const[B,b]=w.useState();wr(()=>{c&&b(window.getComputedStyle(c).zIndex)},[c]);const C=w.useCallback(j=>{j&&m.current===!0&&(y(),g==null||g(),m.current=!1)},[y,g]);return o.jsx(zre,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:h,onScrollButtonChange:C,children:o.jsx("div",{ref:A,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:B},children:o.jsx(Oe.div,{...i,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});FL.displayName=Wre;var Gre="SelectPopperPosition",KC=w.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=_i,...a}=e,s=Mx(r);return o.jsx(px,{...s,...a,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});KC.displayName=Gre;var[zre,PE]=Yu(zl,{}),VC="SelectViewport",PL=w.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...i}=e,a=Ho(VC,r),s=PE(VC,r),l=ze(t,a.onViewportChange),A=w.useRef(0);return o.jsxs(o.Fragment,{children:[o.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),o.jsx(Ux.Slot,{scope:r,children:o.jsx(Oe.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:Ae(i.onScroll,c=>{const u=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=s;if(f!=null&&f.current&&d){const h=Math.abs(A.current-u.scrollTop);if(h>0){const m=window.innerHeight-_i*2,p=parseFloat(d.style.minHeight),v=parseFloat(d.style.height),x=Math.max(p,v);if(x<m){const g=x+h,y=Math.min(m,g),B=g-y;d.style.height=y+"px",d.style.bottom==="0px"&&(u.scrollTop=B>0?B:0,d.style.justifyContent="flex-end")}}}A.current=u.scrollTop})})})]})});PL.displayName=VC;var kL="SelectGroup",[qre,Yre]=Yu(kL),Xre=w.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Qn();return o.jsx(qre,{scope:r,id:i,children:o.jsx(Oe.div,{role:"group","aria-labelledby":i,...n,ref:t})})});Xre.displayName=kL;var IL="SelectLabel",UL=w.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Yre(IL,r);return o.jsx(Oe.div,{id:i.id,...n,ref:t})});UL.displayName=IL;var gv="SelectItem",[Jre,QL]=Yu(gv),ML=w.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:a,...s}=e,l=$o(gv,r),A=Ho(gv,r),c=l.value===n,[u,d]=w.useState(a??""),[f,h]=w.useState(!1),m=ze(t,g=>{var y;return(y=A.itemRefCallback)==null?void 0:y.call(A,g,n,i)}),p=Qn(),v=w.useRef("touch"),x=()=>{i||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return o.jsx(Jre,{scope:r,value:n,disabled:i,textId:p,isSelected:c,onItemTextChange:w.useCallback(g=>{d(y=>y||((g==null?void 0:g.textContent)??"").trim())},[]),children:o.jsx(Ux.ItemSlot,{scope:r,value:n,disabled:i,textValue:u,children:o.jsx(Oe.div,{role:"option","aria-labelledby":p,"data-highlighted":f?"":void 0,"aria-selected":c&&f,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:m,onFocus:Ae(s.onFocus,()=>h(!0)),onBlur:Ae(s.onBlur,()=>h(!1)),onClick:Ae(s.onClick,()=>{v.current!=="mouse"&&x()}),onPointerUp:Ae(s.onPointerUp,()=>{v.current==="mouse"&&x()}),onPointerDown:Ae(s.onPointerDown,g=>{v.current=g.pointerType}),onPointerMove:Ae(s.onPointerMove,g=>{var y;v.current=g.pointerType,i?(y=A.onItemLeave)==null||y.call(A):v.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ae(s.onPointerLeave,g=>{var y;g.currentTarget===document.activeElement&&((y=A.onItemLeave)==null||y.call(A))}),onKeyDown:Ae(s.onKeyDown,g=>{var B;((B=A.searchRef)==null?void 0:B.current)!==""&&g.key===" "||(Qre.includes(g.key)&&x(),g.key===" "&&g.preventDefault())})})})})});ML.displayName=gv;var Xd="SelectItemText",RL=w.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...a}=e,s=$o(Xd,r),l=Ho(Xd,r),A=QL(Xd,r),c=Lre(Xd,r),[u,d]=w.useState(null),f=ze(t,x=>d(x),A.onItemTextChange,x=>{var g;return(g=l.itemTextRefCallback)==null?void 0:g.call(l,x,A.value,A.disabled)}),h=u==null?void 0:u.textContent,m=w.useMemo(()=>o.jsx("option",{value:A.value,disabled:A.disabled,children:h},A.value),[A.disabled,A.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=c;return wr(()=>(p(m),()=>v(m)),[p,v,m]),o.jsxs(o.Fragment,{children:[o.jsx(Oe.span,{id:A.textId,...a,ref:f}),A.isSelected&&s.valueNode&&!s.valueNodeHasChildren?aA.createPortal(a.children,s.valueNode):null]})});RL.displayName=Xd;var DL="SelectItemIndicator",LL=w.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return QL(DL,r).isSelected?o.jsx(Oe.span,{"aria-hidden":!0,...n,ref:t}):null});LL.displayName=DL;var WC="SelectScrollUpButton",$L=w.forwardRef((e,t)=>{const r=Ho(WC,e.__scopeSelect),n=PE(WC,e.__scopeSelect),[i,a]=w.useState(!1),s=ze(t,n.onScrollButtonChange);return wr(()=>{if(r.viewport&&r.isPositioned){let l=function(){const c=A.scrollTop>0;a(c)};const A=r.viewport;return l(),A.addEventListener("scroll",l),()=>A.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),i?o.jsx(KL,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:A}=r;l&&A&&(l.scrollTop=l.scrollTop-A.offsetHeight)}}):null});$L.displayName=WC;var GC="SelectScrollDownButton",HL=w.forwardRef((e,t)=>{const r=Ho(GC,e.__scopeSelect),n=PE(GC,e.__scopeSelect),[i,a]=w.useState(!1),s=ze(t,n.onScrollButtonChange);return wr(()=>{if(r.viewport&&r.isPositioned){let l=function(){const c=A.scrollHeight-A.clientHeight,u=Math.ceil(A.scrollTop)<c;a(u)};const A=r.viewport;return l(),A.addEventListener("scroll",l),()=>A.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),i?o.jsx(KL,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:A}=r;l&&A&&(l.scrollTop=l.scrollTop+A.offsetHeight)}}):null});HL.displayName=GC;var KL=w.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,a=Ho("SelectScrollButton",r),s=w.useRef(null),l=Qx(r),A=w.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return w.useEffect(()=>()=>A(),[A]),wr(()=>{var u;const c=l().find(d=>d.ref.current===document.activeElement);(u=c==null?void 0:c.ref.current)==null||u.scrollIntoView({block:"nearest"})},[l]),o.jsx(Oe.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:Ae(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:Ae(i.onPointerMove,()=>{var c;(c=a.onItemLeave)==null||c.call(a),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:Ae(i.onPointerLeave,()=>{A()})})}),Zre="SelectSeparator",VL=w.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return o.jsx(Oe.div,{"aria-hidden":!0,...n,ref:t})});VL.displayName=Zre;var zC="SelectArrow",ene=w.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Mx(r),a=$o(zC,r),s=Ho(zC,r);return a.open&&s.position==="popper"?o.jsx(mx,{...i,...n,ref:t}):null});ene.displayName=zC;var tne="SelectBubbleInput",WL=w.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const i=w.useRef(null),a=ze(n,i),s=wL(t);return w.useEffect(()=>{const l=i.current;if(!l)return;const A=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(A,"value").set;if(s!==t&&u){const d=new Event("change",{bubbles:!0});u.call(l,t),l.dispatchEvent(d)}},[s,t]),o.jsx(Oe.select,{...r,style:{...HR,...r.style},ref:a,defaultValue:t})});WL.displayName=tne;function GL(e){return e===""||e===void 0}function zL(e){const t=wn(e),r=w.useRef(""),n=w.useRef(0),i=w.useCallback(s=>{const l=r.current+s;t(l),function A(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>A(""),1e3))}(l)},[t]),a=w.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return w.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,a]}function qL(e,t,r){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=rne(e,Math.max(a,0));i.length===1&&(s=s.filter(c=>c!==r));const A=s.find(c=>c.textValue.toLowerCase().startsWith(i.toLowerCase()));return A!==r?A:void 0}function rne(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var nne=bL,YL=CL,ine=_L,ane=EL,sne=SL,XL=NL,one=PL,JL=UL,ZL=ML,lne=RL,Ane=LL,e$=$L,t$=HL,r$=VL;const Cs=nne,js=ine,Sa=w.forwardRef(({className:e,children:t,...r},n)=>o.jsxs(YL,{ref:n,className:ce("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
436ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,o.jsx(ane,{asChild:!0,children:o.jsx(sE,{className:"h-4 w-4 opacity-50"})})]}));Sa.displayName=YL.displayName;const n$=w.forwardRef(({className:e,...t},r)=>o.jsx(e$,{ref:r,className:ce("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(n7,{className:"h-4 w-4"})}));n$.displayName=e$.displayName;const i$=w.forwardRef(({className:e,...t},r)=>o.jsx(t$,{ref:r,className:ce("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(sE,{className:"h-4 w-4"})}));i$.displayName=t$.displayName;const Na=w.forwardRef(({className:e,children:t,position:r="popper",...n},i)=>o.jsx(sne,{children:o.jsxs(XL,{ref:i,className:ce("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[o.jsx(n$,{}),o.jsx(one,{className:ce("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),o.jsx(i$,{})]})}));Na.displayName=XL.displayName;const cne=w.forwardRef(({className:e,...t},r)=>o.jsx(JL,{ref:r,className:ce("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));cne.displayName=JL.displayName;const et=w.forwardRef(({className:e,children:t,...r},n)=>o.jsxs(ZL,{ref:n,className:ce("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...r,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(Ane,{children:o.jsx(Yn,{className:"h-4 w-4"})})}),o.jsx(lne,{children:t})]}));et.displayName=ZL.displayName;const une=w.forwardRef(({className:e,...t},r)=>o.jsx(r$,{ref:r,className:ce("-mx-1 my-1 h-px bg-muted",e),...t}));une.displayName=r$.displayName;const _e=w.forwardRef(({className:e,type:t,...r},n)=>o.jsx("input",{type:t,className:ce("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));_e.displayName="Input";const fA=w.forwardRef(({className:e,...t},r)=>o.jsx("textarea",{className:ce("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
436ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));fA.displayName="Textarea";var dne="Label",a$=w.forwardRef((e,t)=>o.jsx(Oe.label,{...e,ref:t,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));a$.displayName=dne;var s$=a$;const fne=op("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),he=w.forwardRef(({className:e,...t},r)=>o.jsx(s$,{ref:r,className:ce(fne(),e),...t}));he.displayName=s$.displayName;var ot;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function r(i){throw new Error}e.assertNever=r,e.arrayToEnum=i=>{const a={};for(const s of i)a[s]=s;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(l=>typeof i[i[l]]!="number"),s={};for(const l of a)s[l]=i[l];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&a.push(s);return a},e.find=(i,a)=>{for(const s of i)if(a(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function n(i,a=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(a)}e.joinValues=n,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(ot||(ot={}));var yF;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(yF||(yF={}));const Ce=ot.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Vs=e=>{switch(typeof e){case"undefined":return Ce.undefined;case"string":return Ce.string;case"number":return Number.isNaN(e)?Ce.nan:Ce.number;case"boolean":return Ce.boolean;case"function":return Ce.function;case"bigint":return Ce.bigint;case"symbol":return Ce.symbol;case"object":return Array.isArray(e)?Ce.array:e===null?Ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ce.promise:typeof Map<"u"&&e instanceof Map?Ce.map:typeof Set<"u"&&e instanceof Set?Ce.set:typeof Date<"u"&&e instanceof Date?Ce.date:Ce.object;default:return Ce.unknown}}
vendor: 6,039 bytes, line 436
436,se=ot.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class gs extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(a){return a.message},n={_errors:[]},i=a=>{for(const s of a.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)n._errors.push(r(s));else{let l=n,A=0;for(;A<s.path.length;){const c=s.path[A];A===s.path.length-1?(l[c]=l[c]||{_errors:[]},l[c]._errors.push(r(s))):l[c]=l[c]||{_errors:[]},l=l[c],A++}}};return i(this),n}static assert(t){if(!(t instanceof gs))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ot.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];for(const i of this.issues)if(i.path.length>0){const a=i.path[0];r[a]=r[a]||[],r[a].push(t(i))}else n.push(t(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}gs.create=e=>new gs(e);const qC=(e,t)=>{let r;switch(e.code){case se.invalid_type:e.received===Ce.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case se.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ot.jsonStringifyReplacer)}`;break;case se.unrecognized_keys:r=`Unrecognized key(s) in object: ${ot.joinValues(e.keys,", ")}`;break;case se.invalid_union:r="Invalid input";break;case se.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ot.joinValues(e.options)}`;break;case se.invalid_enum_value:r=`Invalid enum value. Expected ${ot.joinValues(e.options)}, received '${e.received}'`;break;case se.invalid_arguments:r="Invalid function arguments";break;case se.invalid_return_type:r="Invalid function return type";break;case se.invalid_date:r="Invalid date";break;case se.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:ot.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case se.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case se.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case se.custom:r="Invalid input";break;case se.invalid_intersection_types:r="Intersection results could not be merged";break;case se.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case se.not_finite:r="Number must be finite";break;default:r=t.defaultError,ot.assertNever(e)}return{message:r}};let hne=qC;function pne(){return hne}const mne=e=>{const{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],s={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let l="";const A=n.filter(c=>!!c).slice().reverse();for(const c of A)l=c(s,{data:t,defaultError:l}).message;return{...i,path:a,message:l}};function me(e,t){const r=pne(),n=mne({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===qC?void 0:qC].filter(i=>!!i)});e.common.issues.push(n)}class $n{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const i of r){if(i.status==="aborted")return De;i.status==="dirty"&&t.dirty(),n.push(i.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const i of r){const a=await i.key,s=await i.value;n.push({key:a,value:s})}return $n.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const i of r){const{key:a,value:s}=i;if(a.status==="aborted"||s.status==="aborted")return De;a.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(n[a.value]=s.value)}return{status:t.value,value:n}}}const De=Object.freeze({status:"aborted"}),Jd=e=>({status:"dirty",value:e}),pi=e=>
vendor: 16,569 bytes, line 436
436({status:"valid",value:e}),xF=e=>e.status==="aborted",wF=e=>e.status==="dirty",iu=e=>e.status==="valid",vv=e=>typeof Promise<"u"&&e instanceof Promise;var je;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(je||(je={}));class Fo{constructor(t,r,n,i){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const bF=(e,t)=>{if(iu(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new gs(e.common.issues);return this._error=r,this._error}}};function Ge(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(s,l)=>{const{message:A}=e;return s.code==="invalid_enum_value"?{message:A??l.defaultError}:typeof l.data>"u"?{message:A??n??l.defaultError}:s.code!=="invalid_type"?{message:l.defaultError}:{message:A??r??l.defaultError}},description:i}}class it{get description(){return this._def.description}_getType(t){return Vs(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Vs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new $n,ctx:{common:t.parent.common,data:t.data,parsedType:Vs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(vv(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){const n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vs(t)},i=this._parseSync({data:t,path:n.path,parent:n});return bF(n,i)}"~validate"(t){var n,i;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vs(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:r});return iu(a)?{value:a.value}:{issues:r.common.issues}}catch(a){(i=(n=a==null?void 0:a.message)==null?void 0:n.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(a=>iu(a)?{value:a.value}:{issues:r.common.issues})}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vs(t)},i=this._parse({data:t,path:n.path,parent:n}),a=await(vv(i)?i:Promise.resolve(i));return bF(n,a)}refine(t,r){const n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,a)=>{const s=t(i),l=()=>a.addIssue({code:se.custom,...n(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(A=>A?!0:(l(),!1)):s?!0:(l(),!1)})}refinement(t,r){return this._refinement((n,i)=>t(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(t){return new ou({schema:this,typeName:Le.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Bo.create(this,this._def)}nullable(){return lu.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return va.create(this)}promise(){return bv.create(this,this._def)}or(t){return xv.create([this,t],this._def)}and(t){return wv.create(this,t,this._def)}transform(t){return new ou({...Ge(this._def),schema:this,typeName:Le.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new XC({...Ge(this._def),innerType:this,defaultValue:r,typeName:Le.ZodDefault})}brand(){return new Rne({typeName:Le.ZodBranded,type:this,...Ge(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new JC({...Ge(this._def),innerType:this,catchValue:r,typeName:Le.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return kE.create(this,t)}readonly(){return ZC.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const gne=/^c[^\s-]{8,}$/i,vne=/^[0-9a-z]+$/,yne=/^[0-9A-HJKMNP-TV-Z]{26}$/i,xne=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,wne=/^[a-z0-9_-]{21}$/i,bne=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Bne=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Cne=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,jne="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let lb;const _ne=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ene=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Sne=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Nne=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,One=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Tne=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,o$="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Fne=new RegExp(`^${o$}$`);function l$(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function Pne(e){return new RegExp(`^${l$(e)}$`)}function kne(e){let t=`${o$}T${l$(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function Ine(e,t){return!!((t==="v4"||!t)&&_ne.test(e)||(t==="v6"||!t)&&Sne.test(e))}function Une(e,t){if(!bne.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function Qne(e,t){return!!((t==="v4"||!t)&&Ene.test(e)||(t==="v6"||!t)&&Nne.test(e))}class lo extends it{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ce.string){const a=this._getOrReturnCtx(t);return me(a,{code:se.invalid_type,expected:Ce.string,received:a.parsedType}),De}const n=new $n;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),me(i,{code:se.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),me(i,{code:se.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="length"){const s=t.data.length>a.value,l=t.data.length<a.value;(s||l)&&(i=this._getOrReturnCtx(t,i),s?me(i,{code:se.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):l&&me(i,{code:se.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),n.dirty())}else if(a.kind==="email")Cne.test(t.data)||(i=this._getOrReturnCtx(t,i),me(i,{validation:"email",code:se.invalid_string,message:a.message}),n.dirty());else if(a.kind==="emoji")lb||(lb=new RegExp(jne,"u")),lb.test(t.data)||(i=this._getOrReturnCtx(t,i),me(i,{validation:"emoji",code:se.invalid_string,message:a.message}),n.dirty());else if(a.kind==="uuid")xne.test(t.data)||(i=this._getOrReturnCtx(t,i),me(i,{validation:"uuid",code:se.invalid_string,message:a.message}),n.dirty());else if(a.kind==="nanoid")wne.test(t.data)||(i=this._getOrReturnCtx(t,i),me(i,{validation:"nanoid",code:se.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid")gne.test(t.data)||(i=this._getOrReturnCtx(t,i),me(i,{validation:"cuid",code:se.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid2")vne.test(t.data)||(i=this._getOrReturnCtx(t,i),me(i,{validation:"cuid2",code:se.invalid_string,message:a.message}),n.dirty());else if(a.kind==="ulid")yne.test(t.data)||(i=this._getOrReturnCtx(t,i),me(i,{validation:"ulid",code:se.invalid_string,message:a.message}),n.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),me(i,{validation:"url",code:se.invalid_string,message:a.message}),n.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),me(i,{validation:"regex",code:se.invalid_string,message:a.message}),n.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),me(i,{code:se.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),n.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),me(i,{code:se.invalid_string,validation:{startsWith:a.value},message:a.message}),n.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),me(i,{code:se.invalid_string,validation:{endsWith:a.value},message:a.message}),n.dirty()):a.kind==="datetime"?kne(a).test(t.data)||(i=this._getOrReturnCtx(t,i),me(i,{code:se.invalid_string,validation:"datetime",message:a.message}),n.dirty()):a.kind==="date"?Fne.test(t.data)||(i=this._getOrReturnCtx(t,i),me(i,{code:se.invalid_string,validation:"date",message:a.message}),n.dirty()):a.kind==="time"?Pne(a).test(t.data)||(i=this._getOrReturnCtx(t,i),me(i,{code:se.invalid_string,validation:"time",message:a.message}),n.dirty()):a.kind==="duration"?Bne.test(t.data)||(i=this._getOrReturnCtx(t,i),me(i,{validation:"duration",code:se.invalid_string,message:a.message}),n.dirty()):a.kind==="ip"?Ine(t.data,a.version)||(i=this._getOrReturnCtx(t,i),me(i,{validation:"ip",code:se.invalid_string,message:a.message}),n.dirty()):a.kind==="jwt"?Une(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),me(i,{validation:"jwt",code:se.invalid_string,message:a.message}),n.dirty()):a.kind==="cidr"?Qne(t.data,a.version)||(i=this._getOrReturnCtx(t,i),me(i,{validation:"cidr",code:se.invalid_string,message:a.message}),n.dirty()):a.kind==="base64"?One.test(t.data)||(i=this._getOrReturnCtx(t,i),me(i,{validation:"base64",code:se.invalid_string,message:a.message}),n.dirty()):a.kind==="base64url"?Tne.test(t.data)||(i=this._getOrReturnCtx(t,i),me(i,{validation:"base64url",code:se.invalid_string,message:a.message}),n.dirty()):ot.assertNever(a);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(i=>t.test(i),{validation:r,code:se.invalid_string,...je.errToObj(n)})}_addCheck(t){return new lo({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...je.errToObj(t)})}url(t){return this._addCheck({kind:"url",...je.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...je.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...je.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...je.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...je.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...je.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...je.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...je.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...je.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...je.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...je.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...je.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...je.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...je.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...je.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...je.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...je.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...je.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...je.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...je.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...je.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...je.errToObj(r)})}nonempty(t){return this.min(1,je.errToObj(t))}trim(){return new lo({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new lo({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new lo({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}
vendor: 4,672 bytes, line 436
436get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}lo.create=e=>new lo({checks:[],typeName:Le.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Ge(e)});function Mne(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}class au extends it{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ce.number){const a=this._getOrReturnCtx(t);return me(a,{code:se.invalid_type,expected:Ce.number,received:a.parsedType}),De}let n;const i=new $n;for(const a of this._def.checks)a.kind==="int"?ot.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),me(n,{code:se.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(n=this._getOrReturnCtx(t,n),me(n,{code:se.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(n=this._getOrReturnCtx(t,n),me(n,{code:se.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?Mne(t.data,a.value)!==0&&(n=this._getOrReturnCtx(t,n),me(n,{code:se.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),me(n,{code:se.not_finite,message:a.message}),i.dirty()):ot.assertNever(a);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,je.toString(r))}gt(t,r){return this.setLimit("min",t,!1,je.toString(r))}lte(t,r){return this.setLimit("max",t,!0,je.toString(r))}lt(t,r){return this.setLimit("max",t,!1,je.toString(r))}setLimit(t,r,n,i){return new au({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:je.toString(i)}]})}_addCheck(t){return new au({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:je.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:je.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:je.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:je.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:je.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:je.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:je.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:je.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:je.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ot.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}
vendor: 4,134 bytes, line 436
436}au.create=e=>new au({checks:[],typeName:Le.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ge(e)});class lh extends it{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ce.bigint)return this._getInvalidInput(t);let n;const i=new $n;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(n=this._getOrReturnCtx(t,n),me(n,{code:se.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(n=this._getOrReturnCtx(t,n),me(n,{code:se.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),me(n,{code:se.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):ot.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return me(r,{code:se.invalid_type,expected:Ce.bigint,received:r.parsedType}),De}gte(t,r){return this.setLimit("min",t,!0,je.toString(r))}gt(t,r){return this.setLimit("min",t,!1,je.toString(r))}lte(t,r){return this.setLimit("max",t,!0,je.toString(r))}lt(t,r){return this.setLimit("max",t,!1,je.toString(r))}setLimit(t,r,n,i){return new lh({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:je.toString(i)}]})}_addCheck(t){return new lh({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:je.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:je.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:je.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:je.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:je.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}lh.create=e=>new lh({checks:[],typeName:Le.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Ge(e)});class BF extends it{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ce.boolean){const n=this._getOrReturnCtx(t);return me(n,{code:se.invalid_type,expected:Ce.boolean,received:n.parsedType}),De}return pi(t.data)}}BF.create=e=>new BF({typeName:Le.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ge(e)});class yv extends it{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ce.date){const a=this._getOrReturnCtx(t);return me(a,{code:se.invalid_type,expected:Ce.date,received:a.parsedType}),De}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return me(a,{code:se.invalid_date}),De}const n=new $n;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),me(i,{code:se.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),n.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),me(i,{code:se.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),n.dirty()):ot.assertNever(a);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new yv({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:je.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:je.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}yv.create=e=>new yv({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Le.ZodD
vendor: 7,046 bytes, line 436
436ate,...Ge(e)});class CF extends it{_parse(t){if(this._getType(t)!==Ce.symbol){const n=this._getOrReturnCtx(t);return me(n,{code:se.invalid_type,expected:Ce.symbol,received:n.parsedType}),De}return pi(t.data)}}CF.create=e=>new CF({typeName:Le.ZodSymbol,...Ge(e)});class jF extends it{_parse(t){if(this._getType(t)!==Ce.undefined){const n=this._getOrReturnCtx(t);return me(n,{code:se.invalid_type,expected:Ce.undefined,received:n.parsedType}),De}return pi(t.data)}}jF.create=e=>new jF({typeName:Le.ZodUndefined,...Ge(e)});class _F extends it{_parse(t){if(this._getType(t)!==Ce.null){const n=this._getOrReturnCtx(t);return me(n,{code:se.invalid_type,expected:Ce.null,received:n.parsedType}),De}return pi(t.data)}}_F.create=e=>new _F({typeName:Le.ZodNull,...Ge(e)});class EF extends it{constructor(){super(...arguments),this._any=!0}_parse(t){return pi(t.data)}}EF.create=e=>new EF({typeName:Le.ZodAny,...Ge(e)});class SF extends it{constructor(){super(...arguments),this._unknown=!0}_parse(t){return pi(t.data)}}SF.create=e=>new SF({typeName:Le.ZodUnknown,...Ge(e)});class Po extends it{_parse(t){const r=this._getOrReturnCtx(t);return me(r,{code:se.invalid_type,expected:Ce.never,received:r.parsedType}),De}}Po.create=e=>new Po({typeName:Le.ZodNever,...Ge(e)});class NF extends it{_parse(t){if(this._getType(t)!==Ce.undefined){const n=this._getOrReturnCtx(t);return me(n,{code:se.invalid_type,expected:Ce.void,received:n.parsedType}),De}return pi(t.data)}}NF.create=e=>new NF({typeName:Le.ZodVoid,...Ge(e)});class va extends it{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),i=this._def;if(r.parsedType!==Ce.array)return me(r,{code:se.invalid_type,expected:Ce.array,received:r.parsedType}),De;if(i.exactLength!==null){const s=r.data.length>i.exactLength.value,l=r.data.length<i.exactLength.value;(s||l)&&(me(r,{code:s?se.too_big:se.too_small,minimum:l?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(me(r,{code:se.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(me(r,{code:se.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((s,l)=>i.type._parseAsync(new Fo(r,s,r.path,l)))).then(s=>$n.mergeArray(n,s));const a=[...r.data].map((s,l)=>i.type._parseSync(new Fo(r,s,r.path,l)));return $n.mergeArray(n,a)}get element(){return this._def.type}min(t,r){return new va({...this._def,minLength:{value:t,message:je.toString(r)}})}max(t,r){return new va({...this._def,maxLength:{value:t,message:je.toString(r)}})}length(t,r){return new va({...this._def,exactLength:{value:t,message:je.toString(r)}})}nonempty(t){return this.min(1,t)}}va.create=(e,t)=>new va({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Le.ZodArray,...Ge(t)});function GA(e){if(e instanceof Ht){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=Bo.create(GA(n))}return new Ht({...e._def,shape:()=>t})}else return e instanceof va?new va({...e._def,type:GA(e.element)}):e instanceof Bo?Bo.create(GA(e.unwrap())):e instanceof lu?lu.create(GA(e.unwrap())):e instanceof ql?ql.create(e.items.map(t=>GA(t))):e}class Ht extends it{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=ot.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==Ce.object){const c=this._getOrReturnCtx(t);return me(c,{code:se.invalid_type,expected:Ce.object,received:c.parsedType}),De}const{status:n,ctx:i}=this._processInputParams(t),{shape:a,keys:s}=this._getCached(),l=[];if(!(this._def.catchall instanceof Po&&this._def.unknownKeys==="strip"))for(const c in i.data)s.includes(c)||l.push(c);const A=[];for(const c of s){const u=a[c],d=i.data[c];A.push({key:{status:"valid",value:c},value:u._parse(new Fo(i,d,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof Po){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of l)A.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(c==="strict")l.length>0&&(me(i,{code:se.unrecognized_keys,keys:l}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of l){const d=i.data[u];A.push({key:{status:"valid",value:u},value:c._parse(new Fo(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of A){const d=await u.key,f=await u.value;c.push({key:d,value:f,alwaysSet:u.alwaysSet})}return c}).then(c=>$n.mergeObjectSync(n,c)):$n.mergeObjectSync(n,A)}get shape(){return this._def.shape()}strict(t){return je.errToObj,new Ht({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var a,s;const i=((s=(a=this._def).errorMap)==null?void 0:s.call(a,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:je.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Ht({...this._def,unknownKeys:"strip"})}passthrough(){return new Ht({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ht({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ht({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Le.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new Ht({...this._def,catchall:t})}pick(t){const r={};for(const n of ot.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new Ht({...this._def,shape:()=>r})}omit(t){const r={};for(const n of ot.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new Ht({...this._def,shape:()=>r})}deepPartial(){return GA(this)}partial(t){const r={};for(const n of ot.objectKeys(this.shape)){const i=this.shape[n];t&&!t[n]?r[n]=i:r[n]=i.optional()}return new Ht({...this._def,shape:()=>r})}required(t){const r={};for(const n of ot.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let a=this.shape[n];for(;a instanceof Bo;)a=a._def.innerType;r[n]=a}return new Ht({...this._def,shape:()=>r})}keyof(){return A$(ot.objectKeys(this.shape))}}Ht.create=(e,t)=>new Ht({shape:()=>e,unknownKeys:"strip",catchall:Po.create(),typeName:Le.ZodObject,...Ge(t)});Ht.strictCreate=(e,t)=>new Ht({shape:()=>e,unknownKeys:"strict",catchall:Po.create(),typeName:Le.ZodObject,...Ge(t)});Ht.lazycreate=(e,t)=>new Ht({shape:e,unknownKeys:"strip",catchall:Po.create(),typeName:Le.ZodObject,...Ge(t)});class xv extends it{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function i(a){for(const l of a)if(l.result.status==="valid")return l.result;for(const l of a)if(l.result.status==="dirty")return r.common.issues.push(...l.ctx.common.issues),l.result;
vendor: 5,183 bytes, line 436
436const s=a.map(l=>new gs(l.ctx.common.issues));return me(r,{code:se.invalid_union,unionErrors:s}),De}if(r.common.async)return Promise.all(n.map(async a=>{const s={...r,common:{...r.common,issues:[]},parent:null};return{result:await a._parseAsync({data:r.data,path:r.path,parent:s}),ctx:s}})).then(i);{let a;const s=[];for(const A of n){const c={...r,common:{...r.common,issues:[]},parent:null},u=A._parseSync({data:r.data,path:r.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!a&&(a={result:u,ctx:c}),c.common.issues.length&&s.push(c.common.issues)}if(a)return r.common.issues.push(...a.ctx.common.issues),a.result;const l=s.map(A=>new gs(A));return me(r,{code:se.invalid_union,unionErrors:l}),De}}get options(){return this._def.options}}xv.create=(e,t)=>new xv({options:e,typeName:Le.ZodUnion,...Ge(t)});function YC(e,t){const r=Vs(e),n=Vs(t);if(e===t)return{valid:!0,data:e};if(r===Ce.object&&n===Ce.object){const i=ot.objectKeys(t),a=ot.objectKeys(e).filter(l=>i.indexOf(l)!==-1),s={...e,...t};for(const l of a){const A=YC(e[l],t[l]);if(!A.valid)return{valid:!1};s[l]=A.data}return{valid:!0,data:s}}else if(r===Ce.array&&n===Ce.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const s=e[a],l=t[a],A=YC(s,l);if(!A.valid)return{valid:!1};i.push(A.data)}return{valid:!0,data:i}}else return r===Ce.date&&n===Ce.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class wv extends it{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),i=(a,s)=>{if(xF(a)||xF(s))return De;const l=YC(a.value,s.value);return l.valid?((wF(a)||wF(s))&&r.dirty(),{status:r.value,value:l.data}):(me(n,{code:se.invalid_intersection_types}),De)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([a,s])=>i(a,s)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}wv.create=(e,t,r)=>new wv({left:e,right:t,typeName:Le.ZodIntersection,...Ge(r)});class ql extends it{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.array)return me(n,{code:se.invalid_type,expected:Ce.array,received:n.parsedType}),De;if(n.data.length<this._def.items.length)return me(n,{code:se.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),De;!this._def.rest&&n.data.length>this._def.items.length&&(me(n,{code:se.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const a=[...n.data].map((s,l)=>{const A=this._def.items[l]||this._def.rest;return A?A._parse(new Fo(n,s,n.path,l)):null}).filter(s=>!!s);return n.common.async?Promise.all(a).then(s=>$n.mergeArray(r,s)):$n.mergeArray(r,a)}get items(){return this._def.items}rest(t){return new ql({...this._def,rest:t})}}ql.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ql({items:e,typeName:Le.ZodTuple,rest:null,...Ge(t)})};class OF extends it{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.map)return me(n,{code:se.invalid_type,expected:Ce.map,received:n.parsedType}),De;const i=this._def.keyType,a=this._def.valueType,s=[...n.data.entries()].map(([l,A],c)=>({key:i._parse(new Fo(n,l,n.path,[c,"key"])),value:a._parse(new Fo(n,A,n.path,[c,"value"]))}));if(n.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const A of s){const c=await A.key,u=await A.value;if(c.status==="aborted"||u.status==="aborted")return De;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),l.set(c.value,u.value)}return{status:r.value,value:l}})}else{const l=new Map;for(const A of s){const c=A.key,u=A.value;if(c.status==="aborted"||u.status==="aborted")return De;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),l.set(c.value,u.value)}return{status:r.value,value:l}}}}OF.create=(e,t,r)=>new OF({valueType:t,keyType:e,typeName:Le.ZodMap,...Ge(r)});class Ah extends it{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.set)return me(n,{code:se.invalid_type,expected:Ce.set,received:n.parsedType}),De;const i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(me(n,{code:se.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(me(n,{code:se.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());const a=this._def.valueType;function s(A){const c=new Set;for(const u of A){if(u.status==="aborted")return De;u.status==="dirty"&&r.dirty(),c.add(u.value)}return{status:r.value,value:c}}const l=[...n.data.values()].map((A,c)=>a._parse(new Fo(n,A,n.path,c)));return n.common.async?Promise.all(l).then(A=>s(A)):s(l)}min(t,r){return new Ah({...this._def,minSize:{value:t,message:je.toString(r)}})}max(t,r){return new Ah({...this._def,maxSize:{value:t,message:je.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}Ah.create=(e,t)=>
vendor: 9,462 bytes, line 436
436new Ah({valueType:e,minSize:null,maxSize:null,typeName:Le.ZodSet,...Ge(t)});class TF extends it{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}TF.create=(e,t)=>new TF({getter:e,typeName:Le.ZodLazy,...Ge(t)});class FF extends it{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return me(r,{received:r.data,code:se.invalid_literal,expected:this._def.value}),De}return{status:"valid",value:t.data}}get value(){return this._def.value}}FF.create=(e,t)=>new FF({value:e,typeName:Le.ZodLiteral,...Ge(t)});function A$(e,t){return new su({values:e,typeName:Le.ZodEnum,...Ge(t)})}class su extends it{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return me(r,{expected:ot.joinValues(n),received:r.parsedType,code:se.invalid_type}),De}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return me(r,{received:r.data,code:se.invalid_enum_value,options:n}),De}return pi(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return su.create(t,{...this._def,...r})}exclude(t,r=this._def){return su.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}su.create=A$;class PF extends it{_parse(t){const r=ot.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==Ce.string&&n.parsedType!==Ce.number){const i=ot.objectValues(r);return me(n,{expected:ot.joinValues(i),received:n.parsedType,code:se.invalid_type}),De}if(this._cache||(this._cache=new Set(ot.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=ot.objectValues(r);return me(n,{received:n.data,code:se.invalid_enum_value,options:i}),De}return pi(t.data)}get enum(){return this._def.values}}PF.create=(e,t)=>new PF({values:e,typeName:Le.ZodNativeEnum,...Ge(t)});class bv extends it{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.promise&&r.common.async===!1)return me(r,{code:se.invalid_type,expected:Ce.promise,received:r.parsedType}),De;const n=r.parsedType===Ce.promise?r.data:Promise.resolve(r.data);return pi(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}}bv.create=(e,t)=>new bv({type:e,typeName:Le.ZodPromise,...Ge(t)});class ou extends it{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Le.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:s=>{me(n,s),s.fatal?r.abort():r.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const s=i.transform(n.data,a);if(n.common.async)return Promise.resolve(s).then(async l=>{if(r.value==="aborted")return De;const A=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return A.status==="aborted"?De:A.status==="dirty"||r.value==="dirty"?Jd(A.value):A});{if(r.value==="aborted")return De;const l=this._def.schema._parseSync({data:s,path:n.path,parent:n});return l.status==="aborted"?De:l.status==="dirty"||r.value==="dirty"?Jd(l.value):l}}if(i.type==="refinement"){const s=l=>{const A=i.refinement(l,a);if(n.common.async)return Promise.resolve(A);if(A instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(n.common.async===!1){const l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?De:(l.status==="dirty"&&r.dirty(),s(l.value),{status:r.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?De:(l.status==="dirty"&&r.dirty(),s(l.value).then(()=>({status:r.value,value:l.value}))))}if(i.type==="transform")if(n.common.async===!1){const s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!iu(s))return De;const l=i.transform(s.value,a);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>iu(s)?Promise.resolve(i.transform(s.value,a)).then(l=>({status:r.value,value:l})):De);ot.assertNever(i)}}ou.create=(e,t,r)=>new ou({schema:e,typeName:Le.ZodEffects,effect:t,...Ge(r)});ou.createWithPreprocess=(e,t,r)=>new ou({schema:t,effect:{type:"preprocess",transform:e},typeName:Le.ZodEffects,...Ge(r)});class Bo extends it{_parse(t){return this._getType(t)===Ce.undefined?pi(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Bo.create=(e,t)=>new Bo({innerType:e,typeName:Le.ZodOptional,...Ge(t)});class lu extends it{_parse(t){return this._getType(t)===Ce.null?pi(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}lu.create=(e,t)=>new lu({innerType:e,typeName:Le.ZodNullable,...Ge(t)});class XC extends it{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===Ce.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}XC.create=(e,t)=>new XC({innerType:e,typeName:Le.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ge(t)});class JC extends it{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return vv(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new gs(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new gs(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}JC.create=(e,t)=>new JC({innerType:e,typeName:Le.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ge(t)});class kF extends it{_parse(t){if(this._getType(t)!==Ce.nan){const n=this._getOrReturnCtx(t);return me(n,{code:se.invalid_type,expected:Ce.nan,received:n.parsedType}),De}return{status:"valid",value:t.data}}}kF.create=e=>new kF({typeName:Le.ZodNaN,...Ge(e)});class Rne extends it{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class kE extends it{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?De:a.status==="dirty"?(r.dirty(),Jd(a.value)):this._def.out._parseAsync({data:a.value,path:n.path,parent:n})})();{const i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?De:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(t,r){return new kE({in:t,out:r,typeName:Le.ZodPipeline})}}class ZC extends it{_parse(t){const r=this._def.innerType._parse(t),n=i=>(iu(i)&&(i.value=Object.freeze(i.value)),i);return vv(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}}ZC.create=(e,t)=>new ZC({innerType:e,typeName:Le.ZodReadonly,...Ge(t)});Ht.lazycreate;var Le;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Le||(Le={}));const Er=lo.create,Ya=au.create;Po.create;va.create;const Xu=Ht.create;Ht.strictCreate;xv.create;wv.create;ql.create;const Dne=su.create;bv.create;Bo.create;lu.create;const c$=Xu({name:Er().trim().min(1,"Attendee name is required").max(100,"Name must be less than 100 characters"),role:Er().trim().min(1,"Role is required").max(100,"Role must be less than 100 characters"),hourlyRate:Ya().min(0,"Hourly rate cannot be negative").max(1e4,"Hourly rate must be less than $10,000")}),Lne=Xu({title:Er().trim().min(1,"Meeting title is required").max(200,"Title must be less than 200 characters"),heldAt:Er().min(1,"Meeting date is required"),hours:Ya().min(0,"Hours cannot be negative").max(24,"Hours must be less than 24"),minutes:Ya().min(0,"Minutes cannot be negative").max(59,"Minutes must be less than 60"),notes:Er().max(5e3,"Notes must be less than 5000 characters").optional(),project
436Value:Ya().min(0,"Project value cannot be negative").max(999999999,"Project value is too large").optional(),quickAttendeeCount:Ya().min(1,"Must have at least 1 attendee").max(1e3,"Attendee count must be less than 1000").optional(),quickAvgRate:Ya().min(0,"Average rate cannot be negative").max(1e4,"Average rate must be less than $10,000").optional()}),$ne=Xu({name:Er().trim().min(1,"Team member name is required").max(100,"Name must be less than 100 characters"),role:Er().trim().min(1,"Role is required").max(100,"Role must be less than 100 characters"),hourlyRate:Ya().min(0,"Hourly rate cannot be negative").max(1e4,"Hourly rate must be less than $10,000")}),Hne=Xu({name:Er().trim().min(1,"Project name is required").max(200,"Project name must be less than 200 characters"),description:Er().max(2e3,"Description must be less than 2000 characters").optional(),client_name:Er().max(200,"Client name must be less than 200 characters").optional(),total_budget:Ya().min(0,"Budget cannot be negative").max(999999999,"Budget is too large").optional().nullable(),targeted_profit_margin:Ya().min(0,"Profit margin cannot be negative").max(100,"Profit margin cannot exceed 100%").optional().nullable(),start_date:Er().optional().nullable(),target_end_date:Er().optional().nullable()}).refine(e=>e.start_date&&e.target_end_date?new Date(e.start_date)<=new Date(e.target_end_date):!0,{message:"Start date must be before or equal to target end date",path:["target_end_date"]}),Kne=Xu({type:Dne(["bug","feature","improvement","other"]),title:Er().trim().min(1,"Title is required").max(100,"Title must be less than 100 characters"),description:Er().trim().min(1,"Description is required").max(2e3,"Description must be less than 2000 characters")});function Vne(){const[e,t]=w.useState(!1),[r,n]=w.useState(!1),[i,a]=w.useState(""),[s,l]=w.useState(""),[A,c]=w.useState(""),{toast:u}=ip(),d=async f=>{var h;f.preventDefault();try{Kne.parse({type:i,title:s,description:A})}catch(m){const p=(h=m.errors)==null?void 0:h[0];u({title:"Validation Error",description:(p==null?void 0:p.message)||"Please check your input",variant:"destructive"});return}n(!0);try{const{data:{user:m}}=await Be.auth.getUser(),{error:p}=await Be.from("feedback").insert({type:i,title:s.trim(),description:A.trim(),page_url:window.location.href,user_id:(m==null?void 0:m.id)||null,user_email:(m==null?void 0:m.email)||null});if(p)throw p;u({title:"Thanks for your feedback! ð",description:"We'll review it soon and get back to you."}),a(""),l(""),c(""),t(!1)}catch(m){console.error("Error submitting feedback:",m),u({title:"Something went wrong",description:"Please try again or email us directly.",variant:"destructive"})}finally{n(!1)}};return o.jsxs(o.Fragment,{children:[o.jsx(z,{onClick:()=>t(!0),className:"fixed bottom-6 right-6 h-14 w-14 rounded-full shadow-lg z-50",size:"icon","aria-label":"Send feedback",children:o.jsx(d7,{className:"h-6 w-6"})}),o.jsx(qu,{open:e,onOpenChange:t,children:o.jsxs(AA,{className:"sm:max-w-[500px]",children:[o.jsxs(cA,{children:[o.jsx(uA,{children:"Send us feedback"}),o.jsx(dA,{children:"Found a bug? Have a feature idea? We'd love to hear from you!"})]}),o.jsxs("form",{onSubmit:d,className:"space-y-4",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsx(he,{htmlFor:"feedback-type",children:"Type *"}),o.jsxs(Cs,{value:i,onValueChange:a,required:!0,children:[o.jsx(Sa,{id:"feedback-type",children:o.jsx(js,{placeholder:"Select feedback type"})}),o.jsxs(Na,{children:[o.jsx(et,{value:"bug",children:"ð Bug Report"}),o.jsx(et,{value:"feature",children:"ð¡ Feature Request"}),o.jsx(et,{value:"improvement",children:"⨠Improvement"}),o.jsx(et,{value:"other",children:"ð¬ Other"})]})]})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(he,{htmlFor:"feedback-title",children:"Title *"}),o.jsx(_e,{id:"feedback-title",placeholder:"Brief summary of your feedback",value:s,onChange:f=>l(f.target.value),maxLength:100,required:!0}),o.jsxs("p",{className:"text-xs text-muted-foreground",children:[s.length,"/100 characters"]})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(he,{htmlFor:"feedback-description",children:"Description *"}),o.jsx(fA,{id:"feedback-description",placeholder:"Please provide details...",value:A,onChange:f=>c(f.target.value),maxLength:2e3,rows:5,required:!0}),o.jsxs("p",{className:"text-xs text-muted-foreground",children:[A.length,"/2000 characters"]})]}),o.jsxs("div",{className:"flex justify-end gap-3",children:[o.jsx(z,{type:"button",variant:"outline",onClick:()=>t(!1),disabled:r,children:"Cancel"}),o.jsx(z,{type:"submit",disabled:r,children:r?"Sending...":"Send Feedback"})]})]})]})})]})}const J=w.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,className:ce("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));
vendor: 5,024 bytes, line 436
436J.displayName="Card";const Ee=w.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,className:ce("flex flex-col space-y-1.5 p-6",e),...t}));Ee.displayName="CardHeader";const Se=w.forwardRef(({className:e,...t},r)=>o.jsx("h3",{ref:r,className:ce("text-2xl font-semibold leading-none tracking-tight",e),...t}));Se.displayName="CardTitle";const $r=w.forwardRef(({className:e,...t},r)=>o.jsx("p",{ref:r,className:ce("text-sm text-muted-foreground",e),...t}));$r.displayName="CardDescription";const Z=w.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,className:ce("p-6 pt-0",e),...t}));Z.displayName="CardContent";const Wne=w.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,className:ce("flex items-center p-6 pt-0",e),...t}));Wne.displayName="CardFooter";var Rx="Collapsible",[Gne,u$]=rn(Rx),[zne,IE]=Gne(Rx),d$=w.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:a,onOpenChange:s,...l}=e,[A,c]=di({prop:n,defaultProp:i??!1,onChange:s,caller:Rx});return o.jsx(zne,{scope:r,disabled:a,contentId:Qn(),open:A,onOpenToggle:w.useCallback(()=>c(u=>!u),[c]),children:o.jsx(Oe.div,{"data-state":QE(A),"data-disabled":a?"":void 0,...l,ref:t})})});d$.displayName=Rx;var f$="CollapsibleTrigger",h$=w.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,i=IE(f$,r);return o.jsx(Oe.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":QE(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:Ae(e.onClick,i.onOpenToggle)})});h$.displayName=f$;var UE="CollapsibleContent",p$=w.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=IE(UE,e.__scopeCollapsible);return o.jsx(bn,{present:r||i.open,children:({present:a})=>o.jsx(qne,{...n,ref:t,present:a})})});p$.displayName=UE;var qne=w.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:i,...a}=e,s=IE(UE,r),[l,A]=w.useState(n),c=w.useRef(null),u=ze(t,c),d=w.useRef(0),f=d.current,h=w.useRef(0),m=h.current,p=s.open||l,v=w.useRef(p),x=w.useRef(void 0);return w.useEffect(()=>{const g=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(g)},[]),wr(()=>{const g=c.current;if(g){x.current=x.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const y=g.getBoundingClientRect();d.current=y.height,h.current=y.width,v.current||(g.style.transitionDuration=x.current.transitionDuration,g.style.animationName=x.current.animationName),A(n)}},[s.open,n]),o.jsx(Oe.div,{"data-state":QE(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!p,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:p&&i})});function QE(e){return e?"open":"closed"}var Yne=d$,Xne=h$,Jne=p$,Yi="Accordion",Zne=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[ME,eie,tie]=ap(Yi),[Dx,X4e]=rn(Yi,[tie,u$]),RE=u$(),m$=S.forwardRef((e,t)=>{const{type:r,...n}=e,i=n,a=n;return o.jsx(ME.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?o.jsx(aie,{...a,ref:t}):o.jsx(iie,{...i,ref:t})})});m$.displayName=Yi;var[g$,rie]=Dx(Yi),[v$,nie]=Dx(Yi,{collapsible:!1}),iie=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:i=()=>{},collapsible:a=!1,...s}=e,[l,A]=di({prop:r,defaultProp:n??"",onChange:i,caller:Yi});return o.jsx(g$,{scope:e.__scopeAccordion,value:S.useMemo(()=>l?[l]:[],[l]),onItemOpen:A,onItemClose:S.useCallback(()=>a&&A(""),[a,A]),children:o.jsx(v$,{scope:e.__scopeAccordion,collapsible:a,children:o.jsx(y$,{...s,ref:t})})})}),aie=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:i=()=>{},...a}=e,[s,l]=di({prop:r,defaultProp:n??[],onChange:i,caller:Yi}),A=S.useCallback(u=>l((d=[])=>[...d,u]),[l]),c=S.useCallback(u=>l((d=[])=>d.filter(f=>f!==u)),[l]);return o.jsx(g$,{scope:e.__scopeAccordion,value:s,onItemOpen:A,onItemClose:c,children:o.jsx(v$,{scope:e.__scopeAccordion,collapsible:!0,children:o.jsx(y$,{...a,ref:t})})})}),[sie,Lx]=Dx(Yi),y$=S.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:i,orientation:a="vertical",...s}=e,l=S.useRef(null),A=ze(l,t),c=eie(r),d=gp(i)==="ltr",f=Ae(e.onKeyDown,h=>{var _;if(!Zne.includes(h.key))return;const m=h.target,p=c().filter(E=>{var I;return!((I=E.ref.current)!=null&&I.disabled)}),v=p.findIndex(E=>E.ref.current===m),x=p.length;if(v===-1)return;h.preventDefault();let g=v;const y=0,B=x-1,b=()=>{g=v+1,g>B&&(g=y)},C=()=>{g=v-1,g<y&&(g=B)};switch(h.key){case"Home":g=y;break;case"End":g=B;break;case"ArrowRight":a==="horizontal"&&(d?b():C());break;case"ArrowDown":a==="vertical"&&b();break;case"ArrowLeft":a==="horizontal"&&(d?C():b());break;case"ArrowUp":a==="vertical"&&C();break}const j=g%x;(_=p[j].ref.current)==null||_.focus()});return o.jsx(sie,{scope:r,disabled:n,direction:i,orientation:a,children:o.jsx(ME.Slot,{scope:r,children:o.jsx(Oe.div,{...s,"data-orientation":a,ref:A,onKeyDown:n?void 0:f})})})}),Bv="AccordionItem",[oie,DE]=Dx(Bv),x$=S.forwardRef((e,t)=>
436{const{__scopeAccordion:r,value:n,...i}=e,a=Lx(Bv,r),s=rie(Bv,r),l=RE(r),A=Qn(),c=n&&s.value.includes(n)||!1,u=a.disabled||e.disabled;return o.jsx(oie,{scope:r,open:c,disabled:u,triggerId:A,children:o.jsx(Yne,{"data-orientation":a.orientation,"data-state":_$(c),...l,...i,ref:t,disabled:u,open:c,onOpenChange:d=>{d?s.onItemOpen(n):s.onItemClose(n)}})})});x$.displayName=Bv;var w$="AccordionHeader",b$=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Lx(Yi,r),a=DE(w$,r);return o.jsx(Oe.h3,{"data-orientation":i.orientation,"data-state":_$(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});b$.displayName=w$;var e1="AccordionTrigger",B$=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Lx(Yi,r),a=DE(e1,r),s=nie(e1,r),l=RE(r);return o.jsx(ME.ItemSlot,{scope:r,children:o.jsx(Xne,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...l,...n,ref:t})})});B$.displayName=e1;var C$="AccordionContent",j$=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Lx(Yi,r),a=DE(C$,r),s=RE(r);return o.jsx(Jne,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...s,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});j$.displayName=C$;function _$(e){return e?"open":"closed"}var lie=m$,Aie=x$,cie=b$,E$=B$,S$=j$;const uie=lie,zA=w.forwardRef(({className:e,...t},r)=>o.jsx(Aie,{ref:r,className:ce("border-b",e),...t}));zA.displayName="AccordionItem";const qA=w.forwardRef(({className:e,children:t,...r},n)=>o.jsx(cie,{className:"flex",children:o.jsxs(E$,{ref:n,className:ce("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,o.jsx(sE,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));qA.displayName=E$.displayName;const YA=w.forwardRef(({className:e,children:t,...r},n)=>o.jsx(S$,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:o.jsx("div",{className:ce("pb-4 pt-0",e),children:t})}));YA.displayName=S$.displayName;const N$="/assets/MeetingCostLogo-Nf48_z3q.png",O$="/assets/MeetingCostTextLogo-BgZqypbs.png",Ab=768;function LE(){const[e,t]=w.useState(void 0);return w.useEffect(()=>{const r=window.matchMedia(`(max-width: ${Ab-1}px)`),n=()=>{t(window.innerWidth<Ab)};return r.addEventListener("change",n),t(window.innerWidth<Ab),()=>r.removeEventListener("change",n)},[]),!!e}const die=op("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Au({className:e,variant:t,...r}){return o.jsx("div",{className:ce(die({variant:t}),e),...r})}var cb="rovingFocusGroup.onEntryFocus",fie={bubbles:!1,cancelable:!0},vp="RovingFocusGroup",[t1,T$,hie]=ap(vp),[pie,$x]=rn(vp,[hie]),[mie,gie]=pie(vp),F$=w.forwardRef((e,t)=>o.jsx(t1.Provider,{scope:e.__scopeRovingFocusGroup,children:o.jsx(t1.Slot,{scope:e.__scopeRovingFocusGroup,children:o.jsx(vie,{...e,ref:t})})}));F$.displayName=vp;var vie=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:A,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,f=w.useRef(null),h=ze(t,f),m=gp(a),[p,v]=di({prop:s,defaultProp:l??null,onChange:A,caller:vp}),[x,g]=w.useState(!1),y=wn(c),B=T$(r),b=w.useRef(!1),[C,j]=w.useState(0);return w.useEffect(()=>{const _=f.current;if(_)return _.addEventListener(cb,y),()=>_.removeEventListener(cb,y)},[y]),o.jsx(mie,{scope:r,orientation:n,dir:m,loop:i,currentTabStopId:p,onItemFocus:w.useCallback(_=>v(_),[v]),onItemShiftTab:w.useCallback(()=>g(!0),[]),onFocusableItemAdd:w.useCallback(()=>j(_=>_+1),[]),onFocusableItemRemove:w.useCallback(()=>j(_=>_-1),[]),children:o.jsx(Oe.div,{tabIndex:x||C===0?-1:0,"data-orientation":n,...d,ref:h,style:{outline:"none",...e.style},onMouseDown:Ae(e.onMouseDown,()=>{b.current=!0}),onFocus:Ae(e.onFocus,_=>{const E=!b.current;if(_.target===_.currentTarget&&E&&!x){const I=new CustomEvent(cb,fie);
vendor: 19,587 bytes, line 436
436if(_.currentTarget.dispatchEvent(I),!I.defaultPrevented){const T=B().filter(O=>O.focusable),k=T.find(O=>O.active),N=T.find(O=>O.id===p),M=[k,N,...T].filter(Boolean).map(O=>O.ref.current);I$(M,u)}}b.current=!1}),onBlur:Ae(e.onBlur,()=>g(!1))})})}),P$="RovingFocusGroupItem",k$=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:a,children:s,...l}=e,A=Qn(),c=a||A,u=gie(P$,r),d=u.currentTabStopId===c,f=T$(r),{onFocusableItemAdd:h,onFocusableItemRemove:m,currentTabStopId:p}=u;return w.useEffect(()=>{if(n)return h(),()=>m()},[n,h,m]),o.jsx(t1.ItemSlot,{scope:r,id:c,focusable:n,active:i,children:o.jsx(Oe.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...l,ref:t,onMouseDown:Ae(e.onMouseDown,v=>{n?u.onItemFocus(c):v.preventDefault()}),onFocus:Ae(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:Ae(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){u.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const x=wie(v,u.orientation,u.dir);if(x!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let y=f().filter(B=>B.focusable).map(B=>B.ref.current);if(x==="last")y.reverse();else if(x==="prev"||x==="next"){x==="prev"&&y.reverse();const B=y.indexOf(v.currentTarget);y=u.loop?bie(y,B+1):y.slice(B+1)}setTimeout(()=>I$(y))}}),children:typeof s=="function"?s({isCurrentTabStop:d,hasTabStop:p!=null}):s})})});k$.displayName=P$;var yie={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function xie(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function wie(e,t,r){const n=xie(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return yie[n]}function I$(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function bie(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var U$=F$,Q$=k$,r1=["Enter"," "],Bie=["ArrowDown","PageUp","Home"],M$=["ArrowUp","PageDown","End"],Cie=[...Bie,...M$],jie={ltr:[...r1,"ArrowRight"],rtl:[...r1,"ArrowLeft"]},_ie={ltr:["ArrowLeft"],rtl:["ArrowRight"]},yp="Menu",[ch,Eie,Sie]=ap(yp),[hA,R$]=rn(yp,[Sie,Mo,$x]),Hx=Mo(),D$=$x(),[Nie,pA]=hA(yp),[Oie,xp]=hA(yp),L$=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:i,onOpenChange:a,modal:s=!0}=e,l=Hx(t),[A,c]=w.useState(null),u=w.useRef(!1),d=wn(a),f=gp(i);return w.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",m,{capture:!0,once:!0}),document.addEventListener("pointermove",m,{capture:!0,once:!0})},m=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",m,{capture:!0}),document.removeEventListener("pointermove",m,{capture:!0})}},[]),o.jsx(yE,{...l,children:o.jsx(Nie,{scope:t,open:r,onOpenChange:d,content:A,onContentChange:c,children:o.jsx(Oie,{scope:t,onClose:w.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:s,children:n})})})};L$.displayName=yp;var Tie="MenuAnchor",$E=w.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,i=Hx(r);return o.jsx(cp,{...i,...n,ref:t})});$E.displayName=Tie;var HE="MenuPortal",[Fie,$$]=hA(HE,{forceMount:void 0}),H$=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:i}=e,a=pA(HE,t);return o.jsx(Fie,{scope:t,forceMount:r,children:o.jsx(bn,{present:r||a.open,children:o.jsx($u,{asChild:!0,container:i,children:n})})})};H$.displayName=HE;var Ai="MenuContent",[Pie,KE]=hA(Ai),K$=w.forwardRef((e,t)=>{const r=$$(Ai,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,a=pA(Ai,e.__scopeMenu),s=xp(Ai,e.__scopeMenu);return o.jsx(ch.Provider,{scope:e.__scopeMenu,children:o.jsx(bn,{present:n||a.open,children:o.jsx(ch.Slot,{scope:e.__scopeMenu,children:s.modal?o.jsx(kie,{...i,ref:t}):o.jsx(Iie,{...i,ref:t})})})})}),kie=w.forwardRef((e,t)=>{const r=pA(Ai,e.__scopeMenu),n=w.useRef(null),i=ze(t,n);return w.useEffect(()=>{const a=n.current;if(a)return Nx(a)},[]),o.jsx(VE,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Ae(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Iie=w.forwardRef((e,t)=>{const r=pA(Ai,e.__scopeMenu);return o.jsx(VE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),Uie=No("MenuContent.ScrollLock"),VE=w.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:A,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,disableOutsideScroll:m,...p}=e,v=pA(Ai,r),x=xp(Ai,r),g=Hx(r),y=D$(r),B=Eie(r),[b,C]=w.useState(null),j=w.useRef(null),_=ze(t,j,v.onContentChange),E=w.useRef(0),I=w.useRef(""),T=w.useRef(0),k=w.useRef(null),N=w.useRef("right"),F=w.useRef(0),M=m?mp:w.Fragment,O=m?{as:Uie,allowPinchZoom:!0}:void 0,U=Q=>{var L,pe;const $=I.current+Q,G=B().filter(W=>!W.disabled),K=document.activeElement,X=(L=G.find(W=>W.ref.current===K))==null?void 0:L.textValue,ae=G.map(W=>W.textValue),ve=zie(ae,$,X),Fe=(pe=G.find(W=>W.textValue===ve))==null?void 0:pe.ref.current;(function W(ee){I.current=ee,window.clearTimeout(E.current),ee!==""&&(E.current=window.setTimeout(()=>W(""),1e3))})($),Fe&&setTimeout(()=>Fe.focus())};w.useEffect(()=>()=>window.clearTimeout(E.current),[]),Ex();const P=w.useCallback(Q=>{var G,K;return N.current===((G=k.current)==null?void 0:G.side)&&Yie(Q,(K=k.current)==null?void 0:K.area)},[]);return o.jsx(Pie,{scope:r,searchRef:I,onItemEnter:w.useCallback(Q=>{P(Q)&&Q.preventDefault()},[P]),onItemLeave:w.useCallback(Q=>{var $;P(Q)||(($=j.current)==null||$.focus(),C(null))},[P]),onTriggerLeave:w.useCallback(Q=>{P(Q)&&Q.preventDefault()},[P]),pointerGraceTimerRef:T,onPointerGraceIntentChange:w.useCallback(Q=>{k.current=Q},[]),children:o.jsx(M,{...O,children:o.jsx(pp,{asChild:!0,trapped:i,onMountAutoFocus:Ae(a,Q=>{var $;Q.preventDefault(),($=j.current)==null||$.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:o.jsx(sA,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,children:o.jsx(U$,{asChild:!0,...y,dir:x.dir,orientation:"vertical",loop:n,currentTabStopId:b,onCurrentTabStopIdChange:C,onEntryFocus:Ae(A,Q=>{x.isUsingKeyboardRef.current||Q.preventDefault()}),preventScrollOnEntryFocus:!0,children:o.jsx(px,{role:"menu","aria-orientation":"vertical","data-state":sH(v.open),"data-radix-menu-content":"",dir:x.dir,...g,...p,ref:_,style:{outline:"none",...p.style},onKeyDown:Ae(p.onKeyDown,Q=>{const G=Q.target.closest("[data-radix-menu-content]")===Q.currentTarget,K=Q.ctrlKey||Q.altKey||Q.metaKey,X=Q.key.length===1;G&&(Q.key==="Tab"&&Q.preventDefault(),!K&&X&&U(Q.key));const ae=j.current;if(Q.target!==ae||!Cie.includes(Q.key))return;Q.preventDefault();const Fe=B().filter(L=>!L.disabled).map(L=>L.ref.current);M$.includes(Q.key)&&Fe.reverse(),Wie(Fe)}),onBlur:Ae(e.onBlur,Q=>{Q.currentTarget.contains(Q.target)||(window.clearTimeout(E.current),I.current="")}),onPointerMove:Ae(e.onPointerMove,uh(Q=>{const $=Q.target,G=F.current!==Q.clientX;if(Q.currentTarget.contains($)&&G){const K=Q.clientX>F.current?"right":"left";N.current=K,F.current=Q.clientX}}))})})})})})})});K$.displayName=Ai;var Qie="MenuGroup",WE=w.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return o.jsx(Oe.div,{role:"group",...n,ref:t})});WE.displayName=Qie;var Mie="MenuLabel",V$=w.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return o.jsx(Oe.div,{...n,ref:t})});V$.displayName=Mie;var Cv="MenuItem",IF="menu.itemSelect",Kx=w.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...i}=e,a=w.useRef(null),s=xp(Cv,e.__scopeMenu),l=KE(Cv,e.__scopeMenu),A=ze(t,a),c=w.useRef(!1),u=()=>{const d=a.current;if(!r&&d){const f=new CustomEvent(IF,{bubbles:!0,cancelable:!0});d.addEventListener(IF,h=>n==null?void 0:n(h),{once:!0}),tE(d,f),f.defaultPrevented?c.current=!1:s.onClose()}};return o.jsx(W$,{...i,ref:A,disabled:r,onClick:Ae(e.onClick,u),onPointerDown:d=>{var f;(f=e.onPointerDown)==null||f.call(e,d),c.current=!0},onPointerUp:Ae(e.onPointerUp,d=>{var f;c.current||(f=d.currentTarget)==null||f.click()}),onKeyDown:Ae(e.onKeyDown,d=>{const f=l.searchRef.current!=="";r||f&&d.key===" "||r1.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Kx.displayName=Cv;var W$=w.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:i,...a}=e,s=KE(Cv,r),l=D$(r),A=w.useRef(null),c=ze(t,A),[u,d]=w.useState(!1),[f,h]=w.useState("");return w.useEffect(()=>{const m=A.current;m&&h((m.textContent??"").trim())},[a.children]),o.jsx(ch.ItemSlot,{scope:r,disabled:n,textValue:i??f,children:o.jsx(Q$,{asChild:!0,...l,focusable:!n,children:o.jsx(Oe.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:c,onPointerMove:Ae(e.onPointerMove,uh(m=>{n?s.onItemLeave(m):(s.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ae(e.onPointerLeave,uh(m=>s.onItemLeave(m))),onFocus:Ae(e.onFocus,()=>d(!0)),onBlur:Ae(e.onBlur,()=>d(!1))})})})}),Rie="MenuCheckboxItem",G$=w.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...i}=e;return o.jsx(J$,{scope:e.__scopeMenu,checked:r,children:o.jsx(Kx,{role:"menuitemcheckbox","aria-checked":jv(r)?"mixed":r,...i,ref:t,"data-state":zE(r),onSelect:Ae(i.onSelect,()=>n==null?void 0:n(jv(r)?!0:!r),{checkForDefaultPrevented:!1})})})});G$.displayName=Rie;var z$="MenuRadioGroup",[Die,Lie]=hA(z$,{value:void 0,onValueChange:()=>{}}),q$=w.forwardRef((e,t)=>{const{value:r,onValueChange:n,...i}=e,a=wn(n);return o.jsx(Die,{scope:e.__scopeMenu,value:r,onValueChange:a,children:o.jsx(WE,{...i,ref:t})})});q$.displayName=z$;var Y$="MenuRadioItem",X$=w.forwardRef((e,t)=>{const{value:r,...n}=e,i=Lie(Y$,e.__scopeMenu),a=r===i.value;return o.jsx(J$,{scope:e.__scopeMenu,checked:a,children:o.jsx(Kx,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":zE(a),onSelect:Ae(n.onSelect,()=>{var s;return(s=i.onValueChange)==null?void 0:s.call(i,r)},{checkForDefaultPrevented:!1})})})});X$.displayName=Y$;var GE="MenuItemIndicator",[J$,$ie]=hA(GE,{checked:!1}),Z$=w.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...i}=e,a=$ie(GE,r);return o.jsx(bn,{present:n||jv(a.checked)||a.checked===!0,children:o.jsx(Oe.span,{...i,ref:t,"data-state":zE(a.checked)})})});Z$.displayName=GE;var Hie="MenuSeparator",eH=w.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return o.jsx(Oe.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eH.displayName=Hie;var Kie="MenuArrow",tH=w.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,i=Hx(r);return o.jsx(mx,{...i,...n,ref:t})});tH.displayName=Kie;var Vie="MenuSub",[J4e,rH]=hA(Vie),Zd="MenuSubTrigger",nH=w.forwardRef((e,t)=>{const r=pA(Zd,e.__scopeMenu),n=xp(Zd,e.__scopeMenu),i=rH(Zd,e.__scopeMenu),a=KE(Zd,e.__scopeMenu),s=w.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:A}=a,c={__scopeMenu:e.__scopeMenu},u=w.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return w.useEffect(()=>u,[u]),w.useEffect(()=>{const d=l.current;return()=>{window.clearTimeout(d),A(null)}},[l,A]),o.jsx($E,{asChild:!0,...c,children:o.jsx(W$,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":i.contentId,"data-state":sH(r.open),...e,ref:sx(t,i.onTriggerChange),onClick:d=>{var f;(f=e.onClick)==null||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:Ae(e.onPointerMove,uh(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!r.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),u()},100))})),onPointerLeave:Ae(e.onPointerLeave,uh(d=>{var h,m;u();const f=(h=r.content)==null?void 0:h.getBoundingClientRect();if(f){const p=(m=r.content)==null?void 0:m.dataset.side,v=p==="right",x=v?-5:5,g=f[v?"left":"right"],y=f[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+x,y:d.clientY},{x:g,y:f.top},{x:y,y:f.top},{x:y,y:f.bottom},{x:g,y:f.bottom}],side:p}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Ae(e.onKeyDown,d=>{var h;const f=a.searchRef.current!=="";e.disabled||f&&d.key===" "||jie[n.dir].includes(d.key)&&(r.onOpenChange(!0),(h=r.content)==null||h.focus(),d.preventDefault())})})})});nH.displayName=Zd;var iH="MenuSubContent",aH=w.forwardRef((e,t)=>{const r=$$(Ai,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,a=pA(Ai,e.__scopeMenu),s=xp(Ai,e.__scopeMenu),l=rH(iH,e.__scopeMenu),A=w.useRef(null),c=ze(t,A);return o.jsx(ch.Provider,{scope:e.__scopeMenu,children:o.jsx(bn,{present:n||a.open,children:o.jsx(ch.Slot,{scope:e.__scopeMenu,children:o.jsx(VE,{id:l.contentId,"aria-labelledby":l.triggerId,...i,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;s.isUsingKeyboardRef.current&&((d=A.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:Ae(e.onFocusOutside,u=>{u.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Ae(e.onEscapeKeyDown,u=>{s.onClose(),u.preventDefault()}),onKeyDown:Ae(e.onKeyDown,u=>{var h;const d=u.currentTarget.contains(u.target),f=_ie[s.dir].includes(u.key);d&&f&&(a.onOpenChange(!1),(h=l.trigger)==null||h.focus(),u.preventDefault())})})})})})});aH.displayName=iH;function sH(e){return e?"open":"closed"}function jv(e){return e==="indeterminate"}function zE(e){return jv(e)?"indeterminate":e?"checked":"unchecked"}function Wie(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function Gie(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function zie(e,t,r){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=Gie(e,Math.max(a,0));i.length===1&&(s=s.filter(c=>c!==r));const A=s.find(c=>c.toLowerCase().startsWith(i.toLowerCase()));return A!==r?A:void 0}function qie(e,t){const{x:r,y:n}=e;let i=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const l=t[a],A=t[s],c=l.x,u=l.y,d=A.x,f=A.y;u>n!=f>n&&r<(d-c)*(n-u)/(f-u)+c&&(i=!i)}return i}function Yie(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return qie(r,t)}function uh(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Xie=L$,Jie=$E,Zie=H$,eae=K$,tae=WE,rae=V$,nae=Kx,iae=G$,aae=q$,sae=X$,oae=Z$,lae=eH,Aae=tH,cae=nH,uae=aH,Vx="DropdownMenu",[dae,Z4e]=rn(Vx,[R$]),nn=R$(),[fae,oH]=dae(Vx),lH=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:i,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,A=nn(t),c=w.useRef(null),[u,d]=di({prop:i,defaultProp:a??!1,onChange:s,caller:Vx});return o.jsx(fae,{scope:t,triggerId:Qn(),triggerRef:c,contentId:Qn(),open:u,onOpenChange:d,onOpenToggle:w.useCallback(()=>d(f=>!f),[d]),modal:l,children:o.jsx(Xie,{...A,open:u,onOpenChange:d,dir:n,modal:l,children:r})})};lH.displayName=Vx;var AH="DropdownMenuTrigger",cH=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...i}=e,a=oH(AH,r),s=nn(r);return o.jsx(Jie,{asChild:!0,...s,children:o.jsx(Oe.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...i,ref:sx(t,a.triggerRef),onPointerDown:Ae(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:Ae(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});cH.displayName=AH;var hae="DropdownMenuPortal",uH=e=>{const{__scopeDropdownMenu:t,...r}=e,n=nn(t);return o.jsx(Zie,{...n,...r})};uH.displayName=hae;var dH="DropdownMenuContent",fH=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=oH(dH,r),a=nn(r),s=w.useRef(!1);return o.jsx(eae,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...n,ref:t,onCloseAutoFocus:Ae(e.onCloseAutoFocus,l=>{var A;s.current||(A=i.triggerRef.current)==null||A.focus(),s.current=!1,l.preventDefault()}),onInteractOutside:Ae(e.onInteractOutside,l=>{const A=l.detail.originalEvent,c=A.button===0&&A.ctrlKey===!0,u=A.button===2||c;(!i.modal||u)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});fH.displayName=dH;var pae="DropdownMenuGroup",mae=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=nn(r);return o.jsx(tae,{...i,...n,ref:t})});mae.displayName=pae;var gae="DropdownMenuLabel",hH=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=nn(r);return o.jsx(rae,{...i,...n,ref:t})});hH.displayName=gae;var vae="DropdownMenuItem",pH=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=nn(r);return o.jsx(nae,{...i,...n,ref:t})});pH.displayName=vae;var yae="DropdownMenuCheckboxItem",mH=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=nn(r);return o.jsx(iae,{...i,...n,ref:t})});mH.displayName=yae;var xae="DropdownMenuRadioGroup",wae=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=nn(r);return o.jsx(aae,{...i,...n,ref:t})});wae.displayName=xae;var bae="DropdownMenuRadioItem",gH=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=nn(r);return o.jsx(sae,{...i,...n,ref:t})});gH.displayName=bae;var Bae="DropdownMenuItemIndicator",vH=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=nn(r);return o.jsx(oae,{...i,...n,ref:t})});vH.displayName=Bae;var Cae="DropdownMenuSeparator",yH=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=nn(r);return o.jsx(lae,{...i,...n,ref:t})});yH.displayName=Cae;var jae="DropdownMenuArrow",_ae=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=nn(r);return o.jsx(Aae,{...i,...n,ref:t})});_ae.displayName=jae;var Eae="DropdownMenuSubTrigger",xH=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=nn(r);return o.jsx(cae,{...i,...n,ref:t})});xH.displayName=Eae;var Sae="DropdownMenuSubContent",wH=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=nn(r);return o.jsx(uae,{...i,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});wH.displayName=Sae;var Nae=lH,Oae=cH,Tae=uH,bH=fH,BH=hH,CH=pH,jH=mH,_H=gH,EH=vH,SH=yH,NH=xH,OH=wH;const Fae=Nae,Pae=Oae,kae=w.forwardRef(({className:e,inset:t,children:r,...n},i)=>o.jsxs(NH,{ref:i,className:ce("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...n,children:[r,o.jsx(Ax,{className:"ml-auto h-4 w-4"})]}));
436kae.displayName=NH.displayName;const Iae=w.forwardRef(({className:e,...t},r)=>o.jsx(OH,{ref:r,className:ce("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Iae.displayName=OH.displayName;const TH=w.forwardRef(({className:e,sideOffset:t=4,...r},n)=>o.jsx(Tae,{children:o.jsx(bH,{ref:n,sideOffset:t,className:ce("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));TH.displayName=bH.displayName;const XA=w.forwardRef(({className:e,inset:t,...r},n)=>o.jsx(CH,{ref:n,className:ce("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...r}));XA.displayName=CH.displayName;const Uae=w.forwardRef(({className:e,children:t,checked:r,...n},i)=>o.jsxs(jH,{ref:i,className:ce("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:r,...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(EH,{children:o.jsx(Yn,{className:"h-4 w-4"})})}),t]}));Uae.displayName=jH.displayName;const Qae=w.forwardRef(({className:e,children:t,...r},n)=>o.jsxs(_H,{ref:n,className:ce("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...r,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(EH,{children:o.jsx(i7,{className:"h-2 w-2 fill-current"})})}),t]}));Qae.displayName=_H.displayName;const Mae=w.forwardRef(({className:e,inset:t,...r},n)=>o.jsx(BH,{ref:n,className:ce("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));Mae.displayName=BH.displayName;const FH=w.forwardRef(({className:e,...t},r)=>o.jsx(SH,{ref:r,className:ce("-mx-1 my-1 h-px bg-muted",e),...t}));FH.displayName=SH.displayName;const qE=mL,YE=gL,Rae=vL,PH=w.forwardRef(({className:e,...t},r)=>o.jsx(Tx,{className:ce("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));PH.displayName=Tx.displayName;const Dae=op("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Wx=w.forwardRef(({side:e="right",className:t,children:r,...n},i)=>o.jsxs(Rae,{children:[o.jsx(PH,{}),o.jsxs(Fx,{ref:i,className:ce(Dae({side:e}),t),...n,children:[r,o.jsxs(yL,{className:"absolute right-4 top-4 roun
436ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[o.jsx($i,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Wx.displayName=Fx.displayName;const Gx=({className:e,...t})=>o.jsx("div",{className:ce("flex flex-col space-y-2 text-center sm:text-left",e),...t});Gx.displayName="SheetHeader";const zx=w.forwardRef(({className:e,...t},r)=>o.jsx(Px,{ref:r,className:ce("text-lg font-semibold text-foreground",e),...t}));zx.displayName=Px.displayName;const XE=w.forwardRef(({className:e,...t},r)=>o.jsx(kx,{ref:r,className:ce("text-sm text-muted-foreground",e),...t}));XE.displayName=kx.displayName;const Qt=()=>{var i;const{user:e,isPro:t,signOut:r}=Tr(),n=LE();return o.jsx("header",{className:"border-b",children:o.jsx("div",{className:"container mx-auto px-4 py-4",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx(de,{to:"/",className:"flex items-center gap-2",children:o.jsx("img",{src:n?O$:N$,alt:"MeetingCost",className:n?"h-12 w-auto":"h-16 w-auto"})}),o.jsxs("nav",{className:"hidden md:flex items-center gap-6",children:[o.jsx(de,{to:"/calculator",className:"text-sm font-medium hover:text-primary transition-colors",children:"Calculator"}),o.jsx(de,{to:"/pricing",className:"text-sm font-medium hover:text-primary transition-colors",children:"Pricing"}),o.jsx(de,{to:"/blog",className:"text-sm font-medium hover:text-primary transition-colors",children:"Blog"}),e?o.jsxs(Fae,{children:[o.jsx(Pae,{asChild:!0,children:o.jsxs(z,{size:"sm",variant:"outline",className:"gap-2",children:[((i=e.email)==null?void 0:i.split("@")[0])||"Account",t&&o.jsx(Au,{variant:"default",className:"ml-1 px-1.5 py-0 text-xs",children:o.jsx(lp,{className:"h-3 w-3"})})]})}),o.jsxs(TH,{align:"end",children:[o.jsx(XA,{asChild:!0,children:o.jsxs(de,{to:"/dashboard",className:"flex items-center cursor-pointer",children:[o.jsx(uD,{className:"mr-2 h-4 w-4"}),"Dashboard"]})}),o.jsx(XA,{asChild:!0,children:o.jsxs(de,{to:"/meetings",className:"flex items-center cursor-pointer",children:[o.jsx(cx,{className:"mr-2 h-4 w-4"}),"My Meetings"]})}),t&&o.jsx(XA,{asChild:!0,children:o.jsxs(de,{to:"/projects",className:"flex items-center cursor-pointer",children:[o.jsx(vC,{className:"mr-2 h-4 w-4"}),"Projects"]})}),o.jsx(FH,{}),o.jsx(XA,{asChild:!0,children:o.jsxs(de,{to:"/settings",className:"flex items-center cursor-pointer",children:[o.jsx(v7,{className:"mr-2 h-4 w-4"}),"Settings"]})}),o.jsxs(XA,{onClick:()=>r(),className:"cursor-pointer",children:[o.jsx(uT,{className:"mr-2 h-4 w-4"}),"Sign Out"]})]})]}):o.jsx(z,{asChild:!0,size:"sm",children:o.jsx(de,{to:"/auth",children:"Sign In"})})]}),o.jsxs(qE,{children:[o.jsx(YE,{asChild:!0,className:"md:hidden",children:o.jsx(z,{variant:"ghost",size:"icon",children:o.jsx(u7,{className:"h-6 w-6"})})}),o.jsxs(Wx,{className:"w-[280px] bg-background z-50",children:[o.jsx(Gx,{children:o.jsx(zx,{className:"text-left",children:"Menu"})}),o.jsxs("nav",{className:"flex flex-col gap-4 mt-6",children:[o.jsx(de,{to:"/calculator",className:"text-base font-medium hover:text-primary transition-colors py-2",children:"Calculator"}),o.jsx(de,{to:"/pricing",className:"text-base font-medium hover:text-primary transition-colors py-2",children:"Pricing"}),o.jsx(de,{to:"/blog",className:"text-base font-medium hover:text-primary transition-colors py-2",children:"Blog"}),e?o.jsxs(o.Fragment,{children:[o.jsx(de,{to:"/dashboard",className:"text-base font-medium hover:text-primary transition-colors py-2",children:"Dashboard"}),o.jsx(de,{to:"/meetings",className:"text-base font-medium hover:text-primary transition-colors py-2",children:"My Meetings"}),t&&o.jsx(de,{to:"/projects",className:"text-base font-medium hover:text-primary transition-colors py-2",children:"Projects"}),o.jsx(de,{to:"/settings",className:"text-base font-medium hover:text-primary transition-colors py-2",children:"Settings"}),o.jsxs(z,{onClick:()=>r(),variant:"outline",className:"mt-4",children:[o.jsx(uT,{className:"mr-2 h-4 w-4"}),"Sign Out"]})]}):o.jsx(z,{asChild:!0,className:"mt-4",children:o.jsx(de,{to:"/auth",children:"Sign In"})})]})]})]})]})})})},Oa=({title:e,description:t,canonicalUrl:r="https://meetingcost.online",ogImage:n="https://meetingcost.online/og-image-home.png",ogType:i="website",keywords:a,structuredData:s})=>{const l=`${e} | Meeting Cost Calculator`;return o.jsxs(r9,{children:[o.jsx("title",{children:l}),o.jsx("meta",{name:"title",content:l}),o.jsx("meta",{name:"description",content:t}),a&&o.jsx("meta",{name:"keywords",content:a}),o.jsx("link",{rel:"canonical",href:r}),o.jsx("meta",{property:"og:type",content:i}),o.jsx("meta",{property:"og:url",content:r}),o.jsx("meta",{property:"og:title",content:l}),o.jsx("meta",{property:"og:description",content:t}),o.jsx("meta",{property:"og:image",content:n}),o.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),o.jsx("meta",{name:"twitter:url",content:r}),o.jsx("meta",{name:"twitter:title",content:l}),o.jsx("meta",{name:"twitter:description",content:t}),o.jsx("meta",{name:"twitter:image",content:n}),s&&o.jsx("script",{type:"application/ld+json",children:JSON.stringify(s)})]})},Lae=()=>{const e={"@context":"https://schema.org","@type":"WebApplication",name:"Meeting Cost Calculator",description:"Calculate the true cost of meetings in real-time. Track meeting ROI, measure productivity impact, and reduce wasteful meetings.",url:"https://meetingcost.online",applicationCategory:"BusinessApplication",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},aggregateRating:{"@type":"AggregateRating",ratingValue:"4.8",ratingCount:"2847"}},t={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"How do you calculate meeting cost?",acceptedA
436nswer:{"@type":"Answer",text:"Meeting cost is calculated by multiplying each attendee's hourly rate by the meeting duration, then summing all attendee costs. For example, a 1-hour meeting with 5 people earning $100/hr each costs $500."}},{"@type":"Question",name:"Is the Meeting Cost Calculator free?",acceptedAnswer:{"@type":"Answer",text:"Yes! Our basic calculator is completely free with no signup required. Pro features include meeting history, team presets, and advanced analytics for $9/month."}},{"@type":"Question",name:"What is the average cost of a meeting?",acceptedAnswer:{"@type":"Answer",text:"According to Bain & Company, the average 1-hour executive meeting costs $338. However, costs vary widely based on attendee seniority and meeting length."}},{"@type":"Question",name:"How can I reduce meeting costs?",acceptedAnswer:{"@type":"Answer",text:"Reduce meeting costs by: 1) Removing unnecessary attendees, 2) Setting clear agendas, 3) Keeping meetings under 30 minutes, 4) Using async updates instead of meetings, 5) Tracking costs to build awareness."}}]};return o.jsxs("div",{className:"min-h-screen bg-gradient-hero",children:[o.jsx(Oa,{title:"Track Real-Time Meeting Costs & ROI",description:"Free meeting cost calculator. See how much your meetings really cost in real-time. Calculate meeting ROI, track productivity, and reduce wasteful meetings. No signup required.",canonicalUrl:"https://meetingcost.online",ogImage:"https://meetingcost.online/og-image-home.png",keywords:"meeting cost calculator, meeting ROI, productivity tool, meeting efficiency, calculate meeting cost, meeting waste, business productivity",structuredData:[e,t]}),o.jsx(Qt,{}),o.jsx("section",{className:"container mx-auto px-4 py-20 md:py-32",children:o.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[o.jsxs("h1",{className:"text-4xl md:text-6xl font-bold mb-6 leading-tight",children:["How Much Is This Meeting",o.jsx("br",{}),o.jsx("span",{className:"text-primary",children:"Really Costing You?"})]}),o.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground mb-8 max-w-2xl mx-auto",children:"Calculate the true cost of meetings in real-time. Watch productivity dollars tick away."}),o.jsx(z,{asChild:!0,size:"lg",className:"text-lg h-14 px-8",children:o.jsxs(de,{to:"/calculator",children:["Start Calculating ",o.jsx(Zf,{className:"ml-2 h-5 w-5"})]})}),o.jsx("p",{className:"text-sm text-muted-foreground mt-4",children:"No signup required for basic use"})]})}),o.jsx("section",{className:"container mx-auto px-4 py-16",children:o.jsxs("div",{className:"grid md:grid-cols-3 gap-8 max-w-5xl mx-auto",children:[o.jsx("a",{href:"https://hbr.org/2014/04/how-a-weekly-meeting-took-up-300000-hours-a-year",target:"_blank",rel:"noopener noreferrer",className:"block transition-shadow hover:shadow-lg",children:o.jsx(J,{className:"shadow-card border-2 h-full cursor-pointer",children:o.jsxs(Z,{className:"pt-6",children:[o.jsx("div",{className:"text-4xl font-bold text-destructive mb-2",children:"$37B"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"wasted annually on unnecessary meetings in US companies"}),o.jsxs("p",{className:"text-xs text-muted-foreground mt-2 italic flex items-center gap-1",children:["Source: Harvard Business Review ",o.jsx(wg,{className:"h-3 w-3"})]})]})})}),o.jsx("a",{href:"https://www.atlassian.com/work-management/project-collaboration/team-meetings",target:"_blank",rel:"noopener noreferrer",className:"block transition-shadow hover:shadow-lg",children:o.jsx(J,{className:"shadow-card border-2 h-full cursor-pointer",children:o.jsxs(Z,{className:"pt-6",children:[o.jsx("div",{className:"text-4xl font-bold text-destructive mb-2",children:"63%"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"of meetings have no planned agenda or clear objectives"}),o.jsxs("p",{className:"text-xs text-muted-foreground mt-2 italic flex items-center gap-1",children:["Source: Atlassian ",o.jsx(wg,{className:"h-3 w-3"})]})]})})}),o.jsx("a",{href:"https://www.bain.com/insights/how-to-make-the-most-of-executive-team-meetings/",target:"_blank",rel:"noopener noreferrer",className:"block transition-shadow hover:shadow-lg",children:o.jsx(J,{className:"shadow-card border-2 h-full cursor-pointer",children:o.jsxs(Z,{className:"pt-6",children:[o.jsx("div",{className:"text-4xl font-bold text-destructive mb-2",children:"$338"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"average cost of a 1-hour executive meeting"}),o.jsxs("p",{className:"text-xs text-muted-foreground mt-2 italic flex items-center gap-1",children:["Source: Bain & Company ",o.jsx(wg,{className:"h-3 w-3"})]})]})})})]})}),o.jsxs("section",{className:"container mx-auto px-4 py-16",children:[o.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12",children:"Powerful Features for Meeting Accountability"}),o.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8 max-w-6xl mx-auto",children:[o.jsx(J,{className:"shadow-card",children:o.jsxs(Z,{className:"pt-6",children:[o.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4",children:o.jsx(so,{className:"h-6 w-6 text-primary"})}),o.jsx("h3",{className:"font-bold text-lg mb-2",children:"Real-Time Cost Tracking"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Watch costs accumulate live as your meeting progresses"})]})}),o.jsx(J,{className:"shadow-card",children:o.jsxs(Z,{className:"pt-6",children:[o.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4",children:o.jsx(eu,{className:"h-6 w-6 text-primary"})}),o.jsx("h3",{className:"font-bold text-lg mb-2",children:"Project Value Analysis"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"See meetings as a percentage of your deal or project value"})]})}),o.jsx(J,{className:"shadow-card",children:o.jsxs(Z,{className:"pt-6",children:[o.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4",children:o.jsx(oE,{className:"h-6 w-6 text-primary"})}),o.jsx("h3",{className:"font-bold text-lg mb-2",children:"Shareable Reports"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Create viral share images to spread awareness"})]})}),o.jsx(J,{className:"shadow-card",children:o.jsxs(Z,{className:"pt-6",children:[o.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4",children:o.jsx(hs,{className:"h-6 w-6 text-primary"})}),o.jsx("h3",{className:"font-bold text-lg mb-2",children:"Team Presets"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Save your recurring meeting groups for quick access"})]})})]})]}),o.jsxs("section",{className:"container mx-auto px-4 py-16",children:[o.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12",children:"How It Works"}),o.jsxs("div",{className:"max-w-3xl mx-auto grid gap-8",children:[o.jsxs("div",{className:"flex gap-4",children:[o.jsx("div",{className:"w-12 h-12 bg-primary rounded-full flex items-center justify-center text-primary-foreground font-bold text-xl flex-shrink-0",children:"1"}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-bold text-lg mb-2",children:"Add Attendees and Their Hourly Rates"}),o.jsx("p",{className:"text-muted-foreground",children:"Input each participant's role and hourly rate, or use quick mode for fast estimates"})]})]}),o.jsxs("div",{className:"flex gap-4",children:[o.jsx("div",{className:"w-12 h-12 bg-primary rounded-full flex items-center justify-center text-primary-foreground font-bold text-xl flex-shrink-0",children:"2"}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-bold text-lg mb-2",children:"Optional: Add Deal or Project Value"}),o.jsx("p",{className:"text-muted-foreground",children:"Track meetings against your project budget to see the real ROI impact"})]})]}),o.jsxs("div",{className:"flex gap-4",children:[o.jsx("div",{className:"w-12 h-12 bg-primary rounded-full flex items-center justify-center text-primary-foreground font-bold text-xl flex-shrink-0",children:"3"}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-bold text-lg mb-2",children:"Start Timer and Watch the Cost Grow"}),o.jsx("p",{className:"text-muted-foreground",children:"See real-time costs update every second, with insights on productivity impact"})]})]})]})]}),o.jsxs("section",{className:"container mx-auto px-4 py-16",children:[o.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12",children:"Frequently Asked Questions"}),o.jsx("div",{className:"max-w-3xl mx-auto",children:o.jsxs(uie,{type:"single",collapsible:!0,className:"space-y-4",children:[o.jsxs(zA,{value:"item-1",children:[o.jsx(qA,{className:"text-left",children:o.jsx("h3",{className:"font-semibold",children:"How do you calculate meeting cost?"})}),o.jsx(YA,{children:"Meeting cost is calculated by multiplying each attendee's hourly rate by the meeting duration, then summing all attendee costs. For example, a 1-hour meeting with 5 people earning $100/hr each costs $500."})]}),o.jsxs(zA,{value:"item-2",children:[o.jsx(qA,{className:"text-left",children:o.jsx("h3",{className:"font-semibold",children:"Is the Meeting Cost Calculator free?"})}),o.jsx(YA,{children:"Yes! Our basic calculator is completely free with no signup required. Pro features include meeting history, team presets, and advanced analytics for $9/month."})]}),o.jsxs(zA,{value:"item-3",children:[o.jsx(qA,{className:"text-left",children:o.jsx("h3",{className:"font-semibold",children:"What is the average cost of a meeting?"})}),o.jsx(YA,{children:"According to Bain & Company, the average 1-hour executive meeting costs $338. However, costs vary widely based on attendee seniority and meeting length."})]}),o.jsxs(zA,{value:"item-4",children:[o.jsx(qA,{className:"text-left",children:o.jsx("h3",{className:"font-semibold",children:"How can I reduce meeting costs?"})}),o.jsx(YA,{children:"Reduce meeting costs by: (1) Removing unnecessary attendees, (2) Setting clear agendas, (3) Keeping meetings under 30 minutes, (4) Using async updates instead of meetings, (5) Tracking costs to build awareness."})]}),o.jsxs(zA,{value:"item-5",children:[o.jsx(qA,{className:"text-left",children:o.jsx("h3",{className:"font-semibold",children:"Do I need to sign up to use the calculator?"})}),o.jsx(YA,{children:"No signup required for basic use! You can calculate meeting costs instantly. Sign up for free to save meeting history and access team features."})]})]})})]}),o.jsx("section",{className:"container mx-auto px-4 py-20",children:o.jsxs("div",{className:"max-w-3xl mx-auto text-center bg-gradient-primary rounded-2xl p-12 shadow-lg",children:[o.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-primary-foreground mb-4",children:"Ready to See the True Cost?"}
436),o.jsx("p",{className:"text-lg text-primary-foreground/90 mb-8",children:"Start tracking your meeting costs today - no credit card required"}),o.jsx(z,{asChild:!0,size:"lg",variant:"secondary",className:"text-lg h-14 px-8",children:o.jsxs(de,{to:"/calculator",children:["Try It Free ",o.jsx(Zf,{className:"ml-2 h-5 w-5"})]})})]})}),o.jsx("footer",{className:"border-t py-8",children:o.jsx("div",{className:"container mx-auto px-4 text-center text-sm text-muted-foreground",children:o.jsx("p",{children:"© 2025 MeetingCost Calculator. Make every meeting count."})})})]})};var qx="Switch",[$ae,eLe]=rn(qx),[Hae,Kae]=$ae(qx),kH=w.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:i,defaultChecked:a,required:s,disabled:l,value:A="on",onCheckedChange:c,form:u,...d}=e,[f,h]=w.useState(null),m=ze(t,y=>h(y)),p=w.useRef(!1),v=f?u||!!f.closest("form"):!0,[x,g]=di({prop:i,defaultProp:a??!1,onChange:c,caller:qx});return o.jsxs(Hae,{scope:r,checked:x,disabled:l,children:[o.jsx(Oe.button,{type:"button",role:"switch","aria-checked":x,"aria-required":s,"data-state":MH(x),"data-disabled":l?"":void 0,disabled:l,value:A,...d,ref:m,onClick:Ae(e.onClick,y=>{g(B=>!B),v&&(p.current=y.isPropagationStopped(),p.current||y.stopPropagation())})}),v&&o.jsx(QH,{control:f,bubbles:!p.current,name:n,value:A,checked:x,required:s,disabled:l,form:u,style:{transform:"translateX(-100%)"}})]})});kH.displayName=qx;var IH="SwitchThumb",UH=w.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,i=Kae(IH,r);return o.jsx(Oe.span,{"data-state":MH(i.checked),"data-disabled":i.disabled?"":void 0,...n,ref:t})});UH.displayName=IH;var Vae="SwitchBubbleInput",QH=w.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...i},a)=>{const s=w.useRef(null),l=ze(s,a),A=wL(r),c=UD(t);return w.useEffect(()=>{const u=s.current;if(!u)return;const d=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(d,"checked").set;if(A!==r&&h){const m=new Event("click",{bubbles:n});h.call(u,r),u.dispatchEvent(m)}},[A,r,n]),o.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:l,style:{...i.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});QH.displayName=Vae;function MH(e){return e?"checked":"unchecked"}var RH=kH,Wae=UH;const cu=w.forwardRef(({className:e,...t},r)=>o.jsx(RH,{className:ce("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:r,children:o.jsx(Wae,{className:ce("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));cu.displayName=RH.displayName;var JE="Progress",ZE=100,[Gae,tLe]=rn(JE),[zae,qae]=Gae(JE),DH=w.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:i,getValueLabel:a=Yae,...s}=e;(i||i===0)&&!UF(i)&&console.error(Xae(`${i}`,"Progress"));const l=UF(i)?i:ZE;n!==null&&!QF(n,l)&&console.error(Jae(`${n}`,"Progress"));const A=QF(n,l)?n:null,c=_v(A)?a(A,l):void 0;return o.jsx(zae,{scope:r,value:A,max:l,children:o.jsx(Oe.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":_v(A)?A:void 0,"aria-valuetext":c,role:"progressbar","data-state":HH(A,l),"data-value":A??void 0,"data-max":l,...s,ref:t})})});DH.displayName=JE;var LH="ProgressIndicator",$H=w.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,i=qae(LH,r);return o.jsx(Oe.div,{"data-state":HH(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...n,ref:t})});$H.displayName=LH;function Yae(e,t){return`${Math.round(e/t*100)}%`}function HH(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function _v(e){return typeof e=="number"}function UF(e){return _v(e)&&!isNaN(e)&&e>0}function QF(e,t){return _v(e)&&!isNaN(e)&&e<=t&&e>=0}function Xae(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ZE}\`.`}function Jae(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 437 - a positive number 438 - less than the value passed to \`max\` (or ${ZE} if no \`max\` prop is set) 439 - \`null\` or \`undefined\` if the progress is indeterminate. 440 441Defaulting to \`null\`.`}var KH=DH,Zae=$H;const eS=w.forwardRef(({className:e,value:t,...r},n)=>o.jsx(KH,{ref:n,className:ce("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:o.jsx(Zae,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));eS.displayName=KH.displayName;
441const tS=({value:e,onChange:t,onMembersLoad:r,label:n="Project",placeholder:i="Select a project (optional)"})=>{const{user:a,isPro:s}=Tr(),l=Wn(),[A,c]=w.useState([]),[u,d]=w.useState(!0);w.useEffect(()=>{a&&s?f():d(!1)},[a,s]);const f=async()=>{try{const{data:m,error:p}=await Be.from("projects").select("id, name, client_name, color").eq("status","active").order("name");if(p)throw p;c(m||[])}catch(m){console.error("Error fetching projects:",m)}finally{d(!1)}},h=async m=>{if(r)try{const{data:p,error:v}=await Be.from("project_members").select("*").eq("project_id",m).order("name");if(v)throw v;const x=(p||[]).map(g=>({id:g.id,name:g.name,role:g.role,hourly_rate:parseFloat(g.hourly_rate.toString())}));r(x)}catch(p){console.error("Error fetching project members:",p),r([])}};return w.useEffect(()=>{e&&r?h(e):!e&&r&&r([])},[e]),s?o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx(he,{children:n}),o.jsxs(z,{type:"button",variant:"ghost",size:"sm",onClick:()=>l("/projects/new"),className:"h-auto p-0 text-xs",children:[o.jsx(yn,{className:"h-3 w-3 mr-1"}),"New Project"]})]}),o.jsxs(Cs,{value:e||"none",onValueChange:m=>t(m==="none"?null:m),disabled:u,children:[o.jsx(Sa,{children:o.jsx(js,{placeholder:u?"Loading...":i})}),o.jsxs(Na,{children:[o.jsx(et,{value:"none",children:"No Project"}),A.map(m=>o.jsx(et,{value:m.id,children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:m.color}}),o.jsxs("span",{children:[m.name,m.client_name&&o.jsxs("span",{className:"text-muted-foreground ml-1",children:["- ",m.client_name]})]})]})},m.id))]})]})]}):null},ese=()=>{var R;const e=Wn(),{user:t,isPro:r}=Tr(),[n,i]=w.useState(""),[a,s]=w.useState(!1),[l,A]=w.useState(0),[c,u]=w.useState(null),[d,f]=w.useState(null),[h,m]=w.useState(!1),[p,v]=w.useState([]),[x,g]=w.useState(0),[y,B]=w.useState(0),[b,C]=w.useState(!1),[j,_]=w.useState(""),[E,I]=w.useState(""),[T,k]=w.useState(0),[N,F]=w.useState(!1),[M,O]=w.useState(!1),[U,P]=w.useState(0),[Q,$]=w.useState(0),[G,K]=w.useState(null),[X,ae]=w.useState(!1),ve=h?x*y/3600:p.reduce((D,H)=>D+H.hourlyRate,0)/3600;w.useEffect(()=>{let D;return N&&!M&&(D=setInterval(()=>{P(H=>H+1),$(H=>H+ve)},1e3)),()=>clearInterval(D)},[N,M,ve]);const Fe=()=>{var H;try{c$.parse({name:j,role:E,hourlyRate:T})}catch(te){const ie=(H=te.errors)==null?void 0:H[0];on.error((ie==null?void 0:ie.message)||"Please fill in all attendee fields correctly");return}const D={id:Math.random().toString(36).substr(2,9),name:j.trim(),role:E.trim(),hourlyRate:T};v([...p,D]),_(""),I(""),k(0),C(!1),on.success(`Added ${j} to meeting`)},L=D=>{v(p.filter(H=>H.id!==D))},pe=()=>{if(!h&&p.length===0){on.error("Please add at least one attendee");return}if(h){if(x<1||x>1e3){on.error("Attendee count must be between 1 and 1000");return}if(y<0||y>1e4){on.error("Average rate must be between $0 and $10,000");return}}if(n.trim().length>200){on.error("Meeting title must be less than 200 characters");return}if(a&&l<0){on.error("Project value cannot be negative");return}F(!0),O(!1),K(new Date),on.success("Meeting started - costs are being tracked")},W=()=>{O(!M)},ee=async()=>{if(F(!1),t)try{const{data:D,error:H}=await Be.from("meetings").insert({user_id:t.id,title:n||"Untitled Meeting",held_at:(G==null?void 0:G.toISOString())||new Date().toISOString(),duration:U,total_cost:Q,project_value:a?l:null,project_id:c,quick_mode:h,quick_attendee_count:h?x:null,quick_avg_rate:h?y:null}).select().single();if(H)throw H;if(!h&&D){const te=p.map(ne=>({meeting_id:D.id,name:ne.name,role:ne.role,hourly_rate:ne.hourlyRate})),{error:ie}=await Be.from("meeting_attendees").insert(te);if(ie)throw ie}on.success("Meeting saved!"),e(`/meetings/${D.id}`)}catch(D){on.error("Failed to save meeting: "+D.message),le(),e("/results")}else le(),ae(!0)},le=()=>{const D={title:n||"Untitled Meeting",duration:U,totalCost:Q,attendees:h?[]:p,quickMode:h,quickAttendeeCount:x,quickAvgRate:y,projectValue:a?l:0};localStorage.setItem("lastMeeting",JSON.stringify(D))},V=()=>{ae(!1),e("/results")},Te=D=>{const H=Math.floor(D/3600),te=Math.floor(D%3600/60),ie=D%60;return`${H.toString().padStart(2,"0")}:${te.toString().padStart(2,"0")}:${ie.toString().padStart(2,"0")}`},Ne=async D=>{try{const{data:H,error:te}=await Be.from("projects").select("*").eq("id",D).single();if(te)throw te;f(H),A(H.total_budget||0)}catch(H){console.error("Error fetching project:",H),on.error("Failed to load project details")}},Ze=D=>{if(D.length>0&&!h&&!N){const H=D.map(te=>({id:Math.random().toString(36).substr(2,9),name:te.name,role:te.role,hourlyRate:te.hourly_rate}));v(H),on.success(`Loaded ${D.length} team member(s) from project`)}},Ye=ve*60,at=a&&l>0?Q/l*100:0,Br=()=>at<5?"bg-success":at<10?"bg-warning":at<20?"bg-orange-500":"bg-destructive",pr={"@context":"https://schema.org","@type":"WebApplication",name:"Meeting Cost Calculator - Real-Time Tracker",description:"Calculate meeting costs in real-time. Track expenses per minute, measure ROI, and optimize team productivity.",url:"https://meetingcost.online/calculator",applicationCategory:"BusinessApplication"};return o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Oa,{title:"Calculate Meeting Cost in Real-Time",description:"Start calculating your meeting costs now. Track expenses in real-time, see cost per minute, and measure meeting ROI against your project budget.",canonicalUrl:"https://meetingcost.online/calculator",ogImage:"https://meetingcost.online/og-image-calculator.png",keywords:"calculate meeting cost, meeting tracker, real-time cost c
441alculator, meeting ROI calculator, productivity tracker",structuredData:pr}),o.jsx(Qt,{}),o.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-6xl",children:[o.jsxs(J,{className:"mb-6 shadow-card",children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Meeting Information"})}),o.jsxs(Z,{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx(he,{htmlFor:"title",children:"Meeting Title (Optional)"}),o.jsx(_e,{id:"title",placeholder:"Daily Standup",value:n,onChange:D=>i(D.target.value),disabled:N})]}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx(cu,{id:"track-project",checked:a,onCheckedChange:s,disabled:N}),o.jsxs(he,{htmlFor:"track-project",children:["Track against ",r?"project":"deal/project","?"]}),r&&o.jsx("span",{className:"text-xs px-2 py-0.5 bg-primary/10 text-primary rounded-full",children:"Pro"})]}),a&&r&&o.jsxs("div",{className:"space-y-2",children:[o.jsx(tS,{value:c,onChange:D=>{u(D),D?Ne(D):(f(null),A(0))},onMembersLoad:Ze}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Select a project to automatically load team members and track meeting costs"}),d&&o.jsxs("div",{className:"p-3 bg-muted/50 rounded-lg space-y-1",children:[o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Project Budget: ",o.jsxs("span",{className:"font-semibold text-foreground",children:["$",((R=d.total_budget)==null?void 0:R.toLocaleString())||"Not set"]})]}),d.actual_cost>0&&o.jsxs("p",{className:"text-xs text-muted-foreground",children:["Already spent: $",d.actual_cost.toLocaleString()]})]})]}),a&&!r&&o.jsxs("div",{children:[o.jsx(he,{htmlFor:"project-value",children:"Deal/Project Value ($)"}),o.jsx(_e,{id:"project-value",type:"number",placeholder:"10000",value:l||"",onChange:D=>A(Number(D.target.value)),disabled:N}),o.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Compare meeting costs to your project budget or deal size"})]})]})]}),o.jsxs(J,{className:"mb-6 shadow-card",children:[o.jsx(Ee,{children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx(Se,{children:"Attendees"}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx(cu,{id:"quick-mode",checked:h,onCheckedChange:m,disabled:N}),o.jsx(he,{htmlFor:"quick-mode",className:"text-sm",children:"Quick Mode"})]})]})}),o.jsx(Z,{className:"space-y-4",children:h?o.jsxs("div",{className:"space-y-4",children:[o.jsx("p",{className:"text-sm text-muted-foreground",children:"Perfect for quick estimates"}),o.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[o.jsxs("div",{children:[o.jsx(he,{htmlFor:"attendee-count",children:"# of Attendees"}),o.jsx(_e,{id:"attendee-count",type:"number",placeholder:"5",value:x||"",onChange:D=>g(Number(D.target.value)),disabled:N})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"avg-rate",children:"Average Hourly Rate ($)"}),o.jsx(_e,{id:"avg-rate",type:"number",placeholder:"100",value:y||"",onChange:D=>B(Number(D.target.value)),disabled:N})]})]}),o.jsx("p",{className:"text-xs text-muted-foreground",children:"Typical rates: Junior $50/hr, Mid $100/hr, Senior $150/hr, Executive $250/hr"})]}):o.jsxs("div",{className:"space-y-4",children:[p.map(D=>o.jsxs("div",{className:"flex items-center justify-between p-3 bg-muted rounded-lg",children:[o.jsxs("div",{children:[o.jsx("p",{className:"font-medium",children:D.name}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:[D.role," - $",D.hourlyRate,"/hr"]})]}),o.jsx(z,{variant:"ghost",size:"sm",onClick:()=>L(D.id),disabled:N,children:o.jsx($i,{className:"h-4 w-4"})})]},D.id)),b?o.jsxs("div",{className:"p-4 border rounded-lg space-y-3",children:[o.jsxs("div",{children:[o.jsx(he,{htmlFor:"name",children:"Name"}),o.jsx(_e,{id:"name",placeholder:"John Doe",value:j,onChange:D=>_(D.target.value)})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"role",children:"Role/Title"}),o.jsx(_e,{id:"role",placeholder:"Senior Developer",value:E,onChange:D=>I(D.target.value)})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"rate",children:"Hourly Rate ($)"}),o.jsx(_e,{id:"rate",type:"number",placeholder:"150",value:T||"",onChange:D=>k(Number(D.target.value))})]}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx(z,{onClick:Fe,size:"sm",children:"Add"}),o.jsx(z,{variant:"outline",size:"sm",onClick:()=>C(!1),children:"Cancel"})]})]}):o.jsxs(z,{onClick:()=>C(!0),variant:"outline",className:"w-full",disabled:N,children:[o.jsx(yn,{className:"mr-2 h-4 w-4"})," Add Attendee"]})]})})]}),N&&!t&&o.jsx(J,{className:"mb-6 bg-gradient-to-r from-primary/10 to-primary/5 border-primary/20",children:o.jsx(Z,{className:"py-4",children:o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsxs("div",{className:"flex-1",children:[o.jsx("p",{className:"text-sm font-medium",children:"ð¡ Pro tip: Sign in to save your meeting history!"}),o.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Track all your meetings and access team presets"})]}),o.jsx(z,{asChild:!0,size:"sm",variant:"default",children:o.jsx(de,{to:"/auth",children:"Sign Up Free"})})]})})}),o.jsx(J,{className:"mb-6 shadow-lg border-2",children:o.jsx(Z,{className:"pt-8 pb-8",children:o.jsxs("div",{className:"text-center space-y-6",children:[o.jsx("div",{className:"text-7xl md:text-8xl font-bold font-mono tracking-tight",children:Te(U)}),o.jsxs("div",{children:[o.jsxs("div",{className:"text-5xl md:text-6xl font-bold text-destructive mb-2",children:["$",Q.toFixed(2)]}),o.jsxs("p",{className:"text-muted-foreground",children:["$",Ye.toFixed(2),"/min"]})]}),o.jsx("div",{className:"flex gap-3 justify-center flex-wrap",children:N?o.jsxs(o.Fragment,{children:[o.jsxs(z,{size:"lg",variant:"secondary",onClick:W,className:"h-12 px-8",children:[o.jsx(h7,{className:"mr-2 h-5 w-5"})," ",M?"Resume":"Pause"]}),o.jsxs(z,{size:"lg",variant:"destructive",onClick:ee,className:"h-12 px-8",children:[o.jsx(y7,{className:"mr-2 h-5 w-5"})," End Meeting"]})]}):o.jsxs(z,{size:"lg",onClick:pe,className:"h-12 px-8",children:[o.jsx(m7,{className:"mr-2 h-5 w-5"})," Start Meeting"]})})]})})}),a&&l>0&&o.jsxs(J,{className:"mb-6 shadow-card",children:[o.jsxs(Ee,{children:[o.jsxs(Se,{children:["Meeting Cost vs ",r&&d?"Project Budget":"Project Value"]}),r&&d&&o.jsxs($r,{children:["Tracking against: ",d.name,d.client_name&&` (${d.client_name})`]})]}),o.jsxs(Z,{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsxs("div",{className:"flex justify-between mb-2",children:[o.jsx("span",{className:"text-sm text-muted-foreground",children:"Budget Consumed"}),o.jsxs("span",{className:"text-2xl font-bold",children:[at.toFixed(1),"%"]})]}),o.jsx(eS,{value:Math.min(at,100),className:Br()})]}),o.jsxs("p",{className:"text-sm",children:["This meeting is"," ",o.jsxs("span",{className:"font-bold text-lg",children:[at.toFixed(1),"%"]}
441)," ","of your $",l.toLocaleString()," project"]}),at>=20&&o.jsx("div",{className:"p-3 bg-destructive/10 border border-destructive rounded-lg",children:o.jsx("p",{className:"text-sm text-destructive font-medium",children:"â ï¸ This meeting is consuming significant project budget"})})]})]}),N&&o.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[o.jsx(J,{className:"shadow-card",children:o.jsxs(Z,{className:"pt-6",children:[o.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Cost per Attendee"}),o.jsxs("p",{className:"text-2xl font-bold",children:["$",(h?Q/x:Q/Math.max(p.length,1)).toFixed(2)]})]})}),o.jsx(J,{className:"shadow-card",children:o.jsxs(Z,{className:"pt-6",children:[o.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Productive Hours Lost"}),o.jsxs("p",{className:"text-2xl font-bold",children:[(U/3600).toFixed(1)," hrs"]})]})}),o.jsx(J,{className:"shadow-card",children:o.jsxs(Z,{className:"pt-6",children:[o.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Annual Cost (if weekly)"}),o.jsxs("p",{className:"text-2xl font-bold",children:["$",(Q*52).toLocaleString()]})]})})]})]}),o.jsx(qu,{open:X,onOpenChange:ae,children:o.jsxs(AA,{children:[o.jsxs(cA,{children:[o.jsx(uA,{children:"ð Save Your Meeting History"}),o.jsx(dA,{children:"Create a free account to unlock meeting tracking and upgrade to Pro for advanced features!"})]}),o.jsxs("div",{className:"space-y-4 pt-4",children:[o.jsxs("div",{className:"bg-muted/50 rounded-lg p-4 space-y-2",children:[o.jsx("p",{className:"text-sm font-medium",children:"â Free Account Includes:"}),o.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[o.jsx("li",{children:"⢠Save meeting history"}),o.jsx("li",{children:"⢠Track costs over time"}),o.jsx("li",{children:"⢠Basic analytics"})]})]}),o.jsxs("div",{className:"bg-gradient-to-r from-primary/10 to-primary/5 rounded-lg p-4 space-y-2 border border-primary/20",children:[o.jsx("p",{className:"text-sm font-medium",children:"ð Pro Features:"}),o.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[o.jsx("li",{children:"⢠Unlimited meeting history"}),o.jsx("li",{children:"⢠Team presets & templates"}),o.jsx("li",{children:"⢠Advanced analytics & insights"}),o.jsx("li",{children:"⢠Export reports (PDF/Excel)"})]})]}),o.jsxs("div",{className:"flex flex-col gap-3",children:[o.jsx(z,{asChild:!0,size:"lg",children:o.jsx(de,{to:"/auth",children:"Create Free Account"})}),o.jsx(z,{asChild:!0,variant:"outline",size:"lg",children:o.jsx(de,{to:"/pricing",children:"View Pro Features"})}),o.jsx(z,{variant:"ghost",onClick:V,children:"Maybe Later"})]})]})]})})]})};/*! 442 * html2canvas 1.4.1 <https://html2canvas.hertzen.com> 443 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com> 444 * Released under MIT License 445 *//*! ***************************************************************************** 446Copyright (c) Microsoft Corporation. 447 448Permission to use, copy, modify, and/or distribute this software for any 449purpose with or without fee is hereby granted. 450 451THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 452REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 453AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 454INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 455LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 456OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 457PERFORMANCE OF THIS SOFTWARE. 458***************************************************************************** */var n1=function(e,t){return n1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},n1(e,t)};function Xi(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n1(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var i1=function(){return i1=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},i1.apply(this,arguments)};function Vr(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(u){try{c(n.next(u))}catch(d){s(d)}}function A(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?a(u.value):i(u.value).then(l,A)}c((n=n.apply(e,[])).next())})}function Ur(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(c){return function(u){return A([c,u])}}function A(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(u){c=[6,u],i=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function bm(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||t)}var vs=function(){function e(t,r,n,i){this.left=t,this.top=r,this.width=n,this.height=i}return e.prototype.add=function(t,r,n,i){return new e(this.left+t,this.top+r,this.width+n,this.height+i)},e.fromClientRect=function(t,r){return new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height)},e.fromDOMRectList=function(t,r){var n=Array.from(r).find(function(i){return i.width!==0});return n?new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height):e.EMPTY}
vendor: 3,418 bytes, line 458
458,e.EMPTY=new e(0,0,0,0),e}(),Yx=function(e,t){return vs.fromClientRect(e,t.getBoundingClientRect())},tse=function(e){var t=e.body,r=e.documentElement;if(!t||!r)throw new Error("Unable to get document size");var n=Math.max(Math.max(t.scrollWidth,r.scrollWidth),Math.max(t.offsetWidth,r.offsetWidth),Math.max(t.clientWidth,r.clientWidth)),i=Math.max(Math.max(t.scrollHeight,r.scrollHeight),Math.max(t.offsetHeight,r.offsetHeight),Math.max(t.clientHeight,r.clientHeight));return new vs(0,0,n,i)},Xx=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=e.charCodeAt(r++);(a&64512)===56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),r--)}else t.push(i)}return t},Gt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var n=[],i=-1,a="";++i<r;){var s=e[i];s<=65535?n.push(s):(s-=65536,n.push((s>>10)+55296,s%1024+56320)),(i+1===r||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},MF="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rse=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Bm=0;Bm<MF.length;Bm++)rse[MF.charCodeAt(Bm)]=Bm;var RF="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ef=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Cm=0;Cm<RF.length;Cm++)ef[RF.charCodeAt(Cm)]=Cm;var nse=function(e){var t=e.length*.75,r=e.length,n,i=0,a,s,l,A;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),u=Array.isArray(c)?c:new Uint8Array(c);for(n=0;n<r;n+=4)a=ef[e.charCodeAt(n)],s=ef[e.charCodeAt(n+1)],l=ef[e.charCodeAt(n+2)],A=ef[e.charCodeAt(n+3)],u[i++]=a<<2|s>>4,u[i++]=(s&15)<<4|l>>2,u[i++]=(l&3)<<6|A&63;return c},ise=function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r.push(e[n+1]<<8|e[n]);return r},ase=function(e){for(var t=e.length,r=[],n=0;n<t;n+=4)r.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return r},Il=5,rS=11,ub=2,sse=rS-Il,VH=65536>>Il,ose=1<<Il,db=ose-1,lse=1024>>Il,Ase=VH+lse,cse=Ase,use=32,dse=cse+use,fse=65536>>rS,hse=1<<sse,pse=hse-1,DF=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},mse=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},gse=function(e,t){var r=nse(e),n=Array.isArray(r)?ase(r):new Uint32Array(r),i=Array.isArray(r)?ise(r):new Uint16Array(r),a=24,s=DF(i,a/2,n[4]/2),l=n[5]===2?DF(i,(a+n[4])/2):mse(n,Math.ceil((a+n[4])/4));return new vse(n[0],n[1],n[2],n[3],s,l)},vse=function(){function e(t,r,n,i,a,s){this.initialValue=t,this.errorValue=r,this.highStart=n,this.highValueIndex=i,this.index=a,this.data=s}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>Il],r=(r<<ub)+(t&db),this.data[r];if(t<=65535)return r=this.index[VH+(t-55296>>Il)],r=(r<<ub)+(t&db),this.data[r];if(t<this.highStart)return r=dse-fse+(t>>rS),r=this.index[r],r+=t>>Il&pse,r=this.index[r],r=(r<<ub)+(t&db),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),LF="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yse=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var jm=0;jm<LF.length;jm++)yse[LF.charCodeAt(jm)]=jm;var xse="
vendor: 5,502 bytes, line 458
458KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCI
vendor: 47,388 bytes, line 458
458IIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",
vendor: 3,185 bytes, line 458
458$F=50,wse=1,WH=2,GH=3,bse=4,Bse=5,HF=7,zH=8,KF=9,Ao=10,a1=11,VF=12,s1=13,Cse=14,tf=15,o1=16,_m=17,Ed=18,jse=19,WF=20,l1=21,Sd=22,fb=23,PA=24,Cn=25,rf=26,nf=27,kA=28,_se=29,fl=30,Ese=31,Em=32,Sm=33,A1=34,c1=35,u1=36,dh=37,d1=38,jg=39,_g=40,hb=41,qH=42,Sse=43,Nse=[9001,65288],YH="!",Je="Ã",Nm="÷",f1=gse(xse),Ra=[fl,u1],h1=[wse,WH,GH,Bse],XH=[Ao,zH],GF=[nf,rf],Ose=h1.concat(XH),zF=[d1,jg,_g,A1,c1],Tse=[tf,s1],Fse=function(e,t){t===void 0&&(t="strict");var r=[],n=[],i=[];return e.forEach(function(a,s){var l=f1.get(a);if(l>$F?(i.push(!0),l-=$F):i.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return n.push(s),r.push(o1);if(l===bse||l===a1){if(s===0)return n.push(s),r.push(fl);var A=r[s-1];return Ose.indexOf(A)===-1?(n.push(n[s-1]),r.push(A)):(n.push(s),r.push(fl))}if(n.push(s),l===Ese)return r.push(t==="strict"?l1:dh);if(l===qH||l===_se)return r.push(fl);if(l===Sse)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(dh):r.push(fl);r.push(l)}),[n,r,i]},pb=function(e,t,r,n){var i=n[r];if(Array.isArray(e)?e.indexOf(i)!==-1:e===i)for(var a=r;a<=n.length;){a++;var s=n[a];if(s===t)return!0;if(s!==Ao)break}if(i===Ao)for(var a=r;a>0;){a--;var l=n[a];if(Array.isArray(e)?e.indexOf(l)!==-1:e===l)for(var A=r;A<=n.length;){A++;var s=n[A];if(s===t)return!0;if(s!==Ao)break}if(l!==Ao)break}return!1},qF=function(e,t){for(var r=e;r>=0;){var n=t[r];if(n===Ao)r--;else return n}return 0},Pse=function(e,t,r,n,i){if(r[n]===0)return Je;var a=n-1;if(Array.isArray(i)&&i[a]===!0)return Je;var s=a-1,l=a+1,A=t[a],c=s>=0?t[s]:0,u=t[l];if(A===WH&&u===GH)return Je;if(h1.indexOf(A)!==-1)return YH;if(h1.indexOf(u)!==-1||XH.indexOf(u)!==-1)return Je;if(qF(a,t)===zH)return Nm;if(f1.get(e[a])===a1||(A===Em||A===Sm)&&f1.get(e[l])===a1||A===HF||u===HF||A===KF||[Ao,s1,tf].indexOf(A)===-1&&u===KF||[_m,Ed,jse,PA,kA].indexOf(u)!==-1||qF(a,t)===Sd||pb(fb,Sd,a,t)||pb([_m,Ed],l1,a,t)||pb(VF,VF,a,t))return Je;if(A===Ao)return Nm;if(A===fb||u===fb)return Je;if(u===o1||A===o1)return Nm;if([s1,tf,l1].indexOf(u)!==-1||A===Cse||c===u1&&Tse.indexOf(A)!==-1||A===kA&&u===u1||u===WF||Ra.indexOf(u)!==-1&&A===Cn||Ra.indexOf(A)!==-1&&u===Cn||A===nf&&[dh,Em,Sm].indexOf(u)!==-1||[dh,Em,Sm].indexOf(A)!==-1&&u===rf||Ra.indexOf(A)!==-1&&GF.indexOf(u)!==-1||GF.indexOf(A)!==-1&&Ra.indexOf(u)!==-1||[nf,rf].indexOf(A)!==-1&&(u===Cn||[Sd,tf].indexOf(u)!==-1&&t[l+1]===Cn)||[Sd,tf].indexOf(A)!==-1&&u===Cn||A===Cn&&[Cn,kA,PA].indexOf(u)!==-1)return Je;if([Cn,kA,PA,_m,Ed].indexOf(u)!==-1)for(var d=a;d>=0;){var f=t[d];if(f===Cn)return Je;if([kA,PA].indexOf(f)!==-1)d--;else break}if([nf,rf].indexOf(u)!==-1)for(var d=[_m,Ed].indexOf(A)!==-1?s:a;d>=0;){var f=t[d];if(f===Cn)return Je;if([kA,PA].indexOf(f)!==-1)d--;else break}if(d1===A&&[d1,jg,A1,c1].indexOf(u)!==-1||[jg,A1].indexOf(A)!==-1&&[jg,_g].indexOf(u)!==-1||[_g,c1].indexOf(A)!==-1&&u===_g||zF.indexOf(A)!==-1&&[WF,rf].indexOf(u)!==-1||zF.indexOf(u)!==-1&&A===nf||Ra.indexOf(A)!==-1&&Ra.indexOf(u)!==-1||A===PA&&Ra.indexOf(u)!==-1||Ra.concat(Cn).indexOf(A)!==-1&&u===Sd&&Nse.indexOf(e[l])===-1||Ra.concat(Cn).indexOf(u)!==-1&&A===Ed)return Je;if(A===hb&&u===hb){for(var h=r[a],m=1;h>0&&(h--,t[h]===hb);)m++;
vendor: 15,662 bytes, line 458
458if(m%2!==0)return Je}return A===Em&&u===Sm?Je:Nm},kse=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var r=Fse(e,t.lineBreak),n=r[0],i=r[1],a=r[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(i=i.map(function(l){return[Cn,fl,qH].indexOf(l)!==-1?dh:l}));var s=t.wordBreak==="keep-all"?a.map(function(l,A){return l&&e[A]>=19968&&e[A]<=40959}):void 0;return[n,i,s]},Ise=function(){function e(t,r,n,i){this.codePoints=t,this.required=r===YH,this.start=n,this.end=i}return e.prototype.slice=function(){return Gt.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Use=function(e,t){var r=Xx(e),n=kse(r,t),i=n[0],a=n[1],s=n[2],l=r.length,A=0,c=0;return{next:function(){if(c>=l)return{done:!0,value:null};for(var u=Je;c<l&&(u=Pse(r,a,i,++c,s))===Je;);if(u!==Je||c===l){var d=new Ise(r,u,A,c);return A=c,{value:d,done:!1}}return{done:!0,value:null}}}},Qse=1,Mse=2,wp=4,YF=8,Ev=10,XF=47,bf=92,Rse=9,Dse=32,Om=34,Nd=61,Lse=35,$se=36,Hse=37,Tm=39,Fm=40,Od=41,Kse=95,cn=45,Vse=33,Wse=60,Gse=62,zse=64,qse=91,Yse=93,Xse=61,Jse=123,Pm=63,Zse=125,JF=124,eoe=126,toe=128,ZF=65533,mb=42,yl=43,roe=44,noe=58,ioe=59,fh=46,aoe=0,soe=8,ooe=11,loe=14,Aoe=31,coe=127,ra=-1,JH=48,ZH=97,e3=101,uoe=102,doe=117,foe=122,t3=65,r3=69,n3=70,hoe=85,poe=90,Mr=function(e){return e>=JH&&e<=57},moe=function(e){return e>=55296&&e<=57343},IA=function(e){return Mr(e)||e>=t3&&e<=n3||e>=ZH&&e<=uoe},goe=function(e){return e>=ZH&&e<=foe},voe=function(e){return e>=t3&&e<=poe},yoe=function(e){return goe(e)||voe(e)},xoe=function(e){return e>=toe},km=function(e){return e===Ev||e===Rse||e===Dse},Sv=function(e){return yoe(e)||xoe(e)||e===Kse},eP=function(e){return Sv(e)||Mr(e)||e===cn},woe=function(e){return e>=aoe&&e<=soe||e===ooe||e>=loe&&e<=Aoe||e===coe},Ws=function(e,t){return e!==bf?!1:t!==Ev},Im=function(e,t,r){return e===cn?Sv(t)||Ws(t,r):Sv(e)?!0:!!(e===bf&&Ws(e,t))},gb=function(e,t,r){return e===yl||e===cn?Mr(t)?!0:t===fh&&Mr(r):Mr(e===fh?t:e)},boe=function(e){var t=0,r=1;(e[t]===yl||e[t]===cn)&&(e[t]===cn&&(r=-1),t++);for(var n=[];Mr(e[t]);)n.push(e[t++]);var i=n.length?parseInt(Gt.apply(void 0,n),10):0;e[t]===fh&&t++;for(var a=[];Mr(e[t]);)a.push(e[t++]);var s=a.length,l=s?parseInt(Gt.apply(void 0,a),10):0;(e[t]===r3||e[t]===e3)&&t++;var A=1;(e[t]===yl||e[t]===cn)&&(e[t]===cn&&(A=-1),t++);for(var c=[];Mr(e[t]);)c.push(e[t++]);var u=c.length?parseInt(Gt.apply(void 0,c),10):0;return r*(i+l*Math.pow(10,-s))*Math.pow(10,A*u)},Boe={type:2},Coe={type:3},joe={type:4},_oe={type:13},Eoe={type:8},Soe={type:21},Noe={type:9},Ooe={type:10},Toe={type:11},Foe={type:12},Poe={type:14},Um={type:23},koe={type:1},Ioe={type:25},Uoe={type:24},Qoe={type:26},Moe={type:27},Roe={type:28},Doe={type:29},Loe={type:31},p1={type:32},i3=function(){function e(){this._value=[]}return e.prototype.write=function(t){this._value=this._value.concat(Xx(t))},e.prototype.read=function(){for(var t=[],r=this.consumeToken();r!==p1;)t.push(r),r=this.consumeToken();return t},e.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case Om:return this.consumeStringToken(Om);case Lse:var r=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(eP(r)||Ws(n,i)){var a=Im(r,n,i)?Mse:Qse,s=this.consumeName();return{type:5,value:s,flags:a}}break;case $se:if(this.peekCodePoint(0)===Nd)return this.consumeCodePoint(),_oe;break;case Tm:return this.consumeStringToken(Tm);case Fm:return Boe;case Od:return Coe;case mb:if(this.peekCodePoint(0)===Nd)return this.consumeCodePoint(),Poe;break;case yl:if(gb(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case roe:return joe;case cn:var l=t,A=this.peekCodePoint(0),c=this.peekCodePoint(1);if(gb(l,A,c))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Im(l,A,c))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(A===cn&&c===Gse)return this.consumeCodePoint(),this.consumeCodePoint(),Uoe;break;case fh:if(gb(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case XF:if(this.peekCodePoint(0)===mb)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===mb&&(u=this.consumeCodePoint(),u===XF))return this.consumeToken();if(u===ra)return this.consumeToken()}break;case noe:return Qoe;case ioe:return Moe;case Wse:if(this.peekCodePoint(0)===Vse&&this.peekCodePoint(1)===cn&&this.peekCodePoint(2)===cn)return this.consumeCodePoint(),this.consumeCodePoint(),Ioe;break;case zse:var d=this.peekCodePoint(0),f=this.peekCodePoint(1),h=this.peekCodePoint(2);if(Im(d,f,h)){var s=this.consumeName();return{type:7,value:s}}break;case qse:return Roe;case bf:if(Ws(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case Yse:return Doe;case Xse:if(this.peekCodePoint(0)===Nd)return this.consumeCodePoint(),Eoe;break;case Jse:return Toe;case Zse:return Foe;case doe:case hoe:var m=this.peekCodePoint(0),p=this.peekCodePoint(1);return m===yl&&(IA(p)||p===Pm)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case JF:if(this.peekCodePoint(0)===Nd)return this.consumeCodePoint(),Noe;if(this.peekCodePoint(0)===JF)return this.consumeCodePoint(),Soe;break;case eoe:if(this.peekCodePoint(0)===Nd)return this.consumeCodePoint(),Ooe;break;case ra:return p1}return km(t)?(this.consumeWhiteSpace(),Loe):Mr(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):Sv(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:Gt(t)}},e.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},e.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},e.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},e.prototype.consumeUnicodeRangeToken=function(){for(var t=[],r=this.consumeCodePoint();IA(r)&&t.length<6;)t.push(r),r=this.consumeCodePoint();for(var n=!1;r===Pm&&t.length<6;)t.push(r),r=this.consumeCodePoint(),n=!0;if(n){var i=parseInt(Gt.apply(void 0,t.map(function(A){return A===Pm?JH:A})),16),a=parseInt(Gt.apply(void 0,t.map(function(A){return A===Pm?n3:A})),16);return{type:30,start:i,end:a}}var s=parseInt(Gt.apply(void 0,t),16);if(this.peekCodePoint(0)===cn&&IA(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var l=[];IA(r)&&l.length<6;)l.push(r),r=this.consumeCodePoint();var a=parseInt(Gt.apply(void 0,l),16);return{type:30,start:s,end:a}}else return{type:30,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===Fm?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Fm?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},e.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ra)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===Tm||r===Om){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ra||this.peekCodePoint(0)===Od)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Um)}for(;;){var i=this.consumeCodePoint();if(i===ra||i===Od)return{type:22,value:Gt.apply(void 0,t)};if(km(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ra||this.peekCodePoint(0)===Od?(this.consumeCodePoint(),{type:22,value:Gt.apply(void 0,t)}):(this.consumeBadUrlRemnants(),Um);if(i===Om||i===Tm||i===Fm||woe(i))return this.consumeBadUrlRemnants(),Um;if(i===bf)if(Ws(i,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Um;else t.push(i)}},e.prototype.consumeWhiteSpace=function(){for(;km(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Od||t===ra)return;Ws(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(t){for(var r=5e4,n="";t>0;){var i=Math.min(r,t);n+=Gt.apply(void 0,this._value.splice(0,i)),t-=i}return this._value.shift(),n},e.prototype.consumeStringToken=function(t){var r="",n=0;do{var i=this._value[n];if(i===ra||i===void 0||i===t)return r+=this.consumeStringSlice(n),{type:0,value:r};if(i===Ev)return this._value.splice(0,n),koe;if(i===bf){var a=this._value[n+1];a!==ra&&a!==void 0&&(a===Ev?(r+=this.consumeStringSlice(n),n=-1,this._value.shift()):Ws(i,a)&&(r+=this.consumeStringSlice(n),r+=Gt(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},e.prototype.consumeNumber=function(){var t=[],r=wp,n=this.peekCodePoint(0);for((n===yl||n===cn)&&t.push(this.consumeCodePoint());Mr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(n===fh&&Mr(i))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=YF;Mr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),i=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((n===r3||n===e3)&&((i===yl||i===cn)&&Mr(a)||Mr(i)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=YF;Mr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[boe(t),r]},e.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),r=t[0],n=t[1],i=this.peekCodePoint(0),a=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Im(i,a,s)){var l=this.consumeName();return{type:15,number:r,flags:n,unit:l}}return i===Hse?(this.consumeCodePoint(),{type:16,number:r,flags:n}):{type:17,number:r,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(IA(t)){for(var r=Gt(t);IA(this.peekCodePoint(0))&&r.length<6;)r+=Gt(this.consumeCodePoint());km(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(r,16);return n===0||moe(n)||n>1114111?ZF:n}return t===ra?ZF:t},e.prototype.consumeName=function(){for(var t="";;){var r=this.consumeCodePoint();if(eP(r))t+=Gt(r);else if(Ws(r,this.peekCodePoint(0)))t+=Gt(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),t}},e}(),a3=function(){function e(t){this._tokens=t}return e.create=function(t){var r=new i3;return r.write(t),new e(r.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var r=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var t=[];;){var r=this.consumeComponentValue();if(r.type===32)return t;t.push(r),t.push()}},e.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},e.prototype.consumeSimpleBlock=function(t){for(var r={type:t,values:[]},n=this.consumeToken();;){if(n.type===32||Hoe(n,t))return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(t){for(var r={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?p1:t},e.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},e}(),bp=function(e){return e.type===15},Ju=function(e){return e.type===17},yt=function(e){return e.type===20},$oe=function(e){return e.type===0},m1=function(e,t){return yt(e)&&e.value===t},s3=function(e){return e.type!==31},uu=function(e){return e.type!==31&&e.type!==4},Ta=function(e){var t=[],r=[];return e.forEach(function(n){if(n.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(r),r=[];return}n.type!==31&&r.push(n)}),r.length&&t.push(r),t},Hoe=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},ko=function(e){return e.type===17||e.type===15},tr=function(e){return e.type===16||ko(e)},o3=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Sr={type:17,number:0,flags:wp},nS={type:16,number:50,flags:wp},co={type:16,number:100,flags:wp},af=function(e,t,r){var n=e[0],i=e[1];return[Ct(n,t),Ct(typeof i<"u"?i:n,r)]},Ct=function(e,t){if(e.type===16)return e.number/100*t;if(bp(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},l3="deg",A3="grad",c3="rad",u3="turn",Jx={name:"angle",parse:function(e,t){if(t.type===15)switch(t.unit){case l3:return Math.PI*t.number/180;case A3:return Math.PI/200*t.number;case c3:return t.number;case u3:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},d3=function(e){return e.type===15&&(e.unit===l3||e.unit===A3||e.unit===c3||e.unit===u3)},f3=function(e){var t=e.filter(yt).map(function(r){return r.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Sr,Sr];case"to top":case"bottom":return ai(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Sr,co];case"to right":case"left":return ai(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[co,co];case"to bottom":case"top":return ai(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[co,Sr];case"to left":case"right":return ai(270)}return 0},ai=function(e){return Math.PI*e/180},Co={name:"color",parse:function(e,t){if(t.type===18){var r=Koe[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return r(e,t.values)}if(t.type===5){if(t.value.length===3){var n=t.value.substring(0,1),i=t.value.substring(1,2),a=t.value.substring(2,3);return uo(parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(t.value.length===4){var n=t.value.substring(0,1),i=t.value.substring(1,2),a=t.value.substring(2,3),s=t.value.substring(3,4);return uo(parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(s+s,16)/255)}if(t.value.length===6){var n=t.value.substring(0,2),i=t.value.substring(2,4),a=t.value.substring(4,6);return uo(parseInt(n,16),parseInt(i,16),parseInt(a,16),1)}if(t.value.length===8){var n=t.value.substring(0,2),i=t.value.substring(2,4),a=t.value.substring(4,6),s=t.value.substring(6,8);return uo(parseInt(n,16),parseInt(i,16),parseInt(a,16),parseInt(s,16)/255)}}if(t.type===20){var l=is[t.value.toUpperCase()];if(typeof l<"u")return l}return is.TRANSPARENT}},jo=function(e){return(255&e)===0},mr=function(e){var t=255&e,r=255&e>>8,n=255&e>>16,i=255&e>>24;return t<255?"rgba("+i+","+n+","+r+","+t/255+")":"rgb("+i+","+n+","+r+")"},uo=function(e,t,r,n){return(e<<24|t<<16|r<<8|Math.round(n*255)<<0)>>>0},tP=function(e,t){if(e.type===17)return e.number;if(e.type===16){var r=t===3?1:255;return t===3?e.number/100*r:Math.round(e.number/100*r)}return 0},rP=function(e,t){var r=t.filter(uu);if(r.length===3){var n=r.map(tP),i=n[0],a=n[1],s=n[2];return uo(i,a,s,1)}if(r.length===4){var l=r.map(tP),i=l[0],a=l[1],s=l[2],A=l[3];return uo(i,a,s,A)}return 0};function vb(e,t,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(t-e)*r*6+e:r<1/2?t:r<2/3?(t-e)*6*(2/3-r)+e:e}var nP=function(e,t){var r=t.filter(uu),n=r[0],i=r[1],a=r[2],s=r[3],l=(n.type===17?ai(n.number):Jx.parse(e,n))/(Math.PI*2),A=tr(i)?i.number/100:0,
vendor: 11,558 bytes, line 458
458c=tr(a)?a.number/100:0,u=typeof s<"u"&&tr(s)?Ct(s,1):1;if(A===0)return uo(c*255,c*255,c*255,1);var d=c<=.5?c*(A+1):c+A-c*A,f=c*2-d,h=vb(f,d,l+1/3),m=vb(f,d,l),p=vb(f,d,l-1/3);return uo(h*255,m*255,p*255,u)},Koe={hsl:nP,hsla:nP,rgb:rP,rgba:rP},Bf=function(e,t){return Co.parse(e,a3.create(t).parseComponentValue())},is={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Voe={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(yt(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Woe={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Zx=function(e,t){var r=Co.parse(e,t[0]),n=t[1];return n&&tr(n)?{color:r,stop:n}:{color:r,stop:null}},iP=function(e,t){var r=e[0],n=e[e.length-1];r.stop===null&&(r.stop=Sr),n.stop===null&&(n.stop=co);for(var i=[],a=0,s=0;s<e.length;s++){var l=e[s].stop;if(l!==null){var A=Ct(l,t);A>a?i.push(A):i.push(a),a=A}else i.push(null)}for(var c=null,s=0;s<i.length;s++){var u=i[s];if(u===null)c===null&&(c=s);else if(c!==null){for(var d=s-c,f=i[c-1],h=(u-f)/(d+1),m=1;m<=d;m++)i[c+m-1]=h*m;c=null}}return e.map(function(p,v){var x=p.color;return{color:x,stop:Math.max(Math.min(1,i[v]/t),0)}})},Goe=function(e,t,r){var n=t/2,i=r/2,a=Ct(e[0],t)-n,s=i-Ct(e[1],r);return(Math.atan2(s,a)+Math.PI*2)%(Math.PI*2)},zoe=function(e,t,r){var n=typeof e=="number"?e:Goe(e,t,r),i=Math.abs(t*Math.sin(n))+Math.abs(r*Math.cos(n)),a=t/2,s=r/2,l=i/2,A=Math.sin(n-Math.PI/2)*l,c=Math.cos(n-Math.PI/2)*l;return[i,a-c,a+c,s-A,s+A]},ji=function(e,t){return Math.sqrt(e*e+t*t)},aP=function(e,t,r,n,i){var a=[[0,0],[0,t],[e,0],[e,t]];return a.reduce(function(s,l){var A=l[0],c=l[1],u=ji(r-A,n-c);return(i?u<s.optimumDistance:u>s.optimumDistance)?{optimumCorner:l,optimumDistance:u}:s},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},qoe=function(e,t,r,n,i){var a=0,s=0;switch(e.size){case 0:e.shape===0?a=s=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(r),Math.abs(r-i)):e.shape===1&&(a=Math.min(Math.abs(t),Math.abs(t-n)),s=Math.min(Math.abs(r),Math.abs(r-i)));break;case 2:if(e.shape===0)a=s=Math.min(ji(t,r),ji(t,r-i),ji(t-n,r),ji(t-n,r-i));else if(e.shape===1){var l=Math.min(Math.abs(r),Math.abs(r-i))/Math.min(Math.abs(t),Math.abs(t-n)),A=aP(n,i,t,r,!0),c=A[0],u=A[1];a=ji(c-t,(u-r)/l),s=l*a}break;case 1:e.shape===0?a=s=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(r),Math.abs(r-i)):e.shape===1&&(a=Math.max(Math.abs(t),Math.abs(t-n)),s=Math.max(Math.abs(r),Math.abs(r-i)));break;case 3:if(e.shape===0)a=s=Math.max(ji(t,r),ji(t,r-i),ji(t-n,r),ji(t-n,r-i));else if(e.shape===1){var l=Math.max(Math.abs(r),Math.abs(r-i))/Math.max(Math.abs(t),Math.abs(t-n)),d=aP(n,i,t,r,!1),c=d[0],u=d[1];a=ji(c-t,(u-r)/l),s=l*a}break}return Array.isArray(e.size)&&(a=Ct(e.size[0],n),s=e.size.length===2?Ct(e.size[1],i):a),[a,s]},Yoe=function(e,t){var r=ai(180),n=[];return Ta(t).forEach(function(i,a){if(a===0){var s=i[0];if(s.type===20&&s.value==="to"){r=f3(i);return}else if(d3(s)){r=Jx.parse(e,s);return}}var l=Zx(e,i);n.push(l)}),{angle:r,stops:n,type:1}},Qm=function(e,t){var r=ai(180),n=[];return Ta(t).forEach(function(i,a){if(a===0){var s=i[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){r=f3(i);return}else if(d3(s)){r=(Jx.parse(e,s)+ai(270))%ai(360);return}}var l=Zx(e,i);n.push(l)}),{angle:r,stops:n,type:1}},Xoe=function(e,t){var r=ai(180),n=[],i=1,a=0,s=3,l=[];return Ta(t).forEach(function(A,c){var u=A[0];if(c===0){if(yt(u)&&u.value==="linear"){i=1;return}else if(yt(u)&&u.value==="radial"){i=2;return}}if(u.type===18){if(u.name==="from"){var d=Co.parse(e,u.values[0]);n.push({stop:Sr,color:d})}else if(u.name==="to"){var d=Co.parse(e,u.values[0]);n.push({stop:co,color:d})}else if(u.name==="color-stop"){var f=u.values.filter(uu);if(f.length===2){var d=Co.parse(e,f[1]),h=f[0];Ju(h)&&n.push({stop:{type:16,number:h.number*100,flags:h.flags},color:d})}}}}),i===1?{angle:(r+ai(180))%ai(360),stops:n,type:i}:{size:s,shape:a,stops:n,position:l,type:i}},h3="closest-side",p3="farthest-side",m3="closest-corner",g3="farthest-corner",v3="circle",y3="ellipse",x3="cover",w3="contain",Joe=function(e,t){var r=0,n=3,i=[],a=[];return Ta(t).forEach(function(s,l){var A=!0;if(l===0){var c=!1;A=s.reduce(function(d,f){if(c)if(yt(f))switch(f.value){case"center":return a.push(nS),d;case"top":case"left":return a.push(Sr),d;case"right":case"bottom":return a.push(co),d}else(tr(f)||ko(f))&&a.push(f);else if(yt(f))switch(f.value){case v3:return r=0,!1;case y3:return r=1,!1;case"at":return c=!0,!1;case h3:return n=0,!1;case x3:case p3:return n=1,!1;case w3:case m3:return n=2,!1;case g3:return n=3,!1}else if(ko(f)||tr(f))return Array.isArray(n)||(n=[]),n.push(f),!1;return d},A)}if(A){var u=Zx(e,s);i.push(u)}}),{size:n,shape:r,stops:i,position:a,type:2}},Mm=function(e,t){var r=0,n=3,i=[],a=[];return Ta(t).forEach(function(s,l){var A=!0;if(l===0?A=s.reduce(function(u,d){if(yt(d))switch(d.value){case"center":return a.push(nS),!1;case"top":case"left":return a.push(Sr),!1;case"right":case"bottom":return a.push(co),!1}else if(tr(d)||ko(d))return a.push(d),!1;return u},A):l===1&&(A=s.reduce(function(u,d){if(yt(d))switch(d.value){case v3:return r=0,!1;case y3:return r=1,!1;case w3:case h3:return n=0,!1;case p3:return n=1,!1;case m3:return n=2,!1;case x3:case g3:return n=3,!1}else if(ko(d)||tr(d))return Array.isArray(n)||(n=[]),n.push(d),!1;return u},A)),A){var c=Zx(e,s);i.push(c)}}),{size:n,shape:r,stops:i,position:a,type:2}},Zoe=function(e){return e.type===1},ele=function(e){return e.type===2},iS={name:"image",parse:function(e,t){if(t.type===22){var r={url:t.value,type:0};return e.cache.addImage(t.value),r}if(t.type===18){var n=b3[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function tle(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!b3[e.name])}var b3={"linear-gradient":Yoe,"-moz-linear-gradient":Qm,"-ms-linear-gradient":Qm,"-o-linear-gradient":Qm,"-webkit-linear-gradient":Qm,"radial-gradient":Joe,"-moz-radial-gradient":Mm,"-ms-radial-gradient":Mm,"-o-radial-gradient":Mm,"-webkit-radial-gradient":Mm,"-webkit-gradient":Xoe},rle={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t.filter(function(n){return uu(n)&&tle(n)}).map(function(n){return iS.parse(e,n)})}},nle={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(yt(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ile={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Ta(t).map(function(r){return r.filter(tr)}).map(o3)}},ale={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Ta(t).map(function(r){return r.filter(yt).map(function(n){return n.value}).join(" ")}).map(sle)}},sle=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},kc;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(kc||(kc={}));var ole={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Ta(t).map(function(r){return r.filter(lle)})}},lle=function(e){return yt(e)||tr(e)},ew=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ale=ew("top"),cle=ew("right"),ule=ew("bottom"),dle=ew("left"),tw=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(t,r){return o3(r.filter(tr))}}},fle=tw("top-left"),hle=tw("top-right"),ple=tw("bottom-right"),mle=tw("bottom-left"),rw=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},gle=rw("top"),vle=rw("right"),yle=rw("bottom"),xle=rw("left"),nw=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,r){return bp(r)?r.number:0}}},wle=nw("top"),ble=nw("right"),Ble=nw("bottom"),Cle=nw("left"),jle={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_le={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}}
vendor: 16,175 bytes, line 458
458,Ele={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(yt).reduce(function(r,n){return r|Sle(n.value)},0)}},Sle=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Nle={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ole={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},Nv;(function(e){e.NORMAL="normal",e.STRICT="strict"})(Nv||(Nv={}));var Tle={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return Nv.STRICT;case"normal":default:return Nv.NORMAL}}},Fle={name:"line-height",initialValue:"normal",prefix:!1,type:4},sP=function(e,t){return yt(e)&&e.value==="normal"?1.2*t:e.type===17?t*e.number:tr(e)?Ct(e,t):t},Ple={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value==="none"?null:iS.parse(e,t)}},kle={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},g1={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},iw=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Ile=iw("top"),Ule=iw("right"),Qle=iw("bottom"),Mle=iw("left"),Rle={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(yt).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Dle={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},aw=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Lle=aw("top"),$le=aw("right"),Hle=aw("bottom"),Kle=aw("left"),Vle={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Wle={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Gle={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&m1(t[0],"none")?[]:Ta(t).map(function(r){for(var n={color:is.TRANSPARENT,offsetX:Sr,offsetY:Sr,blur:Sr},i=0,a=0;a<r.length;a++){var s=r[a];ko(s)?(i===0?n.offsetX=s:i===1?n.offsetY=s:n.blur=s,i++):n.color=Co.parse(e,s)}return n})}},zle={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},qle={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(t.type===20&&t.value==="none")return null;if(t.type===18){var r=Jle[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return r(t.values)}return null}},Yle=function(e){var t=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return t.length===6?t:null},Xle=function(e){var t=e.filter(function(A){return A.type===17}).map(function(A){return A.number}),r=t[0],n=t[1];t[2],t[3];var i=t[4],a=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var s=t[12],l=t[13];return t[14],t[15],t.length===16?[r,n,i,a,s,l]:null},Jle={matrix:Yle,matrix3d:Xle},oP={type:16,number:50,flags:wp},Zle=[oP,oP],eAe={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var r=t.filter(tr);return r.length!==2?Zle:[r[0],r[1]]}},tAe={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Cf;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(Cf||(Cf={}));var rAe={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return Cf.BREAK_ALL;case"keep-all":return Cf.KEEP_ALL;case"normal":default:return Cf.NORMAL}}},nAe={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(Ju(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},B3={name:"time",parse:function(e,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},iAe={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Ju(t)?t.number:1}},aAe={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},sAe={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(yt).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},oAe={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var r=[],n=[];return t.forEach(function(i){switch(i.type){case 20:case 0:r.push(i.value);break;case 17:r.push(i.number.toString());break;case 4:n.push(r.join(" ")),r.length=0;break}}),r.length&&n.push(r.join(" ")),n.map(function(i){return i.indexOf(" ")===-1?i:"'"+i+"'"})}},lAe={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},AAe={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Ju(t))return t.number;if(yt(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},cAe={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(yt).map(function(r){return r.value})}},uAe={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},cr=function(e,t){return(e&t)!==0},dAe={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t}},fAe={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;for(var n=[],i=t.filter(s3),a=0;a<i.length;a++){var s=i[a],l=i[a+1];if(s.type===20){var A=l&&Ju(l)?l.number:1;n.push({counter:s.value,increment:A})}}return n}},hAe={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return[];for(var r=[],n=t.filter(s3),i=0;i<n.length;i++){var a=n[i],s=n[i+1];if(yt(a)&&a.value!=="none"){var l=s&&Ju(s)?s.number:0;r.push({counter:a.value,reset:l})}}return r}},pAe={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(bp).map(function(r){return B3.parse(e,r)})}},mAe={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;var n=[],i=t.filter($oe);if(i.length%2!==0)return null;for(var a=0;a<i.length;a+=2){var s=i[a].value,l=i[a+1].value;n.push({open:s,close:l})}return n}},lP=function(e,t,r){if(!e)return"";var n=e[Math.min(t,e.length-1)];return n?r?n.open:n.close:""},gAe={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&m1(t[0],"none")?[]:Ta(t).map(function(r){for(var n={color:255,offsetX:Sr,offsetY:Sr,blur:Sr,spread:Sr,inset:!1},i=0,a=0;a<r.length;a++){var s=r[a];m1(s,"inset")?n.inset=!0:ko(s)?(i===0?n.offsetX=s:i===1?n.offsetY=s:i===2?n.blur=s:n.spread=s,i++):n.color=Co.parse(e,s)}return n})}},vAe={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var r=[0,1,2],n=[];return t.filter(yt).forEach(function(i){switch(i.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),r.forEach(function(i){n.indexOf(i)===-1&&n.push(i)}),n}},yAe={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},xAe={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return bp(t)?t.number:0}},wAe=function(){function e(t,r){var n,i;this.animationDuration=ge(t,pAe,r.animationDuration),this.backgroundClip=ge(t,Voe,r.backgroundClip),this.backgroundColor=ge(t,Woe,r.backgroundColor),this.backgroundImage=ge(t,rle,r.backgroundImage),this.backgroundOrigin=ge(t,nle,r.backgroundOrigin),this.backgroundPosition=ge(t,ile,r.backgroundPosition),this.backgroundRepeat=ge(t,ale,r.backgroundRepeat),this.backgroundSize=ge(t,ole,r.backgroundSize),this.borderTopColor=ge(t,Ale,r.borderTopColor),this.borderRightColor=ge(t,cle,r.borderRightColor),this.borderBottomColor=ge(t,ule,r.borderBottomColor),this.borderLeftColor=ge(t,dle,r.borderLeftColor),this.borderTopLeftRadius=ge(t,fle,r.borderTopLeftRadius),this.borderTopRightRadius=ge(t,hle,r.borderTopRightRadius),this.borderBottomRightRadius=ge(t,ple,r.borderBottomRightRadius),this.borderBottomLeftRadius=ge(t,mle,r.borderBottomLeftRadius),this.borderTopStyle=ge(t,gle,r.borderTopStyle),this.borderRightStyle=ge(t,vle,r.borderRightStyle),this.borderBottomStyle=ge(t,yle,r.borderBottomStyle),this.borderLeftStyle=ge(t,xle,r.borderLeftStyle),this.borderTopWidth=ge(t,wle,r.borderTopWidth),this.borderRightWidth=ge(t,ble,r.borderRightWidth),this.borderBottomWidth=ge(t,Ble,r.borderBottomWidth),this.borderLeftWidth=ge(t,Cle,r.borderLeftWidth),this.boxShadow=ge(t,gAe,r.boxShadow),this.color=ge(t,jle,r.color),this.direction=ge(t,_le,r.direction),this.display=ge(t,Ele,r.display),this.float=ge(t,Nle,r.cssFloat),this.fontFamily=ge(t,oAe,r.fontFamily),this.fontSize=ge(t,lAe,r.fontSize),this.fontStyle=ge(t,uAe,r.fontStyle),this.fontVariant=ge(t,cAe,r.fontVariant),this.fontWeight=ge(t,AAe,r.fontWeight),this.letterSpacing=ge(t,Ole,r.letterSpacing),this.lineBreak=ge(t,Tle,r.lineBreak),this.lineHeight=ge(t,Fle,r.lineHeight),this.listStyleImage=ge(t,Ple,r.listStyleImage),this.listStylePosition=ge(t,kle,r.listStylePosition),this.listStyleType=ge(t,g1,r.listStyleType),this.marginTop=ge(t,Ile,r.marginTop),this.marginRight=ge(t,Ule,r.marginRight),this.marginBottom=ge(t,Qle,r.marginBottom),this.marginLeft=ge(t,Mle,r.marginLeft),this.opacity=ge(t,iAe,r.opacity);var a=ge(t,Rle,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=ge(t,Dle,r.overflowWrap),this.paddingTop=ge(t,Lle,r.paddingTop),this.paddingRight=ge(t,$le,r.paddingRight),this.paddingBottom=ge(t,Hle,r.paddingBottom),this.paddingLeft=ge(t,Kle,r.paddingLeft),this.paintOrder=ge(t,vAe,r.paintOrder),this.position=ge(t,Wle,r.position),this.textAlign=ge(t,Vle,r.textAlign),this.textDecorationColor=ge(t,aAe,(n=r.textDecorationColor)!==null&&n!==void 0?n:r.color),this.textDecorationLine=ge(t,sAe,(i=r.textDecorationLine)!==null&&i!==void 0?i:r.textDecoration),this.textShadow=ge(t,Gle,r.textShadow),this.textTransform=ge(t,zle,r.textTransform),this.transform=ge(t,qle,r.transform),this.transformOrigin=ge(t,eAe,r.transformOrigin),this.visibility=ge(t,tAe,r.visibility),this.webkitTextStrokeColor=ge(t,yAe,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=ge(t,xAe,r.webkitTextStrokeWidth),this.wordBreak=ge(t,rAe,r.wordBreak),this.zIndex=ge(t,nAe,r.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return jo(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return cr(this.display,4)||cr(this.display,33554432)||cr(this.display,268435456)||cr(this.display,536870912)||cr(this.display,67108864)||cr(this.display,134217728)},e}(),bAe=function(){function e(t,r){this.content=ge(t,dAe,r.content),this.quotes=ge(t,mAe,r.quotes)}return e}(),AP=function(){function e(t,r){this.counterIncrement=ge(t,fAe,r.counterIncrement),this.counterReset=ge(t,hAe,r.counterReset)}return e}(),ge=function(e,t,r){var n=new i3,i=r!==null&&typeof r<"u"?r.toString():t.initialValue;n.write(i);var a=new a3(n.read());switch(t.type){case 2:var s=a.parseComponentValue();return t.parse(e,yt(s)?s.value:t.initialValue);case 0:return t.parse(e,a.parseComponentValue());case 1:return t.parse(e,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(t.format){case"angle":return Jx.parse(e,a.parseComponentValue());case"color":return Co.parse(e,a.parseComponentValue());case"image":return iS.parse(e,a.parseComponentValue());case"length":var l=a.parseComponentValue();return ko(l)?l:Sr;case"length-percentage":var A=a.parseComponentValue();return tr(A)?A:Sr;case"time":return B3.parse(e,a.parseComponentValue())}break}},BAe="data-html2canvas-debug",CAe=function(e){var t=e.getAttribute(BAe);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},v1=function(e,t){var r=CAe(e);return r===1||t===r},Fa=function(){function e(t,r){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,v1(r,3))debugger;this.styles=new wAe(t,window.getComputedStyle(r,null)),w1(r)&&(this.styles.animationDuration.some(function(n){return n>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=Yx(this.context,r),v1(r,4)&&(this.flags|=16)}return e}(),jAe=
vendor: 26,159 bytes, line 458
458"AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",
458cP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 15,647 bytes, line 458
458+/",sf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Rm=0;Rm<cP.length;Rm++)sf[cP.charCodeAt(Rm)]=Rm;var _Ae=function(e){var t=e.length*.75,r=e.length,n,i=0,a,s,l,A;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),u=Array.isArray(c)?c:new Uint8Array(c);for(n=0;n<r;n+=4)a=sf[e.charCodeAt(n)],s=sf[e.charCodeAt(n+1)],l=sf[e.charCodeAt(n+2)],A=sf[e.charCodeAt(n+3)],u[i++]=a<<2|s>>4,u[i++]=(s&15)<<4|l>>2,u[i++]=(l&3)<<6|A&63;return c},EAe=function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r.push(e[n+1]<<8|e[n]);return r},SAe=function(e){for(var t=e.length,r=[],n=0;n<t;n+=4)r.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return r},Ul=5,aS=11,yb=2,NAe=aS-Ul,C3=65536>>Ul,OAe=1<<Ul,xb=OAe-1,TAe=1024>>Ul,FAe=C3+TAe,PAe=FAe,kAe=32,IAe=PAe+kAe,UAe=65536>>aS,QAe=1<<NAe,MAe=QAe-1,uP=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},RAe=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},DAe=function(e,t){var r=_Ae(e),n=Array.isArray(r)?SAe(r):new Uint32Array(r),i=Array.isArray(r)?EAe(r):new Uint16Array(r),a=24,s=uP(i,a/2,n[4]/2),l=n[5]===2?uP(i,(a+n[4])/2):RAe(n,Math.ceil((a+n[4])/4));return new LAe(n[0],n[1],n[2],n[3],s,l)},LAe=function(){function e(t,r,n,i,a,s){this.initialValue=t,this.errorValue=r,this.highStart=n,this.highValueIndex=i,this.index=a,this.data=s}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>Ul],r=(r<<yb)+(t&xb),this.data[r];if(t<=65535)return r=this.index[C3+(t-55296>>Ul)],r=(r<<yb)+(t&xb),this.data[r];if(t<this.highStart)return r=IAe-UAe+(t>>aS),r=this.index[r],r+=t>>Ul&MAe,r=this.index[r],r=(r<<yb)+(t&xb),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),dP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$Ae=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Dm=0;Dm<dP.length;Dm++)$Ae[dP.charCodeAt(Dm)]=Dm;var HAe=1,wb=2,bb=3,fP=4,hP=5,KAe=7,pP=8,Bb=9,Cb=10,mP=11,gP=12,vP=13,yP=14,jb=15,VAe=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=e.charCodeAt(r++);(a&64512)===56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),r--)}else t.push(i)}return t},WAe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var n=[],i=-1,a="";++i<r;){var s=e[i];s<=65535?n.push(s):(s-=65536,n.push((s>>10)+55296,s%1024+56320)),(i+1===r||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},GAe=DAe(jAe),Jn="Ã",_b="÷",zAe=function(e){return GAe.get(e)},qAe=function(e,t,r){var n=r-2,i=t[n],a=t[r-1],s=t[r];if(a===wb&&s===bb)return Jn;if(a===wb||a===bb||a===fP||s===wb||s===bb||s===fP)return _b;if(a===pP&&[pP,Bb,mP,gP].indexOf(s)!==-1||(a===mP||a===Bb)&&(s===Bb||s===Cb)||(a===gP||a===Cb)&&s===Cb||s===vP||s===hP||s===KAe||a===HAe)return Jn;if(a===vP&&s===yP){for(;i===hP;)i=t[--n];if(i===yP)return Jn}if(a===jb&&s===jb){for(var l=0;i===jb;)l++,i=t[--n];if(l%2===0)return Jn}return _b},YAe=function(e){var t=VAe(e),r=t.length,n=0,i=0,a=t.map(zAe);return{next:function(){if(n>=r)return{done:!0,value:null};for(var s=Jn;n<r&&(s=qAe(t,a,++n))===Jn;);if(s!==Jn||n===r){var l=WAe.apply(null,t.slice(i,n));return i=n,{value:l,done:!1}}return{done:!0,value:null}}}},XAe=function(e){for(var t=YAe(e),r=[],n;!(n=t.next()).done;)n.value&&r.push(n.value.slice());return r},JAe=function(e){var t=123;if(e.createRange){var r=e.createRange();if(r.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height=t+"px",n.style.display="block",e.body.appendChild(n),r.selectNode(n);var i=r.getBoundingClientRect(),a=Math.round(i.height);if(e.body.removeChild(n),a===t)return!0}}return!1},ZAe=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var r=e.createRange();t.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var n=t.firstChild,i=Xx(n.data).map(function(A){return Gt(A)}),a=0,s={},l=i.every(function(A,c){r.setStart(n,a),r.setEnd(n,a+A.length);var u=r.getBoundingClientRect();a+=A.length;var d=u.x>s.x||u.y>s.y;return s=u,c===0?!0:d});return e.body.removeChild(t),l},ece=function(){return typeof new Image().crossOrigin<"u"},tce=function(){return typeof new XMLHttpRequest().responseType=="string"},rce=function(e){var t=new Image,r=e.createElement("canvas"),n=r.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(t,0,0),r.toDataURL()}catch{return!1}return!0},xP=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},nce=function(e){var t=e.createElement("canvas"),r=100;t.width=r,t.height=r;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,r,r);var i=new Image,a=t.toDataURL();i.src=a;var s=y1(r,r,0,0,i);return n.fillStyle="red",n.fillRect(0,0,r,r),wP(s).then(function(l){n.drawImage(l,0,0);var A=n.getImageData(0,0,r,r).data;n.fillStyle="red",n.fillRect(0,0,r,r);var c=e.createElement("div");return c.style.backgroundImage="url("+a+")",c.style.height=r+"px",xP(A)?wP(y1(r,r,0,0,c)):Promise.reject(!1)}).then(function(l){return n.drawImage(l,0,0),xP(n.getImageData(0,0,r,r).data)}).catch(function(){return!1})},y1=function(e,t,r,n,i){var a="http://www.w3.org/2000/svg",s=document.createElementNS(a,"svg"),l=document.createElementNS(a,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",t.toString()),l.setAttributeNS(null,"width","100%"),l.setAttributeNS(null,"height","100%"),l.setAttributeNS(null,"x",r.toString()),l.setAttributeNS(null,"y",n.toString()),l.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(l),l.appendChild(i),s},wP=function(e){return new Promise(function(t,r){var n=new Image;n.onload=function(){return t(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},_r={get SUPPORT_RANGE_BOUNDS(){var e=JAe(document);return Object.defineProperty(_r,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=_r.SUPPORT_RANGE_BOUNDS&&ZAe(document);return Object.defineProperty(_r,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=rce(document);return Object.defineProperty(_r,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?nce(document):Promise.resolve(!1);return Object.defineProperty(_r,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=ece();return Object.defineProperty(_r,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=tce();return Object.defineProperty(_r,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(_r,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(_r,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},jf=function(){function e(t,r){this.text=t,this.bounds=r}return e}(),ice=function(e,t,r,n){var i=oce(t,r),a=[],s=0;return i.forEach(function(l){if(r.textDecorationLine.length||l.trim().length>0)if(_r.SUPPORT_RANGE_BOUNDS){var A=bP(n,s,l.length).getClientRects();if(A.length>1){var c=sS(l),u=0;c.forEach(function(f){a.push(new jf(f,vs.fromDOMRectList(e,bP(n,u+s,f.length).getClientRects()))),u+=f.length})}else a.push(new jf(l,vs.fromDOMRectList(e,A)))}else{var d=n.splitText(l.length);a.push(new jf(l,ace(e,n))),n=d}else _r.SUPPORT_RANGE_BOUNDS||(n=n.splitText(l.length));s+=l.length}),a},ace=function(e,t){var r=t.ownerDocument;if(r){var n=r.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var i=t.parentNode;if(i){i.replaceChild(n,t);var a=Yx(e,n);return n.firstChild&&i.replaceChild(n.firstChild,n),a}}return vs.EMPTY},bP=function(e,t,r){var n=e.ownerDocument;if(!n)throw new Error("Node has no owner document");var i=n.createRange();return i.setStart(e,t),i.setEnd(e,t+r),i},sS=function(e){if(_r.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return XAe(e)},sce=function(e,t){if(_r.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map(function(n){return n.segment})}return Ace(e,t)},oce=function(e,t){return t.letterSpacing!==0?sS(e):sce(e,t)},lce=[32,160,4961,65792,65793,4153,4241],Ace=function(e,t){for(var r=Use(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),n=[],i,a=function(){if(i.value){var s=i.value.slice(),l=Xx(s),A="";l.forEach(function(c){lce.indexOf(c)===-1?A+=Gt(c):(A.length&&n.push(A),n.push(Gt(c)),A="")}),A.length&&n.push(A)}};!(i=r.next()).done;)a();return n},cce=function(){function e(t,r,n){this.text=uce(r.data,n.textTransform),this.textBounds=ice(t,this.text,n,r)}return e}(),uce=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(dce,fce);case 2:return e.toUpperCase();default:return e}},dce=/(^|\s|:|-|\(|\))([a-z])/g,fce=function(e,t,r){return e.length>0?t+r.toUpperCase():e},j3=function(e){Xi(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.src=n.currentSrc||n.src,i.intrinsicWidth=n.naturalWidth,i.intrinsicHeight=n.naturalHeight,i.context.cache.addImage(i.src),i}return t}(Fa),_3=function(e){Xi(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.canvas=n,i.intrinsicWidth=n.width,i.intrinsicHeight=n.height,i}return t}(Fa),E3=function(e){Xi(t,e);function t(r,n){var i=e.call(this,r,n)||this,a=new XMLSerializer,s=Yx(r,n);return n.setAttribute("width",s.width+"px"),n.setAttribute("height",s.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(n)),i.intrinsicWidth=n.width.baseVal.value,i.intrinsicHeight=n.height.baseVal.value,i.context.cache.addImage(i.svg),i}return t}(Fa),S3=function(e){Xi(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.value=n.value,i}return t}(Fa),x1=function(e){Xi(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.start=n.start,i.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,i}return t}(Fa),hce=[{type:15,flags:0,unit:"px",number:3}],pce=[{type:16,flags:0,number:50}],mce=function(e){return e.width>e.height?new vs(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new vs(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},gce=function(e){var t=e.type===vce?new Array(e.value.length+1).join("â¢"):e.value;return t.length===0?e.placeholder||"":t},Ov="checkbox",Tv="radio",vce="password",BP=707406591,oS=function(e){Xi(t,e);function t(r,n){var i=e.call(this,r,n)||this;switch(i.type=n.type.toLowerCase(),i.checked=n.checked,i.value=gce(n),(i.type===Ov||i.type===Tv)&&(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=mce(i.bounds)),i.type){case Ov:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=hce;break;case Tv:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=pce;break}return i}return t}(Fa),N3=function(e){Xi(t,e);function t(r,n){var i=e.call(this,r,n)||this,a=n.options[n.selectedIndex||0];return i.value=a&&a.text||"",i}return t}(Fa),O3=function(e){Xi(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.value=n.value,i}return t}(Fa),T3=function(e){Xi(t,e);function t(r,n){var i=e.call(this,r,n)||this;i.src=n.src,i.width=parseInt(n.width,10)||0,i.height=parseInt(n.height,10)||0,i.backgroundColor=i.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){i.tree=P3(r,n.contentWindow.document.documentElement);var a=n.contentWindow.document.documentElement?Bf(r,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):is.TRANSPARENT,s=n.contentWindow.document.body?Bf(r,getComputedStyle(n.contentWindow.document.body).backgroundColor):is.TRANSPARENT;i.backgroundColor=jo(a)?jo(s)?i.styles.backgroundColor:s:a}}catch{}return i}return t}(Fa),yce=["OL","UL","MENU"],Eg=function(e,t,r,n){for(var i=t.firstChild,a=void 0;i;i=a)if(a=i.nextSibling,k3(i)&&i.data.trim().length>0)r.textNodes.push(new cce(e,i,r.styles));else if(mc(i))if(M3(i)&&i.assignedNodes)i.assignedNodes().forEach(function(l){return Eg(e,l,r,n)});else{var s=F3(e,i);s.styles.isVisible()&&(xce(i,s,n)?s.flags|=4:wce(s.styles)&&(s.flags|=2),yce.indexOf(i.tagName)!==-1&&(s.flags|=8),r.elements.push(s),i.slot,i.shadowRoot?Eg(e,i.shadowRoot,s,n):!Fv(i)&&!I3(i)&&!Pv(i)&&Eg(e,i,s,n))}},F3=function(e,t){return b1(t)?new j3(e,t):U3(t)?new _3(e,t):I3(t)?new E3(e,t):bce(t)?new S3(e,t):Bce(t)?new x1(e,t):Cce(t)?new oS(e,t):Pv(t)?new N3(e,t):Fv(t)?new O3(e,t):Q3(t)?new T3(e,t):new Fa(e,t)},P3=function(e,t){var r=F3(e,t);return r.flags|=4,Eg(e,t,r,r),r},xce=function(e,t,r){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||lS(e)&&r.styles.isTransparent()},wce=function(e){return e.isPositioned()||e.isFloating()},k3=function(e){return e.nodeType===Node.TEXT_NODE},mc=function(e){return e.nodeType===Node.ELEMENT_NODE},w1=function(e){return mc(e)&&typeof e.style<"u"&&!Sg(e)},Sg=function(e){return typeof e.className=="object"},bce=function(e){return e.tagName==="LI"},Bce=function(e){return e.tagName==="OL"},Cce=function(e){return e.tagName==="INPUT"},jce=function(e){return e.tagName==="HTML"},I3=function(e){return e.tagName==="svg"},lS=function(e){return e.tagName==="BODY"},U3=function(e){return e.tagName==="CANVAS"},CP=function(e){return e.tagName==="VIDEO"},b1=function(e){return e.tagName==="IMG"},Q3=function(e){return e.tagName==="IFRAME"},jP=function(e){return e.tagName==="STYLE"},_ce=function(e){return e.tagName==="SCRIPT"},Fv=function(e){return e.tagName==="TEXTAREA"},Pv=function(e){return e.tagName==="SELECT"},M3=function(e){return e.tagName==="SLOT"},_P=function(e){return e.tagName.indexOf("-")>0},Ece=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(t){var r=this.counters[t];return r&&r.length?r[r.length-1]:1},e.prototype.getCounterValues=function(t){var r=this.counters[t];return r||[]},e.prototype.pop=function(t){var r=this;t.forEach(function(n){return r.counters[n].pop()})},e.prototype.parse=function(t){var r=this,n=t.counterIncrement,i=t.counterReset,a=!0;n!==null&&n.forEach(function(l){var A=r.counters[l.counter];A&&l.increment!==0&&(a=!1,A.length||A.push(1),A[Math.max(0,A.length-1)]+=l.increment)});var s=[];return a&&i.forEach(function(l){var A=r.counters[l.counter];s.push(l.counter),A||(A=r.counters[l.counter]=[]),A.push(l.reset)}),s},e}(),EP={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},SP={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,9
vendor: 5,012 bytes, line 458
4580,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ
","Õ","Õ","Õ","Õ","Õ","Ô¿","Ô¾","Ô½","Ô¼","Ô»","Ôº","Ô¹","Ô¸","Ô·","Ô¶","Ôµ","Ô´","Ô³","Ô²","Ô±"]},Sce={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["×׳","×׳","×׳","×׳","×׳","×׳","×׳","×׳","×׳","×׳","ת","ש","ר","×§","צ","פ","×¢","ס","× ","×","×","×","××","××","××","××","××","×","×","×","×","×","×","×","×","×","×"]},Nce={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["áµ","á°","á¯","á´","á®","á","á¬","á«","áª","á©","á¨","á§","á¦","á¥","á¤","á³","á¢","á¡","á ","á","á","á","á²","á","á","á","á","á","á","á±","á","á","á","á","á","á","á"]},UA=function(e,t,r,n,i,a){return e<t||e>r?hh(e,i,a.length>0):n.integers.reduce(function(s,l,A){for(;e>=l;)e-=l,s+=n.values[A];return s},"")+a},R3=function(e,t,r,n){var i="";do r||e--,i=n(e)+i,e/=t;while(e*t>=t);return i},Wt=function(e,t,r,n,i){var a=r-t+1;return(e<0?"-":"")+(R3(Math.abs(e),a,n,function(s){return Gt(Math.floor(s%a)+t)})+i)},el=function(e,t,r){r===void 0&&(r=". ");var n=t.length;return R3(Math.abs(e),n,!1,function(i){return t[Math.floor(i%n)]})+r},JA=1,Ls=2,$s=4,of=8,Da=function(e,t,r,n,i,a){if(e<-9999||e>9999)return hh(e,4,i.length>0);var s=Math.abs(e),l=i;if(s===0)return t[0]+l;for(var A=0;s>0&&A<=4;A++){var c=s%10;c===0&&cr(a,JA)&&l!==""?l=t[c]+l:c>1||c===1&&A===0||c===1&&A===1&&cr(a,Ls)||c===1&&A===1&&cr(a,$s)&&e>100||c===1&&A>1&&cr(a,of)?l=t[c]+(A>0?r[A-1]:"")+l:c===1&&A>0&&(l=r[A-1]+l),s=Math.floor(s/10)}return(e<0?n:"")+l},NP="åç¾åè¬",OP="æ¾ä½°ä»è¬",TP="ãã¤ãã¹",Eb="ë§ì´ëì¤",hh=function(e,t,r){var n=r?". ":"",i=r?"ã":"",a=r?", ":"",s=r?" ":"";switch(t){case 0:return"â¢"+s;case 1:return"â¦"+s;case 2:return"â¾"+s;case 5:var l=Wt(e,48,57,!0,n);return l.length<4?"0"+l:l;case 4:return el(e,"ãä¸äºä¸åäºå
ä¸å
«ä¹",i);case 6:return UA(e,1,3999,EP,3,n).toLowerCase();case 7:return UA(e,1,3999,EP,3,n);case 8:return Wt(e,945,969,!1,n);case 9:return Wt(e,97,122,!1,n);case 10:return Wt(e,65,90,!1,n);case 11:return Wt(e,1632,1641,!0,n);case 12:case 49:return UA(e,1,9999,SP,3,n);case 35:return UA(e,1,9999,SP,3,n).toLowerCase();case 13:return Wt(e,2534,2543,!0,n);case 14:case 30:return Wt(e,6112,6121,!0,n);case 15:return el(e,"åä¸å¯
å¯è¾°å·³åæªç³é
æäº¥",i);case 16:return el(e,"ç²ä¹ä¸ä¸æå·±åºè¾å£¬ç¸",i);case 17:case 48:return Da(e,"é¶ä¸äºä¸åäºå
ä¸å
«ä¹",NP,"è² ",i,Ls|$s|of);case 47:return Da(e,"é¶å£¹è²³åèä¼é¸ææç",OP,"è² ",i,JA|Ls|$s|of);case 42:return Da(e,"é¶ä¸äºä¸åäºå
ä¸å
«ä¹",NP,"è´",i,Ls|$s|of);case 41:return Da(e,"é¶å£¹è´°åèä¼éææç",OP,"è´",i,JA|Ls|$s|of);case 26:return Da(e,"ãä¸äºä¸åäºå
ä¸å
«ä¹","åç¾åä¸",TP,i,0);case 25:return Da(e,"é¶å£±å¼ååä¼å
ä¸å
«ä¹","æ¾ç¾åä¸",TP,i,JA|Ls|$s);case 31:return Da(e,"ìì¼ì´ì¼ì¬ì¤ì¡ì¹ í구","ìë°±ì²ë§",Eb,a,JA|Ls|$s);case 33:return Da(e,"é¶ä¸äºä¸åäºå
ä¸å
«ä¹","åç¾åè¬",Eb,a,0);case 32:return Da(e,"é¶å£¹è²³ååäºå
ä¸å
«ä¹","æ¾ç¾å",Eb,a,JA|Ls|$s);case 18:return Wt(e,2406,2415,!0,n);case 20:return UA(e,1,19999,Nce,3,n);case 21:return Wt(e,2790,2799,!0,n);case 22:return Wt(e,2662,2671,!0,n);case 22:return UA(e,1,10999,Sce,3,n);case 23:return el(e,"ããããããããããããããããã¡ã¤ã¦ã¨ãªã«ã¬ãã®ã¯ã²ãµã¸ã»ã¾ã¿ãããããããããããããããã");case 24:return el(e,"ããã¯ã«ã»ã¸ã¨ã¡ãã¬ããããããããã¤ããªããããã®ãããã¾ããµããã¦ãããããã¿ããã²ããã");case 27:return Wt(e,3302,3311,!0,n);case 28:return el(e,"ã¢ã¤ã¦ã¨ãªã«ãã¯ã±ã³ãµã·ã¹ã»ã½ã¿ããããããããããããããããã ã¡ã¢ã¤ã¦ã¨ã©ãªã«ã¬ãã¯ã°ã±ã²ã³",i);case 29:return el(e,"ã¤ããããããããªãã«ã²ã¯ã«ã¨ã¿ã¬ã½ãããã©ã ã¦ã°ããªã¯ã¤ãã±ãã³ã¨ãã¢ãµãã¦ã¡ãã·ã±ãã¢ã»ã¹",i);case 34:return Wt(e,3792,3801,!0,n);case 37:return Wt(e,6160,6169,!0,n);case 38:return Wt(e,4160,4169,!0,n);case 39:return Wt(e,2918,2927,!0,n);case 40:return Wt(e,1776,1785,!0,n);case 43:return Wt(e,3046,3055,!0,n);case 44:return Wt(e,3174,3183,!0,n);case 45:return Wt(e,3664,3673,!0,n);case 46:return Wt(e,3872,3881,!0,n);case 3:default:return Wt(e,48,57,!0,n)}},D3="data-html2canvas-ignore",FP=function(){function e(t,r,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=r,this.counters=new Ece,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(t,r){var n=this,i=Oce(t,r);
vendor: 9,263 bytes, lines 458-462
458if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var a=t.defaultView.pageXOffset,s=t.defaultView.pageYOffset,l=i.contentWindow,A=l.document,c=Pce(i).then(function(){return Vr(n,void 0,void 0,function(){var u,d;return Ur(this,function(f){switch(f.label){case 0:return this.scrolledElements.forEach(Qce),l&&(l.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(l.scrollY!==r.top||l.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-r.left,l.scrollY-r.top,0,0))),u=this.options.onclone,d=this.clonedReferenceElement,typeof d>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:A.fonts&&A.fonts.ready?[4,A.fonts.ready]:[3,2];case 1:f.sent(),f.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Fce(A)]:[3,4];case 3:f.sent(),f.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(A,d)}).then(function(){return i})]:[2,i]}})})});return A.open(),A.write(Ice(document.doctype)+"<html></html>"),Uce(this.referenceElement.ownerDocument,a,s),A.replaceChild(A.adoptNode(this.documentElement),A.documentElement),A.close(),c},e.prototype.createElementClone=function(t){if(v1(t,2))debugger;if(U3(t))return this.createCanvasClone(t);if(CP(t))return this.createVideoClone(t);if(jP(t))return this.createStyleClone(t);var r=t.cloneNode(!1);return b1(r)&&(b1(t)&&t.currentSrc&&t.currentSrc!==t.src&&(r.src=t.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),_P(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(t){var r=document.createElement("html2canvascustomelement");return Sb(t.style,r),r},e.prototype.createStyleClone=function(t){try{var r=t.sheet;if(r&&r.cssRules){var n=[].slice.call(r.cssRules,0).reduce(function(a,s){return s&&typeof s.cssText=="string"?a+s.cssText:a},""),i=t.cloneNode(!1);return i.textContent=n,i}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return t.cloneNode(!1)},e.prototype.createCanvasClone=function(t){var r;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var i=t.cloneNode(!1);try{i.width=t.width,i.height=t.height;var a=t.getContext("2d"),s=i.getContext("2d");if(s)if(!this.options.allowTaint&&a)s.putImageData(a.getImageData(0,0,t.width,t.height),0,0);else{var l=(r=t.getContext("webgl2"))!==null&&r!==void 0?r:t.getContext("webgl");if(l){var A=l.getContextAttributes();(A==null?void 0:A.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}s.drawImage(t,0,0)}return i}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return i},e.prototype.createVideoClone=function(t){var r=t.ownerDocument.createElement("canvas");r.width=t.offsetWidth,r.height=t.offsetHeight;var n=r.getContext("2d");try{return n&&(n.drawImage(t,0,0,r.width,r.height),this.options.allowTaint||n.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var i=t.ownerDocument.createElement("canvas");return i.width=t.offsetWidth,i.height=t.offsetHeight,i},e.prototype.appendChildNode=function(t,r,n){(!mc(r)||!_ce(r)&&!r.hasAttribute(D3)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!mc(r)||!jP(r))&&t.appendChild(this.cloneNode(r,n))},e.prototype.cloneChildNodes=function(t,r,n){for(var i=this,a=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;a;a=a.nextSibling)if(mc(a)&&M3(a)&&typeof a.assignedNodes=="function"){var s=a.assignedNodes();s.length&&s.forEach(function(l){return i.appendChildNode(r,l,n)})}else this.appendChildNode(r,a,n)},e.prototype.cloneNode=function(t,r){if(k3(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&mc(t)&&(w1(t)||Sg(t))){var i=this.createElementClone(t);i.style.transitionProperty="none";var a=n.getComputedStyle(t),s=n.getComputedStyle(t,":before"),l=n.getComputedStyle(t,":after");this.referenceElement===t&&w1(i)&&(this.clonedReferenceElement=i),lS(i)&&Dce(i);var A=this.counters.parse(new AP(this.context,a)),c=this.resolvePseudoContent(t,i,s,_f.BEFORE);_P(t)&&(r=!0),CP(t)||this.cloneChildNodes(t,i,r),c&&i.insertBefore(c,i.firstChild);var u=this.resolvePseudoContent(t,i,l,_f.AFTER);return u&&i.appendChild(u),this.counters.pop(A),(a&&(this.options.copyStyles||Sg(t))&&!Q3(t)||r)&&Sb(a,i),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([i,t.scrollLeft,t.scrollTop]),(Fv(t)||Pv(t))&&(Fv(i)||Pv(i))&&(i.value=t.value),i}return t.cloneNode(!1)},e.prototype.resolvePseudoContent=function(t,r,n,i){var a=this;if(n){var s=n.content,l=r.ownerDocument;if(!(!l||!s||s==="none"||s==="-moz-alt-content"||n.display==="none")){this.counters.parse(new AP(this.context,n));var A=new bAe(this.context,n),c=l.createElement("html2canvaspseudoelement");Sb(n,c),A.content.forEach(function(d){if(d.type===0)c.appendChild(l.createTextNode(d.value));else if(d.type===22){var f=l.createElement("img");f.src=d.value,f.style.opacity="1",c.appendChild(f)}else if(d.type===18){if(d.name==="attr"){var h=d.values.filter(yt);h.length&&c.appendChild(l.createTextNode(t.getAttribute(h[0].value)||""))}else if(d.name==="counter"){var m=d.values.filter(uu),p=m[0],v=m[1];if(p&&yt(p)){var x=a.counters.getCounterValue(p.value),g=v&&yt(v)?g1.parse(a.context,v.value):3;c.appendChild(l.createTextNode(hh(x,g,!1)))}}else if(d.name==="counters"){var y=d.values.filter(uu),p=y[0],B=y[1],v=y[2];if(p&&yt(p)){var b=a.counters.getCounterValues(p.value),C=v&&yt(v)?g1.parse(a.context,v.value):3,j=B&&B.type===0?B.value:"",_=b.map(function(T){return hh(T,C,!1)}).join(j);c.appendChild(l.createTextNode(_))}}}else if(d.type===20)switch(d.value){case"open-quote":c.appendChild(l.createTextNode(lP(A.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(l.createTextNode(lP(A.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(l.createTextNode(d.value))}}),c.className=B1+" "+C1;var u=i===_f.BEFORE?" "+B1:" "+C1;return Sg(r)?r.className.baseValue+=u:r.className+=u,c}}},e.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},e}(),_f;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(_f||(_f={}));var Oce=function(e,t){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=t.width.toString(),r.height=t.height.toString(),r.scrolling="no",r.setAttribute(D3,"true"),e.body.appendChild(r),r},Tce=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},Fce=function(e){return Promise.all([].slice.call(e.images,0).map(Tce))},Pce=function(e){return new Promise(function(t,r){var n=e.contentWindow;if(!n)return r("No window assigned for iframe");var i=n.document;n.onload=e.onload=function(){n.onload=e.onload=null;var a=setInterval(function(){i.body.childNodes.length>0&&i.readyState==="complete"&&(clearInterval(a),t(e))},50)}})},kce=["all","d","content"],Sb=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e.item(r);kce.indexOf(n)===-1&&t.style.setProperty(n,e.getPropertyValue(n))}return t},Ice=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},Uce=function(e,t,r){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,r)},Qce=function(e){var t=e[0],r=e[1],n=e[2];t.scrollLeft=r,t.scrollTop=n},Mce=":before",Rce=":after",B1="___html2canvas___pseudoelement_before",C1="___html2canvas___pseudoelement_after",PP=`{ 459 content: "" !important; 460 display: none !important; 461}`,Dce=function(e){Lce(e,"."+B1+Mce+PP+` 462 .`+C1+Rce+PP)},Lce=function(e,t){var r=e.ownerDocument;if(r){var n=r.createElement("style");n.textContent=t,e.appendChild(n)}},L3=function(){function e(){}return e.getOrigin=function(t){var r=e._link;return r?(r.href=t,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),$ce=function(){function e(t,r){this.context=t,this._options=r,this._cache={}}return e.prototype.addImage=function(t){var r=Promise.resolve();return this.has(t)||(Ob(t)||Wce(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),r},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return Vr(this,void 0,void 0,function(){var r,n,i,a,s=this;return Ur(this,function(l){switch(l.label){case 0:return r=L3.isSameOrigin(t),n=!Nb(t)&&this._options.useCORS===!0&&_r.SUPPORT_CORS_IMAGES&&!r,i=!Nb(t)&&!r&&!Ob(t)&&typeof this._options.proxy=="str
462ing"&&_r.SUPPORT_CORS_XHR&&!n,!r&&this._options.allowTaint===!1&&!Nb(t)&&!Ob(t)&&!i&&!n?[2]:(a=t,i?[4,this.proxy(a)]:[3,2]);case 1:a=l.sent(),l.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(A,c){var u=new Image;u.onload=function(){return A(u)},u.onerror=c,(Gce(a)||n)&&(u.crossOrigin="anonymous"),u.src=a,u.complete===!0&&setTimeout(function(){return A(u)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,l.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var r=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var i=t.substring(0,256);return new Promise(function(a,s){var l=_r.SUPPORT_RESPONSE_TYPE?"blob":"text",A=new XMLHttpRequest;A.onload=function(){if(A.status===200)if(l==="text")a(A.response);else{var d=new FileReader;d.addEventListener("load",function(){return a(d.result)},!1),d.addEventListener("error",function(f){return s(f)},!1),d.readAsDataURL(A.response)}else s("Failed to proxy resource "+i+" with status code "+A.status)},A.onerror=s;var c=n.indexOf("?")>-1?"&":"?";if(A.open("GET",""+n+c+"url="+encodeURIComponent(t)+"&responseType="+l),l!=="text"&&A instanceof XMLHttpRequest&&(A.responseType=l),r._options.imageTimeout){var u=r._options.imageTimeout;A.timeout=u,A.ontimeout=function(){return s("Timed out ("+u+"ms) proxying "+i)}}A.send()})},e}(),Hce=/^data:image\/svg\+xml/i,Kce=/^data:image\/.*;base64,/i,Vce=/^data:image\/.*/i,Wce=function(e){return _r.SUPPORT_SVG_DRAWING||!zce(e)},Nb=function(e){return Vce.test(e)},Gce=function(e){return Kce.test(e)},Ob=function(e){return e.substr(0,4)==="blob"},zce=function(e){return e.substr(-3).toLowerCase()==="svg"||Hce.test(e)},fe=function(){function e(t,r){this.type=0,this.x=t,this.y=r}return e.prototype.add=function(t,r){return new e(this.x+t,this.y+r)},e}(),QA=function(e,t,r){return new fe(e.x+(t.x-e.x)*r,e.y+(t.y-e.y)*r)},Lm=function(){function e(t,r,n,i){this.type=1,this.start=t,this.startControl=r,this.endControl=n,this.end=i}return e.prototype.subdivide=function(t,r){var n=QA(this.start,this.startControl,t),i=QA(this.startControl,this.endControl,t),a=QA(this.endControl,this.end,t),s=QA(n,i,t),l=QA(i,a,t),A=QA(s,l,t);return r?new e(this.start,n,s,A):new e(A,l,a,this.end)},e.prototype.add=function(t,r){return new e(this.start.add(t,r),this.startControl.add(t,r),this.endControl.add(t,r),this.end.add(t,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),ri=function(e){return e.type===1},qce=function(){function e(t){var r=t.styles,n=t.bounds,i=af(r.borderTopLeftRadius,n.width,n.height),a=i[0],s=i[1],l=af(r.borderTopRightRadius,n.width,n.height),A=l[0],c=l[1],u=af(r.borderBottomRightRadius,n.width,n.height),d=u[0],f=u[1],h=af(r.borderBottomLeftRadius,n.width,n.height),m=h[0],p=h[1],v=[];v.push((a+A)/n.width),v.push((m+d)/n.width),v.push((s+p)/n.height),v.push((c+f)/n.height);var x=Math.max.apply(Math,v);x>1&&(a/=x,s/=x,A/=x,c/=x,d/=x,f/=x,m/=x,p/=x);var g=n.width-A,y=n.height-f,B=n.width-d,b=n.height-p,C=r.borderTopWidth,j=r.borderRightWidth,_=r.borderBottomWidth,E=r.borderLeftWidth,I=Ct(r.paddingTop,t.bounds.width),T=Ct(r.paddingRight,t.bounds.width),k=Ct(r.paddingBottom,t.bounds.width),N=Ct(r.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||s>0?kt(n.left+E/3,n.top+C/3,a-E/3,s-C/3,ut.TOP_LEFT):new fe(n.left+E/3,n.top+C/3),this.topRightBorderDoubleOuterBox=a>0||s>0?kt(n.left+g,n.top+C/3,A-j/3,c-C/3,ut.TOP_RIGHT):new fe(n.left+n.width-j/3,n.top+C/3),this.bottomRightBorderDoubleOuterBox=d>0||f>0?kt(n.left+B,n.top+y,d-j/3,f-_/3,ut.BOTTOM_RIGHT):new fe(n.left+n.width-j/3,n.top+n.height-_/3),this.bottomLeftBorderDoubleOuterBox=m>0||p>0?kt(n.left+E/3,n.top+b,m-E/3,p-_/3,ut.BOTTOM_LEFT):new fe(n.left+E/3,n.top+n.height-_/3),this.topLeftBorderDoubleInnerBox=a>0||s>0?kt(n.left+E*2/3,n.top+C*2/3,a-E*2/3,s-C*2/3,ut.TOP_LEFT):new fe(n.left+E*2/3,n.top+C*2/3),this.topRightBorderDoubleInnerBox=a>0||s>0?kt(n.left+g,n.top+C*2/3,A-j*2/3,c-C*2/3,ut.TOP_RIGHT):new fe(n.left+n.width-j*2/3,n.top+C*2/3),this.bottomRightBorderDoubleInnerBox=d>0||f>0?kt(n.left+B,n.top+y,d-j*2/3,f-_*2/3,ut.BOTTOM_RIGHT):new fe(n.left+n.width-j*2/3,n.top+n.height-_*2/3),this.bottomLeftBorderDoubleInnerBox=m>0||p>0?kt(n.left+E*2/3,n.top+b,m-E*2/3,p-_*2/3,ut.BOTTOM_LEFT):new fe(n.left+E*2/3,n.top+n.height-_*2/3),this.topLeftBorderStroke=a>0||s>0?kt(n.left+E/2,n.top+C/2,a-E/2,s-C/2,ut.TOP_LEFT):new fe(n.left+E/2,n.top+C/2),this.topRightBorderStroke=a>0||s>0?kt(n.left+g,n.top+C/2,A-j/2,c-C/2,ut.TOP_RIGHT):new fe(n.left+n.width-j/2,n.top+C/2),this.bottomRightBorderStroke=d>0||f>0?kt(n.left+B,n.top+y,d-j/2,f-_/2,ut.BOTTOM_RIGHT):new fe(n.left+n.width-j/2,n.top+n.height-_/2),this.bottomLeftBorderStroke=m>0||p>0?kt(n.left+E/2,n.top+b,m-E/2,p-_/2,ut.BOTTOM_LEFT):new fe(n.left+E/2,n.top+n.height-_/2),this.topLeftBorderBox=a>0||s>0?kt(n.left,n.top,a,s,ut.TOP_LEFT):new fe(n.left,n.top),this.topRightBorderBox=A>0||c>0?kt(n.left+g,n.top,A,c,ut.TOP_RIGHT):new fe(n.left+n.width,n.top),this.bottomRightBorderBox=d>0||f>0?kt(n.left+B,n.top+y,d,f,ut.BOTTOM_RIGHT):new fe(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=m>0||p>0?kt(n.left,n.top+b,m,p,ut.BOTTOM_LEFT):new fe(n.left,n.top+n.height),this.topLeftPaddingBox=a>0||s>0?kt(n.left+E,n.top+C,Math.max(0,a-E),Math.max(0,s-C),ut.TOP_LEFT):new fe(n.left+E,n.top+C),this.topRightPaddingBox=A>0||c>0?kt(n.left+Math.min(g,n.width-j),n.top+C,g>n.width+j?0:Math.max(0,A-j),Math.max(0,c-C),ut.TOP_RIGHT):new fe(n.left+n.width-j,n.top+C),this.bottomRightPaddingBox=d>0||f>0?kt(n.left+Math.min(B,n.width-E),n.top+Math.min(y,n.height-_),Math.max(0,d-j),Math.max(0,f-_),ut.BOTTOM_RIGHT):new fe(n.left+n.width-j,n.top+n.height-_),this.bottomLeftPaddingBox=m>0||p>0?kt(n.left+E,n.top+Math.min(b,n.height-_),Math.max(0,m-E),Math.max(0,p-_),ut.BOTTOM_LEFT):new fe(n.left+E,n.top+n.height-_),this.topLeftContentBox=a>0||s>0?kt(n.left+E+N,n.top+C+I,Math.max(0,a-(E+N)),Math.max(0,s-(C+I)),ut.TOP_LEFT):new fe(n.left+E+N,n.top+C+I),this.topRightContentBox=A>0||c>0?kt(n.left+Math.min(g,n.width+E+N),n.top+C+I,g>n.width+E+N?0:A-E+N,c-(C+I),ut.TOP_RIGHT):new fe(n.left+n.width-(j+T),n.top+C+I),this.bottomRightContentBox=d>0||f>0?kt(n.left+Math.min(B,n.width-(E+N)),n.top+Math.min(y,n.height+C+I),Math.max(0,d-(j+T)),f-(_+k),ut.BOTTOM_RIGHT):new fe(n.left+n.width-(j+T),n.top+n.height-(_+k)),this.bottomLeftContentBox=m>0||p>0?kt(n.left+E+N,n.top+b,Math.max(0,m-(E+N)),p-(_+k),ut.BOTTOM_LEFT):new fe(n.left+E+N,n.top+n.height-(_+k))}return e}(),ut;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ut||(ut={}));var kt=function(e,t,r,n,i){var a=4*((Math.sqrt(2)-1)/3),s=r*a,l=n*a,A=e+r,c=t+n;switch(i){case ut.TOP_LEFT:return new Lm(new fe(e,c),new fe(e,c-l),new fe(A-s,t),new fe(A,t));case ut.TOP_RIGHT:return new Lm(new fe(e,t),new fe(e+s,t),new fe(A,c-l),new fe(A,c));case ut.BOTTOM_RIGHT:return new Lm(new fe(A,t),new fe(A,t+l),new fe(e+s,
vendor: 20,790 bytes, line 462
462c),new fe(e,c));case ut.BOTTOM_LEFT:default:return new Lm(new fe(A,c),new fe(A-s,c),new fe(e,t+l),new fe(e,t))}},kv=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Yce=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Iv=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Xce=function(){function e(t,r,n){this.offsetX=t,this.offsetY=r,this.matrix=n,this.type=0,this.target=6}return e}(),$m=function(){function e(t,r){this.path=t,this.target=r,this.type=1}return e}(),Jce=function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e}(),Zce=function(e){return e.type===0},$3=function(e){return e.type===1},eue=function(e){return e.type===2},kP=function(e,t){return e.length===t.length?e.some(function(r,n){return r===t[n]}):!1},tue=function(e,t,r,n,i){return e.map(function(a,s){switch(s){case 0:return a.add(t,r);case 1:return a.add(t+n,r);case 2:return a.add(t+n,r+i);case 3:return a.add(t,r+i)}return a})},H3=function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),K3=function(){function e(t,r){if(this.container=t,this.parent=r,this.effects=[],this.curves=new qce(this.container),this.container.styles.opacity<1&&this.effects.push(new Jce(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new Xce(n,i,a))}if(this.container.styles.overflowX!==0){var s=kv(this.curves),l=Iv(this.curves);kP(s,l)?this.effects.push(new $m(s,6)):(this.effects.push(new $m(s,2)),this.effects.push(new $m(l,4)))}}return e.prototype.getEffects=function(t){for(var r=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,i=this.effects.slice(0);n;){var a=n.effects.filter(function(A){return!$3(A)});if(r||n.container.styles.position!==0||!n.parent){if(i.unshift.apply(i,a),r=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=kv(n.curves),l=Iv(n.curves);kP(s,l)||i.unshift(new $m(l,6))}}else i.unshift.apply(i,a);n=n.parent}return i.filter(function(A){return cr(A.target,t)})},e}(),j1=function(e,t,r,n){e.container.elements.forEach(function(i){var a=cr(i.flags,4),s=cr(i.flags,2),l=new K3(i,e);cr(i.styles.display,2048)&&n.push(l);var A=cr(i.flags,8)?[]:n;if(a||s){var c=a||i.styles.isPositioned()?r:t,u=new H3(l);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var d=i.styles.zIndex.order;if(d<0){var f=0;c.negativeZIndex.some(function(m,p){return d>m.element.container.styles.zIndex.order?(f=p,!1):f>0}),c.negativeZIndex.splice(f,0,u)}else if(d>0){var h=0;c.positiveZIndex.some(function(m,p){return d>=m.element.container.styles.zIndex.order?(h=p+1,!1):h>0}),c.positiveZIndex.splice(h,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);j1(l,u,a?u:r,A)}else i.styles.isInlineLevel()?t.inlineLevel.push(l):t.nonInlineLevel.push(l),j1(l,t,r,A);cr(i.flags,8)&&V3(i,A)})},V3=function(e,t){for(var r=e instanceof x1?e.start:1,n=e instanceof x1?e.reversed:!1,i=0;i<t.length;i++){var a=t[i];a.container instanceof S3&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=hh(r,a.container.styles.listStyleType,!0),r+=n?-1:1}},rue=function(e){var t=new K3(e,null),r=new H3(t),n=[];return j1(t,r,r,n),V3(t.container,n),r},IP=function(e,t){switch(t){case 0:return si(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return si(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return si(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return si(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},nue=function(e,t){switch(t){case 0:return si(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return si(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return si(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return si(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},iue=function(e,t){switch(t){case 0:return si(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return si(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return si(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return si(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},aue=function(e,t){switch(t){case 0:return Hm(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Hm(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Hm(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return Hm(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Hm=function(e,t){var r=[];return ri(e)?r.push(e.subdivide(.5,!1)):r.push(e),ri(t)?r.push(t.subdivide(.5,!0)):r.push(t),r},si=function(e,t,r,n){var i=[];return ri(e)?i.push(e.subdivide(.5,!1)):i.push(e),ri(r)?i.push(r.subdivide(.5,!0)):i.push(r),ri(n)?i.push(n.subdivide(.5,!0).reverse()):i.push(n),ri(t)?i.push(t.subdivide(.5,!1).reverse()):i.push(t),i},W3=function(e){var t=e.bounds,r=e.styles;return t.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Uv=function(e){var t=e.styles,r=e.bounds,n=Ct(t.paddingLeft,r.width),i=Ct(t.paddingRight,r.width),a=Ct(t.paddingTop,r.width),s=Ct(t.paddingBottom,r.width);return r.add(n+t.borderLeftWidth,a+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+n+i),-(t.borderTopWidth+t.borderBottomWidth+a+s))},sue=function(e,t){return e===0?t.bounds:e===2?Uv(t):W3(t)},oue=function(e,t){return e===0?t.bounds:e===2?Uv(t):W3(t)},Tb=function(e,t,r){var n=sue(ZA(e.styles.backgroundOrigin,t),e),i=oue(ZA(e.styles.backgroundClip,t),e),a=lue(ZA(e.styles.backgroundSize,t),r,n),s=a[0],l=a[1],A=af(ZA(e.styles.backgroundPosition,t),n.width-s,n.height-l),c=Aue(ZA(e.styles.backgroundRepeat,t),A,a,n,i),u=Math.round(n.left+A[0]),d=Math.round(n.top+A[1]);return[c,u,d,s,l]},MA=function(e){return yt(e)&&e.value===kc.AUTO},Km=function(e){return typeof e=="number"},lue=function(e,t,r){var n=t[0],i=t[1],a=t[2],s=e[0],l=e[1];if(!s)return[0,0];if(tr(s)&&l&&tr(l))return[Ct(s,r.width),Ct(l,r.height)];var A=Km(a);if(yt(s)&&(s.value===kc.CONTAIN||s.value===kc.COVER)){if(Km(a)){var c=r.width/r.height;return c<a!=(s.value===kc.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var u=Km(n),d=Km(i),f=u||d;if(MA(s)&&(!l||MA(l))){if(u&&d)return[n,i];if(!A&&!f)return[r.width,r.height];if(f&&A){var h=u?n:i*a,m=d?i:n/a;return[h,m]}var p=u?n:r.width,v=d?i:r.height;return[p,v]}if(A){var x=0,g=0;return tr(s)?x=Ct(s,r.width):tr(l)&&(g=Ct(l,r.height)),MA(s)?x=g*a:(!l||MA(l))&&(g=x/a),[x,g]}var y=null,B=null;if(tr(s)?y=Ct(s,r.width):l&&tr(l)&&(B=Ct(l,r.height)),y!==null&&(!l||MA(l))&&(B=u&&d?y/n*i:r.height),B!==null&&MA(s)&&(y=u&&d?B/i*n:r.width),y!==null&&B!==null)return[y,B];throw new Error("Unable to calculate background-size for element")},ZA=function(e,t){var r=e[t];return typeof r>"u"?e[0]:r},Aue=function(e,t,r,n,i){var a=t[0],s=t[1],l=r[0],A=r[1];switch(e){case 2:return[new fe(Math.round(n.left),Math.round(n.top+s)),new fe(Math.round(n.left+n.width),Math.round(n.top+s)),new fe(Math.round(n.left+n.width),Math.round(A+n.top+s)),new fe(Math.round(n.left),Math.round(A+n.top+s))];case 3:return[new fe(Math.round(n.left+a),Math.round(n.top)),new fe(Math.round(n.left+a+l),Math.round(n.top)),new fe(Math.round(n.left+a+l),Math.round(n.height+n.top)),new fe(Math.round(n.left+a),Math.round(n.height+n.top))];case 1:return[new fe(Math.round(n.left+a),Math.round(n.top+s)),new fe(Math.round(n.left+a+l),Math.round(n.top+s)),new fe(Math.round(n.left+a+l),Math.round(n.top+s+A)),new fe(Math.round(n.left+a),Math.round(n.top+s+A))];default:return[new fe(Math.round(i.left),Math.round(i.top)),new fe(Math.round(i.left+i.width),Math.round(i.top)),new fe(Math.round(i.left+i.width),Math.round(i.height+i.top)),new fe(Math.round(i.left),Math.round(i.height+i.top))]}},cue="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",UP="Hidden Text",uue=function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,r){var n=this._document.createElement("div"),i=this._document.createElement("img"),a=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=r,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),i.src=cue,i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",a.style.fontFamily=t,a.style.fontSize=r,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(UP)),n.appendChild(a),n.appendChild(i);var l=i.offsetTop-a.offsetTop+2;n.removeChild(a),n.appendChild(this._document.createTextNode(UP)),n.style.lineHeight="normal",i.style.verticalAlign="super";var A=i.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:l,middle:A}},e.prototype.getMetrics=function(t,r){var n=t+" "+r;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(t,r)),this._data[n]},e}(),G3=function(){function e(t,r){this.context=t,this.options=r}return e}(),due=1e4,fue=function(e){Xi(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i._activeEffects=[],i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),n.canvas||(i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px"),i.fontMetrics=new uue(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),i}return t.prototype.applyEffects=function(r){for(var n=this;this._activeEffects.length;)this.popEffect();r.forEach(function(i){return n.applyEffect(i)})},t.prototype.applyEffect=function(r){this.ctx.save(),eue(r)&&(this.ctx.globalAlpha=r.opacity),Zce(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),$3(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(r){return Vr(this,void 0,void 0,function(){var n;return Ur(this,function(i){switch(i.label){case 0:return n=r.element.container.styles,n.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(r){return Vr(this,void 0,void 0,function(){return Ur(this,function(n){switch(n.label){case 0:if(cr(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(r)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(r,n,i){var a=this;if(n===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+i);else{var s=sS(r.text);s.reduce(function(l,A){return a.ctx.fillText(A,l,r.bounds.top+i),l+a.ctx.measureText(A).width},r.bounds.left)}},t.prototype.createFontStyle=function(r){var n=r.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),i=vue(r.fontFamily).join(", "),a=bp(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,n,r.fontWeight,a,i].join(" "),i,a]},t.prototype.renderTextNode=function(r,n){return Vr(this,void 0,void 0,function(){var i,a,s,l,A,c,u,d,f=this;return Ur(this,function(h){return i=this.createFontStyle(n),a=i[0],s=i[1],l=i[2],this.ctx.font=a,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",A=this.fontMetrics.getMetrics(s,l),c=A.baseline,u=A.middle,d=n.paintOrder,r.textBounds.forEach(function(m){d.forEach(function(p){switch(p){case 0:f.ctx.fillStyle=mr(n.color),f.renderTextWithLetterSpacing(m,n.letterSpacing,c);var v=n.textShadow;v.length&&m.text.trim().length&&(v.slice(0).reverse().forEach(function(x){f.ctx.shadowColor=mr(x.color),f.ctx.shadowOffsetX=x.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=x.offsetY.number*f.options.scale,f.ctx.shadowBlur=x.blur.number,f.renderTextWithLetterSpacing(m,n.letterSpacing,c)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),n.textDecorationLine.length&&(f.ctx.fillStyle=mr(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(x){switch(x){case 1:f.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top+c),m.bounds.width,1);break;case 2:f.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top),m.bounds.width,1);break;case 3:f.ctx.fillRect(m.bounds.left,Math.ceil(m.bounds.top+u),m.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&m.text.trim().length&&(f.ctx.strokeStyle=mr(n.webkitTextStrokeColor),f.ctx.lineWidth=n.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(m.text,m.bounds.left,m.bounds.top+c)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(r,n,i){if(i&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var a=Uv(r),s=Iv(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(i,0,0,r.intrinsicWidth,r.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(r){return Vr(this,void 0,void 0,function(){var n,i,a,s,l,A,g,g,c,u,d,f,B,h,m,b,p,v,x,g,y,B,b;return Ur(this,function(C){switch(C.label){case 0:this.applyEffects(r.getEffects(4)),n=r.container,i=r.curves,a=n.styles,s=0,l=n.textNodes,C.label=1;case 1:return s<l.length?(A=l[s],[4,this.renderTextNode(A,a)]):[3,4];case 2:C.sent(),C.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof j3))return[3,8];C.label=5;case 5:return C.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return g=C.sent(),this.renderReplacedElement(n,i,g),[3,8];case 7:return C.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof _3&&this.renderReplacedElement(n,i,n.canvas),!(n instanceof E3))return[3,12];C.label=9;case 9:return C.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return g=C.sent(),this.renderReplacedElement(n,i,g),[3,12];case 11:return C.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof T3&&n.tree?(c=new t(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,c.render(n.tree)]):[3,14];case 13:u=C.sent(),n.width&&n.height&&this.ctx.drawImage(u,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),C.label=14;case 14:if(n instanceof oS&&(d=Math.min(n.bounds.width,n.bounds.height),n.type===Ov?n.checked&&(this.ctx.save(),this.path([new fe(n.bounds.left+d*.39363,n.bounds.top+d*.79),new fe(n.bounds.left+d*.16,n.bounds.top+d*.5549),new fe(n.bounds.left+d*.27347,n.bounds.top+d*.44071),new fe(n.bounds.left+d*.39694,n.bounds.top+d*.5649),new fe(n.bounds.left+d*.72983,n.bounds.top+d*.23),new fe(n.bounds.left+d*.84,n.bounds.top+d*.34085),new fe(n.bounds.left+d*.39363,n.bounds.top+d*.79)]),this.ctx.fillStyle=mr(BP),this.ctx.fill(),this.ctx.restore()):n.type===Tv&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+d/2,n.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=mr(BP),this.ctx.fill(),this.ctx.restore())),hue(n)&&n.value.length){switch(f=this.createFontStyle(a),B=f[0],h=f[1],m=this.fontMetrics.getMetrics(B,h).baseline,this.ctx.font=B,this.ctx.fillStyle=mr(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=mue(n.styles.textAlign),b=Uv(n),p=0,n.styles.textAlign){case 1:p+=b.width/2;break;case 2:p+=b.width;break}v=b.add(p,0,0,-b.height/2+1),this.ctx.save(),this.path([new fe(b.left,b.top),new fe(b.left+b.width,b.top),new fe(b.left+b.width,b.top+b.height),new fe(b.left,b.top+b.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new jf(n.value,v),a.letterSpacing,m),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!cr(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(x=n.styles.listStyleImage,x.type!==0)return[3,18];g=void 0,y=x.url,C.label=15;case 15:return C.trys.push([15,17,,18]),[4,this.context.cache.match(y)];case 16:return g=C.sent(),this.ctx.drawImage(g,n.bounds.left-(g.width+10),n.bounds.top),[3,18];case 17:return C.sent(),this.context.logger.error("Error loading list-style-image "+y),[3,18];case 18:return[3,20];case 19:r.listValue&&n.styles.listStyleType!==-1&&(B=this.createFontStyle(a)[0],this.ctx.font=B,this.ctx.fillStyle=mr(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",b=new vs(n.bounds.left,n.bounds.top+Ct(n.styles.paddingTop,n.bounds.width),n.bounds.width,sP(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new jf(r.listValue,b),a.letterSpacing,sP(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),C.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(r){return Vr(this,void 0,void 0,function(){var n,i,x,a,s,x,l,A,x,c,u,x,d,f,x,h,m,x,p,v,x;return Ur(this,function(g){switch(g.label){case 0:if(cr(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:g.sent(),n=0,i=r.negativeZIndex,g.label=2;case 2:return n<i.length?(x=i[n],[4,this.renderStack(x)]):[3,5];case 3:g.sent(),g.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:g.sent(),a=0,s=r.nonInlineLevel,g.label=7;case 7:return a<s.length?(x=s[a],[4,this.renderNode(x)]):[3,10];case 8:g.sent(),g.label=9;case 9:return a++,[3,7];case 10:l=0,A=r.nonPositionedFloats,g.label=11;case 11:return l<A.length?(x=A[l],[4,this.renderStack(x)]):[3,14];case 12:g.sent(),g.label=13;case 13:return l++,[3,11];case 14:c=0,u=r.nonPositionedInlineLevel,g.label=15;case 15:return c<u.length?(x=u[c],[4,this.renderStack(x)]):[3,18];case 16:g.sent(),g.label=17;case 17:return c++,[3,15];case 18:d=0,f=r.inlineLevel,g.label=19;case 19:return d<f.length?(x=f[d],[4,this.renderNode(x)]):[3,22];case 20:g.sent(),g.label=21;case 21:return d++,[3,19];case 22:h=0,m=r.zeroOrAutoZIndexOrTransformedOrOpacity,g.label=23;case 23:return h<m.length?(x=m[h],[4,this.renderStack(x)]):[3,26];case 24:g.sent(),g.label=25;case 25:return h++,[3,23];case 26:p=0,v=r.positiveZIndex,g.label=27;case 27:return p<v.length?(x=v[p],[4,this.renderStack(x)]):[3,30];case 28:g.sent(),g.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},t.prototype.formatPath=function(r){var n=this;r.forEach(function(i,a){var s=ri(i)?i.start:i;a===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),ri(i)&&n.ctx.bezierCurveTo(i.startControl.x,i.startControl.y,i.endControl.x,i.endControl.y,i.end.x,i.end.y)})},t.prototype.renderRepeat=function(r,n,i,a){this.path(r),this.ctx.fillStyle=n,this.ctx.translate(i,a),this.ctx.fill(),this.ctx.translate(-i,-a)},t.prototype.resizeImage=function(r,n,i){var a;if(r.width===n&&r.height===i)return r;var s=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,l=s.createElement("canvas");l.width=Math.max(1,n),l.height=Math.max(1,i);var A=l.getContext("2d");return A.drawImage(r,0,0,r.width,r.height,0,0,n,i),l}
vendor: 5,791 bytes, line 462
462,t.prototype.renderBackgroundImage=function(r){return Vr(this,void 0,void 0,function(){var n,i,a,s,l,A;return Ur(this,function(c){switch(c.label){case 0:n=r.styles.backgroundImage.length-1,i=function(u){var d,f,h,I,O,U,N,F,_,m,I,O,U,N,F,p,v,x,g,y,B,b,C,j,_,E,I,T,k,N,F,M,O,U,P,Q,$,G,K,X,ae,ve;return Ur(this,function(Fe){switch(Fe.label){case 0:if(u.type!==0)return[3,5];d=void 0,f=u.url,Fe.label=1;case 1:return Fe.trys.push([1,3,,4]),[4,a.context.cache.match(f)];case 2:return d=Fe.sent(),[3,4];case 3:return Fe.sent(),a.context.logger.error("Error loading background-image "+f),[3,4];case 4:return d&&(h=Tb(r,n,[d.width,d.height,d.width/d.height]),I=h[0],O=h[1],U=h[2],N=h[3],F=h[4],_=a.ctx.createPattern(a.resizeImage(d,N,F),"repeat"),a.renderRepeat(I,_,O,U)),[3,6];case 5:Zoe(u)?(m=Tb(r,n,[null,null,null]),I=m[0],O=m[1],U=m[2],N=m[3],F=m[4],p=zoe(u.angle,N,F),v=p[0],x=p[1],g=p[2],y=p[3],B=p[4],b=document.createElement("canvas"),b.width=N,b.height=F,C=b.getContext("2d"),j=C.createLinearGradient(x,y,g,B),iP(u.stops,v).forEach(function(L){return j.addColorStop(L.stop,mr(L.color))}),C.fillStyle=j,C.fillRect(0,0,N,F),N>0&&F>0&&(_=a.ctx.createPattern(b,"repeat"),a.renderRepeat(I,_,O,U))):ele(u)&&(E=Tb(r,n,[null,null,null]),I=E[0],T=E[1],k=E[2],N=E[3],F=E[4],M=u.position.length===0?[nS]:u.position,O=Ct(M[0],N),U=Ct(M[M.length-1],F),P=qoe(u,O,U,N,F),Q=P[0],$=P[1],Q>0&&$>0&&(G=a.ctx.createRadialGradient(T+O,k+U,0,T+O,k+U,Q),iP(u.stops,Q*2).forEach(function(L){return G.addColorStop(L.stop,mr(L.color))}),a.path(I),a.ctx.fillStyle=G,Q!==$?(K=r.bounds.left+.5*r.bounds.width,X=r.bounds.top+.5*r.bounds.height,ae=$/Q,ve=1/ae,a.ctx.save(),a.ctx.translate(K,X),a.ctx.transform(1,0,0,ae,0,0),a.ctx.translate(-K,-X),a.ctx.fillRect(T,ve*(k-X)+X,N,F*ve),a.ctx.restore()):a.ctx.fill())),Fe.label=6;case 6:return n--,[2]}})},a=this,s=0,l=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<l.length?(A=l[s],[5,i(A)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(r,n,i){return Vr(this,void 0,void 0,function(){return Ur(this,function(a){return this.path(IP(i,n)),this.ctx.fillStyle=mr(r),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(r,n,i,a){return Vr(this,void 0,void 0,function(){var s,l;return Ur(this,function(A){switch(A.label){case 0:return n<3?[4,this.renderSolidBorder(r,i,a)]:[3,2];case 1:return A.sent(),[2];case 2:return s=nue(a,i),this.path(s),this.ctx.fillStyle=mr(r),this.ctx.fill(),l=iue(a,i),this.path(l),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(r){return Vr(this,void 0,void 0,function(){var n,i,a,s,l,A,c,u,d=this;return Ur(this,function(f){switch(f.label){case 0:return this.applyEffects(r.getEffects(2)),n=r.container.styles,i=!jo(n.backgroundColor)||n.backgroundImage.length,a=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],s=pue(ZA(n.backgroundClip,0),r.curves),i||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),jo(n.backgroundColor)||(this.ctx.fillStyle=mr(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:f.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(h){d.ctx.save();var m=kv(r.curves),p=h.inset?0:due,v=tue(m,-p+(h.inset?1:-1)*h.spread.number,(h.inset?1:-1)*h.spread.number,h.spread.number*(h.inset?-2:2),h.spread.number*(h.inset?-2:2));h.inset?(d.path(m),d.ctx.clip(),d.mask(v)):(d.mask(m),d.ctx.clip(),d.path(v)),d.ctx.shadowOffsetX=h.offsetX.number+p,d.ctx.shadowOffsetY=h.offsetY.number,d.ctx.shadowColor=mr(h.color),d.ctx.shadowBlur=h.blur.number,d.ctx.fillStyle=h.inset?mr(h.color):"rgba(0,0,0,1)",d.ctx.fill(),d.ctx.restore()}),f.label=2;case 2:l=0,A=0,c=a,f.label=3;case 3:return A<c.length?(u=c[A],u.style!==0&&!jo(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,l,r.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,l,r.curves,3)];case 6:return f.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,l,r.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,l,r.curves)];case 10:f.sent(),f.label=11;case 11:l++,f.label=12;case 12:return A++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(r,n,i,a,s){return Vr(this,void 0,void 0,function(){var l,A,c,u,d,f,h,m,p,v,x,g,y,B,b,C,b,C;return Ur(this,function(j){return this.ctx.save(),l=aue(a,i),A=IP(a,i),s===2&&(this.path(A),this.ctx.clip()),ri(A[0])?(c=A[0].start.x,u=A[0].start.y):(c=A[0].x,u=A[0].y),ri(A[1])?(d=A[1].end.x,f=A[1].end.y):(d=A[1].x,f=A[1].y),i===0||i===2?h=Math.abs(c-d):h=Math.abs(u-f),this.ctx.beginPath(),s===3?this.formatPath(l):this.formatPath(A.slice(0,2)),m=n<3?n*3:n*2,p=n<3?n*2:n,s===3&&(m=n,p=n),v=!0,h<=m*2?v=!1:h<=m*2+p?(x=h/(2*m+p),m*=x,p*=x):(g=Math.floor((h+p)/(m+p)),y=(h-g*m)/(g-1),B=(h-(g+1)*m)/g,p=B<=0||Math.abs(p-y)<Math.abs(p-B)?y:B),v&&(s===3?this.ctx.setLineDash([0,m+p]):this.ctx.setLineDash([m,p])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=mr(r),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(ri(A[0])&&(b=A[3],C=A[0],this.ctx.beginPath(),this.formatPath([new fe(b.end.x,b.end.y),new fe(C.start.x,C.start.y)]),this.ctx.stroke()),ri(A[1])&&(b=A[1],C=A[2],this.ctx.beginPath(),this.formatPath([new fe(b.end.x,b.end.y),new fe(C.start.x,C.start.y)]),this.ctx.stroke())),this.ctx.restore(
vendor: 9,177 bytes, line 462
462),[2]})})},t.prototype.render=function(r){return Vr(this,void 0,void 0,function(){var n;return Ur(this,function(i){switch(i.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=mr(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=rue(r),[4,this.renderStack(n)];case 1:return i.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(G3),hue=function(e){return e instanceof O3||e instanceof N3?!0:e instanceof oS&&e.type!==Tv&&e.type!==Ov},pue=function(e,t){switch(e){case 0:return kv(t);case 2:return Yce(t);case 1:default:return Iv(t)}},mue=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},gue=["-apple-system","system-ui"],vue=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return gue.indexOf(t)===-1}):e},yue=function(e){Xi(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),i.options=n,i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px",i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),i}return t.prototype.render=function(r){return Vr(this,void 0,void 0,function(){var n,i;return Ur(this,function(a){switch(a.label){case 0:return n=y1(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,xue(n)];case 1:return i=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=mr(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(i,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t}(G3),xue=function(e){return new Promise(function(t,r){var n=new Image;n.onload=function(){t(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},wue=function(){function e(t){var r=t.id,n=t.enabled;this.id=r,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,bm([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,bm([this.id,this.getTime()+"ms"],t))},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,bm([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,bm([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.instances={},e}(),bue=function(){function e(t,r){var n;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new wue({id:this.instanceName,enabled:t.logging}),this.cache=(n=t.cache)!==null&&n!==void 0?n:new $ce(this,t)}return e.instanceCount=1,e}(),Bue=function(e,t){return t===void 0&&(t={}),Cue(e,t)};typeof window<"u"&&L3.setContext(window);var Cue=function(e,t){return Vr(void 0,void 0,void 0,function(){var r,n,i,a,s,l,A,c,u,d,f,h,m,p,v,x,g,y,B,b,j,C,j,_,E,I,T,k,N,F,M,O,U,P,Q,$,G,K,X,ae;return Ur(this,function(ve){switch(ve.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(n=r.defaultView,!n)throw new Error("Document is not attached to a Window");return i={allowTaint:(_=t.allowTaint)!==null&&_!==void 0?_:!1,imageTimeout:(E=t.imageTimeout)!==null&&E!==void 0?E:15e3,proxy:t.proxy,useCORS:(I=t.useCORS)!==null&&I!==void 0?I:!1},a=i1({logging:(T=t.logging)!==null&&T!==void 0?T:!0,cache:t.cache},i),s={windowWidth:(k=t.windowWidth)!==null&&k!==void 0?k:n.innerWidth,windowHeight:(N=t.windowHeight)!==null&&N!==void 0?N:n.innerHeight,scrollX:(F=t.scrollX)!==null&&F!==void 0?F:n.pageXOffset,scrollY:(M=t.scrollY)!==null&&M!==void 0?M:n.pageYOffset},l=new vs(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),A=new bue(a,l),c=(O=t.foreignObjectRendering)!==null&&O!==void 0?O:!1,u={allowTaint:(U=t.allowTaint)!==null&&U!==void 0?U:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:c,copyStyles:c},A.logger.debug("Starting document clone with size "+l.width+"x"+l.height+" scrolled to "+-l.left+","+-l.top),d=new FP(A,e,u),f=d.clonedReferenceElement,f?[4,d.toIFrame(r,l)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return h=ve.sent(),m=lS(f)||jce(f)?tse(f.ownerDocument):Yx(A,f),p=m.width,v=m.height,x=m.left,g=m.top,y=jue(A,f,t.backgroundColor),B={canvas:t.canvas,backgroundColor:y,scale:(Q=(P=t.scale)!==null&&P!==void 0?P:n.devicePixelRatio)!==null&&Q!==void 0?Q:1,x:(($=t.x)!==null&&$!==void 0?$:0)+x,y:((G=t.y)!==null&&G!==void 0?G:0)+g,width:(K=t.width)!==null&&K!==void 0?K:Math.ceil(p),height:(X=t.height)!==null&&X!==void 0?X:Math.ceil(v)},c?(A.logger.debug("Document cloned, using foreign object rendering"),j=new yue(A,B),[4,j.render(f)]):[3,3];case 2:return b=ve.sent(),[3,5];case 3:return A.logger.debug("Document cloned, element located at "+x+","+g+" with size "+p+"x"+v+" using computed rendering"),A.logger.debug("Starting DOM parsing"),C=P3(A,f),y===C.styles.backgroundColor&&(C.styles.backgroundColor=is.TRANSPARENT),A.logger.debug("Starting renderer for element at "+B.x+","+B.y+" with size "+B.width+"x"+B.height),j=new fue(A,B),[4,j.render(C)];case 4:b=ve.sent(),ve.label=5;case 5:return(!((ae=t.removeContainer)!==null&&ae!==void 0)||ae)&&(FP.destroy(h)||A.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),A.logger.debug("Finished rendering"),[2,b]}})})},jue=function(e,t,r){var n=t.ownerDocument,i=n.documentElement?Bf(e,getComputedStyle(n.documentElement).backgroundColor):is.TRANSPARENT,a=n.body?Bf(e,getComputedStyle(n.body).backgroundColor):is.TRANSPARENT,s=typeof r=="string"?Bf(e,r):r===null?is.TRANSPARENT:4294967295;return t===n.documentElement?jo(i)?jo(a)?s:a:i:s};const Fb=[{name:"mechanical keyboard",unitCost:120,emoji:"â¨ï¸",singular:"mechanical keyboard",plural:"mechanical keyboards"},{name:"noise-cancelling headphones",unitCost:200,emoji:"ð§",singular:"pair of noise-cancelling headphones",plural:"pairs of noise-cancelling headphones"},{name:"standing desk",unitCost:400,emoji:"ð¥ï¸",singular:"standing desk",plural:"standing desks"},{name:"ergonomic chair",unitCost:600,emoji:"ðª",singular:"ergonomic office chair",plural:"ergonomic office chairs"},{name:"ChatGPT Plus month",unitCost:20,emoji:"ð¤",singular:"month of ChatGPT Plus",plural:"months of ChatGPT Plus"},{name:"coworking day pass",unitCost:50,emoji:"ð¼",singular:"coworking day pass",plural:"coworking day passes"},{name:"second monitor",unitCost:250,emoji:"ð¥ï¸",singular:"second monitor",plural:"second monitors"},{name:"lunch delivery",unitCost:25,emoji:"ð±",singular:"lunch delivery",plural:"lunch deliveries"},{name:"fancy sushi order",unitCost:40,emoji:"ð£",singular:"fancy sushi order",plural:"fancy sushi orders"},{name:"wine bottle",unitCost:20,emoji:"ð·",singular:"bottle of wine",plural:"bottles of wine"},{name:"pizza delivery",unitCost:22,emoji:"ð",singular:"pizza delivery",plural:"pizza deliveries"},{name:"energy drink",unitCost:4,emoji:"â¡",singular:"energy drink",plural:"energy drinks"},{name:"fancy donut",unitCost:6,emoji:"ð©",singular:"fancy donut",plural:"fancy donuts"},{name:"escape room ticket",unitCost:30,emoji:"ð",singular:"escape room ticket",plural:"escape room tickets"},{name:"bowling game",unitCost:15,emoji:"ð³",singular:"bowling game",plural:"bowling games"},{name:"movie ticket",unitCost:15,emoji:"ð¬",singular:"movie ticket",plural:"movie tickets"},{name:"Spotify Premium month",unitCost:11,emoji:"ðµ",singular:"month of Spotify Premium",plural:"months of Spotify Premium"},{name:"Netflix month",unitCost:16,emoji:"ðº",singular:"month of Netflix",plural:"months of Netflix"},{name:"Audible credit",unitCost:15,emoji:"ð",singular:"Audible credit",plural:"Audible credits"},{name:"gym membership month",unitCost:40,emoji:"ðª",singular:"month of gym membership",plural:"months of gym membership"},{name:"massage session",unitCost:80,emoji:"ð",singular:"massage therapy session",plural:"massage therapy sessions"},{name:"yoga class",unitCost:25,emoji:"ð§",singular:"yoga class drop-in",plural:"yoga class drop-ins"}
462,{name:"haircut",unitCost:30,emoji:"ð",singular:"haircut",plural:"haircuts"},{name:"stress ball",unitCost:5,emoji:"â½",singular:"stress ball",plural:"stress balls"},{name:"therapy session",unitCost:150,emoji:"ðï¸",singular:"therapy session",plural:"therapy sessions"},{name:"fidget spinner",unitCost:8,emoji:"ð",singular:"fidget spinner",plural:"fidget spinners"},{name:"office plant",unitCost:35,emoji:"ðª´",singular:"office plant",plural:"office plants"},{name:"Uber ride",unitCost:25,emoji:"ð",singular:"Uber ride",plural:"Uber rides"},{name:"paperback book",unitCost:18,emoji:"ð",singular:"paperback book",plural:"paperback books"},{name:"premium parking day",unitCost:30,emoji:"ð
¿ï¸",singular:"day of premium parking",plural:"days of premium parking"}],QP={name:"coffee",unitCost:5,emoji:"â",singular:"cup of coffee",plural:"cups of coffee"},MP=(e,t)=>{const r=Math.floor(e/t.unitCost),n=r===1?t.singular:t.plural,i=r===0?`Less than a ${t.singular}`:`${r} ${n}`;return{item:t,quantity:r,formatted:i}},_ue=e=>{if(e===0)return{coffee:{item:QP,quantity:0,formatted:"Free meeting! ð"},random:{item:Fb[0],quantity:0,formatted:"No cost"}};const t=MP(e,QP),r=Fb.filter(s=>e>=s.unitCost*.8),n=r.length>0?r:Fb.filter(s=>s.unitCost<=10).slice(0,5),i=n[Math.floor(Math.random()*n.length)],a=MP(e,i);return{coffee:t,random:a}},z3=w.forwardRef(({meetingTitle:e,duration:t,attendeeCount:r,totalCost:n,rating:i},a)=>{const{coffee:s,random:l}=_ue(n),A=u=>{const d=Math.floor(u/3600),f=Math.floor(u%3600/60);return d>0?`${d}h ${f}m`:`${f} mins`},c=()=>{switch(i){case"waste":case"below-average":return"ð¤";case"productive":case"valuable":return"â";default:return"ð¤·"}};return o.jsx("div",{ref:a,className:"fixed -left-[9999px] -top-[9999px]",style:{width:"1200px",height:"1200px"},children:o.jsxs("div",{className:"w-full h-full p-16 flex flex-col justify-between",style:{background:"white",fontFamily:"system-ui, -apple-system, sans-serif"},children:[o.jsxs("div",{className:"flex items-start justify-between",children:[o.jsx("img",{src:N$,alt:"MeetingCost",style:{height:"60px",width:"auto"}}),o.jsx("div",{className:"text-right",style:{color:"hsl(217 91% 60%)",fontSize:"20px",fontWeight:"700"},children:"www.meetingcost.online"})]}),o.jsxs("div",{className:"flex-1 flex flex-col justify-center items-center text-center space-y-6",children:[o.jsx("h2",{style:{color:"hsl(220 14% 20%)",fontSize:"48px",fontWeight:"700",maxWidth:"900px",lineHeight:"1.2"},children:e}),o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{style:{color:"hsl(217 91% 60%)",fontSize:"110px",fontWeight:"800",lineHeight:"1"},children:["$",n.toFixed(2)]}),o.jsx("div",{style:{color:"hsl(220 14% 40%)",fontSize:"32px",fontWeight:"600"},children:"Total Meeting Cost"})]}),o.jsxs("div",{className:"flex gap-12 items-center justify-center",style:{color:"hsl(220 14% 30%)",fontSize:"26px",fontWeight:"600"},children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("span",{style:{fontSize:"32px"},children:"â±ï¸"}),o.jsx("span",{children:A(t)})]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("span",{style:{fontSize:"32px"},children:"ð¥"}),o.jsxs("span",{children:[r," people"]})]}),i&&o.jsx("div",{className:"flex items-center gap-3",children:o.jsx("span",{style:{fontSize:"32px"},children:c()})})]}),o.jsxs("div",{className:"space-y-4 pt-8",style:{borderTop:"3px solid hsl(217 91% 60%)",maxWidth:"900px"},children:[o.jsx("div",{style:{color:"hsl(220 14% 35%)",fontSize:"26px",fontWeight:"600"},children:"That's equivalent to:"}),o.jsxs("div",{className:"space-y-3",children:[o.jsxs("div",{style:{color:"hsl(220 14% 20%)",fontSize:"32px",fontWeight:"700"},children:[s.item.emoji," ",s.formatted]}),o.jsxs("div",{style:{color:"hsl(220 14% 20%)",fontSize:"32px",fontWeight:"700"},children:[l.item.emoji," ",l.formatted]})]})]})]}),o.jsx("div",{className:"text-center",style:{color:"hsl(220 14% 45%)",fontSize:"24px",fontWeight:"600"},children:"Track your meetings at meetingcost.online"})]})})});z3.displayName="ShareableStatsCard";const q3=({meetingTitle:e,duration:t,attendeeCount:r,totalCost:n,rating:i})=>{const[a,s]=w.useState(!1),[l,A]=w.useState(!1),[c,u]=w.useState(e),[d,f]=w.useState(!1),[h,m]=w.useState(0),p=w.useRef(null),v=()=>{u(e),A(!0)},x=async()=>{A(!1),s(!0),f(!0);try{m(Date.now()),await new Promise(B=>setTimeout(B,150));const g=p.current;
462if(!g)throw new Error("Share card element not found");(await Bue(g,{backgroundColor:null,scale:2,logging:!1,useCORS:!0})).toBlob(B=>{if(!B){be({title:"Error generating image",description:"Please try again.",variant:"destructive"});return}const b=URL.createObjectURL(B),C=document.createElement("a");if(C.download=`meeting-stats-${Date.now()}.png`,C.href=b,C.click(),URL.revokeObjectURL(b),be({title:"Image downloaded! ð",description:"Share it on social media to spread the word!"}),navigator.share&&navigator.canShare){const j=new File([B],"meeting-stats.png",{type:"image/png"});navigator.canShare({files:[j]})&&navigator.share({title:"My Meeting Cost Stats",text:`Our meeting cost $${n.toFixed(2)}! ð¸`,files:[j]}).catch(()=>{})}},"image/png")}catch(g){console.error("Error generating image:",g),be({title:"Error generating image",description:"Please try again.",variant:"destructive"})}finally{s(!1),f(!1)}};return o.jsxs(o.Fragment,{children:[o.jsxs(z,{onClick:v,disabled:a,variant:"outline",className:"flex items-center gap-2",children:[o.jsx(oE,{className:"h-4 w-4"}),"Share Stats"]}),o.jsx(qu,{open:l,onOpenChange:A,children:o.jsxs(AA,{children:[o.jsxs(cA,{children:[o.jsx(uA,{children:"Share Meeting Stats"}),o.jsx(dA,{children:"Customize the meeting title before generating your shareable image."})]}),o.jsx("div",{className:"grid gap-4 py-4",children:o.jsxs("div",{className:"grid gap-2",children:[o.jsx(he,{htmlFor:"meeting-title",children:"Meeting Title"}),o.jsx(_e,{id:"meeting-title",value:c,onChange:g=>u(g.target.value),placeholder:"Enter meeting title..."})]})}),o.jsxs(Ix,{children:[o.jsx(z,{variant:"outline",onClick:()=>A(!1),children:"Cancel"}),o.jsx(z,{onClick:x,disabled:!c.trim()||a,children:a?"Generating...":"Generate Image"})]})]})}),d&&o.jsx(z3,{ref:p,meetingTitle:c,duration:t,attendeeCount:r,totalCost:n,rating:i},h)]})},Eue=()=>{const{user:e}=Tr(),[t,r]=w.useState(null),[n,i]=w.useState(null);w.useEffect(()=>{const v=localStorage.getItem("lastMeeting");if(v){const x=JSON.parse(v);r(x),i(x.meetingRating||null)}},[]);const a=[{value:"waste",emoji:"ð¤",label:"Waste of Time",color:"hover:bg-red-50 hover:border-red-300",selectedColor:"bg-red-50 border-red-500"},{value:"below-average",emoji:"ð",label:"Below Average",color:"hover:bg-orange-50 hover:border-orange-300",selectedColor:"bg-orange-50 border-orange-500"},{value:"neutral",emoji:"ð¤·",label:"Neutral",color:"hover:bg-yellow-50 hover:border-yellow-300",selectedColor:"bg-yellow-50 border-yellow-500"},{value:"productive",emoji:"ð",label:"Productive",color:"hover:bg-green-50 hover:border-green-300",selectedColor:"bg-green-50 border-green-500"},{value:"valuable",emoji:"â",label:"Extremely Valuable",color:"hover:bg-green-100 hover:border-green-400",selectedColor:"bg-green-100 border-green-600"}],s=v=>{if(i(v),t){const x={...t,meetingRating:v};r(x),localStorage.setItem("lastMeeting",JSON.stringify(x)),on.success("Thanks for your feedback!")}},l=()=>!n||!t?null:n==="waste"||n==="below-average"?o.jsxs("div",{className:"mt-4 p-4 bg-destructive/10 border border-destructive/20 rounded-lg space-y-2",children:[o.jsxs("p",{className:"font-semibold text-destructive",children:["â ï¸ This meeting cost $",t.totalCost.toFixed(2)," and didn't deliver value."]}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Consider:"}),o.jsxs("ul",{className:"text-sm space-y-1 ml-4 list-disc",children:[o.jsx("li",{children:"Could this have been an email or async update?"}),o.jsx("li",{children:"Could you reduce the number of attendees?"}),o.jsx("li",{children:"Should this meeting be shorter?"})]})]}):n==="productive"||n==="valuable"?o.jsxs("div",{className:"mt-4 p-4 bg-green-50 border border-green-200 rounded-lg space-y-2",children:[o.jsxs("p",{className:"font-semibold text-green-900",children:["â
Great! This $",t.totalCost.toFixed(2)," investment delivered value."]}),t.projectValue>0&&o.jsxs("p",{className:"text-sm text-muted-foreground",children:["The decisions made likely saved or earned more than the ",c.toFixed(1),"% of project budget spent."]}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Keep this meeting format for similar topics."})]}):null;if(!t)return o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Qt,{}),o.jsxs("div",{className:"container mx-auto px-4 py-20 text-center",children:[o.jsx("h1",{className:"text-3xl font-bold mb-4",children:"No Meeting Data Found"}),o.jsx("p",{className:"text-muted-foreground mb-8",children:"Start a meeting calculation to see results here"}),o.jsx(z,{asChild:!0,children:o.jsx(de,{to:"/calculator",children:"Go to Calculator"})})]})]});const A=v=>{const x=Math.floor(v/3600),g=Math.floor(v%3600/60);return x>0?`${x}h ${g}m`:`${g}m`},c=t.projectValue>0?t.totalCost/t.projectValue*100:0,u=Math.floor(t.totalCost/5),d=t.totalCost*52,f=`Just calculated: Our "${t.title}" meeting cost $${t.totalCost.toFixed(2)} ð¸ Track your meeting costs at`,h=()=>{navigator.clipboard.writeText(window.location.origin),on.success("Link copied to clipboard!")},m=()=>{const v=`https://twitter.com/intent/tweet?text=${encodeURIComponent(f)}&url=${encodeURIComponent(window.location.origin)}`;window.open(v,"_blank")},p=t?{"@context":"https://schema.org","@type":"AnalysisNewsArticle",headline:`Meeting Cost Report: ${t.title}`,description:`This meeting cost $${t.totalCost.toFixed(2)} over ${A(t.duration)}`,datePublished:new Date().toISOString()}:null;return o.jsxs("div",{className:"min-h-screen bg-background",children:[t&&o.jsx(Oa,{title:"Meeting Cost Report - Your Analysis Results",description:`Vie
462w your meeting cost analysis: $${t.totalCost.toFixed(2)} over ${A(t.duration)}. Get efficiency scores and actionable recommendations.`,canonicalUrl:"https://meetingcost.online/results",ogImage:"https://meetingcost.online/og-image-home.png",structuredData:p}),o.jsx(Qt,{}),o.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx("h1",{className:"text-4xl font-bold mb-2",children:"Meeting Summary"}),o.jsx("p",{className:"text-xl text-muted-foreground",children:t.title})]}),o.jsx(J,{className:"mb-6 shadow-lg border-2",children:o.jsx(Z,{className:"pt-8 pb-8",children:o.jsxs("div",{className:"text-center space-y-4",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Duration"}),o.jsx("p",{className:"text-3xl font-bold",children:A(t.duration)})]}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Total Cost"}),o.jsxs("p",{className:"text-6xl font-bold text-destructive",children:["$",t.totalCost.toFixed(2)]})]})]})})}),o.jsxs(J,{className:"mb-6 shadow-card",children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Was This Meeting Worth It?"})}),o.jsxs(Z,{children:[o.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-5 gap-3",children:a.map(v=>o.jsxs("button",{onClick:()=>s(v.value),className:`p-4 border-2 rounded-lg transition-all cursor-pointer text-center ${n===v.value?v.selectedColor:`border-border ${v.color}`}`,children:[o.jsx("div",{className:"text-4xl mb-2",children:v.emoji}),o.jsx("div",{className:"text-xs font-medium leading-tight",children:v.label})]},v.value))}),l()]})]}),o.jsxs(J,{className:"mb-6 shadow-card",children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Cost Breakdown"})}),o.jsx(Z,{children:t.quickMode?o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex justify-between",children:[o.jsxs("span",{children:[t.quickAttendeeCount," Attendees"]}),o.jsxs("span",{className:"font-medium",children:["$",t.quickAvgRate,"/hr average"]})]}),o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{children:"Cost per attendee"}),o.jsxs("span",{className:"font-medium",children:["$",(t.totalCost/t.quickAttendeeCount).toFixed(2)]})]})]}):o.jsx("div",{className:"space-y-3",children:t.attendees.map((v,x)=>{const g=v.hourlyRate*t.duration/3600;return o.jsxs("div",{className:"flex justify-between items-start p-3 bg-muted rounded-lg",children:[o.jsxs("div",{children:[o.jsx("p",{className:"font-medium",children:v.name}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:[v.role," - $",v.hourlyRate,"/hr à ",A(t.duration)]})]}),o.jsxs("p",{className:"font-bold",children:["$",g.toFixed(2)]})]},x)})})})]}),t.projectValue>0&&o.jsxs(J,{className:"mb-6 shadow-card",children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Project Impact"})}),o.jsx(Z,{children:o.jsx("div",{className:"text-center space-y-4",children:o.jsxs("div",{children:[o.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"This meeting consumed"}),o.jsxs("p",{className:"text-5xl font-bold text-destructive",children:[c.toFixed(1),"%"]}),o.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:["of your $",t.projectValue.toLocaleString()," project"]})]})})})]}),o.jsxs(J,{className:"mb-6 shadow-card",children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Cost Insights"})}),o.jsxs(Z,{className:"space-y-3",children:[o.jsx("div",{className:"p-4 bg-muted rounded-lg",children:o.jsxs("p",{className:"text-sm",children:["ð° This meeting cost enough to buy"," ",o.jsxs("span",{className:"font-bold",children:[u," cups of coffee"]})]})}),o.jsx("div",{className:"p-4 bg-muted rounded-lg",children:o.jsxs("p",{className:"text-sm",children:["ð
If held weekly, annual cost:"," ",o.jsxs("span",{className:"font-bold",children:["$",d.toLocaleString()]})]})}),t.totalCost>500&&o.jsx("div",{className:"p-4 bg-muted rounded-lg",children:o.jsxs("p",{className:"text-sm",children:["ð¨âð» You could have hired a contractor for"," ",o.jsxs("span",{className:"font-bold",children:[Math.floor(t.totalCost/50)," hours"]})," ","instead"]})})]})]}),!e&&o.jsxs(J,{className:"mb-6 shadow-lg bg-gradient-to-br from-primary/10 via-primary/5 to-background border-primary/30",children:[o.jsx(Ee,{children:o.jsxs(Se,{className:"flex items-center gap-2 text-xl",children:[o.jsx(lp,{className:"h-6 w-6 text-primary"}),"Track All Your Meetings"]})}),o.jsxs(Z,{className:"space-y-4",children:[o.jsx("p",{className:"text-sm text-muted-foreground",children:"Sign up for FREE to save your meeting history and access powerful analytics!"}),o.jsxs("div",{className:"bg-muted/50 rounded-lg p-4 space-y-2",children:[o.jsx("p",{className:"text-sm font-medium",children:"â
Free Features:"}),o.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[o.jsx("li",{children:"⢠Save unlimited meeting history"}),o.jsx("li",{children:"⢠Track costs over time"}),o.jsx("li",{children:"⢠Basic analytics dashboard"})]})]}),o.jsxs("div",{className:"bg-gradient-to-r from-primary/10 to-primary/5 rounded-lg p-4 space-y-2 border border-primary/20",children:[o.jsx("p",{className:"text-sm font-medium",children:"ð Pro Upgrade:"}),o.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[o.jsx("li",{children:"⢠Team presets & templates"}),o.jsx("li",{children:"⢠Advanced analytics & trends"}),o.jsx("li",{children:"⢠Export reports (PDF/Excel)"}),o.jsx("li",{children:"⢠Priority support"})]})]}),o.jsxs("div",{className:"flex flex-col gap-3",children:[o.jsx(z,{asChild:!0,size:"lg",className:"w-full",children:o.jsx(de,{to:"/auth",children:"Sign Up Free"})}),o.jsx(z,{asChild:!0,variant:"outline",size:"lg",className:"w-full",children:o.jsx(de,{to:"/pricing",children:"View Pro Plans"})})]})]})]}),o.jsxs(J,{className:"mb-6 shadow-card",children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Share Your Results"})}),o.jsxs(Z,{className:"space-y-4",children:[o.jsx("p",{className:"text-sm text-muted-foreground",children:"Spread awareness about meeting costs"}),o.jsxs("div",{className:"flex flex-wrap gap-3",children:[o.jsx(q3,{meetingTitle:t.title,duration:t.duration,attendeeCount:t.quickMode?t.quickAttendeeCount:t.attendees.length,totalCost:t.totalCost,rating:t.meetingRating}),o.jsxs(z,{variant:"outline",onClick:h,children:[o.jsx(oE,{className:"mr-2 h-4 w-4"})," Copy Link"]}),o.jsxs(z,{variant:"outline",onClick:m,children:[o.jsx(b7,{className:"mr-2 h-4 w-4"})," Share on Twitter"]})]})]})]}),o.jsxs("div",{className:"flex gap-3 justify-center flex-wrap",children:[o.jsx(z,{asChild:!0,size:"lg",children:o.jsx(de,{to:"/calculator",children:"Start New Meeting"})}),o.jsx(z,{asChild:!0,variant:"outline",size:"lg",children:o.jsx(de,{to:"/pricing",children:"Upgrade to Pro"})})]})]})]})},Sue=async e=>{const{data:t,error:r}=await Be.functions.invoke("create-checkout-session",{body:{priceType:e}}
462);if(r)throw r;t!=null&&t.url&&(window.location.href=t.url)},Nue=async()=>{const{data:e,error:t}=await Be.functions.invoke("create-portal-session");if(t)throw t;e!=null&&e.url&&(window.location.href=e.url)},Oue=()=>{const{user:e,isPro:t}=Tr(),r=Wn(),[n,i]=w.useState(!1),a={"@context":"https://schema.org","@type":"Product",name:"Meeting Cost Calculator Pro",description:"Professional meeting cost tracking for teams and enterprises",offers:[{"@type":"Offer",name:"Free Plan",price:"0",priceCurrency:"USD"},{"@type":"Offer",name:"Pro Monthly",price:"9",priceCurrency:"USD",priceValidUntil:"2026-12-31"},{"@type":"Offer",name:"Pro Annual",price:"49",priceCurrency:"USD",priceValidUntil:"2026-12-31"}]},s=async l=>{if(!e){r("/auth");return}i(!0);try{await Sue(l)}catch(A){console.error("Checkout error:",A),be({title:"Error",description:"Failed to start checkout. Please try again.",variant:"destructive"}),i(!1)}};return o.jsxs("div",{className:"min-h-screen bg-gradient-hero",children:[o.jsx(Oa,{title:"Pricing Plans - Meeting Cost Calculator for Teams",description:"Simple pricing for meeting cost tracking. Free for individuals, Pro for teams, Enterprise for organizations. Start reducing meeting waste today.",canonicalUrl:"https://meetingcost.online/pricing",ogImage:"https://meetingcost.online/og-image-pricing.png",keywords:"meeting cost software pricing, team productivity tools, meeting tracker pricing, business meeting calculator",structuredData:a}),o.jsx(Qt,{}),o.jsxs("div",{className:"container mx-auto px-4 py-16",children:[o.jsxs("div",{className:"text-center mb-12",children:[o.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"Simple, Transparent Pricing"}),o.jsx("p",{className:"text-xl text-muted-foreground",children:"Choose the plan that works for you"})]}),o.jsxs("div",{className:"grid md:grid-cols-2 gap-8 max-w-4xl mx-auto",children:[o.jsxs(J,{className:"shadow-lg",children:[o.jsxs(Ee,{className:"text-center pb-8",children:[o.jsx(Se,{className:"text-3xl mb-2",children:"Free"}),o.jsx("div",{className:"text-4xl font-bold mb-2",children:"$0"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Forever free"})]}),o.jsxs(Z,{className:"space-y-4",children:[o.jsxs("div",{className:"space-y-3",children:[o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx(Yn,{className:"h-5 w-5 text-success mt-0.5 flex-shrink-0"}),o.jsx("span",{className:"text-sm",children:"Unlimited single-meeting calculations"})]}),o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx(Yn,{className:"h-5 w-5 text-success mt-0.5 flex-shrink-0"}),o.jsx("span",{className:"text-sm",children:"Basic share images"})]}),o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx(Yn,{className:"h-5 w-5 text-success mt-0.5 flex-shrink-0"}),o.jsx("span",{className:"text-sm",children:"Real-time cost tracking"})]}),o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx($i,{className:"h-5 w-5 text-muted-foreground mt-0.5 flex-shrink-0"}),o.jsx("span",{className:"text-sm text-muted-foreground",children:"No meeting history"})]}),o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx($i,{className:"h-5 w-5 text-muted-foreground mt-0.5 flex-shrink-0"}),o.jsx("span",{className:"text-sm text-muted-foreground",children:"No team presets"})]}),o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx($i,{className:"h-5 w-5 text-muted-foreground mt-0.5 flex-shrink-0"}),o.jsx("span",{className:"text-sm text-muted-foreground",children:"No analytics dashboard"})]})]}),o.jsx(z,{asChild:!0,className:"w-full",variant:"outline",size:"lg",children:o.jsx(de,{to:"/calculator",children:"Get Started Free"})})]})]}),o.jsxs(J,{className:"shadow-lg border-2 border-primary relative",children:[o.jsx("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2",children:o.jsx("div",{className:"bg-primary text-primary-foreground px-4 py-1 rounded-full text-sm font-medium",children:"Most Popular"})}),o.jsxs(Ee,{className:"text-center pb-8 pt-8",children:[o.jsx(Se,{className:"text-3xl mb-2",children:"Pro"}),o.jsxs("div",{className:"mb-2",children:[o.jsx("span",{className:"text-4xl font-bold",children:"$9"}),o.jsx("span",{className:"text-muted-foreground",children:"/month"})]}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"or $49/year (save $59)"})]}),o.jsxs(Z,{className:"space-y-4",children:[o.jsxs("div",{className:"space-y-3",children:[o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx(Yn,{className:"h-5 w-5 text-success mt-0.5 flex-shrink-0"}),o.jsx("span",{className:"text-sm font-medium",children:"Everything in Free, plus:"})]}),o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx(Yn,{className:"h-5 w-5 text-success mt-0.5 flex-shrink-0"}),o.jsx("span",{className:"text-sm",children:"Save unlimited meeting history"})]}),o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx(Yn,{className:"h-5 w-5 text-success mt-0.5 flex-shrink-0"}),o.jsx("span",{className:"text-sm",children:"Create & save team presets"})]}),o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx(Yn,{className:"h-5 w-5 text-success mt-0.5 flex-shrink-0"}),o.jsx("span",{className:"text-sm",children:"Meeting analytics dashboard"})]}),o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx(Yn,{className:"h-5 w-5 text-success mt-0.5 flex-shrink-0"}),o.jsx("span",{className:"text-sm",children:"Custom branding on share images"})]}),o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx(Yn,{className:"h-5 w-5 text-success mt-0.5 flex-shrink-0"}),o.jsx("span",{className:"text-sm",children:"CSV export of all meetings"})]}),o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx(Yn,{className:"h-5 w-5 text-success mt-0.5 flex-shrink-0"}),o.jsx("span",{className:"text-sm",children:"Compare meetings over time"})]})]}),t?o.jsx(z,{asChild:!0,className:"w-full",size:"lg",variant:"outline",children:o.jsx(de,{to:"/settings",children:"Manage Subscription"})}):o.jsxs(o.Fragment,{children:[o.jsx(z,{onClick:()=>s("monthly"),className:"w-full",size:"lg",disabled:n,children:n?"Loading...":"Start Monthly Plan"}),o.jsx(z,{onClick:()=>s("annual"),className:"w-full",size:"lg",variant:"outline",disabled:n,children:n?"Loading...":"Start Annual Plan (Save $59)"})]}),o.jsx("div",{className:"text-center space-y-2 pt-4",children:t?o.jsx("p",{className:"text-sm font-medium text-success",children:"â You're on Pro"}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-sm text-muted-foreground",children:"â No credit card required"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"â Cancel anytime"})]})})]})]})]}),o.jsxs("div",{className:"max-w-3xl mx-auto mt-20",children:[o.jsx("h2",{className:"text-3xl font-bold text-center mb-8",children:"Frequently Asked Questions"}),o.jsxs("div",{className:"space-y-6",children:[o.jsxs(J,{className:"shadow-card",children:[o.jsx(Ee,{children:o.jsx(Se,{className:"text-lg",children:"Can I try Pro before paying?"})}),o.jsx(Z,{children:o.jsx("p",{className:"text-muted-foreground",children:"Yes! Pro comes with a 7-day free trial. You'll only be charged after the trial period ends."})})]}),o.jsxs(J,{className:"shadow-card",children:[o.jsx(Ee,{children:o.jsx(Se,{className:"text-lg",children:"What if I need to cancel?"})}),o.jsx(Z,{children:o.jsx("p",{className:"text-muted-foreground",children:"You can cancel your Pro subscription anytime from your account settings. We also offer a 30-day money-back guarantee if you're not satisfied."})})]}),o.jsxs(J,{className:"shadow-card",children:[o.jsx(Ee,{children:o.jsx(Se,{className:"text-lg",children:"Do you offer team or enterprise plans?"})}),o.jsx(Z,{children:o.jsx("p",{className:"text-muted-foreground",children:"Yes! We offer custom plans for teams and enterprises. Contact us for pricing and features tailored to your organization's needs."})})]}),o.jsxs(J,{className:"shadow-card",children:[o.jsx(Ee,{children:o.jsx(Se,{className:"text-lg",children:"How is the annual plan billed?"})}),o.jsx(Z,{children:o.jsx("p",{className:"text-muted-foreground",children:"The annual plan is billed as a one-time payment of $49/year, saving you $59 compared to paying monthly ($108/year)."})})]})]})]}),o.jsx("div",{className:"max-w-3xl mx-auto mt-20 text-center",children:o.jsxs("div",{className:"bg-gradient-primary rounded-2xl p-12 shadow-lg",children:[o.jsx("h2",{className:"text-3xl font-bold text-primary-foreground mb-4",children:"Ready to Take Control of Meeting Costs?"}
462),o.jsx("p",{className:"text-lg text-primary-foreground/90 mb-8",children:"Start tracking your meeting ROI today"}),o.jsx(z,{asChild:!0,size:"lg",variant:"secondary",className:"text-lg h-14 px-8",children:o.jsx(de,{to:"/calculator",children:"Try It Free Now"})})]})})]})]})};var sw="Tabs",[Tue,rLe]=rn(sw,[$x]),Y3=$x(),[Fue,AS]=Tue(sw),X3=w.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:i,defaultValue:a,orientation:s="horizontal",dir:l,activationMode:A="automatic",...c}=e,u=gp(l),[d,f]=di({prop:n,onChange:i,defaultProp:a??"",caller:sw});return o.jsx(Fue,{scope:r,baseId:Qn(),value:d,onValueChange:f,orientation:s,dir:u,activationMode:A,children:o.jsx(Oe.div,{dir:u,"data-orientation":s,...c,ref:t})})});X3.displayName=sw;var J3="TabsList",Z3=w.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...i}=e,a=AS(J3,r),s=Y3(r);return o.jsx(U$,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:n,children:o.jsx(Oe.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});Z3.displayName=J3;var eK="TabsTrigger",tK=w.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:i=!1,...a}=e,s=AS(eK,r),l=Y3(r),A=iK(s.baseId,n),c=aK(s.baseId,n),u=n===s.value;return o.jsx(Q$,{asChild:!0,...l,focusable:!i,active:u,children:o.jsx(Oe.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:A,...a,ref:t,onMouseDown:Ae(e.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?s.onValueChange(n):d.preventDefault()}),onKeyDown:Ae(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&s.onValueChange(n)}),onFocus:Ae(e.onFocus,()=>{const d=s.activationMode!=="manual";!u&&!i&&d&&s.onValueChange(n)})})})});tK.displayName=eK;var rK="TabsContent",nK=w.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:i,children:a,...s}=e,l=AS(rK,r),A=iK(l.baseId,n),c=aK(l.baseId,n),u=n===l.value,d=w.useRef(u);return w.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),o.jsx(bn,{present:i||u,children:({present:f})=>o.jsx(Oe.div,{"data-state":u?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":A,hidden:!f,id:c,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&a})})});nK.displayName=rK;function iK(e,t){return`${e}-trigger-${t}`}function aK(e,t){return`${e}-content-${t}`}var Pue=X3,sK=Z3,oK=tK,lK=nK;const cS=Pue,ow=w.forwardRef(({className:e,...t},r)=>o.jsx(sK,{ref:r,className:ce("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));ow.displayName=sK.displayName;const as=w.forwardRef(({className:e,...t},r)=>o.jsx(oK,{ref:r,className:ce("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));as.displayName=oK.displayName;const ss=w.forwardRef(({className:e,...t},r)=>o.jsx(lK,{ref:r,className:ce("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));ss.displayName=lK.displayName;var Bp=e=>e.type==="checkbox",xl=e=>e instanceof Date,Gr=e=>e==null;const AK=e=>typeof e=="object";var Yt=e=>!Gr(e)&&!Array.isArray(e)&&AK(e)&&!xl(e),cK=e=>Yt(e)&&e.target?Bp(e.target)?e.target.checked:e.target.value:e,kue=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,uK=(e,t)=>e.has(kue(t)),Iue=e=>{const t=e.constructor&&e.constructor.prototype;return Yt(t)&&t.hasOwnProperty("isPrototypeOf")},uS=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function lr(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(uS&&(e instanceof Blob||n))&&(r||Yt(e)))if(t=r?[]:{},!r&&!Iue(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=lr(e[i]));else return e;return t}var lw=e=>/^\w*$/.test(e),zt=e=>e===void 0,dS=e=>Array.isArray(e)?e.filter(Boolean):[],fS=e=>dS(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ue=(e,t,r)=>{if(!t||!Yt(e))return r;const n=(lw(t)?[t]:fS(t)).reduce((i,a)=>Gr(i)?i:i[a],e);return zt(n)||n===e?zt(e[t])?r:e[t]:n},On=e=>typeof e=="boolean",dt=(e,t,r)=>{let n=-1;const i=lw(t)?[t]:fS(t),a=i.length,s=a-1;for(;++n<a;){const l=i[n];let A=r;if(n!==s){const c=e[l];
462A=Yt(c)||Array.isArray(c)?c:isNaN(+i[n+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=A,e=e[l]}};const Qv={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ui={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},La={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},hS=S.createContext(null);hS.displayName="HookFormContext";const Aw=()=>S.useContext(hS),Uue=e=>{const{children:t,...r}=e;return S.createElement(hS.Provider,{value:r},t)};var dK=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==Ui.all&&(t._proxyFormState[s]=!n||Ui.all),r&&(r[s]=!0),e[s]}});return i};const pS=typeof window<"u"?S.useLayoutEffect:S.useEffect;function Que(e){const t=Aw(),{control:r=t.control,disabled:n,name:i,exact:a}=e||{},[s,l]=S.useState(r._formState),A=S.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return pS(()=>r._subscribe({name:i,formState:A.current,exact:a,callback:c=>{!n&&l({...r._formState,...c})}}),[i,n,a]),S.useEffect(()=>{A.current.isValid&&r._setValid(!0)},[r]),S.useMemo(()=>dK(s,r,A.current,!1),[s,r])}var da=e=>typeof e=="string",fK=(e,t,r,n,i)=>da(e)?(n&&t.watch.add(e),ue(r,e,i)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),ue(r,a))):(n&&(t.watchAll=!0),r),_1=e=>Gr(e)||!AK(e);function Xa(e,t,r=new WeakSet){if(_1(e)||_1(t))return e===t;if(xl(e)&&xl(t))return e.getTime()===t.getTime();const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const a of n){const s=e[a];if(!i.includes(a))return!1;if(a!=="ref"){const l=t[a];if(xl(s)&&xl(l)||Yt(s)&&Yt(l)||Array.isArray(s)&&Array.isArray(l)?!Xa(s,l,r):s!==l)return!1}}return!0}function Mue(e){const t=Aw(),{control:r=t.control,name:n,defaultValue:i,disabled:a,exact:s,compute:l}=e||{},A=S.useRef(i),c=S.useRef(l),u=S.useRef(void 0);c.current=l;const d=S.useMemo(()=>r._getWatch(n,A.current),[r,n]),[f,h]=S.useState(c.current?c.current(d):d);return pS(()=>r._subscribe({name:n,formState:{values:!0},exact:s,callback:m=>{if(!a){const p=fK(n,r._names,m.values||r._formValues,!1,A.current);if(c.current){const v=c.current(p);Xa(v,u.current)||(h(v),u.current=v)}else h(p)}}}),[r,a,n,s]),S.useEffect(()=>r._removeUnmounted()),f}function Rue(e){const t=Aw(),{name:r,disabled:n,control:i=t.control,shouldUnregister:a,defaultValue:s}=e,l=uK(i._names.array,r),A=S.useMemo(()=>ue(i._formValues,r,ue(i._defaultValues,r,s)),[i,r,s]),c=Mue({control:i,name:r,defaultValue:A,exact:!0}),u=Que({control:i,name:r,exact:!0}),d=S.useRef(e),f=S.useRef(i.register(r,{...e.rules,value:c,...On(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;const h=S.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ue(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!ue(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!ue(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!ue(u.validatingFields,r)},error:{enumerable:!0,get:()=>ue(u.errors,r)}}),[u,r]),m=S.useCallback(g=>f.current.onChange({target:{value:cK(g),name:r},type:Qv.CHANGE}),[r]),p=S.useCallback(()=>f.current.onBlur({target:{value:ue(i._formValues,r),name:r},type:Qv.BLUR}),[r,i._formValues]),v=S.useCallback(g=>{const y=ue(i._fields,r);y&&g&&(y._f.ref={focus:()=>g.focus&&g.focus(),select:()=>g.select&&g.select(),setCustomValidity:B=>g.setCustomValidity(B),reportValidity:()=>g.reportValidity()})},[i._fields,r]),x=S.useMemo(()=>({name:r,value:c,...On(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:m,onBlur:p,ref:v}),[r,n,u.disabled,m,p,v,c]);return S.useEffect(()=>{const g=i._options.shouldUnregister||a;i.register(r,{...d.current.rules,...On(d.current.disabled)?{disabled:d.current.disabled}:{}});const y=(B,b)=>{const C=ue(i._fields,B);C&&C._f&&(C._f.mount=b)};if(y(r,!0),g){const B=lr(ue(i._options.defaultValues,r));dt(i._defaultValues,r,B),zt(ue(i._formValues,r))&&dt(i._formValues,r,B)}return!l&&i.register(r),()=>{(l?g&&!i._state.action:g)?i.unregister(r):y(r,!1)}},[r,i,l,a]),S.useEffect(()=>{i._setDisabledField({disabled:n,name:r})},[n,r,i]),S.useMemo(()=>({field:x,formState:u,fieldState:h}),[x,u,h])}const Due=e=>e.render(Rue(e));var hK=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},Ef=e=>Array.isArray(e)?e:[e],RP=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},ln=e=>Yt(e)&&!Object.keys(e).length,mS=e=>e.type==="file",Qi=e=>typeof e=="function",Mv=e=>{if(!uS)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},pK=e=>e.type==="select-multiple",gS=e=>e.type==="radio",Lue=e=>gS(e)||Bp(e),Pb=e=>Mv(e)&&e.isConnected;function $ue(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=zt(e)?n++:e[t[n++]];return e}function Hue(e){for(const t in e)if(e.hasOwnProperty(t)&&!zt(e[t]))return!1;return!0}function Xt(e,t){const r=Array.isArray(t)?t:lw(t)?[t]:fS(t),n=r.length===1?e:$ue(e,r),i=r.length-1,a=r[i];return n&&delete n[a],i!==0&&(Yt(n)&&ln(n)||Array.isArray(n)&&Hue(n))&&Xt(e,r.slice(0,-1)),e}var mK=e=>{for(const t in e)if(Qi(e[t]))return!0;return!1};function Rv(e,t={}){const r=Array.isArray(e);if(Yt(e)||r)for(const n in e)Array.isArray(e[n])||Yt(e[n])&&!mK(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Rv(e[n],t[n])):Gr(e[n])||(t[n]=!0);return t}function gK(e,t,r){const n=Array.isArray(e);if(Yt(e)||n)for(const i in e)Array.isArray(e[i])||Yt(e[i])&&!mK(e[i])?zt(t)||_1(r[i])?r[i]=Array.isArray(e[i])?Rv(e[i],[]):{...Rv(e[i])}:gK(e[i],Gr(t)?{}:t[i],r[i]):r[i]=!Xa(e[i],t[i]);return r}var Td=(e,t)=>gK(e,t,Rv(t));const DP={value:!1,isValid:!1},LP={value:!0,isValid:!0};var vK=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!zt(e[0].attributes.value)?zt(e[0].value)||e[0].value===""?LP:{value:e[0].value,isValid:!0}:LP:DP}return DP},yK=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>
vendor: 6,637 bytes, line 462
462zt(e)?e:t?e===""?NaN:e&&+e:r&&da(e)?new Date(e):n?n(e):e;const $P={isValid:!1,value:null};var xK=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,$P):$P;function HP(e){const t=e.ref;return mS(t)?t.files:gS(t)?xK(e.refs).value:pK(t)?[...t.selectedOptions].map(({value:r})=>r):Bp(t)?vK(e.refs).value:yK(zt(t.value)?e.ref.value:t.value,e)}var Kue=(e,t,r,n)=>{const i={};for(const a of e){const s=ue(t,a);s&&dt(i,a,s._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},Dv=e=>e instanceof RegExp,Fd=e=>zt(e)?e:Dv(e)?e.source:Yt(e)?Dv(e.value)?e.value.source:e.value:e,KP=e=>({isOnSubmit:!e||e===Ui.onSubmit,isOnBlur:e===Ui.onBlur,isOnChange:e===Ui.onChange,isOnAll:e===Ui.all,isOnTouch:e===Ui.onTouched});const VP="AsyncFunction";var Vue=e=>!!e&&!!e.validate&&!!(Qi(e.validate)&&e.validate.constructor.name===VP||Yt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===VP)),Wue=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),WP=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Sf=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const a=ue(e,i);if(a){const{_f:s,...l}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!n)return!0;if(s.ref&&t(s.ref,s.name)&&!n)return!0;if(Sf(l,t))break}else if(Yt(l)&&Sf(l,t))break}}};function GP(e,t,r){const n=ue(e,r);if(n||lw(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const a=i.join("."),s=ue(t,a),l=ue(e,a);if(s&&!Array.isArray(s)&&r!==a)return{name:r};if(l&&l.type)return{name:a,error:l};if(l&&l.root&&l.root.type)return{name:`${a}.root`,error:l.root};i.pop()}return{name:r}}var Gue=(e,t,r,n)=>{r(e);const{name:i,...a}=e;return ln(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!n||Ui.all))},zue=(e,t,r)=>!e||!t||e===t||Ef(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),que=(e,t,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?n.isOnChange:i.isOnChange)?e:!0,Yue=(e,t)=>!dS(ue(e,t)).length&&Xt(e,t),Xue=(e,t,r)=>{const n=Ef(ue(e,r));return dt(n,"root",t[r]),dt(e,r,n),e},Ng=e=>da(e);function zP(e,t,r="validate"){if(Ng(e)||Array.isArray(e)&&e.every(Ng)||On(e)&&!e)return{type:r,message:Ng(e)?e:"",ref:t}}var RA=e=>Yt(e)&&!Dv(e)?e:{value:e,message:""},qP=async(e,t,r,n,i,a)=>{const{ref:s,refs:l,required:A,maxLength:c,minLength:u,min:d,max:f,pattern:h,validate:m,name:p,valueAsNumber:v,mount:x}=e._f,g=ue(r,p);if(!x||t.has(p))return{};const y=l?l[0]:s,B=k=>{i&&y.reportValidity&&(y.setCustomValidity(On(k)?"":k||""),y.reportValidity())},b={},C=gS(s),j=Bp(s),_=C||j,E=(v||mS(s))&&zt(s.value)&&zt(g)||Mv(s)&&s.value===""||g===""||Array.isArray(g)&&!g.length,I=hK.bind(null,p,n,b),T=(k,N,F,M=La.maxLength,O=La.minLength)=>{const U=k?N:F;b[p]={type:k?M:O,message:U,ref:s,...I(k?M:O,U)}};if(a?!Array.isArray(g)||!g.length:A&&(!_&&(E||Gr(g))||On(g)&&!g||j&&!vK(l).isValid||C&&!xK(l).isValid)){const{value:k,message:N}=Ng(A)?{value:!!A,message:A}:RA(A);if(k&&(b[p]={type:La.required,message:N,ref:y,...I(La.required,N)},!n))return B(N),b}if(!E&&(!Gr(d)||!Gr(f))){let k,N;const F=RA(f),M=RA(d);if(!Gr(g)&&!isNaN(g)){const O=s.valueAsNumber||g&&+g;Gr(F.value)||(k=O>F.value),Gr(M.value)||(N=O<M.value)}else{const O=s.valueAsDate||new Date(g),U=$=>new Date(new Date().toDateString()+" "+$),P=s.type=="time",Q=s.type=="week";da(F.value)&&g&&(k=P?U(g)>U(F.value):Q?g>F.value:O>new Date(F.value)),da(M.value)&&g&&(N=P?U(g)<U(M.value):Q?g<M.value:O<new Date(M.value))}if((k||N)&&(T(!!k,F.message,M.message,La.max,La.min),!n))return B(b[p].message),b}if((c||u)&&!E&&(da(g)||a&&Array.isArray(g))){const k=RA(c),N=RA(u),F=!Gr(k.value)&&g.length>+k.value,M=!Gr(N.value)&&g.length<+N.value;if((F||M)&&(T(F,k.message,N.message),!n))return B(b[p].message),b}if(h&&!E&&da(g)){const{value:k,message:N}=RA(h);if(Dv(k)&&!g.match(k)&&(b[p]={type:La.pattern,message:N,ref:s,...I(La.pattern,N)},!n))return B(N),b}if(m){if(Qi(m)){const k=await m(g,r),N=zP(k,y);if(N&&(b[p]={...N,...I(La.validate,N.message)},!n))return B(N.message),b}else if(Yt(m)){let k={};for(const N in m){if(!ln(k)&&!n)break;const F=zP(await m[N](g,r),y,N);F&&(k={...F,...I(N,F.message)},B(F.message),n&&(b[p]=k))}if(!ln(k)&&(b[p]={ref:y,...k},!n))return b}}return B(!0),b};const Jue={mode:Ui.onSubmit,reValidateMode:Ui.onChange,shouldFocusError:!0};function Zue(e={}){let t={...Jue,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Qi(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},i=Yt(t.defaultValues)||Yt(t.values)?lr(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:lr(i),s={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},A,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let d={...u};const f={array:RP(),state:RP()},h=t.criteriaMode===Ui.all,m=R=>D=>{clearTimeout(c),c=setTimeout(R,D)},p=async R=>{if(!t.disabled&&(u.isValid||d.isValid||R)){const D=t.resolver?ln((await j()).errors):await E(n,!0);D!==r.isValid&&f.state.next({isValid:D})}},v=(R,D)=>{!t.disabled&&(u.isValidating||u.validatingFields||d.isValidating||d.validatingFields)&&((R||Array.from(l.mount)).forEach(H=>{H&&(D?dt(r.validatingFields,H,D):Xt(r.validatingFields,H))}),f.state.next({validatingFields:r.validatingFields,isValidating:!ln(r.validatingFields)}))},x=(R,D=[],H,te,ie=!0,ne=!0)=>{if(te&&H&&!t.disabled){if(s.action=!0,ne&&Array.isArray(ue(n,R))){const ye=H(ue(n,R),te.argA,te.argB);ie&&dt(n,R,ye)}if(ne&&Array.isArray(ue(r.errors,R))){const ye=H(ue(r.errors,R),te.argA,te.argB);ie&&dt(r.errors,R,ye),Yue(r.errors,R)}if((u.touchedFields||d.touchedFields)&&ne&&Array.isArray(ue(r.touchedFields,R))){const ye=H(ue(r.touchedFields,R),te.argA,te.argB);ie&&dt(r.touchedFields,R,ye)}(u.dirtyFields||d.dirtyFields)&&(r.dirtyFields=Td(i,a)),f.state.next({name:R,isDirty:T(R,D),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else dt(a,R,D)},g=(R,D)=>{dt(r.errors,R,D),f.state.next({errors:r.errors})},y=R=>{r.errors=R,f.state.next({errors:r.errors,isValid:!1})},B=(R,D,H,te)=>{const ie=ue(n,R);if(ie){const ne=ue(a,R,zt(H)?ue(i,R):H);zt(ne)||te&&te.defaultChecked||D?dt(a,R,D?ne:HP(ie._f)):F(R,ne),s.mount&&p()}},b=(R,D,H,te,ie)=>{let ne=!1,ye=!1;const Xe={name:R};if(!t.disabled){if(!H||te){(u.isDirty||d.isDirty)&&(ye=r.isDirty,r.isDirty=Xe.isDirty=T(),ne=ye!==Xe.isDirty);const mt=Xa(ue(i,R),D);
vendor: 4,279 bytes, line 462
462ye=!!ue(r.dirtyFields,R),mt?Xt(r.dirtyFields,R):dt(r.dirtyFields,R,!0),Xe.dirtyFields=r.dirtyFields,ne=ne||(u.dirtyFields||d.dirtyFields)&&ye!==!mt}if(H){const mt=ue(r.touchedFields,R);mt||(dt(r.touchedFields,R,H),Xe.touchedFields=r.touchedFields,ne=ne||(u.touchedFields||d.touchedFields)&&mt!==H)}ne&&ie&&f.state.next(Xe)}return ne?Xe:{}},C=(R,D,H,te)=>{const ie=ue(r.errors,R),ne=(u.isValid||d.isValid)&&On(D)&&r.isValid!==D;if(t.delayError&&H?(A=m(()=>g(R,H)),A(t.delayError)):(clearTimeout(c),A=null,H?dt(r.errors,R,H):Xt(r.errors,R)),(H?!Xa(ie,H):ie)||!ln(te)||ne){const ye={...te,...ne&&On(D)?{isValid:D}:{},errors:r.errors,name:R};r={...r,...ye},f.state.next(ye)}},j=async R=>{v(R,!0);const D=await t.resolver(a,t.context,Kue(R||l.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return v(R),D},_=async R=>{const{errors:D}=await j(R);if(R)for(const H of R){const te=ue(D,H);te?dt(r.errors,H,te):Xt(r.errors,H)}else r.errors=D;return D},E=async(R,D,H={valid:!0})=>{for(const te in R){const ie=R[te];if(ie){const{_f:ne,...ye}=ie;if(ne){const Xe=l.array.has(ne.name),mt=ie._f&&Vue(ie._f);mt&&u.validatingFields&&v([te],!0);const an=await qP(ie,l.disabled,a,h,t.shouldUseNativeValidation&&!D,Xe);if(mt&&u.validatingFields&&v([te]),an[ne.name]&&(H.valid=!1,D))break;!D&&(ue(an,ne.name)?Xe?Xue(r.errors,an,ne.name):dt(r.errors,ne.name,an[ne.name]):Xt(r.errors,ne.name))}!ln(ye)&&await E(ye,D,H)}}return H.valid},I=()=>{for(const R of l.unMount){const D=ue(n,R);D&&(D._f.refs?D._f.refs.every(H=>!Pb(H)):!Pb(D._f.ref))&&L(R)}l.unMount=new Set},T=(R,D)=>!t.disabled&&(R&&D&&dt(a,R,D),!Xa($(),i)),k=(R,D,H)=>fK(R,l,{...s.mount?a:zt(D)?i:da(R)?{[R]:D}:D},H,D),N=R=>dS(ue(s.mount?a:i,R,t.shouldUnregister?ue(i,R,[]):[])),F=(R,D,H={})=>{const te=ue(n,R);let ie=D;if(te){const ne=te._f;ne&&(!ne.disabled&&dt(a,R,yK(D,ne)),ie=Mv(ne.ref)&&Gr(D)?"":D,pK(ne.ref)?[...ne.ref.options].forEach(ye=>ye.selected=ie.includes(ye.value)):ne.refs?Bp(ne.ref)?ne.refs.forEach(ye=>{(!ye.defaultChecked||!ye.disabled)&&(Array.isArray(ie)?ye.checked=!!ie.find(Xe=>Xe===ye.value):ye.checked=ie===ye.value||!!ie)}):ne.refs.forEach(ye=>ye.checked=ye.value===ie):mS(ne.ref)?ne.ref.value="":(ne.ref.value=ie,ne.ref.type||f.state.next({name:R,values:lr(a)})))}(H.shouldDirty||H.shouldTouch)&&b(R,ie,H.shouldTouch,H.shouldDirty,!0),H.shouldValidate&&Q(R)},M=(R,D,H)=>{for(const te in D){if(!D.hasOwnProperty(te))return;const ie=D[te],ne=R+"."+te,ye=ue(n,ne);(l.array.has(R)||Yt(ie)||ye&&!ye._f)&&!xl(ie)?M(ne,ie,H):F(ne,ie,H)}},O=(R,D,H={})=>{const te=ue(n,R),ie=l.array.has(R),ne=lr(D);dt(a,R,ne),ie?(f.array.next({name:R,values:lr(a)}),(u.isDirty||u.dirtyFields||d.isDirty||d.dirtyFields)&&H.shouldDirty&&f.state.next({name:R,dirtyFields:Td(i,a),isDirty:T(R,ne)})):te&&!te._f&&!Gr(ne)?M(R,ne,H):F(R,ne,H),WP(R,l)&&f.state.next({...r,name:R}),f.state.next({name:s.mount?R:void 0,values:lr(a)})},U=async R=>{s.mount=!0;const D=R.target;let H=D.name,te=!0;const ie=ue(n,H),ne=mt=>{te=Number.isNaN(mt)||xl(mt)&&isNaN(mt.getTime())||Xa(mt,ue(a,H,mt))},ye=KP(t.mode),Xe=KP(t.reValidateMode);if(ie){let mt,an;const Ia=D.type?HP(ie._f):cK(R),Zi=R.type===Qv.BLUR||R.type===Qv.FOCUS_OUT,$p=!Wue(ie._f)&&!t.resolver&&!ue(r.errors,H)&&!ie._f.deps||que(Zi,ue(r.touchedFields,H),r.isSubmitted,Xe,ye),Yo=WP(H,l,Zi);dt(a,H,Ia),Zi?(ie._f.onBlur&&ie._f.onBlur(R),A&&A(0)):ie._f.onChange&&ie._f.onChange(R);const ea=b(H,Ia,Zi),Hp=!ln(ea)||Yo;if(!Zi&&f.state.next({name:H,type:R.type,values:lr(a)}),$p)return(u.isValid||d.isValid)&&(t.mode==="onBlur"?Zi&&p():Zi||p()),Hp&&f.state.next({name:H,...Yo?{}:ea});if(!Zi&&Yo&&f.state.next({...r}),t.resolver){const{errors:Ua}=await j([H]);if(ne(Ia),te){const o0=GP(r.errors,n,H),Kp=GP(Ua,n,o0.name||H);mt=Kp.error,H=Kp.name,an=ln(Ua)}}else v([H],!0),mt=(await qP(ie,l.disabled,a,h,t.shouldUseNativeValidation))[H],v([H]),ne(Ia),te&&(mt?an=!1:(u.isValid||d.isValid)&&(an=await E(n,!0)));te&&(ie._f.deps&&Q(ie._f.deps),C(H,an,mt,ea))}},P=(R,D)=>{if(ue(r.errors,D)&&R.focus)return R.focus(),1},Q=async(R,D={})=>{let H,te;const ie=Ef(R);if(t.resolver){const ne=await _(zt(R)?R:ie);H=ln(ne),te=R?!ie.some(ye=>ue(ne,ye)):H}else R?(te=(await Promise.all(ie.map(async ne=>{const ye=ue(n,ne);return await E(ye&&ye._f?{[ne]:ye}:ye)}))).every(Boolean),!(!te&&!r.isValid)&&p()):te=H=await E(n);
vendor: 5,123 bytes, line 462
462return f.state.next({...!da(R)||(u.isValid||d.isValid)&&H!==r.isValid?{}:{name:R},...t.resolver||!R?{isValid:H}:{},errors:r.errors}),D.shouldFocus&&!te&&Sf(n,P,R?ie:l.mount),te},$=R=>{const D={...s.mount?a:i};return zt(R)?D:da(R)?ue(D,R):R.map(H=>ue(D,H))},G=(R,D)=>({invalid:!!ue((D||r).errors,R),isDirty:!!ue((D||r).dirtyFields,R),error:ue((D||r).errors,R),isValidating:!!ue(r.validatingFields,R),isTouched:!!ue((D||r).touchedFields,R)}),K=R=>{R&&Ef(R).forEach(D=>Xt(r.errors,D)),f.state.next({errors:R?r.errors:{}})},X=(R,D,H)=>{const te=(ue(n,R,{_f:{}})._f||{}).ref,ie=ue(r.errors,R)||{},{ref:ne,message:ye,type:Xe,...mt}=ie;dt(r.errors,R,{...mt,...D,ref:te}),f.state.next({name:R,errors:r.errors,isValid:!1}),H&&H.shouldFocus&&te&&te.focus&&te.focus()},ae=(R,D)=>Qi(R)?f.state.subscribe({next:H=>"values"in H&&R(k(void 0,D),H)}):k(R,D,!0),ve=R=>f.state.subscribe({next:D=>{zue(R.name,D.name,R.exact)&&Gue(D,R.formState||u,at,R.reRenderRoot)&&R.callback({values:{...a},...r,...D,defaultValues:i})}}).unsubscribe,Fe=R=>(s.mount=!0,d={...d,...R.formState},ve({...R,formState:d})),L=(R,D={})=>{for(const H of R?Ef(R):l.mount)l.mount.delete(H),l.array.delete(H),D.keepValue||(Xt(n,H),Xt(a,H)),!D.keepError&&Xt(r.errors,H),!D.keepDirty&&Xt(r.dirtyFields,H),!D.keepTouched&&Xt(r.touchedFields,H),!D.keepIsValidating&&Xt(r.validatingFields,H),!t.shouldUnregister&&!D.keepDefaultValue&&Xt(i,H);f.state.next({values:lr(a)}),f.state.next({...r,...D.keepDirty?{isDirty:T()}:{}}),!D.keepIsValid&&p()},pe=({disabled:R,name:D})=>{(On(R)&&s.mount||R||l.disabled.has(D))&&(R?l.disabled.add(D):l.disabled.delete(D))},W=(R,D={})=>{let H=ue(n,R);const te=On(D.disabled)||On(t.disabled);return dt(n,R,{...H||{},_f:{...H&&H._f?H._f:{ref:{name:R}},name:R,mount:!0,...D}}),l.mount.add(R),H?pe({disabled:On(D.disabled)?D.disabled:t.disabled,name:R}):B(R,!0,D.value),{...te?{disabled:D.disabled||t.disabled}:{},...t.progressive?{required:!!D.required,min:Fd(D.min),max:Fd(D.max),minLength:Fd(D.minLength),maxLength:Fd(D.maxLength),pattern:Fd(D.pattern)}:{},name:R,onChange:U,onBlur:U,ref:ie=>{if(ie){W(R,D),H=ue(n,R);const ne=zt(ie.value)&&ie.querySelectorAll&&ie.querySelectorAll("input,select,textarea")[0]||ie,ye=Lue(ne),Xe=H._f.refs||[];if(ye?Xe.find(mt=>mt===ne):ne===H._f.ref)return;dt(n,R,{_f:{...H._f,...ye?{refs:[...Xe.filter(Pb),ne,...Array.isArray(ue(i,R))?[{}]:[]],ref:{type:ne.type,name:R}}:{ref:ne}}}),B(R,!1,void 0,ne)}else H=ue(n,R,{}),H._f&&(H._f.mount=!1),(t.shouldUnregister||D.shouldUnregister)&&!(uK(l.array,R)&&s.action)&&l.unMount.add(R)}}},ee=()=>t.shouldFocusError&&Sf(n,P,l.mount),le=R=>{On(R)&&(f.state.next({disabled:R}),Sf(n,(D,H)=>{const te=ue(n,H);te&&(D.disabled=te._f.disabled||R,Array.isArray(te._f.refs)&&te._f.refs.forEach(ie=>{ie.disabled=te._f.disabled||R}))},0,!1))},V=(R,D)=>async H=>{let te;H&&(H.preventDefault&&H.preventDefault(),H.persist&&H.persist());let ie=lr(a);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:ne,values:ye}=await j();r.errors=ne,ie=lr(ye)}else await E(n);if(l.disabled.size)for(const ne of l.disabled)Xt(ie,ne);if(Xt(r.errors,"root"),ln(r.errors)){f.state.next({errors:{}});try{await R(ie,H)}catch(ne){te=ne}}else D&&await D({...r.errors},H),ee(),setTimeout(ee);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ln(r.errors)&&!te,submitCount:r.submitCount+1,errors:r.errors}),te)throw te},Te=(R,D={})=>{ue(n,R)&&(zt(D.defaultValue)?O(R,lr(ue(i,R))):(O(R,D.defaultValue),dt(i,R,lr(D.defaultValue))),D.keepTouched||Xt(r.touchedFields,R),D.keepDirty||(Xt(r.dirtyFields,R),r.isDirty=D.defaultValue?T(R,lr(ue(i,R))):T()),D.keepError||(Xt(r.errors,R),u.isValid&&p()),f.state.next({...r}))},Ne=(R,D={})=>{const H=R?lr(R):i,te=lr(H),ie=ln(R),ne=ie?i:te;if(D.keepDefaultValues||(i=H),!D.keepValues){if(D.keepDirtyValues){const ye=new Set([...l.mount,...Object.keys(Td(i,a))]);for(const Xe of Array.from(ye))ue(r.dirtyFields,Xe)?dt(ne,Xe,ue(a,Xe)):O(Xe,ue(ne,Xe))}else{if(uS&&zt(R))for(const ye of l.mount){const Xe=ue(n,ye);if(Xe&&Xe._f){const mt=Array.isArray(Xe._f.refs)?Xe._f.refs[0]:Xe._f.ref;if(Mv(mt)){const an=mt.closest("form");if(an){an.reset();break}}}}if(D.keepFieldsRef)for(const ye of l.mount)O(ye,ue(ne,ye));else n={}}a=t.shouldUnregister?D.keepDefaultValues?lr(i):{}:lr(ne),f.array.next({values:{...ne}}),f.state.next({values:{...ne}})}l={mount:D.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!D.keepIsValid||!!D.keepDirtyValues,s.watch=!!t.shouldUnregister,f.state.next({submitCount:D.keepSubmitCount?r.submitCount:0,isDirty:ie?!1:D.keepDirty?r.isDirty:!!(D.keepDefaultValues&&!Xa(R,i)),isSubmitted:D.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ie?{}:D.keepDirtyValues?D.keepDefaultValues&&a?Td(i,a):r.dirtyFields:D.keepDefaultValues&&R?Td(i,R):D.keepDirty?r.dirtyFields:{},touchedFields:D.keepTouched?r.touchedFields:{},errors:D.keepErrors?r.errors:{},isSubmitSuccessful:D.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ze=(R,D)=>Ne(Qi(R)?R(a):R,D),Ye=(R,D={})=>{const H=ue(n,R),te=H&&H._f;if(te){const ie=te.refs?te.refs[0]:te.ref;
462ie.focus&&(ie.focus(),D.shouldSelect&&Qi(ie.select)&&ie.select())}},at=R=>{r={...r,...R}},pr={control:{register:W,unregister:L,getFieldState:G,handleSubmit:V,setError:X,_subscribe:ve,_runSchema:j,_focusError:ee,_getWatch:k,_getDirty:T,_setValid:p,_setFieldArray:x,_setDisabledField:pe,_setErrors:y,_getFieldArray:N,_reset:Ne,_resetDefaultValues:()=>Qi(t.defaultValues)&&t.defaultValues().then(R=>{Ze(R,t.resetOptions),f.state.next({isLoading:!1})}),_removeUnmounted:I,_disableForm:le,_subjects:f,_proxyFormState:u,get _fields(){return n},get _formValues(){return a},get _state(){return s},set _state(R){s=R},get _defaultValues(){return i},get _names(){return l},set _names(R){l=R},get _formState(){return r},get _options(){return t},set _options(R){t={...t,...R}}},subscribe:Fe,trigger:Q,register:W,handleSubmit:V,watch:ae,setValue:O,getValues:$,reset:Ze,resetField:Te,clearErrors:K,unregister:L,setError:X,setFocus:Ye,getFieldState:G};return{...pr,formControl:pr}}function YP(e={}){const t=S.useRef(void 0),r=S.useRef(void 0),[n,i]=S.useState({isDirty:!1,isValidating:!1,isLoading:Qi(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Qi(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!Qi(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:s,...l}=Zue(e);t.current={...l,formState:n}}const a=t.current.control;return a._options=e,pS(()=>{const s=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(l=>({...l,isReady:!0})),a._formState.isReady=!0,s},[a]),S.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),S.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),S.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),S.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),S.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==n.isDirty&&a._subjects.state.next({isDirty:s})}},[a,n.isDirty]),S.useEffect(()=>{e.values&&!Xa(e.values,r.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),r.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[a,e.values]),S.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=dK(n,a),t.current}const XP=(e,t,r)=>{if(e&&"reportValidity"in e){const n=ue(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},wK=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?XP(n.ref,r,e):n.refs&&n.refs.forEach(i=>XP(i,r,e))}},ede=(e,t)=>{t.shouldUseNativeValidation&&wK(e,t);const r={};for(const n in e){const i=ue(t.fields,n),a=Object.assign(e[n]||{},{ref:i&&i.ref});if(tde(t.names||Object.keys(e),n)){const s=Object.assign({},ue(r,n));dt(s,"root",a),dt(r,n,s)}else dt(r,n,a)}return r},tde=(e,t)=>e.some(r=>r.startsWith(t+"."));var rde=function(e,t){for(var r={};e.length;){var n=e[0],i=n.code,a=n.message,s=n.path.join(".");if(!r[s])if("unionErrors"in n){var l=n.unionErrors[0].errors[0];r[s]={message:l.message,type:l.code}}else r[s]={message:a,type:i};if("unionErrors"in n&&n.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var A=r[s].types,c=A&&A[n.code];r[s]=hK(s,t,r,i,c?[].concat(c,n.message):n.message)}e.shift()}return r},JP=function(e,t,r){return r===void 0&&(r={}),function(n,i,a){try{return Promise.resolve(function(s,l){try{var A=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(c){return a.shouldUseNativeValidation&&wK({},a),{errors:{},values:r.raw?n:c}})}catch(c){return l(c)}return A&&A.then?A.then(void 0,l):A}(0,function(s){if(function(l){return Array.isArray(l==null?void 0:l.errors)}(s))return{values:{},errors:ede(rde(s.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw s}))}catch(s){return Promise.reject(s)}}};const ZP=Uue,bK=w.createContext({}),Pd=({...e})=>o.jsx(bK.Provider,{value:{name:e.name},children:o.jsx(Due,{...e})}),cw=()=>{const e=w.useContext(bK),t=w.useContext(BK),{getFieldState:r,formState:n}=Aw(),i=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},BK=w.createContext({}),ec=w.forwardRef(({className:e,...t},r)=>{const n=w.useId();return o.jsx(BK.Provider,{value:{id:n},children:o.jsx("div",{ref:r,className:ce("space-y-2",e),...t})})});ec.displayName="FormItem";const tc=w.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:i}=cw();return o.jsx(he,{ref:r,className:ce(n&&"text-destructive",e),htmlFor:i,...t})});tc.displayName="FormLabel";const rc=w.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:i,formMessageId:a}=cw();return o.jsx(eE,{ref:t,id:n,"aria-describedby":r?`${i} ${a}`:`${i}`,"aria-invalid":!!r,...e})});rc.displayName="FormControl";const nde=w.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=cw();return o.jsx("p",{ref:r,id:n,className:ce("text-sm text-muted-foreground",e),...t})});nde.displayName="FormDescription";const nc=w.forwardRef(({className:e,children:t,...r},n)=>{const{error:i,formMessageId:a}=cw(),s=i?String(i==null?void 0:i.message):t;return s?o.jsx("p",{ref:n,id:a,className:ce("text-sm font-medium text-destructive",e),...r,children:s}):null});nc.displayName="FormMessage";const CK=Xu({email:Er().email({message:"Invalid email address"}),password:Er().min(8,{message:"Password must be at least 8 characters"})}),ide=CK.extend({fullName:Er().optional()}),ade=()=>{const{user:e,signIn:t,signUp:r}=Tr(),n=Wn();LE();const[i,a]=w.useState(!1),[s,l]=w.useState(!1),[A,c]=w.useState(""),u=YP({resolver:JP(CK),defaultValues:{email:"",password:""}}),d=YP({resolver:JP(ide),defaultValues:{fullName:"",email:"",password:""}});w.useEffect(()=>{e&&n("/dashboard")},[e,n]);const f=async p=>{a(!0),await t(p.email,p.password),a(!1)},h=async p=>{a(!0),await r(p.email,p.password,p.fullName),a(!1)},m=async()=>
462{if(!A||!A.includes("@")){be({title:"Error",description:"Please enter a valid email address",variant:"destructive"});return}try{a(!0);const{error:p}=await Be.auth.resetPasswordForEmail(A,{redirectTo:`${window.location.origin}/auth`});if(p)throw p;be({title:"Success",description:"Password reset link sent! Check your email."}),l(!1),c("")}catch{be({title:"Error",description:"Failed to send reset email. Please try again.",variant:"destructive"})}finally{a(!1)}};return o.jsxs("div",{className:"min-h-screen flex flex-col",children:[o.jsx("header",{className:"border-b",children:o.jsx("div",{className:"container mx-auto px-4 py-4",children:o.jsx(de,{to:"/",className:"flex items-center gap-2",children:o.jsx("img",{src:O$,alt:"MeetingCost",className:"h-12 w-auto"})})})}),o.jsx("main",{className:"flex-1 flex items-center justify-center p-4",children:o.jsxs(J,{className:"w-full max-w-md",children:[o.jsxs(Ee,{className:"text-center",children:[o.jsx(Se,{className:"text-2xl",children:"Welcome to MeetingCost"}),o.jsx($r,{children:"Sign in to save your meetings and track your costs"})]}),o.jsx(Z,{children:o.jsxs(cS,{defaultValue:"signin",className:"w-full",children:[o.jsxs(ow,{className:"grid w-full grid-cols-2",children:[o.jsx(as,{value:"signin",children:"Sign In"}),o.jsx(as,{value:"signup",children:"Sign Up"})]}),o.jsx(ss,{value:"signin",children:o.jsx(ZP,{...u,children:o.jsxs("form",{onSubmit:u.handleSubmit(f),className:"space-y-4",children:[o.jsx(Pd,{control:u.control,name:"email",render:({field:p})=>o.jsxs(ec,{children:[o.jsx(tc,{children:"Email"}),o.jsx(rc,{children:o.jsx(_e,{type:"email",placeholder:"[email protected]",...p})}),o.jsx(nc,{})]})}),o.jsx(Pd,{control:u.control,name:"password",render:({field:p})=>o.jsxs(ec,{children:[o.jsx(tc,{children:"Password"}),o.jsx(rc,{children:o.jsx(_e,{type:"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",...p})}),o.jsx(nc,{})]})}),o.jsx(z,{type:"submit",className:"w-full",disabled:i,children:i?o.jsx(kl,{className:"h-4 w-4 animate-spin"}):"Sign In"}),o.jsx(z,{type:"button",variant:"link",className:"w-full text-sm",onClick:()=>l(!0),children:"Forgot Password?"})]})})}),o.jsx(ss,{value:"signup",children:o.jsx(ZP,{...d,children:o.jsxs("form",{onSubmit:d.handleSubmit(h),className:"space-y-4",children:[o.jsx(Pd,{control:d.control,name:"fullName",render:({field:p})=>o.jsxs(ec,{children:[o.jsx(tc,{children:"Full Name (optional)"}),o.jsx(rc,{children:o.jsx(_e,{placeholder:"John Doe",...p})}),o.jsx(nc,{})]})}),o.jsx(Pd,{control:d.control,name:"email",render:({field:p})=>o.jsxs(ec,{children:[o.jsx(tc,{children:"Email"}),o.jsx(rc,{children:o.jsx(_e,{type:"email",placeholder:"[email protected]",...p})}),o.jsx(nc,{})]})}),o.jsx(Pd,{control:d.control,name:"password",render:({field:p})=>o.jsxs(ec,{children:[o.jsx(tc,{children:"Password"}),o.jsx(rc,{children:o.jsx(_e,{type:"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",...p})}),o.jsx(nc,{})]})}),o.jsx(z,{type:"submit",className:"w-full",disabled:i,children:i?o.jsx(kl,{className:"h-4 w-4 animate-spin"}):"Create Account"})]})})})]})})]})}),o.jsx(qu,{open:s,onOpenChange:l,children:o.jsxs(AA,{children:[o.jsxs(cA,{children:[o.jsx(uA,{children:"Reset Password"}),o.jsx(dA,{children:"Enter your email address and we'll send you a link to reset your password."})]}),o.jsxs("div",{className:"py-4",children:[o.jsx(he,{htmlFor:"resetEmail",children:"Email"}),o.jsx(_e,{id:"resetEmail",type:"email",placeholder:"[email protected]",value:A,onChange:p=>c(p.target.value),className:"mt-2"})]}),o.jsxs(Ix,{children:[o.jsx(z,{variant:"outline",onClick:()=>l(!1),children:"Cancel"}),o.jsx(z,{onClick:m,disabled:i,children:i?o.jsx(kl,{className:"h-4 w-4 animate-spin"}):"Send Reset Link"})]})]})})]})},fi=({children:e})=>{const{user:t,loading:r}=Tr(),n=Wn();return w.useEffect(()=>{!r&&!t&&n("/auth")},[t,r,n]),r?o.jsx("div",{className:"min-h-screen flex items-center justify-center",children:o.jsx(kl,{className:"h-8 w-8 animate-spin text-primary"})}):t?o.jsx(o.Fragment,{children:e}):null},sde=()=>{const e=Do(),t=jE(),[r,n]=w.useState([]),[i,a]=w.useState(!1);return w.useEffect(()=>{(async()=>{a(!0);
462const l=e.pathname,A=l.split("/").filter(Boolean),c=[];if(l==="/")c.push({label:"Home",path:"/"});else if(l==="/calculator")c.push({label:"Home",path:"/"}),c.push({label:"Calculator",path:null});else if(l==="/pricing")c.push({label:"Home",path:"/"}),c.push({label:"Pricing",path:null});else if(l.startsWith("/blog"))c.push({label:"Home",path:"/"}),c.push({label:"Blog",path:"/blog"}),A.length>1&&c.push({label:"Article",path:null});else if(l==="/dashboard")c.push({label:"Dashboard",path:null});else if(l==="/meetings")c.push({label:"Dashboard",path:"/dashboard"}),c.push({label:"My Meetings",path:null});else if(l==="/meetings/add")c.push({label:"Dashboard",path:"/dashboard"}),c.push({label:"My Meetings",path:"/meetings"}),c.push({label:"Add Meeting",path:null});else if(l.startsWith("/meetings/")&&t.id)try{const{data:u}=await Be.from("meetings").select("title").eq("id",t.id).single();c.push({label:"Dashboard",path:"/dashboard"}),c.push({label:"My Meetings",path:"/meetings"}),c.push({label:(u==null?void 0:u.title)||"Meeting Details",path:null})}catch{c.push({label:"Dashboard",path:"/dashboard"}),c.push({label:"My Meetings",path:"/meetings"}),c.push({label:"Meeting Details",path:null})}else if(l==="/projects")c.push({label:"Dashboard",path:"/dashboard"}),c.push({label:"Projects",path:null});else if(l==="/projects/new")c.push({label:"Dashboard",path:"/dashboard"}),c.push({label:"Projects",path:"/projects"}),c.push({label:"New Project",path:null});else if(l.startsWith("/projects/")&&t.id)try{const{data:u}=await Be.from("projects").select("name").eq("id",t.id).single();c.push({label:"Dashboard",path:"/dashboard"}),c.push({label:"Projects",path:"/projects"}),c.push({label:(u==null?void 0:u.name)||"Project Details",path:null})}catch{c.push({label:"Dashboard",path:"/dashboard"}),c.push({label:"Projects",path:"/projects"}),c.push({label:"Project Details",path:null})}n(c),a(!1)})()},[e.pathname,t.id]),{breadcrumbs:r,loading:i}},jK=w.forwardRef(({...e},t)=>o.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));jK.displayName="Breadcrumb";const _K=w.forwardRef(({className:e,...t},r)=>o.jsx("ol",{ref:r,className:ce("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));_K.displayName="BreadcrumbList";const EK=w.forwardRef(({className:e,...t},r)=>o.jsx("li",{ref:r,className:ce("inline-flex items-center gap-1.5",e),...t}));EK.displayName="BreadcrumbItem";const SK=w.forwardRef(({asChild:e,className:t,...r},n)=>{const i=e?eE:"a";return o.jsx(i,{ref:n,className:ce("transition-colors hover:text-foreground",t),...r})});SK.displayName="BreadcrumbLink";const NK=w.forwardRef(({className:e,...t},r)=>o.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:ce("font-normal text-foreground",e),...t}));NK.displayName="BreadcrumbPage";const OK=({children:e,className:t,...r})=>o.jsx("li",{role:"presentation","aria-hidden":"true",className:ce("[&>svg]:size-3.5",t),...r,children:e??o.jsx(Ax,{})});OK.displayName="BreadcrumbSeparator";const TK=({className:e,...t})=>o.jsxs("span",{role:"presentation","aria-hidden":"true",className:ce("flex h-9 w-9 items-center justify-center",e),...t,children:[o.jsx(s7,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"More"})]});TK.displayName="BreadcrumbElipssis";function ode({className:e,...t}){return o.jsx("div",{className:ce("animate-pulse rounded-md bg-muted",e),...t})}const Ba=()=>{const{breadcrumbs:e,loading:t}=sde(),r=LE();if(t)return o.jsx("div",{className:"container mx-auto px-4 pt-4 pb-2",children:o.jsx(ode,{className:"h-5 w-64"})});if(e.length===0)return null;const i=r&&e.length>3?[e[0],{label:"...",path:null,isEllipsis:!0},...e.slice(-2)]:e;return o.jsx("div",{className:"container mx-auto px-4 pt-4 pb-2",children:o.jsx(jK,{children:o.jsx(_K,{children:i.map((a,s)=>{const l=s===i.length-1;return o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(EK,{children:a.isEllipsis?o.jsx(TK,{}):l||!a.path?o.jsx(NK,{className:"font-medium",children:a.label}):o.jsx(SK,{asChild:!0,children:o.jsx(de,{to:a.path,className:"transition-all duration-200 hover:scale-105",children:a.label})})}),!l&&o.jsx(OK,{children:o.jsx(Ax,{className:"h-4 w-4 text-muted-foreground
462/60"})})]},s)})})})})},vS=()=>{const e=Do(),{isPro:t}=Tr();return o.jsxs("div",{className:"flex gap-2 mb-6",children:[o.jsx(z,{asChild:!0,variant:e.pathname==="/dashboard"?"default":"outline",children:o.jsxs(de,{to:"/dashboard",children:[o.jsx(uD,{className:"mr-2 h-4 w-4"}),"Dashboard"]})}),o.jsx(z,{asChild:!0,variant:e.pathname==="/meetings"?"default":"outline",children:o.jsxs(de,{to:"/meetings",children:[o.jsx(cx,{className:"mr-2 h-4 w-4"}),"My Meetings"]})}),t&&o.jsx(z,{asChild:!0,variant:e.pathname==="/projects"?"default":"outline",children:o.jsxs(de,{to:"/projects",children:[o.jsx(aE,{className:"mr-2 h-4 w-4"}),"Projects"]})})]})},lde=({value:e,onChange:t})=>o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(ao,{className:"h-4 w-4 text-muted-foreground"}),o.jsxs(Cs,{value:e,onValueChange:t,children:[o.jsx(Sa,{className:"w-[180px]",children:o.jsx(js,{placeholder:"Select time range"})}),o.jsxs(Na,{children:[o.jsx(et,{value:"7d",children:"Last 7 days"}),o.jsx(et,{value:"30d",children:"Last 30 days"}),o.jsx(et,{value:"90d",children:"Last 90 days"}),o.jsx(et,{value:"all",children:"All time"})]})]})]}),Ade={widgets:[{widgetKey:"total_meetings",position:{x:0,y:0},size:{width:3,height:1},visible:!0},{widgetKey:"total_cost",position:{x:3,y:0},size:{width:3,height:1},visible:!0},{widgetKey:"average_cost",position:{x:6,y:0},size:{width:3,height:1},visible:!0},{widgetKey:"top_rating",position:{x:9,y:0},size:{width:3,height:1},visible:!0}
462,{widgetKey:"cost_trend",position:{x:0,y:1},size:{width:6,height:2},visible:!0},{widgetKey:"meeting_frequency",position:{x:6,y:1},size:{width:6,height:2},visible:!0},{widgetKey:"category_breakdown",position:{x:0,y:3},size:{width:6,height:2},visible:!0},{widgetKey:"rating_cost",position:{x:6,y:3},size:{width:6,height:2},visible:!0},{widgetKey:"recent_meetings",position:{x:0,y:5},size:{width:12,height:3},visible:!0}],gridSettings:{columns:12,gap:16}};async function cde(e){const{data:t,error:r}=await Be.from("dashboard_layouts").select("*").eq("user_id",e).eq("is_active",!0).single();return r||!t?Ade:t.layout_config}async function ude(e,t,r,n){if(t){const{error:i}=await Be.from("dashboard_layouts").update({layout_config:n,updated_at:new Date().toISOString()}).eq("id",t).eq("user_id",e);if(i)throw i}else{await Be.from("dashboard_layouts").update({is_active:!1}).eq("user_id",e);const{error:i}=await Be.from("dashboard_layouts").insert([{user_id:e,name:r,is_active:!0,layout_config:n}]);if(i)throw i}}async function dde(e){const{data:t,error:r}=await Be.from("dashboard_layouts").select("*").eq("user_id",e).order("created_at",{ascending:!1});if(r)throw r;return t}async function fde(e,t){await Be.from("dashboard_layouts").update({is_active:!1}).eq("user_id",e);const{error:r}=await Be.from("dashboard_layouts").update({is_active:!0}).eq("id",t).eq("user_id",e);if(r)throw r}const hde=({currentLayoutId:e,onLayoutChange:t,onEditMode:r})=>{const{user:n}=Tr(),{toast:i}=ip(),[a,s]=w.useState([]),[l,A]=w.useState(!0);w.useEffect(()=>{c()},[n]);const c=async()=>{if(n)try{const d=await dde(n.id);s(d)}catch(d){console.error("Error loading layouts:",d)}finally{A(!1)}},u=async d=>{if(n)try{d==="default"?t(null):(await fde(n.id,d),t(d),i({title:"Layout changed",description:"Dashboard layout has been updated."}))}catch{i({title:"Error",description:"Failed to change layout.",variant:"destructive"})}};return o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsxs(Cs,{value:e||"default",onValueChange:u,disabled:l,children:[o.jsx(Sa,{className:"w-[200px]",children:o.jsx(js,{placeholder:"Select layout"})}),o.jsxs(Na,{children:[o.jsx(et,{value:"default",children:"Default Layout"}),a.map(d=>o.jsx(et,{value:d.id,children:d.name},d.id))]})]}),o.jsx(z,{variant:"outline",size:"icon",onClick:r,children:o.jsx(yC,{className:"h-4 w-4"})})]})},pde=({count:e,loading:t})=>o.jsxs(J,{children:[o.jsxs(Ee,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[o.jsx(Se,{className:"text-sm font-medium",children:"Total Meetings"}),o.jsx(hs,{className:"h-4 w-4 text-muted-foreground"})]}),o.jsx(Z,{children:t?o.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:"..."}):o.jsx("div",{className:"text-2xl font-bold",children:e})})]}),mde=({amount:e,loading:t})=>o.jsxs(J,{children:[o.jsxs(Ee,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[o.jsx(Se,{className:"text-sm font-medium",children:"Total Cost"}),o.jsx(eu,{className:"h-4 w-4 text-muted-foreground"})]}),o.jsx(Z,{children:t?o.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:"..."}):o.jsxs("div",{className:"text-2xl font-bold",children:["$",e.toFixed(2)]})})]}),gde=({amount:e,loading:t})=>o.jsxs(J,{children:[o.jsxs(Ee,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[o.jsx(Se,{className:"text-sm font-medium",children:"Average Cost"}),o.jsx(ux,{className:"h-4 w-4 text-muted-foreground"})]}),o.jsx(Z,{children:t?o.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:"..."}):o.jsxs("div",{className:"text-2xl font-bold",children:["$",e.toFixed(2)]})})]}),vde=e=>{if(!e)return"ð";switch(e){case"excellent":return"ð";case"good":return"ð";case"okay":return"ð";case"poor":return"ð";case"waste":return"ðï¸";default:return"ð"}},yde=({rating:e,loading:t})=>o.jsxs(J,{children:[o.jsxs(Ee,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[o.jsx(Se,{className:"text-sm font-medium",children:"Most Common Rating"}),o.jsx(x7,{className:"h-4 w-4 text-muted-foreground"})]}),o.jsx(Z,{children:t?o.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:"..."}):o.jsxs("div",{className:"text-2xl font-bold",children:[vde(e)," ",e?e.charAt(0).toUpperCase()+e.slice(1):"N/A"]})})]});var xde=Array.isArray,Bn=xde,wde=typeof Lr=="object"&&Lr&&Lr.Object===Object&&Lr,FK=wde,bde=FK,Bde=typeof self=="object"&&self&&self.Object===Object&&self,Cde=bde||Bde||Function("return this")(),Pa=Cde,jde=Pa,_de=jde.Symbol,Cp=_de,ek=Cp,PK=Object.prototype,Ede=PK.hasOwnProperty,Sde=PK.toString,kd=ek?ek.toStringTag:void 0;function Nde(e){var t=Ede.call(e,kd),r=e[kd];try{e[kd]=void 0;var n=!0}catch{}var i=Sde.call(e);return n&&(t?e[kd]=r:delete e[kd]),i}
vendor: 4,621 bytes, line 462
462var Ode=Nde,Tde=Object.prototype,Fde=Tde.toString;function Pde(e){return Fde.call(e)}var kde=Pde,tk=Cp,Ide=Ode,Ude=kde,Qde="[object Null]",Mde="[object Undefined]",rk=tk?tk.toStringTag:void 0;function Rde(e){return e==null?e===void 0?Mde:Qde:rk&&rk in Object(e)?Ide(e):Ude(e)}var _s=Rde;function Dde(e){return e!=null&&typeof e=="object"}var Es=Dde,Lde=_s,$de=Es,Hde="[object Symbol]";function Kde(e){return typeof e=="symbol"||$de(e)&&Lde(e)==Hde}var Zu=Kde,Vde=Bn,Wde=Zu,Gde=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zde=/^\w*$/;function qde(e,t){if(Vde(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Wde(e)?!0:zde.test(e)||!Gde.test(e)||t!=null&&e in Object(t)}var yS=qde;function Yde(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ko=Yde;const ed=nt(Ko);var Xde=_s,Jde=Ko,Zde="[object AsyncFunction]",efe="[object Function]",tfe="[object GeneratorFunction]",rfe="[object Proxy]";function nfe(e){if(!Jde(e))return!1;var t=Xde(e);return t==efe||t==tfe||t==Zde||t==rfe}var xS=nfe;const Me=nt(xS);var ife=Pa,afe=ife["__core-js_shared__"],sfe=afe,kb=sfe,nk=function(){var e=/[^.]+$/.exec(kb&&kb.keys&&kb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ofe(e){return!!nk&&nk in e}var lfe=ofe,Afe=Function.prototype,cfe=Afe.toString;function ufe(e){if(e!=null){try{return cfe.call(e)}catch{}try{return e+""}catch{}}return""}var kK=ufe,dfe=xS,ffe=lfe,hfe=Ko,pfe=kK,mfe=/[\\^$.*+?()[\]{}|]/g,gfe=/^\[object .+?Constructor\]$/,vfe=Function.prototype,yfe=Object.prototype,xfe=vfe.toString,wfe=yfe.hasOwnProperty,bfe=RegExp("^"+xfe.call(wfe).replace(mfe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bfe(e){if(!hfe(e)||ffe(e))return!1;var t=dfe(e)?bfe:gfe;return t.test(pfe(e))}var Cfe=Bfe;function jfe(e,t){return e==null?void 0:e[t]}var _fe=jfe,Efe=Cfe,Sfe=_fe;function Nfe(e,t){var r=Sfe(e,t);return Efe(r)?r:void 0}var mA=Nfe,Ofe=mA,Tfe=Ofe(Object,"create"),uw=Tfe,ik=uw;function Ffe(){this.__data__=ik?ik(null):{},this.size=0}var Pfe=Ffe;function kfe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ife=kfe,Ufe=uw,Qfe="__lodash_hash_undefined__",Mfe=Object.prototype,Rfe=Mfe.hasOwnProperty;function Dfe(e){var t=this.__data__;if(Ufe){var r=t[e];return r===Qfe?void 0:r}return Rfe.call(t,e)?t[e]:void 0}var Lfe=Dfe,$fe=uw,Hfe=Object.prototype,Kfe=Hfe.hasOwnProperty;function Vfe(e){var t=this.__data__;return $fe?t[e]!==void 0:Kfe.call(t,e)}var Wfe=Vfe,Gfe=uw,zfe="__lodash_hash_undefined__";function qfe(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Gfe&&t===void 0?zfe:t,this}var Yfe=qfe,Xfe=Pfe,Jfe=Ife,Zfe=Lfe,ehe=Wfe,the=Yfe;function td(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}td.prototype.clear=Xfe;td.prototype.delete=Jfe;td.prototype.get=Zfe;td.prototype.has=ehe;td.prototype.set=the;var rhe=td;function nhe(){this.__data__=[],this.size=0}var ihe=nhe;function ahe(e,t){return e===t||e!==e&&t!==t}var wS=ahe,she=wS;function ohe(e,t){for(var r=e.length;r--;)if(she(e[r][0],t))return r;return-1}var dw=ohe,lhe=dw,Ahe=Array.prototype,che=Ahe.splice;function uhe(e){var t=this.__data__,r=lhe(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():che.call(t,r,1),--this.size,!0}var dhe=uhe,fhe=dw;function hhe(e){var t=this.__data__,r=fhe(t,e);return r<0?void 0:t[r][1]}var phe=hhe,mhe=dw;function ghe(e){return mhe(this.__data__,e)>-1}var vhe=ghe,yhe=dw;function xhe(e,t){var r=this.__data__,n=yhe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var whe=xhe,bhe=ihe,Bhe=dhe,Che=phe,jhe=vhe,_he=whe;function rd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rd.prototype.clear=bhe;rd.prototype.delete=Bhe;rd.prototype.get=Che;rd.prototype.has=jhe;rd.prototype.set=_he;var fw=rd,Ehe=mA,She=Pa,Nhe=Ehe(She,"Map"),bS=Nhe,ak=rhe,Ohe=fw,The=bS;function Fhe(){this.size=0,this.__data__={hash:new ak,map:new(The||Ohe),string:new ak}}var Phe=Fhe;function khe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ihe=khe,Uhe=Ihe;function Qhe(e,t){var r=e.__data__;return Uhe(t)?r[typeof t=="string"?"string":"hash"]:r.map}var hw=Qhe,Mhe=hw;function Rhe(e){var t=Mhe(this,e).delete(e);return this.size-=t?1:0,t}var Dhe=Rhe,Lhe=hw;function $he(e){return Lhe(this,e).get(e)}var Hhe=$he,Khe=hw;function Vhe(e){return Khe(this,e).has(e)}var Whe=Vhe,Ghe=hw;function zhe(e,t){var r=Ghe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var qhe=zhe,Yhe=Phe,Xhe=Dhe,Jhe=Hhe,Zhe=Whe,epe=qhe;
462function nd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}nd.prototype.clear=Yhe;nd.prototype.delete=Xhe;nd.prototype.get=Jhe;nd.prototype.has=Zhe;nd.prototype.set=epe;var BS=nd,IK=BS,tpe="Expected a function";function CS(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(tpe);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,n);return r.cache=a.set(i,s)||a,s};return r.cache=new(CS.Cache||IK),r}CS.Cache=IK;var UK=CS;const rpe=nt(UK);var npe=UK,ipe=500;function ape(e){var t=npe(e,function(n){return r.size===ipe&&r.clear(),n}),r=t.cache;return t}var spe=ape,ope=spe,lpe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ape=/\\(\\)?/g,cpe=ope(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lpe,function(r,n,i,a){t.push(i?a.replace(Ape,"$1"):n||r)}),t}),upe=cpe;function dpe(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var jS=dpe,sk=Cp,fpe=jS,hpe=Bn,ppe=Zu,mpe=1/0,ok=sk?sk.prototype:void 0,lk=ok?ok.toString:void 0;function QK(e){if(typeof e=="string")return e;if(hpe(e))return fpe(e,QK)+"";if(ppe(e))return lk?lk.call(e):"";var t=e+"";return t=="0"&&1/e==-mpe?"-0":t}var gpe=QK,vpe=gpe;function ype(e){return e==null?"":vpe(e)}var MK=ype,xpe=Bn,wpe=yS,bpe=upe,Bpe=MK;function Cpe(e,t){return xpe(e)?e:wpe(e,t)?[e]:bpe(Bpe(e))}var RK=Cpe,jpe=Zu,_pe=1/0;function Epe(e){if(typeof e=="string"||jpe(e))return e;var t=e+"";return t=="0"&&1/e==-_pe?"-0":t}var pw=Epe,Spe=RK,Npe=pw;function Ope(e,t){t=Spe(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Npe(t[r++])];return r&&r==n?e:void 0}var _S=Ope,Tpe=_S;function Fpe(e,t,r){var n=e==null?void 0:Tpe(e,t);return n===void 0?r:n}var DK=Fpe;const Rn=nt(DK);function Ppe(e){return e==null}var kpe=Ppe;const $e=nt(kpe);var Ipe=_s,Upe=Bn,Qpe=Es,Mpe="[object String]";function Rpe(e){return typeof e=="string"||!Upe(e)&&Qpe(e)&&Ipe(e)==Mpe}var Dpe=Rpe;const Yl=nt(Dpe);var LK={exports:{}},pt={};/** 463 * @license React 464 * react-is.production.min.js 465 * 466 * Copyright (c) Facebook, Inc. and its affiliates. 467 * 468 * This source code is licensed under the MIT license found in the 469 * LICENSE file in the root directory of this source tree. 470 */var ES=Symbol.for("react.element"),SS=Symbol.for("react.portal"),mw=Symbol.for("react.fragment"),gw=Symbol.for("react.strict_mode"),vw=Symbol.for("react.profiler"),yw=Symbol.for("react.provider"),xw=Symbol.for("react.context"),Lpe=Symbol.for("react.server_context"),ww=Symbol.for("react.forward_ref"),bw=Symbol.for("react.suspense"),Bw=Symbol.for("react.suspense_list"),Cw=Symbol.for("react.memo"),jw=Symbol.for("react.lazy"),$pe=Symbol.for("react.offscreen"),$K;$K=Symbol.for("react.module.reference");function mi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ES:switch(e=e.type,e){case mw:case vw:case gw:case bw:case Bw:return e;default:switch(e=e&&e.$$typeof,e){case Lpe:case xw:case ww:case jw:case Cw:case yw:return e;default:return t}}case SS:return t}}}pt.ContextConsumer=xw;pt.ContextProvider=yw;pt.Element=ES;pt.ForwardRef=ww;pt.Fragment=mw;pt.Lazy=jw;pt.Memo=Cw;pt.Portal=SS;pt.Profiler=vw;pt.StrictMode=gw;pt.Suspense=bw;pt.SuspenseList=Bw;pt.isAsyncMode=function(){return!1};pt.isConcurrentMode=function(){return!1};pt.isContextConsumer=function(e){return mi(e)===xw};pt.isContextProvider=function(e){return mi(e)===yw};pt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ES};pt.isForwardRef=function(e){return mi(e)===ww};pt.isFragment=function(e){return mi(e)===mw};pt.isLazy=function(e){return mi(e)===jw};pt.isMemo=function(e){return mi(e)===Cw};pt.isPortal=function(e){return mi(e)===SS};pt.isProfiler=function(e){return mi(e)===vw};pt.isStrictMode=function(e){return mi(e)===gw};pt.isSuspense=function(e){return mi(e)===bw};pt.isSuspenseList=function(e){return mi(e)===Bw};pt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===mw||e===vw||e===gw||e===bw||e===Bw||e===$pe||typeof e=="object"&&e!==null&&(e.$$typeof===jw||e.$$typeof===Cw||e.$$typeof===yw||e.$$typeof===xw||e.$$typeof===ww||e.$$typeof===$K||e.getModuleId!==void 0)};pt.typeOf=mi;LK.exports=pt;var Hpe=LK.exports,Kpe=_s,Vpe=Es,Wpe="[object Number]";function Gpe(e){return typeof e=="number"||Vpe(e)&&Kpe(e)==Wpe}var HK=Gpe;const zpe=nt(HK);var qpe=HK;function Ype(e){return qpe(e)&&e!=+e}var Xpe=Ype;const jp=nt(Xpe);var Yr=function(t){return t===0?0:t>0?1:-1},wl=function(t){return Yl(t)&&t.indexOf("%")===t.length-1},oe=function(t){return zpe(t)&&!jp(t)},Jpe=function(t){return $e(t)},fr=function(t){return oe(t)||Yl(t)},Zpe=0,id=function(t){var r=++Zpe;return"".concat(t||"").concat(r)},Xr=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!oe(t)&&!Yl(t))return n;var a;if(wl(t)){var s=t.indexOf("%");a=r*parseFloat(t.slice(0,s))/100}
vendor: 5,304 bytes, line 470
470else a=+t;return jp(a)&&(a=n),i&&a>r&&(a=r),a},Xs=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},eme=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},Fn=function(t,r){return oe(t)&&oe(r)?function(n){return t+n*(r-t)}:function(){return r}};function Lv(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Rn(n,t))===r})}var tme=function(t,r){return oe(t)&&oe(r)?t-r:Yl(t)&&Yl(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Ic(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}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 rme=["viewBox","children"],nme=["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"],Ak=["points","pathLength"],Ib={svg:rme,polygon:Ak,polyline:Ak},NS=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
470ocus","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"],$v=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(w.isValidElement(t)&&(n=t.props),!ed(n))return null;var i={};return Object.keys(n).forEach(function(a){NS.includes(a)&&(i[a]=r||function(s){return n[a](n,s)})}),i},ime=function(t,r,n){return function(i){return t(r,n,i),null}},Xl=function(t,r,n){if(!ed(t)||E1(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var s=t[a];NS.includes(a)&&typeof s=="function"&&(i||(i={}),i[a]=ime(s,r,n))}),i},ame=["children"],sme=["children"];function ck(e,t){if(e==null)return{};var r=ome(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ome(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function S1(e){"@babel/helpers - typeof";return S1=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},S1(e)}var uk={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"}
vendor: 2,020 bytes, line 470
470,os=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},dk=null,Ub=null,OS=function e(t){if(t===dk&&Array.isArray(Ub))return Ub;var r=[];return w.Children.forEach(t,function(n){$e(n)||(Hpe.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Ub=r,dk=t,r};function Dn(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return os(i)}):n=[os(t)],OS(e).forEach(function(i){var a=Rn(i,"type.displayName")||Rn(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Nn(e,t){var r=Dn(e,t);return r&&r[0]}var fk=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!oe(n)||n<=0||!oe(i)||i<=0)},lme=["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"],Ame=function(t){return t&&t.type&&Yl(t.type)&&lme.indexOf(t.type)>=0},cme=function(t){return t&&S1(t)==="object"&&"clipDot"in t},ume=function(t,r,n,i){var a,s=(a=Ib==null?void 0:Ib[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Me(t)&&(i&&s.includes(r)||nme.includes(r))||n&&NS.includes(r)},Ie=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(w.isValidElement(t)&&(i=t.props),!ed(i))return null;var a={};
470return Object.keys(i).forEach(function(s){var l;ume((l=i)===null||l===void 0?void 0:l[s],s,r,n)&&(a[s]=i[s])}),a},N1=function e(t,r){if(t===r)return!0;var n=w.Children.count(t);if(n!==w.Children.count(r))return!1;if(n===0)return!0;if(n===1)return hk(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],s=r[i];if(Array.isArray(a)||Array.isArray(s)){if(!e(a,s))return!1}else if(!hk(a,s))return!1}return!0},hk=function(t,r){if($e(t)&&$e(r))return!0;if(!$e(t)&&!$e(r)){var n=t.props||{},i=n.children,a=ck(n,ame),s=r.props||{},l=s.children,A=ck(s,sme);return i&&l?Ic(a,A)&&N1(i,l):!i&&!l?Ic(a,A):!1}return!1},pk=function(t,r){var n=[],i={};return OS(t).forEach(function(a,s){if(Ame(a))n.push(a);else if(a){var l=os(a.type),A=r[l]||{},c=A.handler,u=A.once;if(c&&(!u||!i[l])){var d=c(a,l,s);n.push(d),i[l]=!0}}}),n},dme=function(t){var r=t&&t.type;return r&&uk[r]?uk[r]:null},fme=function(t,r){return OS(r).indexOf(t)},hme=["children","width","height","viewBox","className","style","title","desc"];function O1(){return O1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O1.apply(this,arguments)}function pme(e,t){if(e==null)return{};var r=mme(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mme(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function T1(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,s=e.style,l=e.title,A=e.desc,c=pme(e,hme),u=i||{width:r,height:n,x:0,y:0},d=Ve("recharts-surface",a);return S.createElement("svg",O1({},Ie(c,!0,"svg"),{className:d,width:r,height:n,style:s,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),S.createElement("title",null,l),S.createElement("desc",null,A),t)}var gme=["children","className"];function F1(){return F1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},F1.apply(this,arguments)}function vme(e,t){if(e==null)return{};var r=yme(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yme(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var lt=S.forwardRef(function(e,t){var r=e.children,n=e.className,i=vme(e,gme),a=Ve("recharts-layer",n);return S.createElement("g",F1({className:a},Ie(i,!0),{ref:t}),r)}),Hi=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function xme(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var wme=xme,bme=wme;function Bme(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:bme(e,t,r)}var Cme=Bme,jme="\\ud800-\\udfff",_me="\\u0300-\\u036f",Eme="\\ufe20-\\ufe2f",Sme="\\u20d0-\\u20ff",Nme=_me+Eme+Sme,Ome="\\ufe0e\\ufe0f",Tme="\\u200d",Fme=RegExp("["+Tme+jme+Nme+Ome+"]");function Pme(e){return Fme.test(e)}var KK=Pme;function kme(e){return e.split("")}var Ime=kme,VK="\\ud800-\\udfff",Ume="\\u0300-\\u036f",Qme="\\ufe20-\\ufe2f",Mme="\\u20d0-\\u20ff",Rme=Ume+Qme+Mme,Dme="\\ufe0e\\ufe0f",Lme="["+VK+"]",P1="["+Rme+"]",k1="\\ud83c[\\udffb-\\udfff]",$me="(?:"+P1+"|"+k1+")",WK="[^"+VK+"]",GK="(?:\\ud83c[\\udde6-\\uddff]){2}",zK="[\\ud800-\\udbff][\\udc00-\\udfff]",Hme="\\u200d",qK=$me+"?",YK="["+Dme+"]?",Kme="(?:"+Hme+"(?:"+[WK,GK,zK].join("|")+")"+YK+qK+")*",Vme=YK+qK+Kme,Wme="(?:"+[WK+P1+"?",P1,GK,zK,Lme].join("|")+")",Gme=RegExp(k1+"(?="+k1+")|"+Wme+Vme,"g");function zme(e){return e.match(Gme)||[]}var qme=zme,Yme=Ime,Xme=KK,Jme=qme;function Zme(e){return Xme(e)?Jme(e):Yme(e)}var ege=Zme,tge=Cme,rge=KK,nge=ege,ige=MK;function age(e){return function(t){t=ige(t);var r=rge(t)?nge(t):void 0,n=r?r[0]:t.charAt(0),i=r?tge(r,1).join(""):t.slice(1);return n[e]()+i}}var sge=age,oge=sge,lge=oge("toUpperCase"),Age=lge;const _w=nt(Age);function Bt(e){return function(){return e}}const XK=Math.cos,Hv=Math.sin,Ji=Math.sqrt,Kv=Math.PI,Ew=2*Kv,I1=Math.PI,U1=2*I1,ol=1e-6,cge=U1-ol;function JK(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function uge(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return JK;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class dge{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?JK:uge(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,s){this._append`C${+t},${+r},${+n}
470,${+i},${this._x1=+a},${this._y1=+s}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,l=this._y1,A=n-t,c=i-r,u=s-t,d=l-r,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(f>ol)if(!(Math.abs(d*A-c*u)>ol)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-s,m=i-l,p=A*A+c*c,v=h*h+m*m,x=Math.sqrt(p),g=Math.sqrt(f),y=a*Math.tan((I1-Math.acos((p+f-v)/(2*x*g)))/2),B=y/g,b=y/x;Math.abs(B-1)>ol&&this._append`L${t+B*u},${r+B*d}`,this._append`A${a},${a},0,0,${+(d*h>u*m)},${this._x1=t+b*A},${this._y1=r+b*c}`}}arc(t,r,n,i,a,s){if(t=+t,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),A=n*Math.sin(i),c=t+l,u=r+A,d=1^s,f=s?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ol||Math.abs(this._y1-u)>ol)&&this._append`L${c},${u}`,n&&(f<0&&(f=f%U1+U1),f>cge?this._append`A${n},${n},0,1,${d},${t-l},${r-A}A${n},${n},0,1,${d},${this._x1=c},${this._y1=u}`:f>ol&&this._append`A${n},${n},0,${+(f>=I1)},${d},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function TS(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new dge(t)}function FS(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ZK(e){this._context=e}ZK.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 Sw(e){return new ZK(e)}function e5(e){return e[0]}function t5(e){return e[1]}function r5(e,t){var r=Bt(!0),n=null,i=Sw,a=null,s=TS(l);e=typeof e=="function"?e:e===void 0?e5:Bt(e),t=typeof t=="function"?t:t===void 0?t5:Bt(t);function l(A){var c,u=(A=FS(A)).length,d,f=!1,h;for(n==null&&(a=i(h=s())),c=0;c<=u;++c)!(c<u&&r(d=A[c],c,A))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(d,c,A),+t(d,c,A));if(h)return a=null,h+""||null}return l.x=function(A){return arguments.length?(e=typeof A=="function"?A:Bt(+A),l):e},l.y=function(A){return arguments.length?(t=typeof A=="function"?A:Bt(+A),l):t},l.defined=function(A){return arguments.length?(r=typeof A=="function"?A:Bt(!!A),l):r},l.curve=function(A){return arguments.length?(i=A,n!=null&&(a=i(n)),l):i},l.context=function(A){return arguments.length?(A==null?n=a=null:a=i(n=A),l):n},l}function Vm(e,t,r){var n=null,i=Bt(!0),a=null,s=Sw,l=null,A=TS(c);e=typeof e=="function"?e:e===void 0?e5:Bt(+e),t=typeof t=="function"?t:Bt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?t5:Bt(+r);function c(d){var f,h,m,p=(d=FS(d)).length,v,x=!1,g,y=new Array(p),B=new Array(p);for(a==null&&(l=s(g=A())),f=0;f<=p;++f){if(!(f<p&&i(v=d[f],f,d))===x)if(x=!x)h=f,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),m=f-1;m>=h;--m)l.point(y[m],B[m]);l.lineEnd(),l.areaEnd()}x&&(y[f]=+e(v,f,d),B[f]=+t(v,f,d),l.point(n?+n(v,f,d):y[f],r?+r(v,f,d):B[f]))}if(g)return l=null,g+""||null}function u(){return r5().defined(i).curve(s).context(a)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Bt(+d),n=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Bt(+d),c):e},c.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Bt(+d),c):n},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:Bt(+d),r=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Bt(+d),c):t},c.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Bt(+d),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:Bt(!!d),c):i},c.curve=function(d){return arguments.length?(s=d,a!=null&&(l=s(a)),c):s},c.context=function(d){return arguments.length?(d==null?a=l=null:l=s(a=d),c):a},c}class n5{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}
vendor: 8,089 bytes, line 470
470function fge(e){return new n5(e,!0)}function hge(e){return new n5(e,!1)}const PS={draw(e,t){const r=Ji(t/Kv);e.moveTo(r,0),e.arc(0,0,r,0,Ew)}},pge={draw(e,t){const r=Ji(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},i5=Ji(1/3),mge=i5*2,gge={draw(e,t){const r=Ji(t/mge),n=r*i5;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},vge={draw(e,t){const r=Ji(t),n=-r/2;e.rect(n,n,r,r)}},yge=.8908130915292852,a5=Hv(Kv/10)/Hv(7*Kv/10),xge=Hv(Ew/10)*a5,wge=-XK(Ew/10)*a5,bge={draw(e,t){const r=Ji(t*yge),n=xge*r,i=wge*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const s=Ew*a/5,l=XK(s),A=Hv(s);e.lineTo(A*r,-l*r),e.lineTo(l*n-A*i,A*n+l*i)}e.closePath()}},Qb=Ji(3),Bge={draw(e,t){const r=-Ji(t/(Qb*3));e.moveTo(0,r*2),e.lineTo(-Qb*r,-r),e.lineTo(Qb*r,-r),e.closePath()}},Gn=-.5,zn=Ji(3)/2,Q1=1/Ji(12),Cge=(Q1/2+1)*3,jge={draw(e,t){const r=Ji(t/Cge),n=r/2,i=r*Q1,a=n,s=r*Q1+r,l=-a,A=s;e.moveTo(n,i),e.lineTo(a,s),e.lineTo(l,A),e.lineTo(Gn*n-zn*i,zn*n+Gn*i),e.lineTo(Gn*a-zn*s,zn*a+Gn*s),e.lineTo(Gn*l-zn*A,zn*l+Gn*A),e.lineTo(Gn*n+zn*i,Gn*i-zn*n),e.lineTo(Gn*a+zn*s,Gn*s-zn*a),e.lineTo(Gn*l+zn*A,Gn*A-zn*l),e.closePath()}};function _ge(e,t){let r=null,n=TS(i);e=typeof e=="function"?e:Bt(e||PS),t=typeof t=="function"?t:Bt(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Bt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Bt(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Vv(){}function Wv(e,t,r){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+r)/6)}function s5(e){this._context=e}s5.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:Wv(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:Wv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ege(e){return new s5(e)}function o5(e){this._context=e}o5.prototype={areaStart:Vv,areaEnd:Vv,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:Wv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Sge(e){return new o5(e)}function l5(e){this._context=e}l5.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Wv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nge(e){return new l5(e)}function A5(e){this._context=e}A5.prototype={areaStart:Vv,areaEnd:Vv,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 Oge(e){return new A5(e)}function mk(e){return e<0?-1:1}function gk(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),s=(r-e._y1)/(i||n<0&&-0),l=(a*i+s*n)/(n+i);return(mk(a)+mk(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function vk(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Mb(e,t,r){var n=e._x0,i=e._y0,a=e._x1,s=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,s-l*r,a,s)}function Gv(e){this._context=e}Gv.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:Mb(this,this._t0,vk(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 r=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,Mb(this,vk(this,r=gk(this,e,t)),r);break;default:Mb(this,this._t0,r=gk(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function c5(e){this._context=new u5(e)}(c5.prototype=Object.create(Gv.prototype)).point=function(e,t){Gv.prototype.point.call(this,t,e)};function u5(e){this._context=e}u5.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,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Tge(e){return new Gv(e)}function Fge(e){return new c5(e)}function d5(e){this._context=e}d5.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=yk(e),i=yk(t),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[s],t[s]);(this._line||this._line!==0&&r===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 yk(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),s=new Array(r);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Pge(e){return new d5(e)}function Nw(e,t){this._context=e,this._t=t}Nw.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;
vendor: 9,187 bytes, lines 470-473
470default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function kge(e){return new Nw(e,.5)}function Ige(e){return new Nw(e,0)}function Uge(e){return new Nw(e,1)}function du(e,t){if((s=e.length)>1)for(var r=1,n,i,a=e[t[0]],s,l=a.length;r<s;++r)for(i=a,a=e[t[r]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function M1(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Qge(e,t){return e[t]}function Mge(e){const t=[];return t.key=e,t}function Rge(){var e=Bt([]),t=M1,r=du,n=Qge;function i(a){var s=Array.from(e.apply(this,arguments),Mge),l,A=s.length,c=-1,u;for(const d of a)for(l=0,++c;l<A;++l)(s[l][c]=[0,+n(d,s[l].key,c,a)]).data=d;for(l=0,u=FS(t(s));l<A;++l)s[u[l]].index=l;return r(s,u),s}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Bt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Bt(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?M1:typeof a=="function"?a:Bt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??du,i):r},i}function Dge(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,s;i<a;++i){for(s=r=0;r<n;++r)s+=e[r][i][1]||0;if(s)for(r=0;r<n;++r)e[r][i][1]/=s}du(e,t)}}function Lge(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var s=0,l=0;s<i;++s)l+=e[s][r][1]||0;n[r][1]+=n[r][0]=-l/2}du(e,t)}}function $ge(e,t){if(!(!((s=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,s;n<a;++n){for(var l=0,A=0,c=0;l<s;++l){for(var u=e[t[l]],d=u[n][1]||0,f=u[n-1][1]||0,h=(d-f)/2,m=0;m<l;++m){var p=e[t[m]],v=p[n][1]||0,x=p[n-1][1]||0;h+=v-x}A+=d,c+=h*d}i[n-1][1]+=i[n-1][0]=r,A&&(r-=c/A)}i[n-1][1]+=i[n-1][0]=r,du(e,t)}}function ph(e){"@babel/helpers - typeof";return ph=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},ph(e)}var Hge=["type","size","sizeType"];function R1(){return R1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},R1.apply(this,arguments)}function xk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xk(Object(r),!0).forEach(function(n){Kge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kge(e,t,r){return t=Vge(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vge(e){var t=Wge(e,"string");return ph(t)=="symbol"?t:t+""}function Wge(e,t){if(ph(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ph(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gge(e,t){if(e==null)return{};var r=zge(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zge(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var f5={symbolCircle:PS,symbolCross:pge,symbolDiamond:gge,symbolSquare:vge,symbolStar:bge,symbolTriangle:Bge,symbolWye:jge},qge=Math.PI/180,Yge=function(t){var r="symbol".concat(_w(t));return f5[r]||PS},Xge=function(t,r,n){if(r==="area")return t;switch(n){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*qge;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}},Jge=function(t,r){f5["symbol".concat(_w(t))]=r},kS=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,s=t.sizeType,l=s===void 0?"area":s,A=Gge(t,Hge),c=wk(wk({},A),{},{type:n,size:a,sizeType:l}),u=function(){var v=Yge(n),x=_ge().type(v).size(Xge(a,l,n));return x()},d=c.className,f=c.cx,h=c.cy,m=Ie(c,!0);return f===+f&&h===+h&&a===+a?S.createElement("path",R1({},m,{className:Ve("recharts-symbols",d),transform:"translate(".concat(f,", ").concat(h,")"),d:u()})):null};kS.registerSymbol=Jge;function fu(e){"@babel/helpers - typeof";return fu=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},fu(e)}function D1(){return D1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},D1.apply(this,arguments)}function bk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bk(Object(r),!0).forEach(function(n){mh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p5(n.key),n)}}function rve(e,t,r){return t&&tve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nve(e,t,r){return t=zv(t),ive(e,h5()?Reflect.construct(t,r||[],zv(e).constructor):t.apply(e,r))}function ive(e,t){if(t&&(fu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ave(e)}function ave(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(h5=function(){return!!e})()}function zv(e){return zv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zv(e)}function sve(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&&L1(e,t)}function L1(e,t){return L1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},L1(e,t)}function mh(e,t,r){return t=p5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p5(e){var t=ove(e,"string");return fu(t)=="symbol"?t:t+""}function ove(e,t){if(fu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(fu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qn=32,IS=function(e){function t(){return eve(this,t),nve(this,t,arguments)}return sve(t,e),rve(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=qn/2,s=qn/6,l=qn/3,A=n.inactive?i:n.color;if(n.type==="plainline")return S.createElement("line",{strokeWidth:4,fill:"none",stroke:A,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:qn,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return S.createElement("path",{strokeWidth:4,fill:"none",stroke:A,d:"M0,".concat(a,"h").concat(l,` 471 A`).concat(s,",").concat(s,",0,1,1,").concat(2*l,",").concat(a,` 472 H`).concat(qn,"M").concat(2*l,",").concat(a,` 473 A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return S.createElement("path",{stroke:"none",fill:A,d:"M0,".concat(qn/8,"h").concat(qn,"v").concat(qn*3/4,"h").concat(-qn,"z"),className:"recharts-legend-icon"});if(S.isValidElement(n.legendIcon)){var c=Zge({},n);return delete c.legendIcon,S.cloneElement(n.legendIcon,c)}return S.createElement(kS,{fill:A,cx:a,cy:a,size:qn,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,s=i.iconSize,l=i.layout,A=i.formatter,c=i.inactiveColor,u={x:0,y:0,width:qn,height:qn}
473,d={display:l==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,m){var p=h.formatter||A,v=Ve(mh(mh({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",h.inactive));if(h.type==="none")return null;var x=Me(h.value)?null:h.value;Hi(!Me(h.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 g=h.inactive?c:h.color;return S.createElement("li",D1({className:v,style:d,key:"legend-item-".concat(m)},Xl(n.props,h,m)),S.createElement(T1,{width:s,height:s,viewBox:u,style:f},n.renderIcon(h)),S.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},p?p(x,h,m):x))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,s=n.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?s:"left"};return S.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(w.PureComponent);mh(IS,"displayName","Legend");mh(IS,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var lve=fw;function Ave(){this.__data__=new lve,this.size=0}var cve=Ave;function uve(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var dve=uve;function fve(e){return this.__data__.get(e)}var hve=fve;function pve(e){return this.__data__.has(e)}var mve=pve,gve=fw,vve=bS,yve=BS,xve=200;function wve(e,t){var r=this.__data__;if(r instanceof gve){var n=r.__data__;if(!vve||n.length<xve-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new yve(n)}return r.set(e,t),this.size=r.size,this}var bve=wve,Bve=fw,Cve=cve,jve=dve,_ve=hve,Eve=mve,Sve=bve;function ad(e){var t=this.__data__=new Bve(e);this.size=t.size}ad.prototype.clear=Cve;ad.prototype.delete=jve;ad.prototype.get=_ve;ad.prototype.has=Eve;ad.prototype.set=Sve;var m5=ad,Nve="__lodash_hash_undefined__";function Ove(e){return this.__data__.set(e,Nve),this}var Tve=Ove;function Fve(e){return this.__data__.has(e)}var Pve=Fve,kve=BS,Ive=Tve,Uve=Pve;function qv(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new kve;++t<r;)this.add(e[t])}qv.prototype.add=qv.prototype.push=Ive;qv.prototype.has=Uve;var g5=qv;function Qve(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var v5=Qve;function Mve(e,t){return e.has(t)}var y5=Mve,Rve=g5,Dve=v5,Lve=y5,$ve=1,Hve=2;function Kve(e,t,r,n,i,a){var s=r&$ve,l=e.length,A=t.length;if(l!=A&&!(s&&A>l))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=r&Hve?new Rve:void 0;for(a.set(e,t),a.set(t,e);++d<l;){var m=e[d],p=t[d];if(n)var v=s?n(p,m,d,t,e,a):n(m,p,d,e,t,a);if(v!==void 0){if(v)continue;f=!1;break}if(h){if(!Dve(t,function(x,g){if(!Lve(h,g)&&(m===x||i(m,x,r,n,a)))return h.push(g)})){f=!1;break}}else if(!(m===p||i(m,p,r,n,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var x5=Kve,Vve=Pa,Wve=Vve.Uint8Array,Gve=Wve;function zve(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var qve=zve;function Yve(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var US=Yve,Bk=Cp,Ck=Gve,Xve=wS,Jve=x5,Zve=qve,eye=US,tye=1,rye=2,nye="[object Boolean]",iye="[object Date]",aye="[object Error]",sye="[object Map]",oye="[object Number]",lye="[object RegExp]",Aye="[object Set]",cye="[object String]",uye="[object Symbol]",dye="[object ArrayBuffer]",fye="[object DataView]",jk=Bk?Bk.prototype:void 0,Rb=jk?jk.valueOf:void 0;function hye(e,t,r,n,i,a,s){switch(r){case fye:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case dye:return!(e.byteLength!=t.byteLength||!a(new Ck(e),new Ck(t)));case nye:case iye:case oye:return Xve(+e,+t);case aye:return e.name==t.name&&e.message==t.message;case lye:case cye:return e==t+"";case sye:var l=Zve;case Aye:var A=n&tye;if(l||(l=eye),e.size!=t.size&&!A)return!1;var c=s.get(e);if(c)return c==t;n|=rye,s.set(e,t);var u=Jve(l(e),l(t),n,i,a,s);return s.delete(e),u;case uye:if(Rb)return Rb.call(e)==Rb.call(t)}return!1}var pye=hye;function mye(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;
vendor: 5,463 bytes, line 473
473)e[i+r]=t[r];return e}var w5=mye,gye=w5,vye=Bn;function yye(e,t,r){var n=t(e);return vye(e)?n:gye(n,r(e))}var xye=yye;function wye(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var s=e[r];t(s,r,e)&&(a[i++]=s)}return a}var bye=wye;function Bye(){return[]}var Cye=Bye,jye=bye,_ye=Cye,Eye=Object.prototype,Sye=Eye.propertyIsEnumerable,_k=Object.getOwnPropertySymbols,Nye=_k?function(e){return e==null?[]:(e=Object(e),jye(_k(e),function(t){return Sye.call(e,t)}))}:_ye,Oye=Nye;function Tye(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Fye=Tye,Pye=_s,kye=Es,Iye="[object Arguments]";function Uye(e){return kye(e)&&Pye(e)==Iye}var Qye=Uye,Ek=Qye,Mye=Es,b5=Object.prototype,Rye=b5.hasOwnProperty,Dye=b5.propertyIsEnumerable,Lye=Ek(function(){return arguments}())?Ek:function(e){return Mye(e)&&Rye.call(e,"callee")&&!Dye.call(e,"callee")},QS=Lye,Yv={exports:{}};function $ye(){return!1}var Hye=$ye;Yv.exports;(function(e,t){var r=Pa,n=Hye,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===i,l=s?r.Buffer:void 0,A=l?l.isBuffer:void 0,c=A||n;e.exports=c})(Yv,Yv.exports);var B5=Yv.exports,Kye=9007199254740991,Vye=/^(?:0|[1-9]\d*)$/;function Wye(e,t){var r=typeof e;return t=t??Kye,!!t&&(r=="number"||r!="symbol"&&Vye.test(e))&&e>-1&&e%1==0&&e<t}var MS=Wye,Gye=9007199254740991;function zye(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Gye}var RS=zye,qye=_s,Yye=RS,Xye=Es,Jye="[object Arguments]",Zye="[object Array]",exe="[object Boolean]",txe="[object Date]",rxe="[object Error]",nxe="[object Function]",ixe="[object Map]",axe="[object Number]",sxe="[object Object]",oxe="[object RegExp]",lxe="[object Set]",Axe="[object String]",cxe="[object WeakMap]",uxe="[object ArrayBuffer]",dxe="[object DataView]",fxe="[object Float32Array]",hxe="[object Float64Array]",pxe="[object Int8Array]",mxe="[object Int16Array]",gxe="[object Int32Array]",vxe="[object Uint8Array]",yxe="[object Uint8ClampedArray]",xxe="[object Uint16Array]",wxe="[object Uint32Array]",Ot={};Ot[fxe]=Ot[hxe]=Ot[pxe]=Ot[mxe]=Ot[gxe]=Ot[vxe]=Ot[yxe]=Ot[xxe]=Ot[wxe]=!0;Ot[Jye]=Ot[Zye]=Ot[uxe]=Ot[exe]=Ot[dxe]=Ot[txe]=Ot[rxe]=Ot[nxe]=Ot[ixe]=Ot[axe]=Ot[sxe]=Ot[oxe]=Ot[lxe]=Ot[Axe]=Ot[cxe]=!1;function bxe(e){return Xye(e)&&Yye(e.length)&&!!Ot[qye(e)]}var Bxe=bxe;function Cxe(e){return function(t){return e(t)}}var C5=Cxe,Xv={exports:{}};Xv.exports;(function(e,t){var r=FK,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,s=a&&r.process,l=function(){try{var A=i&&i.require&&i.require("util").types;return A||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(Xv,Xv.exports);var jxe=Xv.exports,_xe=Bxe,Exe=C5,Sk=jxe,Nk=Sk&&Sk.isTypedArray,Sxe=Nk?Exe(Nk):_xe,j5=Sxe,Nxe=Fye,Oxe=QS,Txe=Bn,Fxe=B5,Pxe=MS,kxe=j5,Ixe=Object.prototype,Uxe=Ixe.hasOwnProperty;function Qxe(e,t){var r=Txe(e),n=!r&&Oxe(e),i=!r&&!n&&Fxe(e),a=!r&&!n&&!i&&kxe(e),s=r||n||i||a,l=s?Nxe(e.length,String):[],A=l.length;for(var c in e)(t||Uxe.call(e,c))&&!(s&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Pxe(c,A)))&&l.push(c);return l}var Mxe=Qxe,Rxe=Object.prototype;function Dxe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Rxe;return e===r}var Lxe=Dxe;function $xe(e,t){return function(r){return e(t(r))}}var _5=$xe,Hxe=_5,Kxe=Hxe(Object.keys,Object),Vxe=Kxe,Wxe=Lxe,Gxe=Vxe,zxe=Object.prototype,qxe=zxe.hasOwnProperty;function Yxe(e){if(!Wxe(e))return Gxe(e);var t=[];for(var r in Object(e))qxe.call(e,r)&&r!="constructor"&&t.push(r);return t}var Xxe=Yxe,Jxe=xS,Zxe=RS;function ewe(e){return e!=null&&Zxe(e.length)&&!Jxe(e)}var _p=ewe,twe=Mxe,rwe=Xxe,nwe=_p;function iwe(e){return nwe(e)?twe(e):rwe(e)}var Ow=iwe,awe=xye,swe=Oye,owe=Ow;function lwe(e){return awe(e,owe,swe)}var Awe=lwe,Ok=Awe,cwe=1,uwe=Object.prototype,dwe=uwe.hasOwnProperty;function fwe(e,t,r,n,i,a){var s=r&cwe,l=Ok(e),A=l.length,c=Ok(t),u=c.length;if(A!=u&&!s)return!1;for(var d=A;d--;){var f=l[d];if(!(s?f in t:dwe.call(t,f)))return!1}var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var p=!0;a.set(e,t),a.set(t,e);for(var v=s;++d<A;){f=l[d];var x=e[f],g=t[f];if(n)var y=s?n(g,x,f,t,e,a):n(x,g,f,e,t,a);if(!(y===void 0?x===g||i(x,g,r,n,a):y)){p=!1;break}v||(v=f=="constructor")}if(p&&!v){var B=e.constructor,b=t.constructor;B!=b&&"constructor"in e&&"constructor"in t&&!(typeof B=="function"&&B instanceof B&&typeof b=="function"&&b instanceof b)&&(p=!1)}return a.delete(e),a.delete(t),p}var hwe=fwe,pwe=mA,mwe=Pa,gwe=pwe(mwe,"DataView"),vwe=gwe,ywe=mA,xwe=Pa,wwe=ywe(xwe,"Promise"),bwe=wwe,Bwe=mA,Cwe=Pa,jwe=Bwe(Cwe,"Set"),E5=jwe,_we=mA,Ewe=Pa,Swe=_we(Ewe,"WeakMap"),Nwe=Swe,$1=vwe,H1=bS,K1=bwe,V1=E5,W1=Nwe,S5=_s,sd=kK,Tk="[object Map]",Owe="[object Object]",Fk="[object Promise]",Pk="[object Set]",kk="[object WeakMap]",Ik="[object DataView]",Twe=sd($1),Fwe=sd(H1),Pwe=sd(K1),kwe=sd(V1),Iwe=sd(W1),ll=S5;($1&&ll(new $1(new ArrayBuffer(1)))!=Ik||H1&&ll(new H1)!=Tk||K1&&ll(K1.resolve())!=Fk||V1&&ll(new V1)!=Pk||W1&&ll(new W1)!=kk)&&(ll=function(e){var t=S5(e),r=t==Owe?e.constructor:void 0,n=r?sd(r):"";if(n)switch(n){case Twe:return Ik;case Fwe:return Tk;case Pwe:return Fk;case kwe:return Pk;case Iwe:return kk}return t});var Uwe=ll,Db=m5,Qwe=x5,Mwe=pye,Rwe=hwe,Uk=Uwe,Qk=Bn,Mk=B5,Dwe=j5,Lwe=1,Rk="[object Arguments]",Dk="[object Array]",Wm="[object Object]",$we=Object.prototype,Lk=$we.hasOwnProperty;function Hwe(e,t,r,n,i,a){var s=Qk(e),l=Qk(t),A=s?Dk:Uk(e),c=l?Dk:Uk(t);A=A==Rk?Wm:A,c=c==Rk?Wm:c;var u=A==Wm,d=c==Wm,f=A==c;
vendor: 4,135 bytes, line 473
473if(f&&Mk(e)){if(!Mk(t))return!1;s=!0,u=!1}if(f&&!u)return a||(a=new Db),s||Dwe(e)?Qwe(e,t,r,n,i,a):Mwe(e,t,A,r,n,i,a);if(!(r&Lwe)){var h=u&&Lk.call(e,"__wrapped__"),m=d&&Lk.call(t,"__wrapped__");if(h||m){var p=h?e.value():e,v=m?t.value():t;return a||(a=new Db),i(p,v,r,n,a)}}return f?(a||(a=new Db),Rwe(e,t,r,n,i,a)):!1}var Kwe=Hwe,Vwe=Kwe,$k=Es;function N5(e,t,r,n,i){return e===t?!0:e==null||t==null||!$k(e)&&!$k(t)?e!==e&&t!==t:Vwe(e,t,r,n,N5,i)}var DS=N5,Wwe=m5,Gwe=DS,zwe=1,qwe=2;function Ywe(e,t,r,n){var i=r.length,a=i,s=!n;if(e==null)return!a;for(e=Object(e);i--;){var l=r[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=r[i];var A=l[0],c=e[A],u=l[1];if(s&&l[2]){if(c===void 0&&!(A in e))return!1}else{var d=new Wwe;if(n)var f=n(c,u,A,e,t,d);if(!(f===void 0?Gwe(u,c,zwe|qwe,n,d):f))return!1}}return!0}var Xwe=Ywe,Jwe=Ko;function Zwe(e){return e===e&&!Jwe(e)}var O5=Zwe,e0e=O5,t0e=Ow;function r0e(e){for(var t=t0e(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,e0e(i)]}return t}var n0e=r0e;function i0e(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var T5=i0e,a0e=Xwe,s0e=n0e,o0e=T5;function l0e(e){var t=s0e(e);return t.length==1&&t[0][2]?o0e(t[0][0],t[0][1]):function(r){return r===e||a0e(r,e,t)}}var A0e=l0e;function c0e(e,t){return e!=null&&t in Object(e)}var u0e=c0e,d0e=RK,f0e=QS,h0e=Bn,p0e=MS,m0e=RS,g0e=pw;function v0e(e,t,r){t=d0e(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var s=g0e(t[n]);if(!(a=e!=null&&r(e,s)))break;e=e[s]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&m0e(i)&&p0e(s,i)&&(h0e(e)||f0e(e)))}var y0e=v0e,x0e=u0e,w0e=y0e;function b0e(e,t){return e!=null&&w0e(e,t,x0e)}var B0e=b0e,C0e=DS,j0e=DK,_0e=B0e,E0e=yS,S0e=O5,N0e=T5,O0e=pw,T0e=1,F0e=2;function P0e(e,t){return E0e(e)&&S0e(t)?N0e(O0e(e),t):function(r){var n=j0e(r,e);return n===void 0&&n===t?_0e(r,e):C0e(t,n,T0e|F0e)}}var k0e=P0e;function I0e(e){return e}var od=I0e;function U0e(e){return function(t){return t==null?void 0:t[e]}}var Q0e=U0e,M0e=_S;function R0e(e){return function(t){return M0e(t,e)}}var D0e=R0e,L0e=Q0e,$0e=D0e,H0e=yS,K0e=pw;function V0e(e){return H0e(e)?L0e(K0e(e)):$0e(e)}var W0e=V0e,G0e=A0e,z0e=k0e,q0e=od,Y0e=Bn,X0e=W0e;function J0e(e){return typeof e=="function"?e:e==null?q0e:typeof e=="object"?Y0e(e)?z0e(e[0],e[1]):G0e(e):X0e(e)}var ka=J0e;function Z0e(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var F5=Z0e;function ebe(e){return e!==e}var tbe=ebe;function rbe(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var nbe=rbe,ibe=F5,abe=tbe,sbe=nbe;function obe(e,t,r){return t===t?sbe(e,t,r):ibe(e,abe,r)}var lbe=obe,Abe=lbe;function cbe(e,t){var r=e==null?0:e.length;return!!r&&Abe(e,t,0)>-1}var ube=cbe;function dbe(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var fbe=dbe;function hbe(){}var pbe=hbe,Lb=E5,mbe=pbe,gbe=US,vbe=1/0,ybe=Lb&&1/gbe(new Lb([,-0]))[1]==vbe?function(e){return new Lb(e)}:mbe,xbe=ybe,wbe=g5,bbe=ube,Bbe=fbe,Cbe=y5,jbe=xbe,_be=US,Ebe=200;function Sbe(e,t,r){var n=-1,i=bbe,a=e.length,s=!0,l=[],A=l;if(r)s=!1,i=Bbe;else if(a>=Ebe){var c=t?null:jbe(e);if(c)return _be(c);s=!1,i=Cbe,A=new wbe}else A=t?[]:l;e:for(;++n<a;){var u=e[n],d=t?t(u):u;if(u=r||u!==0?u:0,s&&d===d){for(var f=A.length;f--;)if(A[f]===d)continue e;t&&A.push(d),l.push(u)}else i(A,d,r)||(A!==l&&A.push(d),l.push(u))}return l}var Nbe=Sbe,Obe=ka,Tbe=Nbe;function Fbe(e,t){return e&&e.length?Tbe(e,Obe(t)):[]}var Pbe=Fbe;const Hk=nt(Pbe);function P5(e,t,r){return t===!0?Hk(e,r):Me(t)?Hk(e,t):e}function hu(e){"@babel/helpers - typeof";return hu=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},hu(e)}var kbe=["ref"];function Kk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 4,101 bytes, line 473
473t%2?Kk(Object(r),!0).forEach(function(n){Tw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ibe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I5(n.key),n)}}function Ube(e,t,r){return t&&Vk(e.prototype,t),r&&Vk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qbe(e,t,r){return t=Jv(t),Mbe(e,k5()?Reflect.construct(t,r||[],Jv(e).constructor):t.apply(e,r))}function Mbe(e,t){if(t&&(hu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rbe(e)}function Rbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k5=function(){return!!e})()}function Jv(e){return Jv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jv(e)}function Dbe(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&&G1(e,t)}function G1(e,t){return G1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},G1(e,t)}function Tw(e,t,r){return t=I5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I5(e){var t=Lbe(e,"string");return hu(t)=="symbol"?t:t+""}function Lbe(e,t){if(hu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(hu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $be(e,t){if(e==null)return{};var r=Hbe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Hbe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Kbe(e){return e.value}function Vbe(e,t){if(S.isValidElement(e))return S.cloneElement(e,t);if(typeof e=="function")return S.createElement(e,t);t.ref;var r=$be(t,kbe);return S.createElement(IS,r)}var Wk=1,Ql=function(e){function t(){var r;Ibe(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Qbe(this,t,[].concat(i)),Tw(r,"lastBoundingBox",{width:-1,height:-1}),r}return Dbe(t,e),Ube(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Wk||Math.abs(i.height-this.lastBoundingBox.height)>Wk)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?$a({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,s=i.align,l=i.verticalAlign,A=i.margin,c=i.chartWidth,u=i.chartHe
473ight,d,f;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(s==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();d={left:((c||0)-h.width)/2}}else d=s==="right"?{right:A&&A.right||0}:{left:A&&A.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var m=this.getBBoxSnapshot();f={top:((u||0)-m.height)/2}}else f=l==="bottom"?{bottom:A&&A.bottom||0}:{top:A&&A.top||0};return $a($a({},d),f)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,s=i.width,l=i.height,A=i.wrapperStyle,c=i.payloadUniqBy,u=i.payload,d=$a($a({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(A)),A);return S.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(h){n.wrapperNode=h}},Vbe(a,$a($a({},this.props),{},{payload:P5(u,c,Kbe)})))}}],[{key:"getWithHeight",value:function(n,i){var a=$a($a({},this.defaultProps),n.props),s=a.layout;return s==="vertical"&&oe(n.props.height)?{height:n.props.height}:s==="horizontal"?{width:n.props.width||i}:null}}])}(w.PureComponent);Tw(Ql,"displayName","Legend");Tw(Ql,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Gk=Cp,Wbe=QS,Gbe=Bn,zk=Gk?Gk.isConcatSpreadable:void 0;function zbe(e){return Gbe(e)||Wbe(e)||!!(zk&&e&&e[zk])}var qbe=zbe,Ybe=w5,Xbe=qbe;function U5(e,t,r,n,i){var a=-1,s=e.length;for(r||(r=Xbe),i||(i=[]);++a<s;){var l=e[a];t>0&&r(l)?t>1?U5(l,t-1,r,n,i):Ybe(i,l):n||(i[i.length]=l)}return i}var Q5=U5;function Jbe(e){return function(t,r,n){for(var i=-1,a=Object(t),s=n(t),l=s.length;l--;){var A=s[e?l:++i];if(r(a[A],A,a)===!1)break}return t}}var Zbe=Jbe,eBe=Zbe,tBe=eBe(),rBe=tBe,nBe=rBe,iBe=Ow;function aBe(e,t){return e&&nBe(e,t,iBe)}var M5=aBe,sBe=_p;function oBe(e,t){return function(r,n){if(r==null)return r;if(!sBe(r))return e(r,n);for(var i=r.length,a=t?i:-1,s=Object(r);(t?a--:++a<i)&&n(s[a],a,s)!==!1;);return r}}var lBe=oBe,ABe=M5,cBe=lBe,uBe=cBe(ABe),LS=uBe,dBe=LS,fBe=_p;function hBe(e,t){var r=-1,n=fBe(e)?Array(e.length):[];return dBe(e,function(i,a,s){n[++r]=t(i,a,s)}),n}var R5=hBe;function pBe(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var mBe=pBe,qk=Zu;function gBe(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=qk(e),s=t!==void 0,l=t===null,A=t===t,c=qk(t);if(!l&&!c&&!a&&e>t||a&&s&&A&&!l&&!c||n&&s&&A||!r&&A||!i)return 1;if(!n&&!a&&!c&&e<t||c&&r&&i&&!n&&!a||l&&r&&i||!s&&i||!A)return-1}return 0}var vBe=gBe,yBe=vBe;function xBe(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,s=i.length,l=r.length;++n<s;){var A=yBe(i[n],a[n]);if(A){if(n>=l)return A;var c=r[n];return A*(c=="desc"?-1:1)}}return e.index-t.index}var wBe=xBe,$b=jS,bBe=_S,BBe=ka,CBe=R5,jBe=mBe,_Be=C5,EBe=wBe,SBe=od,NBe=Bn;function OBe(e,t,r){t.length?t=$b(t,function(a){return NBe(a)?function(s){return bBe(s,a.length===1?a[0]:a)}:a}):t=[SBe];var n=-1;t=$b(t,_Be(BBe));var i=CBe(e,function(a,s,l){var A=$b(t,function(c){return c(a)});return{criteria:A,index:++n,value:a}});return jBe(i,function(a,s){return EBe(a,s,r)})}var TBe=OBe;function FBe(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var PBe=FBe,kBe=PBe,Yk=Math.max;function IBe(e,t,r){return t=Yk(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Yk(n.length-t,0),s=Array(a);++i<a;)s[i]=n[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=n[i];return l[t]=r(s),kBe(e,this,l)}}var UBe=IBe;function QBe(e){return function(){return e}}var MBe=QBe,RBe=mA,DBe=function(){try{var e=RBe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),D5=DBe,LBe=MBe,Xk=D5,$Be=od,HBe=Xk?function(e,t){return Xk(e,"toString",{configurable:!0,enumerable:!1,value:LBe(t),writable:!0})}:$Be,KBe=HBe,VBe=800,WBe=16,GBe=Date.now;function zBe(e){var t=0,r=0;return function(){var n=GBe(),i=WBe-(n-r);if(r=n,i>0){if(++t>=VBe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var qBe=zBe,YBe=KBe,XBe=qBe,JBe=XBe(YBe),ZBe=JBe,eCe=od,tCe=UBe,rCe=ZBe;function nCe(e,t){return rCe(tCe(e,t,eCe),e+"")}var iCe=nCe,aCe=wS,sCe=_p,oCe=MS,lCe=Ko;function ACe(e,t,r){if(!lCe(r))return!1;var n=typeof t;return(n=="number"?sCe(r)&&oCe(t,r.length):n=="string"&&t in r)?aCe(r[t],e):!1}var Fw=ACe,cCe=Q5,uCe=TBe,dCe=iCe,Jk=Fw,fCe=dCe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Jk(e,t[0],t[1])?t=[]:r>2&&Jk(t[0],t[1],t[2])&&(t=[t[0]]),uCe(e,cCe(t,1),[])}),hCe=fCe;const $S=nt(hCe);function gh(e){"@babel/helpers - typeof";return gh=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},gh(e)}function z1(){return z1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 10,902 bytes, lines 473-474
473for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},z1.apply(this,arguments)}function pCe(e,t){return yCe(e)||vCe(e,t)||gCe(e,t)||mCe()}function mCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 474In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gCe(e,t){if(e){if(typeof e=="string")return Zk(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zk(e,t)}}function Zk(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vCe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,l=[],A=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(A=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);A=!0);}catch(u){c=!0,i=u}finally{try{if(!A&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}function yCe(e){if(Array.isArray(e))return e}function eI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eI(Object(r),!0).forEach(function(n){xCe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xCe(e,t,r){return t=wCe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wCe(e){var t=bCe(e,"string");return gh(t)=="symbol"?t:t+""}function bCe(e,t){if(gh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(gh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BCe(e){return Array.isArray(e)&&fr(e[0])&&fr(e[1])?e.join(" ~ "):e}var CCe=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,s=t.itemStyle,l=s===void 0?{}:s,A=t.labelStyle,c=A===void 0?{}:A,u=t.payload,d=t.formatter,f=t.itemSorter,h=t.wrapperClassName,m=t.labelClassName,p=t.label,v=t.labelFormatter,x=t.accessibilityLayer,g=x===void 0?!1:x,y=function(){if(u&&u.length){var k={padding:0,margin:0},N=(f?$S(u,f):u).map(function(F,M){if(F.type==="none")return null;var O=Hb({display:"block",paddingTop:4,paddingBottom:4,color:F.color||"#000"},l),U=F.formatter||d||BCe,P=F.value,Q=F.name,$=P,G=Q;if(U&&$!=null&&G!=null){var K=U(P,Q,F,M,u);if(Array.isArray(K)){var X=pCe(K,2);$=X[0],G=X[1]}else $=K}return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(M),style:O},fr(G)?S.createElement("span",{className:"recharts-tooltip-item-name"},G):null,fr(G)?S.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,S.createElement("span",{className:"recharts-tooltip-item-value"},$),S.createElement("span",{className:"recharts-tooltip-item-unit"},F.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:k},N)}return null},B=Hb({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),b=Hb({margin:0},c),C=!$e(p),j=C?p:"",_=Ve("recharts-default-tooltip",h),E=Ve("recharts-tooltip-label",m);C&&v&&u!==void 0&&u!==null&&(j=v(p,u));var I=g?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",z1({className:_,style:B},I),S.createElement("p",{className:E,style:b},S.isValidElement(j)?j:"".concat(j)),y())};function vh(e){"@babel/helpers - typeof";return vh=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},vh(e)}function Gm(e,t,r){return t=jCe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jCe(e){var t=_Ce(e,"string");return vh(t)=="symbol"?t:t+""}function _Ce(e,t){if(vh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Id="recharts-tooltip-wrapper",ECe={visibility:"hidden"};function SCe(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Ve(Id,Gm(Gm(Gm(Gm({},"".concat(Id,"-right"),oe(r)&&t&&oe(t.x)&&r>=t.x),"".concat(Id,"-left"),oe(r)&&t&&oe(t.x)&&r<t.x),"".concat(Id,"-bottom"),oe(n)&&t&&oe(t.y)&&n>=t.y),"".concat(Id,"-top"),oe(n)&&t&&oe(t.y)&&n<t.y))}function tI(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,s=e.reverseDirection,l=e.tooltipDimension,A=e.viewBox,c=e.viewBoxDimension;if(a&&oe(a[n]))return a[n];var u=r[n]-l-i,d=r[n]+i;if(t[n])return s[n]?u:d;if(s[n]){var f=u,h=A[n];return f<h?Math.max(d,A[n]):Math.max(u,A[n])}var m=d+l,p=A[n]+c;return m>p?Math.max(u,A[n]):Math.max(d,A[n])}function NCe(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function OCe(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,s=e.tooltipBox,l=e.useTranslate3d,A=e.viewBox,c,u,d;return s.height>0&&s.width>0&&r?(u=tI({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:A,viewBoxDimension:A.width}),d=tI({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:A,viewBoxDimension:A.height}),c=NCe({translateX:u,translateY:d,useTranslate3d:l})):c=ECe,{cssProperties:c,cssClasses:SCe({translateX:u,translateY:d,coordinate:r})}}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 rI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rI(Object(r),!0).forEach(function(n){Y1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FCe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$5(n.key),n)}}function PCe(e,t,r){return t&&FCe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kCe(e,t,r){return t=Zv(t),ICe(e,L5()?Reflect.construct(t,r||[],Zv(e).constructor):t.apply(e,r))}function ICe(e,t){if(t&&(pu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UCe(e)}function UCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L5=function(){return!!e})()}function Zv(e){return Zv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zv(e)}function QCe(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&&q1(e,t)}function q1(e,t){return q1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},q1(e,t)}function Y1(e,t,r){return t=$5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $5(e){var t=MCe(e,"string");return pu(t)=="symbol"?t:t+""}function MCe(e,t){if(pu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(pu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iI=1,RCe=function(e){function t(){var r;TCe(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=kCe(this,t,[].concat(i)),Y1(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Y1(r,"handleKeyDown",function(s){if(s.key==="Escape"){var l,A,c,u;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(A=r.props.coordinate)===null||A===void 0?void 0:A.x)!==null&&l!==void 0?l:0,y:(c=(u=r.props.coordinate)===null||u===void 0?void 0:u.y)!==null&&c!==void 0?c:0}})}}),r}return QCe(t,e),PCe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>iI||Math.abs(n.height-this.state.lastBoundingBox.height)>iI)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,A=i.animationEasing,c=i.children,u=i.coordinate,d=i.hasPayload,f=i.isAnimationActive,h=i.offset,m=i.position,p=i.reverseDirection,v=i.useTranslate3d,x=i.viewBox,g=i.wrapperStyle,y=OCe({allowEscapeViewBox:s,coordinate:u,offsetTopLeft:h,position:m,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:x}
474),B=y.cssClasses,b=y.cssProperties,C=nI(nI({transition:f&&a?"transform ".concat(l,"ms ").concat(A):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&d?"visible":"hidden",position:"absolute",top:0,left:0},g);return S.createElement("div",{tabIndex:-1,className:B,style:C,ref:function(_){n.wrapperNode=_}},c)}}])}(w.PureComponent),DCe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ya={isSsr:DCe(),get:function(t){return ya[t]},set:function(t,r){if(typeof t=="string")ya[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){ya[i]=t[i]})}}};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 aI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aI(Object(r),!0).forEach(function(n){HS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $Ce(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,K5(n.key),n)}}function HCe(e,t,r){return t&&$Ce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KCe(e,t,r){return t=ey(t),VCe(e,H5()?Reflect.construct(t,r||[],ey(e).constructor):t.apply(e,r))}function VCe(e,t){if(t&&(mu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WCe(e)}function WCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H5=function(){return!!e})()}function ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ey(e)}function GCe(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&&X1(e,t)}function X1(e,t){return X1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},X1(e,t)}function HS(e,t,r){return t=K5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K5(e){var t=zCe(e,"string");return mu(t)=="symbol"?t:t+""}function zCe(e,t){if(mu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(mu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qCe(e){return e.dataKey}function YCe(e,t){return S.isValidElement(e)?S.cloneElement(e,t):typeof e=="function"?S.createElement(e,t):S.createElement(CCe,t)}var aa=function(e){function t(){return LCe(this,t),KCe(this,t,arguments)}return GCe(t,e),HCe(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,A=i.animationEasing,c=i.content,u=i.coordinate,d=i.filterNull,f=i.isAnimationActive,h=i.offset,m=i.payload,p=i.payloadUniqBy,v=i.position,x=i.reverseDirection,g=i.useTranslate3d,y=i.viewBox,B=i.wrapperStyle,b=m??[];d&&b.length&&(b=P5(m.filter(function(j){return j.value!=null&&(j.hide!==!0||n.props.includeHidden)}),p,qCe));var C=b.length>0;return S.createElement(RCe,{allowEscapeViewBox:s,animationDuration:l,animationEasing:A,isAnimationActive:f,active:a,coordinate:u,hasPayload:C,offset:h,position:v,reverseDirection:x,useTranslate3d:g,viewBox:y,wrapperStyle:B},YCe(c,sI(sI({},this.props),{},{payload:b})))}}])}(w.PureComponent);HS(aa,"displayName","Tooltip");HS(aa,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ya.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 XCe=Pa,JCe=function(){return XCe.Date.now()},ZCe=JCe,e1e=/\s/;function t1e(e){for(var t=e.length;t--&&e1e.test(e.charAt(t)););return t}
vendor: 14,727 bytes, lines 474-481
474var r1e=t1e,n1e=r1e,i1e=/^\s+/;function a1e(e){return e&&e.slice(0,n1e(e)+1).replace(i1e,"")}var s1e=a1e,o1e=s1e,oI=Ko,l1e=Zu,lI=NaN,A1e=/^[-+]0x[0-9a-f]+$/i,c1e=/^0b[01]+$/i,u1e=/^0o[0-7]+$/i,d1e=parseInt;function f1e(e){if(typeof e=="number")return e;if(l1e(e))return lI;if(oI(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oI(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=o1e(e);var r=c1e.test(e);return r||u1e.test(e)?d1e(e.slice(2),r?2:8):A1e.test(e)?lI:+e}var V5=f1e,h1e=Ko,Kb=ZCe,AI=V5,p1e="Expected a function",m1e=Math.max,g1e=Math.min;function v1e(e,t,r){var n,i,a,s,l,A,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(p1e);t=AI(t)||0,h1e(r)&&(u=!!r.leading,d="maxWait"in r,a=d?m1e(AI(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function h(C){var j=n,_=i;return n=i=void 0,c=C,s=e.apply(_,j),s}function m(C){return c=C,l=setTimeout(x,t),u?h(C):s}function p(C){var j=C-A,_=C-c,E=t-j;return d?g1e(E,a-_):E}function v(C){var j=C-A,_=C-c;return A===void 0||j>=t||j<0||d&&_>=a}function x(){var C=Kb();if(v(C))return g(C);l=setTimeout(x,p(C))}function g(C){return l=void 0,f&&n?h(C):(n=i=void 0,s)}function y(){l!==void 0&&clearTimeout(l),c=0,n=A=i=l=void 0}function B(){return l===void 0?s:g(Kb())}function b(){var C=Kb(),j=v(C);if(n=arguments,i=this,A=C,j){if(l===void 0)return m(A);if(d)return clearTimeout(l),l=setTimeout(x,t),h(A)}return l===void 0&&(l=setTimeout(x,t)),s}return b.cancel=y,b.flush=B,b}var y1e=v1e,x1e=y1e,w1e=Ko,b1e="Expected a function";function B1e(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(b1e);return w1e(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),x1e(e,t,{leading:n,maxWait:t,trailing:i})}var C1e=B1e;const W5=nt(C1e);function yh(e){"@babel/helpers - typeof";return yh=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},yh(e)}function cI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cI(Object(r),!0).forEach(function(n){j1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j1e(e,t,r){return t=_1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _1e(e){var t=E1e(e,"string");return yh(t)=="symbol"?t:t+""}function E1e(e,t){if(yh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(yh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function S1e(e,t){return F1e(e)||T1e(e,t)||O1e(e,t)||N1e()}function N1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 475In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O1e(e,t){if(e){if(typeof e=="string")return uI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uI(e,t)}}function uI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function T1e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,l=[],A=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(A=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);A=!0);}catch(u){c=!0,i=u}finally{try{if(!A&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}function F1e(e){if(Array.isArray(e))return e}var Ep=w.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,s=a===void 0?"100%":a,l=e.height,A=l===void 0?"100%":l,c=e.minWidth,u=c===void 0?0:c,d=e.minHeight,f=e.maxHeight,h=e.children,m=e.debounce,p=m===void 0?0:m,v=e.id,x=e.className,g=e.onResize,y=e.style,B=y===void 0?{}:y,b=w.useRef(null),C=w.useRef();C.current=g,w.useImperativeHandle(t,function(){return Object.defineProperty(b.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),b.current},configurable:!0})});var j=w.useState({containerWidth:i.width,containerHeight:i.height}),_=S1e(j,2),E=_[0],I=_[1],T=w.useCallback(function(N,F){I(function(M){var O=Math.round(N),U=Math.round(F);return M.containerWidth===O&&M.containerHeight===U?M:{containerWidth:O,containerHeight:U}})},[]);w.useEffect(function(){var N=function(Q){var $,G=Q[0].contentRect,K=G.width,X=G.height;T(K,X),($=C.current)===null||$===void 0||$.call(C,K,X)};p>0&&(N=W5(N,p,{trailing:!0,leading:!1}));var F=new ResizeObserver(N),M=b.current.getBoundingClientRect(),O=M.width,U=M.height;return T(O,U),F.observe(b.current),function(){F.disconnect()}},[T,p]);var k=w.useMemo(function(){var N=E.containerWidth,F=E.containerHeight;if(N<0||F<0)return null;Hi(wl(s)||wl(A),`The width(%s) and height(%s) are both fixed numbers, 476 maybe you don't need to use a ResponsiveContainer.`,s,A),Hi(!r||r>0,"The aspect(%s) must be greater than zero.",r);var M=wl(s)?N:s,O=wl(A)?F:A;r&&r>0&&(M?O=M/r:O&&(M=O*r),f&&O>f&&(O=f)),Hi(M>0||O>0,`The width(%s) and height(%s) of chart should be greater than 0, 477 please check the style of container, or the props width(%s) and height(%s), 478 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 479 height and width.`,M,O,s,A,u,d,r);var U=!Array.isArray(h)&&os(h.type).endsWith("Chart");return S.Children.map(h,function(P){return S.isValidElement(P)?w.cloneElement(P,zm({width:M,height:O},U?{style:zm({height:"100%",width:"100%",maxHeight:O,maxWidth:M},P.props.style)}:{})):P})},[r,h,A,f,d,u,E,s]);return S.createElement("div",{id:v?"".concat(v):void 0,className:Ve("recharts-responsive-container",x),style:zm(zm({},B),{},{width:s,height:A,minWidth:u,minHeight:d,maxHeight:f}),ref:b},k)}),Sp=function(t){return null};Sp.displayName="Cell";function xh(e){"@babel/helpers - typeof";return xh=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},xh(e)}function dI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function J1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dI(Object(r),!0).forEach(function(n){P1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P1e(e,t,r){return t=k1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k1e(e){var t=I1e(e,"string");return xh(t)=="symbol"?t:t+""}function I1e(e,t){if(xh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var DA={widthCache:{},cacheCount:0},U1e=2e3,Q1e={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},fI="recharts_measurement_span";function M1e(e){var t=J1({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Nf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ya.isSsr)return{width:0,height:0};var n=M1e(r),i=JSON.stringify({text:t,copyStyle:n});if(DA.widthCache[i])return DA.widthCache[i];try{var a=document.getElementById(fI);a||(a=document.createElement("span"),a.setAttribute("id",fI),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var s=J1(J1({},Q1e),n);Object.assign(a.style,s),a.textContent="".concat(t);var l=a.getBoundingClientRect(),A={width:l.width,height:l.height};return DA.widthCache[i]=A,++DA.cacheCount>U1e&&(DA.cacheCount=0,DA.widthCache={}),A}catch{return{width:0,height:0}}},R1e=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function wh(e){"@babel/helpers - typeof";return wh=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},wh(e)}function ty(e,t){return H1e(e)||$1e(e,t)||L1e(e,t)||D1e()}function D1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 480In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L1e(e,t){if(e){if(typeof e=="string")return hI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hI(e,t)}}function hI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $1e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,l=[],A=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;A=!1}else for(;!(A=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);A=!0);}catch(u){c=!0,i=u}finally{try{if(!A&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}function H1e(e){if(Array.isArray(e))return e}function K1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,W1e(n.key),n)}}function V1e(e,t,r){return t&&pI(e.prototype,t),r&&pI(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function W1e(e){var t=G1e(e,"string");return wh(t)=="symbol"?t:t+""}function G1e(e,t){if(wh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,gI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,z1e=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,q1e=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,G5={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Y1e=Object.keys(G5),gc="NaN";function X1e(e,t){return e*G5[t]}var qm=function(){function e(t,r){K1e(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!z1e.test(r)&&(this.num=NaN,this.unit=""),Y1e.includes(r)&&(this.num=X1e(t,r),this.unit="px")}return V1e(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=q1e.exec(r))!==null&&n!==void 0?n:[],a=ty(i,3),s=a[1],l=a[2];return new e(parseFloat(s),l??"")}}])}();function z5(e){if(e.includes(gc))return gc;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=mI.exec(t))!==null&&r!==void 0?r:[],i=ty(n,4),a=i[1],s=i[2],l=i[3],A=qm.parse(a??""),c=qm.parse(l??""),u=s==="*"?A.multiply(c):A.divide(c);if(u.isNaN())return gc;t=t.replace(mI,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,f=(d=gI.exec(t))!==null&&d!==void 0?d:[],h=ty(f,4),m=h[1],p=h[2],v=h[3],x=qm.parse(m??""),g=qm.parse(v??""),y=p==="+"?x.add(g):x.subtract(g);if(y.isNaN())return gc;t=t.replace(gI,y.toString())}return t}var vI=/\(([^()]*)\)/;function J1e(e){for(var t=e;t.includes("(");){var r=vI.exec(t),n=ty(r,2),i=n[1];t=t.replace(vI,z5(i))}return t}function Z1e(e){var t=e.replace(/\s+/g,"");return t=J1e(t),t=z5(t),t}function eje(e){try{return Z1e(e)}catch{return gc}}function Vb(e){var t=eje(e.slice(5,-1));return t===gc?"":t}var tje=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],rje=["dx","dy","angle","className","breakAll"];function Z1(){return Z1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Z1.apply(this,arguments)}function yI(e,t){if(e==null)return{};var r=nje(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nje(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function xI(e,t){return oje(e)||sje(e,t)||aje(e,t)||ije()}function ije(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 481In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aje(e,t){if(e){if(typeof e=="string")return wI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wI(e,t)}}function wI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sje(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,l=[],A=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;A=!1}else for(;!(A=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);A=!0);}catch(u){c=!0,i=u}
481finally{try{if(!A&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}function oje(e){if(Array.isArray(e))return e}var q5=/[ \f\n\r\t\v\u2028\u2029]+/,Y5=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];$e(r)||(n?a=r.toString().split(""):a=r.toString().split(q5));var s=a.map(function(A){return{word:A,width:Nf(A,i).width}}),l=n?0:Nf(" ",i).width;return{wordsWithComputedWidth:s,spaceWidth:l}}catch{return null}},lje=function(t,r,n,i,a){var s=t.maxLines,l=t.children,A=t.style,c=t.breakAll,u=oe(s),d=l,f=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function(O,U){var P=U.word,Q=U.width,$=O[O.length-1];if($&&(i==null||a||$.width+Q+n<Number(i)))$.words.push(P),$.width+=Q+n;else{var G={words:[P],width:Q};O.push(G)}return O},[])},h=f(r),m=function(M){return M.reduce(function(O,U){return O.width>U.width?O:U})};if(!u)return h;for(var p="â¦",v=function(M){var O=d.slice(0,M),U=Y5({breakAll:c,style:A,children:O+p}).wordsWithComputedWidth,P=f(U),Q=P.length>s||m(P).width>Number(i);return[Q,P]},x=0,g=d.length-1,y=0,B;x<=g&&y<=d.length-1;){var b=Math.floor((x+g)/2),C=b-1,j=v(C),_=xI(j,2),E=_[0],I=_[1],T=v(b),k=xI(T,1),N=k[0];if(!E&&!N&&(x=b+1),E&&N&&(g=b-1),!E&&N){B=I;break}y++}return B||h},bI=function(t){var r=$e(t)?[]:t.toString().split(q5);return[{words:r}]},Aje=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,s=t.breakAll,l=t.maxLines;if((r||n)&&!ya.isSsr){var A,c,u=Y5({breakAll:s,children:i,style:a});if(u){var d=u.wordsWithComputedWidth,f=u.spaceWidth;A=d,c=f}else return bI(i);return lje({breakAll:s,children:i,maxLines:l,style:a},A,c,r,n)}return bI(i)},BI="#808080",Jl=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,s=t.lineHeight,l=s===void 0?"1em":s,A=t.capHeight,c=A===void 0?"0.71em":A,u=t.scaleToFit,d=u===void 0?!1:u,f=t.textAnchor,h=f===void 0?"start":f,m=t.verticalAnchor,p=m===void 0?"end":m,v=t.fill,x=v===void 0?BI:v,g=yI(t,tje),y=w.useMemo(function(){return Aje({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:d,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,d,g.style,g.width]),B=g.dx,b=g.dy,C=g.angle,j=g.className,_=g.breakAll,E=yI(g,rje);if(!fr(n)||!fr(a))return null;var I=n+(oe(B)?B:0),T=a+(oe(b)?b:0),k;switch(p){case"start":k=Vb("calc(".concat(c,")"));break;case"middle":k=Vb("calc(".concat((y.length-1)/2," * -").concat(l," + (").concat(c," / 2))"));break;default:k=Vb("calc(".concat(y.length-1," * -").concat(l,")"));break}var N=[];if(d){var F=y[0].width,M=g.width;N.push("scale(".concat((oe(M)?M/F:1)/F,")"))}return C&&N.push("rotate(".concat(C,", ").concat(I,", ").concat(T,")")),N.length&&(E.transform=N.join(" ")),S.createElement("text",Z1({},Ie(E,!0),{x:I,y:T,className:Ve("recharts-text",j),textAnchor:h,fill:x.includes("url")?BI:x}),y.map(function(O,U){var P=O.words.join(_?"":" ");return S.createElement("tspan",{x:I,dy:U===0?k:l,key:"".concat(P,"-").concat(U)},P)}))};function _o(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function cje(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function KS(e){let t,r,n;e.length!==2?(t=_o,r=(l,A)=>_o(e(l),A),n=(l,A)=>e(l)-A):(t=e===_o||e===cje?e:uje,r=e,n=e);function i(l,A,c=0,u=l.length){if(c<u){if(t(A,A)!==0)return u;do{const d=c+u>>>1;r(l[d],A)<0?c=d+1:u=d}while(c<u)}return c}function a(l,A,c=0,u=l.length){if(c<u){if(t(A,A)!==0)return u;do{const d=c+u>>>1;r(l[d],A)<=0?c=d+1:u=d}while(c<u)}return c}function s(l,A,c=0,u=l.length){const d=i(l,A,c,u-1);return d>c&&n(l[d-1],A)>-n(l[d],A)?d-1:d}return{left:i,center:s,right:a}}function uje(){return 0}function X5(e){return e===null?NaN:+e}function*dje(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const fje=KS(_o),Np=fje.right;KS(X5).center;class CI extends Map{constructor(t,r=mje){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(jI(this,t))}has(t){return super.has(jI(this,t))}set(t,r){return super.set(hje(this,t),r)}delete(t){return super.delete(pje(this,t))}}function jI({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function hje({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function pje({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function mje(e){return e!==null&&typeof e=="object"?e.valueOf():e}function gje(e=_o){if(e===_o)return J5;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function J5(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const vje=Math.sqrt(50),yje=Math.sqrt(10),xje=Math.sqrt(2);function ry(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),s=a>=vje?10:a>=yje?5:a>=xje?2:1;let l,A,c;return i<0?(c=Math.pow(10,-i)/s,l=Math.round(e*c),A=Math.round(t*c),l/c<e&&++l,A/c>
vendor: 15,548 bytes, line 481
481t&&--A,c=-c):(c=Math.pow(10,i)*s,l=Math.round(e/c),A=Math.round(t/c),l*c<e&&++l,A*c>t&&--A),A<l&&.5<=r&&r<2?ry(e,t,r*2):[l,A,c]}function ej(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,s]=n?ry(t,e,r):ry(e,t,r);if(!(a>=i))return[];const l=a-i+1,A=new Array(l);if(n)if(s<0)for(let c=0;c<l;++c)A[c]=(a-c)/-s;else for(let c=0;c<l;++c)A[c]=(a-c)*s;else if(s<0)for(let c=0;c<l;++c)A[c]=(i+c)/-s;else for(let c=0;c<l;++c)A[c]=(i+c)*s;return A}function tj(e,t,r){return t=+t,e=+e,r=+r,ry(e,t,r)[2]}function rj(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?tj(t,e,r):tj(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function _I(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function EI(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Z5(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?J5:gje(i);n>r;){if(n-r>600){const A=n-r+1,c=t-r+1,u=Math.log(A),d=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*d*(A-d)/A)*(c-A/2<0?-1:1),h=Math.max(r,Math.floor(t-c*d/A+f)),m=Math.min(n,Math.floor(t+(A-c)*d/A+f));Z5(e,t,h,m,i)}const a=e[t];let s=r,l=n;for(Ud(e,r,t),i(e[n],a)>0&&Ud(e,r,n);s<l;){for(Ud(e,s,l),++s,--l;i(e[s],a)<0;)++s;for(;i(e[l],a)>0;)--l}i(e[r],a)===0?Ud(e,r,l):(++l,Ud(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function Ud(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function wje(e,t,r){if(e=Float64Array.from(dje(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return EI(e);if(t>=1)return _I(e);var n,i=(n-1)*t,a=Math.floor(i),s=_I(Z5(e,a).subarray(0,a+1)),l=EI(e.subarray(a+1));return s+(l-s)*(i-a)}}function bje(e,t,r=X5){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),s=+r(e[a],a,e),l=+r(e[a+1],a+1,e);return s+(l-s)*(i-a)}}function Bje(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function gi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ss(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 nj=Symbol("implicit");function VS(){var e=new CI,t=[],r=[],n=nj;function i(a){let s=e.get(a);if(s===void 0){if(n!==nj)return n;e.set(a,s=t.push(a)-1)}return r[s%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new CI;for(const s of a)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return VS(t,r).unknown(n)},gi.apply(i,arguments),i}function bh(){var e=VS().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,s,l=!1,A=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,h=i<n,m=h?i:n,p=h?n:i;a=(p-m)/Math.max(1,f-A+c*2),l&&(a=Math.floor(a)),m+=(p-m-a*(f-A))*u,s=a*(1-A),l&&(m=Math.round(m),s=Math.round(s));var v=Bje(f).map(function(x){return m+a*x});return r(h?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([n,i]=f,n=+n,i=+i,d()):[n,i]},e.rangeRound=function(f){return[n,i]=f,n=+n,i=+i,l=!0,d()},e.bandwidth=function(){return s},e.step=function(){return a},e.round=function(f){return arguments.length?(l=!!f,d()):l},e.padding=function(f){return arguments.length?(A=Math.min(1,c=+f),d()):A},e.paddingInner=function(f){return arguments.length?(A=Math.min(1,f),d()):A},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return bh(t(),[n,i]).round(l).paddingInner(A).paddingOuter(c).align(u)},gi.apply(d(),arguments)}function e6(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return e6(t())},e}function Of(){return e6(bh.apply(null,arguments).paddingInner(1))}function WS(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function t6(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Op(){}var Bh=.7,ny=1/Bh,Uc="\\s*([+-]?\\d+)\\s*",Ch="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Cje=/^#([0-9a-f]{3,8})$/,jje=new RegExp(`^rgb\\(${Uc},${Uc},${Uc}\\)$`),_je=new RegExp(`^rgb\\(${xa},${xa},${xa}\\)$`),Eje=new RegExp(`^rgba\\(${Uc},${Uc},${Uc},${Ch}\\)$`),Sje=new RegExp(`^rgba\\(${xa},${xa},${xa},${Ch}\\)$`),Nje=new RegExp(`^hsl\\(${Ch},${xa},${xa}\\)$`),Oje=new RegExp(`^hsla\\(${Ch},${xa},${xa},${Ch}\\)$`),SI={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};WS(Op,jh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:NI,formatHex:NI,formatHex8:Tje,formatHsl:Fje,formatRgb:OI,toString:OI});function NI(){return this.rgb().formatHex()}function Tje(){return this.rgb().formatHex8()}function Fje(){return r6(this).formatHsl()}function OI(){return this.rgb().formatRgb()}function jh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Cje.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?TI(t):r===3?new hn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ym(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ym(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=jje.exec(e))?new hn(t[1],t[2],t[3],1):(t=_je.exec(e))?new hn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Eje.exec(e))?Ym(t[1],t[2],t[3],t[4]):(t=Sje.exec(e))?Ym(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Nje.exec(e))?kI(t[1],t[2]/100,t[3]/100,1):(t=Oje.exec(e))?kI(t[1],t[2]/100,t[3]/100,t[4]):SI.hasOwnProperty(e)?TI(SI[e]):e==="transparent"?new hn(NaN,NaN,NaN,0):null}function TI(e){return new hn(e>>16&255,e>>8&255,e&255,1)}function Ym(e,t,r,n){return n<=0&&(e=t=r=NaN),new hn(e,t,r,n)}function Pje(e){return e instanceof Op||(e=jh(e)),e?(e=e.rgb(),new hn(e.r,e.g,e.b,e.opacity)):new hn}function ij(e,t,r,n){return arguments.length===1?Pje(e):new hn(e,t,r,n??1)}function hn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}WS(hn,ij,t6(Op,{brighter(e){return e=e==null?ny:Math.pow(ny,e),new hn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Bh:Math.pow(Bh,e),new hn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new hn(Ml(this.r),Ml(this.g),Ml(this.b),iy(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:FI,formatHex:FI,formatHex8:kje,formatRgb:PI,toString:PI}));function FI(){return`#${bl(this.r)}${bl(this.g)}${bl(this.b)}`}function kje(){return`#${bl(this.r)}${bl(this.g)}${bl(this.b)}${bl((isNaN(this.opacity)?1:this.opacity)*255)}`}function PI(){const e=iy(this.opacity);return`${e===1?"rgb(":"rgba("}${Ml(this.r)}, ${Ml(this.g)}, ${Ml(this.b)}${e===1?")":`, ${e})`}`}function iy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ml(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function bl(e){return e=Ml(e),(e<16?"0":"")+e.toString(16)}function kI(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Mi(e,t,r,n)}function r6(e){if(e instanceof Mi)return new Mi(e.h,e.s,e.l,e.opacity);if(e instanceof Op||(e=jh(e)),!e)return new Mi;if(e instanceof Mi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),s=NaN,l=a-i,A=(a+i)/2;return l?(t===a?s=(r-n)/l+(r<n)*6:r===a?s=(n-t)/l+2:s=(t-r)/l+4,l/=A<.5?a+i:2-a-i,s*=60):l=A>0&&A<1?0:s,new Mi(s,l,A,e.opacity)}function Ije(e,t,r,n){return arguments.length===1?r6(e):new Mi(e,t,r,n??1)}function Mi(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}WS(Mi,Ije,t6(Op,{brighter(e){return e=e==null?ny:Math.pow(ny,e),new Mi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Bh:Math.pow(Bh,e),new Mi(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new hn(Wb(e>=240?e-240:e+120,i,n),Wb(e,i,n),Wb(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Mi(II(this.h),Xm(this.s),Xm(this.l),iy(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=iy(this.opacity);return`${e===1?"hsl(":"hsla("}${II(this.h)}, ${Xm(this.s)*100}%, ${Xm(this.l)*100}%${e===1?")":`, ${e})`}`}}));function II(e){return e=(e||0)%360,e<0?e+360:e}function Xm(e){return Math.max(0,Math.min(1,e||0))}function Wb(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const GS=e=>()=>e;function Uje(e,t){return function(r){return e+r*t}}function Qje(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Mje(e){return(e=+e)==1?n6:function(t,r){return r-t?Qje(t,r,e):GS(isNaN(t)?r:t)}}function n6(e,t){var r=t-e;return r?Uje(e,r):GS(isNaN(e)?t:e)}const UI=function e(t){var r=Mje(t);function n(i,a){var s=r((i=ij(i)).r,(a=ij(a)).r),l=r(i.g,a.g),A=r(i.b,a.b),c=n6(i.opacity,a.opacity);return function(u){return i.r=s(u),i.g=l(u),i.b=A(u),i.opacity=c(u),i+""}}return n.gamma=e,n}(1);function Rje(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function Dje(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Lje(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),s;for(s=0;s<n;++s)i[s]=ld(e[s],t[s]);for(;s<r;++s)a[s]=t[s];return function(l){for(s=0;s<n;++s)a[s]=i[s](l);return a}}function $je(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ay(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Hje(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=ld(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var aj=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gb=new RegExp(aj.source,"g");function Kje(e){return function(){return e}}function Vje(e){return function(t){return e(t)+""}}function Wje(e,t){var r=aj.lastIndex=Gb.lastIndex=0,n,i,a,s=-1,l=[],A=[];for(e=e+"",t=t+"";(n=aj.exec(e))&&(i=Gb.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[s]?l[s]+=a:l[++s]=a),(n=n[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,A.push({i:s,x:ay(n,i)})),r=Gb.lastIndex;return r<t.length&&(a=t.slice(r),l[s]?l[s]+=a:l[++s]=a),l.length<2?A[0]?Vje(A[0].x):Kje(t):(t=A.length,function(c){for(var u=0,d;u<t;++u)l[(d=A[u]).i]=d.x(c);return l.join("")})}function ld(e,t){var r=typeof t,n;return t==null||r==="boolean"?GS(t):(r==="number"?ay:r==="string"?(n=jh(t))?(t=n,UI):Wje:t instanceof jh?UI:t instanceof Date?$je:Dje(t)?Rje:Array.isArray(t)?Lje:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Hje:ay)(e,t)}function zS(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Gje(e,t){t===void 0&&(t=e,e=ld);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(s){var l=Math.max(0,Math.min(n-1,Math.floor(s*=n)));return a[l](s-l)}}function zje(e){return function(){return e}}function sy(e){return+e}var QI=[0,1];function Jr(e){return e}function sj(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:zje(isNaN(t)?NaN:.5)}function qje(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Yje(e,t,r){var n=e[0],i=e[1],a=t[0],s=t[1];return i<n?(n=sj(i,n),a=r(s,a)):(n=sj(n,i),a=r(a,s)),function(l){return a(n(l))}}function Xje(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),s=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<n;)i[s]=sj(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(l){var A=Np(e,l,1,n)-1;return a[A](i[A](l))}}function Tp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Pw(){var e=QI,t=QI,r=ld,n,i,a,s=Jr,l,A,c;function u(){var f=Math.min(e.length,t.length);return s!==Jr&&(s=qje(e[0],e[f-1])),l=f>2?Xje:Yje,A=c=null,d}function d(f){return f==null||isNaN(f=+f)?a:(A||(A=l(e.map(n),t,r)))(n(s(f)))}return d.invert=function(f){return s(i((c||(c=l(t,e.map(n),ay)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,sy),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),r=zS,u()},d.clamp=function(f){return arguments.length?(s=f?!0:Jr,u()):s!==Jr},d.interpolate=function(f){return arguments.length?(r=f,u()):r},d.unknown=function(f){return arguments.length?(a=f,d):a}
vendor: 6,546 bytes, line 481
481,function(f,h){return n=f,i=h,u()}}function qS(){return Pw()(Jr,Jr)}function Jje(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function oy(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function gu(e){return e=oy(Math.abs(e)),e?e[1]:NaN}function Zje(e,t){return function(r,n){for(var i=r.length,a=[],s=0,l=e[0],A=0;i>0&&l>0&&(A+l+1>n&&(l=Math.max(1,n-A)),a.push(r.substring(i-=l,i+l)),!((A+=l+1)>n));)l=e[s=(s+1)%e.length];return a.reverse().join(t)}}function e_e(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var t_e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function _h(e){if(!(t=t_e.exec(e)))throw new Error("invalid format: "+e);var t;return new YS({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]})}_h.prototype=YS.prototype;function YS(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+""}YS.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 r_e(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var i6;function n_e(e,t){var r=oy(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(i6=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return a===s?n:a>s?n+new Array(a-s+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+oy(e,Math.max(0,t+a-1))[0]}function MI(e,t){var r=oy(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const RI={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Jje,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)=>MI(e*100,t),r:MI,s:n_e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function DI(e){return e}var LI=Array.prototype.map,$I=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function i_e(e){var t=e.grouping===void 0||e.thousands===void 0?DI:Zje(LI.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?DI:e_e(LI.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"â":e.minus+"",A=e.nan===void 0?"NaN":e.nan+"";function c(d){d=_h(d);var f=d.fill,h=d.align,m=d.sign,p=d.symbol,v=d.zero,x=d.width,g=d.comma,y=d.precision,B=d.trim,b=d.type;b==="n"?(g=!0,b="g"):RI[b]||(y===void 0&&(y=12),B=!0,b="g"),(v||f==="0"&&h==="=")&&(v=!0,f="0",h="=");var C=p==="$"?r:p==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",j=p==="$"?n:/[%p]/.test(b)?s:"",_=RI[b],E=/[defgprs%]/.test(b);y=y===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function I(T){var k=C,N=j,F,M,O;if(b==="c")N=_(T)+N,T="";else{T=+T;var U=T<0||1/T<0;if(T=isNaN(T)?A:_(Math.abs(T),y),B&&(T=r_e(T)),U&&+T==0&&m!=="+"&&(U=!1),k=(U?m==="("?m:l:m==="-"||m==="("?"":m)+k,N=(b==="s"?$I[8+i6/3]:"")+N+(U&&m==="("?")":""),E){for(F=-1,M=T.length;++F<M;)if(O=T.charCodeAt(F),48>O||O>57){N=(O===46?i+T.slice(F+1):T.slice(F))+N,T=T.slice(0,F);break}}}g&&!v&&(T=t(T,1/0));var P=k.length+T.length+N.length,Q=P<x?new Array(x-P+1).join(f):"";switch(g&&v&&(T=t(Q+T,Q.length?x-N.length:1/0),Q=""),h){case"<":T=k+T+N+Q;break;case"=":T=k+Q+T+N;break;case"^":T=Q.slice(0,P=Q.length>>1)+k+T+N+Q.slice(P);break;default:T=Q+k+T+N;break}return a(T)}return I.toString=function(){return d+""},I}function u(d,f){var h=c((d=_h(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(gu(f)/3)))*3,p=Math.pow(10,-m),v=$I[8+m/3];return function(x){return h(p*x)+v}}return{format:c,formatPrefix:u}}var Jm,XS,a6;a_e({thousands:",",grouping:[3],currency:["$",""]});function a_e(e){return Jm=i_e(e),XS=Jm.format,a6=Jm.formatPrefix,Jm}function s_e(e){return Math.max(0,-gu(Math.abs(e)))}function o_e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(gu(t)/3)))*3-gu(Math.abs(e)))}function l_e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,gu(t)-gu(e))+1}function s6(e,t,r,n){var i=rj(e,t,r),a;switch(n=_h(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=o_e(i,s))&&(n.precision=a),a6(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=l_e(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=s_e(i))&&(n.precision=a-(n.type==="%")*2);break}}return XS(n)}function Vo(e){var t=e.domain;return e.ticks=function(r){var n=t();return ej(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return s6(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,s=n[i],l=n[a],A,c,u=10;for(l<s&&(c=s,s=l,l=c,c=i,i=a,a=c);u-- >0;){if(c=tj(s,l,r),c===A)return n[i]=s,n[a]=l,t(n);if(c>0)s=Math.floor(s/c)*c,l=Math.ceil(l/c)*c;else if(c<0)s=Math.ceil(s*c)/c,l=Math.floor(l*c)/c;else break;A=c}return e},e}function ly(){var e=qS();return e.copy=function(){return Tp(e,ly())},gi.apply(e,arguments),Vo(e)}function o6(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,sy),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return o6(e).unknown(t)},e=arguments.length?Array.from(e,sy):[0,1],Vo(r)}function l6(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],s;return a<i&&(s=r,r=n,n=s,s=i,i=a,a=s),e[r]=t.floor(i),e[n]=t.ceil(a),e}function HI(e){return Math.log(e)}function KI(e){return Math.exp(e)}function A_e(e){return-Math.log(-e)}function c_e(e){return-Math.exp(-e)}function u_e(e){return isFinite(e)?+("1e"+e):e<0?0:e}
vendor: 4,175 bytes, line 481
481function d_e(e){return e===10?u_e:e===Math.E?Math.exp:t=>Math.pow(e,t)}function f_e(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 VI(e){return(t,r)=>-e(-t,r)}function JS(e){const t=e(HI,KI),r=t.domain;let n=10,i,a;function s(){return i=f_e(n),a=d_e(n),r()[0]<0?(i=VI(i),a=VI(a),e(A_e,c_e)):e(HI,KI),t}return t.base=function(l){return arguments.length?(n=+l,s()):n},t.domain=function(l){return arguments.length?(r(l),s()):r()},t.ticks=l=>{const A=r();let c=A[0],u=A[A.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=i(c),h=i(u),m,p;const v=l==null?10:+l;let x=[];if(!(n%1)&&h-f<v){if(f=Math.floor(f),h=Math.ceil(h),c>0){for(;f<=h;++f)for(m=1;m<n;++m)if(p=f<0?m/a(-f):m*a(f),!(p<c)){if(p>u)break;x.push(p)}}else for(;f<=h;++f)for(m=n-1;m>=1;--m)if(p=f>0?m/a(-f):m*a(f),!(p<c)){if(p>u)break;x.push(p)}x.length*2<v&&(x=ej(c,u,v))}else x=ej(f,h,Math.min(h-f,v)).map(a);return d?x.reverse():x},t.tickFormat=(l,A)=>{if(l==null&&(l=10),A==null&&(A=n===10?"s":","),typeof A!="function"&&(!(n%1)&&(A=_h(A)).precision==null&&(A.trim=!0),A=XS(A)),l===1/0)return A;const c=Math.max(1,n*l/t.ticks().length);return u=>{let d=u/a(Math.round(i(u)));return d*n<n-.5&&(d*=n),d<=c?A(u):""}},t.nice=()=>r(l6(r(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function A6(){const e=JS(Pw()).domain([1,10]);return e.copy=()=>Tp(e,A6()).base(e.base()),gi.apply(e,arguments),e}function WI(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function GI(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ZS(e){var t=1,r=e(WI(t),GI(t));return r.constant=function(n){return arguments.length?e(WI(t=+n),GI(t)):t},Vo(r)}function c6(){var e=ZS(Pw());return e.copy=function(){return Tp(e,c6()).constant(e.constant())},gi.apply(e,arguments)}function zI(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function h_e(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function p_e(e){return e<0?-e*e:e*e}function eN(e){var t=e(Jr,Jr),r=1;function n(){return r===1?e(Jr,Jr):r===.5?e(h_e,p_e):e(zI(r),zI(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Vo(t)}function tN(){var e=eN(Pw());return e.copy=function(){return Tp(e,tN()).exponent(e.exponent())},gi.apply(e,arguments),e}function m_e(){return tN.apply(null,arguments).exponent(.5)}function qI(e){return Math.sign(e)*e*e}function g_e(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function u6(){var e=qS(),t=[0,1],r=!1,n;function i(a){var s=g_e(e(a));return isNaN(s)?n:r?Math.round(s):s}return i.invert=function(a){return e.invert(qI(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,sy)).map(qI)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return u6(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},gi.apply(i,arguments),Vo(i)}function d6(){var e=[],t=[],r=[],n;function i(){var s=0,l=Math.max(1,t.length);for(r=new Array(l-1);++s<l;)r[s-1]=bje(e,s/l);return a}function a(s){return s==null||isNaN(s=+s)?n:t[Np(r,s)]}return a.invertExtent=function(s){var l=t.indexOf(s);return l<0?[NaN,NaN]:[l>0?r[l-1]:e[0],l<r.length?r[l]:e[e.length-1]]},a.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let l of s)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(_o),i()},a.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},a.unknown=function(s){return arguments.length?(n=s,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return d6().domain(e).range(t).unknown(n)},gi.apply(a,arguments)}function f6(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function s(A){return A!=null&&A<=A?i[Np(n,A,0,r)]:a}function l(){var A=-1;for(n=new Array(r);++A<r;)n[A]=((A+1)*t-(A-r)*e)/(r+1);return s}return s.domain=function(A){return arguments.length?([e,t]=A,e=+e,t=+t,l()):[e,t]},s.range=function(A){return arguments.length?(r=(i=Array.from(A)).length-1,l(
481)):i.slice()},s.invertExtent=function(A){var c=i.indexOf(A);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},s.unknown=function(A){return arguments.length&&(a=A),s},s.thresholds=function(){return n.slice()},s.copy=function(){return f6().domain([e,t]).range(i).unknown(a)},gi.apply(Vo(s),arguments)}function h6(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Np(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var s=t.indexOf(a);return[e[s-1],e[s]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return h6().domain(e).range(t).unknown(r)},gi.apply(i,arguments)}const zb=new Date,qb=new Date;function hr(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const s=i(a),l=i.ceil(a);return a-s<l-a?s:l},i.offset=(a,s)=>(t(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,l)=>{const A=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<s)||!(l>0))return A;let c;do A.push(c=new Date(+a)),t(a,l),e(a);while(c<a&&a<s);return A},i.filter=a=>hr(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,l)=>{if(s>=s)if(l<0)for(;++l<=0;)for(;t(s,-1),!a(s););else for(;--l>=0;)for(;t(s,1),!a(s););}),r&&(i.count=(a,s)=>(zb.setTime(+a),qb.setTime(+s),e(zb),e(qb),Math.floor(r(zb,qb))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?s=>n(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const Ay=hr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ay.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?hr(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ay);Ay.range;const es=1e3,oi=es*60,ts=oi*60,ys=ts*24,rN=ys*7,YI=ys*30,Yb=ys*365,Bl=hr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*es)},(e,t)=>(t-e)/es,e=>e.getUTCSeconds());Bl.range;const nN=hr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*es)},(e,t)=>{e.setTime(+e+t*oi)},(e,t)=>(t-e)/oi,e=>e.getMinutes());nN.range;const iN=hr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*oi)},(e,t)=>(t-e)/oi,e=>e.getUTCMinutes());iN.range;const aN=hr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*es-e.getMinutes()*oi)},(e,t)=>{e.setTime(+e+t*ts)},(e,t)=>(t-e)/ts,e=>e.getHours());aN.range;const sN=hr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ts)},(e,t)=>(t-e)/ts,e=>e.getUTCHours());sN.range;const Fp=hr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*oi)/ys,e=>e.getDate()-1);Fp.range;const kw=hr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ys,e=>e.getUTCDate()-1);kw.range;const p6=hr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ys,e=>Math.floor(e/ys));p6.range;function gA(e){return hr(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*oi)/rN)}const Iw=gA(0),cy=gA(1),v_e=gA(2),y_e=gA(3),vu=gA(4),x_e=gA(5),w_e=gA(6);Iw.range;cy.range;v_e.range;y_e.range;vu.range;x_e.range;w_e.range;function vA(e){return hr(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/rN)}const Uw=vA(0),uy=vA(1),b_e=vA(2),B_e=vA(3),yu=vA(4),C_e=vA(5),j_e=vA(6);Uw.range;uy.range;b_e.range;B_e.range;yu.range;C_e.range;j_e.range;const oN=hr(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());oN.range;const lN=hr(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());lN.range;const xs=hr(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());xs.every=e=>
vendor: 6,449 bytes, line 481
481!isFinite(e=Math.floor(e))||!(e>0)?null:hr(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});xs.range;const ws=hr(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());ws.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:hr(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});ws.range;function m6(e,t,r,n,i,a){const s=[[Bl,1,es],[Bl,5,5*es],[Bl,15,15*es],[Bl,30,30*es],[a,1,oi],[a,5,5*oi],[a,15,15*oi],[a,30,30*oi],[i,1,ts],[i,3,3*ts],[i,6,6*ts],[i,12,12*ts],[n,1,ys],[n,2,2*ys],[r,1,rN],[t,1,YI],[t,3,3*YI],[e,1,Yb]];function l(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:A(c,u,d),m=h?h.range(c,+u+1):[];return f?m.reverse():m}function A(c,u,d){const f=Math.abs(u-c)/d,h=KS(([,,v])=>v).right(s,f);if(h===s.length)return e.every(rj(c/Yb,u/Yb,d));if(h===0)return Ay.every(Math.max(rj(c,u,d),1));const[m,p]=s[f/s[h-1][2]<s[h][2]/f?h-1:h];return m.every(p)}return[l,A]}const[__e,E_e]=m6(ws,lN,Uw,p6,sN,iN),[S_e,N_e]=m6(xs,oN,Iw,Fp,aN,nN);function Xb(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 Jb(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 Qd(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function O_e(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,s=e.shortDays,l=e.months,A=e.shortMonths,c=Md(i),u=Rd(i),d=Md(a),f=Rd(a),h=Md(s),m=Rd(s),p=Md(l),v=Rd(l),x=Md(A),g=Rd(A),y={a:U,A:P,b:Q,B:$,c:null,d:rU,e:rU,f:Z_e,g:AEe,G:uEe,H:Y_e,I:X_e,j:J_e,L:g6,m:eEe,M:tEe,p:G,q:K,Q:aU,s:sU,S:rEe,u:nEe,U:iEe,V:aEe,w:sEe,W:oEe,x:null,X:null,y:lEe,Y:cEe,Z:dEe,"%":iU},B={a:X,A:ae,b:ve,B:Fe,c:null,d:nU,e:nU,f:mEe,g:_Ee,G:SEe,H:fEe,I:hEe,j:pEe,L:y6,m:gEe,M:vEe,p:L,q:pe,Q:aU,s:sU,S:yEe,u:xEe,U:wEe,V:bEe,w:BEe,W:CEe,x:null,X:null,y:jEe,Y:EEe,Z:NEe,"%":iU},b={a:I,A:T,b:k,B:N,c:F,d:eU,e:eU,f:W_e,g:ZI,G:JI,H:tU,I:tU,j:$_e,L:V_e,m:L_e,M:H_e,p:E,q:D_e,Q:z_e,s:q_e,S:K_e,u:I_e,U:U_e,V:Q_e,w:k_e,W:M_e,x:M,X:O,y:ZI,Y:JI,Z:R_e,"%":G_e};y.x=C(r,y),y.X=C(n,y),y.c=C(t,y),B.x=C(r,B),B.X=C(n,B),B.c=C(t,B);function C(W,ee){return function(le){var V=[],Te=-1,Ne=0,Ze=W.length,Ye,at,Br;for(le instanceof Date||(le=new Date(+le));++Te<Ze;)W.charCodeAt(Te)===37&&(V.push(W.slice(Ne,Te)),(at=XI[Ye=W.charAt(++Te)])!=null?Ye=W.charAt(++Te):at=Ye==="e"?" ":"0",(Br=ee[Ye])&&(Ye=Br(le,at)),V.push(Ye),Ne=Te+1);return V.push(W.slice(Ne,Te)),V.join("")}}function j(W,ee){return function(le){var V=Qd(1900,void 0,1),Te=_(V,W,le+="",0),Ne,Ze;if(Te!=le.length)return null;if("Q"in V)return new Date(V.Q);if("s"in V)return new Date(V.s*1e3+("L"in V?V.L:0));if(ee&&!("Z"in V)&&(V.Z=0),"p"in V&&(V.H=V.H%12+V.p*12),V.m===void 0&&(V.m="q"in V?V.q:0),"V"in V){if(V.V<1||V.V>53)return null;"w"in V||(V.w=1),"Z"in V?(Ne=Jb(Qd(V.y,0,1)),Ze=Ne.getUTCDay(),Ne=Ze>4||Ze===0?uy.ceil(Ne):uy(Ne),Ne=kw.offset(Ne,(V.V-1)*7),V.y=Ne.getUTCFullYear(),V.m=Ne.getUTCMonth(),V.d=Ne.getUTCDate()+(V.w+6)%7):(Ne=Xb(Qd(V.y,0,1)),Ze=Ne.getDay(),Ne=Ze>4||Ze===0?cy.ceil(Ne):cy(Ne),Ne=Fp.offset(Ne,(V.V-1)*7),V.y=Ne.getFullYear(),V.m=Ne.getMonth(),V.d=Ne.getDate()+(V.w+6)%7)}else("W"in V||"U"in V)&&("w"in V||(V.w="u"in V?V.u%7:"W"in V?1:0),Ze="Z"in V?Jb(Qd(V.y,0,1)).getUTCDay():Xb(Qd(V.y,0,1)).getDay(),V.m=0,V.d="W"in V?(V.w+6)%7+V.W*7-(Ze+5)%7:V.w+V.U*7-(Ze+6)%7);return"Z"in V?(V.H+=V.Z/100|0,V.M+=V.Z%100,Jb(V)):Xb(V)}}function _(W,ee,le,V){for(var Te=0,Ne=ee.length,Ze=le.length,Ye,at;Te<Ne;){if(V>=Ze)return-1;if(Ye=ee.charCodeAt(Te++),Ye===37){if(Ye=ee.charAt(Te++),at=b[Ye in XI?ee.charAt(Te++):Ye],!at||(V=at(W,le,V))<0)return-1}else if(Ye!=le.charCodeAt(V++))return-1}return V}function E(W,ee,le){var V=c.exec(ee.slice(le));return V?(W.p=u.get(V[0].toLowerCase()),le+V[0].length):-1}function I(W,ee,le){var V=h.exec(ee.slice(le));return V?(W.w=m.get(V[0].toLowerCase()),le+V[0].length):-1}function T(W,ee,le){var V=d.exec(ee.slice(le));return V?(W.w=f.get(V[0].toLowerCase()),le+V[0].length):-1}function k(W,ee,le){var V=x.exec(ee.slice(le));return V?(W.m=g.get(V[0].toLowerCase()),le+V[0].length):-1}function N(W,ee,le){var V=p.exec(ee.slice(le));return V?(W.m=v.get(V[0].toLowerCase()),le+V[0].length):-1}function F(W,ee,le){return _(W,t,ee,le)}function M(W,ee,le){return _(W,r,ee,le)}function O(W,ee,le){return _(W,n,ee,le)}function U(W){return s[W.getDay()]}function P(W){return a[W.getDay()]}function Q(W){return A[W.getMonth()]}function $(W){return l[W.getMonth()]}function G(W){return i[+(W.getHours()>=12)]}function K(W){return 1+~~(W.getMonth()/3)}function X(W){return s[W.getUTCDay()]}function ae(W){return a[W.getUTCDay()]}function ve(W){return A[W.getUTCMonth()]}function Fe(W){return l[W.getUTCMonth()]}function L(W){return i[+(W.getUTCHours()>=12)]}function pe(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var ee=C(W+="",y);return ee.toString=function(){return W},ee},parse:function(W){var ee=j(W+="",!1);return ee.toString=function(){return W},ee},utcFormat:function(W){var ee=C(W+="",B);return ee.toString=function(){return W},ee},utcParse:function(W){var ee=j(W+="",!0);return ee.toString=function(){return W},ee}}}var XI={"-":"",_:" ",0:"0"},br=/^\s*\d+/,T_e=/^%/,F_e=/[\\^$*+?|[\]().{}]/g;function At(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function P_e(e){return e.replace(F_e,"\\$&")}function Md(e){return new RegExp("^(?:"+e.map(P_e).join("|")+")","i")}function Rd(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function k_e(e,t,r){var n=br.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function I_e(e,t,r){var n=br.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function U_e(e,t,r){var n=br.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Q_e(e,t,r){var n=br.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function M_e(e,t,r){var n=br.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function JI(e,t,r){var n=br.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function ZI(e,t,r){var n=br.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}
481function R_e(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function D_e(e,t,r){var n=br.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function L_e(e,t,r){var n=br.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function eU(e,t,r){var n=br.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function $_e(e,t,r){var n=br.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function tU(e,t,r){var n=br.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function H_e(e,t,r){var n=br.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function K_e(e,t,r){var n=br.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function V_e(e,t,r){var n=br.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function W_e(e,t,r){var n=br.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function G_e(e,t,r){var n=T_e.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function z_e(e,t,r){var n=br.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function q_e(e,t,r){var n=br.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function rU(e,t){return At(e.getDate(),t,2)}function Y_e(e,t){return At(e.getHours(),t,2)}function X_e(e,t){return At(e.getHours()%12||12,t,2)}function J_e(e,t){return At(1+Fp.count(xs(e),e),t,3)}function g6(e,t){return At(e.getMilliseconds(),t,3)}function Z_e(e,t){return g6(e,t)+"000"}function eEe(e,t){return At(e.getMonth()+1,t,2)}function tEe(e,t){return At(e.getMinutes(),t,2)}function rEe(e,t){return At(e.getSeconds(),t,2)}function nEe(e){var t=e.getDay();return t===0?7:t}function iEe(e,t){return At(Iw.count(xs(e)-1,e),t,2)}function v6(e){var t=e.getDay();return t>=4||t===0?vu(e):vu.ceil(e)}function aEe(e,t){return e=v6(e),At(vu.count(xs(e),e)+(xs(e).getDay()===4),t,2)}function sEe(e){return e.getDay()}function oEe(e,t){return At(cy.count(xs(e)-1,e),t,2)}function lEe(e,t){return At(e.getFullYear()%100,t,2)}function AEe(e,t){return e=v6(e),At(e.getFullYear()%100,t,2)}function cEe(e,t){return At(e.getFullYear()%1e4,t,4)}function uEe(e,t){var r=e.getDay();return e=r>=4||r===0?vu(e):vu.ceil(e),At(e.getFullYear()%1e4,t,4)}function dEe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+At(t/60|0,"0",2)+At(t%60,"0",2)}function nU(e,t){return At(e.getUTCDate(),t,2)}function fEe(e,t){return At(e.getUTCHours(),t,2)}function hEe(e,t){return At(e.getUTCHours()%12||12,t,2)}function pEe(e,t){return At(1+kw.count(ws(e),e),t,3)}function y6(e,t){return At(e.getUTCMilliseconds(),t,3)}function mEe(e,t){return y6(e,t)+"000"}function gEe(e,t){return At(e.getUTCMonth()+1,t,2)}function vEe(e,t){return At(e.getUTCMinutes(),t,2)}function yEe(e,t){return At(e.getUTCSeconds(),t,2)}function xEe(e){var t=e.getUTCDay();return t===0?7:t}function wEe(e,t){return At(Uw.count(ws(e)-1,e),t,2)}function x6(e){var t=e.getUTCDay();return t>=4||t===0?yu(e):yu.ceil(e)}function bEe(e,t){return e=x6(e),At(yu.count(ws(e),e)+(ws(e).getUTCDay()===4),t,2)}function BEe(e){return e.getUTCDay()}function CEe(e,t){return At(uy.count(ws(e)-1,e),t,2)}function jEe(e,t){return At(e.getUTCFullYear()%100,t,2)}function _Ee(e,t){return e=x6(e),At(e.getUTCFullYear()%100,t,2)}function EEe(e,t){return At(e.getUTCFullYear()%1e4,t,4)}function SEe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?yu(e):yu.ceil(e),At(e.getUTCFullYear()%1e4,t,4)}function NEe(){return"+0000"}function iU(){return"%"}function aU(e){return+e}function sU(e){return Math.floor(+e/1e3)}var LA,w6,b6;OEe({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 OEe(e){return LA=O_e(e),w6=LA.format,LA.parse,b6=LA.utcFormat,LA.utcParse,LA}function TEe(e){return new Date(e)}function FEe(e){return e instanceof Date?+e:+new Date(+e)}function AN(e,t,r,n,i,a,s,l,A,c){var u=qS(),d=u.invert,f=u.domain,h=c(".%L"),m=c(":%S"),p=c("%I:%M"),v=c("%I %p"),x=c("%a %d"),g=c("%b %d"),y=c("%B"),B=c("%Y");function b(C){return(A(C)<C?h:l(C)<C?m:s(C)<C?p:a(C)<C?v:n(C)<C?i(C)<C?x:g:r(C)<C?y:B)(C)}return u.invert=function(C){return new Date(d(C))},u.domain=function(C){return arguments.length?f(Array.from(C,FEe)):f().map(TEe)},u.ticks=function(C){var j=f();return e(j[0],j[j.length-1],C??10)},u.tickFormat=function(C,j){return j==null?b:c(j)},u.nice=function(C){var j=f();return(!C||typeof C.range!="function")&&(C=t(j[0],j[j.length-1],C??10)),C?f(l6(j,C)):u},u.copy=function(){return Tp(u,AN(e,t,r,n,i,a,s,l,A,c))},u}function PEe(){return gi.apply(AN(S_e,N_e,xs,oN,Iw,Fp,aN,nN,Bl,w6).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function kEe(){return gi.apply(AN(__e,E_e,ws,lN,Uw,kw,sN,iN,Bl,b6).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Qw(){var e=0,t=1,r,n,i,a,s=Jr,l=!1,A;function c(d){return d==null||isNaN(d=+d)?A:s(i===0?.5:(d=(a(d)-r)*i,l?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(d){return arguments.length?(l=!!d,c):l},c.interpolator=function(d){return arguments.length?(s=d,c):s};function u(d){return function(f){var h,m;return arguments.length?([h,m]=f,s=d(h,m),c):[s(0),s(1)]}}return c.range=u(ld),c.rangeRound=u(zS),c.unknown=function(d){return arguments.length?(A=d,c):A},function(d){return a=d,r=d(e),n=d(t),i=r===n?0:1/(n-r),c}}function Wo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function B6(){var e=Vo(Qw()(Jr));return e.copy=function(){return Wo(e,B6())},Ss.apply(e,arguments)}function C6(){var e=JS(Qw()).domain([1,10]);return e.copy=function(){return Wo(e,C6()).base(e.base())},Ss.apply(e,arguments)}function j6(){var e=ZS(Qw());return e.copy=function(){return Wo(e,j6()).constant(e.constant())},Ss.apply(e,arguments)}function cN(){var e=eN(Qw());return e.copy=function(){return Wo(e,cN()).exponent(e.exponent())},Ss.apply(e,arguments)}function IEe(){return cN.apply(null,arguments).exponent(.5)}function _6(){var e=[],t=Jr;function r(n){if(n!=null&&!isNaN(n=+n))return t((Np(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(_o),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>wje(e,a/n))},r.copy=function(){return _6(t).domain(e)},Ss.apply(r,arguments)}function Mw(){var e=0,t=.5,r=1,n=1,i,a,s,l,A,c=Jr,u,d=!1,f;function h(p){return isNaN(p=+p)?f:(p=.5+((p=+u(p))-a)*(n*p<n*a?l:A),c(d?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,i=u(e=+e),a=u(t=+t),s=u(r=+r),l=i===a?0:.5/(a-i),A=a===s?0:.5/(s-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(p){return arguments.length?(d=!!p,h):d},h.interpolator=function(p){return arguments.length?(c=p,h):c};function m(p){return function(v){var x,g,y;return arguments.length?([x,g,y]=v,c=Gje(p,[x,g,y]),h):[c(0),c(.5),c(1)]}}return h.range=m(ld),h.rangeRound=m(zS),h.unknown=function(p){return arguments.length?(f=p,h):f},function(p){return u=p,i=p(e),a=p(t),s=p(r),l=i===a?0:.5/(a-i),A=a===s?0:.5/(s-a),n=a<i?-1:1,h}}function E6(){var e=Vo(Mw()(Jr));return e.copy=function(){return Wo(e,E6())},Ss.apply(e,arguments)}function S6(){var e=JS(Mw()).domain([.1,1,10]);return e.copy=function(){return Wo(e,S6()).base(e.base())},Ss.apply(e,arguments)}function N6(){var e=ZS(Mw());return e.copy=function(){return Wo(e,N6()).constant(e.constant())},Ss.apply(e,arguments)}function uN(){var e=eN(Mw());return e.copy=function(){return Wo(e,uN()).exponent(e.exponent())},Ss.apply(e,arguments)}function UEe(){return uN.apply(null,arguments).exponent(.5)}const oU=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:bh,scaleDiverging:E6,scaleDivergingLog:S6,scaleDivergingPow:uN,scaleDivergingSqrt:UEe,scaleDivergingSymlog:N6,scaleIdentity:o6,scaleImplicit:nj,scaleLinear:ly,scaleLog:A6,scaleOrdinal:VS,scalePoint:Of,scalePow:tN,scaleQuantile:d6,scaleQuantize:f6,scaleRadial:u6,scaleSequential:B6,scaleSequentialLog:C6,scaleSequentialPow:cN,scaleSequentialQuantile:_6,scaleSequentialSqrt:IEe,scaleSequentialSymlog:j6,scaleSqrt:m_e,scaleSymlog:c6,scaleThreshold:h6,scaleTime:PEe,scaleUtc:kEe,tickFormat:s6},Symbol.toStringTag,{value:"Module"}));var QEe=Zu;function MEe(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],s=t(a);if(s!=null&&(l===void 0?s===s&&!QEe(s):r(s,l)))var l=s,A=a}return A}var Rw=MEe;function REe(e,t){return e>t}var O6=REe,DEe=Rw,LEe=O6,$Ee=od;function HEe(e){return e&&e.length?DEe(e,$Ee,LEe):void 0}var KEe=HEe;const Dw=nt(KEe);function VEe(e,t){return e<t}var T6=VEe,WEe=Rw,GEe=T6,zEe=od;function qEe(e){return e&&e.length?WEe(e,zEe,GEe):void 0}var YEe=qEe;const Lw=nt(YEe);var XEe=jS,JEe=ka,ZEe=R5,eSe=Bn;function tSe(e,t){var r=eSe(e)?XEe:ZEe;return r(e,JEe(t))}var rSe=tSe,nSe=Q5,iSe=rSe;function aSe(e,t){return nSe(iSe(e,t),1)}var sSe=aSe;const oSe=nt(sSe);var lSe=DS;function ASe(e,t){return lSe(e,t)}var cSe=ASe;const Pp=nt(cSe);
vendor: 61,523 bytes, lines 481-508
481var Ad=1e9,uSe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},fN,Ut=!0,hi="[DecimalError] ",Rl=hi+"Invalid argument: ",dN=hi+"Exponent out of range: ",cd=Math.floor,Al=Math.pow,dSe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Pn,gr=1e7,Tt=7,F6=9007199254740991,dy=cd(F6/Tt),we={};we.absoluteValue=we.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};we.comparedTo=we.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};we.decimalPlaces=we.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Tt;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};we.dividedBy=we.div=function(e){return ls(this,new this.constructor(e))};we.dividedToIntegerBy=we.idiv=function(e){var t=this,r=t.constructor;return xt(ls(t,new r(e),0,1),r.precision)};we.equals=we.eq=function(e){return!this.cmp(e)};we.exponent=function(){return ir(this)};we.greaterThan=we.gt=function(e){return this.cmp(e)>0};we.greaterThanOrEqualTo=we.gte=function(e){return this.cmp(e)>=0};we.isInteger=we.isint=function(){return this.e>this.d.length-2};we.isNegative=we.isneg=function(){return this.s<0};we.isPositive=we.ispos=function(){return this.s>0};we.isZero=function(){return this.s===0};we.lessThan=we.lt=function(e){return this.cmp(e)<0};we.lessThanOrEqualTo=we.lte=function(e){return this.cmp(e)<1};we.logarithm=we.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Pn))throw Error(hi+"NaN");if(r.s<1)throw Error(hi+(r.s?"NaN":"-Infinity"));return r.eq(Pn)?new n(0):(Ut=!1,t=ls(Eh(r,a),Eh(e,a),a),Ut=!0,xt(t,i))};we.minus=we.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?I6(t,e):P6(t,(e.s=-e.s,e))};we.modulo=we.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(hi+"NaN");return r.s?(Ut=!1,t=ls(r,e,0,1).times(e),Ut=!0,r.minus(t)):xt(new n(r),i)};we.naturalExponential=we.exp=function(){return k6(this)};we.naturalLogarithm=we.ln=function(){return Eh(this)};we.negated=we.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};we.plus=we.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P6(t,e):I6(t,(e.s=-e.s,e))};we.precision=we.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Rl+e);if(t=ir(i)+1,n=i.d.length-1,r=n*Tt+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};we.squareRoot=we.sqrt=function(){var e,t,r,n,i,a,s,l=this,A=l.constructor;if(l.s<1){if(!l.s)return new A(0);throw Error(hi+"NaN")}for(e=ir(l),Ut=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=fa(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=cd((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),n=new A(t)):n=new A(i.toString()),r=A.precision,i=s=r+3;;)if(a=n,n=a.plus(ls(l,a,s+2)).times(.5),fa(a.d).slice(0,s)===(t=fa(n.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(xt(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if(t!="9999")break;s+=4}return Ut=!0,xt(n,r)};we.times=we.mul=function(e){var t,r,n,i,a,s,l,A,c,u=this,d=u.constructor,f=u.d,h=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,r=u.e+e.e,A=f.length,c=h.length,A<c&&(a=f,f=h,h=a,s=A,A=c,c=s),a=[],s=A+c,n=s;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=A+n;i>n;)l=a[i]+h[n]*f[i-n-1]+t,a[i--]=l%gr|0,t=l/gr|0;a[i]=(a[i]+t)%gr|0}for(;!a[--s];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Ut?xt(e,d.precision):e};we.toDecimalPlaces=we.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Ca(e,0,Ad),t===void 0?t=n.rounding:Ca(t,0,8),xt(r,e+ir(r)+1,t))};we.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Zl(n,!0):(Ca(e,0,Ad),t===void 0?t=i.rounding:Ca(t,0,8),n=xt(new i(n),e+1,t),r=Zl(n,!0,e+1)),r};we.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Zl(i):(Ca(e,0,Ad),t===void 0?t=a.rounding:Ca(t,0,8),n=xt(new a(i),e+ir(i)+1,t),r=Zl(n.abs(),!1,e+ir(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};we.toInteger=we.toint=function(){var e=this,t=e.constructor;return xt(new t(e),ir(e)+1,t.rounding)};we.toNumber=function(){return+this};we.toPower=we.pow=function(e){var t,r,n,i,a,s,l=this,A=l.constructor,c=12,u=+(e=new A(e));if(!e.s)return new A(Pn);if(l=new A(l),!l.s){if(e.s<1)throw Error(hi+"Infinity");return l}if(l.eq(Pn))return l;if(n=A.precision,e.eq(Pn))return xt(l,n);if(t=e.e,r=e.d.length-1,s=t>=r,a=l.s,s){if((r=u<0?-u:u)<=F6){for(i=new A(Pn),t=Math.ceil(n/Tt+4),Ut=!1;r%2&&(i=i.times(l),AU(i.d,t)),r=cd(r/2),r!==0;)l=l.times(l),AU(l.d,t);return Ut=!0,e.s<0?new A(Pn).div(i):xt(i,n)}}else if(a<0)throw Error(hi+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,Ut=!1,i=e.times(Eh(l,n+c)),Ut=!0,i=k6(i),i.s=a,i};we.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ir(i),n=Zl(i,r<=a.toExpNeg||r>=a.toExpPos)):(Ca(e,1,Ad),t===void 0?t=a.rounding:Ca(t,0,8),i=xt(new a(i),e,t),r=ir(i),n=Zl(i,e<=r||r<=a.toExpNeg,e)),n};we.toSignificantDigits=we.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Ca(e,1,Ad),t===void 0?t=n.rounding:Ca(t,0,8)),xt(new n(r),e,t)};we.toString=we.valueOf=we.val=we.toJSON=we[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ir(e),r=e.constructor;return Zl(e,t<=r.toExpNeg||t>=r.toExpPos)};function P6(e,t){var r,n,i,a,s,l,A,c,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),Ut?xt(t,d):t;if(A=e.d,c=t.d,s=e.e,i=t.e,A=A.slice(),a=s-i,a){for(a<0?(n=A,a=-a,l=c.length):(n=c,i=s,l=A.length),s=Math.ceil(d/Tt),l=s>l?s+1:l+1,a>l&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(l=A.length,a=c.length,l-a<0&&(a=l,n=c,c=A,A=n),r=0;a;)r=(A[--a]=A[a]+c[a]+r)/gr|0,A[a]%=gr;for(r&&(A.unshift(r),++i),l=A.length;A[--l]==0;)A.pop();return t.d=A,t.e=i,Ut?xt(t,d):t}function Ca(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Rl+e)}function fa(e){var t,r,n,i=e.length-1,a="",s=e[0];if(i>0){for(a+=s,t=1;t<i;t++)n=e[t]+"",r=Tt-n.length,r&&(a+=Gs(r)),a+=n;s=e[t],n=s+"",r=Tt-n.length,r&&(a+=Gs(r))}else if(s===0)return"0";for(;s%10===0;)s/=10;return a+s}var ls=function(){function e(n,i){var a,s=0,l=n.length;for(n=n.slice();l--;)a=n[l]*i+s,n[l]=a%gr|0,s=a/gr|0;return s&&n.unshift(s),n}function t(n,i,a,s){var l,A;if(a!=s)A=a>s?1:-1;else for(l=A=0;l<a;l++)if(n[l]!=i[l]){A=n[l]>i[l]?1:-1;break}return A}function r(n,i,a){for(var s=0;a--;)n[a]-=s,s=n[a]<i[a]?1:0,n[a]=s*gr+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,s){var l,A,c,u,d,f,h,m,p,v,x,g,y,B,b,C,j,_,E=n.constructor,I=n.s==i.s?1:-1,T=n.d,k=i.d;if(!n.s)return new E(n);if(!i.s)throw Error(hi+"Division by zero");for(A=n.e-i.e,j=k.length,b=T.length,h=new E(I),m=h.d=[],c=0;k[c]==(T[c]||0);)++c;if(k[c]>(T[c]||0)&&--A,a==null?g=a=E.precision:s?g=a+(ir(n)-ir(i))+1:g=a,g<0)return new E(0);if(g=g/Tt+2|0,c=0,j==1)for(u=0,k=k[0],g++;(c<b||u)&&g--;c++)y=u*gr+(T[c]||0),m[c]=y/k|0,u=y%k|0;else{for(u=gr/(k[0]+1)|0,u>1&&(k=e(k,u),T=e(T,u),j=k.length,b=T.length),B=j,p=T.slice(0,j),v=p.length;v<j;)p[v++]=0;_=k.slice(),_.unshift(0),C=k[0],k[1]>=gr/2&&++C;do u=0,l=t(k,p,j,v),l<0?(x=p[0],j!=v&&(x=x*gr+(p[1]||0)),u=x/C|0,u>1?(u>=gr&&(u=gr-1),d=e(k,u),f=d.length,v=p.length,l=t(d,p,f,v),l==1&&(u--,r(d,j<f?_:k,f))):(u==0&&(l=u=1),d=k.slice()),f=d.length,f<v&&d.unshift(0),r(p,d,v),l==-1&&(v=p.length,l=t(k,p,j,v),l<1&&(u++,r(p,j<v?_:k,v))),v=p.length):l===0&&(u++,p=[0]),m[c++]=u,l&&p[0]?p[v++]=T[B]||0:(p=[T[B]],v=1);while((B++<b||p[0]!==void 0)&&g--)}return m[0]||m.shift(),h.e=A,xt(h,s?a+ir(h)+1:a)}}();function k6(e,t){var r,n,i,a,s,l,A=0,c=0,u=e.constructor,d=u.precision;if(ir(e)>16)throw Error(dN+ir(e));if(!e.s)return new u(Pn);for(t==null?(Ut=!1,l=d):l=t,s=new u(.03125);e.abs().gte(.1);)e=e.times(s),c+=5;for(n=Math.log(Al(2,c))/Math.LN10*2+5|0,l+=n,r=i=a=new u(Pn),u.precision=l;;){if(i=xt(i.times(e),l),r=r.times(++A),s=a.plus(ls(i,r,l)),fa(s.d).slice(0,l)===fa(a.d).slice(0,l)){for(;c--;)a=xt(a.times(a),l);return u.precision=d,t==null?(Ut=!0,xt(a,d)):a}a=s}}function ir(e){for(var t=e.e*Tt,r=e.d[0];r>=10;r/=10)t++;return t}function Zb(e,t,r){if(t>e.LN10.sd())throw Ut=!0,r&&(e.precision=r),Error(hi+"LN10 precision limit exceeded");return xt(new e(e.LN10),t)}function Gs(e){for(var t="";e--;)t+="0";return t}function Eh(e,t){var r,n,i,a,s,l,A,c,u,d=1,f=10,h=e,m=h.d,p=h.constructor,v=p.precision;if(h.s<1)throw Error(hi+(h.s?"NaN":"-Infinity"));if(h.eq(Pn))return new p(0);if(t==null?(Ut=!1,c=v):c=t,h.eq(10))return t==null&&(Ut=!0),Zb(p,c);if(c+=f,p.precision=c,r=fa(m),n=r.charAt(0),a=ir(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=fa(h.d),n=r.charAt(0),d++;a=ir(h),n>1?(h=new p("0."+r),a++):h=new p(n+"."+r.slice(1))}else return A=Zb(p,c+2,v).times(a+""),h=Eh(new p(n+"."+r.slice(1)),c-f).plus(A),p.precision=v,t==null?(Ut=!0,xt(h,v)):h;for(l=s=h=ls(h.minus(Pn),h.plus(Pn),c),u=xt(h.times(h),c),i=3;;){if(s=xt(s.times(u),c),A=l.plus(ls(s,new p(i),c)),fa(A.d).slice(0,c)===fa(l.d).slice(0,c))return l=l.times(2),a!==0&&(l=l.plus(Zb(p,c+2,v).times(a+""))),l=ls(l,new p(d),c),p.precision=v,t==null?(Ut=!0,xt(l,v)):l;l=A,i+=2}}function lU(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=cd(r/Tt),e.d=[],n=(r+1)%Tt,r<0&&(n+=Tt),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Tt;n<i;)e.d.push(+t.slice(n,n+=Tt));t=t.slice(n),n=Tt-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Ut&&(e.e>dy||e.e<-dy))throw Error(dN+r)}else e.s=0,e.e=0,e.d=[0];return e}function xt(e,t,r){var n,i,a,s,l,A,c,u,d=e.d;for(s=1,a=d[0];a>=10;a/=10)s++;if(n=t-s,n<0)n+=Tt,i=t,c=d[u=0];else{if(u=Math.ceil((n+1)/Tt),a=d.length,u>=a)return e;for(c=a=d[u],s=1;a>=10;a/=10)s++;n%=Tt,i=n-Tt+s}if(r!==void 0&&(a=Al(10,s-i-1),l=c/a%10|0,A=t<0||d[u+1]!==void 0||c%a,A=r<4?(l||A)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||A||r==6&&(n>0?i>0?c/Al(10,s-i):0:d[u-1])%10&1||r==(e.s<0?8:7))),t<1||!d[0])return A?(a=ir(e),d.length=1,t=t-a-1,d[0]=Al(10,(Tt-t%Tt)%Tt),e.e=cd(-t/Tt)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(n==0?(d.length=u,a=1,u--):(d.length=u+1,a=Al(10,Tt-n),d[u]=i>0?(c/Al(10,s-i)%Al(10,i)|0)*a:0),A)for(;;)if(u==0){(d[0]+=a)==gr&&(d[0]=1,++e.e);break}else{if(d[u]+=a,d[u]!=gr)break;d[u--]=0,a=1}for(n=d.length;d[--n]===0;)d.pop();if(Ut&&(e.e>dy||e.e<-dy))throw Error(dN+ir(e));return e}function I6(e,t){var r,n,i,a,s,l,A,c,u,d,f=e.constructor,h=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),Ut?xt(t,h):t;if(A=e.d,d=t.d,n=t.e,c=e.e,A=A.slice(),s=c-n,s){for(u=s<0,u?(r=A,s=-s,l=d.length):(r=d,n=c,l=A.length),i=Math.max(Math.ceil(h/Tt),l)+2,s>i&&(s=i,r.length=1),r.reverse(),i=s;i--;)r.push(0);r.reverse()}else{for(i=A.length,l=d.length,u=i<l,u&&(l=i),i=0;i<l;i++)if(A[i]!=d[i]){u=A[i]<d[i];break}s=0}for(u&&(r=A,A=d,d=r,t.s=-t.s),l=A.length,i=d.length-l;i>0;--i)A[l++]=0;for(i=d.length;i>s;){if(A[--i]<d[i]){for(a=i;a&&A[--a]===0;)A[a]=gr-1;--A[a],A[i]+=gr}A[i]-=d[i]}for(;A[--l]===0;)A.pop();for(;A[0]===0;A.shift())--n;return A[0]?(t.d=A,t.e=n,Ut?xt(t,h):t):new f(0)}function Zl(e,t,r){var n,i=ir(e),a=fa(e.d),s=a.length;return t?(r&&(n=r-s)>0?a=a.charAt(0)+"."+a.slice(1)+Gs(n):s>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Gs(-i-1)+a,r&&(n=r-s)>0&&(a+=Gs(n))):i>=s?(a+=Gs(i+1-s),r&&(n=r-i-1)>0&&(a=a+"."+Gs(n))):((n=i+1)<s&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-s)>0&&(i+1===s&&(a+="."),a+=Gs(n))),e.s<0?"-"+a:a}function AU(e,t){if(e.length>t)return e.length=t,!0}function U6(e){var t,r,n;function i(a){var s=this;if(!(s instanceof i))return new i(a);if(s.constructor=i,a instanceof i){s.s=a.s,s.e=a.e,s.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Rl+a);if(a>0)s.s=1;else if(a<0)a=-a,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(a===~~a&&a<1e7){s.e=0,s.d=[a];return}return lU(s,a.toString())}else if(typeof a!="string")throw Error(Rl+a);if(a.charCodeAt(0)===45?(a=a.slice(1),s.s=-1):s.s=1,dSe.test(a))lU(s,a);else throw Error(Rl+a)}if(i.prototype=we,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=U6,i.config=i.set=fSe,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function fSe(e){if(!e||typeof e!="object")throw Error(hi+"Object expected");var t,r,n,i=["precision",1,Ad,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(cd(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Rl+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Rl+r+": "+n);return this}var fN=U6(uSe);Pn=new fN(1);const vt=fN;function hSe(e){return vSe(e)||gSe(e)||mSe(e)||pSe()}function pSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 482In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mSe(e,t){if(e){if(typeof e=="string")return oj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oj(e,t)}}function gSe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function vSe(e){if(Array.isArray(e))return oj(e)}function oj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ySe=function(t){return t},Q6={"@@functional/placeholder":!0},M6=function(t){return t===Q6},cU=function(t){return function r(){return arguments.length===0||arguments.length===1&&M6(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},xSe=function e(t,r){return t===1?r:cU(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var s=i.filter(function(l){return l!==Q6}).length;return s>=t?r.apply(void 0,i):e(t-s,cU(function(){for(var l=arguments.length,A=new Array(l),c=0;c<l;c++)A[c]=arguments[c];var u=i.map(function(d){return M6(d)?A.shift():d});return r.apply(void 0,hSe(u).concat(A))}))})},$w=function(t){return xSe(t.length,t)},lj=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},wSe=$w(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),bSe=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return ySe;var i=r.reverse(),a=i[0],s=i.slice(1);return function(){return s.reduce(function(l,A){return A(l)},a.apply(void 0,arguments))}},Aj=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},R6=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r&&a.every(function(l,A){return l===r[A]})||(r=a,n=t.apply(void 0,a)),n}};function BSe(e){var t;return e===0?t=1:t=Math.floor(new vt(e).abs().log(10).toNumber())+1,t}function CSe(e,t,r){for(var n=new vt(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var jSe=$w(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),_Se=$w(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),ESe=$w(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Hw={rangeStep:CSe,getDigitCount:BSe,interpolateNumber:jSe,uninterpolateNumber:_Se,uninterpolateTruncation:ESe};function cj(e){return OSe(e)||NSe(e)||D6(e)||SSe()}function SSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 483In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NSe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function OSe(e){if(Array.isArray(e))return uj(e)}function Sh(e,t){return PSe(e)||FSe(e,t)||D6(e,t)||TSe()}function TSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 484In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D6(e,t){if(e){if(typeof e=="string")return uj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uj(e,t)}}function uj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FSe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var s=e[Symbol.iterator](),l;!(n=(l=s.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(A){i=!0,a=A}finally{try{!n&&s.return!=null&&s.return()}finally{if(i)throw a}}return r}}function PSe(e){if(Array.isArray(e))return e}function L6(e){var t=Sh(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function $6(e,t,r){if(e.lte(0))return new vt(0);var n=Hw.getDigitCount(e.toNumber()),i=new vt(10).pow(n),a=e.div(i),s=n!==1?.05:.1,l=new vt(Math.ceil(a.div(s).toNumber())).add(r).mul(s),A=l.mul(i);return t?A:new vt(Math.ceil(A))}function kSe(e,t,r){var n=1,i=new vt(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new vt(10).pow(Hw.getDigitCount(e)-1),i=new vt(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new vt(Math.floor(e)))}else e===0?i=new vt(Math.floor((t-1)/2)):r||(i=new vt(Math.floor(e)));var s=Math.floor((t-1)/2),l=bSe(wSe(function(A){return i.add(new vt(A-s).mul(n)).toNumber()}),lj);return l(0,t)}function H6(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new vt(0),tickMin:new vt(0),tickMax:new vt(0)};var a=$6(new vt(t).sub(e).div(r-1),n,i),s;e<=0&&t>=0?s=new vt(0):(s=new vt(e).add(t).div(2),s=s.sub(new vt(s).mod(a)));var l=Math.ceil(s.sub(e).div(a).toNumber()),A=Math.ceil(new vt(t).sub(s).div(a).toNumber()),c=l+A+1;return c>r?H6(e,t,r,n,i+1):(c<r&&(A=t>0?A+(r-c):A,l=t>0?l:l+(r-c)),{step:a,tickMin:s.sub(new vt(l).mul(a)),tickMax:s.add(new vt(A).mul(a))})}function ISe(e){var t=Sh(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(i,2),l=L6([r,n]),A=Sh(l,2),c=A[0],u=A[1];if(c===-1/0||u===1/0){var d=u===1/0?[c].concat(cj(lj(0,i-1).map(function(){return 1/0}))):[].concat(cj(lj(0,i-1).map(function(){return-1/0})),[u]);return r>n?Aj(d):d}if(c===u)return kSe(c,i,a);var f=H6(c,u,s,a),h=f.step,m=f.tickMin,p=f.tickMax,v=Hw.rangeStep(m,p.add(new vt(.1).mul(h)),h);return r>n?Aj(v):v}function USe(e,t){var r=Sh(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=L6([n,i]),l=Sh(s,2),A=l[0],c=l[1];if(A===-1/0||c===1/0)return[n,i];if(A===c)return[A];var u=Math.max(t,2),d=$6(new vt(c).sub(A).div(u-1),a,0),f=[].concat(cj(Hw.rangeStep(new vt(A),new vt(c).sub(new vt(.99).mul(d)),d)),[c]);return n>i?Aj(f):f}var QSe=R6(ISe),MSe=R6(USe),RSe="Invariant failed";function eA(e,t){throw new Error(RSe)}var DSe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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)}function fy(){return fy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fy.apply(this,arguments)}function LSe(e,t){return VSe(e)||KSe(e,t)||HSe(e,t)||$Se()}function $Se(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 485In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HSe(e,t){if(e){if(typeof e=="string")return uU(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uU(e,t)}}function uU(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function KSe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,l=[],A=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(A=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);A=!0);}catch(u){c=!0,i=u}finally{try{if(!A&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}function VSe(e){if(Array.isArray(e))return e}function WSe(e,t){if(e==null)return{};var r=GSe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GSe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function zSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qSe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,W6(n.key),n)}}function YSe(e,t,r){return t&&qSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XSe(e,t,r){return t=hy(t),JSe(e,K6()?Reflect.construct(t,r||[],hy(e).constructor):t.apply(e,r))}function JSe(e,t){if(t&&(xu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZSe(e)}function ZSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(K6=function(){return!!e})()}function hy(e){return hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hy(e)}function eNe(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&&dj(e,t)}function dj(e,t){return dj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dj(e,t)}function V6(e,t,r){return t=W6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W6(e){var t=tNe(e,"string");return xu(t)=="symbol"?t:t+""}function tNe(e,t){if(xu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kp=function(e){function t(){return zSe(this,t),XSe(this,t,arguments)}return eNe(t,e),YSe(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,s=n.width,l=n.dataKey,A=n.data,c=n.dataPointFormatter,u=n.xAxis,d=n.yAxis,f=WSe(n,DSe),h=Ie(f,!1);this.props.direction==="x"&&u.type!=="number"&&eA();var m=A.map(function(p){var v=c(p,l),x=v.x,g=v.y,y=v.value,B=v.errorVal;if(!B)return null;var b=[],C,j;if(Array.isArray(B)){var _=LSe(B,2);C=_[0],j=_[1]}else C=j=B;if(a==="vertical"){var E=u.scale,I=g+i,T=I+s,k=I-s,N=E(y-C),F=E(y+j);b.push({x1:F,y1:T,x2:F,y2:k}),b.push({x1:N,y1:I,x2:F,y2:I}),b.push({x1:N,y1:T,x2:N,y2:k})}else if(a==="horizontal"){var M=d.scale,O=x+i,U=O-s,P=O+s,Q=M(y-C),$=M(y+j);b.push({x1:U,y1:$,x2:P,y2:$}),b.push({x1:O,y1:Q,x2:O,y2:$}),b.push({x1:U,y1:Q,x2:P,y2:Q})}return S.createElement(lt,fy({className:"recharts-errorBar",key:"bar-".concat(b.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},h),b.map(function(G){return S.createElement("line",fy({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return S.createElement(lt,{className:"recharts-errorBars"},m)}}])}(S.Component);V6(kp,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});V6(kp,"displayName","ErrorBar");function Nh(e){"@babel/helpers - typeof";return Nh=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},Nh(e)}function dU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dU(Object(r),!0).forEach(function(n){rNe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dU(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rNe(e,t,r){return t=nNe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nNe(e){var t=iNe(e,"string");return Nh(t)=="symbol"?t:t+""}function iNe(e,t){if(Nh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var G6=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,s=Nn(r,Ql);if(!s)return null;var l=Ql.defaultProps,A=l!==void 0?tl(tl({},l),s.props):{},c;return s.props&&s.props.payload?c=s.props&&s.props.payload:a==="children"?c=(n||[]).reduce(function(u,d){var f=d.item,h=d.props,m=h.sectors||h.data||[];return u.concat(m.map(function(p){return{type:s.props.iconType||f.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):c=(n||[]).map(function(u){var d=u.item,f=d.type.defaultProps,h=f!==void 0?tl(tl({},f),d.props):{},m=h.dataKey,p=h.name,v=h.legendType,x=h.hide;return{inactive:x,dataKey:m,type:A.iconType||v||"square",color:hN(d),value:p||m,payload:h}}),tl(tl(tl({},A),Ql.getWithHeight(s,i)),{},{payload:c,item:s})};function Oh(e){"@babel/helpers - typeof";return Oh=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},Oh(e)}function fU(e){return lNe(e)||oNe(e)||sNe(e)||aNe()}function aNe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 486In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sNe(e,t){if(e){if(typeof e=="string")return fj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fj(e,t)}}function oNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lNe(e){if(Array.isArray(e))return fj(e)}function fj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hU(Object(r),!0).forEach(function(n){Qc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hU(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qc(e,t,r){return t=ANe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ANe(e){var t=cNe(e,"string");return Oh(t)=="symbol"?t:t+""}function cNe(e,t){if(Oh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Oh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ur(e,t,r){return $e(e)||$e(t)?r:fr(t)?Rn(e,t,r):Me(t)?t(e):r}function Tf(e,t,r,n){var i=oSe(e,function(l){return ur(l,t)});if(r==="number"){var a=i.filter(function(l){return oe(l)||parseFloat(l)});return a.length?[Lw(a),Dw(a)]:[1/0,-1/0]}var s=n?i.filter(function(l){return!$e(l)}):i;return s.map(function(l){return fr(l)||l instanceof Date?l:""})}var uNe=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,s=-1,l=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var A=a.range,c=0;c<l;c++){var u=c>0?i[c-1].coordinate:i[l-1].coordinate,d=i[c].coordinate,f=c>=l-1?i[0].coordinate:i[c+1].coordinate,h=void 0;if(Yr(d-u)!==Yr(f-d)){var m=[];if(Yr(f-d)===Yr(A[1]-A[0])){h=f;var p=d+A[1]-A[0];m[0]=Math.min(p,(p+u)/2),m[1]=Math.max(p,(p+u)/2)}else{h=u;var v=f+A[1]-A[0];m[0]=Math.min(d,(v+d)/2),m[1]=Math.max(d,(v+d)/2)}var x=[Math.min(d,(h+d)/2),Math.max(d,(h+d)/2)];if(t>x[0]&&t<=x[1]||t>=m[0]&&t<=m[1]){s=i[c].index;break}}else{var g=Math.min(u,f),y=Math.max(u,f);if(t>(g+d)/2&&t<=(y+d)/2){s=i[c].index;break}}}else for(var B=0;B<l;B++)if(B===0&&t<=(n[B].coordinate+n[B+1].coordinate)/2||B>0&&B<l-1&&t>(n[B].coordinate+n[B-1].coordinate)/2&&t<=(n[B].coordinate+n[B+1].coordinate)/2||B===l-1&&t>(n[B].coordinate+n[B-1].coordinate)/2){s=n[B].index;break}return s},hN=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Vt(Vt({},t.type.defaultProps),t.props):t.props,s=a.stroke,l=a.fill,A;switch(i){case"Line":A=s;break;case"Area":case"Radar":A=s&&s!=="none"?s:l;break;default:A=l;break}return A},dNe=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var s={},l=Object.keys(a),A=0,c=l.length;A<c;A++)for(var u=a[l[A]].stackGroups,d=Object.keys(u),f=0,h=d.length;f<h;f++){var m=u[d[f]],p=m.items,v=m.cateAxisId,x=p.filter(function(j){return os(j.type).indexOf("Bar")>=0});if(x&&x.length){var g=x[0].type.defaultProps,y=g!==void 0?Vt(Vt({},g),x[0].props):x[0].props,B=y.barSize,b=y[v];s[b]||(s[b]=[]);var C=$e(B)?r:B;s[b].push({item:x[0],stackList:x.slice(1),barSize:$e(C)?void 0:Xr(C,n,0)})}}return s},fNe=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,s=a===void 0?[]:a,l=t.maxBarSize,A=s.length;if(A<1)return null;var c=Xr(r,i,0,!0),u,d=[];if(s[0].barSize===+s[0].barSize){var f=!1,h=i/A,m=s.reduce(function(B,b){return B+b.barSize||0},0);m+=(A-1)*c,m>=i&&(m-=(A-1)*c,c=0),m>=i&&h>0&&(f=!0,h*=.9,m=A*h);var p=(i-m)/2>>0,v={offset:p-c,size:0};u=s.reduce(function(B,b){var C={item:b.item,position:{offset:v.offset+v.size+c,size:f?h:b.barSize}},j=[].concat(fU(B),[C]);return v=j[j.length-1].position,b.stackList&&b.stackList.length&&b.stackList.forEach(function(_){j.push({item:_,position:v})}),j},d)}else{var x=Xr(n,i,0,!0);i-2*x-(A-1)*c<=0&&(c=0);var g=(i-2*x-(A-1)*c)/A;g>1&&(g>>=0);var y=l===+l?Math.min(g,l):g;u=s.reduce(function(B,b,C){var j=[].concat(fU(B),[{item:b.item,position:{offset:x+(g+c)*C+(g-y)/2,size:y}}]);return b.stackList&&b.stackList.length&&b.stackList.forEach(function(_){j.push({item:_,position:j[j.length-1].position})}),j},d)}return u},hNe=function(t,r,n,i){var a=n.children,s=n.width,l=n.margin,A=s-(l.left||0)-(l.right||0),c=G6({children:a,legendWidth:A});if(c){var u=i||{},d=u.width,f=u.height,h=c.align,m=c.verticalAlign,p=c.layout;if((p==="vertical"||p==="horizontal"&&m==="middle")&&h!=="center"&&oe(t[h]))return Vt(Vt({},t),{},Qc({},h,t[h]+(d||0)));if((p==="horizontal"||p==="vertical"&&h==="center")&&m!=="middle"&&oe(t[m]))return Vt(Vt({},t),{},Qc({},m,t[m]+(f||0)))}return t},pNe=function(t,r,n){return $e(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},z6=function(t,r,n,i,a){var s=r.props.children,l=Dn(s,kp).filter(function(c){return pNe(i,a,c.props.direction)});if(l&&l.length){var A=l.map(function(c){return c.props.dataKey});return t.reduce(function(c,u){var d=ur(u,n);if($e(d))return c;var f=Array.isArray(d)?[Lw(d),Dw(d)]:[d,d],h=A.reduce(function(m,p){var v=ur(u,p,0),x=f[0]-Math.abs(Array.isArray(v)?v[0]:v),g=f[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(x,m[0]),Math.max(g,m[1])]},[1/0,-1/0]);return[Math.min(h[0],c[0]),Math.max(h[1],c[1])]},[1/0,-1/0])}return null},mNe=function(t,r,n,i,a){var s=r.map(function(l){return z6(t,l,n,a,i)}).filter(function(l){return!$e(l)});return s&&s.length?s.reduce(function(l,A){return[Math.min(l[0],A[0]),Math.max(l[1],A[1])]},[1/0,-1/0]):null},q6=function(t,r,n,i,a){var s=r.map(function(A){var c=A.props.dataKey;return n==="number"&&c&&z6(t,A,c,i)||Tf(t,c,n,a)});if(n==="number")return s.reduce(function(A,c){return[Math.min(A[0],c[0]),Math.max(A[1],c[1])]},[1/0,-1/0]);var l={};return s.reduce(function(A,c){for(var u=0,d=c.length;u<d;u++)l[c[u]]||(l[c[u]]=!0,A.push(c[u]));return A},[])},Y6=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},X6=function(t,r,n,i){if(i)return t.map(function(A){return A.coordinate});var a,s,l=t.map(function(A){return A.coordinate===r&&(a=!0),A.coordinate===n&&(s=!0),A.coordinate});return a||l.push(r),s||l.push(n),l},rs=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,s=t.type,l=t.range,A=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&s==="category"&&i.bandwidth?i.bandwidth()/A:0;if(c=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?Yr(l[0]-l[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var u=(t.ticks||t.niceTicks).map(function(d){var f=a?a.indexOf(d):d;return{coordinate:i(f)+c,value:d,offset:c}});return u.filter(function(d){return!jp(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,f){return{coordinate:i(d)+c,value:d,index:f,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(d){return{coordinate:i(d)+c,value:d,offset:c}}):i.domain().map(function(d,f){return{coordinate:i(d)+c,value:a?a[d]:d,index:f,offset:c}})},eB=new WeakMap,Zm=function(t,r){if(typeof r!="function")return t;eB.has(t)||eB.set(t,new WeakMap);var n=eB.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},J6=function(t,r,n){var i=t.scale,a=t.type,s=t.layout,l=t.axisType;if(i==="auto")return s==="radial"&&l==="radiusAxis"?{scale:bh(),realScaleType:"band"}:s==="radial"&&l==="angleAxis"?{scale:ly(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Of(),realScaleType:"point"}:a==="category"?{scale:bh(),realScaleType:"band"}:{scale:ly(),realScaleType:"linear"};if(Yl(i)){var A="scale".concat(_w(i));return{scale:(oU[A]||Of)(),realScaleType:oU[A]?A:"point"}}return Me(i)?{scale:i}:{scale:Of(),realScaleType:"point"}},pU=1e-4,Z6=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-pU,s=Math.max(i[0],i[1])+pU,l=t(r[0]),A=t(r[n-1]);(l<a||l>s||A<a||A>s)&&t.domain([r[0],r[n-1]])}},gNe=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},vNe=function(t,r){if(!r||r.length!==2||!oe(r[0])||!oe(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!oe(t[0])||t[0]<n)&&(a[0]=n),(!oe(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},yNe=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,s=0,l=0;l<r;++l){var A=jp(t[l][n][1])?t[l][n][0]:t[l][n][1];A>=0?(t[l][n][0]=a,t[l][n][1]=a+A,a=t[l][n][1]):(t[l][n][0]=s,t[l][n][1]=s+A,s=t[l][n][1])}},xNe=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,s=0;s<r;++s){var l=jp(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=0,t[s][n][1]=0)}},wNe={sign:yNe,expand:Dge,none:du,silhouette:Lge,wiggle:$ge,positive:xNe},bNe=function(t,r,n){var i=r.map(function(l){return l.props.dataKey}),a=wNe[n],s=Rge().keys(i).value(function(l,A){return+ur(l,A,0)}).order(M1).offset(a);return s(t)},BNe=function(t,r,n,i,a,s){if(!t)return null;var l=s?r.reverse():r,A={},c=l.reduce(function(d,f){var h,m=(h=f.type)!==null&&h!==void 0&&h.defaultProps?Vt(Vt({},f.type.defaultProps),f.props):f.props,p=m.stackId,v=m.hide;if(v)return d;var x=m[n],g=d[x]||{hasStack:!1,stackGroups:{}};if(fr(p)){var y=g.stackGroups[p]||{numericAxisId:n,cateAxisId:i,items:[]};y.items.push(f),g.hasStack=!0,g.stackGroups[p]=y}else g.stackGroups[id("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[f]};return Vt(Vt({},d),{},Qc({},x,g))},A),u={};return Object.keys(c).reduce(function(d,f){var h=c[f];if(h.hasStack){var m={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(p,v){var x=h.stackGroups[v];return Vt(Vt({},p),{},Qc({},v,{numericAxisId:n,cateAxisId:i,items:x.items,stackedData:bNe(t,x.items,a)}))},m)}return Vt(Vt({},d),{},Qc({},f,h))},u)},eV=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,s=r.originalDomain,l=r.allowDecimals,A=n||r.scale;if(A!=="auto"&&A!=="linear")return null;if(a&&i==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var c=t.domain();if(!c.length)return null;var u=QSe(c,a,l);return t.domain([Lw(u),Dw(u)]),{niceTicks:u}}if(a&&i==="number"){var d=t.domain(),f=MSe(d,a,l);return{niceTicks:f}}return null};function mU(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!$e(i[t.dataKey])){var l=Lv(r,"value",i[t.dataKey]);if(l)return l.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var A=ur(i,$e(s)?t.dataKey:s);return $e(A)?null:t.scale(A)}var gU=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,s=t.entry,l=t.index;if(r.type==="category")return n[l]?n[l].coordinate+i:null;var A=ur(s,r.dataKey,r.domain[l]);return $e(A)?null:r.scale(A)-a/2+i},CNe=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},jNe=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Vt(Vt({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(fr(a)){var s=r[a];if(s){var l=s.items.indexOf(t);return l>=0?s.stackedData[l]:null}}return null},_Ne=function(t){return t.reduce(function(r,n){return[Lw(n.concat([r[0]]).filter(oe)),Dw(n.concat([r[1]]).filter(oe))]},[1/0,-1/0])},tV=function(t,r,n){return Object.keys(t).reduce(function(i,a){var s=t[a],l=s.stackedData,A=l.reduce(function(c,u){var d=_Ne(u.slice(r,n+1));return[Math.min(c[0],d[0]),Math.max(c[1],d[1])]},[1/0,-1/0]);return[Math.min(A[0],i[0]),Math.max(A[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},vU=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,yU=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,hj=function(t,r,n){if(Me(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(oe(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(vU.test(t[0])){var a=+vU.exec(t[0])[1];i[0]=r[0]-a}else Me(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(oe(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(yU.test(t[1])){var s=+yU.exec(t[1])[1];i[1]=r[1]+s}else Me(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},py=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=$S(r,function(d){return d.coordinate}),s=1/0,l=1,A=a.length;l<A;l++){var c=a[l],u=a[l-1];s=Math.min((c.coordinate||0)-(u.coordinate||0),s)}return s===1/0?0:s}return n?void 0:0},xU=function(t,r,n){return!t||!t.length||Pp(t,Rn(n,"type.defaultProps.domain"))?r:t},rV=function(t,r){var n=t.type.defaultProps?Vt(Vt({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,s=n.unit,l=n.formatter,A=n.tooltipType,c=n.chartType,u=n.hide;return Vt(Vt({},Ie(t,!1)),{},{dataKey:i,unit:s,formatter:l,name:a||i,color:hN(t),value:ur(r,i),type:A,payload:r,chartType:c,hide:u})};function Th(e){"@babel/helpers - typeof";return Th=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},Th(e)}function wU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ga(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wU(Object(r),!0).forEach(function(n){nV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wU(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nV(e,t,r){return t=ENe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ENe(e){var t=SNe(e,"string");return Th(t)=="symbol"?t:t+""}function SNe(e,t){if(Th(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Th(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NNe(e,t){return PNe(e)||FNe(e,t)||TNe(e,t)||ONe()}function ONe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 487In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TNe(e,t){if(e){if(typeof e=="string")return bU(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bU(e,t)}}function bU(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FNe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,l=[],A=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(A=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);A=!0);}catch(u){c=!0,i=u}finally{try{if(!A&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}function PNe(e){if(Array.isArray(e))return e}var my=Math.PI/180,kNe=function(t){return t*180/Math.PI},_t=function(t,r,n,i){return{x:t+Math.cos(-my*i)*n,y:r+Math.sin(-my*i)*n}},iV=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},INe=function(t,r,n,i,a){var s=t.width,l=t.height,A=t.startAngle,c=t.endAngle,u=Xr(t.cx,s,s/2),d=Xr(t.cy,l,l/2),f=iV(s,l,n),h=Xr(t.innerRadius,f,0),m=Xr(t.outerRadius,f,f*.8),p=Object.keys(r);return p.reduce(function(v,x){var g=r[x],y=g.domain,B=g.reversed,b;if($e(g.range))i==="angleAxis"?b=[A,c]:i==="radiusAxis"&&(b=[h,m]),B&&(b=[b[1],b[0]]);else{b=g.range;var C=b,j=NNe(C,2);A=j[0],c=j[1]}var _=J6(g,a),E=_.realScaleType,I=_.scale;I.domain(y).range(b),Z6(I);var T=eV(I,Ga(Ga({},g),{},{realScaleType:E})),k=Ga(Ga(Ga({},g),T),{},{range:b,radius:m,realScaleType:E,scale:I,cx:u,cy:d,innerRadius:h,outerRadius:m,startAngle:A,endAngle:c});return Ga(Ga({},v),{},nV({},x,k))},{})},UNe=function(t,r){var n=t.x,i=t.y,a=r.x,s=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-s,2))},QNe=function(t,r){var n=t.x,i=t.y,a=r.cx,s=r.cy,l=UNe({x:n,y:i},{x:a,y:s});if(l<=0)return{radius:l};var A=(n-a)/l,c=Math.acos(A);return i>s&&(c=2*Math.PI-c),{radius:l,angle:kNe(c),angleInRadian:c}},MNe=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),s=Math.min(i,a);return{startAngle:r-s*360,endAngle:n-s*360}},RNe=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),s=Math.floor(i/360),l=Math.min(a,s);return t+l*360},BU=function(t,r){var n=t.x,i=t.y,a=QNe({x:n,y:i},r),s=a.radius,l=a.angle,A=r.innerRadius,c=r.outerRadius;if(s<A||s>c)return!1;if(s===0)return!0;var u=MNe(r),d=u.startAngle,f=u.endAngle,h=l,m;if(d<=f){for(;h>f;)h-=360;for(;h<d;)h+=360;m=h>=d&&h<=f}else{for(;h>d;)h-=360;for(;h<f;)h+=360;m=h>=f&&h<=d}return m?Ga(Ga({},r),{},{radius:s,angle:RNe(h,r)}):null},aV=function(t){return!w.isValidElement(t)&&!Me(t)&&typeof t!="boolean"?t.className:""};function Fh(e){"@babel/helpers - typeof";return Fh=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},Fh(e)}var DNe=["offset"];function LNe(e){return VNe(e)||KNe(e)||HNe(e)||$Ne()}function $Ne(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 488In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HNe(e,t){if(e){if(typeof e=="string")return pj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pj(e,t)}}function KNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VNe(e){if(Array.isArray(e))return pj(e)}function pj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function WNe(e,t){if(e==null)return{};var r=GNe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GNe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function CU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CU(Object(r),!0).forEach(function(n){zNe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CU(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zNe(e,t,r){return t=qNe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qNe(e){var t=YNe(e,"string");return Fh(t)=="symbol"?t:t+""}function YNe(e,t){if(Fh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ph(){return Ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ph.apply(this,arguments)}var XNe=function(t){var r=t.value,n=t.formatter,i=$e(t.children)?r:t.children;return Me(n)?n(i):i},JNe=function(t,r){var n=Yr(r-t),i=Math.min(Math.abs(r-t),360);return n*i},ZNe=function(t,r,n){var i=t.position,a=t.viewBox,s=t.offset,l=t.className,A=a,c=A.cx,u=A.cy,d=A.innerRadius,f=A.outerRadius,h=A.startAngle,m=A.endAngle,p=A.clockWise,v=(d+f)/2,x=JNe(h,m),g=x>=0?1:-1,y,B;i==="insideStart"?(y=h+g*s,B=p):i==="insideEnd"?(y=m-g*s,B=!p):i==="end"&&(y=m+g*s,B=p),B=x<=0?B:!B;var b=_t(c,u,v,y),C=_t(c,u,v,y+(B?1:-1)*359),j="M".concat(b.x,",").concat(b.y,` 489 A`).concat(v,",").concat(v,",0,1,").concat(B?0:1,`, 490 `).concat(C.x,",").concat(C.y),_=$e(t.id)?id("recharts-radial-line-"):t.id;return S.createElement("text",Ph({},n,{dominantBaseline:"central",className:Ve("recharts-radial-bar-label",l)}),S.createElement("defs",null,S.createElement("path",{id:_,d:j})),S.createElement("textPath",{xlinkHref:"#".concat(_)},r))},eOe=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,s=a.cx,l=a.cy,A=a.innerRadius,c=a.outerRadius,u=a.startAngle,d=a.endAngle,f=(u+d)/2;if(i==="outside"){var h=_t(s,l,c+n,f),m=h.x,p=h.y;return{x:m,y:p,textAnchor:m>=s?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"end"};var v=(A+c)/2,x=_t(s,l,v,f),g=x.x,y=x.y;return{x:g,y,textAnchor:"middle",verticalAnchor:"middle"}},tOe=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,s=r,l=s.x,A=s.y,c=s.width,u=s.height,d=u>=0?1:-1,f=d*i,h=d>0?"end":"start",m=d>0?"start":"end",p=c>=0?1:-1,v=p*i,x=p>0?"end":"start",g=p>0?"start":"end";if(a==="top"){var y={x:l+c/2,y:A-d*i,textAnchor:"middle",verticalAnchor:h};return sr(sr({},y),n?{height:Math.max(A-n.y,0),width:c}:{})}if(a==="bottom"){var B={x:l+c/2,y:A+u+f,textAnchor:"middle",verticalAnchor:m};return sr(sr({},B),n?{height:Math.max(n.y+n.height-(A+u),0),width:c}:{})}if(a==="left"){var b={x:l-v,y:A+u/2,textAnchor:x,verticalAnchor:"middle"};return sr(sr({},b),n?{width:Math.max(b.x-n.x,0),height:u}:{})}if(a==="right"){var C={x:l+c+v,y:A+u/2,textAnchor:g,verticalAnchor:"middle"};return sr(sr({},C),n?{width:Math.max(n.x+n.width-C.x,0),height:u}:{})}var j=n?{width:c,height:u}:{};return a==="insideLeft"?sr({x:l+v,y:A+u/2,textAnchor:g,verticalAnchor:"middle"},j):a==="insideRight"?sr({x:l+c-v,y:A+u/2,textAnchor:x,verticalAnchor:"middle"},j):a==="insideTop"?sr({x:l+c/2,y:A+f,textAnchor:"middle",verticalAnchor:m},j):a==="insideBottom"?sr({x:l+c/2,y:A+u-f,textAnchor:"middle",verticalAnchor:h},j):a==="insideTopLeft"?sr({x:l+v,y:A+f,textAnchor:g,verticalAnchor:m},j):a==="insideTopRight"?sr({x:l+c-v,y:A+f,textAnchor:x,verticalAnchor:m},j):a==="insideBottomLeft"?sr({x:l+v,y:A+u-f,textAnchor:g,verticalAnchor:h},j):a==="insideBottomRight"?sr({x:l+c-v,y:A+u-f,textAnchor:x,verticalAnchor:h},j):ed(a)&&(oe(a.x)||wl(a.x))&&(oe(a.y)||wl(a.y))?sr({x:l+Xr(a.x,c),y:A+Xr(a.y,u),textAnchor:"end",verticalAnchor:"end"},j):sr({x:l+c/2,y:A+u/2,textAnchor:"middle",verticalAnchor:"middle"},j)},rOe=function(t){return"cx"in t&&oe(t.cx)};function yr(e){var t=e.offset,r=t===void 0?5:t,n=WNe(e,DNe),i=sr({offset:r},n),a=i.viewBox,s=i.position,l=i.value,A=i.children,c=i.content,u=i.className,d=u===void 0?"":u,f=i.textBreakAll;if(!a||$e(l)&&$e(A)&&!w.isValidElement(c)&&!Me(c))return null;if(w.isValidElement(c))return w.cloneElement(c,i);var h;if(Me(c)){if(h=w.createElement(c,i),w.isValidElement(h))return h}else h=XNe(i);var m=rOe(a),p=Ie(i,!0);if(m&&(s==="insideStart"||s==="insideEnd"||s==="end"))return ZNe(i,h,p);var v=m?eOe(i):tOe(i);return S.createElement(Jl,Ph({className:Ve("recharts-label",d)},p,v,{breakAll:f}),h)}yr.displayName="Label";var sV=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,s=t.endAngle,l=t.r,A=t.radius,c=t.innerRadius,u=t.outerRadius,d=t.x,f=t.y,h=t.top,m=t.left,p=t.width,v=t.height,x=t.clockWise,g=t.labelViewBox;if(g)return g;if(oe(p)&&oe(v)){if(oe(d)&&oe(f))return{x:d,y:f,width:p,height:v};if(oe(h)&&oe(m))return{x:h,y:m,width:p,height:v}}return oe(d)&&oe(f)?{x:d,y:f,width:0,height:0}:oe(r)&&oe(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:s||i||0,innerRadius:c||0,outerRadius:u||A||l||0,clockWise:x}:t.viewBox?t.viewBox:{}},nOe=function(t,r){return t?t===!0?S.createElement(yr,{key:"label-implicit",viewBox:r}):fr(t)?S.createElement(yr,{key:"label-implicit",viewBox:r,value:t}):w.isValidElement(t)?t.type===yr?w.cloneElement(t,{key:"label-implicit",viewBox:r}):S.createElement(yr,{key:"label-implicit",content:t,viewBox:r}):Me(t)?S.createElement(yr,{key:"label-implicit",content:t,viewBox:r}):ed(t)?S.createElement(yr,Ph({viewBox:r},t,{key:"label-implicit"})):null:null},iOe=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=sV(t),s=Dn(i,yr).map(function(A,c){return w.cloneElement(A,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return s;var l=nOe(t.label,r||a);return[l].concat(LNe(s))};yr.parseViewBox=sV;yr.renderCallByParent=iOe;function aOe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var sOe=aOe;const oOe=nt(sOe);function kh(e){"@babel/helpers - typeof";return kh=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},kh(e)}var lOe=["valueAccessor"],AOe=["data","dataKey","clockWise","id","textBreakAll"];function cOe(e){return hOe(e)||fOe(e)||dOe(e)||uOe()}function uOe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 491In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dOe(e,t){if(e){if(typeof e=="string")return mj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mj(e,t)}}function fOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hOe(e){if(Array.isArray(e))return mj(e)}function mj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gy(){return gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gy.apply(this,arguments)}function jU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _U(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jU(Object(r),!0).forEach(function(n){pOe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jU(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pOe(e,t,r){return t=mOe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mOe(e){var t=gOe(e,"string");return kh(t)=="symbol"?t:t+""}function gOe(e,t){if(kh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(kh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EU(e,t){if(e==null)return{};var r=vOe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vOe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var yOe=function(t){return Array.isArray(t.value)?oOe(t.value):t.value};function As(e){var t=e.valueAccessor,r=t===void 0?yOe:t,n=EU(e,lOe),i=n.data,a=n.dataKey,s=n.clockWise,l=n.id,A=n.textBreakAll,c=EU(n,AOe);return!i||!i.length?null:S.createElement(lt,{className:"recharts-label-list"},i.map(function(u,d){var f=$e(a)?r(u,d):ur(u&&u.payload,a),h=$e(l)?{}:{id:"".concat(l,"-").concat(d)};return S.createElement(yr,gy({},Ie(u,!0),c,h,{parentViewBox:u.parentViewBox,value:f,textBreakAll:A,viewBox:yr.parseViewBox($e(s)?u:_U(_U({},u),{},{clockWise:s})),key:"label-".concat(d),index:d}))}))}As.displayName="LabelList";function xOe(e,t){return e?e===!0?S.createElement(As,{key:"labelList-implicit",data:t}):S.isValidElement(e)||Me(e)?S.createElement(As,{key:"labelList-implicit",data:t,content:e}):ed(e)?S.createElement(As,gy({data:t},e,{key:"labelList-implicit"})):null:null}function wOe(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Dn(n,As).map(function(s,l){return w.cloneElement(s,{data:t,key:"labelList-".concat(l)})});if(!r)return i;var a=xOe(e.label,t);return[a].concat(cOe(i))}As.renderCallByParent=wOe;function Ih(e){"@babel/helpers - typeof";return Ih=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},Ih(e)}function gj(){return gj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gj.apply(this,arguments)}function SU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function NU(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SU(Object(r),!0).forEach(function(n){bOe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SU(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bOe(e,t,r){return t=BOe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BOe(e){var t=COe(e,"string");return Ih(t)=="symbol"?t:t+""}function COe(e,t){if(Ih(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ih(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jOe=function(t,r){var n=Yr(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},eg=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,s=t.sign,l=t.isExternal,A=t.cornerRadius,c=t.cornerIsExternal,u=A*(l?1:-1)+i,d=Math.asin(A/u)/my,f=c?a:a+s*d,h=_t(r,n,u,f),m=_t(r,n,i,f),p=c?a-s*d:a,v=_t(r,n,u*Math.cos(d*my),p);return{center:h,circleTangency:m,lineTangency:v,theta:d}},oV=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,s=t.startAngle,l=t.endAngle,A=jOe(s,l),c=s+A,u=_t(r,n,a,s),d=_t(r,n,a,c),f="M ".concat(u.x,",").concat(u.y,` 492 A `).concat(a,",").concat(a,`,0, 493 `).concat(+(Math.abs(A)>180),",").concat(+(s>c),`, 494 `).concat(d.x,",").concat(d.y,` 495 `);if(i>0){var h=_t(r,n,i,s),m=_t(r,n,i,c);f+="L ".concat(m.x,",").concat(m.y,` 496 A `).concat(i,",").concat(i,`,0, 497 `).concat(+(Math.abs(A)>180),",").concat(+(s<=c),`, 498 `).concat(h.x,",").concat(h.y," Z")}else f+="L ".concat(r,",").concat(n," Z");return f},_Oe=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,s=t.cornerRadius,l=t.forceCornerRadius,A=t.cornerIsExternal,c=t.startAngle,u=t.endAngle,d=Yr(u-c),f=eg({cx:r,cy:n,radius:a,angle:c,sign:d,cornerRadius:s,cornerIsExternal:A}),h=f.circleTangency,m=f.lineTangency,p=f.theta,v=eg({cx:r,cy:n,radius:a,angle:u,sign:-d,cornerRadius:s,cornerIsExternal:A}),x=v.circleTangency,g=v.lineTangency,y=v.theta,B=A?Math.abs(c-u):Math.abs(c-u)-p-y;if(B<0)return l?"M ".concat(m.x,",").concat(m.y,` 499 a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0 500 a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0 501 `):oV({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:u});var b="M ".concat(m.x,",").concat(m.y,` 502 A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(h.x,",").concat(h.y,` 503 A`).concat(a,",").concat(a,",0,").concat(+(B>180),",").concat(+(d<0),",").concat(x.x,",").concat(x.y,` 504 A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(g.x,",").concat(g.y,` 505 `);if(i>0){var C=eg({cx:r,cy:n,radius:i,angle:c,sign:d,isExternal:!0,cornerRadius:s,cornerIsExternal:A}),j=C.circleTangency,_=C.lineTangency,E=C.theta,I=eg({cx:r,cy:n,radius:i,angle:u,sign:-d,isExternal:!0,cornerRadius:s,cornerIsExternal:A}),T=I.circleTangency,k=I.lineTangency,N=I.theta,F=A?Math.abs(c-u):Math.abs(c-u)-E-N;if(F<0&&s===0)return"".concat(b,"L").concat(r,",").concat(n,"Z");b+="L".concat(k.x,",").concat(k.y,` 506 A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(T.x,",").concat(T.y,` 507 A`).concat(i,",").concat(i,",0,").concat(+(F>180),",").concat(+(d>0),",").concat(j.x,",").concat(j.y,` 508 A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(_.x,",").concat(_.y,"Z")}else b+="L".concat(r,",").concat(n,"Z");return b},EOe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},lV=function(t){var r=NU(NU({},EOe),t),n=r.cx,i=r.cy,a=r.innerRadius,s=r.outerRadius,l=r.cornerRadius,A=r.forceCornerRadius,c=r.cornerIsExternal,u=r.startAngle,d=r.endAngle,f
508=r.className;if(s<a||u===d)return null;var h=Ve("recharts-sector",f),m=s-a,p=Xr(l,m,0,!0),v;return p>0&&Math.abs(u-d)<360?v=_Oe({cx:n,cy:i,innerRadius:a,outerRadius:s,cornerRadius:Math.min(p,m/2),forceCornerRadius:A,cornerIsExternal:c,startAngle:u,endAngle:d}):v=oV({cx:n,cy:i,innerRadius:a,outerRadius:s,startAngle:u,endAngle:d}),S.createElement("path",gj({},Ie(r,!0),{className:h,d:v,role:"img"}))};function Uh(e){"@babel/helpers - typeof";return Uh=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},Uh(e)}function vj(){return vj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vj.apply(this,arguments)}function OU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function TU(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OU(Object(r),!0).forEach(function(n){SOe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OU(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SOe(e,t,r){return t=NOe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NOe(e){var t=OOe(e,"string");return Uh(t)=="symbol"?t:t+""}function OOe(e,t){if(Uh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Uh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var FU={curveBasisClosed:Sge,curveBasisOpen:Nge,curveBasis:Ege,curveBumpX:fge,curveBumpY:hge,curveLinearClosed:Oge,curveLinear:Sw,curveMonotoneX:Tge,curveMonotoneY:Fge,curveNatural:Pge,curveStep:kge,curveStepAfter:Uge,curveStepBefore:Ige},tg=function(t){return t.x===+t.x&&t.y===+t.y},Dd=function(t){return t.x},Ld=function(t){return t.y},TOe=function(t,r){if(Me(t))return t;var n="curve".concat(_w(t));return(n==="curveMonotone"||n==="curveBump")&&r?FU["".concat(n).concat(r==="vertical"?"Y":"X")]:FU[n]||Sw},FOe=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,s=t.baseLine,l=t.layout,A=t.connectNulls,c=A===void 0?!1:A,u=TOe(n,l),d=c?a.filter(function(p){return tg(p)}):a,f;if(Array.isArray(s)){var h=c?s.filter(function(p){return tg(p)}):s,m=d.map(function(p,v){return TU(TU({},p),{},{base:h[v]})});return l==="vertical"?f=Vm().y(Ld).x1(Dd).x0(function(p){return p.base.x}):f=Vm().x(Dd).y1(Ld).y0(function(p){return p.base.y}),f.defined(tg).curve(u),f(m)}return l==="vertical"&&oe(s)?f=Vm().y(Ld).x1(Dd).x0(s):oe(s)?f=Vm().x(Dd).y1(Ld).y0(s):f=r5().x(Dd).y(Ld),f.defined(tg).curve(u),f(d)},vy=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var s=n&&n.length?FOe(t):i;return w.createElement("path",vj({},Ie(t,!1),$v(t),{className:Ve("recharts-curve",r),d:s,ref:a}))},AV={exports:{}},POe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kOe=POe,IOe=kOe;function cV(){}function uV(){}uV.resetWarningCache=cV;var UOe=function(){function e(n,i,a,s,l,A){if(A!==IOe){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:uV,resetWarningCache:cV};return r.PropTypes=r,r};AV.exports=UOe();var QOe=AV.exports;const ct=nt(QOe);var MOe=Object.getOwnPropertyNames,ROe=Object.getOwnPropertySymbols,DOe=Object.prototype.hasOwnProperty;function PU(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function rg(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,s=a.get(r),l=a.get(n);if(s&&l)return s===n&&l===r;a.set(r,n),a.set(n,r);var A=e(r,n,i);return a.delete(r),a.delete(n),A}}function kU(e){return MOe(e).concat(ROe(e))}var LOe=Object.hasOwn||function(e,t){return DOe.call(e,t)};function yA(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var $Oe="__v",HOe="__o",KOe="_owner",IU=Object.getOwnPropertyDescriptor,UU=Object.keys;function VOe(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function WOe(e,t){return yA(e.getTime(),t.getTime())}function GOe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function zOe(e,t){return e===t}function QU(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),s,l,A=0;(s=a.next())&&!s.done;){for(var c=t.entries(),u=!1,d=0;(l=c.next())&&!l.done;){if(i[d]){d++;continue}var f=s.value,h=l.value;if(r.equals(f[0],h[0],A,d,e,t,r)&&r.equals(f[1],h[1],f[0],h[0],e,t,r)){u=i[d]=!0;break}d++}if(!u)return!1;A++}return!0}var qOe=yA;function YOe(e,t,r){var n=UU(e),i=n.length;if(UU(t).length!==i)return!1;for(;i-- >0;)if(!dV(e,t,r,n[i]))return!1;return!0}function $d(e,t,r){var n=kU(e),i=n.length;if(kU(t).length!==i)return!1;for(var a,s,l;i-- >0;)if(a=n[i],!dV(e,t,r,a)||(s=IU(e,a),l=IU(t,a),(s||l)&&(!s||!l||s.configurable!==l.configurable||s.enumerable!==l.enumerable||s.writable!==l.writable)))return!1;return!0}function XOe(e,t){return yA(e.valueOf(),t.valueOf())}function JOe(e,t){return e.source===t.source&&e.flags===t.flags}function MU(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),s,l;(s=a.next())&&!s.done;){for(var A=t.values(),c=!1,u=0;(l=A.next())&&!l.done;){if(!i[u]&&r.equals(s.value,l.value,s.value,l.value,e,t,r)){c=i[u]=!0;break}u++}if(!c)return!1}return!0}function ZOe(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function eTe(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 dV(e,t,r,n){return(n===KOe||n===HOe||n===$Oe)&&(e.$$typeof||t.$$typeof)?!0:LOe(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var tTe="[object Arguments]",rTe="[object Boolean]",nTe="[object Date]",iTe="[object Error]",aTe="[object Map]",sTe="[object Number]",oTe="[object Object]",lTe="[object RegExp]",ATe="[object Set]",cTe="[object String]",uTe="[object URL]",dTe=Array.isArray,RU=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,DU=Object.assign,fTe=Object.prototype.toString.call.bind(Object.prototype.toString);function hTe(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,s=e.areNumbersEqual,l=e.areObjectsEqual,A=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,u=e.areSetsEqual,d=e.areTypedArraysEqual,f=e.areUrlsEqual;return function(m,p,v){if(m===p)return!0;
508if(m==null||p==null)return!1;var x=typeof m;if(x!==typeof p)return!1;if(x!=="object")return x==="number"?s(m,p,v):x==="function"?i(m,p,v):!1;var g=m.constructor;if(g!==p.constructor)return!1;if(g===Object)return l(m,p,v);if(dTe(m))return t(m,p,v);if(RU!=null&&RU(m))return d(m,p,v);if(g===Date)return r(m,p,v);if(g===RegExp)return c(m,p,v);if(g===Map)return a(m,p,v);if(g===Set)return u(m,p,v);var y=fTe(m);return y===nTe?r(m,p,v):y===lTe?c(m,p,v):y===aTe?a(m,p,v):y===ATe?u(m,p,v):y===oTe?typeof m.then!="function"&&typeof p.then!="function"&&l(m,p,v):y===uTe?f(m,p,v):y===iTe?n(m,p,v):y===tTe?l(m,p,v):y===rTe||y===sTe||y===cTe?A(m,p,v):!1}}function pTe(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?$d:VOe,areDatesEqual:WOe,areErrorsEqual:GOe,areFunctionsEqual:zOe,areMapsEqual:n?PU(QU,$d):QU,areNumbersEqual:qOe,areObjectsEqual:n?$d:YOe,arePrimitiveWrappersEqual:XOe,areRegExpsEqual:JOe,areSetsEqual:n?PU(MU,$d):MU,areTypedArraysEqual:n?$d:ZOe,areUrlsEqual:eTe};if(r&&(i=DU({},i,r(i))),t){var a=rg(i.areArraysEqual),s=rg(i.areMapsEqual),l=rg(i.areObjectsEqual),A=rg(i.areSetsEqual);i=DU({},i,{areArraysEqual:a,areMapsEqual:s,areObjectsEqual:l,areSetsEqual:A})}return i}function mTe(e){return function(t,r,n,i,a,s,l){return e(t,r,l)}}function gTe(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(A,c){var u=n(),d=u.cache,f=d===void 0?t?new WeakMap:void 0:d,h=u.meta;return r(A,c,{cache:f,equals:i,meta:h,strict:a})};if(t)return function(A,c){return r(A,c,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var s={cache:void 0,equals:i,meta:void 0,strict:a};return function(A,c){return r(A,c,s)}}var vTe=Go();Go({strict:!0});Go({circular:!0});Go({circular:!0,strict:!0});Go({createInternalComparator:function(){return yA}});Go({strict:!0,createInternalComparator:function(){return yA}});Go({circular:!0,createInternalComparator:function(){return yA}});Go({circular:!0,createInternalComparator:function(){return yA},strict:!0});function Go(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,s=a===void 0?!1:a,l=pTe(e),A=hTe(l),c=n?n(A):mTe(A);return gTe({circular:r,comparator:A,createState:i,equals:c,strict:s})}function yTe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function LU(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):yTe(i)};requestAnimationFrame(n)}function yj(e){"@babel/helpers - typeof";return yj=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},yj(e)}function xTe(e){return CTe(e)||BTe(e)||bTe(e)||wTe()}function wTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 509In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bTe(e,t){if(e){if(typeof e=="string")return $U(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $U(e,t)}}function $U(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function BTe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CTe(e){if(Array.isArray(e))return e}function jTe(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var s=a,l=xTe(s),A=l[0],c=l.slice(1);if(typeof A=="number"){LU(i.bind(null,c),A);return}i(A),LU(i.bind(null,c));return}yj(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Qh(e){"@babel/helpers - typeof";return Qh=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},Qh(e)}function HU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function KU(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 58,704 bytes, lines 509-527
509t%2?HU(Object(r),!0).forEach(function(n){fV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HU(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fV(e,t,r){return t=_Te(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _Te(e){var t=ETe(e,"string");return Qh(t)==="symbol"?t:String(t)}function ETe(e,t){if(Qh(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qh(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var STe=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},NTe=function(t){return t},OTe=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Ff=function(t,r){return Object.keys(r).reduce(function(n,i){return KU(KU({},n),{},fV({},i,t(i,r[i])))},{})},VU=function(t,r,n){return t.map(function(i){return"".concat(OTe(i)," ").concat(r,"ms ").concat(n)}).join(",")};function TTe(e,t){return kTe(e)||PTe(e,t)||hV(e,t)||FTe()}function FTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 510In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PTe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,l=[],A=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(A=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);A=!0);}catch(u){c=!0,i=u}finally{try{if(!A&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}function kTe(e){if(Array.isArray(e))return e}function ITe(e){return MTe(e)||QTe(e)||hV(e)||UTe()}function UTe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 511In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hV(e,t){if(e){if(typeof e=="string")return xj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xj(e,t)}}function QTe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MTe(e){if(Array.isArray(e))return xj(e)}function xj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var yy=1e-4,pV=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},mV=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},WU=function(t,r){return function(n){var i=pV(t,r);return mV(i,n)}},RTe=function(t,r){return function(n){var i=pV(t,r),a=[].concat(ITe(i.map(function(s,l){return s*l}).slice(1)),[0]);return mV(a,n)}},GU=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],s=r[2],l=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,s=1,l=1;break;case"ease":i=.25,a=.1,s=.25,l=1;break;case"ease-in":i=.42,a=0,s=1,l=1;break;case"ease-out":i=.42,a=0,s=.58,l=1;break;case"ease-in-out":i=0,a=0,s=.58,l=1;break;default:{var A=r[0].split("(");if(A[0]==="cubic-bezier"&&A[1].split(")")[0].split(",").length===4){var c=A[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),u=TTe(c,4);i=u[0],a=u[1],s=u[2],l=u[3]}}}var d=WU(i,s),f=WU(a,l),h=RTe(i,s),m=function(x){return x>1?1:x<0?0:x},p=function(x){for(var g=x>1?1:x,y=g,B=0;B<8;++B){var b=d(y)-g,C=h(y);if(Math.abs(b-g)<yy||C<yy)return f(y);y=m(y-b/C)}return f(y)};return p.isStepper=!1,p},DTe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,s=t.dt,l=s===void 0?17:s,A=function(u,d,f){var h=-(u-d)*n,m=f*a,p=f+(h-m)*l/1e3,v=f*l/1e3+u;return Math.abs(v-d)<yy&&Math.abs(p)<yy?[d,0]:[v,p]};return A.isStepper=!0,A.dt=l,A},LTe=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return GU(i);case"spring":return DTe();default:if(i.split("(")[0]==="cubic-bezier")return GU(i)}return typeof i=="function"?i:null};function Mh(e){"@babel/helpers - typeof";return Mh=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},Mh(e)}function zU(e){return KTe(e)||HTe(e)||gV(e)||$Te()}function $Te(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 512In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HTe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KTe(e){if(Array.isArray(e))return bj(e)}function qU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Cr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qU(Object(r),!0).forEach(function(n){wj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qU(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wj(e,t,r){return t=VTe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VTe(e){var t=WTe(e,"string");return Mh(t)==="symbol"?t:String(t)}function WTe(e,t){if(Mh(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mh(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GTe(e,t){return YTe(e)||qTe(e,t)||gV(e,t)||zTe()}function zTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 513In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gV(e,t){if(e){if(typeof e=="string")return bj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bj(e,t)}}function bj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qTe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,l=[],A=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(A=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);A=!0);}catch(u){c=!0,i=u}finally{try{if(!A&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}function YTe(e){if(Array.isArray(e))return e}var xy=function(t,r,n){return t+(r-t)*n},Bj=function(t){var r=t.from,n=t.to;return r!==n},XTe=function e(t,r,n){var i=Ff(function(a,s){if(Bj(s)){var l=t(s.from,s.to,s.velocity),A=GTe(l,2),c=A[0],u=A[1];return Cr(Cr({},s),{},{from:c,velocity:u})}return s},r);return n<1?Ff(function(a,s){return Bj(s)?Cr(Cr({},s),{},{velocity:xy(s.velocity,i[a].velocity,n),from:xy(s.from,i[a].from,n)}):s},r):e(t,i,n-1)};const JTe=function(e,t,r,n,i){var a=STe(e,t),s=a.reduce(function(v,x){return Cr(Cr({},v),{},wj({},x,[e[x],t[x]]))},{}),l=a.reduce(function(v,x){return Cr(Cr({},v),{},wj({},x,{from:e[x],velocity:0,to:t[x]}))},{}),A=-1,c,u,d=function(){return null},f=function(){return Ff(function(x,g){return g.from},l)},h=function(){return!Object.values(l).filter(Bj).length},m=function(x){c||(c=x);var g=x-c,y=g/r.dt;l=XTe(r,l,y),i(Cr(Cr(Cr({},e),t),f())),c=x,h()||(A=requestAnimationFrame(d))},p=function(x){u||(u=x);var g=(x-u)/n,y=Ff(function(b,C){return xy.apply(void 0,zU(C).concat([r(g)]))},s);if(i(Cr(Cr(Cr({},e),t),y)),g<1)A=requestAnimationFrame(d);else{var B=Ff(function(b,C){return xy.apply(void 0,zU(C).concat([r(1)]))},s);i(Cr(Cr(Cr({},e),t),B))}};return d=r.isStepper?m:p,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(A)}}};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)}var ZTe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function eFe(e,t){if(e==null)return{};var r=tFe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tFe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function tB(e){return aFe(e)||iFe(e)||nFe(e)||rFe()}function rFe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 514In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nFe(e,t){if(e){if(typeof e=="string")return Cj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cj(e,t)}}function iFe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aFe(e){if(Array.isArray(e))return Cj(e)}function Cj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function YU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YU(Object(r),!0).forEach(function(n){lf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YU(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lf(e,t,r){return t=vV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sFe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oFe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vV(n.key),n)}}function lFe(e,t,r){return t&&oFe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vV(e){var t=AFe(e,"string");return wu(t)==="symbol"?t:String(t)}function AFe(e,t){if(wu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(wu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cFe(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&&jj(e,t)}function jj(e,t){return jj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jj(e,t)}function uFe(e){var t=dFe();return function(){var n=wy(e),i;if(t){var a=wy(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return _j(this,i)}}function _j(e,t){if(t&&(wu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ej(e)}function Ej(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dFe(){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 wy(e){return wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wy(e)}var ja=function(e){cFe(r,e);var t=uFe(r);function r(n,i){var a;sFe(this,r),a=t.call(this,n,i);var s=a.props,l=s.isActive,A=s.attributeName,c=s.from,u=s.to,d=s.steps,f=s.children,h=s.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Ej(a)),a.changeStyle=a.changeStyle.bind(Ej(a)),!l||h<=0)return a.state={style:{}},typeof f=="function"&&(a.state={style:u}),_j(a);if(d&&d.length)a.state={style:d[0].style};else if(c){if(typeof f=="function")return a.state={style:c},_j(a);a.state={style:A?lf({},A,c):c}}else a.state={style:{}};return a}return lFe(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,s=i.canBegin;this.mounted=!0,!(!a||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,s=a.isActive,l=a.canBegin,A=a.attributeName,c=a.shouldReAnimate,u=a.to,d=a.from,f=this.state.style;if(l){if(!s){var h={style:A?lf({},A,u):u};this.state&&f&&(A&&f[A]!==u||!A&&f!==u)&&this.setState(h);return}if(!(vTe(i.to,u)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=m||c?d:i.to;if(this.state&&f){var v={style:A?lf({},A,p):p};(A&&f[A]!==p||!A&&f!==p)&&this.setState(v)}this.runAnimation(Bi(Bi({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,s=i.from,l=i.to,A=i.duration,c=i.easing,u=i.begin,d=i.onAnimationEnd,f=i.onAnimationStart,h=JTe(s,l,LTe(c),A,this.changeStyle),m=function(){a.stopJSAnimation=h()};this.manager.start([f,u,m,A,d])}},{key:"runStepAnimation",value:function(i){var a=this,s=i.steps,l=i.begin,A=i.onAnimationStart,c=s[0],u=c.style,d=c.duration,f=d===void 0?0:d,h=function(p,v,x){if(x===0)return p;var g=v.duration,y=v.easing,B=y===void 0?"ease":y,b=v.style,C=v.properties,j=v.onAnimationEnd,_=x>0?s[x-1]:v,E=C||Object.keys(b);if(typeof B=="function"||B==="spring")return[].concat(tB(p),[a.runJSAnimation.bind(a,{from:_.style,to:b,duration:g,easing:B}),g]);var I=VU(E,g,B),T=Bi(Bi(Bi({},_.style),b),{},{transition:I});return[].concat(tB(p),[T,g,j]).filter(NTe)};return this.manager.start([A].concat(tB(s.reduce(h,[u,Math.max(f,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=jTe());var a=i.begin,s=i.duration,l=i.attributeName,A=i.to,c=i.easing,u=i.onAnimationStart,d=i.onAnimationEnd,f=i.steps,h=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof c=="function"||typeof h=="function"||c==="spring"){this.runJSAnimation(i);return}if(f.length>1){this.runStepAnimation(i);return}var p=l?lf({},l,A):A,v=VU(Object.keys(p),s,c);m.start([u,a,Bi(Bi({},p),{},{transition:v}),s,d])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var s=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var A=eFe(i,ZTe),c=w.Children.count(a),u=this.state.style;if(typeof a=="function")return a(u);if(!l||c===0||s<=0)return a;var d=function(h){var m=h.props,p=m.style,v=p===void 0?{}:p,x=m.className,g=w.cloneElement(h,Bi(Bi({},A),{},{style:Bi(Bi({},v),u),className:x}));return g};return c===1?d(w.Children.only(a)):S.createElement("div",null,w.Children.map(a,function(f){return d(f)}))}}]),r}(w.PureComponent);ja.displayName="Animate";ja.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ja.propTypes={from:ct.oneOfType([ct.object,ct.string]),to:ct.oneOfType([ct.object,ct.string]),attributeName:ct.string,duration:ct.number,begin:ct.number,easing:ct.oneOfType([ct.string,ct.func]),steps:ct.arrayOf(ct.shape({duration:ct.number.isRequired,style:ct.object.isRequired,easing:ct.oneOfType([ct.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ct.func]),properties:ct.arrayOf("string"),onAnimationEnd:ct.func})),children:ct.oneOfType([ct.node,ct.func]),isActive:ct.bool,canBegin:ct.bool,onAnimationEnd:ct.func,shouldReAnimate:ct.bool,onAnimationStart:ct.func,onAnimationReStart:ct.func};function Rh(e){"@babel/helpers - typeof";return Rh=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},Rh(e)}function by(){return by=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},by.apply(this,arguments)}function fFe(e,t){return gFe(e)||mFe(e,t)||pFe(e,t)||hFe()}function hFe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 515In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pFe(e,t){if(e){if(typeof e=="string")return XU(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return XU(e,t)}}function XU(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mFe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,l=[],A=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(A=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);A=!0);}catch(u){c=!0,i=u}finally{try{if(!A&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}function gFe(e){if(Array.isArray(e))return e}function JU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ZU(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JU(Object(r),!0).forEach(function(n){vFe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JU(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vFe(e,t,r){return t=yFe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yFe(e){var t=xFe(e,"string");return Rh(t)=="symbol"?t:t+""}function xFe(e,t){if(Rh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var e2=function(t,r,n,i,a){var s=Math.min(Math.abs(n)/2,Math.abs(i)/2),l=i>=0?1:-1,A=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,u;if(s>0&&a instanceof Array){for(var d=[0,0,0,0],f=0,h=4;f<h;f++)d[f]=a[f]>s?s:a[f];u="M".concat(t,",").concat(r+l*d[0]),d[0]>0&&(u+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(c,",").concat(t+A*d[0],",").concat(r)),u+="L ".concat(t+n-A*d[1],",").concat(r),d[1]>0&&(u+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(c,`, 516 `).concat(t+n,",").concat(r+l*d[1])),u+="L ".concat(t+n,",").concat(r+i-l*d[2]),d[2]>0&&(u+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(c,`, 517 `).concat(t+n-A*d[2],",").concat(r+i)),u+="L ".concat(t+A*d[3],",").concat(r+i),d[3]>0&&(u+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(c,`, 518 `).concat(t,",").concat(r+i-l*d[3])),u+="Z"}else if(s>0&&a===+a&&a>0){var m=Math.min(s,a);u="M ".concat(t,",").concat(r+l*m,` 519 A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+A*m,",").concat(r,` 520 L `).concat(t+n-A*m,",").concat(r,` 521 A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+n,",").concat(r+l*m,` 522 L `).concat(t+n,",").concat(r+i-l*m,` 523 A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+n-A*m,",").concat(r+i,` 524 L `).concat(t+A*m,",").concat(r+i,` 525 A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t,",").concat(r+i-l*m," Z")}else u="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return u},wFe=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,s=r.y,l=r.width,A=r.height;if(Math.abs(l)>0&&Math.abs(A)>0){var c=Math.min(a,a+l),u=Math.max(a,a+l),d=Math.min(s,s+A),f=Math.max(s,s+A);return n>=c&&n<=u&&i>=d&&i<=f}return!1},bFe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},pN=function(t){var r=ZU(ZU({},bFe),t),n=w.useRef(),i=w.useState(-1),a=fFe(i,2),s=a[0],l=a[1];w.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var B=n.current.getTotalLength();B&&l(B)}catch{}},[]);var A=r.x,c=r.y,u=r.width,d=r.height,f=r.radius,h=r.className,m=r.animationEasing,p=r.animationDuration,v=r.animationBegin,x=r.isAnimationActive,g=r.isUpdateAnimationActive;if(A!==+A||c!==+c||u!==+u||d!==+d||u===0||d===0)return null;var y=Ve("recharts-rectangle",h);return g?S.createElement(ja,{canBegin:s>0,from:{width:u,height:d,x:A,y:c},to:{width:u,height:d,x:A,y:c},duration:p,animationEasing:m,isActive:g},function(B){var b=B.width,C=B.height,j=B.x,_=B.y;return S.createElement(ja,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,isActive:x,easing:m},S.createElement("path",by({},Ie(r,!0),{className:y,d:e2(j,_,b,C,f),ref:n})))}):S.createElement("path",by({},Ie(r,!0),{className:y,d:e2(A,c,u,d,f)}))},BFe=["points","className","baseLinePoints","connectNulls"];function vc(){return vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vc.apply(this,arguments)}function CFe(e,t){if(e==null)return{};var r=jFe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jFe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function t2(e){return NFe(e)||SFe(e)||EFe(e)||_Fe()}function _Fe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 526In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EFe(e,t){if(e){if(typeof e=="string")return Sj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sj(e,t)}}function SFe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NFe(e){if(Array.isArray(e))return Sj(e)}function Sj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var r2=function(t){return t&&t.x===+t.x&&t.y===+t.y},OFe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){r2(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),r2(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Pf=function(t,r){var n=OFe(t);r&&(n=[n.reduce(function(a,s){return[].concat(t2(a),t2(s))},[])]);var i=n.map(function(a){return a.reduce(function(s,l,A){return"".concat(s).concat(A===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},TFe=function(t,r,n){var i=Pf(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Pf(r.reverse(),n).slice(1))},FFe=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,s=CFe(t,BFe);if(!r||!r.length)return null;var l=Ve("recharts-polygon",n);if(i&&i.length){var A=s.stroke&&s.stroke!=="none",c=TFe(r,i,a);return S.createElement("g",{className:l},S.createElement("path",vc({},Ie(s,!0),{fill:c.slice(-1)==="Z"?s.fill:"none",stroke:"none",d:c})),A?S.createElement("path",vc({},Ie(s,!0),{fill:"none",d:Pf(r,a)})):null,A?S.createElement("path",vc({},Ie(s,!0),{fill:"none",d:Pf(i,a)})):null)}var u=Pf(r,a);return S.createElement("path",vc({},Ie(s,!0),{fill:u.slice(-1)==="Z"?s.fill:"none",className:l,d:u}))};function Nj(){return Nj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nj.apply(this,arguments)}var Kw=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,s=Ve("recharts-dot",a);return r===+r&&n===+n&&i===+i?w.createElement("circle",Nj({},Ie(t,!1),$v(t),{className:s,cx:r,cy:n,r:i})):null};function Dh(e){"@babel/helpers - typeof";return Dh=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},Dh(e)}var PFe=["x","y","top","left","width","height","className"];function Oj(){return Oj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oj.apply(this,arguments)}function n2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kFe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?n2(Object(r),!0).forEach(function(n){IFe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IFe(e,t,r){return t=UFe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UFe(e){var t=QFe(e,"string");return Dh(t)=="symbol"?t:t+""}function QFe(e,t){if(Dh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Dh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MFe(e,t){if(e==null)return{};var r=RFe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RFe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var DFe=function(t,r,n,i,a,s){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(s,",").concat(r,"h").concat(n)},LFe=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,s=t.top,l=s===void 0?0:s,A=t.left,c=A===void 0?0:A,u=t.width,d=u===void 0?0:u,f=t.height,h=f===void 0?0:f,m=t.className,p=MFe(t,PFe),v=kFe({x:n,y:a,top:l,left:c,width:d,height:h},p);return!oe(n)||!oe(a)||!oe(d)||!oe(h)||!oe(l)||!oe(c)?null:S.createElement("path",Oj({},Ie(v,!0),{className:Ve("recharts-cross",m),d:DFe(n,a,d,h,l,c)}))},$Fe=Rw,HFe=O6,KFe=ka;function VFe(e,t){return e&&e.length?$Fe(e,KFe(t),HFe):void 0}var WFe=VFe;const GFe=nt(WFe);var zFe=Rw,qFe=ka,YFe=T6;function XFe(e,t){return e&&e.length?zFe(e,qFe(t),YFe):void 0}var JFe=XFe;const ZFe=nt(JFe);var ePe=["cx","cy","angle","ticks","axisLine"],tPe=["ticks","tick","angle","tickFormatter","stroke"];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 kf(){return kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kf.apply(this,arguments)}function i2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?i2(Object(r),!0).forEach(function(n){Vw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a2(e,t){if(e==null)return{};var r=rPe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rPe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function nPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xV(n.key),n)}}function iPe(e,t,r){return t&&s2(e.prototype,t),r&&s2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function aPe(e,t,r){return t=By(t),sPe(e,yV()?Reflect.construct(t,r||[],By(e).constructor):t.apply(e,r))}function sPe(e,t){if(t&&(bu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oPe(e)}function oPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yV=function(){return!!e})()}function By(e){return By=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},By(e)}function lPe(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&&Tj(e,t)}function Tj(e,t){return Tj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tj(e,t)}function Vw(e,t,r){return t=xV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xV(e){var t=APe(e,"string");return bu(t)=="symbol"?t:t+""}function APe(e,t){if(bu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ww=function(e){function t(){return nPe(this,t),aPe(this,t,arguments)}return lPe(t,e),iPe(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,s=a.angle,l=a.cx,A=a.cy;return _t(l,A,i,s)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,s=n.angle,l=n.ticks,A=GFe(l,function(u){return u.coordinate||0}),c=ZFe(l,function(u){return u.coordinate||0});return{cx:i,cy:a,startAngle:s,endAngle:s,innerRadius:c.coordinate||0,outerRadius:A.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,s=n.angle,l=n.ticks,A=n.axisLine,c=a2(n,ePe),u=l.reduce(function(m,p){return[Math.min(m[0],p.coordinate),Math.max(m[1],p.coordinate)]},[1/0,-1/0]),d=_t(i,a,u[0],s),f=_t(i,a,u[1],s),h=rl(rl(rl({},Ie(c,!1)),{},{fill:"none"},Ie(A,!1)),{},{x1:d.x,y1:d.y,x2:f.x,y2:f.y});return S.createElement("line",kf({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,s=i.tick,l=i.angle,A=i.tickFormatter,c=i.stroke,u=a2(i,tPe),d=this.getTickTextAnchor(),f=Ie(u,!1),h=Ie(s,!1),m=a.map(function(p,v){var x=n.getTickValueCoord(p),g=rl(rl(rl(rl({textAnchor:d,transform:"rotate(".concat(90-l,", ").concat(x.x,", ").concat(x.y,")")},f),{},{stroke:"none",fill:c},h),{},{index:v},x),{},{payload:p});return S.createElement(lt,kf({className:Ve("recharts-polar-radius-axis-tick",aV(s)),key:"tick-".concat(p.coordinate)},Xl(n.props,p,v)),t.renderTickItem(s,g,A?A(p.value,v):p.value))});return S.createElement(lt,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,s=n.tick;return!i||!i.length?null:S.createElement(lt,{className:Ve("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),s&&this.renderTicks(),yr.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var s;return S.isValidElement(n)?s=S.cloneElement(n,i):Me(n)?s=n(i):s=S.createElement(Jl,kf({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),s}}])}(w.PureComponent);Vw(Ww,"displayName","PolarRadiusAxis");Vw(Ww,"axisType","radiusAxis");Vw(Ww,"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 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 hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hl.apply(this,arguments)}function o2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?o2(Object(r),!0).forEach(function(n){Gw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bV(n.key),n)}}function uPe(e,t,r){return t&&l2(e.prototype,t),r&&l2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dPe(e,t,r){return t=Cy(t),fPe(e,wV()?Reflect.construct(t,r||[],Cy(e).constructor):t.apply(e,r))}function fPe(e,t){if(t&&(Bu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hPe(e)}function hPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wV=function(){return!!e})()}function Cy(e){return Cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cy(e)}function pPe(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&&Fj(e,t)}function Fj(e,t){return Fj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fj(e,t)}function Gw(e,t,r){return t=bV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bV(e){var t=mPe(e,"string");return Bu(t)=="symbol"?t:t+""}function mPe(e,t){if(Bu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Bu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gPe=Math.PI/180,A2=1e-5,zw=function(e){function t(){return cPe(this,t),dPe(this,t,arguments)}return pPe(t,e),uPe(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,s=i.cy,l=i.radius,A=i.orientation,c=i.tickSize,u=c||8,d=_t(a,s,l,n.coordinate),f=_t(a,s,l+(A==="inner"?-1:1)*u,n.coordinate);return{x1:d.x,y1:d.y,x2:f.x,y2:f.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*gPe),s;return a>A2?s=i==="outer"?"start":"end":a<-A2?s=i==="outer"?"end":"start":s="middle",s}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,s=n.radius,l=n.axisLine,A=n.axisLineType,c=nl(nl({},Ie(this.props,!1)),{},{fill:"none"},Ie(l,!1));if(A==="circle")return S.createElement(Kw,hl({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:s}));var u=this.props.ticks,d=u.map(function(f){return _t(i,a,s,f.coordinate)});return S.createElement(FFe,hl({className:"recharts-polar-angle-axis-line"},c,{points:d}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,s=i.tick,l=i.tickLine,A=i.tickFormatter,c=i.stroke,u=Ie(this.props,!1),d=Ie(s,!1),f=nl(nl({},u),{},{fill:"none"},Ie(l,!1)),h=a.map(function(m,p){var v=n.getTickLineCoord(m),x=n.getTickTextAnchor(m),g=nl(nl(nl({textAnchor:x},u),{},{stroke:"none",fill:c},d),{},{index:p,payload:m,x:v.x2,y:v.y2});return S.createElement(lt,hl({className:Ve("recharts-polar-angle-axis-tick",aV(s)),key:"tick-".concat(m.coordinate)},Xl(n.props,m,p)),l&&S.createElement("line",hl({className:"recharts-polar-angle-axis-tick-line"},f,v)),s&&t.renderTickItem(s,g,A?A(m.value,p):m.value))});return S.createElement(lt,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,s=n.axisLine;return a<=0||!i||!i.length?null:S.createElement(lt,{className:Ve("recharts-polar-angle-axis",this.props.className)},s&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var s;return S.isValidElement(n)?s=S.cloneElement(n,i):Me(n)?s=n(i):s=S.createElement(Jl,hl({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),s}}])}(w.PureComponent);Gw(zw,"displayName","PolarAngleAxis");Gw(zw,"axisType","angleAxis");Gw(zw,"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 vPe=_5,yPe=vPe(Object.getPrototypeOf,Object),xPe=yPe,wPe=_s,bPe=xPe,BPe=Es,CPe="[object Object]",jPe=Function.prototype,_Pe=Object.prototype,BV=jPe.toString,EPe=_Pe.hasOwnProperty,SPe=BV.call(Object);function NPe(e){if(!BPe(e)||wPe(e)!=CPe)return!1;var t=bPe(e);if(t===null)return!0;var r=EPe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&BV.call(r)==SPe}var OPe=NPe;const TPe=nt(OPe);var FPe=_s,PPe=Es,kPe="[object Boolean]";function IPe(e){return e===!0||e===!1||PPe(e)&&FPe(e)==kPe}var UPe=IPe;const QPe=nt(UPe);function Lh(e){"@babel/helpers - typeof";return Lh=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},Lh(e)}function jy(){return jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jy.apply(this,arguments)}function MPe(e,t){return $Pe(e)||LPe(e,t)||DPe(e,t)||RPe()}function RPe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 527In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DPe(e,t){if(e){if(typeof e=="string")return c2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c2(e,t)}}function c2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function LPe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,l=[],A=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(A=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);A=!0);}catch(u){c=!0,i=u}finally{try{if(!A&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}function $Pe(e){if(Array.isArray(e))return e}function u2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function d2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u2(Object(r),!0).forEach(function(n){HPe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HPe(e,t,r){return t=KPe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KPe(e){var t=VPe(e,"string");return Lh(t)=="symbol"?t:t+""}function VPe(e,t){if(Lh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Lh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f2=function(t,r,n,i,a){var s=n-i,l;return l="M ".concat(t,",").concat(r),l+="L ".concat(t+n,",").concat(r),l+="L ".concat(t+n-s/2,",").concat(r+a),l+="L ".concat(t+n-s/2-i,",").concat(r+a),l+="L ".concat(t,",").concat(r," Z"),l},WPe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},GPe=function(t){var r=d2(d2({},WPe),t),n=w.useRef(),i=w.useState(-1),a=MPe(i,2),s=a[0],l=a[1];w.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var y=n.current.getTotalLength();y&&l(y)}catch{}},[]);var A=r.x,c=r.y,u=r.upperWidth,d=r.lowerWidth,f=r.height,h=r.className,m=r.animationEasing,p=r.animationDuration,v=r.animationBegin,x=r.isUpdateAnimationActive;if(A!==+A||c!==+c||u!==+u||d!==+d||f!==+f||u===0&&d===0||f===0)return null;var g=Ve("recharts-trapezoid",h);return x?S.createElement(ja,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:f,x:A,y:c},to:{upperWidth:u,lowerWidth:d,height:f,x:A,y:c},duration:p,animationEasing:m,isActive:x},function(y){var B=y.upperWidth,b=y.lowerWidth,C=y.height,j=y.x,_=y.y;return S.createElement(ja,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,easing:m},S.createElement("path",jy({},Ie(r,!0),{className:g,d:f2(j,_,B,b,C),ref:n})))}):S.createElement("g",null,S.createElement("path",jy({},Ie(r,!0),{className:g,d:f2(A,c,u,d,f)})))},zPe=["option","shapeType","propTransformer","activeClassName","isActive"];function $h(e){"@babel/helpers - typeof";return $h=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},$h(e)}function qPe(e,t){if(e==null)return{};var r=YPe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function YPe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function h2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _y(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?h2(Object(r),!0).forEach(function(n){XPe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XPe(e,t,r){return t=JPe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JPe(e){var t=ZPe(e,"string");return $h(t)=="symbol"?t:t+""}function ZPe(e,t){if($h(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($h(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eke(e,t){return _y(_y({},t),e)}function tke(e,t){return e==="symbols"}function p2(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return S.createElement(pN,r);case"trapezoid":return S.createElement(GPe,r);case"sector":return S.createElement(lV,r);case"symbols":if(tke(t))return S.createElement(kS,r);break;default:return null}}function rke(e){return w.isValidElement(e)?e.props:e}function CV(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?eke:n,a=e.activeClassName,s=a===void 0?"recharts-active-shape":a,l=e.isActive,A=qPe(e,zPe),c;if(w.isValidElement(t))c=w.cloneElement(t,_y(_y({},A),rke(t)));else if(Me(t))c=t(A);else if(TPe(t)&&!QPe(t)){var u=i(t,A);c=S.createElement(p2,{shapeType:r,elementProps:u})}else{var d=A;c=S.createElement(p2,{shapeType:r,elementProps:d})}return l?S.createElement(lt,{className:s},c):c}function qw(e,t){return t!=null&&"trapezoids"in e.props}function Yw(e,t){return t!=null&&"sectors"in e.props}function Hh(e,t){return t!=null&&"points"in e.props}function nke(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function ike(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function ake(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function ske(e,t){var r;return qw(e,t)?r=nke:Yw(e,t)?r=ike:Hh(e,t)&&(r=ake),r}function oke(e,t){var r;return qw(e,t)?r="trapezoids":Yw(e,t)?r="sectors":Hh(e,t)&&(r="points"),r}function lke(e,t){if(qw(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}if(Yw(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}return Hh(e,t)?t.payload:{}}function Ake(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=oke(r,t),a=lke(r,t),s=n.filter(function(A,c){var u=Pp(a,A),d=r.props[i].filter(function(m){var p=ske(r,t);return p(m,t)}),f=r.props[i].indexOf(d[d.length-1]),h=c===f;return u&&h}),l=n.indexOf(s[s.length-1]);return l}var Og;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 yc(){return yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yc.apply(this,arguments)}function m2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m2(Object(r),!0).forEach(function(n){ni(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_V(n.key),n)}}function uke(e,t,r){return t&&g2(e.prototype,t),r&&g2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dke(e,t,r){return t=Ey(t),fke(e,jV()?Reflect.construct(t,r||[],Ey(e).constructor):t.apply(e,r))}function fke(e,t){if(t&&(Cu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hke(e)}function hke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jV=function(){return!!e})()}function Ey(e){return Ey=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ey(e)}function pke(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&&Pj(e,t)}function Pj(e,t){return Pj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pj(e,t)}function ni(e,t,r){return t=_V(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _V(e){var t=mke(e,"string");return Cu(t)=="symbol"?t:t+""}function mke(e,t){if(Cu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Cu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ns=function(e){function t(r){var n;return cke(this,t),n=dke(this,t,[r]),ni(n,"pieRef",null),ni(n,"sectorRefs",[]),ni(n,"id",id("recharts-pie-")),ni(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Me(i)&&i()}),ni(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Me(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return pke(t,e),uke(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,s=a.label,l=a.labelLine,A=a.dataKey,c=a.valueKey,u=Ie(this.props,!1),d=Ie(s,!1),f=Ie(l,!1),h=s&&s.offsetRadius||20,m=n.map(function(p,v){var x=(p.startAngle+p.endAngle)/2,g=_t(p.cx,p.cy,p.outerRadius+h,x),y=bt(bt(bt(bt({},u),p),{},{stroke:"none"},d),{},{index:v,textAnchor:t.getTextAnchor(g.x,p.cx)},g),B=bt(bt(bt(bt({},u),p),{},{fill:"none",stroke:p.fill},f),{},{index:v,points:[_t(p.cx,p.cy,p.outerRadius,x),g]}),b=A;return $e(A)&&$e(c)?b="value":$e(A)&&(b=c),S.createElement(lt,{key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(v)},l&&t.renderLabelLineItem(l,B,"line"),t.renderLabelItem(s,y,ur(p,b)))});return S.createElement(lt,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,s=a.activeShape,l=a.blendStroke,A=a.inactiveShape;return n.map(function(c,u){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&n.length!==1)return null;var d=i.isActiveIndex(u),f=A&&i.hasActiveIndex()?A:null,h=d?s:f,m=bt(bt({},c),{},{stroke:l?c.fill:c.stroke,tabIndex:-1});return S.createElement(lt,yc({ref:function(v){v&&!i.sectorRefs.includes(v)&&i.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},Xl(i.props,c,u),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(u)}),S.createElement(CV,yc({option:h,isActive:d,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,s=i.isAnimationActive,l=i.animationBegin,A=i.animationDuration,c=i.animationEasing,u=i.animationId,d=this.state,f=d.prevSectors,h=d.prevIsAnimationActive;return S.createElement(ja,{begin:l,duration:A,isActive:s,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var p=m.t,v=[],x=a&&a[0],g=x.startAngle;return a.forEach(function(y,B){var b=f&&f[B],C=B>0?Rn(y,"paddingAngle",0):0;if(b){var j=Fn(b.endAngle-b.startAngle,y.endAngle-y.startAngle),_=bt(bt({},y),{},{startAngle:g+C,endAngle:g+j(p)+C});v.push(_),g=_.endAngle}else{var E=y.endAngle,I=y.startAngle,T=Fn(0,E-I),k=T(p),N=bt(bt({},y),{},{startAngle:g+C,endAngle:g+k+C});v.push(N),g=N.endAngle}}),S.createElement(lt,null,n.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var s=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,s=this.state.prevSectors;return a&&i&&i.length&&(!s||!Pp(s,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,s=i.sectors,l=i.className,A=i.label,c=i.cx,u=i.cy,d=i.innerRadius,f=i.outerRadius,h=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!s||!s.length||!oe(c)||!oe(u)||!oe(d)||!oe(f))return null;var p=Ve("recharts-pie",l);return S.createElement(lt,{tabIndex:this.props.rootTabIndex,className:p,ref:function(x){n.pieRef=x}},this.renderSectors(),A&&this.renderLabels(s),yr.renderCallByParent(this.props,null,!1),(!h||m)&&As.renderCallByParent(this.props,s,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);if(Me(n))return n(i);var s=Ve("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return S.createElement(vy,yc({},i,{key:a,type:"linear",className:s}))}},{key:"renderLabelItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);var s=a;if(Me(n)&&(s=n(i),S.isValidElement(s)))return s;var l=Ve("recharts-pie-label-text",typeof n!="boolean"&&!Me(n)?n.className:"");return S.createElement(Jl,yc({},i,{alignmentBaseline:"middle",className:l}),s)}}])}(w.PureComponent);Og=Ns;ni(Ns,"displayName","Pie");ni(Ns,"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:!ya.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});ni(Ns,"parseDeltaAngle",function(e,t){var r=Yr(t-e),n=Math.min(Math.abs(t-e),360);return r*n});ni(Ns,"getRealPieData",function(e){var t=e.data,r=e.children,n=Ie(e,!1),i=Dn(r,Sp);return t&&t.length?t.map(function(a,s){return bt(bt(bt({payload:a},n),a),i&&i[s]&&i[s].props)}):i&&i.length?i.map(function(a){return bt(bt({},n),a.props)}):[]});ni(Ns,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,s=iV(i,a),l=n+Xr(e.cx,i,i/2),A=r+Xr(e.cy,a,a/2),c=Xr(e.innerRadius,s,0),u=Xr(e.outerRadius,s,s*.8),d=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:l,cy:A,innerRadius:c,outerRadius:u,maxRadius:d}});ni(Ns,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?bt(bt({},t.type.defaultProps),t.props):t.props,i=Og.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,s=n.startAngle,l=n.endAngle,A=n.paddingAngle,c=n.dataKey,u=n.nameKey,d=n.valueKey,f=n.tooltipType,h=Math.abs(n.minAngle),m=Og.parseCoordinateOfPie(n,r),p=Og.parseDeltaAngle(s,l),v=Math.abs(p),x=c;$e(c)&&$e(d)?(Hi(!1,`Use "dataKey" to specify the value of pie,
528 the props "valueKey" will be deprecated in 1.1.0`),x="value"):$e(c)&&(Hi(!1,`Use "dataKey" to specify the value of pie, 529 the props "valueKey" will be deprecated in 1.1.0`),x=d);var g=i.filter(function(_){return ur(_,x,0)!==0}).length,y=(v>=360?g:g-1)*A,B=v-g*h-y,b=i.reduce(function(_,E){var I=ur(E,x,0);return _+(oe(I)?I:0)},0),C;if(b>0){var j;C=i.map(function(_,E){var I=ur(_,x,0),T=ur(_,u,E),k=(oe(I)?I:0)/b,N;E?N=j.endAngle+Yr(p)*A*(I!==0?1:0):N=s;var F=N+Yr(p)*((I!==0?h:0)+k*B),M=(N+F)/2,O=(m.innerRadius+m.outerRadius)/2,U=[{name:T,value:I,payload:_,dataKey:x,type:f}],P=_t(m.cx,m.cy,O,M);return j=bt(bt(bt({percent:k,cornerRadius:a,name:T,tooltipPayload:U,midAngle:M,middleRadius:O,tooltipPosition:P},_),m),{},{value:ur(_,x),startAngle:N,endAngle:F,payload:_,paddingAngle:Yr(p)*A}),j})}return bt(bt({},m),{},{sectors:C,data:i})});var gke=Math.ceil,vke=Math.max;function yke(e,t,r,n){for(var i=-1,a=vke(gke((t-e)/(r||1)),0),s=Array(a);a--;)s[n?a:++i]=e,e+=r;return s}var xke=yke,wke=V5,v2=1/0,bke=17976931348623157e292;function Bke(e){if(!e)return e===0?e:0;if(e=wke(e),e===v2||e===-v2){var t=e<0?-1:1;return t*bke}return e===e?e:0}var EV=Bke,Cke=xke,jke=Fw,rB=EV;function _ke(e){return function(t,r,n){return n&&typeof n!="number"&&jke(t,r,n)&&(r=n=void 0),t=rB(t),r===void 0?(r=t,t=0):r=rB(r),n=n===void 0?t<r?1:-1:rB(n),Cke(t,r,n,e)}}var Eke=_ke,Ske=Eke,Nke=Ske(),Oke=Nke;const Sy=nt(Oke);function Kh(e){"@babel/helpers - typeof";return Kh=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},Kh(e)}function y2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function x2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y2(Object(r),!0).forEach(function(n){SV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SV(e,t,r){return t=Tke(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tke(e){var t=Fke(e,"string");return Kh(t)=="symbol"?t:t+""}function Fke(e,t){if(Kh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Kh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pke=["Webkit","Moz","O","ms"],kke=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=Pke.reduce(function(a,s){return x2(x2({},a),{},SV({},s+n,r))},{});return i[t]=r,i};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 Ny(){return Ny=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ny.apply(this,arguments)}function w2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nB(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w2(Object(r),!0).forEach(function(n){En(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ike(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,OV(n.key),n)}}function Uke(e,t,r){return t&&b2(e.prototype,t),r&&b2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qke(e,t,r){return t=Oy(t),Mke(e,NV()?Reflect.construct(t,r||[],Oy(e).constructor):t.apply(e,r))}function Mke(e,t){if(t&&(ju(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rke(e)}function Rke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NV=function(){return!!e})()}
vendor: 10,306 bytes, line 529
529function Oy(e){return Oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oy(e)}function Dke(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&&kj(e,t)}function kj(e,t){return kj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kj(e,t)}function En(e,t,r){return t=OV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OV(e){var t=Lke(e,"string");return ju(t)=="symbol"?t:t+""}function Lke(e,t){if(ju(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ju(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $ke=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,s=t.width,l=t.travellerWidth;if(!r||!r.length)return{};var A=r.length,c=Of().domain(Sy(0,A)).range([a,a+s-l]),u=c.domain().map(function(d){return c(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:u}},B2=function(t){return t.changedTouches&&!!t.changedTouches.length},_u=function(e){function t(r){var n;return Ike(this,t),n=Qke(this,t,[r]),En(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),En(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),En(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,s=i.onDragEnd,l=i.startIndex;s==null||s({endIndex:a,startIndex:l})}),n.detachDragEndListener()}),En(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),En(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),En(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),En(n,"handleSlideDragStart",function(i){var a=B2(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return Dke(t,e),Uke(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,s=this.state.scaleValues,l=this.props,A=l.gap,c=l.data,u=c.length-1,d=Math.min(i,a),f=Math.max(i,a),h=t.getIndexInRange(s,d),m=t.getIndexInRange(s,f);return{startIndex:h-h%A,endIndex:m===u?u:m-m%A}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,s=i.tickFormatter,l=i.dataKey,A=ur(a[n],l,n);return Me(s)?s(A,n):A}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,s=i.startX,l=i.endX,A=this.props,c=A.x,u=A.width,d=A.travellerWidth,f=A.startIndex,h=A.endIndex,m=A.onChange,p=n.pageX-a;p>0?p=Math.min(p,c+u-d-l,c+u-d-s):p<0&&(p=Math.max(p,c-s,c-l));var v=this.getIndex({startX:s+p,endX:l+p});(v.startIndex!==f||v.endIndex!==h)&&m&&m(v),this.setState({startX:s+p,endX:l+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=B2(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,s=i.movingTravellerId,l=i.endX,A=i.startX,c=this.state[s],u=this.props,d=u.x,f=u.width,h=u.travellerWidth,m=u.onChange,p=u.gap,v=u.data,x={startX:this.state.startX,endX:this.state.endX},g=n.pageX-a;g>0?g=Math.min(g,d+f-h-c):g<0&&(g=Math.max(g,d-c)),x[s]=c+g;var y=this.getIndex(x),B=y.startIndex,b=y.endIndex,C=function(){var _=v.length-1;return s==="startX"&&(l>A?B%p===0:b%p===0)||l<A&&b===_||s==="endX"&&(l>A?b%p===0:B%p===0)||l>A&&b===_};this.setState(En(En({},s,c+g),"brushMoveStartX",n.pageX),function(){m&&C()&&m(y)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,s=this.state,l=s.scaleValues,A=s.startX,c=s.endX,u=this.state[i],d=l.indexOf(u);if(d!==-1){var f=d+n;if(!(f===-1||f>=l.length)){var h=l[f];i==="startX"&&h>=c||i==="endX"&&h<=A||this.setState(En({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,s=n.width,l=n.height,A=n.fill,c=n.stroke;return S.createElement("rect",{stroke:c,fill:A,x:i,y:a,width:s,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,s=n.width,l=n.height,A=n.data,c=n.children,u=n.padding,d=w.Children.only(c);return d?S.cloneElement(d,{x:i,y:a,width:s,height:l,margin:u,compact:!0,data:A}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,s,l=this,A=this.props,c=A.y,u=A.travellerWidth,d=A.height,f=A.traveller,h=A.ariaLabel,m=A.data,p=A.startIndex,v=A.endIndex,x=Math.max(n,this.props.x),g=nB(nB({},Ie(this.props,!1)),{},{x,y:c,width:u,height:d}),y=h||"Min value: ".concat((a=m[p])===null||a===void 0?void 0:a.name,", Max value: ").concat((s=m[v])===null||s===void 0?void 0:s.name);return S.createElement(lt,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(b){["ArrowLeft","ArrowRight"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),l.handleTravellerMoveKeyboard(b.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,g))}},{key:"renderSlide",value:function(n,i){var a=this.props,s=a.y,l=a.height,A=a.stroke,c=a.travellerWidth,u=Math.min(n,i)+c,d=Math.max(Math.abs(i-n)-c,0);return S.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:A,fillOpacity:.2,x:u,y:s,width:d,height:l})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,s=n.y,l=n.height,A=n.travellerWidth,c=n.stroke,u=this.state,d=u.startX,f=u.endX,h=5,m={pointerEvents:"none",fill:c};return S.createElement(lt,{className:"recharts-brush-texts"},S.createElement(Jl,Ny({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,f)-h,y:s+l/2},m),this.getTextOfTick(i)),S.createElement(Jl,Ny({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,f)+A+h,y:s+l/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,s=n.children,l=n.x,A=n.y,c=n.width,u=n.height,d=n.alwaysShowText,f=this.state,h=f.startX,m=f.endX,p=f.isTextActive,v=f.isSlideMoving,x=f.isTravellerMoving,g=f.isTravellerFocused;if(!i||!i.length||!oe(l)||!oe(A)||!oe(c)||!oe(u)||c<=0||u<=0)return null;var y=Ve("recharts-brush",a),B=S.Children.count(s)===1,b=kke("userSelect","none");return S.createElement(lt,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),B&&this.renderPanorama(),this.renderSlide(h,m),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(m,"endX"),(p||v||x||g||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,s=n.width,l=n.height,A=n.stroke,c=Math.floor(a+l/2)-1;return S.createElement(S.Fragment,null,S.createElement("rect",{x:i,y:a,width:s,height:l,fill:A,stroke:"none"}),S.createElement("line",{x1:i+1,y1:c,x2:i+s-1,y2:c,fill:"none",stroke:"#fff"}),S.createElement("line",{x1:i+1,y1:c+2,x2:i+s-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return S.isValidElement(n)?a=S.cloneElement(n,i):Me(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,s=n.width,l=n.x,A=n.travellerWidth,c=n.updateId,u=n.startIndex,d=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return nB({prevData:a,prevTravellerWidth:A,prevUpdateId:c,prevX:l,prevWidth:s},a&&a.length?$ke({data:a,width:s,x:l,travellerWidth:A,startIndex:u,endIndex:d}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||l!==i.prevX||A!==i.prevTravellerWidth)){i.scale.range([l,l+s-A]);var f=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:A,prevUpdateId:c,prevX:l,prevWidth:s,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:f}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,s=0,l=a-1;l-s>1;){var A=Math.floor((s+l)/2);n[A]>i?l=A:s=A}return i>=n[l]?l:s}}])}(w.PureComponent);En(_u,"displayName","Brush");En(_u,"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 Hke=LS;function Kke(e,t){var r;return Hke(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var Vke=Kke,Wke=v5,Gke=ka,zke=Vke,qke=Bn,Yke=Fw;function Xke(e,t,r){var n=qke(e)?Wke:zke;return r&&Yke(e,t,r)&&(t=void 0),n(e,Gke(t))}var Jke=Xke;const Zke=nt(Jke);var wa=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},C2=D5;
529function eIe(e,t,r){t=="__proto__"&&C2?C2(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var tIe=eIe,rIe=tIe,nIe=M5,iIe=ka;function aIe(e,t){var r={};return t=iIe(t),nIe(e,function(n,i,a){rIe(r,i,t(n,i,a))}),r}var sIe=aIe;const oIe=nt(sIe);function lIe(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var AIe=lIe,cIe=LS;function uIe(e,t){var r=!0;return cIe(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var dIe=uIe,fIe=AIe,hIe=dIe,pIe=ka,mIe=Bn,gIe=Fw;function vIe(e,t,r){var n=mIe(e)?fIe:hIe;return r&&gIe(e,t,r)&&(t=void 0),n(e,pIe(t))}var yIe=vIe;const TV=nt(yIe);var xIe=["x","y"];function Vh(e){"@babel/helpers - typeof";return Vh=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},Vh(e)}function Ij(){return Ij=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ij.apply(this,arguments)}function j2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?j2(Object(r),!0).forEach(function(n){wIe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wIe(e,t,r){return t=bIe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bIe(e){var t=BIe(e,"string");return Vh(t)=="symbol"?t:t+""}function BIe(e,t){if(Vh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Vh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CIe(e,t){if(e==null)return{};var r=jIe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jIe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _Ie(e,t){var r=e.x,n=e.y,i=CIe(e,xIe),a="".concat(r),s=parseInt(a,10),l="".concat(n),A=parseInt(l,10),c="".concat(t.height||i.height),u=parseInt(c,10),d="".concat(t.width||i.width),f=parseInt(d,10);return Hd(Hd(Hd(Hd(Hd({},t),i),s?{x:s}:{}),A?{y:A}:{}),{},{height:u,width:f,name:t.name,radius:t.radius})}function _2(e){return S.createElement(CV,Ij({shapeType:"rectangle",propTransformer:_Ie,activeClassName:"recharts-active-bar"},e))}var EIe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=oe(n)||Jpe(n);return a?t(n,i):(a||eA(),r)}},SIe=["value","background"],FV;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)}function NIe(e,t){if(e==null)return{};var r=OIe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OIe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ty(){return Ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ty.apply(this,arguments)}function E2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 112,370 bytes, lines 529-540
529t%2?E2(Object(r),!0).forEach(function(n){fo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TIe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kV(n.key),n)}}function FIe(e,t,r){return t&&S2(e.prototype,t),r&&S2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function PIe(e,t,r){return t=Fy(t),kIe(e,PV()?Reflect.construct(t,r||[],Fy(e).constructor):t.apply(e,r))}function kIe(e,t){if(t&&(Eu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IIe(e)}function IIe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PV=function(){return!!e})()}function Fy(e){return Fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fy(e)}function UIe(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&&Uj(e,t)}function Uj(e,t){return Uj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Uj(e,t)}function fo(e,t,r){return t=kV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kV(e){var t=QIe(e,"string");return Eu(t)=="symbol"?t:t+""}function QIe(e,t){if(Eu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Eu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zo=function(e){function t(){var r;TIe(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=PIe(this,t,[].concat(i)),fo(r,"state",{isAnimationFinished:!1}),fo(r,"id",id("recharts-bar-")),fo(r,"handleAnimationEnd",function(){var s=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),s&&s()}),fo(r,"handleAnimationStart",function(){var s=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),s&&s()}),r}return UIe(t,e),FIe(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,s=a.shape,l=a.dataKey,A=a.activeIndex,c=a.activeBar,u=Ie(this.props,!1);return n&&n.map(function(d,f){var h=f===A,m=h?c:s,p=Jt(Jt(Jt({},u),d),{},{isActive:h,option:m,index:f,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return S.createElement(lt,Ty({className:"recharts-bar-rectangle"},Xl(i.props,d,f),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value,"-").concat(f)}),S.createElement(_2,p))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,s=i.layout,l=i.isAnimationActive,A=i.animationBegin,c=i.animationDuration,u=i.animationEasing,d=i.animationId,f=this.state.prevData;return S.createElement(ja,{begin:A,duration:c,isActive:l,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var m=h.t,p=a.map(function(v,x){var g=f&&f[x];if(g){var y=Fn(g.x,v.x),B=Fn(g.y,v.y),b=Fn(g.width,v.width),C=Fn(g.height,v.height);return Jt(Jt({},v),{},{x:y(m),y:B(m),width:b(m),height:C(m)})}if(s==="horizontal"){var j=Fn(0,v.height),_=j(m);return Jt(Jt({},v),{},{y:v.y+v.height-_,height:_})}var E=Fn(0,v.width),I=E(m);return Jt(Jt({},v),{},{width:I})});return S.createElement(lt,null,n.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,s=this.state.prevData;return a&&i&&i.length&&(!s||!Pp(s,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,s=i.dataKey,l=i.activeIndex,A=Ie(this.props.background,!1);return a.map(function(c,u){c.value;var d=c.background,f=NIe(c,SIe);if(!d)return null;var h=Jt(Jt(Jt(Jt(Jt({},f),{},{fill:"#eee"},d),A),Xl(n.props,c,u)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:s,index:u,className:"recharts-bar-background-rectangle"});return S.createElement(_2,Ty({key:"background-bar-".concat(u),option:n.props.background,isActive:u===l},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,s=a.data,l=a.xAxis,A=a.yAxis,c=a.layout,u=a.children,d=Dn(u,kp);if(!d)return null;var f=c==="vertical"?s[0].height/2:s[0].width/2,h=function(v,x){var g=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:g,errorVal:ur(v,x)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(lt,m,d.map(function(p){return S.cloneElement(p,{key:"error-bar-".concat(i,"-").concat(p.props.dataKey),data:s,xAxis:l,yAxis:A,layout:c,offset:f,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,s=n.className,l=n.xAxis,A=n.yAxis,c=n.left,u=n.top,d=n.width,f=n.height,h=n.isAnimationActive,m=n.background,p=n.id;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,x=Ve("recharts-bar",s),g=l&&l.allowDataOverflow,y=A&&A.allowDataOverflow,B=g||y,b=$e(p)?this.id:p;return S.createElement(lt,{className:x},g||y?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(b)},S.createElement("rect",{x:g?c:c-d/2,y:y?u:u-f/2,width:g?d:d*2,height:y?f:f*2}))):null,S.createElement(lt,{className:"recharts-bar-rectangles",clipPath:B?"url(#clipPath-".concat(b,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(B,b),(!h||v)&&As.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}(w.PureComponent);FV=zo;fo(zo,"displayName","Bar");fo(zo,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ya.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});fo(zo,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,s=e.yAxis,l=e.xAxisTicks,A=e.yAxisTicks,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,h=gNe(n,r);if(!h)return null;var m=t.layout,p=r.type.defaultProps,v=p!==void 0?Jt(Jt({},p),r.props):r.props,x=v.dataKey,g=v.children,y=v.minPointSize,B=m==="horizontal"?s:a,b=c?B.scale.domain():null,C=CNe({numericAxis:B}),j=Dn(g,Sp),_=d.map(function(E,I){var T,k,N,F,M,O;c?T=vNe(c[u+I],b):(T=ur(E,x),Array.isArray(T)||(T=[C,T]));var U=EIe(y,FV.defaultProps.minPointSize)(T[1],I);if(m==="horizontal"){var P,Q=[s.scale(T[0]),s.scale(T[1])],$=Q[0],G=Q[1];k=gU({axis:a,ticks:l,bandSize:i,offset:h.offset,entry:E,index:I}),N=(P=G??$)!==null&&P!==void 0?P:void 0,F=h.size;var K=$-G;if(M=Number.isNaN(K)?0:K,O={x:k,y:s.y,width:F,height:s.height},Math.abs(U)>0&&Math.abs(M)<Math.abs(U)){var X=Yr(M||U)*(Math.abs(U)-Math.abs(M));N-=X,M+=X}}else{var ae=[a.scale(T[0]),a.scale(T[1])],ve=ae[0],Fe=ae[1];if(k=ve,N=gU({axis:s,ticks:A,bandSize:i,offset:h.offset,entry:E,index:I}),F=Fe-ve,M=h.size,O={x:a.x,y:N,width:a.width,height:M},Math.abs(U)>0&&Math.abs(F)<Math.abs(U)){var L=Yr(F||U)*(Math.abs(U)-Math.abs(F));F+=L}}return Jt(Jt(Jt({},E),{},{x:k,y:N,width:F,height:M,value:c?T:T[1],payload:E,background:O},j&&j[I]&&j[I].props),{},{tooltipPayload:[rV(r,E)],tooltipPosition:{x:k+F/2,y:N+M/2}})});return Jt({data:_,layout:m},f)});function Wh(e){"@babel/helpers - typeof";return Wh=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},Wh(e)}function MIe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,IV(n.key),n)}}function RIe(e,t,r){return t&&N2(e.prototype,t),r&&N2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function O2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O2(Object(r),!0).forEach(function(n){Xw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xw(e,t,r){return t=IV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IV(e){var t=DIe(e,"string");return Wh(t)=="symbol"?t:t+""}function DIe(e,t){if(Wh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UV=function(t,r,n,i,a){var s=t.width,l=t.height,A=t.layout,c=t.children,u=Object.keys(r),d={left:n.left,leftMirror:n.left,right:s-n.right,rightMirror:s-n.right,top:n.top,topMirror:n.top,bottom:l-n.bottom,bottomMirror:l-n.bottom},f=!!Nn(c,zo);return u.reduce(function(h,m){var p=r[m],v=p.orientation,x=p.domain,g=p.padding,y=g===void 0?{}:g,B=p.mirror,b=p.reversed,C="".concat(v).concat(B?"Mirror":""),j,_,E,I,T;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var k=x[1]-x[0],N=1/0,F=p.categoricalDomain.sort(tme);if(F.forEach(function(ae,ve){ve>0&&(N=Math.min((ae||0)-(F[ve-1]||0),N))}),Number.isFinite(N)){var M=N/k,O=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(j=M*O/2),p.padding==="no-gap"){var U=Xr(t.barCategoryGap,M*O),P=M*O/2;j=P-U-(P-U)/O*U}}}i==="xAxis"?_=[n.left+(y.left||0)+(j||0),n.left+n.width-(y.right||0)-(j||0)]:i==="yAxis"?_=A==="horizontal"?[n.top+n.height-(y.bottom||0),n.top+(y.top||0)]:[n.top+(y.top||0)+(j||0),n.top+n.height-(y.bottom||0)-(j||0)]:_=p.range,b&&(_=[_[1],_[0]]);var Q=J6(p,a,f),$=Q.scale,G=Q.realScaleType;$.domain(x).range(_),Z6($);var K=eV($,Pi(Pi({},p),{},{realScaleType:G}));i==="xAxis"?(T=v==="top"&&!B||v==="bottom"&&B,E=n.left,I=d[C]-T*p.height):i==="yAxis"&&(T=v==="left"&&!B||v==="right"&&B,E=d[C]-T*p.width,I=n.top);var X=Pi(Pi(Pi({},p),K),{},{realScaleType:G,x:E,y:I,scale:$,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return X.bandSize=py(X,K),!p.hide&&i==="xAxis"?d[C]+=(T?-1:1)*X.height:p.hide||(d[C]+=(T?-1:1)*X.width),Pi(Pi({},h),{},Xw({},m,X))},{})},QV=function(t,r){var n=t.x,i=t.y,a=r.x,s=r.y;return{x:Math.min(n,a),y:Math.min(i,s),width:Math.abs(a-n),height:Math.abs(s-i)}},LIe=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return QV({x:r,y:n},{x:i,y:a})},MV=function(){function e(t){MIe(this,e),this.scale=t}return RIe(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(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(i){var A=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+A}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();Xw(MV,"EPS",1e-4);var mN=function(t){var r=Object.keys(t).reduce(function(n,i){return Pi(Pi({},n),{},Xw({},i,MV.create(t[i])))},{});return Pi(Pi({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=a.bandAware,l=a.position;return oIe(i,function(A,c){return r[c].apply(A,{bandAware:s,position:l})})},isInRange:function(i){return TV(i,function(a,s){return r[s].isInRange(a)})}})};function $Ie(e){return(e%180+180)%180}var HIe=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=$Ie(i),s=a*Math.PI/180,l=Math.atan(n/r),A=s>l&&s<Math.PI-l?n/Math.sin(s):r/Math.cos(s);return Math.abs(A)},KIe=ka,VIe=_p,WIe=Ow;function GIe(e){return function(t,r,n){var i=Object(t);if(!VIe(t)){var a=KIe(r);t=WIe(t),r=function(l){return a(i[l],l,i)}}var s=e(t,r,n);return s>-1?i[a?t[s]:s]:void 0}}var zIe=GIe,qIe=EV;function YIe(e){var t=qIe(e),r=t%1;return t===t?r?t-r:t:0}var XIe=YIe,JIe=F5,ZIe=ka,eUe=XIe,tUe=Math.max;function rUe(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:eUe(r);return i<0&&(i=tUe(n+i,0)),JIe(e,ZIe(t),i)}var nUe=rUe,iUe=zIe,aUe=nUe,sUe=iUe(aUe),oUe=sUe;const lUe=nt(oUe);var AUe=rpe(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("")}),gN=w.createContext(void 0),vN=w.createContext(void 0),RV=w.createContext(void 0),DV=w.createContext({}),LV=w.createContext(void 0),$V=w.createContext(0),HV=w.createContext(0),T2=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,s=t.clipPathId,l=t.children,A=t.width,c=t.height,u=AUe(a);return S.createElement(gN.Provider,{value:n},S.createElement(vN.Provider,{value:i},S.createElement(DV.Provider,{value:a},S.createElement(RV.Provider,{value:u},S.createElement(LV.Provider,{value:s},S.createElement($V.Provider,{value:c},S.createElement(HV.Provider,{value:A},l)))))))},cUe=function(){return w.useContext(LV)},KV=function(t){var r=w.useContext(gN);r==null&&eA();var n=r[t];return n==null&&eA(),n},uUe=function(){var t=w.useContext(gN);return Xs(t)},dUe=function(){var t=w.useContext(vN),r=lUe(t,function(n){return TV(n.domain,Number.isFinite)});return r||Xs(t)},VV=function(t){var r=w.useContext(vN);r==null&&eA();var n=r[t];return n==null&&eA(),n},fUe=function(){var t=w.useContext(RV);return t},hUe=function(){return w.useContext(DV)},yN=function(){return w.useContext(HV)},xN=function(){return w.useContext($V)};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 pUe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mUe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GV(n.key),n)}}function gUe(e,t,r){return t&&mUe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vUe(e,t,r){return t=Py(t),yUe(e,WV()?Reflect.construct(t,r||[],Py(e).constructor):t.apply(e,r))}function yUe(e,t){if(t&&(Su(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xUe(e)}function xUe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WV=function(){return!!e})()}function Py(e){return Py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Py(e)}function wUe(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&&Qj(e,t)}function Qj(e,t){return Qj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qj(e,t)}function F2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function P2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F2(Object(r),!0).forEach(function(n){wN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wN(e,t,r){return t=GV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GV(e){var t=bUe(e,"string");return Su(t)=="symbol"?t:t+""}function bUe(e,t){if(Su(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Su(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BUe(e,t){return EUe(e)||_Ue(e,t)||jUe(e,t)||CUe()}function CUe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 530In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jUe(e,t){if(e){if(typeof e=="string")return k2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k2(e,t)}}function k2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _Ue(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,l=[],A=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(A=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);A=!0);}catch(u){c=!0,i=u}finally{try{if(!A&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}function EUe(e){if(Array.isArray(e))return e}function Mj(){return Mj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mj.apply(this,arguments)}var SUe=function(t,r){var n;return S.isValidElement(t)?n=S.cloneElement(t,r):Me(t)?n=t(r):n=S.createElement("line",Mj({},r,{className:"recharts-reference-line-line"})),n},NUe=function(t,r,n,i,a,s,l,A,c){var u=a.x,d=a.y,f=a.width,h=a.height;if(n){var m=c.y,p=t.y.apply(m,{position:s});if(wa(c,"discard")&&!t.y.isInRange(p))return null;var v=[{x:u+f,y:p},{x:u,y:p}];return A==="left"?v.reverse():v}if(r){var x=c.x,g=t.x.apply(x,{position:s});if(wa(c,"discard")&&!t.x.isInRange(g))return null;var y=[{x:g,y:d+h},{x:g,y:d}];return l==="top"?y.reverse():y}if(i){var B=c.segment,b=B.map(function(C){return t.apply(C,{position:s})});return wa(c,"discard")&&Zke(b,function(C){return!t.isInRange(C)})?null:b}return null};function OUe(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,s=e.shape,l=e.className,A=e.alwaysShow,c=cUe(),u=KV(i),d=VV(a),f=fUe();if(!c||!f)return null;Hi(A===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=mN({x:u.scale,y:d.scale}),m=fr(t),p=fr(r),v=n&&n.length===2,x=NUe(h,m,p,v,f,e.position,u.orientation,d.orientation,e);if(!x)return null;var g=BUe(x,2),y=g[0],B=y.x,b=y.y,C=g[1],j=C.x,_=C.y,E=wa(e,"hidden")?"url(#".concat(c,")"):void 0,I=P2(P2({clipPath:E},Ie(e,!0)),{},{x1:B,y1:b,x2:j,y2:_});return S.createElement(lt,{className:Ve("recharts-reference-line",l)},SUe(s,I),yr.renderCallByParent(e,LIe({x1:B,y1:b,x2:j,y2:_})))}var bN=function(e){function t(){return pUe(this,t),vUe(this,t,arguments)}return wUe(t,e),gUe(t,[{key:"render",value:function(){return S.createElement(OUe,this.props)}}])}(S.Component);wN(bN,"displayName","ReferenceLine");wN(bN,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Rj(){return Rj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rj.apply(this,arguments)}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 I2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function U2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I2(Object(r),!0).forEach(function(n){Jw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TUe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FUe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qV(n.key),n)}}function PUe(e,t,r){return t&&FUe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kUe(e,t,r){return t=ky(t),IUe(e,zV()?Reflect.construct(t,r||[],ky(e).constructor):t.apply(e,r))}function IUe(e,t){if(t&&(Nu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UUe(e)}function UUe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zV=function(){return!!e})()}function ky(e){return ky=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ky(e)}function QUe(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&&Dj(e,t)}function Dj(e,t){return Dj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dj(e,t)}function Jw(e,t,r){return t=qV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qV(e){var t=MUe(e,"string");return Nu(t)=="symbol"?t:t+""}function MUe(e,t){if(Nu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var RUe=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,s=mN({x:i.scale,y:a.scale}),l=s.apply({x:r,y:n},{bandAware:!0});return wa(t,"discard")&&!s.isInRange(l)?null:l},Zw=function(e){function t(){return TUe(this,t),kUe(this,t,arguments)}return QUe(t,e),PUe(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,s=n.r,l=n.alwaysShow,A=n.clipPathId,c=fr(i),u=fr(a);if(Hi(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var d=RUe(this.props);if(!d)return null;var f=d.x,h=d.y,m=this.props,p=m.shape,v=m.className,x=wa(this.props,"hidden")?"url(#".concat(A,")"):void 0,g=U2(U2({clipPath:x},Ie(this.props,!0)),{},{cx:f,cy:h});return S.createElement(lt,{className:Ve("recharts-reference-dot",v)},t.renderDot(p,g),yr.renderCallByParent(this.props,{x:f-s,y:h-s,width:2*s,height:2*s}))}}])}(S.Component);Jw(Zw,"displayName","ReferenceDot");Jw(Zw,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Jw(Zw,"renderDot",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):Me(e)?r=e(t):r=S.createElement(Kw,Rj({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Lj(){return Lj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lj.apply(this,arguments)}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 Q2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function M2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Q2(Object(r),!0).forEach(function(n){e0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DUe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LUe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XV(n.key),n)}}function $Ue(e,t,r){return t&&LUe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HUe(e,t,r){return t=Iy(t),KUe(e,YV()?Reflect.construct(t,r||[],Iy(e).constructor):t.apply(e,r))}function KUe(e,t){if(t&&(Ou(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VUe(e)}function VUe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YV=function(){return!!e})()}function Iy(e){return Iy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Iy(e)}function WUe(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&&$j(e,t)}function $j(e,t){return $j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$j(e,t)}function e0(e,t,r){return t=XV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XV(e){var t=GUe(e,"string");return Ou(t)=="symbol"?t:t+""}function GUe(e,t){if(Ou(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ou(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zUe=function(t,r,n,i,a){var s=a.x1,l=a.x2,A=a.y1,c=a.y2,u=a.xAxis,d=a.yAxis;if(!u||!d)return null;var f=mN({x:u.scale,y:d.scale}),h={x:t?f.x.apply(s,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(A,{position:"start"}):f.y.rangeMin},m={x:r?f.x.apply(l,{position:"end"}):f.x.rangeMax,y:i?f.y.apply(c,{position:"end"}):f.y.rangeMax};return wa(a,"discard")&&(!f.isInRange(h)||!f.isInRange(m))?null:QV(h,m)},t0=function(e){function t(){return DUe(this,t),HUe(this,t,arguments)}return WUe(t,e),$Ue(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,s=n.y1,l=n.y2,A=n.className,c=n.alwaysShow,u=n.clipPathId;Hi(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=fr(i),f=fr(a),h=fr(s),m=fr(l),p=this.props.shape;if(!d&&!f&&!h&&!m&&!p)return null;var v=zUe(d,f,h,m,this.props);if(!v&&!p)return null;var x=wa(this.props,"hidden")?"url(#".concat(u,")"):void 0;return S.createElement(lt,{className:Ve("recharts-reference-area",A)},t.renderRect(p,M2(M2({clipPath:x},Ie(this.props,!0)),v)),yr.renderCallByParent(this.props,v))}}])}(S.Component);e0(t0,"displayName","ReferenceArea");e0(t0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});e0(t0,"renderRect",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):Me(e)?r=e(t):r=S.createElement(pN,Lj({},t,{className:"recharts-reference-area-rect"})),r});function JV(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function qUe(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return HIe(n,r)}function YUe(e,t,r){var n=r==="width",i=e.x,a=e.y,s=e.width,l=e.height;return t===1?{start:n?i:a,end:n?i+s:a+l}:{start:n?i+s:a+l,end:n?i:a}}function Uy(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function XUe(e,t){return JV(e,t+1)}function JUe(e,t,r,n,i){for(var a=(n||[]).slice(),s=t.start,l=t.end,A=0,c=1,u=s,d=function(){var m=n==null?void 0:n[A];if(m===void 0)return{v:JV(n,c)};var p=A,v,x=function(){return v===void 0&&(v=r(m,p)),v},g=m.coordinate,y=A===0||Uy(e,g,x,u,l);y||(A=0,u=s,c+=1),y&&(u=g+e*(x()/2+i),A+=c)},f;c<=a.length;)if(f=d(),f)return f.v;return[]}function Gh(e){"@babel/helpers - typeof";return Gh=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},Gh(e)}function R2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R2(Object(r),!0).forEach(function(n){ZUe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZUe(e,t,r){return t=e2e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e2e(e){var t=t2e(e,"string");return Gh(t)=="symbol"?t:t+""}function t2e(e,t){if(Gh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r2e(e,t,r,n,i){for(var a=(n||[]).slice(),s=a.length,l=t.start,A=t.end,c=function(f){var h=a[f],m,p=function(){return m===void 0&&(m=r(h,f)),m};if(f===s-1){var v=e*(h.coordinate+e*p()/2-A);a[f]=h=Qr(Qr({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else a[f]=h=Qr(Qr({},h),{},{tickCoord:h.coordinate});var x=Uy(e,h.tickCoord,p,l,A);x&&(A=h.tickCoord-e*(p()/2+i),a[f]=Qr(Qr({},h),{},{isShow:!0}))},u=s-1;u>=0;u--)c(u);return a}function n2e(e,t,r,n,i,a){var s=(n||[]).slice(),l=s.length,A=t.start,c=t.end;if(a){var u=n[l-1],d=r(u,l-1),f=e*(u.coordinate+e*d/2-c);s[l-1]=u=Qr(Qr({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate});var h=Uy(e,u.tickCoord,function(){return d},A,c);h&&(c=u.tickCoord-e*(d/2+i),s[l-1]=Qr(Qr({},u),{},{isShow:!0}))}for(var m=a?l-1:l,p=function(g){var y=s[g],B,b=function(){return B===void 0&&(B=r(y,g)),B};if(g===0){var C=e*(y.coordinate-e*b()/2-A);s[g]=y=Qr(Qr({},y),{},{tickCoord:C<0?y.coordinate-C*e:y.coordinate})}else s[g]=y=Qr(Qr({},y),{},{tickCoord:y.coordinate});var j=Uy(e,y.tickCoord,b,A,c);j&&(A=y.tickCoord+e*(b()/2+i),s[g]=Qr(Qr({},y),{},{isShow:!0}))},v=0;v<m;v++)p(v);return s}function BN(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,s=e.minTickGap,l=e.orientation,A=e.interval,c=e.tickFormatter,u=e.unit,d=e.angle;if(!i||!i.length||!n)return[];if(oe(A)||ya.isSsr)return XUe(i,typeof A=="number"&&oe(A)?A:0);var f=[],h=l==="top"||l==="bottom"?"width":"height",m=u&&h==="width"?Nf(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(y,B){var b=Me(c)?c(y.value,B):y.value;return h==="width"?qUe(Nf(b,{fontSize:t,letterSpacing:r}),m,d):Nf(b,{fontSize:t,letterSpacing:r})[h]},v=i.length>=2?Yr(i[1].coordinate-i[0].coordinate):1,x=YUe(a,v,h);return A==="equidistantPreserveStart"?JUe(v,x,p,i,s):(A==="preserveStart"||A==="preserveStartEnd"?f=n2e(v,x,p,i,s,A==="preserveStartEnd"):f=r2e(v,x,p,i,s),f.filter(function(g){return g.isShow}))}var i2e=["viewBox"],a2e=["viewBox"],s2e=["ticks"];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 xc(){return xc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xc.apply(this,arguments)}function D2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ar(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D2(Object(r),!0).forEach(function(n){CN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iB(e,t){if(e==null)return{};var r=o2e(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function o2e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function l2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,e8(n.key),n)}}function A2e(e,t,r){return t&&L2(e.prototype,t),r&&L2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c2e(e,t,r){return t=Qy(t),u2e(e,ZV()?Reflect.construct(t,r||[],Qy(e).constructor):t.apply(e,r))}function u2e(e,t){if(t&&(Tu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d2e(e)}function d2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZV=function(){return!!e})()}function Qy(e){return Qy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qy(e)}function f2e(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&&Hj(e,t)}function Hj(e,t){return Hj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hj(e,t)}function CN(e,t,r){return t=e8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e8(e){var t=h2e(e,"string");return Tu(t)=="symbol"?t:t+""}function h2e(e,t){if(Tu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ud=function(e){function t(r){var n;return l2e(this,t),n=c2e(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return f2e(t,e),A2e(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,s=iB(n,i2e),l=this.props,A=l.viewBox,c=iB(l,a2e);return!Ic(a,A)||!Ic(s,c)||!Ic(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,s=i.y,l=i.width,A=i.height,c=i.orientation,u=i.tickSize,d=i.mirror,f=i.tickMargin,h,m,p,v,x,g,y=d?-1:1,B=n.tickSize||u,b=oe(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":h=m=n.coordinate,v=s+ +!d*A,p=v-y*B,g=p-y*f,x=b;break;case"left":p=v=n.coordinate,m=a+ +!d*l,h=m-y*B,x=h-y*f,g=b;break;case"right":p=v=n.coordinate,m=a+ +d*l,h=m+y*B,x=h+y*f,g=b;break;default:h=m=n.coordinate,v=s+ +d*A,p=v+y*B,g=p+y*f,x=b;break}return{line:{x1:h,y1:p,x2:m,y2:v},tick:{x,y:g}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,s;switch(i){case"left":s=a?"start":"end";break;case"right":s=a?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=a?"start":"end";break;default:s=a?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,s=n.width,l=n.height,A=n.orientation,c=n.mirror,u=n.axisLine,d=ar(ar(ar({},Ie(this.props,!1)),Ie(u,!1)),{},{fill:"none"});if(A==="top"||A==="bottom"){var f=+(A==="top"&&!c||A==="bottom"&&c);d=ar(ar({},d),{},{x1:i,y1:a+f*l,x2:i+s,y2:a+f*l})}else{var h=+(A==="left"&&!c||A==="right"&&c);d=ar(ar({},d),{},{x1:i+h*s,y1:a,x2:i+h*s,y2:a+l})}return S.createElement("line",xc({},d,{className:Ve("recharts-cartesian-axis-line",Rn(u,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var s=this,l=this.props,A=l.tickLine,c=l.stroke,u=l.tick,d=l.tickFormatter,f=l.unit,h=BN(ar(ar({},this.props),{},{ticks:n}),i,a),m=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),v=Ie(this.props,!1),x=Ie(u,!1),g=ar(ar({},v),{},{fill:"none"},Ie(A,!1)),y=h.map(function(B,b){var C=s.getTickLineCoord(B),j=C.line,_=C.tick,E=ar(ar(ar(ar({textAnchor:m,verticalAnchor:p},v),{},{stroke:"none",fill:c},x),_),{},{index:b,payload:B,visibleTicksCount:h.length,tickFormatter:d});return S.createElement(lt,xc({className:"recharts-cartesian-axis-tick",key:"tick-".concat(B.value,"-").concat(B.coordinate,"-").concat(B.tickCoord)},Xl(s.props,B,b)),A&&S.createElement("line",xc({},g,j,{className:Ve("recharts-cartesian-axis-tick-line",Rn(A,"className"))})),u&&t.renderTickItem(u,E,"".concat(Me(d)?d(B.value,b):B.value).concat(f||"")))});return S.createElement("g",{className:"recharts-cartesian-axis-ticks"},y)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,s=i.width,l=i.height,A=i.ticksGenerator,c=i.className,u=i.hide;if(u)return null;var d=this.props,f=d.ticks,h=iB(d,s2e),m=f;return Me(A)&&(m=f&&f.length>0?A(this.props):A(h)),s<=0||l<=0||!m||!m.length?null:S.createElement(lt,{className:Ve("recharts-cartesian-axis",c),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),yr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var s,l=Ve(i.className,"recharts-cartesian-axis-tick-value");return S.isValidElement(n)?s=S.cloneElement(n,ar(ar({},i),{},{className:l})):Me(n)?s=n(ar(ar({},i),{},{className:l})):s=S.createElement(Jl,xc({},i,{className:"recharts-cartesian-axis-tick-value"}),a),s}}])}(w.Component);CN(ud,"displayName","CartesianAxis");CN(ud,"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 p2e=["x1","y1","x2","y2","key"],m2e=["offset"];function tA(e){"@babel/helpers - typeof";return tA=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},tA(e)}function $2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$2(Object(r),!0).forEach(function(n){g2e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g2e(e,t,r){return t=v2e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v2e(e){var t=y2e(e,"string");return tA(t)=="symbol"?t:t+""}function y2e(e,t){if(tA(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(tA(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cl.apply(this,arguments)}function H2(e,t){if(e==null)return{};var r=x2e(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function x2e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var w2e=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,s=t.width,l=t.height,A=t.ry;return S.createElement("rect",{x:i,y:a,ry:A,width:s,height:l,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function t8(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(Me(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,s=t.y2,l=t.key,A=H2(t,p2e),c=Ie(A,!1);c.offset;var u=H2(c,m2e);r=S.createElement("line",Cl({},u,{x1:n,y1:i,x2:a,y2:s,fill:"none",key:l}))}return r}function b2e(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var s=a.map(function(l,A){var c=Dr(Dr({},e),{},{x1:t,y1:l,x2:t+r,y2:l,key:"line-".concat(A),index:A});return t8(i,c)});return S.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function B2e(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var s=a.map(function(l,A){var c=Dr(Dr({},e),{},{x1:l,y1:t,x2:l,y2:t+r,key:"line-".concat(A),index:A});return t8(i,c)});return S.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function C2e(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,s=e.height,l=e.horizontalPoints,A=e.horizontal,c=A===void 0?!0:A;if(!c||!t||!t.length)return null;var u=l.map(function(f){return Math.round(f+i-i)}).sort(function(f,h){return f-h});i!==u[0]&&u.unshift(0);var d=u.map(function(f,h){var m=!u[h+1],p=m?i+s-f:u[h+1]-f;if(p<=0)return null;var v=h%t.length;return S.createElement("rect",{key:"react-".concat(h),y:f,x:n,height:p,width:a,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function j2e(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,s=e.y,l=e.width,A=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var u=c.map(function(f){return Math.round(f+a-a)}).sort(function(f,h){return f-h});a!==u[0]&&u.unshift(0);var d=u.map(function(f,h){var m=!u[h+1],p=m?a+l-f:u[h+1]-f;if(p<=0)return null;var v=h%n.length;return S.createElement("rect",{key:"react-".concat(h),x:f,y:s,width:p,height:A,stroke:"none",fill:n[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var _2e=function(t,r){var n=t.xAxis,i=t.width,a=t.height,s=t.offset;return X6(BN(Dr(Dr(Dr({},ud.defaultProps),n),{},{ticks:rs(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),s.left,s.left+s.width,r)},E2e=function(t,r){var n=t.yAxis,i=t.width,a=t.height,s=t.offset;return X6(BN(Dr(Dr(Dr({},ud.defaultProps),n),{},{ticks:rs(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),s.top,s.top+s.height,r)},$A={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function r0(e){var t,r,n,i,a,s,l=yN(),A=xN(),c=hUe(),u=Dr(Dr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:$A.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:$A.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:$A.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:$A.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:$A.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:$A.verticalFill,x:oe(e.x)?e.x:c.left,y:oe(e.y)?e.y:c.top,width:oe(e.width)?e.width:c.width,height:oe(e.height)?e.height:c.height}),d=u.x,f=u.y,h=u.width,m=u.height,p=u.syncWithTicks,v=u.horizontalValues,x=u.verticalValues,g=uUe(),y=dUe();if(!oe(h)||h<=0||!oe(m)||m<=0||!oe(d)||d!==+d||!oe(f)||f!==+f)return null;var B=u.verticalCoordinatesGenerator||_2e,b=u.horizontalCoordinatesGenerator||E2e,C=u.horizontalPoints,j=u.verticalPoints;if((!C||!C.length)&&Me(b)){var _=v&&v.length,E=b({yAxis:y?Dr(Dr({},y),{},{ticks:_?v:y.ticks}):void 0,width:l,height:A,offset:c},_?!0:p);Hi(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(tA(E),"]")),Array.isArray(E)&&(C=E)}if((!j||!j.length)&&Me(B)){var I=x&&x.length,T=B({xAxis:g?Dr(Dr({},g),{},{ticks:I?x:g.ticks}):void 0,width:l,height:A,offset:c},I?!0:p);Hi(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(tA(T),"]")),Array.isArray(T)&&(j=T)}return S.createElement("g",{className:"recharts-cartesian-grid"},S.createElement(w2e,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height,ry:u.ry}),S.createElement(b2e,Cl({},u,{offset:c,horizontalPoints:C,xAxis:g,yAxis:y})),S.createElement(B2e,Cl({},u,{offset:c,verticalPoints:j,xAxis:g,yAxis:y})),S.createElement(C2e,Cl({},u,{horizontalPoints:C})),S.createElement(j2e,Cl({},u,{verticalPoints:j})))}r0.displayName="CartesianGrid";var S2e=["type","layout","connectNulls","ref"],N2e=["key"];function Fu(e){"@babel/helpers - typeof";return Fu=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},Fu(e)}function K2(e,t){if(e==null)return{};var r=O2e(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function O2e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function If(){return If=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},If.apply(this,arguments)}function V2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?V2(Object(r),!0).forEach(function(n){ki(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HA(e){return k2e(e)||P2e(e)||F2e(e)||T2e()}function T2e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 531In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F2e(e,t){if(e){if(typeof e=="string")return Kj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kj(e,t)}}function P2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function k2e(e){if(Array.isArray(e))return Kj(e)}function Kj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n8(n.key),n)}}function U2e(e,t,r){return t&&W2(e.prototype,t),r&&W2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q2e(e,t,r){return t=My(t),M2e(e,r8()?Reflect.construct(t,r||[],My(e).constructor):t.apply(e,r))}function M2e(e,t){if(t&&(Fu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R2e(e)}function R2e(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 My(e){return My=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},My(e)}function D2e(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&&Vj(e,t)}function Vj(e,t){return Vj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vj(e,t)}function ki(e,t,r){return t=n8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n8(e){var t=L2e(e,"string");return Fu(t)=="symbol"?t:t+""}function L2e(e,t){if(Fu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ip=function(e){function t(){var r;I2e(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Q2e(this,t,[].concat(i)),ki(r,"state",{isAnimationFinished:!0,totalLength:0}),ki(r,"generateSimpleStrokeDasharray",function(s,l){return"".concat(l,"px ").concat(s-l,"px")}),ki(r,"getStrokeDasharray",function(s,l,A){var c=A.reduce(function(x,g){return x+g});if(!c)return r.generateSimpleStrokeDasharray(l,s);for(var u=Math.floor(s/c),d=s%c,f=l-s,h=[],m=0,p=0;m<A.length;p+=A[m],++m)if(p+A[m]>d){h=[].concat(HA(A.slice(0,m)),[d-p]);break}var v=h.length%2===0?[0,f]:[f];return[].concat(HA(t.repeat(A,u)),HA(h),v).map(function(x){return"".concat(x,"px")}).join(", ")}),ki(r,"id",id("recharts-line-")),ki(r,"pathRef",function(s){r.mainCurve=s}),ki(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),ki(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return D2e(t,e),U2e(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,s=a.points,l=a.xAxis,A=a.yAxis,c=a.layout,u=a.children,d=Dn(u,kp);if(!d)return null;var f=function(p,v){return{x:p.x,y:p.y,value:p.value,errorVal:ur(p.payload,v)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(lt,h,d.map(function(m){return S.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:s,xAxis:l,yAxis:A,layout:c,dataPointFormatter:f})}))}},{key:"renderDots",value:function(n,i,a){var s=this.props.isAnimationActive;if(s&&!this.state.isAnimationFinished)return null;var l=this.props,A=l.dot,c=l.points,u=l.dataKey,d=Ie(this.props,!1),f=Ie(A,!0),h=c.map(function(p,v){var x=jn(jn(jn({key:"dot-".concat(v),r:3},d),f),{},{index:v,cx:p.x,cy:p.y,value:p.value,dataKey:u,payload:p.payload,points:c});return t.renderDotItem(A,x)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(lt,If({className:"recharts-line-dots",key:"dots"},m),h)}},{key:"renderCurveStatically",value:function(n,i,a,s){var l=this.props,A=l.type,c=l.layout,u=l.connectNulls;l.ref;var d=K2(l,S2e),f=jn(jn(jn({},Ie(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},s),{},{type:A,layout:c,connectNulls:u});return S.createElement(vy,If({},f,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,s=this.props,l=s.points,A=s.strokeDasharray,c=s.isAnimationActive,u=s.animationBegin,d=s.animationDuration,f=s.animationEasing,h=s.animationId,m=s.animateNewValues,p=s.width,v=s.height,x=this.state,g=x.prevPoints,y=x.totalLength;return S.createElement(ja,{begin:u,duration:d,isActive:c,easing:f,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(B){var b=B.t;if(g){var C=g.length/l.length,j=l.map(function(k,N){var F=Math.floor(N*C);if(g[F]){var M=g[F],O=Fn(M.x,k.x),U=Fn(M.y,k.y);return jn(jn({},k),{},{x:O(b),y:U(b)})}if(m){var P=Fn(p*2,k.x),Q=Fn(v/2,k.y);return jn(jn({},k),{},{x:P(b),y:Q(b)})}return jn(jn({},k),{},{x:k.x,y:k.y})});return a.renderCurveStatically(j,n,i)}var _=Fn(0,y),E=_(b),I;if(A){var T="".concat(A).split(/[,\s]+/gim).map(function(k){return parseFloat(k)});I=a.getStrokeDasharray(E,y,T)}else I=a.generateSimpleStrokeDasharray(y,E);return a.renderCurveStatically(l,n,i,{strokeDasharray:I})})}},{key:"renderCurve",value:function(n,i){var a=this.props,s=a.points,l=a.isAnimationActive,A=this.state,c=A.prevPoints,u=A.totalLength;return l&&s&&s.length&&(!c&&u>0||!Pp(c,s))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,s=i.dot,l=i.points,A=i.className,c=i.xAxis,u=i.yAxis,d=i.top,f=i.left,h=i.width,m=i.height,p=i.isAnimationActive,v=i.id;if(a||!l||!l.length)return null;var x=this.state.isAnimationFinished,g=l.length===1,y=Ve("recharts-line",A),B=c&&c.allowDataOverflow,b=u&&u.allowDataOverflow,C=B||b,j=$e(v)?this.id:v,_=(n=Ie(s,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},E=_.r,I=E===void 0?3:E,T=_.strokeWidth,k=T===void 0?2:T,N=cme(s)?s:{},F=N.clipDot,M=F===void 0?!0:F,O=I*2+k;return S.createElement(lt,{className:y},B||b?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(j)},S.createElement("rect",{x:B?f:f-h/2,y:b?d:d-m/2,width:B?h:h*2,height:b?m:m*2})),!M&&S.createElement("clipPath",{id:"clipPath-dots-".concat(j)},S.createElement("rect",{x:f-O/2,y:d-O/2,width:h+O,height:m+O}))):null,!g&&this.renderCurve(C,j),this.renderErrorBar(C,j),(g||s)&&this.renderDots(C,M,j),(!p||x)&&As.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(HA(n),[0]):n,s=[],l=0;l<i;++l)s=[].concat(HA(s),HA(a));return s}},{key:"renderDotItem",value:function(n,i){var a;if(S.isValidElement(n))a=S.cloneElement(n,i);else if(Me(n))a=n(i);else{var s=i.key,l=K2(i,N2e),A=Ve("recharts-line-dot",typeof n!="boolean"?n.className:"");a=S.createElement(Kw,If({key:s},l,{className:A}))}return a}}])}(w.PureComponent);ki(Ip,"displayName","Line");ki(Ip,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ya.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});ki(Ip,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,s=e.dataKey,l=e.bandSize,A=e.displayedData,c=e.offset,u=t.layout,d=A.map(function(f,h){var m=ur(f,s);return u==="horizontal"?{x:mU({axis:r,ticks:i,bandSize:l,entry:f,index:h}),y:$e(m)?null:n.scale(m),value:m,payload:f}:{x:$e(m)?null:r.scale(m),y:mU({axis:n,ticks:a,bandSize:l,entry:f,index:h}),value:m,payload:f}});return jn({points:d,layout:u},c)});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 $2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H2e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s8(n.key),n)}}function K2e(e,t,r){return t&&H2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function V2e(e,t,r){return t=Ry(t),W2e(e,i8()?Reflect.construct(t,r||[],Ry(e).constructor):t.apply(e,r))}function W2e(e,t){if(t&&(Pu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return G2e(e)}function G2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i8=function(){return!!e})()}function Ry(e){return Ry=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ry(e)}function z2e(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&&Wj(e,t)}function Wj(e,t){return Wj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wj(e,t)}function a8(e,t,r){return t=s8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s8(e){var t=q2e(e,"string");return Pu(t)=="symbol"?t:t+""}function q2e(e,t){if(Pu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gj(){return Gj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gj.apply(this,arguments)}function Y2e(e){var t=e.xAxisId,r=yN(),n=xN(),i=KV(t);return i==null?null:w.createElement(ud,Gj({},i,{className:Ve("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(s){return rs(s,!0)}}))}var xA=function(e){function t(){return $2e(this,t),V2e(this,t,arguments)}return z2e(t,e),K2e(t,[{key:"render",value:function(){return w.createElement(Y2e,this.props)}}])}(w.Component);a8(xA,"displayName","XAxis");a8(xA,"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 ku(e){"@babel/helpers - typeof";return ku=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},ku(e)}function X2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J2e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,A8(n.key),n)}}function Z2e(e,t,r){return t&&J2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eQe(e,t,r){return t=Dy(t),tQe(e,o8()?Reflect.construct(t,r||[],Dy(e).constructor):t.apply(e,r))}function tQe(e,t){if(t&&(ku(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rQe(e)}function rQe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o8=function(){return!!e})()}function Dy(e){return Dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dy(e)}function nQe(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&&zj(e,t)}function zj(e,t){return zj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zj(e,t)}function l8(e,t,r){return t=A8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A8(e){var t=iQe(e,"string");return ku(t)=="symbol"?t:t+""}function iQe(e,t){if(ku(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ku(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qj(){return qj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qj.apply(this,arguments)}var aQe=function(t){var r=t.yAxisId,n=yN(),i=xN(),a=VV(r);return a==null?null:w.createElement(ud,qj({},a,{className:Ve("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(l){return rs(l,!0)}}))},wA=function(e){function t(){return X2e(this,t),eQe(this,t,arguments)}return nQe(t,e),Z2e(t,[{key:"render",value:function(){return w.createElement(aQe,this.props)}}])}(w.Component);l8(wA,"displayName","YAxis");l8(wA,"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 G2(e){return AQe(e)||lQe(e)||oQe(e)||sQe()}function sQe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 532In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oQe(e,t){if(e){if(typeof e=="string")return Yj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yj(e,t)}}function lQe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AQe(e){if(Array.isArray(e))return Yj(e)}function Yj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Xj=function(t,r,n,i,a){var s=Dn(t,bN),l=Dn(t,Zw),A=[].concat(G2(s),G2(l)),c=Dn(t,t0),u="".concat(i,"Id"),d=i[0],f=r;if(A.length&&(f=A.reduce(function(p,v){if(v.props[u]===n&&wa(v.props,"extendDomain")&&oe(v.props[d])){var x=v.props[d];return[Math.min(p[0],x),Math.max(p[1],x)]}return p},f)),c.length){var h="".concat(d,"1"),m="".concat(d,"2");f=c.reduce(function(p,v){if(v.props[u]===n&&wa(v.props,"extendDomain")&&oe(v.props[h])&&oe(v.props[m])){var x=v.props[h],g=v.props[m];return[Math.min(p[0],x,g),Math.max(p[1],x,g)]}return p},f)}return a&&a.length&&(f=a.reduce(function(p,v){return oe(v)?[Math.min(p[0],v),Math.max(p[1],v)]:p},f)),f},c8={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(A,c,u){this.fn=A,this.context=c,this.once=u||!1}function a(A,c,u,d,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,d||A,f),m=r?r+c:c;return A._events[m]?A._events[m].fn?A._events[m]=[A._events[m],h]:A._events[m].push(h):(A._events[m]=h,A._eventsCount++),A}function s(A,c){--A._eventsCount===0?A._events=new n:delete A._events[c]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},l.prototype.listeners=function(c){var u=r?r+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,h=d.length,m=new Array(h);f<h;f++)m[f]=d[f].fn;return m},l.prototype.listenerCount=function(c){var u=r?r+c:c,d=this._events[u];return d?d.fn?1:d.length:0},l.prototype.emit=function(c,u,d,f,h,m){var p=r?r+c:c;if(!this._events[p])return!1;var v=this._events[p],x=arguments.length,g,y;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),x){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,u),!0;case 3:return v.fn.call(v.context,u,d),!0;case 4:return v.fn.call(v.context,u,d,f),!0;case 5:return v.fn.call(v.context,u,d,f,h),!0;case 6:return v.fn.call(v.context,u,d,f,h,m),!0}for(y=1,g=new Array(x-1);y<x;y++)g[y-1]=arguments[y];v.fn.apply(v.context,g)}else{var B=v.length,b;for(y=0;y<B;y++)switch(v[y].once&&this.removeListener(c,v[y].fn,void 0,!0),x){case 1:v[y].fn.call(v[y].context);break;case 2:v[y].fn.call(v[y].context,u);break;case 3:v[y].fn.call(v[y].context,u,d);break;case 4:v[y].fn.call(v[y].context,u,d,f);break;default:if(!g)for(b=1,g=new Array(x-1);b<x;b++)g[b-1]=arguments[b];v[y].fn.apply(v[y].context,g)}}return!0},l.prototype.on=function(c,u,d){return a(this,c,u,d,!1)},l.prototype.once=function(c,u,d){return a(this,c,u,d,!0)},l.prototype.removeListener=function(c,u,d,f){var h=r?r+c:c;if(!this._events[h])return this;if(!u)return s(this,h),this;var m=this._events[h];if(m.fn)m.fn===u&&(!f||m.once)&&(!d||m.context===d)&&s(this,h);else{for(var p=0,v=[],x=m.length;p<x;p++)(m[p].fn!==u||f&&!m[p].once||d&&m[p].context!==d)&&v.push(m[p]);v.length?this._events[h]=v.length===1?v[0]:v:s(this,h)}return this},l.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&s(this,u)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l})(c8);var cQe=c8.exports;const uQe=nt(cQe);var aB=new uQe,sB="recharts.syncMouseEvents";function zh(e){"@babel/helpers - typeof";return zh=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},zh(e)}function dQe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fQe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u8(n.key),n)}}function hQe(e,t,r){return t&&fQe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oB(e,t,r){return t=u8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u8(e){var t=pQe(e,"string");return zh(t)=="symbol"?t:t+""}function pQe(e,t){if(zh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mQe=function(){function e(){dQe(this,e),oB(this,"activeIndex",0),oB(this,"coordinateList",[]),oB(this,"layout","horizontal")}return hQe(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,s=r.container,l=s===void 0?null:s,A=r.layout,c=A===void 0?null:A,u=r.offset,d=u===void 0?null:u,f=r.mouseHandlerCallback,h=f===void 0?null:f;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=l??this.container,this.layout=c??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,s=i.y,l=i.height,A=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,u=((n=window)===null||n===void 0?void 0:n.scrollY)||0,d=a+A+c,f=s+this.offset.top+l/2+u;this.mouseHandlerCallback({pageX:d,pageY:f})}}}])}();function gQe(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&oe(n)&&oe(i))return!0}return!1}function vQe(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function d8(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,s=_t(t,r,n,i),l=_t(t,r,n,a);return{points:[s,l],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function yQe(e,t,r){var n,i,a,s;if(e==="horizontal")n=t.x,a=n,i=r.top,s=r.top+r.height;else if(e==="vertical")i=t.y,s=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,A=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.angle,f=_t(l,A,c,d),h=_t(l,A,u,d);n=f.x,i=f.y,a=h.x,s=h.y}else return d8(t);return[{x:n,y:i},{x:a,y:s}]}function qh(e){"@babel/helpers - typeof";return qh=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},qh(e)}function z2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ng(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?z2(Object(r),!0).forEach(function(n){xQe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xQe(e,t,r){return t=wQe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wQe(e){var t=bQe(e,"string");return qh(t)=="symbol"?t:t+""}function bQe(e,t){if(qh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BQe(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,s=e.activeCoordinate,l=e.activePayload,A=e.offset,c=e.activeTooltipIndex,u=e.tooltipAxisBandSize,d=e.layout,f=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!s||f!=="ScatterChart"&&i!=="axis")return null;var m,p=vy;if(f==="ScatterChart")m=s,p=LFe;else if(f==="BarChart")m=vQe(d,s,A,u),p=pN;else if(d==="radial"){var v=d8(s),x=v.cx,g=v.cy,y=v.radius,B=v.startAngle,b=v.endAngle;m={cx:x,cy:g,startAngle:B,endAngle:b,innerRadius:y,outerRadius:y},p=lV}else m={points:yQe(d,s,A)},p=vy;var C=ng(ng(ng(ng({stroke:"#ccc",pointerEvents:"none"},A),m),Ie(h,!1)),{},{payload:l,payloadIndex:c,className:Ve("recharts-tooltip-cursor",h.className)});return w.isValidElement(h)?w.cloneElement(h,C):w.createElement(p,C)}var CQe=["item"],jQe=["children","className","width","height","style","compact","title","desc"];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 wc(){return wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wc.apply(this,arguments)}function q2(e,t){return SQe(e)||EQe(e,t)||h8(e,t)||_Qe()}function _Qe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 533In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EQe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,l=[],A=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(A=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);A=!0);}catch(u){c=!0,i=u}finally{try{if(!A&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}function SQe(e){if(Array.isArray(e))return e}function Y2(e,t){if(e==null)return{};var r=NQe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NQe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function OQe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TQe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p8(n.key),n)}}function FQe(e,t,r){return t&&TQe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function PQe(e,t,r){return t=Ly(t),kQe(e,f8()?Reflect.construct(t,r||[],Ly(e).constructor):t.apply(e,r))}function kQe(e,t){if(t&&(Iu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IQe(e)}function IQe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f8=function(){return!!e})()}function Ly(e){return Ly=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ly(e)}function UQe(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&&Jj(e,t)}function Jj(e,t){return Jj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jj(e,t)}function Uu(e){return RQe(e)||MQe(e)||h8(e)||QQe()}function QQe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 534In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h8(e,t){if(e){if(typeof e=="string")return Zj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zj(e,t)}}function MQe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RQe(e){if(Array.isArray(e))return Zj(e)}function Zj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function X2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X2(Object(r),!0).forEach(function(n){Ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ue(e,t,r){return t=p8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p8(e){var t=DQe(e,"string");return Iu(t)=="symbol"?t:t+""}function DQe(e,t){if(Iu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Iu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LQe={xAxis:["bottom","top"],yAxis:["left","right"]},$Qe={width:"100%",height:"100%"},m8={x:0,y:0};function ig(e){return e}var HQe=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},KQe=function(t,r,n,i){var a=r.find(function(u){return u&&u.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var s=a.coordinate,l=i.radius;return q(q(q({},i),_t(i.cx,i.cy,l,s)),{},{angle:s,radius:l})}var A=a.coordinate,c=i.angle;return q(q(q({},i),_t(i.cx,i.cy,A,c)),{},{angle:c,radius:A})}return m8},n0=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,s=(n??[]).reduce(function(l,A){var c=A.props.data;return c&&c.length?[].concat(Uu(l),Uu(c)):l},[]);return s.length>0?s:t&&t.length&&oe(i)&&oe(a)?t.slice(i,a+1):[]};function g8(e){return e==="number"?[0,"auto"]:void 0}var e_=function(t,r,n,i){var a=t.graphicalItems,s=t.tooltipAxis,l=n0(r,t);return n<0||!a||!a.length||n>=l.length?null:a.reduce(function(A,c){var u,d=(u=c.props.data)!==null&&u!==void 0?u:r;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var f;if(s.dataKey&&!s.allowDuplicatedCategory){var h=d===void 0?l:d;f=Lv(h,s.dataKey,i)}else f=d&&d[n]||l[n];return f?[].concat(Uu(A),[rV(c,f)]):A},[])},J2=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},s=HQe(a,n),l=t.orderedTooltipTicks,A=t.tooltipAxis,c=t.tooltipTicks,u=uNe(s,l,c,A);if(u>=0&&c){var d=c[u]&&c[u].value,f=e_(t,r,u,d),h=KQe(n,l,u,a);return{activeTooltipIndex:u,activeLabel:d,activePayload:f,activeCoordinate:h}}return null},VQe=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,s=r.axisIdKey,l=r.stackGroups,A=r.dataStartIndex,c=r.dataEndIndex,u=t.layout,d=t.children,f=t.stackOffset,h=Y6(u,a);return n.reduce(function(m,p){var v,x=p.type.defaultProps!==void 0?q(q({},p.type.defaultProps),p.props):p.props,g=x.type,y=x.dataKey,B=x.allowDataOverflow,b=x.allowDuplicatedCategory,C=x.scale,j=x.ticks,_=x.includeHidden,E=x[s];if(m[E])return m;var I=n0(t.data,{graphicalItems:i.filter(function(K){var X,ae=s in K.props?K.props[s]:(X=K.type.defaultProps)===null||X===void 0?void 0:X[s];return ae===E}),dataStartIndex:A,dataEndIndex:c}),T=I.length,k,N,F;gQe(x.domain,B,g)&&(k=hj(x.domain,null,B),h&&(g==="number"||C!=="auto")&&(F=Tf(I,y,"category")));var M=g8(g);if(!k||k.length===0){var O,U=(O=x.domain)!==null&&O!==void 0?O:M;if(y){if(k=Tf(I,y,g),g==="category"&&h){var P=eme(k);b&&P?(N=k,k=Sy(0,T)):b||(k=xU(U,k,p).reduce(function(K,X){return K.indexOf(X)>=0?K:[].concat(Uu(K),[X])},[]))}else if(g==="category")b?k=k.filter(function(K){return K!==""&&!$e(K)}):k=xU(U,k,p).reduce(function(K,X){return K.indexOf(X)>=0||X===""||$e(X)?K:[].concat(Uu(K),[X])},[]);else if(g==="number"){var Q=mNe(I,i.filter(function(K){var X,ae,ve=s in K.props?K.props[s]:(X=K.type.defaultProps)===null||X===void 0?void 0:X[s],Fe="hide"in K.props?K.props.hide:(ae=K.type.defaultProps)===null||ae===void 0?void 0:ae.hide;return ve===E&&(_||!Fe)}),y,a,u);Q&&(k=Q)}h&&(g==="number"||C!=="auto")&&(F=Tf(I,y,"category"))}else h?k=Sy(0,T):l&&l[E]&&l[E].hasStack&&g==="number"?k=f==="expand"?[0,1]:tV(l[E].stackGroups,A,c):k=q6(I,i.filter(function(K){var X=s in K.props?K.props[s]:K.type.defaultProps[s],ae="hide"in K.props?K.props.hide:K.type.defaultProps.hide;return X===E&&(_||!ae)}),g,u,!0);if(g==="number")k=Xj(d,k,E,a,j),U&&(k=hj(U,k,B));else if(g==="category"&&U){var $=U,G=k.every(function(K){return $.indexOf(K)>=0});G&&(k=$)}}return q(q({},m),{},Ue({},E,q(q({},x),{},{axisType:a,domain:k,categoricalDomain:F,duplicateDomain:N,originalDomain:(v=x.domain)!==null&&v!==void 0?v:M,isCategorical:h,layout:u})))},{})},WQe=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,s=r.axisIdKey,l=r.stackGroups,A=r.dataStartIndex,c=r.dataEndIndex,u=t.layout,d=t.children,f=n0(t.data,{graphicalItems:n,dataStartIndex:A,dataEndIndex:c}),h=f.length,m=Y6(u,a),p=-1;return n.reduce(function(v,x){var g=x.type.defaultProps!==void 0?q(q({},x.type.defaultProps),x.props):x.props,y=g[s],B=g8("number");if(!v[y]){p++;var b;return m?b=Sy(0,h):l&&l[y]&&l[y].hasStack?(b=tV(l[y].stackGroups,A,c),b=Xj(d,b,y,a)):(b=hj(B,q6(f,n.filter(function(C){var j,_,E=s in C.props?C.props[s]:(j=C.type.defaultProps)===null||j===void 0?void 0:j[s],I="hide"in C.props?C.props.hide:(_=C.type.defaultProps)===null||_===void 0?void 0:_.hide;return E===y&&!I}),"number",u),i.defaultProps.allowDataOverflow),b=Xj(d,b,y,a)),q(q({},v),{},Ue({},y,q(q({axisType:a},i.defaultProps),{},{hide:!0,orientation:Rn(LQe,"".concat(a,".").concat(p%2),null),domain:b,originalDomain:B,isCategorical:m,layout:u})))}return v},{})},GQe=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,s=r.graphicalItems,l=r.stackGroups,A=r.dataStartIndex,c=r.dataEndIndex,u=t.children,d="".concat(i,"Id"),f=Dn(u,a),h={};return f&&f.length?h=VQe(t,{axes:f,graphicalItems:s,axisType:i,axisIdKey:d,stackGroups:l,dataStartIndex:A,dataEndIndex:c}):s&&s.length&&(h=WQe(t,{Axis:a,graphicalItems:s,axisType:i,axisIdKey:d,stackGroups:l,dataStartIndex:A,dataEndIndex:c})),h},zQe=function(t){var r=Xs(t),n=rs(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:$S(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:py(r,n)}},Z2=function(t){var r=t.children,n=t.defaultShowTooltip,i=Nn(r,_u),a=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(s=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!n}},qQe=function(t){return!t||!t.length?!1:t.some(function(r){var n=os(r&&r.type);return n&&n.indexOf("Bar")>=0})},eQ=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"}},YQe=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,s=a===void 0?{}:a,l=t.yAxisMap,A=l===void 0?{}:l,c=n.width,u=n.height,d=n.children,f=n.margin||{},h=Nn(d,_u),m=Nn(d,Ql),p=Object.keys(A).reduce(function(b,C){var j=A[C],_=j.orientation;return!j.mirror&&!j.hide?q(q({},b),{},Ue({},_,b[_]+j.width)):b},{left:f.left||0,right:f.right||0}),v=Object.keys(s).reduce(function(b,C){var j=s[C],_=j.orientation;return!j.mirror&&!j.hide?q(q({},b),{},Ue({},_,Rn(b,"".concat(_))+j.height)):b},{top:f.top||0,bottom:f.bottom||0}),x=q(q({},v),p),g=x.bottom;h&&(x.bottom+=h.props.height||_u.defaultProps.height),m&&r&&(x=hNe(x,i,n,r));var y=c-x.left-x.right,B=u-x.top-x.bottom;return q(q({brushBottom:g},x),{},{width:Math.max(y,0),height:Math.max(B,0)})},XQe=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},jN=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,A=t.axisComponents,c=t.legendContent,u=t.formatAxisMap,d=t.defaultProps,f=function(x,g){var y=g.graphicalItems,B=g.stackGroups,b=g.offset,C=g.updateId,j=g.dataStartIndex,_=g.dataEndIndex,E=x.barSize,I=x.layout,T=x.barGap,k=x.barCategoryGap,N=x.maxBarSize,F=eQ(I),M=F.numericAxisName,O=F.cateAxisName,U=qQe(y),P=[];return y.forEach(function(Q,$){var G=n0(x.data,{graphicalItems:[Q],dataStartIndex:j,dataEndIndex:_}),K=Q.type.defaultProps!==void 0?q(q({},Q.type.defaultProps),Q.props):Q.props,X=K.dataKey,ae=K.maxBarSize,ve=K["".concat(M,"Id")],Fe=K["".concat(O,"Id")],L={},pe=A.reduce(function(D,H){var te=g["".concat(H.axisType,"Map")],ie=K["".concat(H.axisType,"Id")];te&&te[ie]||H.axisType==="zAxis"||eA();var ne=te[ie];return q(q({},D),{},Ue(Ue({},H.axisType,ne),"".concat(H.axisType,"Ticks"),rs(ne)))},L),W=pe[O],ee=pe["".concat(O,"Ticks")],le=B&&B[ve]&&B[ve].hasStack&&jNe(Q,B[ve].stackGroups),V=os(Q.type).indexOf("Bar")>=0,Te=py(W,ee),Ne=[],Ze=U&&dNe({barSize:E,stackGroups:B,totalSize:XQe(pe,O)});if(V){var Ye,at,Br=$e(ae)?N:ae,pr=(Ye=(at=py(W,ee,!0))!==null&&at!==void 0?at:Br)!==null&&Ye!==void 0?Ye:0;Ne=fNe({barGap:T,barCategoryGap:k,bandSize:pr!==Te?pr:Te,sizeList:Ze[Fe],maxBarSize:Br}),pr!==Te&&(Ne=Ne.map(function(D){return q(q({},D),{},{position:q(q({},D.position),{},{offset:D.position.offset-pr/2})})}))}var R=Q&&Q.type&&Q.type.getComposedData;R&&P.push({props:q(q({},R(q(q({},pe),{},{displayedData:G,props:x,dataKey:X,item:Q,bandSize:Te,barPosition:Ne,offset:b,stackedData:le,layout:I,dataStartIndex:j,dataEndIndex:_}))),{},Ue(Ue(Ue({key:Q.key||"item-".concat($)},M,pe[M]),O,pe[O]),"animationId",C)),childIndex:fme(Q,x.children),item:Q})}),P},h=function(x,g){var y=x.props,B=x.dataStartIndex,b=x.dataEndIndex,C=x.updateId;if(!fk({props:y}))return null;var j=y.children,_=y.layout,E=y.stackOffset,I=y.data,T=y.reverseStackOrder,k=eQ(_),N=k.numericAxisName,F=k.cateAxisName,M=Dn(j,n),O=BNe(I,M,"".concat(N,"Id"),"".concat(F,"Id"),E,T),U=A.reduce(function(K,X){var ae="".concat(X.axisType,"Map");return q(q({},K),{},Ue({},ae,GQe(y,q(q({},X),{},{graphicalItems:M,stackGroups:X.axisType===N&&O,dataStartIndex:B,dataEndIndex:b}))))},{}),P=YQe(q(q({},U),{},{props:y,graphicalItems:M}),g==null?void 0:g.legendBBox);Object.keys(U).forEach(function(K){U[K]=u(y,U[K],P,K.replace("Map",""),r)});var Q=U["".concat(F,"Map")],$=zQe(Q),G=f(y,q(q({},U),{},{dataStartIndex:B,dataEndIndex:b,updateId:C,graphicalItems:M,stackGroups:O,offset:P}));return q(q({formattedGraphicalItems:G,graphicalItems:M,offset:P,stackGroups:O},$),U)},m=function(v){function x(g){var y,B,b;return OQe(this,x),b=PQe(this,x,[g]),Ue(b,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ue(b,"accessibilityManager",new mQe),Ue(b,"handleLegendBBoxUpdate",function(C){if(C){var j=b.state,_=j.dataStartIndex,E=j.dataEndIndex,I=j.updateId;b.setState(q({legendBBox:C},h({props:b.props,dataStartIndex:_,dataEndIndex:E,updateId:I},q(q({},b.state),{},{legendBBox:C}))))}}),Ue(b,"handleReceiveSyncEvent",function(C,j,_){if(b.props.syncId===C){if(_===b.eventEmitterSymbol&&typeof b.props.syncMethod!="function")return;b.applySyncEvent(j)}}),Ue(b,"handleBrushChange",function(C){var j=C.startIndex,_=C.endIndex;if(j!==b.state.dataStartIndex||_!==b.state.dataEndIndex){var E=b.state.updateId;b.setState(function(){return q({dataStartIndex:j,dataEndIndex:_},h({props:b.props,dataStartIndex:j,dataEndIndex:_,updateId:E},b.state))}),b.triggerSyncEvent({dataStartIndex:j,dataEndIndex:_})}}),Ue(b,"handleMouseEnter",function(C){var j=b.getMouseInfo(C);if(j){var _=q(q({},j),{},{isTooltipActive:!0});b.setState(_),b.triggerSyncEvent(_);var E=b.props.onMouseEnter;Me(E)&&E(_,C)}}),Ue(b,"triggeredAfterMouseMove",function(C){var j=b.getMouseInfo(C),_=j?q(q({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};b.setState(_),b.triggerSyncEvent(_);var E=b.props.onMouseMove;Me(E)&&E(_,C)}),Ue(b,"handleItemMouseEnter",function(C){b.setState(function(){return{isTooltipActive:!0,activeItem:C,activePayload:C.tooltipPayload,activeCoordinate:C.tooltipPosition||{x:C.cx,y:C.cy}}})}),Ue(b,"handleItemMouseLeave",function(){b.setState(function(){return{isTooltipActive:!1}})}),Ue(b,"handleMouseMove",function(C){C.persist(),b.throttleTriggeredAfterMouseMove(C)}),Ue(b,"handleMouseLeave",function(C){b.throttleTriggeredAfterMouseMove.cancel();var j={isTooltipActive:!1};b.setState(j),b.triggerSyncEvent(j);var _=b.props.onMouseLeave;Me(_)&&_(j,C)}),Ue(b,"handleOuterEvent",function(C){var j=dme(C),_=Rn(b.props,"".concat(j));if(j&&Me(_)){var E,I;/.*touch.*/i.test(j)?I=b.getMouseInfo(C.changedTouches[0]):I=b.getMouseInfo(C),_((E=I)!==null&&E!==void 0?E:{},C)}}),Ue(b,"handleClick",function(C){var j=b.getMouseInfo(C);if(j){var _=q(q({},j),{},{isTooltipActive:!0});b.setState(_),b.triggerSyncEvent(_);var E=b.props.onClick;Me(E)&&E(_,C)}}),Ue(b,"handleMouseDown",function(C){var j=b.props.onMouseDown;if(Me(j)){var _=b.getMouseInfo(C);j(_,C)}}),Ue(b,"handleMouseUp",function(C){var j=b.props.onMouseUp;if(Me(j)){var _=b.getMouseInfo(C);j(_,C)}}),Ue(b,"handleTouchMove",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&b.throttleTriggeredAfterMouseMove(C.changedTouches[0])}),Ue(b,"handleTouchStart",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&b.handleMouseDown(C.changedTouches[0])}),Ue(b,"handleTouchEnd",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&b.handleMouseUp(C.changedTouches[0])}),Ue(b,"handleDoubleClick",function(C){var j=b.props.onDoubleClick;if(Me(j)){var _=b.getMouseInfo(C);j(_,C)}}),Ue(b,"handleContextMenu",function(C){var j=b.props.onContextMenu;if(Me(j)){var _=b.getMouseInfo(C);j(_,C)}}),Ue(b,"triggerSyncEvent",function(C){b.props.syncId!==void 0&&aB.emit(sB,b.props.syncId,C,b.eventEmitterSymbol)}),Ue(b,"applySyncEvent",function(C){var j=b.props,_=j.layout,E=j.syncMethod,I=b.state.updateId,T=C.dataStartIndex,k=C.dataEndIndex;if(C.dataStartIndex!==void 0||C.dataEndIndex!==void 0)b.setState(q({dataStartIndex:T,dataEndIndex:k},h({props:b.props,dataStartIndex:T,dataEndIndex:k,updateId:I},b.state)));else if(C.activeTooltipIndex!==void 0){var N=C.chartX,F=C.chartY,M=C.activeTooltipIndex,O=b.state,U=O.offset,P=O.tooltipTicks;if(!U)return;if(typeof E=="function")M=E(P,C);else if(E==="value"){M=-1;for(var Q=0;Q<P.length;Q++)if(P[Q].value===C.activeLabel){M=Q;break}}var $=q(q({},U),{},{x:U.left,y:U.top}),G=Math.min(N,$.x+$.width),K=Math.min(F,$.y+$.height),X=P[M]&&P[M].value,ae=e_(b.state,b.props.data,M),ve=P[M]?{x:_==="horizontal"?P[M].coordinate:G,y:_==="horizontal"?K:P[M].coordinate}:m8;b.setState(q(q({},C),{},{activeLabel:X,activeCoordinate:ve,activePayload:ae,activeTooltipIndex:M}))}else b.setState(C)}),Ue(b,"renderCursor",function(C){var j,_=b.state,E=_.isTooltipActive,I=_.activeCoordinate,T=_.activePayload,k=_.offset,N=_.activeTooltipIndex,F=_.tooltipAxisBandSize,M=b.getTooltipEventType(),O=(j=C.props.active)!==null&&j!==void 0?j:E,U=b.props.layout,P=C.key||"_recharts-cursor";return S.createElement(BQe,{key:P,activeCoordinate:I,activePayload:T,activeTooltipIndex:N,chartName:r,element:C,isActive:O,layout:U,offset:k,tooltipAxisBandSize:F,tooltipEventType:M})}),Ue(b,"renderPolarAxis",function(C,j,_){var E=Rn(C,"type.axisType"),I=Rn(b.state,"".concat(E,"Map")),T=C.type.defaultProps,k=T!==void 0?q(q({},T),C.props):C.props,N=I&&I[k["".concat(E,"Id")]];return w.cloneElement(C,q(q({},N),{},{className:Ve(E,N.className),key:C.key||"".concat(j,"-").concat(_),ticks:rs(N,!0)}))}),Ue(b,"renderPolarGrid",function(C){var j=C.props,_=j.radialLines,E=j.polarAngles,I=j.polarRadius,T=b.state,k=T.radiusAxisMap,N=T.angleAxisMap,F=Xs(k),M=Xs(N),O=M.cx,U=M.cy,P=M.innerRadius,Q=M.outerRadius;return w.cloneElement(C,{polarAngles:Array.isArray(E)?E:rs(M,!0).map(function($){return $.coordinate}),polarRadius:Array.isArray(I)?I:rs(F,!0).map(function($){return $.coordinate}),cx:O,cy:U,innerRadius:P,outerRadius:Q,key:C.key||"polar-grid",radialLines:_})}),Ue(b,"renderLegend",function(){var C=b.state.formattedGraphicalItems,j=b.props,_=j.children,E=j.width,I=j.height,T=b.props.margin||{},k=E-(T.left||0)-(T.right||0),N=G6({children:_,formattedGraphicalItems:C,legendWidth:k,legendContent:c});if(!N)return null;var F=N.item,M=Y2(N,CQe);return w.cloneElement(F,q(q({},M),{},{chartWidth:E,chartHeight:I,margin:T,onBBoxUpdate:b.handleLegendBBoxUpdate}))}),Ue(b,"renderTooltip",function(){var C,j=b.props,_=j.children,E=j.accessibilityLayer,I=Nn(_,aa);if(!I)return null;var T=b.state,k=T.isTooltipActive,N=T.activeCoordinate,F=T.activePayload,M=T.activeLabel,O=T.offset,U=(C=I.props.active)!==null&&C!==void 0?C:k;return w.cloneElement(I,{viewBox:q(q({},O),{},{x:O.left,y:O.top}),active:U,label:M,payload:U?F:[],coordinate:N,accessibilityLayer:E})}),Ue(b,"renderBrush",function(C){var j=b.props,_=j.margin,E=j.data,I=b.state,T=I.offset,k=I.dataStartIndex,N=I.dataEndIndex,F=I.updateId;return w.cloneElement(C,{key:C.key||"_recharts-brush",onChange:Zm(b.handleBrushChange,C.props.onChange),data:E,x:oe(C.props.x)?C.props.x:T.left,y:oe(C.props.y)?C.props.y:T.top+T.height+T.brushBottom-(_.bottom||0),width:oe(C.props.width)?C.props.width:T.width,startIndex:k,endIndex:N,updateId:"brush-".concat(F)})}),Ue(b,"renderReferenceElement",function(C,j,_){if(!C)return null;var E=b,I=E.clipPathId,T=b.state,k=T.xAxisMap,N=T.yAxisMap,F=T.offset,M=C.type.defaultProps||{},O=C.props,U=O.xAxisId,P=U===void 0?M.xAxisId:U,Q=O.yAxisId,$=Q===void 0?M.yAxisId:Q;return w.cloneElement(C,{key:C.key||"".concat(j,"-").concat(_),xAxis:k[P],yAxis:N[$],viewBox:{x:F.left,y:F.top,width:F.width,height:F.height},clipPathId:I})}),Ue(b,"renderActivePoints",function(C){var j=C.item,_=C.activePoint,E=C.basePoint,I=C.childIndex,T=C.isRange,k=[],N=j.props.key,F=j.item.type.defaultProps!==void 0?q(q({},j.item.type.defaultProps),j.item.props):j.item.props,M=F.activeDot,O=F.dataKey,U=q(q({index:I,dataKey:O,cx:_.x,cy:_.y,r:4,fill:hN(j.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},Ie(M,!1)),$v(M));return k.push(x.renderActiveDot(M,U,"".concat(N,"-activePoint-").concat(I))),E?k.push(x.renderActiveDot(M,q(q({},U),{},{cx:E.x,cy:E.y}),"".concat(N,"-basePoint-").concat(I))):T&&k.push(null),k}),Ue(b,"renderGraphicChild",function(C,j,_){var E=b.filterFormatItem(C,j,_);if(!E)return null;var I=b.getTooltipEventType(),T=b.state,k=T.isTooltipActive,N=T.tooltipAxis,F=T.activeTooltipIndex,M=T.activeLabel,O=b.props.children,U=Nn(O,aa),P=E.props,Q=P.points,$=P.isRange,G=P.baseLine,K=E.item.type.defaultProps!==void 0?q(q({},E.item.type.defaultProps),E.item.props):E.item.props,X=K.activeDot,ae=K.hide,ve=K.activeBar,Fe=K.activeShape,L=!!(!ae&&k&&U&&(X||ve||Fe)),pe={};I!=="axis"&&U&&U.props.trigger==="click"?pe={onClick:Zm(b.handleItemMouseEnter,C.props.onClick)}:I!=="axis"&&(pe={onMouseLeave:Zm(b.handleItemMouseLeave,C.props.onMouseLeave),onMouseEnter:Zm(b.handleItemMouseEnter,C.props.onMouseEnter)});var W=w.cloneElement(C,q(q({},E.props),pe));function ee(H){return typeof N.dataKey=="function"?N.dataKey(H.payload):null}if(L)if(F>=0){var le,V;if(N.dataKey&&!N.allowDuplicatedCategory){var Te=typeof N.dataKey=="function"?ee:"payload.".concat(N.dataKey.toString());le=Lv(Q,Te,M),V=$&&G&&Lv(G,Te,M)}else le=Q==null?void 0:Q[F],V=$&&G&&G[F];if(Fe||ve){var Ne=C.props.activeIndex!==void 0?C.props.activeIndex:F;return[w.cloneElement(C,q(q(q({},E.props),pe),{},{activeIndex:Ne})),null,null]}if(!$e(le))return[W].concat(Uu(b.renderActivePoints({item:E,activePoint:le,basePoint:V,childIndex:F,isRange:$})))}else{var Ze,Ye=(Ze=b.getItemByXY(b.state.activeCoordinate))!==null&&Ze!==void 0?Ze:{graphicalItem:W},at=Ye.graphicalItem,Br=at.item,pr=Br===void 0?C:Br,R=at.childIndex,D=q(q(q({},E.props),pe),{},{activeIndex:R});return[w.cloneElement(pr,D),null,null]}return $?[W,null,null]:[W,null]}),Ue(b,"renderCustomized",function(C,j,_){return w.cloneElement(C,q(q({key:"recharts-customized-".concat(_)},b.props),b.state))}),Ue(b,"renderMap",{CartesianGrid:{handler:ig,once:!0},ReferenceArea:{handler:b.renderReferenceElement},ReferenceLine:{handler:ig},ReferenceDot:{handler:b.renderReferenceElement},XAxis:{handler:ig},YAxis:{handler:ig},Brush:{handler:b.renderBrush,once:!0},Bar:{handler:b.renderGraphicChild},Line:{handler:b.renderGraphicChild},Area:{handler:b.renderGraphicChild},Radar:{handler:b.renderGraphicChild},RadialBar:{handler:b.renderGraphicChild},Scatter:{handler:b.renderGraphicChild},Pie:{handler:b.renderGraphicChild},Funnel:{handler:b.renderGraphicChild},Tooltip:{handler:b.renderCursor,once:!0},PolarGrid:{handler:b.renderPolarGrid,once:!0},PolarAngleAxis:{handler:b.renderPolarAxis},PolarRadiusAxis:{handler:b.renderPolarAxis},Customized:{handler:b.renderCustomized}}),b.clipPathId="".concat((y=g.id)!==null&&y!==void 0?y:id("recharts"),"-clip"),b.throttleTriggeredAfterMouseMove=W5(b.triggeredAfterMouseMove,(B=g.throttleDelay)!==null&&B!==void 0?B:1e3/60),b.state={},b}return UQe(x,v),FQe(x,[{key:"componentDidMount",value:function(){var y,B;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(y=this.props.margin.left)!==null&&y!==void 0?y:0,top:(B=this.props.margin.top)!==null&&B!==void 0?B:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var y=this.props,B=y.children,b=y.data,C=y.height,j=y.layout,_=Nn(B,aa);if(_){var E=_.props.defaultIndex;if(!(typeof E!="number"||E<0||E>this.state.tooltipTicks.length-1)){var I=this.state.tooltipTicks[E]&&this.state.tooltipTicks[E].value,T=e_(this.state,b,E,I),k=this.state.tooltipTicks[E].coordinate,N=(this.state.offset.top+C)/2,F=j==="horizontal",M=F?{x:k,y:N}:{y:k,x:N},O=this.state.formattedGraphicalItems.find(function(P){var Q=P.item;return Q.type.name==="Scatter"});O&&(M=q(q({},M),O.props.points[E].tooltipPosition),T=O.props.points[E].tooltipPayload);var U={activeTooltipIndex:E,isTooltipActive:!0,activeLabel:I,activePayload:T,activeCoordinate:M};this.setState(U),this.renderCursor(_),this.accessibilityManager.setIndex(E)}}}},{key:"getSnapshotBeforeUpdate",value:function(y,B){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==B.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==y.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==y.margin){var b,C;this.accessibilityManager.setDetails({offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0}})}return null}},{key:"componentDidUpdate",value:function(y){N1([Nn(y.children,aa)],[Nn(this.props.children,aa)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var y=Nn(this.props.children,aa);if(y&&typeof y.props.shared=="boolean"){var B=y.props.shared?"axis":"item";return l.indexOf(B)>=0?B:a}return a}},{key:"getMouseInfo",value:function(y){if(!this.container)return null;var B=this.container,b=B.getBoundingClientRect(),C=R1e(b),j={chartX:Math.round(y.pageX-C.left),chartY:Math.round(y.pageY-C.top)},_=b.width/B.offsetWidth||1,E=this.inRange(j.chartX,j.chartY,_);if(!E)return null;var I=this.state,T=I.xAxisMap,k=I.yAxisMap,N=this.getTooltipEventType(),F=J2(this.state,this.props.data,this.props.layout,E);if(N!=="axis"&&T&&k){var M=Xs(T).scale,O=Xs(k).scale,U=M&&M.invert?M.invert(j.chartX):null,P=O&&O.invert?O.invert(j.chartY):null;return q(q({},j),{},{xValue:U,yValue:P},F)}return F?q(q({},j),F):null}},{key:"inRange",value:function(y,B){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,C=this.props.layout,j=y/b,_=B/b;if(C==="horizontal"||C==="vertical"){var E=this.state.offset,I=j>=E.left&&j<=E.left+E.width&&_>=E.top&&_<=E.top+E.height;return I?{x:j,y:_}:null}var T=this.state,k=T.angleAxisMap,N=T.radiusAxisMap;if(k&&N){var F=Xs(k);return BU({x:j,y:_},F)}return null}},{key:"parseEventsOfWrapper",value:function(){var y=this.props.children,B=this.getTooltipEventType(),b=Nn(y,aa),C={};b&&B==="axis"&&(b.props.trigger==="click"?C={onClick:this.handleClick}:C={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 j=$v(this.props,this.handleOuterEvent);return q(q({},j),C)}},{key:"addListener",value:function(){aB.on(sB,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){aB.removeListener(sB,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(y,B,b){for(var C=this.state.formattedGraphicalItems,j=0,_=C.length;j<_;j++){var E=C[j];if(E.item===y||E.props.key===y.key||B===os(E.item.type)&&b===E.childIndex)return E}return null}},{key:"renderClipPath",value:function(){var y=this.clipPathId,B=this.state.offset,b=B.left,C=B.top,j=B.height,_=B.width;return S.createElement("defs",null,S.createElement("clipPath",{id:y},S.createElement("rect",{x:b,y:C,height:j,width:_})))}},{key:"getXScales",value:function(){var y=this.state.xAxisMap;return y?Object.entries(y).reduce(function(B,b){var C=q2(b,2),j=C[0],_=C[1];return q(q({},B),{},Ue({},j,_.scale))},{}):null}},{key:"getYScales",value:function(){var y=this.state.yAxisMap;return y?Object.entries(y).reduce(function(B,b){var C=q2(b,2),j=C[0],_=C[1];return q(q({},B),{},Ue({},j,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(y){var B;return(B=this.state.xAxisMap)===null||B===void 0||(B=B[y])===null||B===void 0?void 0:B.scale}},{key:"getYScaleByAxisId",value:function(y){var B;return(B=this.state.yAxisMap)===null||B===void 0||(B=B[y])===null||B===void 0?void 0:B.scale}},{key:"getItemByXY",value:function(y){var B=this.state,b=B.formattedGraphicalItems,C=B.activeItem;if(b&&b.length)for(var j=0,_=b.length;j<_;j++){var E=b[j],I=E.props,T=E.item,k=T.type.defaultProps!==void 0?q(q({},T.type.defaultProps),T.props):T.props,N=os(T.type);if(N==="Bar"){var F=(I.data||[]).find(function(P){return wFe(y,P)});if(F)return{graphicalItem:E,payload:F}}else if(N==="RadialBar"){var M=(I.data||[]).find(function(P){return BU(y,P)});if(M)return{graphicalItem:E,payload:M}}else if(qw(E,C)||Yw(E,C)||Hh(E,C)){var O=Ake({graphicalItem:E,activeTooltipItem:C,itemData:k.data}),U=k.activeIndex===void 0?O:k.activeIndex;return{graphicalItem:q(q({},E),{},{childIndex:U}),payload:Hh(E,C)?k.data[O]:E.props.data[O]}}}return null}},{key:"render",value:function(){var y=this;if(!fk(this))return null;var B=this.props,b=B.children,C=B.className,j=B.width,_=B.height,E=B.style,I=B.compact,T=B.title,k=B.desc,N=Y2(B,jQe),F=Ie(N,!1);if(I)return S.createElement(T2,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement(T1,wc({},F,{width:j,height:_,title:T,desc:k}),this.renderClipPath(),pk(b,this.renderMap)));if(this.props.accessibilityLayer){var M,O;F.tabIndex=(M=this.props.tabIndex)!==null&&M!==void 0?M:0,F.role=(O=this.props.role)!==null&&O!==void 0?O:"application",F.onKeyDown=function(P){y.accessibilityManager.keyboardEvent(P)},F.onFocus=function(){y.accessibilityManager.focus()}}var U=this.parseEventsOfWrapper();return S.createElement(T2,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement("div",wc({className:Ve("recharts-wrapper",C),style:q({position:"relative",cursor:"default",width:j,height:_},E)},U,{ref:function(Q){y.container=Q}}),S.createElement(T1,wc({},F,{width:j,height:_,title:T,desc:k,style:$Qe}),this.renderClipPath(),pk(b,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(w.Component);Ue(m,"displayName",r),Ue(m,"defaultProps",q({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),Ue(m,"getDerivedStateFromProps",function(v,x){var g=v.dataKey,y=v.data,B=v.children,b=v.width,C=v.height,j=v.layout,_=v.stackOffset,E=v.margin,I=x.dataStartIndex,T=x.dataEndIndex;if(x.updateId===void 0){var k=Z2(v);return q(q(q({},k),{},{updateId:0},h(q(q({props:v},k),{},{updateId:0}),x)),{},{prevDataKey:g,prevData:y,prevWidth:b,prevHeight:C,prevLayout:j,prevStackOffset:_,prevMargin:E,prevChildren:B})}if(g!==x.prevDataKey||y!==x.prevData||b!==x.prevWidth||C!==x.prevHeight||j!==x.prevLayout||_!==x.prevStackOffset||!Ic(E,x.prevMargin)){var N=Z2(v),F={chartX:x.chartX,chartY:x.chartY,isTooltipActive:x.isTooltipActive},M=q(q({},J2(x,y,j)),{},{updateId:x.updateId+1}),O=q(q(q({},N),F),M);return q(q(q({},O),h(q({props:v},O),x)),{},{prevDataKey:g,prevData:y,prevWidth:b,prevHeight:C,prevLayout:j,prevStackOffset:_,prevMargin:E,prevChildren:B})}if(!N1(B,x.prevChildren)){var U,P,Q,$,G=Nn(B,_u),K=G&&(U=(P=G.props)===null||P===void 0?void 0:P.startIndex)!==null&&U!==void 0?U:I,X=G&&(Q=($=G.props)===null||$===void 0?void 0:$.endIndex)!==null&&Q!==void 0?Q:T,ae=K!==I||X!==T,ve=!$e(y),Fe=ve&&!ae?x.updateId:x.updateId+1;return q(q({updateId:Fe},h(q(q({props:v},x),{},{updateId:Fe,dataStartIndex:K,dataEndIndex:X}),x)),{},{prevChildren:B,dataStartIndex:K,dataEndIndex:X})}return null}),Ue(m,"renderActiveDot",function(v,x,g){var y;return w.isValidElement(v)?y=w.cloneElement(v,x):Me(v)?y=v(x):y=S.createElement(Kw,x),S.createElement(lt,{className:"recharts-active-dot",key:g},y)});var p=w.forwardRef(function(x,g){return S.createElement(m,wc({},x,{ref:g}))});return p.displayName=m.displayName,p},JQe=jN({chartName:"LineChart",GraphicalChild:Ip,axisComponents:[{axisType:"xAxis",AxisComp:xA},{axisType:"yAxis",AxisComp:wA}],formatAxisMap:UV}),v8=jN({chartName:"BarChart",GraphicalChild:zo,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:xA},{axisType:"yAxis",AxisComp:wA}],formatAxisMap:UV}),ZQe=jN({chartName:"PieChart",GraphicalChild:Ns,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:zw},{axisType:"radiusAxis",AxisComp:Ww}],formatAxisMap:INe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const eMe={light:"",dark:".dark"},y8=w.createContext(null);function x8(){const e=w.useContext(y8);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const Up=w.forwardRef(({id:e,className:t,children:r,config:n,...i},a)=>{const s=w.useId(),l=`chart-${e||s.replace(/:/g,"")}`;return o.jsx(y8.Provider,{value:{config:n},children:o.jsxs("div",{"data-chart":l,ref:a,className:ce("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...i,children:[o.jsx(tMe,{id:l,config:n}),o.jsx(Ep,{children:r})]})})});Up.displayName="Chart";const tMe=({id:e,config:t})=>{const r=Object.entries(t).filter(([n,i])=>i.theme||i.color);return r.length?o.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(eMe).map(([n,i])=>` 535${i} [data-chart=${e}] { 536${r.map(([a,s])=>{var A;const l=((A=s.theme)==null?void 0:A[n])||s.color;return l?` --color-${a}: ${l};`:null}).join(` 537`)} 538} 539`).join(` 540`)}}):null},i0=aa,_N=w.forwardRef(({active:e,payload:t,className:r,indicator:n="dot",hideLabel:i=!1,hideIndicator:a=!1,label:s,labelFormatter:l,labelClassName:A,formatter:c,color:u,nameKey:d,labelKey:f},h)=>{const{config:m}=x8(),p=w.useMemo(()=>{var b;if(i||!(t!=null&&t.length))return null;const[x]=t,g=`${f||x.dataKey||x.name||"value"}`,y=t_(m,x,g),B=!f&&typeof s=="string"?((b=m[s])==null?void 0:b.label)||s:y==null?void 0:y.label;return l?o.jsx("div",{className:ce("font-medium",A),children:l(B,t)}):B?o.jsx("div",{className:ce("font-medium",A),children:B}):null},[s,l,t,i,A,m,f]);if(!e||!(t!=null&&t.length))return null;const v=t.length===1&&n!=="dot";return o.jsxs("div",{ref:h,className:ce("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[v?null:p,o.jsx("div",{className:"grid gap-1.5",children:t.map((x,g)=>{const y=`${d||x.name||x.dataKey||"value"}`,B=t_(m,x,y),b=u||x.payload.fill||x.color;return o.jsx("div",{className:ce("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",n==="dot"&&"items-center"),children:c&&(x==null?void 0:x.value)!==void 0&&x.name?c(x.value,x.name,x,g,x.payload):o.jsxs(o.Fragment,{children:[B!=null&&B.icon?o.jsx(B.icon,{}):!a&&o.jsx("div",{className:ce("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":v&&n==="dashed"}),style:{"--color-bg":b,"--color-border":b}}),o.jsxs("div",{className:ce("flex flex-1 justify-between leading-none",v?"items-end":"items-center"),children:[o.jsxs("div",{className:"grid gap-1.5",children:[v?p:null,o.jsx("span",{className:"text-muted-foreground",children:(B==null?void 0:B.label)||x.name})]}),x.value&&o.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:x.value.toLocaleStr
540ing()})]})]})},x.dataKey)})})]})});_N.displayName="ChartTooltip";const rMe=w.forwardRef(({className:e,hideIcon:t=!1,payload:r,verticalAlign:n="bottom",nameKey:i},a)=>{const{config:s}=x8();return r!=null&&r.length?o.jsx("div",{ref:a,className:ce("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",e),children:r.map(l=>{const A=`${i||l.dataKey||"value"}`,c=t_(s,l,A);return o.jsxs("div",{className:ce("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[c!=null&&c.icon&&!t?o.jsx(c.icon,{}):o.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:l.color}}),c==null?void 0:c.label]},l.value)})}):null});rMe.displayName="ChartLegend";function t_(e,t,r){if(typeof t!="object"||t===null)return;const n="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let i=r;return r in t&&typeof t[r]=="string"?i=t[r]:n&&r in n&&typeof n[r]=="string"&&(i=n[r]),i in e?e[i]:e[r]}const nMe=({data:e})=>{const t={cost:{label:"Cost",color:"hsl(var(--primary))"}},r=e.length>1?e[e.length-1].cost-e[0].cost:0;return o.jsxs(J,{children:[o.jsxs(Ee,{children:[o.jsxs(Se,{className:"flex items-center justify-between",children:[o.jsx("span",{children:"Cost Trend Over Time"}),r!==0&&o.jsxs("span",{className:`flex items-center gap-1 text-sm ${r>0?"text-destructive":"text-green-600"}`,children:[r>0?o.jsx(ux,{className:"h-4 w-4"}):o.jsx(lE,{className:"h-4 w-4"}),r>0?"+":"",r.toFixed(2)]})]}),o.jsx($r,{children:"Daily meeting costs in selected period"})]}),o.jsx(Z,{children:o.jsx(Up,{config:t,className:"h-[300px] w-full",children:o.jsx(Ep,{width:"100%",height:"100%",children:o.jsxs(JQe,{data:e,children:[o.jsx(r0,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),o.jsx(xA,{dataKey:"date",stroke:"hsl(var(--muted-foreground))",fontSize:12,tickLine:!1,axisLine:!1}),o.jsx(wA,{stroke:"hsl(var(--muted-foreground))",fontSize:12,tickLine:!1,axisLine:!1,tickFormatter:n=>`$${n}`}),o.jsx(i0,{content:o.jsx(_N,{})}),o.jsx(Ip,{type:"monotone",dataKey:"cost",stroke:"hsl(var(--primary))",strokeWidth:2,dot:{fill:"hsl(var(--primary))",strokeWidth:2}})]})})})})]})},iMe=({data:e,loading:t})=>t?o.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:"Loading chart..."}):o.jsx(nMe,{data:e}),aMe=({data:e})=>{const t={meetings:{label:"Meetings",color:"hsl(var(--primary))"}},r=e.reduce((i,a)=>i+a.meetings,0),n=e.length>0?(r/e.length).toFixed(1):0;return o.jsxs(J,{children:[o.jsxs(Ee,{children:[o.jsxs(Se,{className:"flex items-center justify-between",children:[o.jsx("span",{children:"Meeting Frequency"}),o.jsxs("span",{className:"text-sm text-muted-foreground font-normal",children:["Avg: ",n,"/day"]})]}),o.jsx($r,{children:"Number of meetings per day"})]}),o.jsx(Z,{children:o.jsx(Up,{config:t,className:"h-[300px] w-full",children:o.jsx(Ep,{width:"100%",height:"100%",children:o.jsxs(v8,{data:e,children:[o.jsx(r0,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),o.jsx(xA,{dataKey:"date",stroke:"hsl(var(--muted-foreground))",fontSize:12,tickLine:!1,axisLine:!1}),o.jsx(wA,{stroke:"hsl(var(--muted-foreground))",fontSize:12,tickLine:!1,axisLine:!1}),o.jsx(i0,{content:o.jsx(_N,{})}),o.jsx(zo,{dataKey:"meetings",fill:"hsl(var(--primary))",radius:[8,8,0,0]})]})})})})]})},sMe=({data:e,loading:t})=>t?o.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:"Loading chart..."}):o.jsx(aMe,{data:e}),oMe=({data:e})=>{const t=e.reduce((n,i,a)=>({...n,[i.name]:{label:i.name,color:i.color}}),{}),r=e.reduce((n,i)=>n+i.value,0);return o.jsxs(J,{children:[o.jsxs(Ee,{children:[o.jsx(Se,{children:"Cost Breakdown by Rating"}),o.jsx($r,{children:"Meeting costs grouped by quality rating"})]}),o.jsx(Z,{children:o.jsx(Up,{config:t,className:"h-[300px] w-full",children:o.jsx(Ep,{width:"100%",height:"100%",children:o.jsxs(ZQe,{children:[o.jsx(i0,{content:({active:n,payload:i})=>{if(n&&i&&i.length){const a=i[0],s=r>0?(a.value/r*100).toFixed(1):0;return o.jsx("div",{className:"rounded-lg border bg-background p-2 shadow-sm",children:o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx("span",{className:"text-sm font-medium capitalize",children:a.name}),o.jsxs("span",{className:"text-sm text-muted-foreground",children:["$",a.value.toFixed(2)," (",s,"%)"]})]})})}return null}}),o.jsx(Ns,{data:e,cx:"50%",cy:"50%",labelLine:!1,label:({name:n,percent:i})=>`${n} ${(i*100).toFixed(0)}%`,outerRadius:100,fill:"hsl(var(--primary))",dataKey:"value",children:e.map((n,i)=>o.jsx(Sp,{fill:n.color},`cell-${i}`))}),o.jsx(Ql,{verticalAlign:"bottom",height:36,formatter:n=>o.jsx("span",{className:"capitalize text-sm",children:n})})]})})})})]})},lMe=({data:e,loading:t})=>t?o.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:"Loading chart..."}):o.jsx(oMe,{data:e});function rt(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Hn(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function zr(e,t){const r=rt(e);return isNaN(t)?Hn(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Gi(e,t){const r=rt(e);if(isNaN(t))return Hn(e,NaN);if(!t)return r;const n=r.getDate(),i=Hn(e,r.getTime());i.setMonth(r.getMonth()+t+1,0);const a=i.getDate();return n>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),n),r)}const EN=6048e5,AMe=864e5;let cMe={};function Qp(){return cMe}function _a(e,t){var l,A,c,u;const r=Qp(),n=(t==null?void 0:t.weekStartsOn)??((A=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:A.weekStartsOn)??r.weekStartsOn??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=rt(e),a=i.getDay(),s=(a<n?7:0)+a-n;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function rA(e){return _a(e,{weekStartsOn:1}
540)}function w8(e){const t=rt(e),r=t.getFullYear(),n=Hn(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const i=rA(n),a=Hn(e,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=rA(a);return t.getTime()>=i.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function Qu(e){const t=rt(e);return t.setHours(0,0,0,0),t}function $y(e){const t=rt(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function ha(e,t){const r=Qu(e),n=Qu(t),i=+r-$y(r),a=+n-$y(n);return Math.round((i-a)/AMe)}function uMe(e){const t=w8(e),r=Hn(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),rA(r)}function r_(e,t){const r=t*7;return zr(e,r)}function dMe(e,t){return Gi(e,t*12)}function fMe(e){let t;return e.forEach(function(r){const n=rt(r);(t===void 0||t<n||isNaN(Number(n)))&&(t=n)}),t||new Date(NaN)}function hMe(e){let t;return e.forEach(r=>{const n=rt(r);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)}function pn(e,t){const r=Qu(e),n=Qu(t);return+r==+n}function SN(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function pMe(e){if(!SN(e)&&typeof e!="number")return!1;const t=rt(e);return!isNaN(Number(t))}function Yh(e,t){const r=rt(e),n=rt(t),i=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return i*12+a}function mMe(e,t,r){const n=_a(e,r),i=_a(t,r),a=+n-$y(n),s=+i-$y(i);return Math.round((a-s)/EN)}function NN(e){const t=rt(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function xn(e){const t=rt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function b8(e){const t=rt(e),r=Hn(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function ON(e,t){var l,A,c,u;const r=Qp(),n=(t==null?void 0:t.weekStartsOn)??((A=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:A.weekStartsOn)??r.weekStartsOn??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=rt(e),a=i.getDay(),s=(a<n?-7:0)+6-(a-n);return i.setDate(i.getDate()+s),i.setHours(23,59,59,999),i}function B8(e){return ON(e,{weekStartsOn:1})}const gMe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},vMe=(e,t,r)=>{let n;const i=gMe[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function lB(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const yMe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xMe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wMe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},bMe={date:lB({formats:yMe,defaultWidth:"full"}),time:lB({formats:xMe,defaultWidth:"full"}),dateTime:lB({formats:wMe,defaultWidth:"full"})},BMe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},CMe=(e,t,r,n)=>BMe[e];function Kd(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let i;if(n==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):s;i=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[l]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const jMe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_Me={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},EMe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},SMe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
540ay","Saturday"]},NMe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},OMe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},TMe=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},FMe={ordinalNumber:TMe,era:Kd({values:jMe,defaultWidth:"wide"}),quarter:Kd({values:_Me,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Kd({values:EMe,defaultWidth:"wide"}),day:Kd({values:SMe,defaultWidth:"wide"}),dayPeriod:Kd({values:NMe,defaultWidth:"wide",formattingValues:OMe,defaultFormattingWidth:"wide"})};function Vd(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const s=a[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],A=Array.isArray(l)?kMe(l,d=>d.test(s)):PMe(l,d=>d.test(s));let c;c=e.valueCallback?e.valueCallback(A):A,c=r.valueCallback?r.valueCallback(c):c;const u=t.slice(s.length);return{value:c,rest:u}}}function PMe(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function kMe(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function IMe(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const i=n[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=r.valueCallback?r.valueCallback(s):s;const l=t.slice(i.length);return{value:s,rest:l}}}const UMe=/^(\d+)(th|st|nd|rd)?/i,QMe=/\d+/i,MMe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},RMe={any:[/^b/i,/^(a|c)/i]},DMe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},LMe={any:[/1/i,/2/i,/3/i,/4/i]},$Me={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},HMe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},KMe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},VMe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},WMe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},GMe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},zMe={ordinalNumber:IMe({matchPattern:UMe,parsePattern:QMe,valueCallback:e=>parseInt(e,10)}),era:Vd({matchPatterns:MMe,defaultMatchWidth:"wide",parsePatterns:RMe,defaultParseWidth:"any"}),quarter:Vd({matchPatterns:DMe,defaultMatchWidth:"wide",parsePatterns:LMe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Vd({matchPatterns:$Me,defaultMatchWidth:"wide",parsePatterns:HMe,defaultParseWidth:"any"}),day:Vd({matchPatterns:KMe,defaultMatchWidth:"wide",parsePatterns:VMe,defaultParseWidth:"any"}),dayPeriod:Vd({matchPatterns:WMe,defaultMatchWidth:"any",parsePatterns:GMe,defaultParseWidth:"any"})},C8={code:"en-US",formatDistance:vMe,formatLong:bMe,formatRelative:CMe,localize:FMe,match:zMe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function qMe(e){const t=rt(e);return ha(t,b8(t))+1}function j8(e){const t=rt(e),r=+rA(t)-+uMe(t);return Math.round(r/EN)+1}function _8(e,t){var u,d,f,h;const r=rt(e),n=r.getFullYear(),i=Qp(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,s=Hn(e,0);s.setFullYear(n+1,0,a),s.setHours(0,0,0,0);const l=_a(s,t),A=Hn(e,0);A.setFullYear(n,0,a),A.setHours(0,0,0,0);const c=_a(A,t);return r.getTime()>=l.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function YMe(e,t){var l,A,c,u;const r=Qp(),n=(t==null?void 0:t.firstWeekContainsDate)??((A=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:A.firstWeekContainsDate)??r.firstWeekContainsDate??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,i=_8(e,t),a=Hn(e,0);return a.setFullYear(i,0,n),a.setHours(0,0,0,0),_a(a,t)}function E8(e,t){const r=rt(e),n=+_a(r,t)-+YMe(r,t);return Math.round(n/EN)+1}function ft(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const Qs={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return ft(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):ft(r+1,2)},d(e,t){return ft(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return ft(e.getHours()%12||12,t.length)},H(e,t){return ft(e.getHours(),t.length)},m(e,t){return ft(e.getMinutes(),t.length)},s(e,t){return ft(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),i=Math.trunc(n*Math.pow(10,r-3));return ft(i,t.length)}},KA={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},tQ={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return Qs.y(e,t)},Y:function(e,t,r,n){const i=_8(e,n),a=i>0?i:1-i;if(t==="YY"){const s=a%100;return ft(s,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):ft(a,t.length)},R:function(e,t){const r=w8(e);return ft(r,t.length)},u:function(e,t){const r=e.getFullYear();return ft(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ft(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ft(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Qs.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return ft(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const i=E8(e,n);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):ft(i,t.length)},I:function(e,t,r){const n=j8(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):ft(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Qs.d(e,t)},D:function(e,t,r){const n=qMe(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):ft(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const i=e.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ft(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ft(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return ft(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(n===12?i=KA.noon:n===0?i=KA.midnight:i=n/12>
vendor: 4,717 bytes, line 540
540=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(n>=17?i=KA.evening:n>=12?i=KA.afternoon:n>=4?i=KA.morning:i=KA.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Qs.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Qs.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):ft(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):ft(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Qs.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Qs.s(e,t)},S:function(e,t){return Qs.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return nQ(n);case"XXXX":case"XX":return cl(n);case"XXXXX":case"XXX":default:return cl(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return nQ(n);case"xxxx":case"xx":return cl(n);case"xxxxx":case"xxx":default:return cl(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+rQ(n,":");case"OOOO":default:return"GMT"+cl(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+rQ(n,":");case"zzzz":default:return"GMT"+cl(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return ft(n,t.length)},T:function(e,t,r){const n=e.getTime();return ft(n,t.length)}};function rQ(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),a=n%60;return a===0?r+String(i):r+String(i)+t+ft(a,2)}function nQ(e,t){return e%60===0?(e>0?"-":"+")+ft(Math.abs(e)/60,2):cl(e,t)}function cl(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=ft(Math.trunc(n/60),2),a=ft(n%60,2);return r+i+t+a}const iQ=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},S8=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},XMe=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return iQ(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",iQ(n,t)).replace("{{time}}",S8(i,t))},JMe={p:S8,P:XMe},ZMe=/^D+$/,eRe=/^Y+$/,tRe=["D","DD","YY","YYYY"];function rRe(e){return ZMe.test(e)}function nRe(e){return eRe.test(e)}function iRe(e,t,r){const n=aRe(e,t,r);if(console.warn(n),tRe.includes(e))throw new RangeError(n)}function aRe(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const sRe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oRe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lRe=/^'([^]*?)'?$/,ARe=/''/g,cRe=/[a-zA-Z]/;function In(e,t,r){var u,d,f,h,m,p,v,x;const n=Qp(),i=(r==null?void 0:r.locale)??n.locale??C8,a=(r==null?void 0:r.firstWeekContainsDate)??((d=(u=r==null?void 0:r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(f=n.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,s=(r==null?void 0:r.weekStartsOn)??((p=(m=r==null?void 0:r.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??n.weekStartsOn??((x=(v=n.locale)==null?void 0:v.options)==null?void 0:x.weekStartsOn)??0,l=rt(e);if(!pMe(l))throw new RangeError("Invalid time value");let A=t.match(oRe).map(g=>{const y=g[0];if(y==="p"||y==="P"){const B=JMe[y];return B(g,i.formatLong)}return g}).join("").match(sRe).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const y=g[0];if(y==="'")return{isToken:!1,value:uRe(g)};if(tQ[y])return{isToken:!0,value:g};
540if(y.match(cRe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:g}});i.localize.preprocessor&&(A=i.localize.preprocessor(l,A));const c={firstWeekContainsDate:a,weekStartsOn:s,locale:i};return A.map(g=>{if(!g.isToken)return g.value;const y=g.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&nRe(y)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&rRe(y))&&iRe(y,t,String(e));const B=tQ[y[0]];return B(l,y,i.localize,c)}).join("")}function uRe(e){const t=e.match(lRe);return t?t[1].replace(ARe,"'"):e}function dRe(e){const t=rt(e),r=t.getFullYear(),n=t.getMonth(),i=Hn(e,0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function fRe(e){return Math.trunc(+rt(e)/1e3)}function hRe(e){const t=rt(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function pRe(e,t){return mMe(hRe(e),xn(e),t)+1}function n_(e,t){const r=rt(e),n=rt(t);return r.getTime()>n.getTime()}function N8(e,t){const r=rt(e),n=rt(t);return+r<+n}function TN(e,t){const r=rt(e),n=rt(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function mRe(e,t){const r=rt(e),n=rt(t);return r.getFullYear()===n.getFullYear()}function Mc(e,t){return zr(e,-t)}function AB(e,t){const r=rt(e),n=r.getFullYear(),i=r.getDate(),a=Hn(e,0);a.setFullYear(n,t,15),a.setHours(0,0,0,0);const s=dRe(a);return r.setMonth(t,Math.min(i,s)),r}function aQ(e,t){const r=rt(e);return isNaN(+r)?Hn(e,NaN):(r.setFullYear(t),r)}const gRe=e=>{const t=Math.floor(e/60),r=e%60;return t>0?`${t}h ${r}m`:`${r}m`},vRe=e=>{if(!e)return"ð";switch(e){case"excellent":return"ð";case"good":return"ð";case"okay":return"ð";case"poor":return"ð";case"waste":return"ðï¸";default:return"ð"}},yRe=({meetings:e,loading:t,onDelete:r})=>o.jsxs(J,{children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Recent Meetings"})}),o.jsx(Z,{children:t?o.jsx("div",{className:"text-center text-muted-foreground py-4",children:"Loading meetings..."}):e.length===0?o.jsx("div",{className:"text-center text-muted-foreground py-4",children:"No meetings found"}):o.jsx("div",{className:"space-y-4",children:e.slice(0,5).map(n=>o.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg hover:bg-accent/50 transition-colors",children:[o.jsxs("div",{className:"flex-1",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("h3",{className:"font-semibold",children:n.title}),o.jsx("span",{className:"text-xl",children:vRe(n.meeting_rating)})]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:[In(new Date(n.held_at),"PPp")," ⢠",gRe(n.duration)]}),o.jsxs("p",{className:"text-sm font-medium mt-1",children:["Cost: $",n.total_cost.toFixed(2)]})]}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx(z,{asChild:!0,variant:"outline",size:"sm",children:o.jsx(de,{to:`/meetings/${n.id}`,children:o.jsx(o7,{className:"h-4 w-4"})})}),o.jsx(z,{variant:"outline",size:"sm",onClick:()=>r(n.id),children:o.jsx(iv,{className:"h-4 w-4"})})]})]},n.id))})})]}),xRe=({isPro:e})=>o.jsxs(J,{children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Quick Actions"})}),o.jsx(Z,{children:o.jsxs("div",{className:"flex flex-wrap gap-2",children:[o.jsx(z,{asChild:!0,children:o.jsxs(de,{to:"/add-meeting",children:[o.jsx(yn,{className:"mr-2 h-4 w-4"}),"Add Meeting"]})}),o.jsx(z,{asChild:!0,variant:"outline",children:o.jsxs(de,{to:"/meetings",children:[o.jsx(cx,{className:"mr-2 h-4 w-4"}),"View All Meetings"]})}),e&&o.jsx(z,{asChild:!0,variant:"outline",children:o.jsxs(de,{to:"/projects",children:[o.jsx(aE,{className:"mr-2 h-4 w-4"}),"View Projects"]})})]})})]}),wRe=({data:e})=>{const t=n=>{switch(n.toLowerCase()){case"excellent":return"hsl(var(--primary))";case"good":return"hsl(142, 71%, 45%)";case"okay":return"hsl(var(--muted-foreground))";case"poor":return"hsl(25, 95%, 53%)";case"waste":return"hsl(var(--destructive))";default:return"hsl(var(--primary))"}},r=e.reduce((n,i)=>({...n,[i.rating]:{label:i.rating,color:t(i.rating)}}),{averageCost:{label:"Average Cost"}});return o.jsxs(J,{children:[o.jsxs(Ee,{children:[o.jsx(Se,{children:"Average Cost by Rating"}),o.jsx($r,{children:"Compare meeting costs across quality ratings"})]}),o.jsx(Z,{children:o.jsx(Up,{config:r,className:"h-[300px] w-full",children:o.jsx(Ep,{width:"100%",height:"100%",children:o.jsxs(v8,{data:e,margin:{top:20,right:30,left:2
5400,bottom:5},children:[o.jsx(r0,{strokeDasharray:"3 3",className:"stroke-muted"}),o.jsx(xA,{dataKey:"rating",className:"text-xs",angle:-45,textAnchor:"end",height:80}),o.jsx(wA,{className:"text-xs",tickFormatter:n=>`$${n.toFixed(0)}`}),o.jsx(i0,{content:({active:n,payload:i})=>{if(n&&i&&i.length){const a=i[0].payload;return o.jsx("div",{className:"rounded-lg border bg-background p-3 shadow-sm",children:o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx("span",{className:"text-sm font-medium",children:a.rating}),o.jsxs("span",{className:"text-sm text-muted-foreground",children:["Avg Cost: $",a.averageCost.toFixed(2)]}),o.jsxs("span",{className:"text-xs text-muted-foreground",children:[a.meetingCount," meeting",a.meetingCount!==1?"s":""]})]})})}return null}}),o.jsx(zo,{dataKey:"averageCost",radius:[8,8,0,0],children:e.map((n,i)=>o.jsx(Sp,{fill:t(n.rating)},`cell-${i}`))})]})})})})]})},bRe=({data:e,loading:t})=>t?o.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:"Loading chart..."}):!e||e.length===0?o.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:"No rating data available"}):o.jsx(wRe,{data:e}),BRe=({data:e,loading:t,onDeleteMeeting:r,currentLayoutId:n})=>{const{user:i,isPro:a}=Tr(),{toast:s}=ip(),[l,A]=w.useState(null),[c,u]=w.useState(!1),[d,f]=w.useState(!1);w.useEffect(()=>{h()},[i,n]);const h=async()=>{if(i)try{const x=await cde(i.id);A(x)}catch(x){console.error("Error loading layout:",x)}},m=async()=>{if(!(!i||!l))try{await ude(i.id,n,"My Custom Layout",l),f(!1),u(!1),s({title:"Layout saved",description:"Your dashboard layout has been saved."})}catch{s({title:"Error",description:"Failed to save layout.",variant:"destructive"})}},p=x=>{if(!l)return;const g=l.widgets.map(y=>y.widgetKey===x?{...y,visible:!y.visible}:y);A({...l,widgets:g}),f(!0)},v=x=>{if(!x.visible)return null;const g={loading:t};switch(x.widgetKey){case"total_meetings":return o.jsx(pde,{count:e.totalMeetings,...g});case"total_cost":return o.jsx(mde,{amount:e.totalCost,...g});case"average_cost":return o.jsx(gde,{amount:e.averageCost,...g});case"top_rating":return o.jsx(yde,{rating:e.topRating,...g});case"cost_trend":return o.jsx(iMe,{data:e.costTrendData,...g});case"meeting_frequency":return o.jsx(sMe,{data:e.frequencyData,...g});case"category_breakdown":return o.jsx(lMe,{data:e.categoryData,...g});case"rating_cost":return o.jsx(bRe,{data:e.ratingCostData,...g});case"recent_meetings":return o.jsx(yRe,{meetings:e.recentMeetings,loading:t,onDelete:r});case"quick_actions":return o.jsx(xRe,{isPro:a});default:return null}};return l?o.jsxs("div",{className:"space-y-4",children:[c&&o.jsxs("div",{className:"flex items-center justify-between p-4 bg-primary/10 rounded-lg border border-primary",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(yC,{className:"h-5 w-5"}),o.jsx("span",{className:"font-medium",children:"Edit Mode"}),o.jsx("span",{className:"text-sm text-muted-foreground",children:"Click widgets to show/hide them"})]}),o.jsxs("div",{className:"flex gap-2",children:[d&&o.jsxs(z,{onClick:m,children:[o.jsx(g7,{className:"mr-2 h-4 w-4"}),"Save Changes"]}),o.jsxs(z,{variant:"outline",onClick:()=>{u(!1),h(),f(!1)},children:[o.jsx($i,{className:"mr-2 h-4 w-4"}),"Cancel"]})]})]}),o.jsx("div",{className:"grid gap-4",style:{gridTemplateColumns:`repeat(${l.gridSettings.columns}, 1fr)`},children:l.widgets.map(x=>o.jsxs("div",{className:`relative transition-opacity ${x.visible?"":"opacity-50"}`,style:{gridColumn:`span ${x.size.width}`,gridRow:`span ${x.size.height}`},children:[c&&o.jsx("div",{className:"absolute top-2 right-2 z-10 flex gap-1",children:o.jsx(z,{size:"sm",variant:"secondary",onClick:()=>p(x.widgetKey),children:x.visible?o.jsx(cT,{className:"h-3 w-3"}):o.jsx(cT,{className:"h-3 w-3"})})}),v(x)]},x.widgetKey))}),!c&&o.jsxs(z,{variant:"outline",onClick:()=>u(!0),className:"mt-4",children:[o.jsx(yC,{className:"mr-2 h-4 w-4"}),"Customize Dashboard"]})]}):o.jsx("div",{children:"Loading dashboard..."})},CRe=()=>{var y,B;const{user:e,isPro:t}=Tr(),{toast:r}=ip(),[n,i]=w.useState({totalMeetings:0,totalCost:0,averageCost:0,topRating:"N/A"}),[a,s]=w.useState([]),[l,A]=w.useState(!0),[c,u]=w.useState("30d"),[d,f]=w.useState(null),[h,m]=w.useState({costTrend:[],frequency:[],breakdown:[],ratingCost:[]});w.useEffect(()=>{e&&p()},[e,c]);const p=async()=>{A(!0);const b=new Date;let C=new Date(0);c==="7d"?C=Mc(b,7):c==="30d"?C=Mc(b,30):c==="90d"&&(C=Mc(b,90));const j=Be.from("meetings").select("*").order("held_at",{ascending:!1});c!=="all"&&j.gte("held_at",C.toISOString());const{data:_}=await j;if(_){const E=_.length,I=_.reduce((U,P)=>U+parseFloat(P.total_cost.toString()),0),T=E>0?I/E:0,k=new Map;_.forEach(U=>{U.meeting_rating&&k.set(U.meeting_rating,(k.get(U.meeting_rating)||0)+1)});let N="N/A",F=0;
540k.forEach((U,P)=>{U>F&&(F=U,N=P)});const M=new Map;_.forEach(U=>{if(U.meeting_rating){const P=M.get(U.meeting_rating)||{totalCost:0,count:0};M.set(U.meeting_rating,{totalCost:P.totalCost+parseFloat(U.total_cost.toString()),count:P.count+1})}});const O=Array.from(M.entries()).map(([U,P])=>({rating:U.charAt(0).toUpperCase()+U.slice(1),averageCost:P.totalCost/P.count,meetingCount:P.count})).sort((U,P)=>P.averageCost-U.averageCost);i({totalMeetings:E,totalCost:I,averageCost:T,topRating:N}),s(_.slice(0,10)),v(_,O)}A(!1)},v=(b,C)=>{const j=new Map;b.forEach(N=>{const F=In(new Date(N.held_at),"MMM dd"),M=j.get(F)||{cost:0,meetings:0};j.set(F,{cost:M.cost+parseFloat(N.total_cost.toString()),meetings:M.meetings+1})});const _=Array.from(j.entries()).map(([N,F])=>({date:N,cost:F.cost,meetings:F.meetings})).reverse().slice(-14),E=_.map(({date:N,meetings:F})=>({date:N,meetings:F})),I={waste:"hsl(var(--destructive))","below-average":"hsl(25, 95%, 53%)",neutral:"hsl(var(--muted-foreground))",productive:"hsl(142, 71%, 45%)",valuable:"hsl(var(--primary))"},T=new Map;b.forEach(N=>{if(N.meeting_rating){const F=T.get(N.meeting_rating)||0;T.set(N.meeting_rating,F+parseFloat(N.total_cost.toString()))}});const k=Array.from(T.entries()).map(([N,F])=>({name:N,value:F,color:I[N]||"hsl(var(--primary))"})).filter(N=>N.value>0);m({costTrend:_,frequency:E,breakdown:k,ratingCost:C})},x=async b=>{if(confirm("Are you sure you want to delete this meeting?"))try{await Be.from("meetings").delete().eq("id",b),r({title:"Meeting deleted",description:"The meeting has been successfully deleted."}),p()}catch{r({title:"Error",description:"Failed to delete meeting.",variant:"destructive"})}},g={totalMeetings:n.totalMeetings,totalCost:n.totalCost,averageCost:n.averageCost,topRating:n.topRating,costTrendData:h.costTrend,frequencyData:h.frequency,categoryData:h.breakdown,ratingCostData:h.ratingCost,recentMeetings:a};return o.jsx(fi,{children:o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Qt,{}),o.jsx(Ba,{}),o.jsxs("main",{className:"container mx-auto px-4 py-8",children:[o.jsxs("div",{className:"mb-8",children:[o.jsxs("h1",{className:"text-4xl font-bold mb-2",children:["Welcome back, ",((y=e==null?void 0:e.user_metadata)==null?void 0:y.full_name)||((B=e==null?void 0:e.email)==null?void 0:B.split("@")[0]),"!"]}),o.jsx("p",{className:"text-muted-foreground",children:"Here's an overview of your meeting costs"})]}),o.jsx(vS,{}),o.jsxs("div",{className:"flex justify-between items-center mb-6",children:[o.jsx(hde,{currentLayoutId:d,onLayoutChange:f,onEditMode:()=>{}}),o.jsx(lde,{value:c,onChange:u})]}),o.jsx(BRe,{data:g,loading:l,onDeleteMeeting:x,currentLayoutId:d})]})]})})},jRe=()=>{Do();const[e,t]=w.useState([]),[r,n]=w.useState([]),[i,a]=w.useState(""),[s,l]=w.useState("all"),[A,c]=w.useState(!0);w.useEffect(()=>{u()},[]),w.useEffect(()=>{d()},[i,s,e]);const u=async()=>{c(!0);const{data:p}=await Be.from("meetings").select("*").order("held_at",{ascending:!1});p&&t(p),c(!1)},d=()=>{let p=e;i&&(p=p.filter(v=>v.title.toLowerCase().includes(i.toLowerCase()))),s!=="all"&&(p=p.filter(v=>v.meeting_rating===s)),n(p)},f=p=>{const v=Math.floor(p/60),x=p%60;return v>0?`${v}h ${x}m`:`${x}m`},h=p=>p&&{waste:"ð¤","below-average":"ð",neutral:"ð¤·",productive:"ð",valuable:"â"}[p]||"â",m=async p=>{confirm("Are you sure you want to delete this meeting?")&&(await Be.from("meetings").delete().eq("id",p),u())};return o.jsx(fi,{children:o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Qt,{}),o.jsx(Ba,{}),o.jsxs("main",{className:"container mx-auto px-4 py-8",children:[o.jsxs("div",{className:"flex justify-between items-center mb-8",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"text-4xl font-bold mb-2",children:"My Meetings"}),o.jsx("p",{className:"text-muted-foreground",children:"View and manage all your tracked meetings"})]}),o.jsx(z,{asChild:!0,children:o.jsxs(de,{to:"/meetings/add",children:[o.jsx(yn,{className:"mr-2 h-4 w-4"}),"Add Past Meeting"]})})]}),o.jsx(vS,{}),o.jsx(J,{className:"mb-6",children:o.jsx(Z,{className:"pt-6",children:o.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[o.jsxs("div",{className:"flex-1 relative",children:[o.jsx(dD,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),o.jsx(_e,{placeholder:"Search meetings...",value:i,onChange:p=>a(p.target.value),className:"pl-10"})]}),o.jsxs(Cs,{value:s,onValueChange:l,children:[o.jsx(Sa,{className:"w-full md:w-[200px]",children:o.jsx(js,{placeholder:"Filter by rating"})}),o.jsxs(Na,{children:[o.jsx(et,{value:"all",children:"All Ratings"}),o.jsx(et,{value:"waste",children:"ð¤ Waste of Time"}),o.jsx(et,{value:"below-average",children:"ð Below Average"}),o.jsx(et,{value:"neutral",children:"𤷠Neutral"}),o.jsx(et,{value:"productive",children:"ð Productive"}),o.jsx(et,{value:"valuable",children:"â Extremely Valuable"})]})]})]})})}),A?o.jsx(J,{children:o.jsx(Z,{className:"py-12 text-center text-muted-foreground",children:"Loading meetings..."})}):r.length===0?o.jsx(J,{children:o.jsxs(Z,{className:"py-12 text-center",children:[o.jsx("p",{className:"text-lg font-medium mb-2",children:"No meetings found"}),o.jsx("p",{className:"text-muted-foreground mb-4",children:e.length===0?"Start tracking your first meeting!":"Try adjusting your filters"}),o.jsx(z,{asChild:!0,children:o.jsx(de,{to:"/calculator",children:"Start New Meeting"})})]})}):o.jsx("div",{className:"grid gap-4",children:r.map(p=>o.jsxs(J,{className:"hover:shadow-lg transition-shadow",children:[o.jsx(Ee,{children:o.jsxs("div",{className:"flex justify-between items-start",children:[o.jsxs("div",{className:"flex-1",children:[o.jsx(Se,{className:"mb-2",children:p.title}),o.jsxs("div",{className:"flex flex-wrap gap-4 text-sm text-muted-foreground",children:[o.jsx("span",{children:new Date(p.held_at).toLocaleDateString()}),o.jsx("span",{children:f(p.duration)}),o.jsxs("span",{className:"font-semibold text-foreground",children:["$",parseFloat(p.total_cost.toString()).toFixed(2)]})]})]}),o.jsx("div",{className:"flex items-center gap-3",children:o.jsx("span",{className:"text-3xl",children:h(p.meeting_rating)})})]})}),o.jsx(Z,{children:o.jsxs("div",{className:"flex gap-2",children:[o.jsx(z,{asChild:!0,variant:"outline",size:"sm",children:o.jsx(de,{to:`/meetings/${p.id}`,children:"View Details"})}),o.jsx(z,{variant:"ghost",size:"sm",onClick:()=>m(p.id),children:"Delete"})]})})]}
540,p.id))})]})]})})},_Re=()=>{const{id:e}=jE(),t=Wn(),[r,n]=w.useState(null),[i,a]=w.useState([]),[s,l]=w.useState(""),[A,c]=w.useState(null),[u,d]=w.useState(!0),[f,h]=w.useState(!1),[m,p]=w.useState({title:"",project_id:null,project_value:""}),v=[{value:"waste",emoji:"ð¤",label:"Waste of Time",color:"hover:bg-red-50 hover:border-red-300",selectedColor:"bg-red-50 border-red-500"},{value:"below-average",emoji:"ð",label:"Below Average",color:"hover:bg-orange-50 hover:border-orange-300",selectedColor:"bg-orange-50 border-orange-500"},{value:"neutral",emoji:"ð¤·",label:"Neutral",color:"hover:bg-yellow-50 hover:border-yellow-300",selectedColor:"bg-yellow-50 border-yellow-500"},{value:"productive",emoji:"ð",label:"Productive",color:"hover:bg-green-50 hover:border-green-300",selectedColor:"bg-green-50 border-green-500"},{value:"valuable",emoji:"â",label:"Extremely Valuable",color:"hover:bg-green-100 hover:border-green-400",selectedColor:"bg-green-100 border-green-600"}];w.useEffect(()=>{e&&x()},[e]);const x=async()=>{var k;d(!0);const{data:T}=await Be.from("meetings").select("*").eq("id",e).single();if(T){if(n(T),l(T.notes||""),c(T.meeting_rating),p({title:T.title,project_id:T.project_id,project_value:((k=T.project_value)==null?void 0:k.toString())||""}),!T.quick_mode){const{data:N}=await Be.from("meeting_attendees").select("*").eq("meeting_id",e);N&&a(N)}}else be({title:"Meeting not found",description:"This meeting may have been deleted.",variant:"destructive"}),t("/meetings");d(!1)},g=async T=>{c(T),await Be.from("meetings").update({meeting_rating:T}).eq("id",e),be({title:"Rating updated!"})},y=async()=>{await Be.from("meetings").update({notes:s}).eq("id",e),be({title:"Notes saved!"})},B=async()=>{confirm("Are you sure you want to delete this meeting?")&&(await Be.from("meetings").delete().eq("id",e),be({title:"Meeting deleted!"}),t("/meetings"))},b=async()=>{try{const{error:T}=await Be.from("meetings").update({title:m.title,project_id:m.project_id,project_value:m.project_value?parseFloat(m.project_value):null}).eq("id",e);if(T)throw T;be({title:"Meeting updated successfully!"}),h(!1),x()}catch(T){console.error("Error updating meeting:",T),be({title:"Error updating meeting",description:"Please try again.",variant:"destructive"})}},C=T=>{const k=Math.floor(T/3600),N=Math.floor(T%3600/60),F=T%60;return`${k.toString().padStart(2,"0")}:${N.toString().padStart(2,"0")}:${F.toString().padStart(2,"0")}`},j=()=>{if(!A||!r)return null;if(A==="waste"||A==="below-average")return o.jsxs("div",{className:"mt-4 p-4 bg-destructive/10 border border-destructive/20 rounded-lg space-y-2",children:[o.jsxs("p",{className:"font-semibold text-destructive",children:["â ï¸ This meeting cost $",r.total_cost," and didn't deliver value."]}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Consider:"}),o.jsxs("ul",{className:"text-sm space-y-1 ml-4 list-disc",children:[o.jsx("li",{children:"Could this have been an email or async update?"}),o.jsx("li",{children:"Could you reduce the number of attendees?"}),o.jsx("li",{children:"Should this meeting be shorter?"})]})]});if(A==="productive"||A==="valuable"){const T=r.project_value?r.total_cost/r.project_value*100:0;return o.jsxs("div",{className:"mt-4 p-4 bg-green-50 border border-green-200 rounded-lg space-y-2",children:[o.jsxs("p",{className:"font-semibold text-green-900",children:["â
Great! This $",r.total_cost," investment delivered value."]}),r.project_value&&r.project_value>0&&o.jsxs("p",{className:"text-sm text-muted-foreground",children:["The decisions made likely saved or earned more than the ",T.toFixed(1),"% of project budget spent."]}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Keep this meeting format for similar topics."})]})}return null};if(u)return o.jsx(fi,{children:o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Qt,{}),o.jsx(Ba,{}),o.jsx("main",{className:"container mx-auto px-4 py-8",children:o.jsx("p",{className:"text-center text-muted-foreground",children:"Loading..."})})]})});if(!r)return null;const _=Math.floor(r.total_cost/5),E=(r.total_cost*52).toFixed(2),I=r.project_value?r.total_cost/r.project_value*100:0;return o.jsx(fi,{children:o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Qt,{}),o.jsx(Ba,{}),o.jsxs("main",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[o.jsx(z,{asChild:!0,variant:"ghost",className:"mb-6",children:o.jsxs(de,{to:"/meetings",children:[o.jsx(Bs,{className:"mr-2 h-4 w-4"}),"Back to Meetings"]})}),o.jsxs("div",{className:"mb-6",children:[o.jsx("h1",{className:"text-4xl font-bold mb-2",children:r.title}),o.jsxs("p",{className:"text-muted-foreground",children:["Held on ",new Date(r.held_at).toLocaleDateString()," at ",new Date(r.held_at).toLocaleTimeString()]})]}),o.jsxs(J,{className:"mb-6 shadow-card",children:[o.jsx(Ee,{className:"bg-gradient-to-r from-primary/10 to-primary/5",children:o.jsx(Se,{className:"text-3xl",children:"Meeting Summary"})}),o.jsx(Z,{className:"pt-6",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsx(so,{className:"h-8 w-8 text-primary mt-1"}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm text-muted-foreground",children:"Duration"}),o.jsx("p",{className:"text-2xl font-bold",children:C(r.duration)})]})]}),o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsx(eu,{className:"h-8 w-8 text-primary mt-1"}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm text-muted-foreground",children:"Total Cost"}),o.jsxs("p",{className:"text-2xl font-bold",children:["$",r.total_cost]})]})]}),o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsx(hs,{className:"h-8 w-8 text-primary mt-1"}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm text-muted-foreground",children:"Attendees"}),o.jsx("p",{className:"text-2xl font-bold",children:r.quick_mode?r.quick_attendee_count:i.length})]})]})]})})]}),o.jsxs(J,{className:"mb-6 shadow-card",children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Was This Meeting Worth It?"})}),o.jsxs(Z,{children:[o.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-5 ga
540p-3",children:v.map(T=>o.jsxs("button",{onClick:()=>g(T.value),className:`p-4 border-2 rounded-lg transition-all cursor-pointer text-center ${A===T.value?T.selectedColor:`border-border ${T.color}`}`,children:[o.jsx("div",{className:"text-4xl mb-2",children:T.emoji}),o.jsx("div",{className:"text-xs font-medium leading-tight",children:T.label})]},T.value))}),j()]})]}),o.jsxs(J,{className:"mb-6",children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Cost Breakdown"})}),o.jsx(Z,{className:"space-y-4",children:r.quick_mode?o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{className:"text-muted-foreground",children:"Attendees:"}),o.jsx("span",{className:"font-medium",children:r.quick_attendee_count})]}),o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{className:"text-muted-foreground",children:"Average Hourly Rate:"}),o.jsxs("span",{className:"font-medium",children:["$",r.quick_avg_rate]})]}),o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{className:"text-muted-foreground",children:"Cost per Attendee:"}),o.jsxs("span",{className:"font-medium",children:["$",(r.total_cost/(r.quick_attendee_count||1)).toFixed(2)]})]})]}):o.jsx("div",{className:"space-y-3",children:i.map(T=>o.jsxs("div",{className:"flex justify-between items-center p-3 bg-accent rounded-lg",children:[o.jsxs("div",{children:[o.jsx("p",{className:"font-medium",children:T.name}),o.jsx("p",{className:"text-sm text-muted-foreground",children:T.role})]}),o.jsxs("div",{className:"text-right",children:[o.jsxs("p",{className:"font-medium",children:["$",(T.hourly_rate/3600*r.duration).toFixed(2)]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["$",T.hourly_rate,"/hr"]})]})]},T.id))})})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-6",children:[o.jsxs(J,{children:[o.jsx(Ee,{children:o.jsxs(Se,{className:"flex items-center gap-2",children:[o.jsx(a7,{className:"h-5 w-5"}),"Coffee Equivalent"]})}),o.jsxs(Z,{children:[o.jsxs("p",{className:"text-3xl font-bold mb-2",children:["â Ã ",_]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["This meeting cost the equivalent of ",_," cups of coffee"]})]})]}),o.jsxs(J,{children:[o.jsx(Ee,{children:o.jsxs(Se,{className:"flex items-center gap-2",children:[o.jsx(lE,{className:"h-5 w-5"}),"Annual Impact"]})}),o.jsxs(Z,{children:[o.jsxs("p",{className:"text-3xl font-bold mb-2",children:["$",E]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["If held weekly, this would cost $",E," per year"]})]})]})]}),r.project_value&&r.project_value>0&&o.jsxs(J,{className:"mb-6",children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Project Impact"})}),o.jsx(Z,{children:o.jsx("div",{className:"space-y-4",children:o.jsxs("div",{children:[o.jsxs("div",{className:"flex justify-between mb-2",children:[o.jsxs("span",{className:"text-sm font-medium",children:[I.toFixed(2),"% of project value"]}),o.jsxs("span",{className:"text-sm text-muted-foreground",children:["$",r.total_cost," / $",r.project_value]})]}),o.jsx("div",{className:"w-full bg-secondary rounded-full h-2",children:o.jsx("div",{className:`h-2 rounded-full ${I<1?"bg-green-500":I<5?"bg-yellow-500":"bg-red-500"}`,style:{width:`${Math.min(I,100)}%`}})})]})})})]}),o.jsxs(J,{className:"mb-6",children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Meeting Notes"})}),o.jsxs(Z,{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx(he,{htmlFor:"notes",children:"Notes"}),o.jsx(fA,{id:"notes",value:s,onChange:T=>l(T.target.value),placeholder:"Add notes about this meeting...",rows:5})]}),o.jsx(z,{onClick:y,children:"Save Notes"})]})]}),o.jsxs("div",{className:"flex gap-3 flex-wrap",children:[o.jsx(q3,{meetingTitle:r.title,duration:r.duration,attendeeCount:r.quick_mode?r.quick_attendee_count:i.length,totalCost:r.total_cost,rating:r.meeting_rating}),o.jsxs(qE,{open:f,onOpenChange:h,children:[o.jsx(YE,{asChild:!0,children:o.jsxs(z,{variant:"outline",className:"flex-1",children:[o.jsx(fD,{className:"mr-2 h-4 w-4"}),"Edit Meeting"]})}),o.jsxs(Wx,{className:"overflow-y-auto",children:[o.jsxs(Gx,{children:[o.jsx(zx,{children:"Edit Meeting"}),o.jsx(XE,{children:"Update meeting details and assign to a project"})]}
540),o.jsxs("div",{className:"space-y-4 mt-6",children:[o.jsxs("div",{children:[o.jsx(he,{htmlFor:"edit-title",children:"Meeting Title"}),o.jsx(_e,{id:"edit-title",value:m.title,onChange:T=>p({...m,title:T.target.value}),placeholder:"Enter meeting title"})]}),o.jsxs("div",{children:[o.jsx(he,{children:"Assign to Project"}),o.jsx(tS,{value:m.project_id||"",onChange:T=>p({...m,project_id:T||null})})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"edit-project-value",children:"Project Value (Optional)"}),o.jsx(_e,{id:"edit-project-value",type:"number",step:"0.01",value:m.project_value,onChange:T=>p({...m,project_value:T.target.value}),placeholder:"Enter project value"})]}),o.jsx(z,{onClick:b,className:"w-full",children:"Save Changes"})]})]})]}),o.jsx(z,{asChild:!0,variant:"outline",children:o.jsx(de,{to:"/calculator",children:"Start New Meeting"})}),o.jsx(z,{variant:"destructive",onClick:B,children:"Delete Meeting"})]})]})]})})},ERe=()=>{const{user:e}=Tr(),t=Wn(),[r,n]=w.useState(""),[i,a]=w.useState(""),[s,l]=w.useState(0),[A,c]=w.useState(30),[u,d]=w.useState(0),[f,h]=w.useState(!1),[m,p]=w.useState(!0),[v,x]=w.useState(5),[g,y]=w.useState(75),[B,b]=w.useState([{id:"1",name:"",role:"",hourlyRate:75}]),[C,j]=w.useState(""),[_,E]=w.useState(!1),[I,T]=w.useState(null),[k,N]=w.useState(!1),[F,M]=w.useState([]),[O,U]=w.useState("");w.useEffect(()=>{P()},[]);const P=async()=>{const{data:L}=await Be.from("meeting_templates").select("*").order("is_default",{ascending:!1}).order("name");L&&M(L)},Q=async L=>{if(!L)return;const{data:pe}=await Be.from("template_attendees").select("*").eq("template_id",L),W=F.find(ee=>ee.id===L);if(W&&pe){const ee=Math.floor(W.default_duration/60),le=W.default_duration%60;l(ee),c(le),p(!1);const V=pe.map(Te=>({id:Date.now().toString()+Math.random(),name:Te.name,role:Te.role,hourlyRate:parseFloat(Te.hourly_rate.toString())}));b(V),N(!1),be({title:"Template loaded",description:`Loaded "${W.name}" with ${pe.length} attendees`})}},$=()=>{b([...B,{id:Date.now().toString(),name:"",role:"",hourlyRate:75}])},G=L=>{b(B.filter(pe=>pe.id!==L))},K=(L,pe,W)=>{b(B.map(ee=>ee.id===L?{...ee,[pe]:W}:ee))},X=()=>{const L=s*3600+A*60;return m?v*g*L/3600:B.reduce((pe,W)=>pe+W.hourlyRate*L/3600,0)},ae=L=>{if(L.length>0&&!m){const pe=L.map(W=>({id:Date.now().toString()+Math.random(),name:W.name,role:W.role,hourlyRate:W.hourly_rate}));b(pe),N(!1),be({title:"Team members loaded",description:`${L.length} team member(s) added from project`})}},ve=async()=>{if(!I)return;const{data:L,error:pe}=await Be.from("project_members").select("*").eq("project_id",I);if(pe){be({title:"Error loading members",description:pe.message,variant:"destructive"});return}if(L&&L.length>0){const W=L.map(ee=>({id:Date.now().toString()+Math.random(),name:ee.name,role:ee.role,hourlyRate:parseFloat(ee.hourly_rate.toString())}));b(W),N(!1),be({title:"Team members loaded",description:`${L.length} team member(s) added from project`})}},Fe=async()=>{var ee,le;try{Lne.parse({title:r,heldAt:i,hours:s,minutes:A,notes:C,projectValue:f?u:void 0,quickAttendeeCount:m?v:void 0,quickAvgRate:m?g:void 0})}catch(V){const Te=(ee=V.errors)==null?void 0:ee[0];be({title:"Validation Error",description:(Te==null?void 0:Te.message)||"Please check your input",variant:"destructive"});return}if(new Date(i)>new Date){be({title:"Invalid date",description:"Cannot add meetings in the future.",variant:"destructive"});return}if(!m)for(const V of B)try{c$.parse(V)}catch(Te){const Ne=(le=Te.errors)==null?void 0:le[0];be({title:"Invalid Attendee",description:(Ne==null?void 0:Ne.message)||"Please check attendee information",variant:"destructive"});return}E(!0);const pe=s*3600+A*60,W=X();try{const{data:V,error:Te}=await Be.from("meetings").insert({user_id:e==null?void 0:e.id,title:r,held_at:i,duration:pe,total_cost:W,project_value:f?u:null,quick_mode:m,quick_attendee_count:m?v:null,quick_avg_rate:m?g:null,notes:C.trim()||null,project_id:I}).select().single();if(Te)throw Te;if(!m&&V){const Ne=B.map(Ye=>({meeting_id:V.id,name:Ye.name,role:Ye.role,hourly_rate:Ye.hourlyRate})),{error:Ze}=await Be.from("meeting_attendees").insert(Ne);if(Ze)throw Ze}be({title:"Meeting saved!",description:"Your past meeting has been added successfully."}),t(`/meetings/${V.id}`)}catch(V){be({title:"Error saving meeting",description:V.message,variant:"destructive"})}finally{E(!1)}};return o.jsx(fi,{children:o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Qt,{}),o.jsx(Ba,{}),o.jsxs("main",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[o.jsx(z,{asChild:!0,variant:"ghost",className:"mb-6",children:o.jsxs(de,{to:"/meetings",children:[o.jsx(Bs,{className:"mr-2 h-4 w-4"}),"Back to Meetings"]})}),o.jsxs("div",{className:"mb-6",children:[o.jsx("h1",{className:"text-4xl font-bold mb-2",children:"Add Past Meeting"}),o.jsx("p",{className:"text-muted-foreground",children:"Manually add a meeting that already happened"})]}),o.jsxs(J,{className:"mb-6",children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Meeting Details"})}),o.jsxs(Z,{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx(he,{htmlFor:"title",children:"Meeting Title"}),o.jsx(_e,{id:"title",value:r,onChange:L=>n(L.target.value),placeholder:"e.g., Q1 Planning Meeting"})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"heldAt",children:"Date & Time"}),o.jsx(_e,{id:"heldAt",type:"datetime-local",value:i,onChange:L=>a(L.target.value),max:new Date().toISOString().slice(0,16)})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[o.jsxs("div",{children:[o.jsx(he,{htmlFor:"hours",children:"Hours"}),o.jsx(_e,{id:"hours",type:"number",min:"0",value:s,onChange:L=>l(parseInt(L.target.value)||0)})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"minutes",children:"Minutes"}),o.jsx(_e,{id:"minutes",type:"number",min:"0",max:"59",value:A,onChange:L=>c(parseInt(L.target.value)||0)})]})]})]})]}),F.length>0&&o.jsxs(J,{className:"mb-6",children:[o.jsx(Ee,{children:o.jsxs(Se,{className:"flex items-center gap-2",children:[o.jsx(cx,{className:"h-5 w-5"}),"Use Template (Optional)"]})}),o.jsx(Z,{children:o.jsxs("div",{className:"space-y-2",children:[o.jsx(he,{children:"Select a template to pre-fill attendees and duration"}),o.jsxs(Cs,{value:O,onValueChange:L=>{U(L),Q(L)},children:[o.jsx(Sa,{children:o.jsx(js,{placeholder:"Choose a template..."})}),o.jsx(Na,{children:F.map(L=>o.jsxs(et,{value:L.id,children:[L.name," ",L.is_default&&"(Default)"]},L.id))})]}),o.jsx("p",{className:"text-xs text-muted-foreground",children:"This will replace current attendee list and duration"})]})})]}),o.jsxs(J,{className:"mb-6",children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Project Assignment"})}
540),o.jsx(Z,{children:o.jsx(tS,{value:I,onChange:L=>{T(L),L&&!m?N(!1):L&&m&&N(!0)},onMembersLoad:ae})})]}),o.jsxs(J,{className:"mb-6",children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Project Value (Optional)"})}),o.jsxs(Z,{className:"space-y-4",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx(he,{htmlFor:"track-value",children:"Track against project value"}),o.jsx(cu,{id:"track-value",checked:f,onCheckedChange:h})]}),f&&o.jsxs("div",{children:[o.jsx(he,{htmlFor:"project-value",children:"Project Value ($)"}),o.jsx(_e,{id:"project-value",type:"number",min:"0",step:"0.01",value:u,onChange:L=>d(parseFloat(L.target.value)||0)})]})]})]}),o.jsxs(J,{className:"mb-6",children:[o.jsx(Ee,{children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx(Se,{children:"Attendees"}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(he,{htmlFor:"quick-mode",children:"Quick Mode"}),o.jsx(cu,{id:"quick-mode",checked:m,onCheckedChange:L=>{p(L),!L&&I&&N(!0)}})]})]})}),o.jsxs(Z,{className:"space-y-4",children:[k&&I&&!m&&o.jsx(z,{type:"button",variant:"outline",onClick:ve,className:"w-full",children:"Load Team Members from Project"}),m?o.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[o.jsxs("div",{children:[o.jsx(he,{htmlFor:"attendee-count",children:"Number of Attendees"}),o.jsx(_e,{id:"attendee-count",type:"number",min:"1",value:v,onChange:L=>x(parseInt(L.target.value)||1)})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"avg-rate",children:"Average Hourly Rate ($)"}),o.jsx(_e,{id:"avg-rate",type:"number",min:"0",step:"0.01",value:g,onChange:L=>y(parseFloat(L.target.value)||0)})]})]}):o.jsxs("div",{className:"space-y-4",children:[B.map((L,pe)=>o.jsxs("div",{className:"grid grid-cols-12 gap-3 items-end",children:[o.jsxs("div",{className:"col-span-4",children:[o.jsx(he,{htmlFor:`name-${L.id}`,children:"Name"}),o.jsx(_e,{id:`name-${L.id}`,value:L.name,onChange:W=>K(L.id,"name",W.target.value),placeholder:"John Doe"})]}),o.jsxs("div",{className:"col-span-4",children:[o.jsx(he,{htmlFor:`role-${L.id}`,children:"Role"}),o.jsx(_e,{id:`role-${L.id}`,value:L.role,onChange:W=>K(L.id,"role",W.target.value),placeholder:"Developer"})]}),o.jsxs("div",{className:"col-span-3",children:[o.jsx(he,{htmlFor:`rate-${L.id}`,children:"Hourly Rate ($)"}),o.jsx(_e,{id:`rate-${L.id}`,type:"number",min:"0",step:"0.01",value:L.hourlyRate,onChange:W=>K(L.id,"hourlyRate",parseFloat(W.target.value)||0)})]}),o.jsx("div",{className:"col-span-1",children:B.length>1&&o.jsx(z,{type:"button",variant:"ghost",size:"icon",onClick:()=>G(L.id),children:o.jsx($i,{className:"h-4 w-4"})})})]},L.id)),o.jsxs(z,{type:"button",variant:"outline",onClick:$,className:"w-full",children:[o.jsx(yn,{className:"mr-2 h-4 w-4"}),"Add Attendee"]})]})]})]}),o.jsxs(J,{className:"mb-6",children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Notes (Optional)"})}),o.jsx(Z,{children:o.jsx(fA,{value:C,onChange:L=>j(L.target.value),placeholder:"Add any notes about this meeting...",rows:5})})]}),o.jsx(J,{className:"mb-6 bg-primary/5",children:o.jsx(Z,{className:"pt-6",children:o.jsxs("div",{className:"text-center",children:[o.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Estimated Total Cost"}),o.jsxs("p",{className:"text-4xl font-bold text-primary",children:["$",X().toFixed(2)]})]})})}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx(z,{onClick:Fe,disabled:_,className:"flex-1",children:_?"Saving...":"Save Meeting"}),o.jsx(z,{asChild:!0,variant:"outline",children:o.jsx(de,{to:"/meetings",children:"Cancel"})})]})]})]})})},SRe=()=>{const{user:e,isPro:t}=Tr(),r=Wn(),[n,i]=w.useState([]),[a,s]=w.useState([]),[l,A]=w.useState(""),[c,u]=w.useState("all"),[d,f]=w.useState(!0),[h,m]=w.useState({totalProjects:0,activeProjects:0,totalBudget:0,totalCost:0});w.useEffect(()=>{e&&t&&p()},[e,t]),w.useEffect(()=>{x()},[n,l,c]);const p=async()=>{try{const{data:B,error:b}=await Be.from("projects").select(` 541 *, 542 meetings:meetings(count) 543 `).order("created_at",{ascending:!1});if(b)throw b;const C=await Promise.all((B||[]).map(async j=>{var E,I;const{count:_}=await Be.from("project_members").select("*",{count:"exact",head:!0}).eq("project_id",j.id);return{...j,meeting_count:((I=(E=j.meetings)==null?void 0:E[0])==null?void 0:I.count)||0,member_count:_||0}}));i(C),v(C)}catch(B){console.error("Error fetching projects:",B),be({title:"Error",description:"Failed to load projects",variant:"destructive"})}finally{f(!1)}},v=B=>{const b=B.length,C=B.filter(E=>E.status==="active").length,j=B.reduce((E,I)=>E+(I.total_budget||0),0),_=B.reduce((E,I)=>E+(I.actual_cost||0),0);m({totalProjects:b,activeProjects:C,totalBudget:j,totalCost:_})},x=()=>{let B=n;l&&(B=B.filter(b=>{var C;return b.name.toLowerCase().includes(l.toLowerCase())||((C=b.client_name)==null?void 0:C.toLowerCase().includes(l.toLowerCase()))})),c!=="all"&&(B=B.filter(b=>b.status===c)),s(B)},g=B=>{const b={active:{variant:"default",label:"Active",icon:"ðµ"},"on-hold":{variant:"secondary",label:"On Hold",icon:"â¸ï¸"},completed:{variant:"outline",label:"Completed",icon:"â "},cancelled:{variant:"destructive",label:"Cancelled",icon:"â"}},C=b[B]||b.active;return o.jsxs(Au,{variant:C.variant,children:[C.icon," ",C.label]})},y=(B,b)=>{if(!b||b===0)return{color:"text-muted-foreground",status:"No budget"};const C=B/b*100;return C>100?{color:"text-destructive",status:"Over budget"}:C>90?{color:"text-orange-500",status:"Critical"}:C>75?{color:"text-yellow-500",status:"Warning"}:{color:"text-green-500",status:"Healthy"}};return t?o.jsx(fi,{children:o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Qt,{}),o.jsx(Ba,{}),o.jsxs("div",{className:"container mx-auto px-4 py-8",children:[o.jsxs("div",{className:"flex justify-between items-center mb-6",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"text-3xl font-bold mb-2",children:"Projects"}),o.jsx("p",{className:"text-muted-foreground",children:"Manage and track y
543our project budgets and meetings"})]}),o.jsxs(z,{onClick:()=>r("/projects/new"),children:[o.jsx(yn,{className:"mr-2 h-4 w-4"}),"New Project"]})]}),o.jsx(vS,{}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4 mb-6",children:[o.jsxs(J,{children:[o.jsx(Ee,{className:"pb-2",children:o.jsx(Se,{className:"text-sm font-medium text-muted-foreground",children:"Total Projects"})}),o.jsx(Z,{children:o.jsxs("div",{className:"flex items-center",children:[o.jsx(vC,{className:"h-4 w-4 mr-2 text-primary"}),o.jsx("span",{className:"text-2xl font-bold",children:h.totalProjects})]})})]}),o.jsxs(J,{children:[o.jsx(Ee,{className:"pb-2",children:o.jsx(Se,{className:"text-sm font-medium text-muted-foreground",children:"Active Projects"})}),o.jsx(Z,{children:o.jsxs("div",{className:"flex items-center",children:[o.jsx(ux,{className:"h-4 w-4 mr-2 text-green-500"}),o.jsx("span",{className:"text-2xl font-bold",children:h.activeProjects})]})})]}),o.jsxs(J,{children:[o.jsx(Ee,{className:"pb-2",children:o.jsx(Se,{className:"text-sm font-medium text-muted-foreground",children:"Total Budget"})}),o.jsx(Z,{children:o.jsxs("div",{className:"flex items-center",children:[o.jsx(eu,{className:"h-4 w-4 mr-2 text-primary"}),o.jsxs("span",{className:"text-2xl font-bold",children:["$",h.totalBudget.toFixed(2)]})]})})]}),o.jsxs(J,{children:[o.jsx(Ee,{className:"pb-2",children:o.jsx(Se,{className:"text-sm font-medium text-muted-foreground",children:"Total Cost"})}),o.jsx(Z,{children:o.jsxs("div",{className:"flex items-center",children:[o.jsx(eu,{className:"h-4 w-4 mr-2 text-orange-500"}),o.jsxs("span",{className:"text-2xl font-bold",children:["$",h.totalCost.toFixed(2)]})]})})]})]}),o.jsxs("div",{className:"flex flex-col md:flex-row gap-4 mb-6",children:[o.jsxs("div",{className:"relative flex-1",children:[o.jsx(dD,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),o.jsx(_e,{placeholder:"Search projects or clients...",value:l,onChange:B=>A(B.target.value),className:"pl-10"})]}),o.jsxs(Cs,{value:c,onValueChange:u,children:[o.jsx(Sa,{className:"w-full md:w-48",children:o.jsx(js,{placeholder:"Filter by status"})}),o.jsxs(Na,{children:[o.jsx(et,{value:"all",children:"All Status"}),o.jsx(et,{value:"active",children:"Active"}),o.jsx(et,{value:"on-hold",children:"On Hold"}),o.jsx(et,{value:"completed",children:"Completed"}),o.jsx(et,{value:"cancelled",children:"Cancelled"})]})]})]}),d?o.jsx("div",{className:"text-center py-12",children:o.jsx("p",{className:"text-muted-foreground",children:"Loading projects..."})}):a.length===0?o.jsxs(J,{className:"p-12 text-center",children:[o.jsx(vC,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),o.jsx("h3",{className:"text-lg font-semibold mb-2",children:l||c!=="all"?"No projects found":"No projects yet"}),o.jsx("p",{className:"text-muted-foreground mb-4",children:l||c!=="all"?"Try adjusting your filters":"Create your first project to start tracking meeting costs"}),!l&&c==="all"&&o.jsxs(z,{onClick:()=>r("/projects/new"),children:[o.jsx(yn,{className:"mr-2 h-4 w-4"}),"Create Project"]})]}):o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(B=>{const b=y(B.actual_cost,B.total_budget),C=B.total_budget?Math.min(B.actual_cost/B.total_budget*100,100):0;return o.jsxs(J,{className:"hover:shadow-lg transition-shadow cursor-pointer",onClick:()=>r(`/projects/${B.id}`),children:[o.jsx(Ee,{className:"pb-3",children:o.jsxs("div",{className:"flex items-start justify-between mb-2",children:[o.jsx("div",{className:"w-1 h-12 rounded-full mr-3",style:{backgroundColor:B.color}}),o.jsxs("div",{className:"flex-1",children:[o.jsx(Se,{className:"text-lg mb-1",children:B.name}),B.client_name&&o.jsx($r,{className:"text-sm",children:B.client_name})]}),g(B.status)]})}),o.jsxs(Z,{children:[B.description&&o.jsx("p",{className:"text-sm text-muted-foreground mb-3 line-clamp-2",children:B.description}),o.jsxs("div",{className:"space-y-2 mb-3",children:[o.jsxs("div",{className:"flex justify-between text-sm",children:[o.jsx("span",{className:"text-muted-foreground",children:"Budget"}),o.jsx("span",{className:"font-medium",children:B.total_budget?`$${B.total_budget.toFixed(2)}`:"N/A"})]}),o.jsxs("div",{className:"flex justify-between text-sm",children:[o.jsx("span",{className:"text-muted-foreground",children:"Actual Cost"}),o.jsxs("span",{className:b.color,children:["$",B.actual_cost.toFixed(2)]})]}),B.total_budget&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"w-full bg-secondary rounded-full h-2",children:o.jsx("div",{className:`h-2 rounded-full transition-all ${C>100?"bg-destructive":C>75?"bg-yellow-500":"bg-green-500"}`,style:{width:`${C}%`}})}),o.jsx("p",{className:`text-xs ${b.color}`,children:b.status})]})]}),o.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground pt-3 border-t",children:[o.jsxs("div",{className:"flex gap-3",children:[o.jsxs("span",{className:"flex items-center gap-1",children:[o.jsx(ao,{className:"h-3 w-3"}),B.meeting_count||0]}),o.jsxs("span",{className:"flex items-center gap-1",children:[o.jsx(hs,{className:"h-3 w-3"}),B.member_count||0]})]}),B.targeted_profit_margin&&o.jsxs("span",{className:"text-xs",children:["Target: ",B.targeted_profit_margin,"%"]})]})]})]},B.id)})})]})]})}):o.jsx(fi,{children:o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Qt,{}),o.jsx("div",{className:"container mx-auto px-4 py-8",children:o.jsxs(J,{className:"p-8 text-center max-w-md mx-auto",children:[o.jsx(lp,{className:"h-12 w-12 text-primary mx-auto mb-4"}),o.jsx("h3",{className:"text-xl font-bold mb-2",children:"Pro Feature"}),o.jsx("p",{className:"text-muted-foreground mb-4",children:"Project management is available for Pro users"}),o.jsx(z,{asChild:!0,children:o.jsx(de,{to:"/pricing",children:"Upgrade to Pro"})})]})})]})})},NRe=()=>{const{user:e,isPro:t}=Tr(),r=Wn(),[n,i]=w.useState(!1),[a,s]=w.useState([]),[l,A]=w.useState({name:"",description:"",client_name:"",status:"active",total_budget:"",targeted_profit_margin:"",start_date:"",target_end_date:"",color:"#3b82f6"}),c=async m=>{var x,g;m.preventDefault();try{Hne.parse({name:l.name,description:l.description,client_name:l.client_name,total_budget:l.total_budget?parseFloat(l.total_budget):null,targeted_profit_margin:l.targeted_profit_margin?parseFloat(l.targeted_profit_margin):null,start_date:l.start_date||null,target_end_date:l.target_end_date||null})}catch(y){const B=(x=y.errors)==null?void 0:x[0];be({title:"Validation Error",description:(B==null?void 0:B.message)||"Please check your input",variant:"destructive"});return}const p=a.filter(y=>y.name.trim()&&y.role.trim()&&y.hourlyRate>0);if(a.filter(y=>(y.name.trim()||y.role.trim()||y.hourlyRate>0)&&(!y.name.trim()||!y.role.trim()||y.hourlyRate<=0)).length>0){be({title:"Invalid team members",description:"Please complete all fields for team members or remove incomplete entries.",variant:"destructive"});return}for(const y of p)try{$ne.parse(y)}catch(B){const b=(g=B.errors)==null?void 0:g[0];be({title:"Invalid Team Member",description:(b==null?void 0:b.message)||"Please check team member information",variant:"destructive"});return}i(!0);try{const{data:y,error:B}=await Be.from("projects").insert([{user_id:e.id,name:l.name.trim(),description:l.description.trim()||null,client_name:l.client_name.trim()||null,status:l.status,total_budget:l.total_budget?parseFloat(l.total_budget):null,targeted_profit_margin:l.targeted_profit_margin?parseFloat(l.targeted_profit_margin):null,start_date:l.start_date||null,target_end_date:l.target_end_date||null,color:l.color}]).select().single();if(B)throw B;if(p.length>0&&y){const b=p.map(j=>({project_id:y.id,name:j.name,role:j.role,hourly_rate:j.hourlyRate})),{error:C}=await Be.from("project_members").insert(b);C&&(console.error("Error inserting members:",C),be({title:"Project created with warnings",description:"Project was created but some team members could not be added.",variant:"destructive"}))}be({title:"Success!",description:p.length>0?`Project and ${p.length} team member(s) created successfully.`:"Project created successfully"}),r(`/projects/${y.id}`)}catch(y){console.error("Error creating project:",y),be({title:"Error",description:y.message||"Failed to create project",variant:"destructive"})}finally{i(!1)}},u=(m,p)=>{A(v=>({...v,[m]:p}))},d=()=>{s([...a,{id:Date.now().toString(),name:"",role:"",hourlyRate:75}])},f=m=>{s(a.filter(p=>p.id!==m))},h=(m,p,v)=>{s(a.map(x=>x.id===m?{...x,[p]:v}:x))};return t?o.jsx(fi,{children:o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Qt,{}),o.jsx(Ba,{}),o.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-3xl",children:[o.jsxs(z,{variant:"ghost",onClick:()=>r("/projects"),className:"mb-4",children:[o.jsx(Bs,{className:"mr-2 h-4 w-4"}),"Back to Projects"]}),o.jsxs(J,{children:[o.jsxs(Ee,{children:[o.jsx(Se,{children:"Create New Project"}),o.jsx($r,{children:"Set up a new project to track meeting costs and profitability"})]}),o.jsx(Z,{children:o.jsxs("form",{onSubmit:c,className:"space-y-6",children:[o.jsxs("div",{className:"space-y-4",children:[o.jsx("h3",{className:"text-lg font-semibold",children:"Basic Information"}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(he,{htmlFor:"name",children:"Project Name *"}),o.jsx(_e,{id:"name",value:l.name,onChange:m=>u("name",m.target.value),placeholder:"e.g., Website Redesign",required:!0})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(he,{htmlFor:"client_name",children:"Client Name"}),o.jsx(_e,{id:"client_name",value:l.client_name,onChange:m=>u("client_name",m.target.value),placeholder:"e.g., Acme Corporation"})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(he,{htmlFor:"description",children:"Description"}),o.jsx(fA,{id:"description",value:l.description,onChange:m=>u("description",m.target.value),placeholder:"Brief description of the project...",rows:3})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsx(he,{htmlFor:"status",children:"Status"}),o.jsxs(Cs,{value:l.status,onValueChange:m=>u("status",m),children:[o.jsx(Sa,{id:"status",children:o.jsx(js,{})}),o.jsxs(Na,{children:[o.jsx(et,{value:"active",children:"Active"}),o.jsx(et,{value:"on-hold",children:"On Hold"}),o.jsx(et,{value:"completed",children:"Completed"}),o.jsx(et,{value:"cancelled",children:"Cancelled"})]})]})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(he,{htmlFor:"color",children:"Project Color"}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx(_e,{id:"color",type:"color",value:l.color,onChange:m=>u("color",m.target.value),className:"w-20 h-10"}),o.jsx(_e,{value:l.color,onChange:m=>u("color",m.target.value),placeholder:"#3b82f6",className:"flex-1"})]})]})]})]}),o.jsxs("div",{className:"space-y-4",children:[o.jsx("h3",{className:"text-lg font-semibold",children:"Financial Tracking"}),o.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsx(he,{htmlFor:"total_budget",children:"Total Budget ($)"}),o.jsx(_e,{id:"total_budget",type:"number",step:"0.01",min:"0",value:l.total_budget,onChange:m=>u("total_budget",m.target.value),placeholder:"10000.00"})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(he,{htmlFor:"targeted_profit_margin",children:"Target Profit Margin (%)"}),o.jsx(_e,{id:"targeted_profit_margin",type:"number",step:"0.1",min:"0",max:"100",value:l.targeted_profit_margin,onChange:m=>u("targeted_profit_margin",m.target.value),placeholder:"25"}),o.jsx("p",{className:"text-xs text-muted-foreground",children:"e.g., 25% means you target 25% profit margin"})]})]})]}),o.jsxs("div",{className:"space-y-4",children:[o.jsx("h3",{className:"text-lg font-semibold",children:"Timeline"}),o.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsx(he,{htmlFor:"start_date",children:"Start Date"}),o.jsx(_e,{id:"start_date",type:"date",value:l.start_date,onChange:m=>u("start_date",m.target.value)})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(he,{htmlFor:"target_end_date",children:"Target End Date"}),o.jsx(_e,{id:"target_end_date",type:"date",value:l.target_end_date,onChange:m=>u("target_end_date",m.target.value)})]})]})]}),o.jsxs("div",{className:"space-y-4",children:[o.jsx("h3",{className:"text-lg font-semibold",children:"Team Members (Optional)"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Add team members who typically work on this project. They'll be auto-populated when creating meetings."}),a.map(m=>o.jsxs("div",{className:"grid grid-cols-12 gap-3 items-end",children:[o.jsxs("div",{className:"col-span-4",children:[o.jsx(he,{htmlFor:`member-name-${m.id}`,children:"Name"}),o.jsx(_e,{id:`member-name-${m.id}`,value:m.name,onChange:p=>h(m.id,"name",p.target.value),placeholder:"John Doe"})]}),o.jsxs("div",{className:"col-span-4",children:[o.jsx(he,{htmlFor:`member-role-${m.id}`,children:"Role"}),o.jsx(_e,{id:`member-role-${m.id}`,value:m.role,onChange:p=>h(m.id,"role",p.target.value),placeholder:"Developer"})]}),o.jsxs("div",{className:"col-span-3",children:[o.jsx(he,{htmlFor:`member-rate-${m.id}`,children:"Hourly Rate ($)"}),o.jsx(_e,{id:`member-rate-${m.id}`,type:"number",min:"0",step:"0.01",value:m.hourlyRate,onChange:p=>h(m.id,"hourlyRate",parseFloat(p.target.value)||0)})]}),o.jsx("div",{className:"col-span-1",children:o.jsx(z,{type:"button",variant:"ghost",size:"icon",onClick:()=>f(m.id),children:o.jsx($i,{className:"h-4 w-4"})})})]},m.id)),o.jsxs(z,{type:"button",variant:"outline",onClick:d,className:"w-full",children:[o.jsx(yn,{className:"mr-2 h-4 w-4"}),"Add Team Member"]})]}),o.jsxs("div",{className:"flex gap-4 justify-end pt-4 border-t",children:[o.jsx(z,{type:"button",variant:"outline",onClick:()=>r("/projects"),disabled:n,children:"Cancel"}),o.jsx(z,{type:"submit",disabled:n,children:n?"Creating...":"Create Project"})]})]})})]})]})]})}):o.jsx(fi,{children:o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Qt,{}),o.jsx("div",{className:"container mx-auto px-4 py-8",children:o.jsxs(J,{className:"p-8 text-center max-w-md mx-auto",children:[o.jsx(lp,{className:"h-12 w-12 text-primary mx-auto mb-4"}),o.jsx("h3",{className:"text-xl font-bold mb-2",children:"Pro Feature"}),o.jsx("p",{className:"text-muted-foreground mb-4",children:"Project management is available for Pro users"}),o.jsx(z,{asChild:!0,children:o.jsx(de,{to:"/pricing",children:"Upgrade to Pro"})})]})})]})})};var a0="Popover",[O8,nLe]=rn(a0,[Mo]),Mp=Mo(),[ORe,qo]=O8(a0),T8=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,l=Mp(t),A=w.useRef(null),[c,u]=w.useState(!1),[d,f]=di({prop:n,defaultProp:i??!1,onChange:a,caller:a0});return o.jsx(yE,{...l,children:o.jsx(ORe,{scope:t,contentId:Qn(),triggerRef:A,open:d,onOpenChange:f,onOpenToggle:w.useCallback(()=>f(h=>!h),[f]),hasCustomAnchor:c,onCustomAnchorAdd:w.useCallback(()=>u(!0),[]),onCustomAnchorRemove:w.useCallback(()=>u(!1),[]),modal:s,children:r})})};T8.displayName=a0;var F8="PopoverAnchor",TRe=w.forwardRef((e,t)=>
vendor: 4,472 bytes, line 543
543{const{__scopePopover:r,...n}=e,i=qo(F8,r),a=Mp(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return w.useEffect(()=>(s(),()=>l()),[s,l]),o.jsx(cp,{...a,...n,ref:t})});TRe.displayName=F8;var P8="PopoverTrigger",k8=w.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,i=qo(P8,r),a=Mp(r),s=ze(t,i.triggerRef),l=o.jsx(Oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":R8(i.open),...n,ref:s,onClick:Ae(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?l:o.jsx(cp,{asChild:!0,...a,children:l})});k8.displayName=P8;var FN="PopoverPortal",[FRe,PRe]=O8(FN,{forceMount:void 0}),I8=e=>{const{__scopePopover:t,forceMount:r,children:n,container:i}=e,a=qo(FN,t);return o.jsx(FRe,{scope:t,forceMount:r,children:o.jsx(bn,{present:r||a.open,children:o.jsx($u,{asChild:!0,container:i,children:n})})})};I8.displayName=FN;var Mu="PopoverContent",U8=w.forwardRef((e,t)=>{const r=PRe(Mu,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,a=qo(Mu,e.__scopePopover);return o.jsx(bn,{present:n||a.open,children:a.modal?o.jsx(IRe,{...i,ref:t}):o.jsx(URe,{...i,ref:t})})});U8.displayName=Mu;var kRe=No("PopoverContent.RemoveScroll"),IRe=w.forwardRef((e,t)=>{const r=qo(Mu,e.__scopePopover),n=w.useRef(null),i=ze(t,n),a=w.useRef(!1);return w.useEffect(()=>{const s=n.current;if(s)return Nx(s)},[]),o.jsx(mp,{as:kRe,allowPinchZoom:!0,children:o.jsx(Q8,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ae(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),a.current||(l=r.triggerRef.current)==null||l.focus()}),onPointerDownOutside:Ae(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,A=l.button===0&&l.ctrlKey===!0,c=l.button===2||A;a.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:Ae(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),URe=w.forwardRef((e,t)=>{const r=qo(Mu,e.__scopePopover),n=w.useRef(!1),i=w.useRef(!1);return o.jsx(Q8,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,l;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),a.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:a=>{var A,c;(A=e.onInteractOutside)==null||A.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=a.target;((c=r.triggerRef.current)==null?void 0:c.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),Q8=w.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:A,onFocusOutside:c,onInteractOutside:u,...d}=e,f=qo(Mu,r),h=Mp(r);return Ex(),o.jsx(pp,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:a,children:o.jsx(sA,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:A,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:o.jsx(px,{"data-state":R8(f.open),role:"dialog",id:f.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),M8="PopoverClose",QRe=w.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,i=qo(M8,r);return o.jsx(Oe.button,{type:"button",...n,ref:t,onClick:Ae(e.onClick,()=>i.onOpenChange(!1))})});QRe.displayName=M8;var MRe="PopoverArrow",RRe=w.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,i=Mp(r);return o.jsx(mx,{...i,...n,ref:t})});RRe.displayName=MRe;function R8(e){return e?"open":"closed"}var DRe=T8,LRe=k8,$Re=I8,D8=U8;const cB=DRe,uB=LRe,Tg=w.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},i)=>o.jsx($Re,{children:o.jsx(D8,{ref:i,align:t,sideOffset:r,className:ce("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
543de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Tg.displayName=D8.displayName;var Qe=function(){return Qe=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Qe.apply(this,arguments)};function HRe(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function L8(e,t,r){for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}function Rp(e){return e.mode==="multiple"}function Dp(e){return e.mode==="range"}function s0(e){return e.mode==="single"}var KRe={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function VRe(e,t){return In(e,"LLLL y",t)}function WRe(e,t){return In(e,"d",t)}function GRe(e,t){return In(e,"LLLL",t)}function zRe(e){return"".concat(e)}function qRe(e,t){return In(e,"cccccc",t)}function YRe(e,t){return In(e,"yyyy",t)}var XRe=Object.freeze({__proto__:null,formatCaption:VRe,formatDay:WRe,formatMonthCaption:GRe,formatWeekNumber:zRe,formatWeekdayName:qRe,formatYearCaption:YRe}),JRe=function(e,t,r){return In(e,"do MMMM (EEEE)",r)},ZRe=function(){return"Month: "},eDe=function(){return"Go to next month"},tDe=function(){return"Go to previous month"},rDe=function(e,t){return In(e,"cccc",t)},nDe=function(e){return"Week n. ".concat(e)},iDe=function(){return"Year: "},aDe=Object.freeze({__proto__:null,labelDay:JRe,labelMonthDropdown:ZRe,labelNext:eDe,labelPrevious:tDe,labelWeekNumber:nDe,labelWeekday:rDe,labelYearDropdown:iDe});function sDe(){var e="buttons",t=KRe,r=C8,n={},i={},a=1,s={},l=new Date;return{captionLayout:e,classNames:t,formatters:XRe,labels:aDe,locale:r,modifiersClassNames:n,modifiers:i,numberOfMonths:a,styles:s,today:l,mode:"default"}}function oDe(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,i=e.toMonth,a=e.fromDate,s=e.toDate;return n?a=xn(n):t&&(a=new Date(t,0,1)),i?s=NN(i):r&&(s=new Date(r,11,31)),{fromDate:a?Qu(a):void 0,toDate:s?Qu(s):void 0}}var $8=w.createContext(void 0);function lDe(e){var t,r=e.initialProps,n=sDe(),i=oDe(r),a=i.fromDate,s=i.toDate,l=(t=r.captionLayout)!==null&&t!==void 0?t:n.captionLayout;l!=="buttons"&&(!a||!s)&&(l="buttons");var A;(s0(r)||Rp(r)||Dp(r))&&(A=r.onSelect);var c=Qe(Qe(Qe({},n),r),{captionLayout:l,classNames:Qe(Qe({},n.classNames),r.classNames),components:Qe({},r.components),formatters:Qe(Qe({},n.formatters),r.formatters),fromDate:a,labels:Qe(Qe({},n.labels),r.labels),mode:r.mode||n.mode,modifiers:Qe(Qe({},n.modifiers),r.modifiers),modifiersClassNames:Qe(Qe({},n.modifiersClassNames),r.modifiersClassNames),onSelect:A,styles:Qe(Qe({},n.styles),r.styles),toDate:s});return o.jsx($8.Provider,{value:c,children:e.children})}function Et(){var e=w.useContext($8);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function H8(e){var t=Et(),r=t.locale,n=t.classNames,i=t.styles,a=t.formatters.formatCaption;return o.jsx("div",{className:n.caption_label,style:i.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:r})})}function ADe(e){return o.jsx("svg",Qe({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:o.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.7
54378175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function K8(e){var t,r,n=e.onChange,i=e.value,a=e.children,s=e.caption,l=e.className,A=e.style,c=Et(),u=(r=(t=c.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&r!==void 0?r:ADe;return o.jsxs("div",{className:l,style:A,children:[o.jsx("span",{className:c.classNames.vhidden,children:e["aria-label"]}),o.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:i,onChange:n,children:a}),o.jsxs("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[s,o.jsx(u,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function cDe(e){var t,r=Et(),n=r.fromDate,i=r.toDate,a=r.styles,s=r.locale,l=r.formatters.formatMonthCaption,A=r.classNames,c=r.components,u=r.labels.labelMonthDropdown;if(!n)return o.jsx(o.Fragment,{});if(!i)return o.jsx(o.Fragment,{});var d=[];if(mRe(n,i))for(var f=xn(n),h=n.getMonth();h<=i.getMonth();h++)d.push(AB(f,h));else for(var f=xn(new Date),h=0;h<=11;h++)d.push(AB(f,h));var m=function(v){var x=Number(v.target.value),g=AB(xn(e.displayMonth),x);e.onChange(g)},p=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:K8;return o.jsx(p,{name:"months","aria-label":u(),className:A.dropdown_month,style:a.dropdown_month,onChange:m,value:e.displayMonth.getMonth(),caption:l(e.displayMonth,{locale:s}),children:d.map(function(v){return o.jsx("option",{value:v.getMonth(),children:l(v,{locale:s})},v.getMonth())})})}
543function uDe(e){var t,r=e.displayMonth,n=Et(),i=n.fromDate,a=n.toDate,s=n.locale,l=n.styles,A=n.classNames,c=n.components,u=n.formatters.formatYearCaption,d=n.labels.labelYearDropdown,f=[];if(!i)return o.jsx(o.Fragment,{});if(!a)return o.jsx(o.Fragment,{});for(var h=i.getFullYear(),m=a.getFullYear(),p=h;p<=m;p++)f.push(aQ(b8(new Date),p));var v=function(g){var y=aQ(xn(r),Number(g.target.value));e.onChange(y)},x=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:K8;return o.jsx(x,{name:"years","aria-label":d(),className:A.dropdown_year,style:l.dropdown_year,onChange:v,value:r.getFullYear(),caption:u(r,{locale:s}),children:f.map(function(g){return o.jsx("option",{value:g.getFullYear(),children:u(g,{locale:s})},g.getFullYear())})})}function dDe(e,t){var r=w.useState(e),n=r[0],i=r[1],a=t===void 0?n:t;return[a,i]}function fDe(e){var t=e.month,r=e.defaultMonth,n=e.today,i=t||r||n||new Date,a=e.toDate,s=e.fromDate,l=e.numberOfMonths,A=l===void 0?1:l;if(a&&Yh(a,i)<0){var c=-1*(A-1);i=Gi(a,c)}return s&&Yh(i,s)<0&&(i=s),xn(i)}function hDe(){var e=Et(),t=fDe(e),r=dDe(t,e.month),n=r[0],i=r[1],a=function(s){var l;if(!e.disableNavigation){var A=xn(s);i(A),(l=e.onMonthChange)===null||l===void 0||l.call(e,A)}};return[n,a]}function pDe(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,i=xn(e),a=xn(Gi(i,n)),s=Yh(a,i),l=[],A=0;A<s;A++){var c=Gi(i,A);l.push(c)}return r&&(l=l.reverse()),l}function mDe(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,i=t.numberOfMonths,a=i===void 0?1:i,s=n?a:1,l=xn(e);if(!r)return Gi(l,s);var A=Yh(r,e);if(!(A<a))return Gi(l,s)}}function gDe(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,i=t.numberOfMonths,a=i===void 0?1:i,s=n?a:1,l=xn(e);if(!r)return Gi(l,-s);var A=Yh(l,r);if(!(A<=0))return Gi(l,-s)}}var V8=w.createContext(void 0);function vDe(e){var t=Et(),r=hDe(),n=r[0],i=r[1],a=pDe(n,t),s=mDe(n,t),l=gDe(n,t),A=function(d){return a.some(function(f){return TN(d,f)})},c=function(d,f){A(d)||(f&&N8(d,f)?i(Gi(d,1+t.numberOfMonths*-1)):i(d))},u={currentMonth:n,displayMonths:a,goToMonth:i,goToDate:c,previousMonth:l,nextMonth:s,isDateDisplayed:A};return o.jsx(V8.Provider,{value:u,children:e.children})}function Lp(){var e=w.useContext(V8);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function sQ(e){var t,r=Et(),n=r.classNames,i=r.styles,a=r.components,s=Lp().goToMonth,l=function(u){s(Gi(u,e.displayIndex?-e.dis
543playIndex:0))},A=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:H8,c=o.jsx(A,{id:e.id,displayMonth:e.displayMonth});return o.jsxs("div",{className:n.caption_dropdowns,style:i.caption_dropdowns,children:[o.jsx("div",{className:n.vhidden,children:c}),o.jsx(cDe,{onChange:l,displayMonth:e.displayMonth}),o.jsx(uDe,{onChange:l,displayMonth:e.displayMonth})]})}function yDe(e){return o.jsx("svg",Qe({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:o.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function xDe(e){return o.jsx("svg",Qe({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:o.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Hy=w.forwardRef(function(e,t){var r=Et(),n=r.classNames,i=r.styles,a=[n.button_reset,n.button];e.className&&a.push(e.className);var s=a.join(" "),l=Qe(Qe({},i.button_reset),i.button);return e.style&&Object.assign(l,e.style),o.jsx("button",Qe({},e,{ref:t,type:"button",className:s,style:l}))});function wDe(e){var t,r,n=Et(),i=n.dir,a=n.locale,s=n.classNames,l=n.styles,A=n.labels,c=A.labelPrevious,u=A.labelNext,d=n.components;if(!e.nextMonth&&!e.previousMonth)return o.jsx(o.Fragment,{});var f=c(e.previousMonth,{locale:a}),h=[s.nav_button,s.nav_button_previous].join(" "),m=u(e.nextMonth,{locale:a}),p=[s.nav_button,s.nav_button_next].join(" "),v=(t=d==null?void 0:d.IconRight)!==null&&t!==void 0?t:xDe,x=(r=d==null?void 0:d.IconLeft)!==null&&r!==void 0?r:yDe;return o.jsxs("div",{className:s.nav,style:l.nav,children:[!e.hidePrevious&&o.jsx(Hy,{name:"previous-month","aria-label":f,className:h,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:i==="rtl"?o.jsx(v,{className:s.nav_icon,style:l.nav_icon}):o.jsx(x,{className:s.nav_icon,style:l.nav_icon})}),!e.hideNext&&o.jsx(Hy,{name:"next-month","aria-label":m,className:p,style:l.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:i==="rtl"?o.jsx(x,{className:s.nav_icon,style:l.nav_icon}):o.jsx(v,{className:s.nav_icon,style:l.nav_icon})})]})}function oQ(e){var t=Et().numberOfMonths,r=Lp(),n=r.previousMonth,i=r.nextMonth,a=r.goToMonth,s=r.displayMonths,l=s.findIndex(function(m){return TN(e.displayMonth,m)}),A=l===0,c=l===s.length-1,u=t>1&&(A||!c),d=t>1&&(c||!A),f=function(){n&&a(n)},h=function(){i&&a(i)};return o.jsx(wDe,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:d,nextMonth:i,previousMonth:n,onPreviousClick:f,onNextClick:h})}function bDe(e){var t,r=Et(),n=r.classNames,i=r.disableNavigation,a=r.styles,s=r.captionLayout,l=r.components,A=(t=l==null?void 0:l.CaptionLabel)!==null&&t!==void 0?t:H8,c;return i?c=o.jsx(A,{id:e.id,displayMonth:e.displayMonth}):s==="dropdown"?c=o.jsx(sQ,{displayMonth:e.displayMonth,id:e.id}):s==="dropdown-buttons"?c=o.jsxs(o.Fragment,{children:[o.jsx(sQ,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),o.jsx(oQ,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):c=o.jsxs(o.Fragment,{children:[o.jsx(A,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),o.jsx(oQ,{displayMonth:e.displayMonth,id:e.id})]}),o.jsx("div",{className:n.caption,style:a.caption,children:c})}function BDe(e){var t=Et(),r=t.footer,n=t.styles,i=t.classNames.tfoot;return r?o.jsx("tfoot",{className:i,style:n.tfoot,children:o.jsx("tr",{children:o.jsx("td",{colSpan:8,children:r})})}):o.jsx(o.Fragment,{})}function CDe(e,t,r){for(var n=r?rA(new Date):_a(new Date,{locale:e,weekStartsOn:t}),i=[],a=0;a<7;a++){var s=zr(n,a);i.push(s)}return i}function jDe(){var e=Et(),t=e.classNames,r=e.styles,n=e.showWeekNumber,i=e.locale,a=e.weekStartsOn,s=e.ISOWeek,l=e.formatters.formatWeekdayName,A=e.labels.labelWeekday,c=CDe(i,a,s);return o.jsxs("tr",{style:r.head_row,className:t.head_row,children:[n&&o.jsx("td",{style:r.head_cell,className:t.head_cell}),c.map(function(u,d){return o.jsx("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":A(u,{locale:i}),children:l(u,{locale:i})},d)})]})}function _De(){var e,t=Et(),r=t.classNames,n=t.styles,i=t.components,a=(e=i==null?void 0:i.HeadRow)!==null&&e!==void 0?e:jDe;return o.jsx("thead",{style:n.head,className:r.head,children:o.jsx(a,{})})}function EDe(e){var t=Et(),r=t.locale,n=t.formatters.formatDay;return o.jsx(o.Fragment,{children:n(e.date,{locale:r})})}var PN=w.createContext(void 0);function SDe(e){if(!Rp(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return o.jsx(PN.Provider,{value:t,children:e.children})}return o.jsx(NDe,{initialProps:e.initialProps,children:e.children})}function NDe(e){var t=e.initialProps,r=e.children,n=t.selected,i=t.min,a=t.max,s=function(c,u,d){var f,h;(f=t.onDayClick)===null||f===void 0||f.call(t,c,u,d);var m=!!(u.selected&&i&&(n==null?void 0:n.length)===i);if(!m){var p=!!(!u.selected&&a&&(n==null?void 0:n.length)===a);if(!p){var v=n?L8([],n):[];if(u.selected){var x=v.findIndex(function(g){return pn(c,g)}
543);v.splice(x,1)}else v.push(c);(h=t.onSelect)===null||h===void 0||h.call(t,v,c,u,d)}}},l={disabled:[]};n&&l.disabled.push(function(c){var u=a&&n.length>a-1,d=n.some(function(f){return pn(f,c)});return!!(u&&!d)});var A={selected:n,onDayClick:s,modifiers:l};return o.jsx(PN.Provider,{value:A,children:r})}function kN(){var e=w.useContext(PN);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function ODe(e,t){var r=t||{},n=r.from,i=r.to;return n&&i?pn(i,e)&&pn(n,e)?void 0:pn(i,e)?{from:i,to:void 0}:pn(n,e)?void 0:n_(n,e)?{from:e,to:i}:{from:n,to:e}:i?n_(e,i)?{from:i,to:e}:{from:e,to:i}:n?N8(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var IN=w.createContext(void 0);function TDe(e){if(!Dp(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return o.jsx(IN.Provider,{value:t,children:e.children})}return o.jsx(FDe,{initialProps:e.initialProps,children:e.children})}function FDe(e){var t=e.initialProps,r=e.children,n=t.selected,i=n||{},a=i.from,s=i.to,l=t.min,A=t.max,c=function(h,m,p){var v,x;(v=t.onDayClick)===null||v===void 0||v.call(t,h,m,p);var g=ODe(h,n);(x=t.onSelect)===null||x===void 0||x.call(t,g,h,m,p)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],s?(u.range_end=[s],pn(a,s)||(u.range_middle=[{after:a,before:s}])):u.range_end=[a]):s&&(u.range_start=[s],u.range_end=[s]),l&&(a&&!s&&u.disabled.push({after:Mc(a,l-1),before:zr(a,l-1)}),a&&s&&u.disabled.push({after:a,before:zr(a,l-1)}),!a&&s&&u.disabled.push({after:Mc(s,l-1),before:zr(s,l-1)})),A){if(a&&!s&&(u.disabled.push({before:zr(a,-A+1)}),u.disabled.push({after:zr(a,A-1)}
543)),a&&s){var d=ha(s,a)+1,f=A-d;u.disabled.push({before:Mc(a,f)}),u.disabled.push({after:zr(s,f)})}!a&&s&&(u.disabled.push({before:zr(s,-A+1)}),u.disabled.push({after:zr(s,A-1)}))}return o.jsx(IN.Provider,{value:{selected:n,onDayClick:c,modifiers:u},children:r})}function UN(){var e=w.useContext(IN);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Fg(e){return Array.isArray(e)?L8([],e):e!==void 0?[e]:[]}function PDe(e){var t={};return Object.entries(e).forEach(function(r){var n=r[0],i=r[1];t[n]=Fg(i)}),t}var zi;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(zi||(zi={}));var kDe=zi.Selected,Ha=zi.Disabled,IDe=zi.Hidden,UDe=zi.Today,dB=zi.RangeEnd,fB=zi.RangeMiddle,hB=zi.RangeStart,QDe=zi.Outside;function MDe(e,t,r){var n,i=(n={},n[kDe]=Fg(e.selected),n[Ha]=Fg(e.disabled),n[IDe]=Fg(e.hidden),n[UDe]=[e.today],n[dB]=[],n[fB]=[],n[hB]=[],n[QDe]=[],n);return e.fromDate&&i[Ha].push({before:e.fromDate}),e.toDate&&i[Ha].push({after:e.toDate}),Rp(e)?i[Ha]=i[Ha].concat(t.modifiers[Ha]):Dp(e)&&(i[Ha]=i[Ha].concat(r.modifiers[Ha]),i[hB]=r.modifiers[hB],i[fB]=r.modifiers[fB],i[dB]=r.modifiers[dB]),i}var W8=w.createContext(void 0);function RDe(e){var t=Et(),r=kN(),n=UN(),i=MDe(t,r,n),a=PDe(t.modifiers),s=Qe(Qe({},i),a);return o.jsx(W8.Provider,{value:s,children:e.children})}function G8(){var e=w.useContext(W8);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function DDe(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function LDe(e){return!!(e&&typeof e=="object"&&"from"in e)}function $De(e){return!!(e&&typeof e=="object"&&"after"in e)}function HDe(e){return!!(e&&typeof e=="object"&&"before"in e)}function KDe(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function VDe(e,t){var r,n=t.from,i=t.to;if(n&&i){var a=ha(i,n)<0;a&&(r=[i,n],n=r[0],i=r[1]);var s=ha(e,n)>=0&&ha(i,e)>=0;return s}return i?pn(i,e):n?pn(n,e):!1}function WDe(e){return SN(e)}function GDe(e){return Array.isArray(e)&&e.every(SN)}function zDe(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(WDe(r))return pn(e,r);if(GDe(r))return r.includes(e);if(LDe(r))return VDe(e,r);if(KDe(r))return r.dayOfWeek.includes(e.getDay());if(DDe(r)){var n=ha(r.before,e),i=ha(r.after,e),a=n>0,s=i<0,l=n_(r.before,r.after);return l?s&&a:a||s}return $De(r)?ha(e,r.after)>0:HDe(r)?ha(r.before,e)>0:typeof r=="function"?r(e):!1})}function QN(e,t,r){var n=Object.keys(t).reduce(function(a,s){var l=t[s];return zDe(e,l)&&a.push(s),a},[]),i={};return n.forEach(function(a){return i[a]=!0}),r&&!TN(e,r)&&(i.outside=!0),i}function qDe(e,t){for(var r=xn(e[0]),n=NN(e[e.length-1]),i,a,s=r;s<=n;){var l=QN(s,t),A=!l.disabled&&!l.hidden;if(!A){s=zr(s,1);continue}if(l.selected)return s;l.today&&!a&&(a=s),i||(i=s),s=zr(s,1)}return a||i}var YDe=365;function z8(e,t){var r=t.moveBy,n=t.direction,i=t.context,a=t.modifiers,s=t.retry,l=s===void 0?{count:0,lastFocused:e}:s,A=i.weekStartsOn,c=i.fromDate,u=i.toDate,d=i.locale,f={day:zr,week:r_,month:Gi,year:dMe,startOfWeek:function(v){return i.ISOWeek?rA(v):_a(v,{locale:d,weekStartsOn:A})},endOfWeek:function(v){return i.ISOWeek?B8(v):ON(v,{locale:d,weekStartsOn:A})}},h=f[r](e,n==="after"?1:-1);n==="before"&&c?h=fMe([c,h]):n==="after"&&u&&(h=hMe([u,h]));var m=!0;if(a){var p=QN(h,a);m=!p.disabled&&!p.hidden}return m?h:l.count>YDe?l.lastFocused:z8(h,{moveBy:r,direction:n,context:i,modifiers:a,retry:Qe(Qe({},l),{count:l.count+1})})}var q8=w.createContext(void 0);function XDe(e){var t=Lp(),r=G8(),n=w.useState(),i=n[0],a=n[1],s=w.useState(),l=s[0],A=s[1],c=qDe(t.displayMonths,r),u=i??(l&&t.isDateDisplayed(l))?l:c,d=function(){A(i),a(void 0)},f=function(v){a(v)},h=Et(),m=function(v,x){if(i){var g=z8(i,{moveBy:v,direction:x,context:h,modifiers:r});pn(i,g)||(t.goToDate(g,i),f(g))}},p={focusedDay:i,focusTarget:u,blur:d,focus:f,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return o.jsx(q8.Provider,{value:p,children:e.children})}function MN(){var e=w.useContext(q8);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function JDe(e,t){var r=G8(),n=QN(e,r,t);return n}var RN=w.createContext(void 0);function ZDe(e){if(!s0(e.initialProps)){var t={selected:void 0};return o.jsx(RN.Provider,{value:t,children:e.children})}return o.jsx(e4e,{initialProps:e.initialProps,children:e.children})}function e4e(e){var t=e.initialProps,r=e.children,n=function(a,s,l){var A,c,u;if((A=t.onDayClick)===null||A===void 0||A.call(t,a,s,l),s.selected&&!t.required){(c=t.onSelect)===null||c===void 0||c.c
543all(t,void 0,a,s,l);return}(u=t.onSelect)===null||u===void 0||u.call(t,a,a,s,l)},i={selected:t.selected,onDayClick:n};return o.jsx(RN.Provider,{value:i,children:r})}function Y8(){var e=w.useContext(RN);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function t4e(e,t){var r=Et(),n=Y8(),i=kN(),a=UN(),s=MN(),l=s.focusDayAfter,A=s.focusDayBefore,c=s.focusWeekAfter,u=s.focusWeekBefore,d=s.blur,f=s.focus,h=s.focusMonthBefore,m=s.focusMonthAfter,p=s.focusYearBefore,v=s.focusYearAfter,x=s.focusStartOfWeek,g=s.focusEndOfWeek,y=function(U){var P,Q,$,G;s0(r)?(P=n.onDayClick)===null||P===void 0||P.call(n,e,t,U):Rp(r)?(Q=i.onDayClick)===null||Q===void 0||Q.call(i,e,t,U):Dp(r)?($=a.onDayClick)===null||$===void 0||$.call(a,e,t,U):(G=r.onDayClick)===null||G===void 0||G.call(r,e,t,U)},B=function(U){var P;f(e),(P=r.onDayFocus)===null||P===void 0||P.call(r,e,t,U)},b=function(U){var P;d(),(P=r.onDayBlur)===null||P===void 0||P.call(r,e,t,U)},C=function(U){var P;(P=r.onDayMouseEnter)===null||P===void 0||P.call(r,e,t,U)},j=function(U){var P;(P=r.onDayMouseLeave)===null||P===void 0||P.call(r,e,t,U)},_=function(U){var P;(P=r.onDayPointerEnter)===null||P===void 0||P.call(r,e,t,U)},E=function(U){var P;(P=r.onDayPointerLeave)===null||P===void 0||P.call(r,e,t,U)},I=function(U){var P;(P=r.onDayTouchCancel)===null||P===void 0||P.call(r,e,t,U)},T=function(U){var P;(P=r.onDayTouchEnd)===null||P===void 0||P.call(r,e,t,U)},k=function(U){var P;(P=r.onDayTouchMove)===null||P===void 0||P.call(r,e,t,U)},N=function(U){var P;(P=r.onDayTouchStart)===null||P===void 0||P.call(r,e,t,U)},F=function(U){var P;(P=r.onDayKeyUp)===null||P===void 0||P.call(r,e,t,U)},M=function(U){var P;switch(U.key){case"ArrowLeft":U.preventDefault(),U.stopPropagation(),r.dir==="rtl"?l():A();break;case"ArrowRight":U.preventDefault(),U.stopPropagation(),r.dir==="rtl"?A():l();break;case"ArrowDown":U.preventDefault(),U.stopPropagation(),c();break;case"ArrowUp":U.preventDefault(),U.stopPropagation(),u();break;case"PageUp":U.preventDefault(),U.stopPropagation(),U.shiftKey?p():h();break;case"PageDown":U.preventDefault(),U.stopPropagation(),U.shiftKey?v():m();break;case"Home":U.preventDefault(),U.stopPropagation(),x();break;case"End":U.preventDefault(),U.stopPropagation(),g();break}(P=r.onDayKeyDown)===null||P===void 0||P.call(r,e,t,U)},O={onClick:y,onFocus:B,onBlur:b,onKeyDown:M,onKeyUp:F,onMouseEnter:C,onMouseLeave:j,onPointerEnter:_,onPointerLeave:E,onTouchCancel:I,onTouchEnd:T,onTouchMove:k,onTouchStart:N};return O}function r4e(){var e=Et(),t=Y8(),r=kN(),n=UN(),i=s0(e)?t.selected:Rp(e)?r.selected:Dp(e)?n.selected:void 0;return i}function n4e(e){return Object.values(zi).includes(e)}function i4e(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(n){var i=e.modifiersClassNames[n];if(i)r.push(i);else if(n4e(n)){var a=e.classNames["day_".concat(n)];a&&r.push(a)}}),r}function a4e(e,t){var r=Qe({},e.styles.day);return Object.keys(t).forEach(function(n){var i;r=Qe(Qe({},r),(i=e.modifiersStyles)===null||i===void 0?void 0:i[n])}),r}function s4e(e,t,r){var n,i,a,s=Et(),l=MN(),A=JDe(e,t),c=t4e(e,A),u=r4e(),d=!!(s.onDayClick||s.mode!=="default");w.useEffect(function(){var C;A.outside||l.focusedDay&&d&&pn(l.focusedDay,e)&&((C=r.current)===null||C===void 0||C.focus())},[l.focusedDay,e,r,d,A.outside]);var f=i4e(s,A).join(" "),h=a4e(s,A),m=!!(A.outside&&!s.showOutsideDays||A.hidden),p=(a=(i=s.components)===null||i===void 0?void 0:i.DayContent)!==null&&a!==void 0?a:EDe,v=o.jsx(p,{date:e,displayMonth:t,activeModifiers:A}),x={style:h,className:f,children:v,role:"gridcell"},g=l.focusTarget&&pn(l.focusTarget,e)&&!A.outside,y=l.focusedDay&&pn(l.focusedDay,e),B=Qe(Qe(Qe({},x),(n={disabled:A.disabled,role:"gridcell"},n["aria-selected"]=A.selected,n.tabIndex=y||g?0:-1,n)),c),b={isButton:d,isHidden:m,activeModifiers:A,selectedDays:u,buttonProps:B,divProps:x};return b}function o4e(e){var t=w.useRef(null),r=s4e(e.date,e.displayMonth,t);return r.isHidden?o.jsx("div",{role:"gridcell"}):r.isButton?o.jsx(Hy,Qe({name:"day",ref:t},r.buttonProps)):o.jsx("div",Qe({},r.divProps))}function l4e(e){var t=e.number,r=e.dates,n=Et(),i=n.onWeekNumberClick,a=n.styles,s=n.classNames,l=n.locale,A=n.labels.labelWeekNumber,c=n.formatters.formatWeekNumber,u=c(Number(t),{locale:l});if(!i)return o.jsx("span",{className:s.weeknumber,style:a.weeknumber,children:u});var d=A(Number(t),{locale:l}),f=function(h){i(t,r,h)};return o.jsx(Hy,{name:"week-number","aria-label":d,className:s.weeknumber,style:a.weeknumber,onClick:f,children:u})}function A4e(e){var t,r,n=Et(),i=n.styles,a=n.classNames,s=n.showWeekNumber,l=n.components,A=(t=l==null?void 0:l.Day)!==null&&t!==void 0?t:o4e,c=(r=l==null?void 0:l.WeekNumber)!==null&&r!==void 0?r:l4e,u;return s&&(u=o.jsx("td",{className:a.cell,style:i.cell,children:o.jsx(c,{number:e.weekNumber,dates:e.dates})})),o.jsxs("tr",{className:a.row,style:i.row,children:[u,e.dates.map(function(d){return o.jsx("td",{className:a.cell,style:i.cell,role:"presentation",children:o.jsx(A,{displayMonth:e.displayMonth,date:d})},fRe(d))})]})}function lQ(e,t,r){for(var n=r!=null&&r.ISOWeek?B8(t):ON(t,r),i=r!=null&&r.ISOWeek?rA(e):_a(e,r),a=ha(n,i),s=[],l=0;l<=a;l++)s.push(zr(i,l));var A=s.reduce(function(c,u){var d=r!=null&&r.ISOWeek?j8(u):E8(u,r),f=c.find(function(h){return h.weekNumber===d});return f?(f.dates.push(u),c):(c.push({weekNumber:d,dates:[u]}),c)},[]);return A}function c4e(e,t){var r=lQ(xn(e),NN(e),t);if(t!=null&&t.useFixedWeeks){var n=pRe(e,t);if(n<6){var i=r[r.length-1],a=i.dates[i.dates.length-1],s=r_(a,6-n),l=lQ(r_(a,1),s,t);r.push.apply(r,l)}}return r}function u4e(e){var t,r,n,i=Et(),a=i.locale,s=i.classNames,l=i.styles,A=i.hideHead,c=i.fixedWeeks,u=i.components,d=i.weekStartsOn,f=i.firstWeekContainsDate,h=i.ISOWeek,m=c4e(e.dis
543playMonth,{useFixedWeeks:!!c,ISOWeek:h,locale:a,weekStartsOn:d,firstWeekContainsDate:f}),p=(t=u==null?void 0:u.Head)!==null&&t!==void 0?t:_De,v=(r=u==null?void 0:u.Row)!==null&&r!==void 0?r:A4e,x=(n=u==null?void 0:u.Footer)!==null&&n!==void 0?n:BDe;return o.jsxs("table",{id:e.id,className:s.table,style:l.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!A&&o.jsx(p,{}),o.jsx("tbody",{className:s.tbody,style:l.tbody,children:m.map(function(g){return o.jsx(v,{displayMonth:e.displayMonth,dates:g.dates,weekNumber:g.weekNumber},g.weekNumber)})}),o.jsx(x,{displayMonth:e.displayMonth})]})}function d4e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var f4e=d4e()?w.useLayoutEffect:w.useEffect,pB=!1,h4e=0;function AQ(){return"react-day-picker-".concat(++h4e)}function p4e(e){var t,r=e??(pB?AQ():null),n=w.useState(r),i=n[0],a=n[1];return f4e(function(){i===null&&a(AQ())},[]),w.useEffect(function(){pB===!1&&(pB=!0)},[]),(t=e??i)!==null&&t!==void 0?t:void 0}function m4e(e){var t,r,n=Et(),i=n.dir,a=n.classNames,s=n.styles,l=n.components,A=Lp().displayMonths,c=p4e(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),u=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,d=[a.month],f=s.month,h=e.displayIndex===0,m=e.displayIndex===A.length-1,p=!h&&!m;i==="rtl"&&(t=[h,m],m=t[0],h=t[1]),h&&(d.push(a.caption_start),f=Qe(Qe({},f),s.caption_start)),m&&(d.push(a.caption_end),f=Qe(Qe({},f),s.caption_end)),p&&(d.push(a.caption_between),f=Qe(Qe({},f),s.caption_between));var v=(r=l==null?void 0:l.Caption)!==null&&r!==void 0?r:bDe;return o.jsxs("div",{className:d.join(" "),style:f,children:[o.jsx(v,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),o.jsx(u4e,{id:u,"aria-labelledby":c,displayMonth:e.displayMonth})]},e.displayIndex)}function g4e(e){var t=Et(),r=t.classNames,n=t.styles;return o.jsx("div",{className:r.months,style:n.months,children:e.children})}function v4e(e){var t,r,n=e.initialProps,i=Et(),a=MN(),s=Lp(),l=w.useState(!1),A=l[0],c=l[1];w.useEffect(function(){i.initialFocus&&a.focusTarget&&(A||(a.focus(a.focusTarget),c(!0)))},[i.initialFocus,A,a.focus,a.focusTarget,a]);var u=[i.classNames.root,i.className];i.numberOfMonths>1&&u.push(i.classNames.multiple_months),i.showWeekNumber&&u.push(i.classNames.with_weeknumber);var d=Qe(Qe({},i.styles.root),i.style),f=Object.keys(n).filter(function(m){return m.startsWith("data-")}).reduce(function(m,p){var v;return Qe(Qe({},m),(v={},v[p]=n[p],v))},{}),h=(r=(t=n.components)===null||t===void 0?void 0:t.Months)!==null&&r!==void 0?r:g4e;return o.jsx("div",Qe({className:u.join(" "),style:d,dir:i.dir,id:i.id,nonce:n.nonce,title:n.title,lang:n.lang},f,{children:o.jsx(h,{children:s.displayMonths.map(function(m,p){return o.jsx(m4e,{displayIndex:p,displayMonth:m},p)})})}))}function y4e(e){var t=e.children,r=HRe(e,["children"]);return o.jsx(lDe,{initialProps:r,children:o.jsx(vDe,{children:o.jsx(ZDe,{initialProps:r,children:o.jsx(SDe,{initialProps:r,children:o.jsx(TDe,{initialProps:r,children:o.jsx(RDe,{children:o.jsx(XDe,{children:t})})})})})})})}function x4e(e){return o.jsx(y4e,Qe({},e,{children:o.jsx(v4e,{initialProps:e})}))}function Pg({className:e,classNames:t,showOutsideDays:r=!0,...n}){return o.jsx(x4e,{showOutsideDays:r,className:ce("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:ce($C({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:ce($C({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...i})=>o.jsx(r7,{className:"h-4 w-4"}),IconRight:({...i})=>o.jsx(Ax,{className:"h-4 w-4"})},...n})}
543Pg.displayName="Calendar";const w4e=()=>{var F,M;const{id:e}=jE(),{isPro:t}=Tr(),r=Wn(),[n,i]=w.useState(null),[a,s]=w.useState([]),[l,A]=w.useState([]),[c,u]=w.useState([]),[d,f]=w.useState(!0);w.useState(null);const[h,m]=w.useState({name:"",role:"",hourlyRate:75}),[p,v]=w.useState({description:"",amount:0,category:""}),[x,g]=w.useState(!1),[y,B]=w.useState({name:"",description:"",client_name:"",status:"",total_budget:0,targeted_profit_margin:0,start_date:null,target_end_date:null,actual_end_date:null,color:"#3b82f6"});w.useEffect(()=>{if(!t){r("/pricing");return}b()},[e,t]);const b=async()=>{f(!0);const{data:O,error:U}=await Be.from("projects").select("*").eq("id",e).single();if(U){be({title:"Error loading project",description:U.message,variant:"destructive"}),r("/projects");return}i(O),B({name:O.name,description:O.description||"",client_name:O.client_name||"",status:O.status,total_budget:O.total_budget||0,targeted_profit_margin:O.targeted_profit_margin||0,start_date:O.start_date?new Date(O.start_date):null,target_end_date:O.target_end_date?new Date(O.target_end_date):null,actual_end_date:O.actual_end_date?new Date(O.actual_end_date):null,color:O.color});const{data:P}=await Be.from("project_members").select("*").eq("project_id",e).order("name");s(P||[]);const{data:Q}=await Be.from("meetings").select("*").eq("project_id",e).order("held_at",{ascending:!1});A(Q||[]);const{data:$}=await Be.from("project_additional_costs").select("*").eq("project_id",e).order("date",{ascending:!1});u($||[]),f(!1)},C=async()=>{if(!h.name.trim()||!h.role.trim()||h.hourlyRate<=0){be({title:"Invalid member data",description:"Please fill in all fields correctly.",variant:"destructive"});return}const{error:O}=await Be.from("project_members").insert({project_id:e,name:h.name,role:h.role,hourly_rate:h.hourlyRate});if(O){be({title:"Error adding member",description:O.message,variant:"destructive"});return}be({title:"Member added successfully"}),m({name:"",role:"",hourlyRate:75}),b()},j=async O=>{if(!confirm("Are you sure you want to remove this team member?"))return;const{error:U}=await Be.from("project_members").delete().eq("id",O);if(U){be({title:"Error deleting member",description:U.message,variant:"destructive"});return}be({title:"Member removed successfully"}),b()},_=()=>{if(!(n!=null&&n.total_budget)||!(n!=null&&n.actual_cost))return"N/A";const O=n.actual_cost/n.total_budget*100;return O>=100?"Over Budget":O>=90?"Critical":O>=75?"Warning":"Healthy"},E=()=>{const O=_();return O==="Over Budget"?"text-destructive":O==="Critical"?"text-orange-600":O==="Warning"?"text-yellow-600":"text-green-600"},I=async()=>{if(!p.description.trim()||p.amount<=0){be({title:"Invalid cost data",description:"Please provide a description and amount.",variant:"destructive"});return}const{error:O}=await Be.from("project_additional_costs").insert({project_id:e,description:p.description,amount:p.amount,category:p.category||null});if(O){be({title:"Error adding cost",description:O.message,variant:"destructive"});return}be({title:"Cost added successfully"}),v({description:"",amount:0,category:""}),b()},T=async O=>{if(!confirm("Are you sure you want to delete this cost item?"))return;const{error:U}=await Be.from("project_additional_costs").delete().eq("id",O);if(U){be({title:"Error deleting cost",description:U.message,variant:"destructive"});return}be({title:"Cost deleted successfully"}),b()},k=async()=>{var U,P,Q;const{error:O}=await Be.from("projects").update({name:y.name,description:y.description,client_name:y.client_name,status:y.status,total_budget:y.total_budget,targeted_profit_margin:y.targeted_profit_margin,start_date:(U=y.start_date)==null?void 0:U.toISOString(),target_end_date:(P=y.target_end_date)==null?void 0:P.toISOString(),actual_end_date:(Q=y.actual_end_date)==null?void 0:Q.toISOString(),color:y.color}).eq("id",e);if(O){be({title:"Error updating project",description:O.message,variant:"destructive"});return}be({title:"Project updated successfully"}),g(!1),b()};if(d||!n)return o.jsx(fi,{children:o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Qt,{}),o.jsx(Ba,{}),o.jsx("main",{className:"container mx-auto px-4 py-8",children:o.jsx("p",{className:"text-center text-muted-foreground",children:"Loading..."})})]})});const N=n.total_budget&&n.actual_cost?Math.min(n.actual_cost/n.total_budget*100,100):0;return o.jsx(fi,{children:o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Qt,{}),o.jsx(Ba,{}),o.jsxs("main",{className:"container mx-auto px-4 py-8",children:[o.jsx(z,{asChild:!0,variant:"ghost",className:"mb-6",children:o.jsxs(de,{to:"/projects",children:[o.jsx(Bs,{className:"mr-2 h-4 w-4"}),"Back to Projects"]})}),o.jsxs("div",{className:"mb-6 flex items-center gap-3",children:[o.jsx("div",{className:"w-6 h-6 rounded-full",style:{backgroundColor:n.color}}),o.jsxs("div",{className:"flex-1",children:[o.jsx("h1",{className:"text-4xl font-bold",children:n.name}),n.client_name&&o.jsxs("p",{className:"text-muted-foreground",children:["Client: ",n.client_name]})]}),o.jsxs(qE,{open:x,onOpenChange:g,children:[o.jsx(YE,{asChild:!0,children:o.jsxs(z,{variant:"outline",children:[o.jsx(fD,{className:"mr-2 h-4 w-4"}),"Edit Project"]})}),o.jsxs(Wx,{className:"overflow-y-auto sm:max-w-[540px]",children:[o.jsxs(Gx,{children:[o.jsx(zx,{children:"Edit Project Details"}),o.jsx(XE,{children:"Update project information, budget, and timelines"})]}
543),o.jsxs("div",{className:"space-y-4 mt-6",children:[o.jsxs("div",{children:[o.jsx(he,{htmlFor:"edit-name",children:"Project Name"}),o.jsx(_e,{id:"edit-name",value:y.name,onChange:O=>B({...y,name:O.target.value})})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"edit-description",children:"Description"}),o.jsx(fA,{id:"edit-description",value:y.description,onChange:O=>B({...y,description:O.target.value}),rows:3})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"edit-client",children:"Client Name"}),o.jsx(_e,{id:"edit-client",value:y.client_name,onChange:O=>B({...y,client_name:O.target.value})})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"edit-status",children:"Status"}),o.jsxs(Cs,{value:y.status,onValueChange:O=>B({...y,status:O}),children:[o.jsx(Sa,{id:"edit-status",children:o.jsx(js,{})}),o.jsxs(Na,{children:[o.jsx(et,{value:"active",children:"Active"}),o.jsx(et,{value:"on-hold",children:"On Hold"}),o.jsx(et,{value:"completed",children:"Completed"}),o.jsx(et,{value:"cancelled",children:"Cancelled"})]})]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[o.jsxs("div",{children:[o.jsx(he,{htmlFor:"edit-budget",children:"Total Budget ($)"}),o.jsx(_e,{id:"edit-budget",type:"number",min:"0",step:"0.01",value:y.total_budget,onChange:O=>B({...y,total_budget:parseFloat(O.target.value)||0})})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"edit-margin",children:"Profit Margin (%)"}),o.jsx(_e,{id:"edit-margin",type:"number",min:"0",max:"100",step:"0.1",value:y.targeted_profit_margin,onChange:O=>B({...y,targeted_profit_margin:parseFloat(O.target.value)||0})})]})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"edit-start-date",children:"Start Date"}),o.jsxs(cB,{children:[o.jsx(uB,{asChild:!0,children:o.jsxs(z,{id:"edit-start-date",variant:"outline",className:ce("w-full justify-start text-left font-normal",!y.start_date&&"text-muted-foreground"),children:[o.jsx(ao,{className:"mr-2 h-4 w-4"}),y.start_date?In(y.start_date,"PPP"):o.jsx("span",{children:"Pick a date"})]})}),o.jsx(Tg,{className:"w-auto p-0",align:"start",children:o.jsx(Pg,{mode:"single",selected:y.start_date||void 0,onSelect:O=>B({...y,start_date:O||null}),initialFocus:!0,className:"pointer-events-auto"})})]})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"edit-target-end-date",children:"Target End Date"}),o.jsxs(cB,{children:[o.jsx(uB,{asChild:!0,children:o.jsxs(z,{id:"edit-target-end-date",variant:"outline",className:ce("w-full justify-start text-left font-normal",!y.target_end_date&&"text-muted-foreground"),children:[o.jsx(ao,{className:"mr-2 h-4 w-4"}),y.target_end_date?In(y.target_end_date,"PPP"):o.jsx("span",{children:"Pick a date"})]})}),o.jsx(Tg,{className:"w-auto p-0",align:"start",children:o.jsx(Pg,{mode:"single",selected:y.target_end_date||void 0,onSelect:O=>B({...y,target_end_date:O||null}),initialFocus:!0,className:"pointer-events-auto"})})]})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"edit-actual-end-date",children:"Actual End Date"}),o.jsxs(cB,{children:[o.jsx(uB,{asChild:!0,children:o.jsxs(z,{id:"edit-actual-end-date",variant:"outline",className:ce("w-full justify-start text-left font-normal",!y.actual_end_date&&"text-muted-foreground"),children:[o.jsx(ao,{className:"mr-2 h-4 w-4"}),y.actual_end_date?In(y.actual_end_date,"PPP"):o.jsx("span",{children:"Pick a date"})]})}),o.jsx(Tg,{className:"w-auto p-0",align:"start",children:o.jsx(Pg,{mode:"single",selected:y.actual_end_date||void 0,onSelect:O=>B({...y,actual_end_date:O||null}),initialFocus:!0,className:"pointer-events-auto"})})]})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"edit-color",children:"Project Color"}),o.jsxs("div",{className:"flex gap-2 items-center",children:[o.jsx(_e,{id:"edit-color",type:"color",value:y.color,onChange:O=>B({...y,color:O.target.value}),className:"w-20 h-10"}),o.jsx(_e,{value:y.color,onChange:O=>B({...y,color:O.target.value}),placeholder:"#3b82f6",className:"flex-1"})]})]}),o.jsx(z,{onClick:k,className:"w-full",children:"Save Changes"})]})]})]})]}),o.jsxs(cS,{defaultValue:"overview",className:"space-y-6",children:[o.jsxs(ow,{children:[o.jsxs(as,{value:"overview",children:[o.jsx(aE,{className:"mr-2 h-4 w-4"}),"Overview"]}),o.jsxs(as,{value:"members",children:[o.jsx(hs,{className:"mr-2 h-4 w-4"}),"Team Members"]}),o.jsxs(as,{value:"meetings",children:[o.jsx(ao,{className:"mr-2 h-4 w-4"}),"Meetings"]})]}),o.jsxs(ss,{value:"overview",className:"space-y-6",children:[o.jsxs(J,{children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Description"})}),o.jsx(Z,{children:o.jsx("p",{className:"text-muted-foreground",children:n.description||"No description provided"})})]}),o.jsxs(J,{children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Financial Overview"})}),o.jsxs(Z,{className:"space-y-6",children:[o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Total Budget"}),o.jsxs("p",{className:"text-2xl font-bold",children:["$",((F=n.total_budget)==null?void 0:F.toFixed(2))||"0.00"]})]}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Budget Health"}),o.jsx("p",{className:`text-2xl font-bold ${E()}`,children:_()})]})]}),o.jsxs("div",{className:"space-y-3",children:[o.jsxs("div",{className:"flex justify-between text-sm",children:[o.jsx("span",{className:"text-muted-foreground",children:"Meeting Costs:"}),o.jsxs("span",{className:"font-medium",children:["$",l.reduce((O,U)=>O+U.total_cost,0).toFixed(2)]})]}),o.jsxs("div",{className:"flex justify-between text-sm",children:[o.jsx("span",{className:"text-muted-foreground",children:"Additional Costs:"}),o.jsxs("span",{className:"font-medium",children:["$",c.reduce((O,U)=>O+U.amount,0).toFixed(2)]})]}),o.jsxs("div",{className:"flex justify-between border-t pt-2",children:[o.jsx("span",{className:"font-semibold",children:"Total Actual Cost:"}),o.jsxs("span",{className:"text-xl font-bold",children:["$",((M=n.actual_cost)==null?void 0:M.toFixed(2))||"0.00"]})]})]}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Budget Utilization"}),o.jsx(eS,{value:N,className:"h-2"}),o.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:[N.toFixed(1),"% of budget used"]})]})]})]}),o.jsxs(J,{children:[o.jsx(Ee,{className:"flex flex-row items-center justify-between",children:o.jsxs("div",{children:[o.jsx(Se,{children:"Additional Costs"}),o.jsx($r,{children:"Track expenses beyond meetings (venue, catering, softw
543are, etc.)"})]})}),o.jsxs(Z,{className:"space-y-4",children:[o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-3",children:[o.jsx(_e,{placeholder:"Description (e.g., Venue Rent)",value:p.description,onChange:O=>v({...p,description:O.target.value}),className:"md:col-span-2"}),o.jsx(_e,{type:"number",placeholder:"Amount",min:"0",step:"0.01",value:p.amount||"",onChange:O=>v({...p,amount:parseFloat(O.target.value)||0})}),o.jsxs(z,{onClick:I,children:[o.jsx(yn,{className:"mr-2 h-4 w-4"}),"Add Cost"]})]}),c.length===0?o.jsx("p",{className:"text-center text-muted-foreground py-6",children:"No additional costs added yet"}):o.jsx("div",{className:"space-y-2",children:c.map(O=>o.jsxs("div",{className:"flex items-center justify-between p-3 border rounded-lg hover:bg-muted/50",children:[o.jsxs("div",{className:"flex-1",children:[o.jsx("p",{className:"font-medium",children:O.description}),o.jsx("p",{className:"text-sm text-muted-foreground",children:In(new Date(O.date),"PPP")})]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsxs("p",{className:"text-lg font-bold",children:["$",O.amount.toFixed(2)]}),o.jsx(z,{variant:"ghost",size:"sm",onClick:()=>T(O.id),children:o.jsx(iv,{className:"h-4 w-4 text-destructive"})})]})]},O.id))})]})]}),o.jsxs(J,{children:[o.jsx(Ee,{children:o.jsx(Se,{children:"Quick Stats"})}),o.jsx(Z,{children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Total Meetings"}),o.jsx("p",{className:"text-2xl font-bold",children:l.length})]}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Team Members"}),o.jsx("p",{className:"text-2xl font-bold",children:a.length})]}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Status"}),o.jsx("p",{className:"text-2xl font-bold capitalize",children:n.status})]})]})})]})]}),o.jsxs(ss,{value:"members",className:"space-y-6",children:[o.jsxs(J,{children:[o.jsxs(Ee,{children:[o.jsx(Se,{children:"Add Team Member"}),o.jsx($r,{children:"These members will auto-populate when creating meetings for this project"})]}),o.jsx(Z,{children:o.jsxs("div",{className:"grid grid-cols-12 gap-3 items-end",children:[o.jsxs("div",{className:"col-span-4",children:[o.jsx(he,{htmlFor:"new-member-name",children:"Name"}),o.jsx(_e,{id:"new-member-name",value:h.name,onChange:O=>m({...h,name:O.target.value}),placeholder:"John Doe"})]}),o.jsxs("div",{className:"col-span-4",children:[o.jsx(he,{htmlFor:"new-member-role",children:"Role"}),o.jsx(_e,{id:"new-member-role",value:h.role,onChange:O=>m({...h,role:O.target.value}),placeholder:"Developer"})]}),o.jsxs("div",{className:"col-span-3",children:[o.jsx(he,{htmlFor:"new-member-rate",children:"Hourly Rate ($)"}),o.jsx(_e,{id:"new-member-rate",type:"number",min:"0",step:"0.01",value:h.hourlyRate,onChange:O=>m({...h,hourlyRate:parseFloat(O.target.value)||0})})]}),o.jsx("div",{className:"col-span-1",children:o.jsx(z,{onClick:C,size:"icon",children:o.jsx(yn,{className:"h-4 w-4"})})})]})})]}),o.jsxs(J,{children:[o.jsx(Ee,{children:o.jsxs(Se,{children:["Team Members (",a.length,")"]})}),o.jsx(Z,{children:a.length===0?o.jsx("p",{className:"text-center text-muted-foreground py-8",children:"No team members yet. Add one above!"}):o.jsx("div",{className:"space-y-3",children:a.map(O=>o.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg hover:bg-accent transition-colors",children:[o.jsxs("div",{className:"flex-1",children:[o.jsx("h3",{className:"font-medium",children:O.name}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:[O.role," · $",parseFloat(O.hourly_rate.toString()).toFixed(2),"/hr"]})]}),o.jsx(z,{variant:"ghost",size:"sm",onClick:()=>j(O.id),children:o.jsx(iv,{className:"h-4 w-4"})})]},O.id))})})]})]}),o.jsx(ss,{value:"meetings",className:"space-y-6",children:o.jsxs(J,{children:[o.jsx(Ee,{children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsxs(Se,{children:["Meetings (",l.length,")"]}),o.jsx($r,{children:"All meetings associated with this project"})]}),o.jsx(z,{asChild:!0,children:o.jsxs(de,{to:"/meetings/add",children:[o.jsx(yn,{className:"mr-2 h-4 w-4"}),"Add Meeting"]})})]})}),o.jsx(Z,{children:l.length===0?o.jsx("p",{className:"text-center text-muted-foreground py-8",children:"No meetings linked to this project yet."}):o.jsx("div",{className:"space-y-3",children:l.map(O=>o.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg hover:bg-accent transition-colors",children:[o.jsxs("div",{className:"flex-1",children:[o.jsx("h3",{className:"font-medium",children:O.title}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:[new Date(O.held_at).toLocaleDateString()," ·",O.duration," min · $",parseFloat(O.total_cost.toString()).toFixed(2)]})]}),o.jsx(z,{asChild:!0,variant:"outline",size:"sm",children:o.jsx(de,{to:`/meetings/${O.id}`,children:"View"})})]},O.id))})})]})})]})]})]})})},mB=[{id:"best-times-schedule-meetings",title:"Best Times to Schedule Meetings: Data-Backed Guide 2025",excerpt:"Research shows Tuesday-Thursday at 10 AM yields 33% higher engagement. Complete data-driven guide to scheduling productive meetings.",date:"2025-10-29",readTime:"8 min read",category:"Productivity",slug:"/blog/best-times-schedule-meetings",featured:!0},{id:"meeting-cost-statistics-2025",title:"Meeting Cost Statistics 2025: The $37 Billion Problem",excerpt:"Discover the shocking truth about how much meetings cost companies. Research-backed statistics reveal the hidden drain on productivity and budgets.",date:"2025-10-28",readTime:"5 min read",category:"Research",slug:"/blog/meeting-cost-statistics-2025",featured:!0},{id:"calculate-meeting-roi",title:"How to Calculate Meeting ROI (With Real Examples)",excerpt:"Learn the exact formula to measure meeting ROI. Step-by-step guide with templates and real-world case studies from Fortune 500 companies.",date:"2025-10-27",readTime:"8 min read",category:"Guide",slug:"/blog/calculate-meeting-roi",featured:!1},{id:"reduce-meeting-costs",title:"15 Proven Ways to Reduce Meeting Costs by 40%",excerpt:"Actionable strategies used by top companies to slash meeting expenses. Includes free templates and implementation checklist.",date:"2025-10-26",readTime:"10 min read",category:"Tips",slug:"/blog/reduce-meeting-costs",featured:!1},{id:"meeting-or-email",title:"Should This Meeting Be An Email? Cost-Based Decision Framework",excerpt:"Use this simple decision tree to determine when meetings are worth the cost. Save thousands by eliminating unnecessary meetings.",date:"2025-10-25",readTime:"6 min read",category:"Framework",slug:"/blog/meeting-or-email",featured:!1}],b4e=()=>{const e={"@context":"https://schema.org","@type":"Blog",name:"Meeting Cost Calculator Blog",description:"Expert insights on meeting efficiency, productivity, and cost management",url:"https://meetingcost.online/blog",blogPost:mB.map(t=>
543({"@type":"BlogPosting",headline:t.title,description:t.excerpt,datePublished:t.date,url:`https://meetingcost.online${t.slug}`}))};return o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Oa,{title:"Blog - Meeting Efficiency & Cost Management",description:"Expert insights, research, and actionable tips on reducing meeting costs, improving productivity, and measuring meeting ROI. Free templates and guides.",canonicalUrl:"https://meetingcost.online/blog",ogImage:"https://meetingcost.online/og-image-home.png",keywords:"meeting cost blog, meeting efficiency tips, reduce meeting costs, meeting ROI, productivity blog",structuredData:e}),o.jsx(Qt,{}),o.jsxs("div",{className:"container mx-auto px-4 py-12 max-w-6xl",children:[o.jsxs("div",{className:"text-center mb-12",children:[o.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"Meeting Cost Insights"}),o.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Research-backed strategies to reduce meeting costs and boost productivity"})]}),o.jsxs("div",{className:"mb-12",children:[o.jsx("h2",{className:"text-2xl font-bold mb-6",children:"Featured Articles"}),o.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:mB.filter(t=>t.featured).map(t=>o.jsxs(J,{className:"shadow-card hover:shadow-lg transition-shadow",children:[o.jsxs(Ee,{children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx(Au,{variant:"secondary",children:t.category}),o.jsxs("div",{className:"flex items-center text-sm text-muted-foreground gap-4",children:[o.jsxs("span",{className:"flex items-center gap-1",children:[o.jsx(ao,{className:"h-4 w-4"}),new Date(t.date).toLocaleDateString("en-US",{month:"short",day:"numeric"})]}),o.jsxs("span",{className:"flex items-center gap-1",children:[o.jsx(so,{className:"h-4 w-4"}),t.readTime]})]})]}),o.jsx(Se,{className:"text-xl hover:text-primary transition-colors",children:o.jsx(de,{to:t.slug,children:t.title})})]}),o.jsxs(Z,{children:[o.jsx("p",{className:"text-muted-foreground mb-4",children:t.excerpt}),o.jsx(z,{asChild:!0,variant:"link",className:"p-0",children:o.jsxs(de,{to:t.slug,className:"flex items-center gap-1",children:["Read More ",o.jsx(Zf,{className:"h-4 w-4"})]})})]})]},t.id))})]}),o.jsxs("div",{children:[o.jsx("h2",{className:"text-2xl font-bold mb-6",children:"All Articles"}),o.jsx("div",{className:"space-y-4",children:mB.map(t=>o.jsx(J,{className:"shadow-card hover:shadow-lg transition-shadow",children:o.jsx(Z,{className:"p-6",children:o.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4",children:[o.jsxs("div",{className:"flex-1",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx(Au,{variant:"outline",children:t.category}),o.jsx("span",{className:"text-sm text-muted-foreground",children:t.readTime})]}),o.jsx("h3",{className:"text-xl font-semibold mb-2 hover:text-primary transition-colors",children:o.jsx(de,{to:t.slug,children:t.title})}),o.jsx("p",{className:"text-muted-foreground",children:t.excerpt})]}),o.jsx(z,{asChild:!0,children:o.jsx(de,{to:t.slug,children:"Read"})})]})})},t.id))})]}),o.jsx(J,{className:"mt-12 bg-gradient-primary text-primary-foreground",children:o.jsxs(Z,{className:"p-8 text-center",children:[o.jsx("h3",{className:"text-2xl font-bold mb-3",children:"Get Weekly Meeting Cost Insights"}),o.jsx("p",{className:"mb-6 opacity-90",children:"Join 5,000+ managers receiving actionable tips to reduce meeting waste"}),o.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 max-w-md mx-auto",children:[o.jsx("input",{type:"email",placeholder:"Enter your email",className:"flex-1 px-4 py-2 rounded-lg text-foreground"}),o.jsx(z,{variant:"secondary",size:"lg",children:"Subscribe"})]}),o.jsx("p",{className:"text-xs mt-3 opacity-75",children:"â No spam â Unsubscribe anytime â 1 email per week"})]})})]})]})},B4e=()=>{const r=[{"@context":"https://schema.org","@type":"BlogPosting",headline:"Best Times to Schedule Meetings: Data-Backed Optimal Scheduling Guide (2025)",description:"Research analyzing 3.5 million meetings shows that timing alone can impact productivity by up to 40%. Complete data-driven guide to scheduling productive meetings.",image:"https://meetingcost.online/og-image-best-times.png",datePublished:"2025-01-15T09:00:00+00:00",dateModified:"2025-01-15T09:00:00+00:00",author:{"@type":"Organization",name:"Meeting Cost Calculator"},publisher:{"@type":"Organization",name:"Meeting Cost Calculator",logo:{"@type":"ImageObject",url:"https://meetingcost.online/logo.svg"}},mainEntityOfPage:{"@type":"WebPage","@id":"https://meetingcost.online/blog/best-times-schedule-meetings"}},{"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"What is the best time to schedule a meeting?",acceptedA
543nswer:{"@type":"Answer",text:"The optimal time to schedule meetings is Tuesday through Thursday between 10-11 AM. Research shows meetings at 10 AM have 31% higher engagement rates and are 31% more likely to end on time. This timing aligns with peak cognitive performance periods."}},{"@type":"Question",name:"What is the worst time for meetings?",acceptedAnswer:{"@type":"Answer",text:"The worst time for meetings is 1-2 PM, known as the post-lunch energy dip. Studies show 31% lower attention spans and 24% more multitasking during this hour. Monday mornings and Friday afternoons are also suboptimal with 29% and 44% lower engagement respectively."}},{"@type":"Question",name:"What day is best for meetings?",acceptedAnswer:{"@type":"Answer",text:"Tuesday and Wednesday are the best days for meetings. Tuesday meetings show 33% higher decision quality scores, while avoiding the Monday catch-up chaos and Friday wind-down. Thursday is also good, but Friday afternoons should be avoided due to 44% lower participation quality."}},{"@type":"Question",name:"How long should meetings be scheduled for?",acceptedAnswer:{"@type":"Answer",text:"Schedule meetings for 25 or 50 minutes instead of 30 or 60 minutes. This approach ends meetings on time 38% more often. Optimal lengths by type: 15 min for standups, 30 min for 1-on-1s, 45 min for team syncs, and 60-90 min for strategic planning."}}]}];return o.jsxs(o.Fragment,{children:[o.jsx(Oa,{title:"Best Times to Schedule Meetings: Data-Backed Guide 2025",description:"Research shows Tuesday-Thursday at 10 AM yields 33% higher engagement. Complete data-driven guide to scheduling productive meetings in 2025.",canonicalUrl:"https://meetingcost.online/blog/best-times-schedule-meetings",keywords:"best time to schedule meetings, when to schedule meetings, optimal meeting times, meeting scheduling, productive meeting times, best time for team meetings",structuredData:r,ogImage:"https://meetingcost.online/og-image-best-times.png",ogType:"article"}),o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Qt,{}),o.jsxs("article",{className:"container mx-auto px-4 py-12 max-w-4xl",children:[o.jsxs("nav",{className:"text-sm mb-6 text-muted-foreground",children:[o.jsx(de,{to:"/",className:"hover:text-foreground transition-colors",children:"Home"})," / ",o.jsx(de,{to:"/blog",className:"hover:text-foreground transition-colors",children:"Blog"})," / ",o.jsx("span",{className:"text-foreground",children:"Best Times to Schedule Meetings"})]}),o.jsxs("header",{className:"mb-12",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[o.jsx("span",{className:"px-3 py-1 bg-primary/10 text-primary rounded-full text-sm font-medium",children:"Productivity"}),o.jsx("span",{className:"text-muted-foreground",children:"â¢"}),o.jsx("time",{dateTime:"2025-01-15",className:"text-muted-foreground",children:"October 29, 2025"}),o.jsx("span",{className:"text-muted-foreground",children:"â¢"}),o.jsx("span",{className:"text-muted-foreground",children:"8 min read"})]}),o.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6 leading-tight",children:"Best Times to Schedule Meetings: Data-Backed Optimal Scheduling Guide (2025)"}),o.jsx("p",{className:"text-xl text-muted-foreground leading-relaxed",children:"Research analyzing 3.5 million meetings found that timing alone can impact productivity by up to 40%. Here's your complete guide to scheduling meetings when people are actually ready for them."})]}),o.jsxs("div",{className:"bg-primary/5 border border-primary/20 rounded-lg p-6 mb-12",children:[o.jsxs("h2",{className:"text-lg font-semibold mb-4 flex items-center gap-2",children:[o.jsx(ux,{className:"h-5 w-5 text-primary"}),"Key Takeaways"]}),o.jsxs("ul",{className:"space-y-2 text-sm",children:[o.jsxs("li",{className:"flex items-start gap-2",children:[o.jsx("span",{className:"text-primary mt-1",children:"â"}),o.jsxs("span",{children:[o.jsx("strong",{children:"Best overall time:"})," Tuesday-Thursday, 10-11 AM (31% higher engagement)"]})]}),o.jsxs("li",{className:"flex items-start gap-2",children:[o.jsx("span",{className:"text-destructive mt-1",children:"â"}),o.jsxs("span",{children:[o.jsx("strong",{children:"Worst time:"})," 1-2 PM any day (31% lower attention), Monday mornings, Friday afternoons"]})]}),o.jsxs("li",{className:"flex items-start gap-2",children:[o.jsx("span",{className:"text-primary mt-1",children:"ð¯"}),o.jsxs("span",{children:[o.jsx("strong",{children:"Strategic meetings:"})," Tuesday 10 AM (33% higher decision quality)"]})]}),o.jsxs("li",{className:"flex items-start gap-2",children:[o.jsx("span",{className:"text-primary mt-1",children:"ð¡"}),o.jsxs("span",{children:[o.jsx("strong",{children:"Creative sessions:"})," Tuesday-Thursday 10 AM or 3 PM (40% more ideas)"]})]}),o.jsxs("li",{className:"flex items-start gap-2",children:[o.jsx("span",{className:"text-primary mt-1",children:"ð¤"}),o.jsxs("span",{children:[o.jsx("strong",{children:"1-on-1s:"})," Tuesday-Thursday 2-3 PM (29% more valuable)"]})]})]})]}),o.jsxs("div",{className:"prose prose-lg max-w-none",children:[o.jsxs("section",{className:"mb-12",children:[o.jsxs("p",{className:"text-lg leading-relaxed",children:["Most meetings are scheduled for convenienceâfinding the first available slot on everyone's calendar. But what if we scheduled them for ",o.jsx("em",{children:"effectiveness"})," instead? The difference is staggering."]}),o.jsx("p",{className:"text-lg leading-relaxed",children:"Studies show that the same meeting held at 10 AM ver
543sus 1 PM can see vastly different outcomes: 22% higher engagement, 31% better decision quality, and significantly fewer instances of people secretly multitasking."}),o.jsx("p",{className:"text-lg leading-relaxed",children:"Let's dive into the data on when people are actually ready to meetâand when they're just pretending to listen."})]}),o.jsxs("section",{className:"mb-12",children:[o.jsxs("h2",{className:"text-3xl font-bold mb-6 flex items-center gap-3",children:[o.jsx(t7,{className:"h-8 w-8 text-primary"}),"The Science Behind Meeting Timing"]}),o.jsx("p",{className:"text-lg leading-relaxed mb-4",children:"Our cognitive performance isn't constant throughout the day. Research from Harvard Business Review and the Journal of Applied Psychology reveals that our circadian rhythms create predictable peaks and valleys in alertness, creativity, and decision-making ability."}),o.jsxs("div",{className:"bg-muted/50 rounded-lg p-6 my-6",children:[o.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Peak Productivity Windows"}),o.jsxs("ul",{className:"space-y-3",children:[o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(so,{className:"h-5 w-5 text-primary mt-1 flex-shrink-0"}),o.jsxs("span",{children:[o.jsx("strong",{children:"10-11 AM:"})," Peak cognitive performanceâbest for strategic decisions and complex problem-solving"]})]}),o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(so,{className:"h-5 w-5 text-primary mt-1 flex-shrink-0"}),o.jsxs("span",{children:[o.jsx("strong",{children:"2-3 PM:"})," Secondary peak after lunch recoveryâideal for collaborative work and 1-on-1s"]})]}),o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(so,{className:"h-5 w-5 text-destructive mt-1 flex-shrink-0"}),o.jsxs("span",{children:[o.jsx("strong",{children:"1-2 PM:"}),' The "Graveyard Hour"âavoid all important meetings during post-lunch slump']})]})]})]}),o.jsxs("div",{className:"grid md:grid-cols-2 gap-4 my-6",children:[o.jsxs("div",{className:"bg-green-500/10 border border-green-500/30 rounded-lg p-4",children:[o.jsx("div",{className:"font-semibold mb-2 text-green-700 dark:text-green-400",children:"Morning Meetings (9-11 AM)"}),o.jsx("div",{className:"text-2xl font-bold text-green-700 dark:text-green-400",children:"+22%"}),o.jsx("div",{className:"text-sm text-muted-foreground",children:"higher engagement"})]}),o.jsxs("div",{className:"bg-red-500/10 border border-red-500/30 rounded-lg p-4",children:[o.jsx("div",{className:"font-semibold mb-2 text-red-700 dark:text-red-400",children:"Post-Lunch (1-2 PM)"}),o.jsx("div",{className:"text-2xl font-bold text-red-700 dark:text-red-400",children:"-31%"}),o.jsx("div",{className:"text-sm text-muted-foreground",children:"lower attention"})]})]})]}),o.jsxs("section",{className:"mb-12",children:[o.jsxs("h2",{className:"text-3xl font-bold mb-6 flex items-center gap-3",children:[o.jsx(ao,{className:"h-8 w-8 text-primary"}),"Best Days for Different Meeting Types"]}),o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"border border-border rounded-lg p-6 bg-card",children:[o.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Strategic & Decision-Making Meetings"}),o.jsx("div",{className:"flex items-center gap-2 mb-3",children:o.jsx("span",{className:"px-3 py-1 bg-primary text-primary-foreground rounded-md text-sm font-medium",children:"Optimal: Tuesday-Wednesday, 10-11 AM"})}),o.jsxs("p",{className:"text-muted-foreground mb-3",children:[o.jsx("strong",{children:"Why:"})," Peak cognitive function, fresh week energy, low interruptions"]}),o.jsxs("p",{className:"text-sm",children:[o.jsx("strong",{className:"text-primary",children:"Data:"})," Tuesday meetings show 33% higher decision quality scores"]}),o.jsxs("p",{className:"text-sm text-destructive mt-2",children:[o.jsx("strong",{children:"Avoid:"})," Monday mornings (planning mode), Friday afternoons (weekend mode)"]})]}),o.jsxs("div",{className:"border border-border rounded-lg p-6 bg-card",children:[o.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Brainstorming & Creative Sessions"}),o.jsx("div",{className:"flex items-center gap-2 mb-3",children:o.jsx("span",{className:"px-3 py-1 bg-primary text-primary-foreground rounded-md text-sm font-medium",children:"Optimal: Tuesday-Thursday, 10-11 AM or 3-4 PM"})}),o.jsxs("p",{className:"text-muted-foreground mb-3",children:[o.jsx("strong",{children:"Why:"})," Creative thinking peaks mid-morning and late afternoon"]}),o.jsxs("p",{className:"text-sm",children:[o.jsx("strong",{className:"text-primary",children:"Data:"})," 40% more ideas generated in morning sessions vs. afternoon"]}),o.jsxs("p",{className:"text-sm text-destructive mt-2",children:[o.jsx("strong",{children:"Avoid:"})," Right after lunch (energy dip kills creativity)"]})]}),o.jsxs("div",{className:"border border-border rounded-lg p-6 bg-card",children:[o.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Status Upd
543ates & Standups"}),o.jsx("div",{className:"flex items-center gap-2 mb-3",children:o.jsx("span",{className:"px-3 py-1 bg-primary text-primary-foreground rounded-md text-sm font-medium",children:"Optimal: Daily, 9-9:30 AM"})}),o.jsxs("p",{className:"text-muted-foreground mb-3",children:[o.jsx("strong",{children:"Why:"})," Set daily direction, low cognitive demand"]}),o.jsxs("p",{className:"text-sm",children:[o.jsx("strong",{className:"text-primary",children:"Data:"})," Morning standups correlate with 18% better task completion"]}),o.jsxs("p",{className:"text-sm text-destructive mt-2",children:[o.jsx("strong",{children:"Avoid:"})," Mid-morning (interrupts deep work blocks)"]})]}),o.jsxs("div",{className:"border border-border rounded-lg p-6 bg-card",children:[o.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Client & External Meetings"}),o.jsx("div",{className:"flex items-center gap-2 mb-3",children:o.jsx("span",{className:"px-3 py-1 bg-primary text-primary-foreground rounded-md text-sm font-medium",children:"Optimal: Tuesday-Thursday, 10 AM or 2:30 PM"})}),o.jsxs("p",{className:"text-muted-foreground mb-3",children:[o.jsx("strong",{children:"Why:"})," Professional peak hours, buffer from internal chaos"]}),o.jsxs("p",{className:"text-sm",children:[o.jsx("strong",{className:"text-primary",children:"Data:"})," 25% higher satisfaction scores for 10 AM client meetings"]}),o.jsxs("p",{className:"text-sm text-destructive mt-2",children:[o.jsx("strong",{children:"Avoid:"})," Monday mornings (chaotic), Friday afternoons (rush to finish)"]})]}),o.jsxs("div",{className:"border border-border rounded-lg p-6 bg-card",children:[o.jsx("h3",{className:"text-xl font-semibold mb-3",children:"1-on-1s & Performance Reviews"}),o.jsx("div",{className:"flex items-center gap-2 mb-3",children:o.jsx("span",{className:"px-3 py-1 bg-primary text-primary-foreground rounded-md text-sm font-medium",children:"Optimal: Tuesday-Thursday, 2-3 PM"})}),o.jsxs("p",{className:"text-muted-foreground mb-3",children:[o.jsx("strong",{children:"Why:"})," Afternoon = more empathy, less rushed feeling"]}),o.jsxs("p",{className:"text-sm",children:[o.jsx("strong",{className:"text-primary",children:"Data:"})," Afternoon 1-on-1s rated 29% more valuable by employees"]}),o.jsxs("p",{className:"text-sm text-destructive mt-2",children:[o.jsx("strong",{children:"Avoid:"})," Monday (stressful), end of day (everyone wants to leave)"]})]})]})]}),o.jsxs("section",{className:"mb-12",children:[o.jsxs("h2",{className:"text-3xl font-bold mb-6 flex items-center gap-3",children:[o.jsx(so,{className:"h-8 w-8 text-primary"}),"Hour-by-Hour Meeting Guide"]}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"border-l-4 border-yellow-500 bg-yellow-500/10 p-4 rounded-r-lg",children:[o.jsxs("div",{className:"font-semibold flex items-center justify-between mb-2",children:[o.jsx("span",{children:"8:00-9:00 AM"}),o.jsx("span",{className:"text-yellow-600 dark:text-yellow-400 text-sm",children:"â ï¸ Not Recommended"})]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:['People settling in, checking emails. 43% report not being "fully awake."',o.jsx("strong",{className:"block mt-1",children:"Best for:"})," Solo deep work, not meetings"]})]}),o.jsxs("div",{className:"border-l-4 border-green-500 bg-green-500/10 p-4 rounded-r-lg",children:[o.jsxs("div",{className:"font-semibold flex items-center justify-between mb-2",children:[o.jsx("span",{children:"9:00-10:00 AM"}),o.jsx("span",{className:"text-green-600 dark:text-green-400 text-sm",children:"â
Good"})]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Energy building, relatively alert.",o.jsx("strong",{className:"block mt-1",children:"Best for:"})," Quick standups, routine check-ins"]})]}),o.jsxs("div",{className:"border-l-4 border-primary bg-primary/10 p-4 rounded-r-lg",children:[o.jsxs("div",{className:"font-semibold flex items-center justify-between mb-2",children:[o.jsx("span",{children:"10:00-11:00 AM"}),o.jsx("span",{className:"text-primary text-sm",children:"â OPTIMAL"})]}),o.jsxs("p",{className:"text-sm text-muted-foreground mb-2",children:["Peak cognitive performance. Highest engagement scores (87%).",o.jsx("strong",{className:"block mt-1",children:"Best for:"})," Important decisions, client meetings, strategic planning"]}),o.jsx("div",{className:"bg-primary/20 rounded p-2 text-sm font-medium",children:"ð Meetings at 10 AM are 31% more likely to end on time"})]}),o.jsxs("div",{className:"border-l-4 border-green-500 bg-green-500/10 p-4 rounded-r-lg",children:[o.jsxs("div",{className:"font-semibold flex items-center justify-between mb-2",children:[o.jsx("span",{children:"11:00 AM-12:00 PM"}),o.jsx("span",{className:"text-green-600 dark:text-green-400 text-sm",children:"â
Good"})]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Still high energy but people rushing to lunch.",o.jsx("strong",{className:"block mt-1",children:"Best for:"})," Collaborative work sessions"]})]}),o.jsxs("div",{className:"border-l-4 border-yellow-500 bg-yellow-500/10 p-4 rounded-r-lg",children:[o.jsxs("div",{className:"font-semibold flex items-center justify-between mb-2",children:[o.jsx("span",{children:"12:00-1:00 PM"}),o.jsx("span",{className:"text-yellow-600 dark:text-yellow-400 text-sm",children:"â ï¸ Avoid"})]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Lunch time, people distracted by hunger. 52% report difficulty concentrating.",o.jsx("strong",{className:"block mt-1",children:"Best for:"})," Optional lunch-and-learns only"]})]}),o.jsxs("div",{className:"border-l-4 border-red-500 bg-red-500/10 p-4 rounded-r-lg",children:[o.jsxs("div",{className:"font-semibold flex items-center justify-between mb-2",children:[o.jsx("span",{children:"1:00-2:00 PM"}),o.jsx("span",{className:"text-red-600 dark:text-red-400 text-sm",children:"â Worst Time"})]}),o.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Post-lunch energy dip. 31% lower attention spans. 24% more likely to multitask."}),o.jsx("div",{className:"bg-red-500/20 rounded p-2 text-sm font-medium",children:'â ï¸ "The Graveyard Hour" - Avoid all important meetings'})]}),o.jsxs("div",{className:"border-l-4 border-green-500 bg-green-500/10 p-4 rounded-r-lg",children:[o.jsxs("div",{className:"font-semibold flex items-center justify-between mb-2",children:[o.jsx("span",{children:"2:00-3:00 PM"}),o.jsx("span",{className:"text-green-600 dark:text-green-400 text-sm",children:"â
Good (after 2:30 PM)"})]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Energy recovering from lunch slump.",o.jsx("strong",{className:"block mt-1",children:"Best for:"})," 1-on-1s, feedback sessions"]})]}),o.jsxs("div",{className:"border-l-4 border-primary bg-primary/10 p-4 rounded-r-lg",children:[o.jsxs("div",{className:"font-semibold flex items-center justify-between mb-2",children:[o.jsx("span",{children:"3:00-4:00 PM"}),o.jsx("span",{className:"text-primary text-sm",children:"â Second-Best"})]}),o.jsxs("p",{className:"text-sm text-muted-foreground mb-2",children:["Secondary peak productivity. Good focu
543s, less rushed than morning.",o.jsx("strong",{className:"block mt-1",children:"Best for:"})," Problem-solving, creative sessions"]}),o.jsx("div",{className:"bg-primary/20 rounded p-2 text-sm font-medium",children:"ð¡ 3 PM meetings have 23% higher creativity scores"})]}),o.jsxs("div",{className:"border-l-4 border-yellow-500 bg-yellow-500/10 p-4 rounded-r-lg",children:[o.jsxs("div",{className:"font-semibold flex items-center justify-between mb-2",children:[o.jsx("span",{children:"4:00-5:00 PM"}),o.jsx("span",{className:"text-yellow-600 dark:text-yellow-400 text-sm",children:"â ï¸ Not Recommended"})]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["People wrapping up, thinking about home. 38% more likely to run late.",o.jsx("strong",{className:"block mt-1",children:"Best for:"})," Informal catch-ups only"]})]}),o.jsxs("div",{className:"border-l-4 border-red-500 bg-red-500/10 p-4 rounded-r-lg",children:[o.jsxs("div",{className:"font-semibold flex items-center justify-between mb-2",children:[o.jsx("span",{children:"After 5:00 PM"}),o.jsx("span",{className:"text-red-600 dark:text-red-400 text-sm",children:"â Avoid"})]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Poor attendance, resentment. 67% report negative feelings about late meetings.",o.jsx("strong",{className:"block mt-1",children:"Exception:"})," Global teams in different time zones"]})]})]})]}),o.jsxs("section",{className:"mb-12",children:[o.jsxs("h2",{className:"text-3xl font-bold mb-6 flex items-center gap-3",children:[o.jsx(l7,{className:"h-8 w-8 text-primary"}),"Time Zone Optimization for Remote Teams"]}),o.jsx("p",{className:"text-lg leading-relaxed mb-6",children:'When your team spans multiple continents, finding the "perfect" time is impossible. But you can find the least painful compromiseâand rotate who takes the hit.'}),o.jsxs("div",{className:"bg-muted/50 rounded-lg p-6 mb-6",children:[o.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Common Time Zone Combinations"}),o.jsxs("div",{className:"space-y-3",children:[o.jsxs("div",{className:"flex justify-between items-center p-3 bg-background rounded border border-border",children:[o.jsx("span",{className:"font-medium",children:"US East Coast + Europe"}),o.jsx("span",{className:"text-muted-foreground",children:"2-3 PM ET / 7-8 PM GMT"})]}),o.jsxs("div",{className:"flex justify-between items-center p-3 bg-background rounded border border-border",children:[o.jsx("span",{className:"font-medium",children:"US West Coast + Asia"}),o.jsx("span",{className:"text-muted-foreground",children:"5-6 PM PT / 9-10 AM next day APAC"})]}),o.jsxs("div",{className:"flex justify-between items-center p-3 bg-background rounded border border-border",children:[o.jsx("span",{className:"font-medium",children:"Global All-Hands"}),o.jsx("span",{className:"text-muted-foreground",children:"Tuesday-Wednesday, 8-9 AM PT"})]})]})]}),o.jsx("div",{className:"bg-primary/5 border border-primary/20 rounded-lg p-4",children:o.jsxs("p",{className:"text-sm",children:[o.jsx("strong",{className:"text-primary",children:"ð Data:"}),' Companies that rotate "inconvenient" meeting times see 19% higher engagement from international teams compared to always favoring one region.']})})]}),o.jsxs("section",{className:"mb-12",children:[o.jsxs("h2",{className:"text-3xl font-bold mb-6 flex items-center gap-3",children:[o.jsx(hs,{className:"h-8 w-8 text-primary"}),'The "Meeting-Free" Blocks Strategy']}),o.jsx("p",{className:"text-lg leading-relaxed mb-6",children:"Companies like Shopify, Asana, and Dropbox have proven that strategic meeting-free periods dramatically boost productivity. Here's what the research shows:"}),o.jsxs("div",{className:"grid md:grid-cols-3 gap-4 mb-6",children:[o.jsxs("div",{className:"bg-card border border-border rounded-lg p-4 text-center",children:[o.jsx("div",{className:"text-3xl font-bold text-primary mb-2",children:"35%"}),o.jsx("div",{className:"text-sm text-muted-foreground",children:"Productivity increase with no-meeting Wednesdays"})]}),o.jsxs("div",{className:"bg-card border border-border rounded-lg p-4 text-center",children:[o.jsx("div",{className:"text-3xl font-bold text-primary mb-2",children:"3x"}),o.jsx("div",{className:"text-sm text-muted-foreground",children:"Output when protecting 9 AM-12 PM for deep work"})]}),o.jsxs("div",{className:"bg-card border border-border rounded-lg p-4 text-center",children:[o.jsx("div",{className:"text-3xl font-bold text-primary mb-2",children:"28%"}),o.jsx("div",{className:"text-sm text-muted-foreground",children:"Fewer meetings needed when batched strategically"})]})]}),o.jsxs("div",{className:"bg-muted/50 rounded-lg p-6",children:[o.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Recommended Weekly Schedule Template"}),o.jsxs("div",{className:"space-y-2 text-sm font-mono",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("span",{className:"font-bold w-24",children:"Monday:"}),o.jsx("span",{className:"text-muted-foreground",children:"Light meetings, planning (10-11 AM, 2-3 PM)"})]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("span",{className:"font-bold w-24",children:"Tuesday:"}),o.jsx("span",{className:"text-muted-foreground",children:"Heavy meeting day (10 AM-12 PM, 2-4 PM)"})]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("span",{className:"font-bold w-24 text-primary",children:"Wednesday:"}),o.jsx("span",{className:"text-primary",children:"No meetings - Deep work day ð"})]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("span",{className:"font-bold w-24",children:"Thursday:"}),o.jsx("span",{className:"text-muted-foreground",children:"Moderate meetings (10-11 AM, 3-4 PM)"})]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("span",{className:"font-bold w-24",children:"Friday:"}),o.jsx("span",{className:"text-muted-foreground",children:"Minimal meetings, wrap-ups (9-10 AM only)"})]})]})]})]}),o.jsxs("section",{className:"mb-12",children:[o.jsx("h2",{className:"text-3xl font-bold mb-6",children:"How to Implement Optimal Meeting Times"}),o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"border-l-4 border-primary pl-6",children:[o.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Step 1: Audit Current Meeting Times"}),o.jsx("p",{className:"text-muted-foreground mb-2",children:"Export your calendar for the last month and categorize meetings by type and time. Identify patterns in low-engagement meetings."}),o.jsx(de,{to:"/calculator",children:o.jsxs(z,{variant:"outline",size:"sm",className:"mt-2",children:["Calculate Your Meeting Costs",o.jsx(Zf,{className:"ml-2 h-4 w-4"})]})})]}),o.jsxs("div",{className:"border-l-4 border-primary pl-6",children:[o.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Step 2: Implement Optimal Scheduling"}),o.jsxs("ul",{className:"text-muted-foreground space-y-1 list-disc list-inside",children:[o.jsx("li",{children:"Move strategic meetings to Tuesday-Thursday, 10 AM"}),o.jsx("li",{children:"Batch meetings on specific days (try meeting-free Wednesdays)"}),o.jsx("li",{children:"Protect 9 AM-12 PM for deep work at least 2 days per week"}),o.jsx("li",{children:"Schedule 1-on-1s in the afternoon (2-3 PM)"})]})]}),o.jsxs("div",{className:"border-l-4 border-primary pl-6",children:[o.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Step 3: Communicate New Norms"}),o.jsx("p",{className:"text-muted-foreground",children:"Share this research with your team. Set calendar defaults to optimal times. Use scheduling tools that suggest best times based on these guidelines."})]}),o.jsxs("div",{className:"border-l-4 border-primary pl-6",children:[o.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Step 4: Track Impact"}),o.jsx("p",{className:"text-muted-foreground mb-3",children:"Survey your team on meeting quality monthly. Monitor meeting duration adherence. Measure productivity gains in deep work blocks."}),o.jsxs("div",{className:"bg-primary/5 rounded-lg p-4",children:[o.jsx("h4",{className:"font-semibold mb-2",children:"Expected Results:"}),o.jsxs("ul",{className:"text-sm space-y-1",children:[o.jsx("li",{children:"â 20-30% reduction in total meeting time"}),o.jsx("li",{children:"â 25% higher engagement scores"}),o.jsx("li",{children:"â 15% faster decision-making"}),o.jsx("li",{children:"â Significantly improved work-life balance"})]})]})]})]})]}),o.jsxs("section",{className:"mb-12",children:[o.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Frequently Asked Questions"}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"border border-border rounded-lg p-6 bg-card",children:[o.jsx("h3",{className:"font-semibold mb-2",children:"What if my team works different hours?"}),o.jsx("p",{className:"text-muted-foreground text-sm",children:`Apply the same principles relative to each person's start time. If someone starts at 7 AM, their "10 AM" peak is 10 AM. If they start at 11 AM, schedule important meetings for 1-2 PM (their peak window).`})]}),o.jsxs("div",{className:"border border-border rounded-lg p-6 bg-card",children:[o.jsx("h3",{className:"font-semibold mb-2",children:"Should I cancel existing recurring meetings?"}),o.jsx("p",{className:"text-muted-foreground text-sm",children:"Review them first. If a weekly meeting is scheduled for 1:30 PM on Mondays, that's double-cursed. Move it to Tuesday or Thursday at 10 AM and watch engagement so
543ar."})]}),o.jsxs("div",{className:"border border-border rounded-lg p-6 bg-card",children:[o.jsx("h3",{className:"font-semibold mb-2",children:"What about urgent meetings?"}),o.jsx("p",{className:"text-muted-foreground text-sm",children:`Truly urgent meetings can happen anytimeâthat's the nature of urgency. But be honest: is it actually urgent, or just poorly planned? Most "urgent" meetings could have been scheduled better with proper planning.`})]}),o.jsxs("div",{className:"border border-border rounded-lg p-6 bg-card",children:[o.jsx("h3",{className:"font-semibold mb-2",children:"How do I convince my boss to change meeting times?"}),o.jsx("p",{className:"text-muted-foreground text-sm",children:"Share this article and the data. Propose a 30-day experiment: move key meetings to optimal times and measure the difference in outcomes, decision quality, and how often meetings end on time. The results will speak for themselves."})]})]})]}),o.jsxs("section",{className:"mb-12",children:[o.jsx("h2",{className:"text-3xl font-bold mb-6",children:"The Bottom Line"}),o.jsx("p",{className:"text-lg leading-relaxed mb-4",children:"Timing isn't everythingâbut it's worth 40% of your meeting's success. The same agenda, same people, same topics can yield dramatically different results based solely on when you schedule it."}),o.jsxs("p",{className:"text-lg leading-relaxed mb-4",children:["The golden rule: ",o.jsx("strong",{children:"Tuesday through Thursday, 10-11 AM for anything important."}),"Avoid the post-lunch graveyard hour (1-2 PM) like the plague. Protect deep work time by batching meetings strategically."]}),o.jsx("p",{className:"text-lg leading-relaxed mb-6",children:"Most importantly, remember that no meeting time is perfect for everyoneâbut some are significantly better than others. Use this data to make informed choices, and always consider whether the meeting is necessary at all."}),o.jsxs("div",{className:"bg-primary/10 border-l-4 border-primary rounded-r-lg p-6",children:[o.jsx("p",{className:"font-semibold mb-2",children:"Before scheduling your next meeting, ask yourself:"}),o.jsxs("ol",{className:"list-decimal list-inside space-y-1 text-sm text-muted-foreground",children:[o.jsx("li",{children:"Could this be an email or async update instead?"}),o.jsx("li",{children:"Is this the optimal time based on the meeting type?"}),o.jsx("li",{children:"Have I calculated the true cost of this meeting?"}),o.jsx("li",{children:"Will this timing respect everyone's peak productivity hours?"})]})]})]}),o.jsx("section",{className:"border-t border-border pt-12",children:o.jsxs("div",{className:"bg-gradient-to-br from-primary/10 to-primary/5 rounded-xl p-8 text-center",children:[o.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Calculate the True Cost of Your Meetings"}),o.jsx("p",{className:"text-muted-foreground mb-6 max-w-2xl mx-auto",children:"Now that you know when to schedule meetings, find out how much your current meetings are costing your organization. Our calculator reveals the hidden financial impact."}),o.jsx(de,{to:"/calculator",children:o.jsxs(z,{size:"lg",className:"gap-2",children:["Try the Meeting Cost Calculator",o.jsx(Zf,{className:"h-5 w-5"})]})})]})}),o.jsxs("section",{className:"mt-12 text-sm text-muted-foreground border-t border-border pt-8",children:[o.jsx("h3",{className:"font-semibold text-foreground mb-3",children:"Sources & Research"}),o.jsxs("ul",{className:"space-y-1 text-xs",children:[o.jsx("li",{children:'⢠Harvard Business Review: "The Condensed Guide to Running Meetings" (2024)'}),o.jsx("li",{children:'⢠Journal of Applied Psychology: "Circadian Rhythms and Cognitive Performance" (2023)'}),o.jsx("li",{children:'⢠MIT Sloan Management Review: "The Science of Meeting Productivity" (2024)'}),o.jsx("li",{children:"⢠Doodle State of Meetings Report 2024"}),o.jsx("li",{children:"⢠Microsoft Work Trend Index 2024"}),o.jsx("li",{children:"⢠Atlassian Team Anywhere Report 2024"}),o.jsx("li",{children:"⢠Shopify Internal Research on Meeting-Free Wednesdays (2023)"}),o.jsx("li",{children:"⢠Meta-analysis of 3.5M meetings across 12 organizations (YouCanBook.me, 2024)"})]})]})]})]})]})]})},C4e=()=>{const e={"@context":"https://schema.org","@type":"BlogPosting",headline:"Meeting Cost Statistics 2025: The $37 Billion Problem",description:"Discover the shocking truth about how much meetings cost companies. Research-backed statistics reveal the hidden drain on productivity and budgets.",datePublished:"2025-10-28",author:{"@type":"Organization",name:"Meeting Cost Calculator"},publisher:{"@type":"Organization",name:"Meeting Cost Calculator",logo:{"@type":"ImageObject",url:"https://meetingcost.online/og-image-home.png"}},url:"https://meetingcost.online/blog/meeting-cost-statistics-2025"};return o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Oa,{title:"Meeting Cost Statistics 2025: The $37 Billion Problem",description:"Discover the shocking truth about how much meetings cost companies. Research-backed statistics reveal the hidden drain on productivity and budgets.",canonicalUrl:"https://meetingcost.online/blog/meeting-cost-statistics-2025",ogImage:"https://meetingcost.online/og-image-home.png",ogType:"article",keywords:"meeting cost statistics, meeting waste, productivity statistics, meeting ROI, unnecessary meetings",structuredData:e}),o.jsx(Qt,{}),o.jsxs("article",{className:"container mx-auto px-4 py-12 max-w-4xl",children:[o.jsx(z,{asChild:!0,variant:"ghost",className:"mb-6",children:o.jsxs(de,{to:"/blog",children:[o.jsx(Bs,{className:"mr-2 h-4 w-4"})," Back to Blog"]})}),o.jsxs("header",{className:"mb-8",children:[o.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"Meeting Cost Statistics 2025: The $37 Billion Problem"}),o.jsxs("div",{className:"flex items-center gap-4 text-muted-foreground",children:[o.jsx("time",{dateTime:"2025-10-28",children:"October 28, 2025"}),o.jsx("span",{children:"â¢"}),o.jsx("span",{children:"5 min read"})]})]}),o.jsxs("div",{className:"prose prose-lg max-w-none",children:[o.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"The average employee spends 31 hours per month in unproductive meetings. Here's what the data reveals about the true cost of meetings in 2025."}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"The Shocking Numbers"}),o.jsxs("div",{className:"grid md:grid-cols-2 gap-6 my-8 not-prose",children:[o.jsx(J,{children:o.jsxs(Z,{className:"p-6",children:[o.jsx(eu,{className:"h-12 w-12 text-primary mb-4"}),o.jsx("h3",{className:"text-2xl font-bold mb-2",children:"$37 Billion"}),o.jsx("p",{className:"text-muted-foreground",children:"Annual cost of unnecessary meetings in the U.S. alone"})]})}),o.jsx(J,{children:o.jsxs(Z,{className:"p-6",children:[o.jsx(hs,{className:"h-12 w-12 text-primary mb-4"}),o.jsx("h3",{className:"text-2xl font-bold mb-2",children:"71%"}),o.jsx("p",{className:"text-muted-foreground",children:"Of executives say meetings are unproductive and inefficient"})]})}),o.jsx(J,{children:o.jsxs(Z,{className:"p-6",children:[o.jsx(lE,{className:"h-12 w-12 text-primary mb-4"}),o.jsx("h3",{className:"text-2xl font-bold mb-2",children:"31 Hours"}),o.jsx("p",{className:"text-muted-foreground",children:"Average hours spent in unproductive meetings per month"})]})}),o.jsx(J,{children:o.jsxs(Z,{className:"p-6",children:[o.jsx(e7,{className:"h-12 w-12 text-primary mb-4"}),o.jsx("h3",{className:"text-2xl font-bold mb-2",children:"$285"}),o.jsx("p",{className:"text-muted-foreground",children:"Average cost of a single 1-hour meeting with 8 people"})]})})]}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"Why Meetings Are So Expensive"}),o.jsx("p",{children:"The true cost of meetings extends far beyond the simple calculation of hourly wages multiplied by attendees. Here's what research shows:"}),o.jsxs("ol",{className:"space-y-4 my-6",children:[o.jsxs("li",{children:[o.jsx("strong",{children:"Preparation Time:"})," Employees spend an average of 4 hours per week preparing for meetings - time that's rarely accounted for in meeting cost c
543alculations."]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Context Switching:"})," It takes an average of 23 minutes to regain focus after a meeting, costing an additional $50-100 in lost productivity per meeting."]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Opportunity Cost:"})," Time spent in meetings is time not spent on revenue-generating activities or deep work."]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Meeting Proliferation:"})," One recurring meeting often spawns 2-3 additional follow-up meetings, multiplying the cost."]})]}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"The Remote Work Impact"}),o.jsx("p",{children:"Remote work has fundamentally changed meeting dynamics:"}),o.jsxs("ul",{className:"space-y-4 my-6",children:[o.jsx("li",{children:"Video meetings increased by 300% since 2020"}),o.jsx("li",{children:"Average meeting length increased from 35 to 42 minutes"}),o.jsx("li",{children:'"Zoom fatigue" costs an estimated $2.5 billion annually in reduced productivity'}),o.jsx("li",{children:"Back-to-back meetings (with no breaks) increased by 250%"})]}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"What Top Companies Are Doing"}),o.jsx("p",{children:"Leading organizations are implementing these strategies to reduce meeting costs:"}),o.jsxs("div",{className:"bg-muted p-6 rounded-lg my-8",children:[o.jsx("h3",{className:"text-xl font-bold mb-4",children:"Success Stories"}),o.jsxs("ul",{className:"space-y-4",children:[o.jsxs("li",{children:[o.jsx("strong",{children:"Shopify:"})," Canceled all recurring meetings with 3+ people, saving an estimated 95,000 hours in 2023"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Asana:"}),' Implemented "No Meeting Wednesdays," increasing deep work time by 45%']}),o.jsxs("li",{children:[o.jsx("strong",{children:"GitLab:"})," Moved to async-first communication, reducing meetings by 60% while maintaining productivity"]})]})]}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"Calculate Your Meeting Costs"}),o.jsx("p",{children:"Don't let your organization become part of these statistics. Use our free calculator to see exactly how much your meetings are costing."}),o.jsx("div",{className:"my-8 not-prose",children:o.jsx(J,{className:"bg-gradient-primary text-primary-foreground",children:o.jsxs(Z,{className:"p-8 text-center",children:[o.jsx("h3",{className:"text-2xl font-bold mb-3",children:"Ready to Calculate Your Meeting Costs?"}),o.jsx("p",{className:"mb-6 opacity-90",children:"See exactly how much your meetings are costing in real-time"}),o.jsx(z,{asChild:!0,size:"lg",variant:"secondary",children:o.jsx(de,{to:"/calculator",children:"Start Free Calculator"})})]})})}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"Key Takeaways"}),o.jsxs("ul",{className:"space-y-3 my-6",children:[o.jsx("li",{children:"Unnecessary meetings cost U.S. businesses $37 billion annually"}),o.jsx("li",{children:"71% of executives find meetings unproductive"}),o.jsx("li",{children:"Remote work increased meeting frequency by 300%"}),o.jsx("li",{children:"Leading companies are reducing meetings by 60%+ with async-first approaches"}),o.jsx("li",{children:"Calculating meeting costs is the first step to reducing waste"})]}),o.jsxs("div",{className:"border-t border-border pt-8 mt-12",children:[o.jsx("h3",{className:"text-xl font-bold mb-4",children:"Sources & Research"}),o.jsxs("ul",{className:"text-sm text-muted-foreground space-y-2",children:[o.jsx("li",{children:'Harvard Business Review: "Stop the Meeting Madness" (2017-2024)'}),o.jsx("li",{children:'Atlassian: "State of Teams Report" (2024)'}),o.jsx("li",{children:'Doodle: "State of Meetings Report" (2024)'}),o.jsx("li",{children:"Microsoft Work Trend Index (2024)"})]})]})]})]})]})},j4e=()=>{const e={"@context":"https://schema.org","@type":"BlogPosting",headline:"How to Calculate Meeting ROI (With Real Examples)",description:"Learn the exact formula to measure meeting ROI. Step-by-step guide with templates and real-world case studies from Fortune 500 companies.",datePublished:"2025-10-27",author:{"@type":"Organization",name:"Meeting Cost Calculator"},url:"https://meetingcost.online/blog/calculate-meeting-roi"};return o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Oa,{title:"How to Calculate Meeting ROI (With Real Examples)",description:"Learn the exact formula to measure meeting ROI. Step-by-step guide with templates and real-world case studies from Fortune 500 companies.",canonicalUrl:"https://meetingcost.online/blog/calculate-meeting-roi",ogImage:"https://meetingcost.online/og-image-calculator.png",ogType:"article",keywords:"meeting ROI, calculate meeting ROI, meeting efficiency, meeting metrics",structuredData:e}),o.jsx(Qt,{}),o.jsxs("article",{className:"container mx-auto px-4 py-12 max-w-4xl",children:[o.jsx(z,{asChild:!0,variant:"ghost",className:"mb-6",children:o.jsxs(de,{to:"/blog",children:[o.jsx(Bs,{className:"mr-2 h-4 w-4"})," Back to Blog"]})}),o.jsxs("header",{className:"mb-8",children:[o.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"How to Calculate Meeting ROI (With Real Examples)"}),o.jsxs("div",{className:"flex items-center gap-4 text-muted-foreground",children:[o.jsx("time",{dateTime:"2025-10-27",children:"October 27, 2025"}),o.jsx("span",{children:"â¢"}),o.jsx("span",{children:"8 min read"})]})]}),o.jsxs("div",{className:"prose prose-lg max-w-none",children:[o.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"Most companies track every dollar spent on software, office space, and equipmentâbut completely ignore the cost of meetings. Here's how to change that."}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"The Meeting ROI Formula"}),o.jsx("div",{className:"bg-muted p-8 rounded-lg my-8 not-prose",children:o.jsxs("div",{className:"text-center",children:[o.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Meeting ROI Formula"}),o.jsx("div",{className:"text-2xl md:text-3xl font-mono font-bold mb-4",children:"ROI = (Value Generated - Meeting Cost) / Meeting Cost à 100%"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Where Meeting Cost = (Avg Hourly Rate à Attendees à Duration) + Preparation Time + Opportunity Cost"})]})}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"Step 1: Calculate Meeting Cost"}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"Direct
543Costs"}),o.jsx("p",{children:"Calculate the immediate financial impact:"}),o.jsxs("div",{className:"bg-muted p-6 rounded-lg my-6",children:[o.jsx("h4",{className:"font-bold mb-3",children:"Example: Product Strategy Meeting"}),o.jsxs("ul",{className:"space-y-2",children:[o.jsx("li",{children:"8 attendees à $75/hour average à 1.5 hours = $900"}),o.jsx("li",{children:"Preparation time: 8 people à 30 min à $75/hour = $300"}),o.jsx("li",{children:"Conference room & equipment: $50"}),o.jsx("li",{children:o.jsx("strong",{children:"Total Direct Cost: $1,250"})})]})]}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"Hidden Costs"}),o.jsx("p",{children:"These often exceed direct costs:"}),o.jsxs("ul",{className:"space-y-4 my-6",children:[o.jsxs("li",{children:[o.jsx("strong",{children:"Context Switching:"})," 23 minutes average to regain focus à 8 people à $75/hour = $230"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Follow-up Meetings:"})," This meeting spawned 2 additional 30-min meetings = $600"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Opportunity Cost:"})," Could these 8 people have generated more value doing deep work? Estimated: $2,000"]})]}),o.jsxs("div",{className:"bg-destructive/10 border border-destructive/20 p-6 rounded-lg my-8",children:[o.jsx("p",{className:"font-bold mb-2",children:"True Total Cost: $4,080"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"That's 3.3à higher than the obvious $1,250 direct cost"})]}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"Step 2: Measure Value Generated"}),o.jsx("p",{children:"This is harder but critical. Use these frameworks:"}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"Decision-Making Meetings"}),o.jsxs("div",{className:"bg-muted p-6 rounded-lg my-6",children:[o.jsx("p",{className:"font-bold mb-3",children:"Value = Impact of Decision à Probability of Success"}),o.jsx("p",{className:"mb-3",children:"Example: Product roadmap meeting"}),o.jsxs("ul",{className:"space-y-2",children:[o.jsx("li",{children:"Decision: Launch Feature X (projected $500K ARR impact)"}),o.jsx("li",{children:"Meeting quality improved success probability by 20%"}),o.jsx("li",{children:o.jsx("strong",{children:"Value Generated: $500K à 0.20 = $100,000"})}),o.jsxs("li",{children:[o.jsx("strong",{children:"ROI: ($100,000 - $4,080) / $4,080 = 2,349%"})," â
"]})]})]}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"Information Sharing Meetings"}),o.jsxs("div",{className:"bg-muted p-6 rounded-lg my-6",children:[o.jsx("p",{className:"font-bold mb-3",children:"Value = Time Saved à Number of People à Hourly Rate"}),o.jsx("p",{className:"mb-3",children:"Example: Weekly team standup"}),o.jsxs("ul",{className:"space-y-2",children:[o.jsx("li",{children:"Cost: 10 people à $60/hour à 0.5 hours = $300"}),o.jsx("li",{children:"Information shared prevented 5 hours of confusion/rework"}),o.jsx("li",{children:"Time saved: 5 hours à 10 people à $60 = $3,000"}),o.jsxs("li",{children:[o.jsx("strong",{children:"ROI: ($3,000 - $300) / $300 = 900%"})," â
"]})]})]}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"Brainstorming Meetings"}),o.jsxs("div",{className:"bg-destructive/10 border border-destructive/20 p-6 rounded-lg my-6",children:[o.jsx("p",{className:"font-bold mb-3",children:"â ï¸ Often Negative ROI"}),o.jsx("p",{className:"mb-3",children:'Example: "Innovation workshop"'}),o.jsxs("ul",{className:"space-y-2",children:[o.jsx("li",{children:"Cost: 12 people à $80/hour à 2 hours = $1,920"}),o.jsx("li",{children:"Ideas generated: 15 (12 duplicates, 2 already tried, 1 novel)"}),o.jsx("li",{children:"Value of 1 novel idea: $5,000 (if implemented)"}),o.jsx("li",{children:"Probability of implementation: 10%"}),o.jsx("li",{children:"Expected value: $5,000 à 0.10 = $500"}),o.jsxs("li",{children:[o.jsx("strong",{children:"ROI: ($500 - $1,920) / $1,920 = -74%"})," â"]})]}),o.jsxs("p",{className:"mt-3 text-sm",children:[o.jsx("strong",{children:"Alternative:"})," Async brainstorming doc would cost $200 and likely generate same ideas"]})]}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"Real-World Case Studies"}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"Case Study 1: Sales Forecast Meeting (Fortune 500)"}),o.jsxs("div",{className:"bg-muted p-6 rounded-lg my-6",children:[o.jsx("p",{className:"font-bold mb-3",children:"Before Optimization"}),o.jsxs("ul",{className:"space-y-2 mb-4",children:[o.jsx("li",{children:"Weekly 2-hour meeting, 15 attendees"}),o.jsx("li",{children:"Average salary: $120K/year = $60/hour"}),o.jsx("li",{children:"Direct cost: 15 à $60 à 2 = $1,800/week"}),o.jsx("li",{children:"Annual cost: $1,800 à 52 = $93,600"}),o.jsx("li",{children:"Value: Improved forecast accuracy by 2% = $200K in better inventory management"}),o.jsx("li",{children:"ROI: ($200K - $93.6K) / $93.6K = 114%"})]}),o.jsx("p",{className:"font-bold mb-3 mt-6",children:"After Optimization"}),o.jsxs("ul",{className:"space-y-2",children:[o.jsx("li",{children:"Moved to dashboard + 30-min async review + 30-min sync only when needed"}),o.jsx("li",{children:"5 core attendees instead of 15"}),o.jsx("li",{children:"New cost: 5 à $60 à 0.5 à 26 meetings/year = $3,900"}),o.jsx("li",{children:"Same forecast accuracy (dashboard provided better data)"}),o.jsx("li",{children:o.jsx("strong",{children:"New ROI: ($200K - $3.9K) / $3.9K = 5,
543028%"})}),o.jsx("li",{children:o.jsx("strong",{children:"Savings: $89,700/year"})})]})]}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"Your Action Plan"}),o.jsxs("ol",{className:"space-y-6 my-8",children:[o.jsxs("li",{children:[o.jsx("strong",{children:"Audit all recurring meetings this week"}),o.jsxs("ul",{className:"mt-2 space-y-1 ml-6",children:[o.jsx("li",{children:"Use our calculator to get true cost"}),o.jsx("li",{children:"Estimate value generated (be honest)"}),o.jsx("li",{children:"Calculate ROI for each meeting"})]})]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Cancel anything with ROI < 100%"}),o.jsxs("ul",{className:"mt-2 space-y-1 ml-6",children:[o.jsx("li",{children:"Replace with async alternatives"}),o.jsx("li",{children:"Reduce attendees to core decision-makers"}),o.jsx("li",{children:"Cut duration by 50% and see if value changes"})]})]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Track meeting ROI monthly"}),o.jsxs("ul",{className:"mt-2 space-y-1 ml-6",children:[o.jsx("li",{children:'Add "expected value" to all meeting invites'}),o.jsx("li",{children:"Review actual value generated in retrospectives"}),o.jsx("li",{children:"Build a culture of meeting accountability"})]})]})]}),o.jsx("div",{className:"my-8 not-prose",children:o.jsx(J,{className:"bg-gradient-primary text-primary-foreground",children:o.jsxs(Z,{className:"p-8 text-center",children:[o.jsx("h3",{className:"text-2xl font-bold mb-3",children:"Calculate Your Meeting ROI Now"}),o.jsx("p",{className:"mb-6 opacity-90",children:"Use our free calculator to see if your meetings are worth it"}),o.jsx(z,{asChild:!0,size:"lg",variant:"secondary",children:o.jsx(de,{to:"/calculator",children:"Start Free Calculator"})})]})})}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"Common ROI Benchmarks"}),o.jsxs("ul",{className:"space-y-3 my-6",children:[o.jsxs("li",{children:[o.jsx("strong",{children:"Excellent (>500% ROI):"})," Strategic decisions, crisis management, key client meetings"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Good (200-500% ROI):"})," Sprint planning, quarterly reviews, problem-solving sessions"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Acceptable (100-200% ROI):"})," Standups, 1-on-1s, team syncs"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Questionable (0-100% ROI):"})," Status updates, FYI meetingsâconsider async"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Unacceptable (<0% ROI):"})," Cancel immediately"]})]})]})]})]})},_4e=()=>{const e={"@context":"https://schema.org","@type":"BlogPosting",headline:"15 Proven Ways to Reduce Meeting Costs by 40%",description:"Actionable strategies used by top companies to slash meeting expenses. Includes free templates and implementation checklist.",datePublished:"2025-10-26",author:{"@type":"Organization",name:"Meeting Cost Calculator"},url:"https://meetingcost.online/blog/reduce-meeting-costs"};return o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Oa,{title:"15 Proven Ways to Reduce Meeting Costs by 40%",description:"Actionable strategies used by top companies to slash meeting expenses. Includes free templates and implementation checklist.",canonicalUrl:"https://meetingcost.online/blog/reduce-meeting-costs",ogImage:"https://meetingcost.online/og-image-home.png",ogType:"article",keywords:"reduce meeting costs, meeting efficiency, productivity tips, fewer meetings",structuredData:e}),o.jsx(Qt,{}),o.jsxs("article",{className:"container mx-auto px-4 py-12 max-w-4xl",children:[o.jsx(z,{asChild:!0,variant:"ghost",className:"mb-6",children:o.jsxs(de,{to:"/blog",children:[o.jsx(Bs,{className:"mr-2 h-4 w-4"})," Back to Blog"]})}),o.jsxs("header",{className:"mb-8",children:[o.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"15 Proven Ways to Reduce Meeting Costs by 40%"}),o.jsxs("div",{className:"flex items-center gap-4 text-muted-foreground",children:[o.jsx("time",{dateTime:"2025-10-26",children:"October 26, 2025"}),o.jsx("span",{children:"â¢"}),o.jsx("span",{children:"10 min read"})]})]}),o.jsxs("div",{className:"prose prose-lg max-w-none",children:[o.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"Companies that implement these 15 strategies reduce meeting costs by an average of 42% within 90 days. Here's your complete implementation guide."}),o.jsxs("div",{className:"bg-gradient-primary text-primary-foreground p-6 rounded-lg my-8 not-prose",children:[o.jsx("h3",{className:"text-xl font-bold mb-3",children:"Qu
543ick Win Alert ð¯"}),o.jsxs("p",{className:"opacity-90",children:["Use code ",o.jsx("strong",{className:"text-2xl",children:"MEETLESS40"})," for 40% off our Pro plan (first 100 readers only)"]}),o.jsx(z,{asChild:!0,variant:"secondary",className:"mt-4",children:o.jsx(de,{to:"/pricing",children:"Claim Your Discount"})})]}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"The 15 Strategies"}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:'1. Implement the "No Meeting Default"'}),o.jsxs("p",{children:[o.jsx("strong",{children:"Impact:"})," Reduces meetings by 30-40%",o.jsx("br",{}),o.jsx("strong",{children:"Time to implement:"})," 1 day"]}),o.jsx("p",{children:"Make async communication the default. Meetings require written justification. Shopify saved 95,000 hours in 2023 using this approach."}),o.jsxs("div",{className:"bg-muted p-4 rounded my-4",children:[o.jsx("p",{className:"font-bold mb-2",children:"Template: Meeting Request Form"}),o.jsxs("ul",{className:"text-sm space-y-1",children:[o.jsx("li",{children:"â
What decision needs to be made?"}),o.jsx("li",{children:"â
Why can't this be async?"}),o.jsx("li",{children:"â
Expected outcome?"}),o.jsx("li",{children:"â
Meeting cost estimate?"})]})]}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"2. Cut Meeting Duration by 50%"}),o.jsxs("p",{children:[o.jsx("strong",{children:"Impact:"})," Saves 15-25% on meeting costs",o.jsx("br",{}),o.jsx("strong",{children:"Time to implement:"})," Immediate"]}),o.jsx("p",{children:"Parkinson's Law: work expands to fill time. Default to 15-min meetings instead of 30-min, 25-min instead of 60-min."}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"3. Remove Optional Attendees"}),o.jsxs("p",{children:[o.jsx("strong",{children:"Impact:"})," 20-30% cost reduction per meeting",o.jsx("br",{}),o.jsx("strong",{children:"Time to implement:"})," 1 week"]}),o.jsx("p",{children:`Amazon's "two-pizza rule": if you need more than 2 pizzas to feed the meeting, it's too big.`}),o.jsxs("div",{className:"bg-muted p-4 rounded my-4",children:[o.jsx("p",{className:"font-bold mb-2",children:"Rule: Only 3 types of attendees allowed"}),o.jsxs("ul",{className:"text-sm space-y-1",children:[o.jsxs("li",{children:[o.jsx("strong",{children:"Decision-makers:"})," Have authority to decide"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Experts:"})," Have unique information needed"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Executors:"})," Will implement the decision"]})]}),o.jsx("p",{className:"text-sm mt-2 text-muted-foreground",children:"Everyone else gets the notes"})]}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:'4. Institute "No Meeting" Blocks'}),o.jsxs("p",{children:[o.jsx("strong",{children:"Impact:"})," Increases deep work by 45%",o.jsx("br",{}),o.jsx("strong",{children:"Companies using this:"})," Asana, GitLab, Shopify"]}),o.jsxs("ul",{className:"my-4 space-y-2",children:[o.jsxs("li",{children:[o.jsx("strong",{children:"No Meeting Wednesdays:"})," Full day for deep work"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"No Morning Meetings:"})," Before 11am is sacred"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"No Friday Meetings:"})," Async wrap-up day"]})]}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"5. Use the Meeting Cost Calculator"}),o.jsxs("p",{children:[o.jsx("strong",{children:"Impact:"})," 25% reduction when cost is visible",o.jsx("br",{}),o.jsx("strong",{children:"Time to implement:"})," 5 minutes"]}),o.jsx("p",{children:"Display real-time cost during meetings. Research shows awareness alone reduces unnecessary tangents by 35%."}),o.jsx("div",{className:"my-6 not-prose",children:o.jsx(J,{children:o.jsxs(Z,{className:"p-6",children:[o.jsx("p",{className:"font-bold mb-3",children:"Try it now:"}),o.jsx(z,{asChild:!0,variant:"outline",className:"w-full",children:o.jsx(de,{to:"/calculator",children:"Calculate Your Meeting Cost"})})]})})}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"6. Implement Mandatory Agendas"}),o.jsxs("p",{children:[o.jsx("strong",{children:"Impact:"})," Saves 18 minutes per meeting",o.jsx("br",{}),o.jsx("strong",{children:"Time to implement:"})," 1 day"]}),o.jsxs("div",{className:"bg-muted p-4 rounded my-4",children:[o.jsx("p",{className:"font-bold mb-2",children:"Rule: No agenda = No meeting"}),o.jsx("p",{className:"text-sm",children:"Agenda must include:"}),o.jsxs("ul",{className:"text-sm space-y-1 mt-2",children:[o.jsx("li",{children:"â
Specific decisions to be made"}),o.jsx("li",{children:"â
Time-boxed topics"}),o.jsx("li",{children:"â
Pre-read materials (sent 24h before)"}),o.jsx("li",{children:"â
Success criteria"})]})]}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"7. Start with Silence (Amazon's Method)"}),o.jsxs("p",{children:[o.jsx("strong",{children:"Impact:"})," Reduces meeting time by 30%",o.jsx("br",{}),o.jsx("strong",{children:"Company:"})," Amazon (Jeff Bezos's innovation)"]}),o.jsx("p",{children:"First 10-15 minutes: everyone reads a 6-page memo in silence. Eliminates need for presentations and ensures informed discussion."}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"8. Default to Async Tools"}),o.jsxs("p",{children:[o.jsx("strong",{children:"Impact:"})," 40-60% fewer meetings",o.jsx("br",{}),o.jsx("strong",{children:"Time to implement:"})," 2 weeks"]}),o.jsxs("ul",{className:"my-4 space-y-2",children:[o.jsxs("li",{children:[o.jsx("strong",{children:"Status updates:"})," Slack/Teams threads (not meetings)"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Brainstorming:"})," Miro/Figma boards (async collaboration)"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Decisions:"})," Loom videos + Google Docs"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Updates:"})," Newsletter/dashboard (not weekly calls)"]})]}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"9. Record and Share Meetings"}),o.jsxs("p",{children:[o.jsx("strong",{children:"Impact:"})," Reduces attendees by 50%",o.jsx("br",{}),o.jsx("strong",{children:"Tools:"})," Loom, Grain, Fireflies.ai"]}),o.jsx("p",{children:'Record all meetings. Most "required" attendees can watch at 2x speed later.'}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"10. Kill Recurring Meetings Quarterly"}),o.jsxs("p",{children:[o.jsx("strong",{children:"Impact:"}),' Prevents "zombie meetings"',o.jsx("br",{}),o.jsx("strong",{children:"Time to implement:"})," Quarterly review"]}),o.jsx("p",{children:"Every quarter, cancel ALL recurring meetings. Only reinstate those that pass a cost-benefit analysis."}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"11. Charge for Meetings (Internal)"}),o.jsxs("p",{children:[o.jsx("strong",{children:"Impact:"})," 35% reduction in meeting requests",o.jsx("br",{}),o.jsx("strong",{children:"Company:"})," Several YC startups"]}),o.jsx("p",{children:'Make departments "pay" for meetings using internal
543credits. Watch unnecessary meetings disappear.'}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"12. Use the 5-Minute Stand-Up"}),o.jsxs("p",{children:[o.jsx("strong",{children:"Impact:"})," Replaces 30-60 min meetings",o.jsx("br",{}),o.jsx("strong",{children:"Format:"})," Literally standing (no chairs)"]}),o.jsxs("ul",{className:"my-4 space-y-2",children:[o.jsx("li",{children:"What did you do? (30 sec per person)"}),o.jsx("li",{children:"What will you do? (30 sec per person)"}),o.jsx("li",{children:"Any blockers? (30 sec per person)"}),o.jsx("li",{children:"Deep dives â separate meetings with only relevant people"})]}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:'13. Implement "Walk-Out" Rights'}),o.jsxs("p",{children:[o.jsx("strong",{children:"Impact:"})," Improves meeting quality instantly",o.jsx("br",{}),o.jsx("strong",{children:"Company:"})," Tesla (Elon Musk's rule)"]}),o.jsx("p",{children:"Anyone can leave a meeting if they're not adding value. No explanation needed. No hurt feelings."}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"14. Set a Meeting Budget"}),o.jsxs("p",{children:[o.jsx("strong",{children:"Impact:"})," 30% cost reduction",o.jsx("br",{}),o.jsx("strong",{children:"Time to implement:"})," 1 week"]}),o.jsxs("div",{className:"bg-muted p-4 rounded my-4",children:[o.jsx("p",{className:"font-bold mb-2",children:"Budget Framework:"}),o.jsxs("ul",{className:"text-sm space-y-1",children:[o.jsx("li",{children:"Each team gets 10 hours of meeting time per week maximum"}),o.jsx("li",{children:"Track it like financial budget"}),o.jsx("li",{children:"Teams optimize to stay under budget"}),o.jsx("li",{children:"Unused time = bonus/recognition"})]})]}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"15. Create a Meeting-Free Culture"}),o.jsxs("p",{children:[o.jsx("strong",{children:"Impact:"})," Long-term sustainable reduction",o.jsx("br",{}),o.jsx("strong",{children:"Time to implement:"})," 3-6 months"]}),o.jsxs("ul",{className:"my-4 space-y-2",children:[o.jsx("li",{children:"Leaders model async-first behavior"}),o.jsx("li",{children:'Celebrate "meeting-less" wins publicly'}),o.jsx("li",{children:"Make meeting cost visible in performance reviews"}),o.jsx("li",{children:"Hire for async communication skills"})]}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"90-Day Implementation Plan"}),o.jsxs("div",{className:"space-y-6 my-8",children:[o.jsx(J,{children:o.jsxs(Z,{className:"p-6",children:[o.jsx("h3",{className:"text-xl font-bold mb-3",children:"Month 1: Quick Wins"}),o.jsxs("ul",{className:"space-y-2",children:[o.jsx("li",{children:"â
Implement meeting cost calculator"}),o.jsx("li",{children:"â
Cut all meeting durations by 50%"}),o.jsx("li",{children:"â
Remove optional attendees"}),o.jsx("li",{children:"â
Require agendas for all meetings"})]}),o.jsx("p",{className:"mt-4 text-sm text-muted-foreground",children:"Expected savings: 15-25%"})]})}),o.jsx(J,{children:o.jsxs(Z,{className:"p-6",children:[o.jsx("h3",{className:"text-xl font-bold mb-3",children:"Month 2: Process Changes"}),o.jsxs("ul",{className:"space-y-2",children:[o.jsx("li",{children:"â
Institute No Meeting Wednesdays"}),o.jsx("li",{children:"â
Roll out async tools (Loom, Slack threads)"}),o.jsx("li",{children:"â
Start recording meetings"}),o.jsx("li",{children:"â
Implement meeting request forms"})]}),o.jsx("p",{className:"mt-4 text-sm text-muted-foreground",children:"Expected savings: 30-40%"})]})}),o.jsx(J,{children:o.jsxs(Z,{className:"p-6",children:[o.jsx("h3",{className:"text-xl font-bold mb-3",children:"Month 3: Cultural Shift"}),o.jsxs("ul",{className:"space-y-2",children:[o.jsx("li",{children:"â
Cancel all recurring meetings (reinstate only valuable ones)"}),o.jsx("li",{children:"â
Set team meeting budgets"}),o.jsx("li",{children:"â
Train teams on async communication"}),o.jsx("li",{children:"â
Measure and celebrate wins"})]}),o.jsx("p",{className:"mt-4 text-sm text-muted-foreground",children:"Expected savings: 40-50%"})]})})]}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"Free Resources"}),o.jsx("div",{className:"my-8 not-prose",children:o.jsx(J,{className:"bg-gradient-primary text-primary-foreground",children:o.jsxs(Z,{className:"p-8",children:[o.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Get Your Implementation Kit"}),o.jsxs("ul",{className:"space-y-2 mb-6 opacity-90",children:[o.jsx("li",{children:"â
Meeting Request Form Template"}),o.jsx("li",{children:"â
Meeting Audit Spreadsheet"}),o.jsx("li",{children:"â
Async Communication Guide"}
543),o.jsx("li",{children:"â
Meeting Budget Calculator"}),o.jsx("li",{children:"â
90-Day Implementation Checklist"})]}),o.jsxs("p",{className:"text-sm opacity-75 mb-4",children:["Normally $99 â ",o.jsx("strong",{children:"Free with code MEETLESS40"})]}),o.jsx(z,{asChild:!0,variant:"secondary",size:"lg",children:o.jsx(de,{to:"/pricing",children:"Get Free Templates"})})]})})}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"Measuring Success"}),o.jsx("p",{children:"Track these metrics monthly:"}),o.jsxs("ul",{className:"space-y-3 my-6",children:[o.jsxs("li",{children:[o.jsx("strong",{children:"Total meeting hours:"})," Aim for 30-40% reduction"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Meeting cost per employee:"})," Should drop significantly"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Meeting ROI:"})," Ensure remaining meetings have >200% ROI"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Deep work time:"})," Should increase by 5-10 hours/week"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"Employee satisfaction:"})," Survey before/after"]})]}),o.jsxs("div",{className:"border-t border-border pt-8 mt-12",children:[o.jsx("h3",{className:"text-xl font-bold mb-4",children:"Ready to Cut Your Meeting Costs?"}),o.jsx("p",{className:"mb-4",children:"Start by calculating exactly how much your meetings cost today:"}),o.jsx(z,{asChild:!0,size:"lg",children:o.jsx(de,{to:"/calculator",children:"Calculate Meeting Costs"})})]})]})]})]})},E4e=()=>{const e={"@context":"https://schema.org","@type":"BlogPosting",headline:"Should This Meeting Be An Email? Cost-Based Decision Framework",description:"Use this simple decision tree to determine when meetings are worth the cost. Save thousands by eliminating unnecessary meetings.",datePublished:"2025-10-25",author:{"@type":"Organization",name:"Meeting Cost Calculator"},url:"https://meetingcost.online/blog/meeting-or-email"};return o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Oa,{title:"Should This Meeting Be An Email? Cost-Based Decision Framework",description:"Use this simple decision tree to determine when meetings are worth the cost. Save thousands by eliminating unnecessary meetings.",canonicalUrl:"https://meetingcost.online/blog/meeting-or-email",ogImage:"https://meetingcost.online/og-image-home.png",ogType:"article",keywords:"meeting vs email, when to have meetings, async communication, meeting decision framework",structuredData:e}),o.jsx(Qt,{}),o.jsxs("article",{className:"container mx-auto px-4 py-12 max-w-4xl",children:[o.jsx(z,{asChild:!0,variant:"ghost",className:"mb-6",children:o.jsxs(de,{to:"/blog",children:[o.jsx(Bs,{className:"mr-2 h-4 w-4"})," Back to Blog"]})}),o.jsxs("header",{className:"mb-8",children:[o.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"Should This Meeting Be An Email? Cost-Based Decision Framework"}),o.jsxs("div",{className:"flex items-center gap-4 text-muted-foreground",children:[o.jsx("time",{dateTime:"2025-10-25",children:"October 25, 2025"}),o.jsx("span",{children:"â¢"}),o.jsx("span",{children:"6 min read"})]})]}),o.jsxs("div",{className:"prose prose-lg max-w-none",children:[o.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"Research shows 71% of meetings could be emails. Here's the definitive framework to decideâbased on actual cost and value, not gut feeling."}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"The Cost Reality Check"}),o.jsxs("div",{className:"grid md:grid-cols-2 gap-6 my-8 not-prose",children:[o.jsx(J,{children:o.jsxs(Z,{className:"p-6",children:[o.jsx(c7,{className:"h-12 w-12 text-primary mb-4"}),o.jsx("h3",{className:"text-2xl font-bold mb-2",children:"Email/Doc"}),o.jsxs("ul",{className:"space-y-2 text-sm",children:[o.jsx("li",{children:"â
Cost: $15-50 (writing time)"}),o.jsx("li",{children:"â
Time commitment: 10-30 min"}),o.jsx("li",{children:"â
Flexibility: Read on your schedule"}),o.jsx("li",{children:"â
Documentation: Automatic"}),o.jsx("li",{children:"â
Scalability: Infinite recipients"})]})]})}),o.jsx(J,{children:o.jsxs(Z,{className:"p-6",children:[o.jsx(B7,{className:"h-12 w-12 text-destructive mb-4"}),o.jsx("h3",{className:"text-2xl font-bold mb-2",children:"Meeting"}),o.jsxs("ul",{className:"space-y-2 text-sm",children:[o.jsx("li",{children:"â ï¸ Cost: $300-2,000+ (all attendees)"}
543),o.jsx("li",{children:"â ï¸ Time commitment: 30-60 min (everyone)"}),o.jsx("li",{children:"â ï¸ Flexibility: Fixed schedule"}),o.jsx("li",{children:"â ï¸ Documentation: Requires extra work"}),o.jsx("li",{children:"â ï¸ Scalability: Limited attendees"})]})]})})]}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"The Decision Framework"}),o.jsx("h3",{className:"text-2xl font-bold mt-8 mb-4",children:"â
When a Meeting IS Worth It"}),o.jsxs("div",{className:"space-y-6 my-8",children:[o.jsx(J,{className:"border-green-500/50",children:o.jsx(Z,{className:"p-6",children:o.jsxs("div",{className:"flex gap-4",children:[o.jsx(bd,{className:"h-6 w-6 text-green-500 flex-shrink-0 mt-1"}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-bold mb-2",children:"1. High-Stakes Decisions ($100K+ impact)"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Example: Product roadmap, major hiring decisions, strategic pivots"}),o.jsxs("p",{className:"text-sm",children:[o.jsx("strong",{children:"Why meeting wins:"})," Real-time debate, reading body language, building consensus on critical decisions justifies the cost."]})]})]})})}),o.jsx(J,{className:"border-green-500/50",children:o.jsx(Z,{className:"p-6",children:o.jsxs("div",{className:"flex gap-4",children:[o.jsx(bd,{className:"h-6 w-6 text-green-500 flex-shrink-0 mt-1"}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-bold mb-2",children:"2. Complex Problem-Solving"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Example: Debugging production issues, architectural decisions, crisis management"}),o.jsxs("p",{className:"text-sm",children:[o.jsx("strong",{children:"Why meeting wins:"})," Rapid back-and-forth, whiteboarding, collective intelligence saves hours of async confusion."]})]})]})})}),o.jsx(J,{className:"border-green-500/50",children:o.jsx(Z,{className:"p-6",children:o.jsxs("div",{className:"flex gap-4",children:[o.jsx(bd,{className:"h-6 w-6 text-green-500 flex-shrink-0 mt-1"}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-bold mb-2",children:"3. Relationship Building"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Example: 1-on-1s with direct reports, client relationship meetings, team bonding"}),o.jsxs("p",{className:"text-sm",children:[o.jsx("strong",{children:"Why meeting wins:"})," Trust and rapport are built through human connection. Hard to quantify but extremely valuable."]})]})]})})}),o.jsx(J,{className:"border-green-500/50",children:o.jsx(Z,{className:"p-6",children:o.jsxs("div",{className:"flex gap-4",children:[o.jsx(bd,{className:"h-6 w-6 text-green-500 flex-shrink-0 mt-1"}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-bold mb-2",children:"4. Sensitive/Emotional Topics"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Example: Performance reviews, layoffs, conflict resolution, delivering bad news"}),o.jsxs("p",{className:"text-sm",children:[o.jsx("strong",{children:"Why meeting wins:"})," Tone, empathy, and immediate clarification prevent misinterpretation. Async is cold for these topics."]})]})]})})}),o.jsx(J,{className:"border-green-500/50",children:o.jsx(Z,{className:"p-6",children:o.jsxs("div",{className:"flex gap-4",children:[o.jsx(bd,{className:"h-6 w-6 text-green-500 flex-shrink-0 mt-1"}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-bold mb-2",children:"5. Alignment on Ambiguous Topics"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Example: Early product brainstorming, defining company values, setting quarterly goals"}),o.jsxs("p",{className:"text-sm",children:[o.jsx("strong",{children:"Why meeting wins:"})," When the problem isn't well-defined, real-time discussion helps create shared understanding faster."]})]})]})})})]}),o.jsx("h3",{className:"text-2xl font-bold mt-12 mb-4",children:"â When It Should Be Async"}),o.jsxs("div",{className:"space-y-6 my-8",children:[o.jsx(J,{className:"border-red-500/50",children:o.jsx(Z,{className:"p-6",children:o.jsxs("div",{className:"flex gap-4",children:[o.jsx(Bd,{className:"h-6 w-6 text-red-500 flex-shrink-0 mt-1"}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-bold mb-2",children:"1. Status Upd
543ates / FYI Information"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Example: Weekly team updates, project progress reports, metrics review"}),o.jsxs("p",{className:"text-sm",children:[o.jsx("strong",{children:"Better alternative:"})," Dashboard, Slack post, Loom video. Let people consume on their schedule."]})]})]})})}),o.jsx(J,{className:"border-red-500/50",children:o.jsx(Z,{className:"p-6",children:o.jsxs("div",{className:"flex gap-4",children:[o.jsx(Bd,{className:"h-6 w-6 text-red-500 flex-shrink-0 mt-1"}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-bold mb-2",children:"2. Information That Can Be Documented"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Example: Training sessions, policy announcements, feature demos"}),o.jsxs("p",{className:"text-sm",children:[o.jsx("strong",{children:"Better alternative:"})," Record a Loom, write docs. More scalable, searchable, and respectful of people's time."]})]})]})})}),o.jsx(J,{className:"border-red-500/50",children:o.jsx(Z,{className:"p-6",children:o.jsxs("div",{className:"flex gap-4",children:[o.jsx(Bd,{className:"h-6 w-6 text-red-500 flex-shrink-0 mt-1"}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-bold mb-2",children:"3. Low-Stakes Decisions"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Example: Choosing meeting times, minor copy changes, small budget approvals"}),o.jsxs("p",{className:"text-sm",children:[o.jsx("strong",{children:"Better alternative:"})," Email with a deadline. Use Calendly for scheduling. Slack poll for quick votes."]})]})]})})}),o.jsx(J,{className:"border-red-500/50",children:o.jsx(Z,{className:"p-6",children:o.jsxs("div",{className:"flex gap-4",children:[o.jsx(Bd,{className:"h-6 w-6 text-red-500 flex-shrink-0 mt-1"}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-bold mb-2",children:"4. More Than 8 Attendees"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Example: All-hands, company announcements, training with >8 people"}),o.jsxs("p",{className:"text-sm",children:[o.jsx("strong",{children:"Better alternative:"})," Pre-record presentation, send out, then have optional small-group Q&A sessions."]})]})]})})}),o.jsx(J,{className:"border-red-500/50",children:o.jsx(Z,{className:"p-6",children:o.jsxs("div",{className:"flex gap-4",children:[o.jsx(Bd,{className:"h-6 w-6 text-red-500 flex-shrink-0 mt-1"}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-bold mb-2",children:"5. Already Have All the Information"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:'Example: "Quick sync to align," "Touch base," "Circle back"'}),o.jsxs("p",{className:"text-sm",children:[o.jsx("strong",{children:"Better alternative:"})," If the information is already documented, send a summary email with clear action items."]})]})]})})})]}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"The 3-Question Test"}),o.jsx("p",{children:"Before scheduling a meeting, ask:"}),o.jsx("div",{className:"bg-gradient-primary text-primary-foreground p-8 rounded-lg my-8",children:o.jsxs("ol",{className:"space-y-6",children:[o.jsxs("li",{children:[o.jsx("strong",{className:"text-xl",children:"1. Can this decision wait 24 hours?"}),o.jsx("p",{className:"mt-2 opacity-90",children:"If yes â Email/Doc. If no â Meeting might be justified."})]}),o.jsxs("li",{children:[o.jsx("strong",{className:"text-xl",children:"2. Do we need real-time back-and-forth?"}),o.jsx("p",{className:"mt-2 opacity-90",children:"If no â Email/Doc. If yes â Meeting might be justified."})]}),o.jsxs("li",{children:[o.jsx("strong",{className:"text-xl",children:"3. Is the meeting cost < 10% of potential value?"}),o.jsx("p",{className:"mt-2 opacity-90",children:"If no â Reconsider. If yes â Meeting is justified."})]})]})}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"Calculate the True Cost"}),o.jsx("p",{children:"Use this formula before sending that calendar invite:"}),o.jsxs("div",{className:"bg-muted p-6 rounded-lg my-6",children:[o.jsx("p",{className:"font-bold mb-3",children:"Meeting Cost Formula:"}),o.jsx("code",{className:"text-sm block",children:"(# of attendees) à (avg hourly rate) à (meeting duration in hours) à 1.5"}),o.jsx("p",{className:"text-sm text-muted-foreground mt-3",children:"The 1.5 multiplier accounts for prep time, context switching, and follow-up."})]}),o.jsx("div",{className:"my-8 not-prose",children:o.jsx(J,{children:o.jsxs(Z,{className:"p-8 text-center",children:[o.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Calculate Your Meeting Cost"}),o.jsx("p",{className:"text-muted-foreground mb-6",children:"See exactly how much your next meeting will cost"}),o.jsx(z,{asChild:!0,size:"lg",children:o.jsx(de,{to:"/calculator",children:"Use Free Calculator â"})})]})})}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"Real Examples: Meeting vs. Email"}),o.jsxs("div",{className:"space-y-6 my-8",children:[o.jsxs("div",{className:"bg-muted p-6 rounded-lg",children:[o.jsx("p",{className:"font-bold mb-2",children:'â Bad: "Quick 30-min sync on Q4 planning"'}),o.jsx("p",{className:"text-sm mb-4",children:"Cost: 8 people à $75/hr à 0.5hr à 1.5 = $450"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Why it's bad: Information-sharing, not decision-making. No urgency."}),o.jsx("p",{className:"font-bold text-sm",children:'â
Better: "Q4 Planning Doc"'}),o.jsx("p",{className:"text-sm",children:"Cost: 1 person à 1 hour to write = $75. Async feedback. Meeting only if c
543onsensus fails."})]}),o.jsxs("div",{className:"bg-muted p-6 rounded-lg",children:[o.jsx("p",{className:"font-bold mb-2",children:'â
Good: "Emergency: Production down, all hands"'}),o.jsx("p",{className:"text-sm mb-4",children:"Cost: 5 engineers à $100/hr à 1hr à 1.5 = $750"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Why it's good: High stakes ($50K/hr revenue loss). Needs real-time coordination. Clear ROI."}),o.jsx("p",{className:"text-sm",children:"Value: System restored 2 hours faster = $100K saved. ROI: 13,233%"})]})]}),o.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6",children:"Implementation Checklist"}),o.jsxs("ul",{className:"space-y-3 my-6",children:[o.jsx("li",{children:'â
Add "Meeting Cost" field to all calendar invites'}),o.jsx("li",{children:"â
Require meeting organizer to state expected value/outcome"}),o.jsx("li",{children:"â
Default to 15-min meetings (not 30)"}),o.jsx("li",{children:"â
Make agenda mandatory (no agenda = auto-decline)"}),o.jsx("li",{children:'â
Add "Could this be async?" checkbox to meeting request form'}),o.jsx("li",{children:"â
Review all recurring meetings monthlyâcancel 50%"})]}),o.jsxs("div",{className:"border-t border-border pt-8 mt-12",children:[o.jsx("h3",{className:"text-xl font-bold mb-4",children:"The Bottom Line"}),o.jsxs("p",{className:"mb-4",children:[o.jsx("strong",{children:"Default to async."})," Only escalate to meetings when the cost is clearly justified by the value. Your team (and your budget) will thank you."]}),o.jsx(z,{asChild:!0,size:"lg",children:o.jsx(de,{to:"/calculator",children:"Calculate Your Meeting Costs"})})]})]})]})]})},S4e=()=>{const{user:e,isPro:t,signOut:r}=Tr(),{theme:n,setTheme:i}=Tte(),a=Wn(),[s,l]=w.useState(!1),[A,c]=w.useState(""),[u,d]=w.useState(!1),[f,h]=w.useState(""),[m,p]=w.useState("");if(!e)return a("/auth"),null;const v=async()=>{try{l(!0),await Nue()}catch{be({title:"Error",description:"Failed to open billing portal. Please try again.",variant:"destructive"})}finally{l(!1)}},x=async()=>{if(!A.trim()){be({title:"Error",description:"Please enter your full name",variant:"destructive"});return}try{l(!0);const{error:y}=await Be.from("profiles").update({full_name:A}).eq("id",e.id);if(y)throw y;be({title:"Success",description:"Profile updated successfully"}),c("")}catch{be({title:"Error",description:"Failed to update profile",variant:"destructive"})}finally{l(!1)}},g=async()=>{if(!m||m.length<8){be({title:"Error",description:"Password must be at least 8 characters",variant:"destructive"});return}try{l(!0);const{error:y}=await Be.auth.updateUser({password:m});if(y)throw y;be({title:"Success",description:"Password updated successfully"}),d(!1),h(""),p("")}catch{be({title:"Error",description:"Failed to update password",variant:"destructive"})}finally{l(!1)}};return o.jsxs("div",{className:"min-h-screen flex flex-col",children:[o.jsx(Qt,{}),o.jsx("main",{className:"flex-1 container mx-auto px-4 py-8",children:o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsxs("div",{className:"mb-8",children:[o.jsx("h1",{className:"text-3xl font-bold",children:"Settings"}),o.jsx("p",{className:"text-muted-foreground mt-2",children:"Manage your account settings and preferences"})]}),o.jsxs(cS,{defaultValue:"account",className:"space-y-6",children:[o.jsxs(ow,{className:"grid w-full grid-cols-3",children:[o.jsx(as,{value:"account",children:"Account"}),o.jsx(as,{value:"appearance",children:"Appearance"}),o.jsx(as,{value:"profile",children:"Profile"})]}),o.jsx(ss,{value:"account",children:o.jsxs(J,{children:[o.jsxs(Ee,{children:[o.jsx(Se,{children:"Subscription"}),o.jsx($r,{children:"Manage your MeetingCost subscription"})]}),o.jsxs(Z,{className:"space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg",children:[o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[o.jsx("p",{className:"font-semibold",children:"Current Plan"}),t?o.jsxs(Au,{variant:"default",className:"gap-1",children:[o.jsx(lp,{className:"h-3 w-3"}),"Pro"]}):o.jsx(Au,{variant:"secondary",children:"Free"})]}),o.jsx("p",{className:"text-sm text-muted-foreground",children:t?"Unlimited meetings and advanced project management":"Limited to 5 saved meetings"})]}),t?o.jsx(z,{onClick:v,disabled:s,variant:"outline",className:"gap-2",children:s?o.jsx(kl,{className:"h-4 w-4 animate-spin"}):o.jsxs(o.Fragment,{children:["Manage Subscription",o.jsx(wg,{className:"h-4 w-4"})]})}):o.jsx(z,{asChild:!0,children:o.jsx(de,{to:"/pricing",children:"Upgrade to Pro"})})]}),o.jsxs("div",{className:"pt-4 border-t",children:[o.jsx("h3",{className:"font-semibold mb-2",children:"Account Email"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:e.email})]})]})]})}),o.jsx(ss,{value:"appearance",children:o.jsxs(J,{children:[o.jsxs(Ee,{children:[o.jsx(Se,{children:"Appearance"}),o.jsx($r,{children:"Customize the appearance of the application"})]}),o.jsx(Z,{className:"space-y-6",children:o.jsxs("div",{children:[o.jsx(he,{className:"text-base mb-4 block",children:"Theme"}),o.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[o.jsxs(z,{variant:n==="light"?"default":"outline",onClick:()=>i("light"),className:"gap-2 justify-start",children:[o.jsx(w7,{className:"h-4 w-4"}),"Light"]}),o.jsxs(z,{variant:n==="dark"?"default":"outline",onClick:()=>i("dark"),className:"gap-2 justify-start",children:[o.jsx(f7,{className:"h-4 w-4"}),"Dark"]}
543),o.jsxs(z,{variant:n==="system"?"default":"outline",onClick:()=>i("system"),className:"gap-2 justify-start",children:[o.jsx(A7,{className:"h-4 w-4"}),"System"]})]}),o.jsx("p",{className:"text-sm text-muted-foreground mt-3",children:"Choose how MeetingCost looks to you. Select a single theme, or sync with your system."})]})})]})}),o.jsx(ss,{value:"profile",children:o.jsxs(J,{children:[o.jsxs(Ee,{children:[o.jsx(Se,{children:"Profile"}),o.jsx($r,{children:"Update your personal information"})]}),o.jsx(Z,{className:"space-y-6",children:o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx(he,{htmlFor:"fullName",children:"Full Name"}),o.jsxs("div",{className:"flex gap-2 mt-2",children:[o.jsx(_e,{id:"fullName",type:"text",placeholder:"Enter your full name",value:A,onChange:y=>c(y.target.value)}),o.jsx(z,{onClick:x,disabled:s||!A.trim(),children:s?o.jsx(kl,{className:"h-4 w-4 animate-spin"}):"Update"})]})]}),o.jsxs("div",{className:"pt-4 border-t",children:[o.jsx(he,{className:"text-base mb-2 block",children:"Password"}),o.jsx(z,{variant:"outline",onClick:()=>d(!0),children:"Change Password"})]})]})})]})})]})]})}),o.jsx(qu,{open:u,onOpenChange:d,children:o.jsxs(AA,{children:[o.jsxs(cA,{children:[o.jsx(uA,{children:"Change Password"}),o.jsx(dA,{children:"Enter your new password below. Must be at least 8 characters."})]}),o.jsx("div",{className:"space-y-4 py-4",children:o.jsxs("div",{children:[o.jsx(he,{htmlFor:"newPassword",children:"New Password"}),o.jsx(_e,{id:"newPassword",type:"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:m,onChange:y=>p(y.target.value)})]})}),o.jsxs(Ix,{children:[o.jsx(z,{variant:"outline",onClick:()=>d(!1),children:"Cancel"}),o.jsx(z,{onClick:g,disabled:s||m.length<8,children:s?o.jsx(kl,{className:"h-4 w-4 animate-spin"}):"Update Password"})]})]})})]})},N4e=()=>{const{user:e}=Tr(),[t,r]=w.useState([]),[n,i]=w.useState(!0),[a,s]=w.useState(!1),[l,A]=w.useState(null),[c,u]=w.useState(""),[d,f]=w.useState(""),[h,m]=w.useState(60),[p,v]=w.useState(!1),[x,g]=w.useState([{name:"",role:"",hourly_rate:75}]);w.useEffect(()=>{e&&y()},[e]);const y=async()=>{i(!0);const{data:N,error:F}=await Be.from("meeting_templates").select("*").order("created_at",{ascending:!1});if(F){be({title:"Error loading templates",description:F.message,variant:"destructive"}),i(!1);return}if(N){const M=await Promise.all(N.map(async O=>{const{data:U}=await Be.from("template_attendees").select("*").eq("template_id",O.id);return{...O,attendees:U||[]}}));r(M)}i(!1)},B=()=>{u(""),f(""),m(60),v(!1),g([{name:"",role:"",hourly_rate:75}]),A(null)},b=N=>{A(N),u(N.name),f(N.description||""),m(N.default_duration),v(N.is_default),g(N.attendees.map(F=>({name:F.name,role:F.role,hourly_rate:F.hourly_rate}))),s(!0)},C=N=>{s(N),N||B()},j=()=>{g([...x,{name:"",role:"",hourly_rate:75}])},_=N=>{g(x.filter((F,M)=>M!==N))},E=(N,F,M)=>{g(x.map((O,U)=>U===N?{...O,[F]:M}:O))},I=async()=>{if(!c.trim()){be({title:"Name required",description:"Please enter a template name.",variant:"destructive"});return}if(x.some(N=>!N.name.trim()||!N.role.trim())){be({title:"Complete attendee info",description:"Please fill in all attendee names and roles.",variant:"destructive"});return}try{if(l){const{error:N}=await Be.from("meeting_templates").update({name:c,description:d.trim()||null,default_duration:h,is_default:p}).eq("id",l.id);if(N)throw N;await Be.from("template_attendees").delete().eq("template_id",l.id);const F=x.map(O=>({template_id:l.id,name:O.name,role:O.role,hourly_rate:O.hourly_rate})),{error:M}=await Be.from("template_attendees").insert(F);if(M)throw M;be({title:"Template updated!",description:"Your meeting template has been updated."})}else{const{data:N,error:F}=await Be.from("meeting_templates").insert({user_id:e==null?void 0:e.id,name:c,description:d.trim()||null,default_duration:h,is_default:p}).select().single();if(F)throw F;const M=x.map(U=>({template_id:N.id,name:U.name,role:U.role,hourly_rate:U.hourly_rate})),{error:O}=await Be.from("template_attendees").insert(M);if(O)throw O;be({title:"Template created!",description:"Your meeting template has been saved."})}C(!1),y()}catch(N){be({title:"Error saving template",description:N.message,variant:"destructive"})}},T=async N=>{if(!confirm("Are you sure you want to delete this template?"))return;const{error:F}=await Be.from("meeting_templates").delete().eq("id",N);if(F){be({title:"Error deleting template",description:F.message,variant:"destructive"});return}be({title:"Template deleted",description:"The template has been removed."}),y()},k=N=>N.length===0?0:N.reduce((M,O)=>M+O.hourly_rate,0)/N.length;return o.jsx(fi,{children:o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx(Qt,{}),o.jsx(Ba,{}),o.jsxs("main",{className:"container mx-auto px-4 py-8 max-w-6xl",children:[o.jsx(z,{asChild:!0,variant:"ghost",className:"mb-6",children:o.jsxs(de,{to:"/dashboard",children:[o.jsx(Bs,{className:"mr-2 h-4 w-4"}),"Back to Dashboard"]})}),o.jsxs("div",{className:"flex items-center justify-between mb-8",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"text-4xl font-bold mb-2",children:"Meeting Templates"}),o.jsx("p",{className:"text-muted-foreground",children:"Save common meeting configurations for quick reuse"})]}),o.jsxs(qu,{open:a,onOpenChange:C,children:[o.jsx(Pre,{asChild:!0,children:o.jsxs(z,{children:[o.jsx(yn,{className:"mr-2 h-4 w-4"}),"New Template"]})}),o.jsxs(AA,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[o.jsxs(cA,{children:[o.jsx(uA,{children:l?"Edit Template":"Create New Template"}),o.jsx(dA,{children:l?"Update your meeting template configuration":"Set up a reusable meeting template with predefined attendees"})]}),o.jsxs("div",{className:"space-y-6 mt-4",children:[o.jsxs("div",{children:[o.jsx(he,{htmlFor:"template-name",children:"Template Name"}),o.jsx(_e,{id:"template-name",value:c,onChange:N=>u(N.target.value),placeholder:"e.g., Weekly Team Standup"})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"template-description",children:"Description (Optional)"}),o.jsx(fA,{id:"template-description",value:d,onChange:N=>f(N.target.value),placeholder:"Brief description of this meeting type...",rows:3})]}),o.jsxs("div",{children:[o.jsx(he,{htmlFor:"default-duration",children:"Default Duration (minutes)"}),o.jsx(_e,{id:"default-duration",type:"number",min:"5",value:h,onChange:N=>m(parseInt(N.target.value)||60)})]}),o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx(he,{htmlFor:"is-default",children:"Set as default template"}),o.jsx(cu,{id:"is-default",checked:p,onCheckedChange:v})]}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-3",children:[o.jsx(he,{children:"Template Attendees"}),o.jsxs(z,{type:"button",variant:"outline",size:"sm",onClick:j,children:[o.jsx(yn,{className:"mr-1 h-3 w-3"}),"Add Attendee"]})]}),o.jsx("div",{className:"space-y-3",children:x.map((N,F)=>o.jsxs("div",{className:"grid grid-cols-12 gap-2 items-end",children:[o.jsxs("div",{className:"col-span-4",children:[o.jsx(he,{htmlFor:`name-${F}`,className:"text-xs",children:"Name"}),o.jsx(_e,{id:`name-${F}`,value:N.name,onChange:M=>E(F,"name",M.target.value),placeholder:"John Doe"})]}),o.jsxs("div",{className:"col-span-4",children:[o.jsx(he,{htmlFor:`role-${F}`,className:"text-xs",children:"Role"}),o.jsx(_e,{id:`role-${F}`,value:N.role,onChange:M=>E(F,"role",M.target.value),placeholder:"Developer"})]}),o.jsxs("div",{className:"col-span-3",children:[o.jsx(he,{htmlFor:`rate-${F}`,className:"text-xs",children:"Hourly Rate ($)"}),o.jsx(_e,{id:`rate-${F}`,type:"number",min:"0",step:"0.01",value:N.hourly_rate,onChange:M=>E(F,"hourly_rate",parseFloat(M.target.value)||0)})]}),o.jsx("div",{className:"col-span-1",children:x.length>1&&o.jsx(z,{type:"button",variant:"ghost",size:"icon",onClick:()=>_(F),children:o.jsx($i,{className:"h-4 w-4"})})})]},F))})]}),o.jsxs("div",{className:"flex gap-3 pt-4",children:[o.jsx(z,{onClick:I,className:"flex-1",children:l?"Update Template":"Create Template"}),o.jsx(z,{variant:"outline",onClick:()=>C(!1),children:"Cancel"})]})]})]})]})]}),n?o.jsx("div",{className:"text-center py-12",children:o.jsx("p",{className:"text-muted-foreground",children:"Loading templates..."})}):t.length===0?o.jsx(J,{children:o.jsxs(Z,{className:"py-12 text-center",children:[o.jsx(hs,{className:"h-12 w-12 mx-auto mb-4 text-muted-foreground"}),o.jsx("h3",{className:"text-lg font-medium mb-2",children:"No templates yet"}),o.jsx("p",{className:"text-muted-foreground mb-4",children:"Create your first meeting template to save time when adding meetings"}),o.jsxs(z,{onClick:()=>s(!0),children:[o.jsx(yn,{className:"mr-2 h-4 w-4"}),"Create Template"]})]})}):o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:t.map(N=>o.jsxs(J,{className:N.is_default?"border-primary":"",children:[o.jsx(Ee,{children:o.jsxs("div",{className:"flex items-start justify-between",children:[o.jsxs("div",{className:"flex-1",children:[o.jsxs(Se,{className:"flex items-center gap-2",children:[N.name,N.is_default&&o.jsx("span",{className:"text-xs font-normal px-2 py-0.5 rounded-full bg-primary/10 text-primary",children:"Default"})]}),N.description&&o.jsx($r,{className:"mt-1",children:N.description})]}),o.jsxs("div",{className:"flex gap-1",children:[o.jsx(z,{variant:"ghost",size:"icon",onClick:()=>b(N),children:o.jsx(p7,{className:"h-4 w-4"})}),o.jsx(z,{variant:"ghost",size:"icon",onClick:()=>T(N.id),children:o.jsx(iv,{className:"h-4 w-4"})})]})]})}),o.jsx(Z,{children:o.jsxs("div",{className:"space-y-3",children:[o.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[o.jsx(so,{className:"h-4 w-4"}),o.jsxs("span",{children:["Default duration: ",N.default_duration," minutes"]})]}),o.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[o.jsx(hs,{className:"h-4 w-4"}),o.jsxs("span",{children:[N.attendees.length," attendees ⢠Avg rate: $",k(N.attendees).toFixed(2),"/hr"]})]}),o.jsxs("div",{className:"pt-2 border-t",children:[o.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:"Attendees:"}),o.jsx("div",{className:"space-y-1",children:N.attendees.map(F=>o.jsxs("div",{className:"text-sm flex justify-between",children:[o.jsxs("span",{children:[F.name," ",o.jsxs("span",{className:"text-muted-foreground",children:["(",F.role,")"]})]}),o.jsxs("span",{className:"text-muted-foreground",children:["$",F.hourly_rate,"/hr"]})]},F.id))})]})]})})]},N.id))})]})]})})},O4e=()=>{const e=Do();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),o.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-100",children:o.jsxs("div",{className:"text-center",children:[o.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),o.jsx("p",{className:"mb-4 text-xl text-gray-600",children:"Oops! Page not found"}),o.jsx("a",{href:"/",className:"text-blue-500 underline hover:text-blue-700",children:"Return to Home"})]})})}
543,T4e=new VX,F4e=()=>o.jsx(GX,{client:T4e,children:o.jsx(Ote,{defaultTheme:"light",storageKey:"meetingcost-ui-theme",children:o.jsxs(wX,{children:[o.jsx(aq,{}),o.jsx(Qq,{}),o.jsx(Vne,{}),o.jsx(HJ,{children:o.jsx(Ste,{children:o.jsxs(UJ,{children:[o.jsx(Lt,{path:"/",element:o.jsx(Lae,{})}),o.jsx(Lt,{path:"/calculator",element:o.jsx(ese,{})}),o.jsx(Lt,{path:"/results",element:o.jsx(Eue,{})}),o.jsx(Lt,{path:"/pricing",element:o.jsx(Oue,{})}),o.jsx(Lt,{path:"/auth",element:o.jsx(ade,{})}),o.jsx(Lt,{path:"/dashboard",element:o.jsx(CRe,{})}),o.jsx(Lt,{path:"/meetings",element:o.jsx(jRe,{})}),o.jsx(Lt,{path:"/meetings/add",element:o.jsx(ERe,{})}),o.jsx(Lt,{path:"/meetings/:id",element:o.jsx(_Re,{})}),o.jsx(Lt,{path:"/projects",element:o.jsx(SRe,{})}),o.jsx(Lt,{path:"/projects/new",element:o.jsx(NRe,{})}),o.jsx(Lt,{path:"/projects/:id",element:o.jsx(w4e,{})}),o.jsx(Lt,{path:"/blog",element:o.jsx(b4e,{})}),o.jsx(Lt,{path:"/blog/best-times-schedule-meetings",element:o.jsx(B4e,{})}),o.jsx(Lt,{path:"/blog/meeting-cost-statistics-2025",element:o.jsx(C4e,{})}),o.jsx(Lt,{path:"/blog/calculate-meeting-roi",element:o.jsx(j4e,{})}),o.jsx(Lt,{path:"/blog/reduce-meeting-costs",element:o.jsx(_4e,{})}),o.jsx(Lt,{path:"/blog/meeting-or-email",element:o.jsx(E4e,{})}),o.jsx(Lt,{path:"/settings",element:o.jsx(S4e,{})}),o.jsx(Lt,{path:"/templates",element:o.jsx(N4e,{})}),o.jsx(Lt,{path:"*",element:o.jsx(O4e,{})})]})})})]})})});TR(document.getElementById("root")).render(o.jsx(MR,{children:o.jsx(F4e,{})}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.