vendor: 6,401 bytes, lines 1-9
1var VL=Object.defineProperty;var eS=e=>{throw TypeError(e)};var WL=(e,t,r)=>t in e?VL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ai=(e,t,r)=>WL(e,typeof t!="symbol"?t+"":t,r),$g=(e,t,r)=>t.has(e)||eS("Cannot "+r);var K=(e,t,r)=>($g(e,t,"read from private field"),r?r.call(e):t.get(e)),ze=(e,t,r)=>t.has(e)?eS("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Te=(e,t,r,n)=>($g(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Xt=(e,t,r)=>($g(e,t,"access private method"),r);var Rf=(e,t,r,n)=>({set _(i){Te(e,t,i,r)},get _(){return K(e,t,n)}});function HL(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 o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var If=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var iP={exports:{}},Qm={},aP={exports:{}},Re={};/** 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 ff=Symbol.for("react.element"),qL=Symbol.for("react.portal"),KL=Symbol.for("react.fragment"),GL=Symbol.for("react.strict_mode"),YL=Symbol.for("react.profiler"),XL=Symbol.for("react.provider"),ZL=Symbol.for("react.context"),JL=Symbol.for("react.forward_ref"),QL=Symbol.for("react.suspense"),e5=Symbol.for("react.memo"),t5=Symbol.for("react.lazy"),tS=Symbol.iterator;function r5(e){return e===null||typeof e!="object"?null:(e=tS&&e[tS]||e["@@iterator"],typeof e=="function"?e:null)}var oP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sP=Object.assign,lP={};function sc(e,t,r){this.props=e,this.context=t,this.refs=lP,this.updater=r||oP}sc.prototype.isReactComponent={};sc.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")};sc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cP(){}cP.prototype=sc.prototype;function gw(e,t,r){this.props=e,this.context=t,this.refs=lP,this.updater=r||oP}var yw=gw.prototype=new cP;yw.constructor=gw;sP(yw,sc.prototype);yw.isPureReactComponent=!0;var rS=Array.isArray,uP=Object.prototype.hasOwnProperty,bw={current:null},dP={key:!0,ref:!0,__self:!0,__source:!0};function fP(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)uP.call(t,n)&&!dP.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:ff,type:e,key:a,ref:o,props:i,_owner:bw.current}}function n5(e,t){return{$$typeof:ff,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function xw(e){return typeof e=="object"&&e!==null&&e.$$typeof===ff}function i5(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var nS=/\/+/g;function Rg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?i5(""+e.key):t.toString(36)}function Rh(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ff:case qL:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+Rg(o,0):n,rS(i)?(r="",e!=null&&(r=e.replace(nS,"$&/")+"/"),Rh(i,t,r,"",function(c){return c})):i!=null&&(xw(i)&&(i=n5(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(nS,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",rS(e))for(var s=0;s<e.length;s++){a=e[s];var l=n+Rg(a,s);o+=Rh(a,t,r,l,i)}else if(l=r5(e),typeof l=="function")for(e=l.call(e),s=0;!(a=e.next()).done;)a=a.value,l=n+Rg(a,s++),o+=Rh(a,t,r,l,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 o}function Mf(e,t,r){if(e==null)return e;var n=[],i=0;return Rh(e,n,"","",function(a){return t.call(r,a,i++)}),n}function a5(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 br={current:null},Ih={transition:null},o5={ReactCurrentDispatcher:br,ReactCurrentBatchConfig:Ih,ReactCurrentOwner:bw};function hP(){throw Error("act(...) is not supported in production builds of React.")}Re.Children={map:Mf,forEach:function(e,t,r){Mf(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Mf(e,function(){t++}),t},toArray:function(e){return Mf(e,function(t){return t})||[]},only:function(e){if(!xw(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Re.Component=sc;Re.Fragment=KL;Re.Profiler=YL;Re.PureComponent=gw;Re.StrictMode=GL;Re.Suspense=QL;
vendor: 3,750 bytes, lines 9-25
9Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o5;Re.act=hP;Re.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=sP({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=bw.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)uP.call(t,l)&&!dP.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}return{$$typeof:ff,type:e.type,key:i,ref:a,props:n,_owner:o}};Re.createContext=function(e){return e={$$typeof:ZL,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:XL,_context:e},e.Consumer=e};Re.createElement=fP;Re.createFactory=function(e){var t=fP.bind(null,e);return t.type=e,t};Re.createRef=function(){return{current:null}};Re.forwardRef=function(e){return{$$typeof:JL,render:e}};Re.isValidElement=xw;Re.lazy=function(e){return{$$typeof:t5,_payload:{_status:-1,_result:e},_init:a5}};Re.memo=function(e,t){return{$$typeof:e5,type:e,compare:t===void 0?null:t}};Re.startTransition=function(e){var t=Ih.transition;Ih.transition={};try{e()}finally{Ih.transition=t}};Re.unstable_act=hP;Re.useCallback=function(e,t){return br.current.useCallback(e,t)};Re.useContext=function(e){return br.current.useContext(e)};Re.useDebugValue=function(){};Re.useDeferredValue=function(e){return br.current.useDeferredValue(e)};Re.useEffect=function(e,t){return br.current.useEffect(e,t)};Re.useId=function(){return br.current.useId()};Re.useImperativeHandle=function(e,t,r){return br.current.useImperativeHandle(e,t,r)};Re.useInsertionEffect=function(e,t){return br.current.useInsertionEffect(e,t)};Re.useLayoutEffect=function(e,t){return br.current.useLayoutEffect(e,t)};Re.useMemo=function(e,t){return br.current.useMemo(e,t)};Re.useReducer=function(e,t,r){return br.current.useReducer(e,t,r)};Re.useRef=function(e){return br.current.useRef(e)};Re.useState=function(e){return br.current.useState(e)};Re.useSyncExternalStore=function(e,t,r){return br.current.useSyncExternalStore(e,t,r)};Re.useTransition=function(){return br.current.useTransition()};Re.version="18.3.1";aP.exports=Re;var S=aP.exports;const A=Ue(S),pP=HL({__proto__:null,default:A},[S]);/** 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 s5=S,l5=Symbol.for("react.element"),c5=Symbol.for("react.fragment"),u5=Object.prototype.hasOwnProperty,d5=s5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f5={key:!0,ref:!0,__self:!0,__source:!0};function mP(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)u5.call(t,n)&&!f5.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:l5,type:e,key:a,ref:o,props:i,_owner:d5.current}}Qm.Fragment=c5;Qm.jsx=mP;Qm.jsxs=mP;iP.exports=Qm;var h=iP.exports,vP={exports:{}},en={},gP={exports:{}},yP={};/** 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(j,B){var q=j.length;j.push(B);e:for(;0<q;){var V=q-1>>>1,H=j[V];if(0<i(H,B))j[V]=B,j[q]=H,q=V;else break e}}function r(j){return j.length===0?null:j[0]}
vendor: 10,467 bytes, lines 25-34
25function n(j){if(j.length===0)return null;var B=j[0],q=j.pop();if(q!==B){j[0]=q;e:for(var V=0,H=j.length,J=H>>>1;V<J;){var fe=2*(V+1)-1,Ce=j[fe],ve=fe+1,ae=j[ve];if(0>i(Ce,q))ve<H&&0>i(ae,Ce)?(j[V]=ae,j[ve]=q,V=ve):(j[V]=Ce,j[fe]=q,V=fe);else if(ve<H&&0>i(ae,q))j[V]=ae,j[ve]=q,V=ve;else break e}}return B}function i(j,B){var q=j.sortIndex-B.sortIndex;return q!==0?q:j.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,v=!1,m=!1,y=typeof setTimeout=="function"?setTimeout:null,b=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 x(j){for(var B=r(c);B!==null;){if(B.callback===null)n(c);else if(B.startTime<=j)n(c),B.sortIndex=B.expirationTime,t(l,B);else break;B=r(c)}}function w(j){if(m=!1,x(j),!v)if(r(l)!==null)v=!0,M(_);else{var B=r(c);B!==null&&F(w,B.startTime-j)}}function _(j,B){v=!1,m&&(m=!1,b(O),O=-1),p=!0;var q=f;try{for(x(B),d=r(l);d!==null&&(!(d.expirationTime>B)||j&&!R());){var V=d.callback;if(typeof V=="function"){d.callback=null,f=d.priorityLevel;var H=V(d.expirationTime<=B);B=e.unstable_now(),typeof H=="function"?d.callback=H:d===r(l)&&n(l),x(B)}else n(l);d=r(l)}if(d!==null)var J=!0;else{var fe=r(c);fe!==null&&F(w,fe.startTime-B),J=!1}return J}finally{d=null,f=q,p=!1}}var E=!1,k=null,O=-1,P=5,C=-1;function R(){return!(e.unstable_now()-C<P)}function T(){if(k!==null){var j=e.unstable_now();C=j;var B=!0;try{B=k(!0,j)}finally{B?I():(E=!1,k=null)}}else E=!1}var I;if(typeof g=="function")I=function(){g(T)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,L=N.port2;N.port1.onmessage=T,I=function(){L.postMessage(null)}}else I=function(){y(T,0)};function M(j){k=j,E||(E=!0,I())}function F(j,B){O=y(function(){j(e.unstable_now())},B)}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(j){j.callback=null},e.unstable_continueExecution=function(){v||p||(v=!0,M(_))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(j){switch(f){case 1:case 2:case 3:var B=3;break;default:B=f}var q=f;f=B;try{return j()}finally{f=q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,B){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var q=f;f=j;try{return B()}finally{f=q}},e.unstable_scheduleCallback=function(j,B,q){var V=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?V+q:V):q=V,j){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=q+H,j={id:u++,callback:B,priorityLevel:j,startTime:q,expirationTime:H,sortIndex:-1},q>V?(j.sortIndex=q,t(c,j),r(l)===null&&j===r(c)&&(m?(b(O),O=-1):m=!0,F(w,q-V))):(j.sortIndex=H,t(l,j),v||p||(v=!0,M(_))),j},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(j){var B=f;return function(){var q=f;f=B;try{return j.apply(this,arguments)}finally{f=q}}}})(yP);gP.exports=yP;var h5=gP.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 p5=S,Zr=h5;function X(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 bP=new Set,Lu={};function ds(e,t){Al(e,t),Al(e+"Capture",t)}function Al(e,t){for(Lu[e]=t,e=0;e<t.length;e++)bP.add(t[e])}var Xi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f0=Object.prototype.hasOwnProperty,m5=/^[: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]*$/,iS={},aS={};function v5(e){return f0.call(aS,e)?!0:f0.call(iS,e)?!1:m5.test(e)?aS[e]=!0:(iS[e]=!0,!1)}function g5(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 y5(e,t,r,n){if(t===null||typeof t>"u"||g5(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 xr(e,t,r,n,i,a,o){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=o}var Yt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yt[e]=new xr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yt[t]=new xr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yt[e]=new xr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yt[e]=new xr(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){Yt[e]=new xr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yt[e]=new xr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yt[e]=new xr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yt[e]=new xr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yt[e]=new xr(e,5,!1,e.toLowerCase(),null,!1,!1)});var ww=/[\-:]([a-z])/g;function _w(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(ww,_w);Yt[t]=new xr(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(ww,_w);Yt[t]=new xr(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(ww,_w);Yt[t]=new xr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yt[e]=new xr(e,1,!1,e.toLowerCase(),null,!1,!1)});Yt.xlinkHref=new xr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yt[e]=new xr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Sw(e,t,r,n){var i=Yt.hasOwnProperty(t)?Yt[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(y5(t,r,i,n)&&(r=null),n||i===null?v5(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 sa=p5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Df=Symbol.for("react.element"),Ls=Symbol.for("react.portal"),Bs=Symbol.for("react.fragment"),Ew=Symbol.for("react.strict_mode"),h0=Symbol.for("react.profiler"),xP=Symbol.for("react.provider"),wP=Symbol.for("react.context"),kw=Symbol.for("react.forward_ref"),p0=Symbol.for("react.suspense"),m0=Symbol.for("react.suspense_list"),Ow=Symbol.for("react.memo"),ba=Symbol.for("react.lazy"),_P=Symbol.for("react.offscreen"),oS=Symbol.iterator;function $c(e){return e===null||typeof e!="object"?null:(e=oS&&e[oS]||e["@@iterator"],typeof e=="function"?e:null)}var pt=Object.assign,Ig;function ou(e){if(Ig===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Ig=t&&t[1]||""}return` 34`+Ig+e}var Mg=!1;function Dg(e,t){if(!e||Mg)return"";Mg=!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: 14,090 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`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var l=` 37`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{Mg=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ou(e):""}function b5(e){switch(e.tag){case 5:return ou(e.type);case 16:return ou("Lazy");case 13:return ou("Suspense");case 19:return ou("SuspenseList");case 0:case 2:case 15:return e=Dg(e.type,!1),e;case 11:return e=Dg(e.type.render,!1),e;case 1:return e=Dg(e.type,!0),e;default:return""}}function v0(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 Bs:return"Fragment";case Ls:return"Portal";case h0:return"Profiler";case Ew:return"StrictMode";case p0:return"Suspense";case m0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wP:return(e.displayName||"Context")+".Consumer";case xP:return(e._context.displayName||"Context")+".Provider";case kw:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ow:return t=e.displayName||null,t!==null?t:v0(e.type)||"Memo";case ba:t=e._payload,e=e._init;try{return v0(e(t))}catch{}}return null}function x5(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 v0(t);case 8:return t===Ew?"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 Xa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function SP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function w5(e){var t=SP(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(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lf(e){e._valueTracker||(e._valueTracker=w5(e))}function EP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=SP(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function rp(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 g0(e,t){var r=t.checked;return pt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function sS(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Xa(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 kP(e,t){t=t.checked,t!=null&&Sw(e,"checked",t,!1)}function y0(e,t){kP(e,t);var r=Xa(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")?b0(e,t.type,r):t.hasOwnProperty("defaultValue")&&b0(e,t.type,Xa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lS(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 b0(e,t,r){(t!=="number"||rp(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var su=Array.isArray;function el(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=""+Xa(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 x0(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(X(91));return pt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function cS(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(X(92));if(su(r)){if(1<r.length)throw Error(X(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Xa(r)}}function OP(e,t){var r=Xa(t.value),n=Xa(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 uS(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function AP(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 w0(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?AP(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bf,TP=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(Bf=Bf||document.createElement("div"),Bf.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Bf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var gu={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},_5=["Webkit","ms","Moz","O"];Object.keys(gu).forEach(function(e){_5.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gu[t]=gu[e]})});function jP(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||gu.hasOwnProperty(e)&&gu[e]?(""+t).trim():t+"px"}function PP(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=jP(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var S5=pt({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 _0(e,t){if(t){if(S5[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(X(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(X(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(X(61))}if(t.style!=null&&typeof t.style!="object")throw Error(X(62))}}function S0(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 E0=null;function Aw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var k0=null,tl=null,rl=null;function dS(e){if(e=mf(e)){if(typeof k0!="function")throw Error(X(280));var t=e.stateNode;t&&(t=iv(t),k0(e.stateNode,e.type,t))}}function CP(e){tl?rl?rl.push(e):rl=[e]:tl=e}function NP(){if(tl){var e=tl,t=rl;if(rl=tl=null,dS(e),t)for(e=0;e<t.length;e++)dS(t[e])}}function $P(e,t){return e(t)}function RP(){}var Lg=!1;function IP(e,t,r){if(Lg)return e(t,r);Lg=!0;try{return $P(e,t,r)}finally{Lg=!1,(tl!==null||rl!==null)&&(RP(),NP())}}function Fu(e,t){var r=e.stateNode;if(r===null)return null;var n=iv(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(X(231,t,typeof r));return r}var O0=!1;if(Xi)try{var Rc={};Object.defineProperty(Rc,"passive",{get:function(){O0=!0}}),window.addEventListener("test",Rc,Rc),window.removeEventListener("test",Rc,Rc)}catch{O0=!1}function E5(e,t,r,n,i,a,o,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var yu=!1,np=null,ip=!1,A0=null,k5={onError:function(e){yu=!0,np=e}};function O5(e,t,r,n,i,a,o,s,l){yu=!1,np=null,E5.apply(k5,arguments)}function A5(e,t,r,n,i,a,o,s,l){if(O5.apply(this,arguments),yu){if(yu){var c=np;yu=!1,np=null}else throw Error(X(198));ip||(ip=!0,A0=c)}}function fs(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 MP(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 fS(e){if(fs(e)!==e)throw Error(X(188))}function T5(e){var t=e.alternate;if(!t){if(t=fs(e),t===null)throw Error(X(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 fS(i),e;if(a===n)return fS(i),t;a=a.sibling}throw Error(X(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o)throw Error(X(189))}}if(r.alternate!==n)throw Error(X(190))}if(r.tag!==3)throw Error(X(188));return r.stateNode.current===r?e:t}function DP(e){return e=T5(e),e!==null?LP(e):null}function LP(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=LP(e);if(t!==null)return t;e=e.sibling}return null}var BP=Zr.unstable_scheduleCallback,hS=Zr.unstable_cancelCallback,j5=Zr.unstable_shouldYield,P5=Zr.unstable_requestPaint,kt=Zr.unstable_now,C5=Zr.unstable_getCurrentPriorityLevel,Tw=Zr.unstable_ImmediatePriority,FP=Zr.unstable_UserBlockingPriority,ap=Zr.unstable_NormalPriority,N5=Zr.unstable_LowPriority,UP=Zr.unstable_IdlePriority,ev=null,mi=null;function $5(e){if(mi&&typeof mi.onCommitFiberRoot=="function")try{mi.onCommitFiberRoot(ev,e,void 0,(e.current.flags&128)===128)}catch{}}var Vn=Math.clz32?Math.clz32:M5,R5=Math.log,I5=Math.LN2;function M5(e){return e>>>=0,e===0?32:31-(R5(e)/I5|0)|0}var Ff=64,Uf=4194304;function lu(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 op(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=lu(s):(a&=o,a!==0&&(n=lu(a)))}else o=r&~i,o!==0?n=lu(o):a!==0&&(n=lu(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-Vn(t),i=1<<r,n|=e[r],t&=~i;return n}function D5(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 L5(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Vn(a),s=1<<o,l=i[o];l===-1?(!(s&r)||s&n)&&(i[o]=D5(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function T0(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function zP(){var e=Ff;return Ff<<=1,!(Ff&4194240)&&(Ff=64),e}function Bg(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function hf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vn(t),e[t]=r}function B5(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-Vn(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}function jw(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Vn(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var qe=0;function VP(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var WP,Pw,HP,qP,KP,j0=!1,zf=[],Ba=null,Fa=null,Ua=null,Uu=new Map,zu=new Map,_a=[],F5="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 pS(e,t){switch(e){case"focusin":case"focusout":Ba=null;break;case"dragenter":case"dragleave":Fa=null;break;case"mouseover":case"mouseout":Ua=null;break;case"pointerover":case"pointerout":Uu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zu.delete(t.pointerId)}}function Ic(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=mf(t),t!==null&&Pw(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function U5(e,t,r,n,i){switch(t){case"focusin":return Ba=Ic(Ba,e,t,r,n,i),!0;case"dragenter":return Fa=Ic(Fa,e,t,r,n,i),!0;case"mouseover":return Ua=Ic(Ua,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return Uu.set(a,Ic(Uu.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,zu.set(a,Ic(zu.get(a)||null,e,t,r,n,i)),!0}return!1}function GP(e){var t=Po(e.target);if(t!==null){var r=fs(t);if(r!==null){if(t=r.tag,t===13){if(t=MP(r),t!==null){e.blockedOn=t,KP(e.priority,function(){HP(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 Mh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=P0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);E0=n,r.target.dispatchEvent(n),E0=null}else return t=mf(r),t!==null&&Pw(t),e.blockedOn=r,!1;t.shift()}return!0}function mS(e,t,r){Mh(e)&&r.delete(t)}function z5(){j0=!1,Ba!==null&&Mh(Ba)&&(Ba=null),Fa!==null&&Mh(Fa)&&(Fa=null),Ua!==null&&Mh(Ua)&&(Ua=null),Uu.forEach(mS),zu.forEach(mS)}function Mc(e,t){e.blockedOn===t&&(e.blockedOn=null,j0||(j0=!0,Zr.unstable_scheduleCallback(Zr.unstable_NormalPriority,z5)))}function Vu(e){function t(i){return Mc(i,e)}if(0<zf.length){Mc(zf[0],e);for(var r=1;r<zf.length;r++){var n=zf[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Ba!==null&&Mc(Ba,e),Fa!==null&&Mc(Fa,e),Ua!==null&&Mc(Ua,e),Uu.forEach(t),zu.forEach(t),r=0;r<_a.length;r++)n=_a[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<_a.length&&(r=_a[0],r.blockedOn===null);)GP(r),r.blockedOn===null&&_a.shift()}var nl=sa.ReactCurrentBatchConfig,sp=!0;function V5(e,t,r,n){var i=qe,a=nl.transition;nl.transition=null;try{qe=1,Cw(e,t,r,n)}finally{qe=i,nl.transition=a}}function W5(e,t,r,n){var i=qe,a=nl.transition;nl.transition=null;try{qe=4,Cw(e,t,r,n)}finally{qe=i,nl.transition=a}}function Cw(e,t,r,n){if(sp){var i=P0(e,t,r,n);if(i===null)Yg(e,t,n,lp,r),pS(e,n);else if(U5(i,e,t,r,n))n.stopPropagation();else if(pS(e,n),t&4&&-1<F5.indexOf(e)){for(;i!==null;){var a=mf(i);if(a!==null&&WP(a),a=P0(e,t,r,n),a===null&&Yg(e,t,n,lp,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else Yg(e,t,n,null,r)}}var lp=null;function P0(e,t,r,n){if(lp=null,e=Aw(n),e=Po(e),e!==null)if(t=fs(e),t===null)e=null;else if(r=t.tag,r===13){if(e=MP(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 lp=e,null}
vendor: 10,567 bytes, line 37
37function YP(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(C5()){case Tw:return 1;case FP:return 4;case ap:case N5:return 16;case UP:return 536870912;default:return 16}default:return 16}}var Ra=null,Nw=null,Dh=null;function XP(){if(Dh)return Dh;var e,t=Nw,r=t.length,n,i="value"in Ra?Ra.value:Ra.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return Dh=i.slice(e,1<n?1-n:void 0)}function Lh(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 Vf(){return!0}function vS(){return!1}function tn(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Vf:vS,this.isPropagationStopped=vS,this}return pt(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=Vf)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Vf)},persist:function(){},isPersistent:Vf}),t}var lc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$w=tn(lc),pf=pt({},lc,{view:0,detail:0}),H5=tn(pf),Fg,Ug,Dc,tv=pt({},pf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rw,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!==Dc&&(Dc&&e.type==="mousemove"?(Fg=e.screenX-Dc.screenX,Ug=e.screenY-Dc.screenY):Ug=Fg=0,Dc=e),Fg)},movementY:function(e){return"movementY"in e?e.movementY:Ug}}),gS=tn(tv),q5=pt({},tv,{dataTransfer:0}),K5=tn(q5),G5=pt({},pf,{relatedTarget:0}),zg=tn(G5),Y5=pt({},lc,{animationName:0,elapsedTime:0,pseudoElement:0}),X5=tn(Y5),Z5=pt({},lc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),J5=tn(Z5),Q5=pt({},lc,{data:0}),yS=tn(Q5),e4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},t4={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"},r4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=r4[e])?!!t[e]:!1}function Rw(){return n4}var i4=pt({},pf,{key:function(e){if(e.key){var t=e4[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Lh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?t4[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rw,charCode:function(e){return e.type==="keypress"?Lh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Lh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),a4=tn(i4),o4=pt({},tv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bS=tn(o4),s4=pt({},pf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rw}),l4=tn(s4),c4=pt({},lc,{propertyName:0,elapsedTime:0,pseudoElement:0}),u4=tn(c4),d4=pt({},tv,{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}),f4=tn(d4),h4=[9,13,27,32],Iw=Xi&&"CompositionEvent"in window,bu=null;Xi&&"documentMode"in document&&(bu=document.documentMode);var p4=Xi&&"TextEvent"in window&&!bu,ZP=Xi&&(!Iw||bu&&8<bu&&11>=bu),xS=" ",wS=!1;function JP(e,t){switch(e){case"keyup":return h4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fs=!1;function m4(e,t){switch(e){case"compositionend":return QP(t);case"keypress":return t.which!==32?null:(wS=!0,xS);case"textInput":return e=t.data,e===xS&&wS?null:e;default:return null}}function v4(e,t){if(Fs)return e==="compositionend"||!Iw&&JP(e,t)?(e=XP(),Dh=Nw=Ra=null,Fs=!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 ZP&&t.locale!=="ko"?null:t.data;default:return null}}var g4={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 _S(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!g4[e.type]:t==="textarea"}function eC(e,t,r,n){CP(n),t=cp(t,"onChange"),0<t.length&&(r=new $w("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var xu=null,Wu=null;function y4(e){dC(e,0)}function rv(e){var t=Vs(e);if(EP(t))return e}function b4(e,t){if(e==="change")return t}var tC=!1;if(Xi){var Vg;if(Xi){var Wg="oninput"in document;if(!Wg){var SS=document.createElement("div");SS.setAttribute("oninput","return;"),Wg=typeof SS.oninput=="function"}Vg=Wg}else Vg=!1;tC=Vg&&(!document.documentMode||9<document.documentMode)}function ES(){xu&&(xu.detachEvent("onpropertychange",rC),Wu=xu=null)}function rC(e){if(e.propertyName==="value"&&rv(Wu)){var t=[];eC(t,Wu,e,Aw(e)),IP(y4,t)}}function x4(e,t,r){e==="focusin"?(ES(),xu=t,Wu=r,xu.attachEvent("onpropertychange",rC)):e==="focusout"&&ES()}function w4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return rv(Wu)}function _4(e,t){if(e==="click")return rv(t)}function S4(e,t){if(e==="input"||e==="change")return rv(t)}function E4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gn=typeof Object.is=="function"?Object.is:E4;function Hu(e,t){if(Gn(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(!f0.call(t,i)||!Gn(e[i],t[i]))return!1}return!0}function kS(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function OS(e,t){var r=kS(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=kS(r)}}function nC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function iC(){for(var e=window,t=rp();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=rp(e.document)}return t}function Mw(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 k4(e){var t=iC(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&nC(r.ownerDocument.documentElement,r)){if(n!==null&&Mw(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=OS(r,a);var o=OS(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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 O4=Xi&&"documentMode"in document&&11>=document.documentMode,Us=null,C0=null,wu=null,N0=!1;function AS(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;N0||Us==null||Us!==rp(n)||(n=Us,"selectionStart"in n&&Mw(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),wu&&Hu(wu,n)||(wu=n,n=cp(C0,"onSelect"),0<n.length&&(t=new $w("onSelect","select",null,t,r),e.push({event:t,listeners:n}
vendor: 4,335 bytes, line 37
37),t.target=Us)))}function Wf(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var zs={animationend:Wf("Animation","AnimationEnd"),animationiteration:Wf("Animation","AnimationIteration"),animationstart:Wf("Animation","AnimationStart"),transitionend:Wf("Transition","TransitionEnd")},Hg={},aC={};Xi&&(aC=document.createElement("div").style,"AnimationEvent"in window||(delete zs.animationend.animation,delete zs.animationiteration.animation,delete zs.animationstart.animation),"TransitionEvent"in window||delete zs.transitionend.transition);function nv(e){if(Hg[e])return Hg[e];if(!zs[e])return e;var t=zs[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in aC)return Hg[e]=t[r];return e}var oC=nv("animationend"),sC=nv("animationiteration"),lC=nv("animationstart"),cC=nv("transitionend"),uC=new Map,TS="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 oo(e,t){uC.set(e,t),ds(t,[e])}for(var qg=0;qg<TS.length;qg++){var Kg=TS[qg],A4=Kg.toLowerCase(),T4=Kg[0].toUpperCase()+Kg.slice(1);oo(A4,"on"+T4)}oo(oC,"onAnimationEnd");oo(sC,"onAnimationIteration");oo(lC,"onAnimationStart");oo("dblclick","onDoubleClick");oo("focusin","onFocus");oo("focusout","onBlur");oo(cC,"onTransitionEnd");Al("onMouseEnter",["mouseout","mouseover"]);Al("onMouseLeave",["mouseout","mouseover"]);Al("onPointerEnter",["pointerout","pointerover"]);Al("onPointerLeave",["pointerout","pointerover"]);ds("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ds("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ds("onBeforeInput",["compositionend","keypress","textInput","paste"]);ds("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ds("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ds("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cu="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(" "),j4=new Set("cancel close invalid load scroll toggle".split(" ").concat(cu));function jS(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,A5(n,t,void 0,e),e.currentTarget=null}function dC(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 o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;jS(i,s,c),a=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,c=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;jS(i,s,c),a=l}}}if(ip)throw e=A0,ip=!1,A0=null,e}function nt(e,t){var r=t[D0];r===void 0&&(r=t[D0]=new Set);var n=e+"__bubble";r.has(n)||(fC(t,e,2,!1),r.add(n))}function Gg(e,t,r){var n=0;t&&(n|=4),fC(r,e,n,t)}var Hf="_reactListening"+Math.random().toString(36).slice(2);function qu(e){if(!e[Hf]){e[Hf]=!0,bP.forEach(function(r){r!=="selectionchange"&&(j4.has(r)||Gg(r,!1,e),Gg(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hf]||(t[Hf]=!0,Gg("selectionchange",!1,t))}}function fC(e,t,r,n){switch(YP(t)){case 1:var i=V5;break;case 4:i=W5;break;default:i=Cw}r=i.bind(null,t,r,e),i=void 0,!O0||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 Yg(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;
vendor: 5,572 bytes, lines 37-38
37if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Po(s),o===null)return;if(l=o.tag,l===5||l===6){n=a=o;continue e}s=s.parentNode}}n=n.return}IP(function(){var c=a,u=Aw(r),d=[];e:{var f=uC.get(e);if(f!==void 0){var p=$w,v=e;switch(e){case"keypress":if(Lh(r)===0)break e;case"keydown":case"keyup":p=a4;break;case"focusin":v="focus",p=zg;break;case"focusout":v="blur",p=zg;break;case"beforeblur":case"afterblur":p=zg;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":p=gS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=K5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=l4;break;case oC:case sC:case lC:p=X5;break;case cC:p=u4;break;case"scroll":p=H5;break;case"wheel":p=f4;break;case"copy":case"cut":case"paste":p=J5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=bS}var m=(t&4)!==0,y=!m&&e==="scroll",b=m?f!==null?f+"Capture":null:f;m=[];for(var g=c,x;g!==null;){x=g;var w=x.stateNode;if(x.tag===5&&w!==null&&(x=w,b!==null&&(w=Fu(g,b),w!=null&&m.push(Ku(g,w,x)))),y)break;g=g.return}0<m.length&&(f=new p(f,v,null,r,u),d.push({event:f,listeners:m}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&r!==E0&&(v=r.relatedTarget||r.fromElement)&&(Po(v)||v[Zi]))break e;if((p||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,p?(v=r.relatedTarget||r.toElement,p=c,v=v?Po(v):null,v!==null&&(y=fs(v),v!==y||v.tag!==5&&v.tag!==6)&&(v=null)):(p=null,v=c),p!==v)){if(m=gS,w="onMouseLeave",b="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(m=bS,w="onPointerLeave",b="onPointerEnter",g="pointer"),y=p==null?f:Vs(p),x=v==null?f:Vs(v),f=new m(w,g+"leave",p,r,u),f.target=y,f.relatedTarget=x,w=null,Po(u)===c&&(m=new m(b,g+"enter",v,r,u),m.target=x,m.relatedTarget=y,w=m),y=w,p&&v)t:{for(m=p,b=v,g=0,x=m;x;x=ws(x))g++;for(x=0,w=b;w;w=ws(w))x++;for(;0<g-x;)m=ws(m),g--;for(;0<x-g;)b=ws(b),x--;for(;g--;){if(m===b||b!==null&&m===b.alternate)break t;m=ws(m),b=ws(b)}m=null}else m=null;p!==null&&PS(d,f,p,m,!1),v!==null&&y!==null&&PS(d,y,v,m,!0)}}e:{if(f=c?Vs(c):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var _=b4;else if(_S(f))if(tC)_=S4;else{_=w4;var E=x4}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(_=_4);if(_&&(_=_(e,c))){eC(d,_,r,u);break e}E&&E(e,f,c),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&b0(f,"number",f.value)}switch(E=c?Vs(c):window,e){case"focusin":(_S(E)||E.contentEditable==="true")&&(Us=E,C0=c,wu=null);break;case"focusout":wu=C0=Us=null;break;case"mousedown":N0=!0;break;case"contextmenu":case"mouseup":case"dragend":N0=!1,AS(d,r,u);break;case"selectionchange":if(O4)break;case"keydown":case"keyup":AS(d,r,u)}var k;if(Iw)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Fs?JP(e,r)&&(O="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(O="onCompositionStart");O&&(ZP&&r.locale!=="ko"&&(Fs||O!=="onCompositionStart"?O==="onCompositionEnd"&&Fs&&(k=XP()):(Ra=u,Nw="value"in Ra?Ra.value:Ra.textContent,Fs=!0)),E=cp(c,O),0<E.length&&(O=new yS(O,e,null,r,u),d.push({event:O,listeners:E}),k?O.data=k:(k=QP(r),k!==null&&(O.data=k)))),(k=p4?m4(e,r):v4(e,r))&&(c=cp(c,"onBeforeInput"),0<c.length&&(u=new yS("onBeforeInput","beforeinput",null,r,u),d.push({event:u,listeners:c}),u.data=k))}dC(d,t)})}function Ku(e,t,r){return{instance:e,listener:t,currentTarget:r}}function cp(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Fu(e,r),a!=null&&n.unshift(Ku(e,a,i)),a=Fu(e,t),a!=null&&n.push(Ku(e,a,i))),e=e.return}return n}function ws(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function PS(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&c!==null&&(s=c,i?(l=Fu(r,a),l!=null&&o.unshift(Ku(r,l,s))):i||(l=Fu(r,a),l!=null&&o.push(Ku(r,l,s)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var P4=/\r\n?/g,C4=/\u0000|\uFFFD/g;function CS(e){return(typeof e=="string"?e:""+e).replace(P4,` 38`).replace(C4,"")}function qf(e,t,r){if(t=CS(t),CS(e)!==t&&r)throw Error(X(425))}function up(){}var $0=null,R0=null;function I0(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 M0=typeof setTimeout=="function"?setTimeout:void 0,N4=typeof clearTimeout=="function"?clearTimeout:void 0,NS=typeof Promise=="function"?Promise:void 0,$4=typeof queueMicrotask=="function"?queueMicrotask:typeof NS<"u"?function(e){return NS.resolve(null).then(e).catch(R4)}:M0;function R4(e){setTimeout(function(){throw e})}function Xg(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),Vu(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}
vendor: 4,658 bytes, line 38
38while(r);Vu(t)}function za(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 $S(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 cc=Math.random().toString(36).slice(2),ui="__reactFiber$"+cc,Gu="__reactProps$"+cc,Zi="__reactContainer$"+cc,D0="__reactEvents$"+cc,I4="__reactListeners$"+cc,M4="__reactHandles$"+cc;function Po(e){var t=e[ui];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Zi]||r[ui]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=$S(e);e!==null;){if(r=e[ui])return r;e=$S(e)}return t}e=r,r=e.parentNode}return null}function mf(e){return e=e[ui]||e[Zi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Vs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(X(33))}function iv(e){return e[Gu]||null}var L0=[],Ws=-1;function so(e){return{current:e}}function ot(e){0>Ws||(e.current=L0[Ws],L0[Ws]=null,Ws--)}function Qe(e,t){Ws++,L0[Ws]=e.current,e.current=t}var Za={},ar=so(Za),$r=so(!1),Xo=Za;function Tl(e,t){var r=e.type.contextTypes;if(!r)return Za;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 Rr(e){return e=e.childContextTypes,e!=null}function dp(){ot($r),ot(ar)}function RS(e,t,r){if(ar.current!==Za)throw Error(X(168));Qe(ar,t),Qe($r,r)}function hC(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(X(108,x5(e)||"Unknown",i));return pt({},r,n)}function fp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Za,Xo=ar.current,Qe(ar,e),Qe($r,$r.current),!0}function IS(e,t,r){var n=e.stateNode;if(!n)throw Error(X(169));r?(e=hC(e,t,Xo),n.__reactInternalMemoizedMergedChildContext=e,ot($r),ot(ar),Qe(ar,e)):ot($r),Qe($r,r)}var Li=null,av=!1,Zg=!1;function pC(e){Li===null?Li=[e]:Li.push(e)}function D4(e){av=!0,pC(e)}function lo(){if(!Zg&&Li!==null){Zg=!0;var e=0,t=qe;try{var r=Li;for(qe=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Li=null,av=!1}catch(i){throw Li!==null&&(Li=Li.slice(e+1)),BP(Tw,lo),i}finally{qe=t,Zg=!1}}return null}var Hs=[],qs=0,hp=null,pp=0,fn=[],hn=0,Zo=null,Bi=1,Fi="";function Eo(e,t){Hs[qs++]=pp,Hs[qs++]=hp,hp=e,pp=t}function mC(e,t,r){fn[hn++]=Bi,fn[hn++]=Fi,fn[hn++]=Zo,Zo=e;var n=Bi;e=Fi;var i=32-Vn(n)-1;n&=~(1<<i),r+=1;var a=32-Vn(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,Bi=1<<32-Vn(t)+i|r<<i|n,Fi=a+e}else Bi=1<<a|r<<i|n,Fi=e}function Dw(e){e.return!==null&&(Eo(e,1),mC(e,1,0))}function Lw(e){for(;e===hp;)hp=Hs[--qs],Hs[qs]=null,pp=Hs[--qs],Hs[qs]=null;for(;e===Zo;)Zo=fn[--hn],fn[hn]=null,Fi=fn[--hn],fn[hn]=null,Bi=fn[--hn],fn[hn]=null}var Gr=null,Kr=null,lt=!1,Mn=null;function vC(e,t){var r=mn(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 MS(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,Gr=e,Kr=za(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Gr=e,Kr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Zo!==null?{id:Bi,overflow:Fi}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=mn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Gr=e,Kr=null,!0):!1;default:return!1}}function B0(e){return(e.mode&1)!==0&&(e.flags&128)===0}function F0(e){if(lt){var t=Kr;if(t){var r=t;if(!MS(e,t)){if(B0(e))throw Error(X(418));t=za(r.nextSibling);var n=Gr;t&&MS(e,t)?vC(n,r):(e.flags=e.flags&-4097|2,lt=!1,Gr=e)}}else{if(B0(e))throw Error(X(418));e.flags=e.flags&-4097|2,lt=!1,Gr=e}}}function DS(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Gr=e}function Kf(e){if(e!==Gr)return!1;if(!lt)return DS(e),lt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!I0(e.type,e.memoizedProps)),t&&(t=Kr)){if(B0(e))throw gC(),Error(X(418));for(;t;)vC(e,t),t=za(t.nextSibling)}if(DS(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(X(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Kr=za(e.nextSibling);break e}t--}
vendor: 14,513 bytes, line 38
38else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Kr=null}}else Kr=Gr?za(e.stateNode.nextSibling):null;return!0}function gC(){for(var e=Kr;e;)e=za(e.nextSibling)}function jl(){Kr=Gr=null,lt=!1}function Bw(e){Mn===null?Mn=[e]:Mn.push(e)}var L4=sa.ReactCurrentBatchConfig;function Lc(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(X(309));var n=r.stateNode}if(!n)throw Error(X(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(o){var s=i.refs;o===null?delete s[a]:s[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(X(284));if(!r._owner)throw Error(X(290,e))}return e}function Gf(e,t){throw e=Object.prototype.toString.call(t),Error(X(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function LS(e){var t=e._init;return t(e._payload)}function yC(e){function t(b,g){if(e){var x=b.deletions;x===null?(b.deletions=[g],b.flags|=16):x.push(g)}}function r(b,g){if(!e)return null;for(;g!==null;)t(b,g),g=g.sibling;return null}function n(b,g){for(b=new Map;g!==null;)g.key!==null?b.set(g.key,g):b.set(g.index,g),g=g.sibling;return b}function i(b,g){return b=qa(b,g),b.index=0,b.sibling=null,b}function a(b,g,x){return b.index=x,e?(x=b.alternate,x!==null?(x=x.index,x<g?(b.flags|=2,g):x):(b.flags|=2,g)):(b.flags|=1048576,g)}function o(b){return e&&b.alternate===null&&(b.flags|=2),b}function s(b,g,x,w){return g===null||g.tag!==6?(g=iy(x,b.mode,w),g.return=b,g):(g=i(g,x),g.return=b,g)}function l(b,g,x,w){var _=x.type;return _===Bs?u(b,g,x.props.children,w,x.key):g!==null&&(g.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===ba&&LS(_)===g.type)?(w=i(g,x.props),w.ref=Lc(b,g,x),w.return=b,w):(w=Hh(x.type,x.key,x.props,null,b.mode,w),w.ref=Lc(b,g,x),w.return=b,w)}function c(b,g,x,w){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=ay(x,b.mode,w),g.return=b,g):(g=i(g,x.children||[]),g.return=b,g)}function u(b,g,x,w,_){return g===null||g.tag!==7?(g=qo(x,b.mode,w,_),g.return=b,g):(g=i(g,x),g.return=b,g)}function d(b,g,x){if(typeof g=="string"&&g!==""||typeof g=="number")return g=iy(""+g,b.mode,x),g.return=b,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Df:return x=Hh(g.type,g.key,g.props,null,b.mode,x),x.ref=Lc(b,null,g),x.return=b,x;case Ls:return g=ay(g,b.mode,x),g.return=b,g;case ba:var w=g._init;return d(b,w(g._payload),x)}if(su(g)||$c(g))return g=qo(g,b.mode,x,null),g.return=b,g;Gf(b,g)}return null}function f(b,g,x,w){var _=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return _!==null?null:s(b,g,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Df:return x.key===_?l(b,g,x,w):null;case Ls:return x.key===_?c(b,g,x,w):null;case ba:return _=x._init,f(b,g,_(x._payload),w)}if(su(x)||$c(x))return _!==null?null:u(b,g,x,w,null);Gf(b,x)}return null}function p(b,g,x,w,_){if(typeof w=="string"&&w!==""||typeof w=="number")return b=b.get(x)||null,s(g,b,""+w,_);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Df:return b=b.get(w.key===null?x:w.key)||null,l(g,b,w,_);case Ls:return b=b.get(w.key===null?x:w.key)||null,c(g,b,w,_);case ba:var E=w._init;return p(b,g,x,E(w._payload),_)}if(su(w)||$c(w))return b=b.get(x)||null,u(g,b,w,_,null);Gf(g,w)}return null}function v(b,g,x,w){for(var _=null,E=null,k=g,O=g=0,P=null;k!==null&&O<x.length;O++){k.index>O?(P=k,k=null):P=k.sibling;var C=f(b,k,x[O],w);if(C===null){k===null&&(k=P);break}e&&k&&C.alternate===null&&t(b,k),g=a(C,g,O),E===null?_=C:E.sibling=C,E=C,k=P}if(O===x.length)return r(b,k),lt&&Eo(b,O),_;if(k===null){for(;O<x.length;O++)k=d(b,x[O],w),k!==null&&(g=a(k,g,O),E===null?_=k:E.sibling=k,E=k);return lt&&Eo(b,O),_}for(k=n(b,k);O<x.length;O++)P=p(k,b,O,x[O],w),P!==null&&(e&&P.alternate!==null&&k.delete(P.key===null?O:P.key),g=a(P,g,O),E===null?_=P:E.sibling=P,E=P);return e&&k.forEach(function(R){return t(b,R)}),lt&&Eo(b,O),_}function m(b,g,x,w){var _=$c(x);if(typeof _!="function")throw Error(X(150));if(x=_.call(x),x==null)throw Error(X(151));for(var E=_=null,k=g,O=g=0,P=null,C=x.next();k!==null&&!C.done;O++,C=x.next()){k.index>O?(P=k,k=null):P=k.sibling;var R=f(b,k,C.value,w);if(R===null){k===null&&(k=P);break}e&&k&&R.alternate===null&&t(b,k),g=a(R,g,O),E===null?_=R:E.sibling=R,E=R,k=P}if(C.done)return r(b,k),lt&&Eo(b,O),_;if(k===null){for(;!C.done;O++,C=x.next())C=d(b,C.value,w),C!==null&&(g=a(C,g,O),E===null?_=C:E.sibling=C,E=C);return lt&&Eo(b,O),_}for(k=n(b,k);!C.done;O++,C=x.next())C=p(k,b,O,C.value,w),C!==null&&(e&&C.alternate!==null&&k.delete(C.key===null?O:C.key),g=a(C,g,O),E===null?_=C:E.sibling=C,E=C);return e&&k.forEach(function(T){return t(b,T)}),lt&&Eo(b,O),_}function y(b,g,x,w){if(typeof x=="object"&&x!==null&&x.type===Bs&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Df:e:{for(var _=x.key,E=g;E!==null;){if(E.key===_){if(_=x.type,_===Bs){if(E.tag===7){r(b,E.sibling),g=i(E,x.props.children),g.return=b,b=g;break e}}else if(E.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===ba&&LS(_)===E.type){r(b,E.sibling),g=i(E,x.props),g.ref=Lc(b,E,x),g.return=b,b=g;break e}r(b,E);break}else t(b,E);E=E.sibling}x.type===Bs?(g=qo(x.props.children,b.mode,w,x.key),g.return=b,b=g):(w=Hh(x.type,x.key,x.props,null,b.mode,w),w.ref=Lc(b,g,x),w.return=b,b=w)}return o(b);case Ls:e:{for(E=x.key;g!==null;){if(g.key===E)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){r(b,g.sibling),g=i(g,x.children||[]),g.return=b,b=g;break e}else{r(b,g);break}else t(b,g);g=g.sibling}g=ay(x,b.mode,w),g.return=b,b=g}return o(b);case ba:return E=x._init,y(b,g,E(x._payload),w)}if(su(x))return v(b,g,x,w);if($c(x))return m(b,g,x,w);Gf(b,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(r(b,g.sibling),g=i(g,x),g.return=b,b=g):(r(b,g),g=iy(x,b.mode,w),g.return=b,b=g),o(b)):r(b,g)}return y}var Pl=yC(!0),bC=yC(!1),mp=so(null),vp=null,Ks=null,Fw=null;function Uw(){Fw=Ks=vp=null}function zw(e){var t=mp.current;ot(mp),e._currentValue=t}function U0(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 il(e,t){vp=e,Fw=Ks=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Cr=!0),e.firstContext=null)}function bn(e){var t=e._currentValue;if(Fw!==e)if(e={context:e,memoizedValue:t,next:null},Ks===null){if(vp===null)throw Error(X(308));Ks=e,vp.dependencies={lanes:0,firstContext:e}}else Ks=Ks.next=e;return t}var Co=null;function Vw(e){Co===null?Co=[e]:Co.push(e)}function xC(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Vw(t)):(r.next=i.next,i.next=r),t.interleaved=r,Ji(e,n)}function Ji(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 xa=!1;function Ww(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wC(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 Hi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Va(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Be&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Ji(e,r)}return i=n.interleaved,i===null?(t.next=t,Vw(n)):(t.next=i.next,i.next=t),n.interleaved=t,Ji(e,r)}function Bh(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,jw(e,r)}}function BS(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 o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,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 gp(e,t,r,n){var i=e.updateQueue;xa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?a=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(a!==null){var d=i.baseState;o=0,u=c=l=null,s=a;do{var f=s.lane,p=s.eventTime;if((n&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,m=s;switch(f=t,p=r,m.tag){case 1:if(v=m.payload,typeof v=="function"){d=v.call(p,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=m.payload,f=typeof v=="function"?v.call(p,d,f):v,f==null)break e;d=pt({},d,f);break e;case 2:xa=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Qo|=o,e.lanes=o,e.memoizedState=d}}function FS(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(X(191,i));i.call(n)}}}var vf={},vi=so(vf),Yu=so(vf),Xu=so(vf);function No(e){if(e===vf)throw Error(X(174));return e}function Hw(e,t){switch(Qe(Xu,t),Qe(Yu,e),Qe(vi,vf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:w0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=w0(t,e)}ot(vi),Qe(vi,t)}function Cl(){ot(vi),ot(Yu),ot(Xu)}function _C(e){No(Xu.current);var t=No(vi.current),r=w0(t,e.type);t!==r&&(Qe(Yu,e),Qe(vi,r))}function qw(e){Yu.current===e&&(ot(vi),ot(Yu))}var dt=so(0);function yp(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 Jg=[];function Kw(){for(var e=0;e<Jg.length;e++)Jg[e]._workInProgressVersionPrimary=null;Jg.length=0}var Fh=sa.ReactCurrentDispatcher,Qg=sa.ReactCurrentBatchConfig,Jo=0,ht=null,Rt=null,Ft=null,bp=!1,_u=!1,Zu=0,B4=0;function Zt(){throw Error(X(321))}function Gw(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Gn(e[r],t[r]))return!1;return!0}function Yw(e,t,r,n,i,a){if(Jo=a,ht=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Fh.current=e===null||e.memoizedState===null?V4:W4,e=r(n,i),_u){a=0;do{if(_u=!1,Zu=0,25<=a)throw Error(X(301));a+=1,Ft=Rt=null,t.updateQueue=null,Fh.current=H4,e=r(n,i)}while(_u)}if(Fh.current=xp,t=Rt!==null&&Rt.next!==null,Jo=0,Ft=Rt=ht=null,bp=!1,t)throw Error(X(300));return e}function Xw(){var e=Zu!==0;return Zu=0,e}function ii(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?ht.memoizedState=Ft=e:Ft=Ft.next=e,Ft}function xn(){if(Rt===null){var e=ht.alternate;e=e!==null?e.memoizedState:null}else e=Rt.next;var t=Ft===null?ht.memoizedState:Ft.next;if(t!==null)Ft=t,Rt=e;else{if(e===null)throw Error(X(310));Rt=e,e={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Ft===null?ht.memoizedState=Ft=e:Ft=Ft.next=e}return Ft}function Ju(e,t){return typeof t=="function"?t(e):t}function ey(e){var t=xn(),r=t.queue;if(r===null)throw Error(X(311));r.lastRenderedReducer=e;var n=Rt,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){a=i.next,n=n.baseState;var s=o=null,l=null,c=a;do{var u=c.lane;if((Jo&u)===u)l!==null&&(l=l.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};l===null?(s=l=d,o=n):l=l.next=d,ht.lanes|=u,Qo|=u}c=c.next}while(c!==null&&c!==a);l===null?o=n:l.next=s,Gn(n,t.memoizedState)||(Cr=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do a=i.lane,ht.lanes|=a,Qo|=a,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function ty(e){var t=xn(),r=t.queue;if(r===null)throw Error(X(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Gn(a,t.memoizedState)||(Cr=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function SC(){}function EC(e,t){var r=ht,n=xn(),i=t(),a=!Gn(n.memoizedState,i);if(a&&(n.memoizedState=i,Cr=!0),n=n.queue,Zw(AC.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||Ft!==null&&Ft.memoizedState.tag&1){if(r.flags|=2048,Qu(9,OC.bind(null,r,n,i,t),void 0,null),Ut===null)throw Error(X(349));Jo&30||kC(r,t,i)}return i}function kC(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=ht.updateQueue,t===null?(t={lastEffect:null,stores:null},ht.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function OC(e,t,r,n){t.value=r,t.getSnapshot=n,TC(t)&&jC(e)}function AC(e,t,r){return r(function(){TC(t)&&jC(e)})}function TC(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Gn(e,r)}catch{return!0}}function jC(e){var t=Ji(e,1);t!==null&&Wn(t,e,1,-1)}function US(e){var t=ii();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ju,lastRenderedState:e}
vendor: 4,582 bytes, line 38
38,t.queue=e,e=e.dispatch=z4.bind(null,ht,e),[t.memoizedState,e]}function Qu(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=ht.updateQueue,t===null?(t={lastEffect:null,stores:null},ht.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 PC(){return xn().memoizedState}function Uh(e,t,r,n){var i=ii();ht.flags|=e,i.memoizedState=Qu(1|t,r,void 0,n===void 0?null:n)}function ov(e,t,r,n){var i=xn();n=n===void 0?null:n;var a=void 0;if(Rt!==null){var o=Rt.memoizedState;if(a=o.destroy,n!==null&&Gw(n,o.deps)){i.memoizedState=Qu(t,r,a,n);return}}ht.flags|=e,i.memoizedState=Qu(1|t,r,a,n)}function zS(e,t){return Uh(8390656,8,e,t)}function Zw(e,t){return ov(2048,8,e,t)}function CC(e,t){return ov(4,2,e,t)}function NC(e,t){return ov(4,4,e,t)}function $C(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 RC(e,t,r){return r=r!=null?r.concat([e]):null,ov(4,4,$C.bind(null,t,e),r)}function Jw(){}function IC(e,t){var r=xn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Gw(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function MC(e,t){var r=xn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Gw(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function DC(e,t,r){return Jo&21?(Gn(r,t)||(r=zP(),ht.lanes|=r,Qo|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Cr=!0),e.memoizedState=r)}function F4(e,t){var r=qe;qe=r!==0&&4>r?r:4,e(!0);var n=Qg.transition;Qg.transition={};try{e(!1),t()}finally{qe=r,Qg.transition=n}}function LC(){return xn().memoizedState}function U4(e,t,r){var n=Ha(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},BC(e))FC(t,r);else if(r=xC(e,t,r,n),r!==null){var i=gr();Wn(r,e,n,i),UC(r,t,n)}}function z4(e,t,r){var n=Ha(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(BC(e))FC(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Gn(s,o)){var l=t.interleaved;l===null?(i.next=i,Vw(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=xC(e,t,i,n),r!==null&&(i=gr(),Wn(r,e,n,i),UC(r,t,n))}}function BC(e){var t=e.alternate;return e===ht||t!==null&&t===ht}function FC(e,t){_u=bp=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function UC(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,jw(e,r)}}var xp={readContext:bn,useCallback:Zt,useContext:Zt,useEffect:Zt,useImperativeHandle:Zt,useInsertionEffect:Zt,useLayoutEffect:Zt,useMemo:Zt,useReducer:Zt,useRef:Zt,useState:Zt,useDebugValue:Zt,useDeferredValue:Zt,useTransition:Zt,useMutableSource:Zt,useSyncExternalStore:Zt,useId:Zt,unstable_isNewReconciler:!1},V4={readContext:bn,useCallback:function(e,t){return ii().memoizedState=[e,t===void 0?null:t],e},useContext:bn,useEffect:zS,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Uh(4194308,4,$C.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Uh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Uh(4,2,e,t)},useMemo:function(e,t){var r=ii();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ii();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=U4.bind(null,ht,e),[n.memoizedState,e]},useRef:function(e){var t=ii();return e={current:e},t.memoizedState=e},useState:US,useDebugValue:Jw,useDeferredValue:function(e){return ii().memoizedState=e},useTransition:function(){var e=US(!1),t=e[0];return e=F4.bind(null,e[1]),ii().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ht,i=ii();if(lt){if(r===void 0)throw Error(X(407));r=r()}else{if(r=t(),Ut===null)throw Error(X(349));Jo&30||kC(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,zS(AC.bind(null,n,a,e),[e]),n.flags|=2048,Qu(9,OC.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ii(),t=Ut.identifierPrefix;if(lt){var r=Fi,n=Bi;r=(n&~(1<<32-Vn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Zu++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=B4++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},W4={readContext:bn,useCallback:IC,useContext:bn,useEffect:Zw,useImperativeHandle:RC,useInsertionEffect:CC,useLayoutEffect:NC,useMemo:MC,useReducer:ey,useRef
vendor: 6,411 bytes, lines 38-40
38:PC,useState:function(){return ey(Ju)},useDebugValue:Jw,useDeferredValue:function(e){var t=xn();return DC(t,Rt.memoizedState,e)},useTransition:function(){var e=ey(Ju)[0],t=xn().memoizedState;return[e,t]},useMutableSource:SC,useSyncExternalStore:EC,useId:LC,unstable_isNewReconciler:!1},H4={readContext:bn,useCallback:IC,useContext:bn,useEffect:Zw,useImperativeHandle:RC,useInsertionEffect:CC,useLayoutEffect:NC,useMemo:MC,useReducer:ty,useRef:PC,useState:function(){return ty(Ju)},useDebugValue:Jw,useDeferredValue:function(e){var t=xn();return Rt===null?t.memoizedState=e:DC(t,Rt.memoizedState,e)},useTransition:function(){var e=ty(Ju)[0],t=xn().memoizedState;return[e,t]},useMutableSource:SC,useSyncExternalStore:EC,useId:LC,unstable_isNewReconciler:!1};function jn(e,t){if(e&&e.defaultProps){t=pt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function z0(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:pt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var sv={isMounted:function(e){return(e=e._reactInternals)?fs(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=gr(),i=Ha(e),a=Hi(n,i);a.payload=t,r!=null&&(a.callback=r),t=Va(e,a,i),t!==null&&(Wn(t,e,i,n),Bh(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=gr(),i=Ha(e),a=Hi(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=Va(e,a,i),t!==null&&(Wn(t,e,i,n),Bh(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=gr(),n=Ha(e),i=Hi(r,n);i.tag=2,t!=null&&(i.callback=t),t=Va(e,i,n),t!==null&&(Wn(t,e,n,r),Bh(t,e,n))}};function VS(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!Hu(r,n)||!Hu(i,a):!0}function zC(e,t,r){var n=!1,i=Za,a=t.contextType;return typeof a=="object"&&a!==null?a=bn(a):(i=Rr(t)?Xo:ar.current,n=t.contextTypes,a=(n=n!=null)?Tl(e,i):Za),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=sv,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function WS(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&&sv.enqueueReplaceState(t,t.state,null)}function V0(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},Ww(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=bn(a):(a=Rr(t)?Xo:ar.current,i.context=Tl(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(z0(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&&sv.enqueueReplaceState(i,i.state,null),gp(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Nl(e,t){try{var r="",n=t;do r+=b5(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 ry(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function W0(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var q4=typeof WeakMap=="function"?WeakMap:Map;function VC(e,t,r){r=Hi(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){_p||(_p=!0,eb=n),W0(e,t)},r}function WC(e,t,r){r=Hi(-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(){W0(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){W0(e,t),typeof n!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function HS(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new q4;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=o3.bind(null,e,t,r),t.then(e,e))}function qS(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 KS(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=Hi(-1,1),t.tag=2,Va(r,t,1))),r.lanes|=1),e)}var K4=sa.ReactCurrentOwner,Cr=!1;function dr(e,t,r,n){t.child=e===null?bC(t,null,r,n):Pl(t,e.child,r,n)}function GS(e,t,r,n,i){r=r.render;var a=t.ref;return il(t,i),n=Yw(e,t,r,n,a,i),r=Xw(),e!==null&&!Cr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qi(e,t,i)):(lt&&r&&Dw(t),t.flags|=1,dr(e,t,n,i),t.child)}function YS(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!o1(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,HC(e,t,a,n,i)):(e=Hh(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 o=a.memoizedProps;if(r=r.compare,r=r!==null?r:Hu,r(o,n)&&e.ref===t.ref)return Qi(e,t,i)}return t.flags|=1,e=qa(a,n),e.ref=t.ref,e.return=t,t.child=e}function HC(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(Hu(a,n)&&e.ref===t.ref)if(Cr=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(Cr=!0);else return t.lanes=e.lanes,Qi(e,t,i)}return H0(e,t,r,n,i)}function qC(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},Qe(Ys,zr),zr|=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,Qe(Ys,zr),zr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,Qe(Ys,zr),zr|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Qe(Ys,zr),zr|=n;return dr(e,t,i,r),t.child}function KC(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 4,711 bytes, line 40
40function H0(e,t,r,n,i){var a=Rr(r)?Xo:ar.current;return a=Tl(t,a),il(t,i),r=Yw(e,t,r,n,a,i),n=Xw(),e!==null&&!Cr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qi(e,t,i)):(lt&&n&&Dw(t),t.flags|=1,dr(e,t,r,i),t.child)}function XS(e,t,r,n,i){if(Rr(r)){var a=!0;fp(t)}else a=!1;if(il(t,i),t.stateNode===null)zh(e,t),zC(t,r,n),V0(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=r.contextType;typeof c=="object"&&c!==null?c=bn(c):(c=Rr(r)?Xo:ar.current,c=Tl(t,c));var u=r.getDerivedStateFromProps,d=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||l!==c)&&WS(t,o,n,c),xa=!1;var f=t.memoizedState;o.state=f,gp(t,n,o,i),l=t.memoizedState,s!==n||f!==l||$r.current||xa?(typeof u=="function"&&(z0(t,r,u,n),l=t.memoizedState),(s=xa||VS(t,r,s,n,f,l,c))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=c,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,wC(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:jn(t.type,s),o.props=c,d=t.pendingProps,f=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=bn(l):(l=Rr(r)?Xo:ar.current,l=Tl(t,l));var p=r.getDerivedStateFromProps;(u=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||f!==l)&&WS(t,o,n,l),xa=!1,f=t.memoizedState,o.state=f,gp(t,n,o,i);var v=t.memoizedState;s!==d||f!==v||$r.current||xa?(typeof p=="function"&&(z0(t,r,p,n),v=t.memoizedState),(c=xa||VS(t,r,c,n,f,v,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,v,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,v,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=v),o.props=n,o.state=v,o.context=l,n=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return q0(e,t,r,n,a,i)}function q0(e,t,r,n,i,a){KC(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&IS(t,r,!1),Qi(e,t,a);n=t.stateNode,K4.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=Pl(t,e.child,null,a),t.child=Pl(t,null,s,a)):dr(e,t,s,a),t.memoizedState=n.state,i&&IS(t,r,!0),t.child}function GC(e){var t=e.stateNode;t.pendingContext?RS(e,t.pendingContext,t.pendingContext!==t.context):t.context&&RS(e,t.context,!1),Hw(e,t.containerInfo)}function ZS(e,t,r,n,i){return jl(),Bw(i),t.flags|=256,dr(e,t,r,n),t.child}var K0={dehydrated:null,treeContext:null,retryLane:0};function G0(e){return{baseLanes:e,cachePool:null,transitions:null}}function YC(e,t,r){var n=t.pendingProps,i=dt.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Qe(dt,i&1),e===null)return F0(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):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=uv(o,n,0,null),e=qo(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=G0(r),t.memoizedState=K0,e):Qw(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return G4(e,t,o,n,s,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=qa(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=qa(s,a):(a=qo(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?G0(r):{base
vendor: 8,918 bytes, line 40
40Lanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=K0,n}return a=e.child,e=a.sibling,n=qa(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 Qw(e,t){return t=uv({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Yf(e,t,r,n){return n!==null&&Bw(n),Pl(t,e.child,null,r),e=Qw(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function G4(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=ry(Error(X(422))),Yf(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=uv({mode:"visible",children:n.children},i,0,null),a=qo(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&Pl(t,e.child,null,o),t.child.memoizedState=G0(o),t.memoizedState=K0,a);if(!(t.mode&1))return Yf(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(X(419)),n=ry(a,n,void 0),Yf(e,t,o,n)}if(s=(o&e.childLanes)!==0,Cr||s){if(n=Ut,n!==null){switch(o&-o){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|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Ji(e,i),Wn(n,e,i,-1))}return a1(),n=ry(Error(X(421))),Yf(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=s3.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Kr=za(i.nextSibling),Gr=t,lt=!0,Mn=null,e!==null&&(fn[hn++]=Bi,fn[hn++]=Fi,fn[hn++]=Zo,Bi=e.id,Fi=e.overflow,Zo=t),t=Qw(t,n.children),t.flags|=4096,t)}function JS(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),U0(e.return,t,r)}function ny(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 XC(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(dr(e,t,n.children,r),n=dt.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&&JS(e,r,t);else if(e.tag===19)JS(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(Qe(dt,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&&yp(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),ny(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&&yp(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}ny(t,!0,r,null,a);break;case"together":ny(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qi(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Qo|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(X(153));if(t.child!==null){for(e=t.child,r=qa(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=qa(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Y4(e,t,r){switch(t.tag){case 3:GC(t),jl();break;case 5:_C(t);break;case 1:Rr(t.type)&&fp(t);break;case 4:Hw(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Qe(mp,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Qe(dt,dt.current&1),t.flags|=128,null):r&t.child.childLanes?YC(e,t,r):(Qe(dt,dt.current&1),e=Qi(e,t,r),e!==null?e.sibling:null);Qe(dt,dt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return XC(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Qe(dt,dt.current),n)break;return null;case 22:case 23:return t.lanes=0,qC(e,t,r)}return Qi(e,t,r)}var ZC,Y0,JC,QC;ZC=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}};Y0=function(){};JC=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,No(vi.current);var a=null;switch(r){case"input":i=g0(e,i),n=g0(e,n),a=[];break;case"select":i=pt({},i,{value:void 0}),n=pt({},n,{value:void 0}),a=[];break;case"textarea":i=x0(e,i),n=x0(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=up)}_0(r,n);var o;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Lu.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in n){var l=n[c];if(s=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Lu.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&nt("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};QC=function(e,t,r,n){r!==n&&(t.flags|=4)};function Bc(e,t){if(!lt)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 Jt(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 X4(e,t,r){var n=t.pendingProps;switch(Lw(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jt(t),null;case 1:return Rr(t.type)&&dp(),Jt(t),null;case 3:return n=t.stateNode,Cl(),ot($r),ot(ar),Kw(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Kf(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Mn!==null&&(nb(Mn),Mn=null))),Y0(e,t),Jt(t),null;case 5:qw(t);var i=No(Xu.current);if(r=t.type,e!==null&&t.stateNode!=null)JC(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(X(166));return Jt(t),null}if(e=No(vi.current),Kf(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[ui]=t,n[Gu]=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<cu.length;i++)nt(cu[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":sS(n,a),nt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},nt("invalid",n);break;case"textarea":cS(n,a),nt("invalid",n)}_0(r,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?n.textContent!==s&&(a.suppressHydrationWarning!==!0&&qf(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&qf(n.textContent,s,e),i=["children",""+s]):Lu.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&nt("scroll",n)}switch(r){case"input":Lf(n),lS(n,a,!0);break;case"textarea":Lf(n),uS(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=up)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=AP(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[ui]=t,e[Gu]=n,ZC(e,t,!1,!1),t.stateNode=e;e:{switch(o=S0(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<cu.length;i++)nt(cu[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":sS(e,n),i=g0(e,n),nt("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=pt({},n,{value:void 0}),nt("invalid",e);break;case"textarea":cS(e,n),i=x0(e,n),nt("invalid",e);break;default:i=n}_0(r,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?PP(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&TP(e,l)):a==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Bu(e,l):typeof l=="number"&&Bu(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Lu.hasOwnProperty(a)?l!=null&&a==="onScroll"&&nt("scroll",e):l!=null&&Sw(e,a,l,o))}switch(r){case"input":Lf(e),lS(e,n,!1);break;case"textarea":Lf(e),uS(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Xa(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?el(e,!!n.multiple,a,!1):n.defaultValue!=null&&el(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=up)}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 Jt(t),null;case 6:if(e&&t.stateNode!=null)QC(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(X(166));if(r=No(Xu.current),No(vi.current),Kf(t)){if(n=t.stateNode,r=t.memoizedProps,n[ui]=t,(a=n.nodeValue!==r)&&(e=Gr,e!==null))switch(e.tag){case 3:qf(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qf(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[ui]=t,t.stateNode=n}return Jt(t),null;case 13:if(ot(dt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(lt&&Kr!==null&&t.mode&1&&!(t.flags&128))gC(),jl(),t.flags|=98560,a=!1;else if(a=Kf(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(X(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(X(317));a[ui]=t}else jl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Jt(t),a=!1}else Mn!==null&&(nb(Mn),Mn=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||dt.current&1?It===0&&(It=3):a1())),t.updateQueue!==null&&(t.flags|=4),Jt(t),null);case 4:return Cl(),Y0(e,t),e===null&&qu(t.stateNode.containerInfo),Jt(t),null;case 10:return zw(t.type._context),Jt(t),null;case 17:return Rr(t.type)&&dp(),Jt(t),null;case 19:if(ot(dt),a=t.memoizedState,a===null)return Jt(t),null;if(n=(t.flags&128)!==0,o=a.rendering,o===null)if(n)Bc(a,!1);else{if(It!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=yp(e),o!==null){for(t.flags|=128,Bc(a,!1),n=o.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,o=a.alternate,o===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=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Qe(dt,dt.current&1|2),t.child}e=e.sibling}a.tail!==null&&kt()>$l&&(t.flags|=128,n=!0,Bc(a,!1),t.lanes=4194304)}else{if(!n)if(e=yp(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Bc(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!lt)return Jt(t),null}else 2*kt()-a.renderingStartTime>$l&&r!==1073741824&&(t.flags|=128,n=!0,Bc(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=kt(),t.sibling=null,r=dt.current,Qe(dt,n?r&1|2:r&1),t):(Jt(t),null);case 22:case 23:return i1(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?zr&1073741824&&(Jt(t),t.subtreeFlags&6&&(t.flags|=8192)):Jt(t),null;case 24:return null;case 25:return null}throw Error(X(156,t.tag))}function Z4(e,t){switch(Lw(t),t.tag){case 1:return Rr(t.type)&&dp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 26,010 bytes, line 40
40case 3:return Cl(),ot($r),ot(ar),Kw(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return qw(t),null;case 13:if(ot(dt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(X(340));jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ot(dt),null;case 4:return Cl(),null;case 10:return zw(t.type._context),null;case 22:case 23:return i1(),null;case 24:return null;default:return null}}var Xf=!1,rr=!1,J4=typeof WeakSet=="function"?WeakSet:Set,ce=null;function Gs(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){_t(e,t,n)}else r.current=null}function X0(e,t,r){try{r()}catch(n){_t(e,t,n)}}var QS=!1;function Q4(e,t){if($0=sp,e=iC(),Mw(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 o=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==r||i!==0&&d.nodeType!==3||(s=o+i),d!==a||n!==0&&d.nodeType!==3||(l=o+n),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++c===i&&(s=o),f===a&&++u===n&&(l=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(R0={focusedElem:e,selectionRange:r},sp=!1,ce=t;ce!==null;)if(t=ce,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ce=e;else for(;ce!==null;){t=ce;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var m=v.memoizedProps,y=v.memoizedState,b=t.stateNode,g=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:jn(t.type,m),y);b.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(X(163))}}catch(w){_t(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,ce=e;break}ce=t.return}return v=QS,QS=!1,v}function Su(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&&X0(t,r,a)}i=i.next}while(i!==n)}}function lv(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 Z0(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 eN(e){var t=e.alternate;t!==null&&(e.alternate=null,eN(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ui],delete t[Gu],delete t[D0],delete t[I4],delete t[M4])),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 tN(e){return e.tag===5||e.tag===3||e.tag===4}function eE(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tN(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 J0(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=up));else if(n!==4&&(e=e.child,e!==null))for(J0(e,t,r),e=e.sibling;e!==null;)J0(e,t,r),e=e.sibling}function Q0(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(Q0(e,t,r),e=e.sibling;e!==null;)Q0(e,t,r),e=e.sibling}var Wt=null,$n=!1;function ha(e,t,r){for(r=r.child;r!==null;)rN(e,t,r),r=r.sibling}function rN(e,t,r){if(mi&&typeof mi.onCommitFiberUnmount=="function")try{mi.onCommitFiberUnmount(ev,r)}catch{}switch(r.tag){case 5:rr||Gs(r,t);case 6:var n=Wt,i=$n;Wt=null,ha(e,t,r),Wt=n,$n=i,Wt!==null&&($n?(e=Wt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Wt.removeChild(r.stateNode));break;case 18:Wt!==null&&($n?(e=Wt,r=r.stateNode,e.nodeType===8?Xg(e.parentNode,r):e.nodeType===1&&Xg(e,r),Vu(e)):Xg(Wt,r.stateNode));break;case 4:n=Wt,i=$n,Wt=r.stateNode.containerInfo,$n=!0,ha(e,t,r),Wt=n,$n=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,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&X0(r,t,o),i=i.next}while(i!==n)}ha(e,t,r);break;case 1:if(!rr&&(Gs(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){_t(r,t,s)}ha(e,t,r);break;case 21:ha(e,t,r);break;case 22:r.mode&1?(rr=(n=rr)||r.memoizedState!==null,ha(e,t,r),rr=n):ha(e,t,r);break;default:ha(e,t,r)}}function tE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new J4),t.forEach(function(n){var i=l3.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function En(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,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:Wt=s.stateNode,$n=!1;break e;case 3:Wt=s.stateNode.containerInfo,$n=!0;break e;case 4:Wt=s.stateNode.containerInfo,$n=!0;break e}s=s.return}if(Wt===null)throw Error(X(160));rN(a,o,i),Wt=null,$n=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){_t(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)nN(t,e),t=t.sibling}function nN(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(En(t,e),ri(e),n&4){try{Su(3,e,e.return),lv(3,e)}catch(m){_t(e,e.return,m)}try{Su(5,e,e.return)}catch(m){_t(e,e.return,m)}}break;case 1:En(t,e),ri(e),n&512&&r!==null&&Gs(r,r.return);break;case 5:if(En(t,e),ri(e),n&512&&r!==null&&Gs(r,r.return),e.flags&32){var i=e.stateNode;try{Bu(i,"")}catch(m){_t(e,e.return,m)}}if(n&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=r!==null?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&kP(i,a),S0(s,o);var c=S0(s,a);for(o=0;o<l.length;o+=2){var u=l[o],d=l[o+1];u==="style"?PP(i,d):u==="dangerouslySetInnerHTML"?TP(i,d):u==="children"?Bu(i,d):Sw(i,u,d,c)}switch(s){case"input":y0(i,a);break;case"textarea":OP(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?el(i,!!a.multiple,p,!1):f!==!!a.multiple&&(a.defaultValue!=null?el(i,!!a.multiple,a.defaultValue,!0):el(i,!!a.multiple,a.multiple?[]:"",!1))}i[Gu]=a}catch(m){_t(e,e.return,m)}}break;case 6:if(En(t,e),ri(e),n&4){if(e.stateNode===null)throw Error(X(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(m){_t(e,e.return,m)}}break;case 3:if(En(t,e),ri(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Vu(t.containerInfo)}catch(m){_t(e,e.return,m)}break;case 4:En(t,e),ri(e);break;case 13:En(t,e),ri(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(r1=kt())),n&4&&tE(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(rr=(c=rr)||u,En(t,e),rr=c):En(t,e),ri(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(ce=e,u=e.child;u!==null;){for(d=ce=u;ce!==null;){switch(f=ce,p=f.child,f.tag){case 0:case 11:case 14:case 15:Su(4,f,f.return);break;case 1:Gs(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){n=f,r=f.return;try{t=n,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(m){_t(n,r,m)}}break;case 5:Gs(f,f.return);break;case 22:if(f.memoizedState!==null){nE(d);continue}}p!==null?(p.return=f,ce=p):nE(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"):(s=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=jP("display",o))}catch(m){_t(e,e.return,m)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){_t(e,e.return,m)}}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:En(t,e),ri(e),n&4&&tE(e);break;case 21:break;default:En(t,e),ri(e)}}function ri(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(tN(r)){var n=r;break e}r=r.return}throw Error(X(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Bu(i,""),n.flags&=-33);var a=eE(e);Q0(e,a,i);break;case 3:case 4:var o=n.stateNode.containerInfo,s=eE(e);J0(e,s,o);break;default:throw Error(X(161))}}catch(l){_t(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function e3(e,t,r){ce=e,iN(e)}function iN(e,t,r){for(var n=(e.mode&1)!==0;ce!==null;){var i=ce,a=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||Xf;if(!o){var s=i.alternate,l=s!==null&&s.memoizedState!==null||rr;s=Xf;var c=rr;if(Xf=o,(rr=l)&&!c)for(ce=i;ce!==null;)o=ce,l=o.child,o.tag===22&&o.memoizedState!==null?iE(i):l!==null?(l.return=o,ce=l):iE(i);for(;a!==null;)ce=a,iN(a),a=a.sibling;ce=i,Xf=s,rr=c}rE(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,ce=a):rE(e)}}function rE(e){for(;ce!==null;){var t=ce;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:rr||lv(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:jn(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&FS(t,a,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}FS(t,o,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.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&&Vu(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(X(163))}rr||t.flags&512&&Z0(t)}catch(f){_t(t,t.return,f)}}if(t===e){ce=null;break}if(r=t.sibling,r!==null){r.return=t.return,ce=r;break}ce=t.return}}function nE(e){for(;ce!==null;){var t=ce;if(t===e){ce=null;break}var r=t.sibling;if(r!==null){r.return=t.return,ce=r;break}ce=t.return}}function iE(e){for(;ce!==null;){var t=ce;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{lv(4,t)}catch(l){_t(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){_t(t,i,l)}}var a=t.return;try{Z0(t)}catch(l){_t(t,a,l)}break;case 5:var o=t.return;try{Z0(t)}catch(l){_t(t,o,l)}}}catch(l){_t(t,t.return,l)}if(t===e){ce=null;break}var s=t.sibling;if(s!==null){s.return=t.return,ce=s;break}ce=t.return}}var t3=Math.ceil,wp=sa.ReactCurrentDispatcher,e1=sa.ReactCurrentOwner,gn=sa.ReactCurrentBatchConfig,Be=0,Ut=null,Pt=null,Gt=0,zr=0,Ys=so(0),It=0,ed=null,Qo=0,cv=0,t1=0,Eu=null,Pr=null,r1=0,$l=1/0,Ri=null,_p=!1,eb=null,Wa=null,Zf=!1,Ia=null,Sp=0,ku=0,tb=null,Vh=-1,Wh=0;function gr(){return Be&6?kt():Vh!==-1?Vh:Vh=kt()}function Ha(e){return e.mode&1?Be&2&&Gt!==0?Gt&-Gt:L4.transition!==null?(Wh===0&&(Wh=zP()),Wh):(e=qe,e!==0||(e=window.event,e=e===void 0?16:YP(e.type)),e):1}function Wn(e,t,r,n){if(50<ku)throw ku=0,tb=null,Error(X(185));hf(e,r,n),(!(Be&2)||e!==Ut)&&(e===Ut&&(!(Be&2)&&(cv|=r),It===4&&Sa(e,Gt)),Ir(e,n),r===1&&Be===0&&!(t.mode&1)&&($l=kt()+500,av&&lo()))}function Ir(e,t){var r=e.callbackNode;L5(e,t);var n=op(e,e===Ut?Gt:0);if(n===0)r!==null&&hS(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&hS(r),t===1)e.tag===0?D4(aE.bind(null,e)):pC(aE.bind(null,e)),$4(function(){!(Be&6)&&lo()}),r=null;else{switch(VP(n)){case 1:r=Tw;break;case 4:r=FP;break;case 16:r=ap;break;case 536870912:r=UP;break;default:r=ap}r=fN(r,aN.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function aN(e,t){if(Vh=-1,Wh=0,Be&6)throw Error(X(327));var r=e.callbackNode;if(al()&&e.callbackNode!==r)return null;var n=op(e,e===Ut?Gt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Ep(e,n);else{t=n;var i=Be;Be|=2;var a=sN();(Ut!==e||Gt!==t)&&(Ri=null,$l=kt()+500,Ho(e,t));do try{i3();break}catch(s){oN(e,s)}while(!0);Uw(),wp.current=a,Be=i,Pt!==null?t=0:(Ut=null,Gt=0,t=It)}if(t!==0){if(t===2&&(i=T0(e),i!==0&&(n=i,t=rb(e,i))),t===1)throw r=ed,Ho(e,0),Sa(e,n),Ir(e,kt()),r;if(t===6)Sa(e,n);else{if(i=e.current.alternate,!(n&30)&&!r3(i)&&(t=Ep(e,n),t===2&&(a=T0(e),a!==0&&(n=a,t=rb(e,a))),t===1))throw r=ed,Ho(e,0),Sa(e,n),Ir(e,kt()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(X(345));case 2:ko(e,Pr,Ri);break;case 3:if(Sa(e,n),(n&130023424)===n&&(t=r1+500-kt(),10<t)){if(op(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){gr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=M0(ko.bind(null,e,Pr,Ri),t);break}ko(e,Pr,Ri);break;case 4:if(Sa(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-Vn(n);a=1<<o,o=t[o],o>i&&(i=o),n&=~a}if(n=i,n=kt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*t3(n/1960))-n,10<n){e.timeoutHandle=M0(ko.bind(null,e,Pr,Ri),n);break}ko(e,Pr,Ri);break;case 5:ko(e,Pr,Ri);break;default:throw Error(X(329))}}}return Ir(e,kt()),e.callbackNode===r?aN.bind(null,e):null}function rb(e,t){var r=Eu;return e.current.memoizedState.isDehydrated&&(Ho(e,t).flags|=256),e=Ep(e,t),e!==2&&(t=Pr,Pr=r,t!==null&&nb(t)),e}function nb(e){Pr===null?Pr=e:Pr.push.apply(Pr,e)}function r3(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(!Gn(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 Sa(e,t){for(t&=~t1,t&=~cv,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Vn(t),n=1<<r;e[r]=-1,t&=~n}}function aE(e){if(Be&6)throw Error(X(327));al();var t=op(e,0);if(!(t&1))return Ir(e,kt()),null;var r=Ep(e,t);if(e.tag!==0&&r===2){var n=T0(e);n!==0&&(t=n,r=rb(e,n))}if(r===1)throw r=ed,Ho(e,0),Sa(e,t),Ir(e,kt()),r;if(r===6)throw Error(X(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ko(e,Pr,Ri),Ir(e,kt()),null}function n1(e,t){var r=Be;Be|=1;try{return e(t)}finally{Be=r,Be===0&&($l=kt()+500,av&&lo())}}function es(e){Ia!==null&&Ia.tag===0&&!(Be&6)&&al();var t=Be;Be|=1;var r=gn.transition,n=qe;try{if(gn.transition=null,qe=1,e)return e()}finally{qe=n,gn.transition=r,Be=t,!(Be&6)&&lo()}}function i1(){zr=Ys.current,ot(Ys)}function Ho(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,N4(r)),Pt!==null)for(r=Pt.return;r!==null;){var n=r;switch(Lw(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&dp();break;case 3:Cl(),ot($r),ot(ar),Kw();break;case 5:qw(n);break;case 4:Cl();break;case 13:ot(dt);break;case 19:ot(dt);break;case 10:zw(n.type._context);break;case 22:case 23:i1()}r=r.return}if(Ut=e,Pt=e=qa(e.current,null),Gt=zr=t,It=0,ed=null,t1=cv=Qo=0,Pr=Eu=null,Co!==null){for(t=0;t<Co.length;t++)if(r=Co[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,a=r.pending;if(a!==null){var o=a.next;a.next=i,n.next=o}r.pending=n}Co=null}return e}function oN(e,t){do{var r=Pt;try{if(Uw(),Fh.current=xp,bp){for(var n=ht.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}bp=!1}if(Jo=0,Ft=Rt=ht=null,_u=!1,Zu=0,e1.current=null,r===null||r.return===null){It=1,ed=t,Pt=null;break}e:{var a=e,o=r.return,s=r,l=t;if(t=Gt,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=s,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 p=qS(o);if(p!==null){p.flags&=-257,KS(p,o,s,a,t),p.mode&1&&HS(a,c,t),t=p,l=c;var v=t.updateQueue;if(v===null){var m=new Set;m.add(l),t.updateQueue=m}else v.add(l);break e}else{if(!(t&1)){HS(a,c,t),a1();break e}l=Error(X(426))}}else if(lt&&s.mode&1){var y=qS(o);if(y!==null){!(y.flags&65536)&&(y.flags|=256),KS(y,o,s,a,t),Bw(Nl(l,s));break e}}a=l=Nl(l,s),It!==4&&(It=2),Eu===null?Eu=[a]:Eu.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var b=VC(a,l,t);BS(a,b);break e;case 1:s=l;var g=a.type,x=a.stateNode;if(!(a.flags&128)&&(typeof g.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Wa===null||!Wa.has(x)))){a.flags|=65536,t&=-t,a.lanes|=t;var w=WC(a,s,t);BS(a,w);break e}}a=a.return}while(a!==null)}cN(r)}catch(_){t=_,Pt===r&&r!==null&&(Pt=r=r.return);continue}break}while(!0)}function sN(){var e=wp.current;return wp.current=xp,e===null?xp:e}function a1(){(It===0||It===3||It===2)&&(It=4),Ut===null||!(Qo&268435455)&&!(cv&268435455)||Sa(Ut,Gt)}function Ep(e,t){var r=Be;Be|=2;var n=sN();(Ut!==e||Gt!==t)&&(Ri=null,Ho(e,t));do try{n3();break}catch(i){oN(e,i)}while(!0);if(Uw(),Be=r,wp.current=n,Pt!==null)throw Error(X(261));return Ut=null,Gt=0,It}function n3(){for(;Pt!==null;)lN(Pt)}function i3(){for(;Pt!==null&&!j5();)lN(Pt)}function lN(e){var t=dN(e.alternate,e,zr);e.memoizedProps=e.pendingProps,t===null?cN(e):Pt=t,e1.current=null}function cN(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Z4(r,t),r!==null){r.flags&=32767,Pt=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{It=6,Pt=null;return}}else if(r=X4(r,t,zr),r!==null){Pt=r;return}if(t=t.sibling,t!==null){Pt=t;return}Pt=t=e}while(t!==null);It===0&&(It=5)}function ko(e,t,r){var n=qe,i=gn.transition;try{gn.transition=null,qe=1,a3(e,t,r,n)}finally{gn.transition=i,qe=n}return null}function a3(e,t,r,n){do al();while(Ia!==null);if(Be&6)throw Error(X(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(X(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(B5(e,a),e===Ut&&(Pt=Ut=null,Gt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Zf||(Zf=!0,fN(ap,function(){return al(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=gn.transition,gn.transition=null;var o=qe;qe=1;var s=Be;Be|=4,e1.current=null,Q4(e,r),nN(r,e),k4(R0),sp=!!$0,R0=$0=null,e.current=r,e3(r),P5(),Be=s,qe=o,gn.transition=a}else e.current=r;if(Zf&&(Zf=!1,Ia=e,Sp=i),a=e.pendingLanes,a===0&&(Wa=null),$5(r.stateNode),Ir(e,kt()),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(_p)throw _p=!1,e=eb,eb=null,e;return Sp&1&&e.tag!==0&&al(),a=e.pendingLanes,a&1?e===tb?ku++:(ku=0,tb=e):ku=0,lo(),null}function al(){if(Ia!==null){var e=VP(Sp),t=gn.transition,r=qe;try{if(gn.transition=null,qe=16>e?16:e,Ia===null)var n=!1;else{if(e=Ia,Ia=null,Sp=0,Be&6)throw Error(X(331));var i=Be;for(Be|=4,ce=e.current;ce!==null;){var a=ce,o=a.child;if(ce.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(ce=c;ce!==null;){var u=ce;switch(u.tag){case 0:case 11:case 15:Su(8,u,a)}var d=u.child;if(d!==null)d.return=u,ce=d;else for(;ce!==null;){u=ce;var f=u.sibling,p=u.return;if(eN(u),u===c){ce=null;break}if(f!==null){f.return=p,ce=f;break}ce=p}}}var v=a.alternate;if(v!==null){var m=v.child;if(m!==null){v.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(m!==null)}}ce=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,ce=o;else e:for(;ce!==null;){if(a=ce,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Su(9,a,a.return)}var b=a.sibling;if(b!==null){b.return=a.return,ce=b;break e}ce=a.return}}var g=e.current;for(ce=g;ce!==null;){o=ce;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,ce=x;else e:for(o=g;ce!==null;){if(s=ce,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:lv(9,s)}}catch(_){_t(s,s.return,_)}if(s===o){ce=null;break e}var w=s.sibling;if(w!==null){w.return=s.return,ce=w;break e}ce=s.return}}if(Be=i,lo(),mi&&typeof mi.onPostCommitFiberRoot=="function")try{mi.onPostCommitFiberRoot(ev,e)}catch{}n=!0}return n}finally{qe=r,gn.transition=t}}return!1}function oE(e,t,r){t=Nl(r,t),t=VC(e,t,1),e=Va(e,t,1),t=gr(),e!==null&&(hf(e,1,t),Ir(e,t))}function _t(e,t,r){if(e.tag===3)oE(e,e,r);else for(;t!==null;){if(t.tag===3){oE(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Wa===null||!Wa.has(n))){e=Nl(r,e),e=WC(t,e,1),t=Va(t,e,1),e=gr(),t!==null&&(hf(t,1,e),Ir(t,e));break}}t=t.return}}function o3(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=gr(),e.pingedLanes|=e.suspendedLanes&r,Ut===e&&(Gt&r)===r&&(It===4||It===3&&(Gt&130023424)===Gt&&500>kt()-r1?Ho(e,0):t1|=r),Ir(e,t)}function uN(e,t){t===0&&(e.mode&1?(t=Uf,Uf<<=1,!(Uf&130023424)&&(Uf=4194304)):t=1);var r=gr();e=Ji(e,t),e!==null&&(hf(e,t,r),Ir(e,r))}function s3(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),uN(e,r)}function l3(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(X(314))}n!==null&&n.delete(t),uN(e,r)}var dN;dN=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||$r.current)Cr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Cr=!1,Y4(e,t,r);Cr=!!(e.flags&131072)}else Cr=!1,lt&&t.flags&1048576&&mC(t,pp,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;zh(e,t),e=t.pendingProps;var i=Tl(t,ar.current);il(t,r),i=Yw(null,t,n,e,i,r);var a=Xw();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,Rr(n)?(a=!0,fp(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ww(t),i.updater=sv,t.stateNode=i,i._reactInternals=t,V0(t,n,e,r),t=q0(null,t,n,!0,a,r)):(t.tag=0,lt&&a&&Dw(t),dr(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(zh(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=u3(n),e=jn(n,e),i){case 0:t=H0(null,t,n,e,r);break e;case 1:t=XS(null,t,n,e,r);break e;case 11:t=GS(null,t,n,e,r);break e;case 14:t=YS(null,t,n,jn(n.type,e),r);break e}throw Error(X(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:jn(n,i),H0(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:jn(n,i),XS(e,t,n,i,r);case 3:e:{if(GC(t),e===null)throw Error(X(387));n=t.pendingProps,a=t.memoizedState,i=a.element,wC(e,t),gp(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Nl(Error(X(423)),t),t=ZS(e,t,n,r,i);break e}else if(n!==i){i=Nl(Error(X(424)),t),t=ZS(e,t,n,r,i);break e}else for(Kr=za(t.stateNode.containerInfo.firstChild),Gr=t,lt=!0,Mn=null,r=bC(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(jl(),n===i){t=Qi(e,t,r);break e}dr(e,t,n,r)}t=t.child}return t;case 5:return _C(t),e===null&&F0(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,I0(n,i)?o=null:a!==null&&I0(n,a)&&(t.flags|=32),KC(e,t),dr(e,t,o,r),t.child;case 6:return e===null&&F0(t),null;case 13:return YC(e,t,r);case 4:return Hw(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Pl(t,null,n,r):dr(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:jn(n,i),GS(e,t,n,i,r);case 7:return dr(e,t,t.pendingProps,r),t.child;case 8:return dr(e,t,t.pendingProps.children,r),t.child;case 12:return dr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Qe(mp,n._currentValue),n._currentValue=o,a!==null)if(Gn(a.value,o)){if(a.children===i.children&&!$r.current){t=Qi(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=Hi(-1,r&-r),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),U0(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(X(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),U0(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}dr(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,il(t,r),i=bn(i),n=n(i),t.flags|=1,dr(e,t,n,r),t.child;case 14:return n=t.type,i=jn(n,t.pendingProps),i=jn(n.type,i),YS(e,t,n,i,r);case 15:return HC(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:jn(n,i),zh(e,t),t.tag=1,Rr(n)?(e=!0,fp(t)):e=!1,il(t,r),zC(t,n,i),V0(t,n,i,r),q0(null,t,n,!0,e,r);case 19:return XC(e,t,r);case 22:return qC(e,t,r)}throw Error(X(156,t.tag))};function fN(e,t){return BP(e,t)}function c3(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 7,566 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 mn(e,t,r,n){return new c3(e,t,r,n)}function o1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function u3(e){if(typeof e=="function")return o1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kw)return 11;if(e===Ow)return 14}return 2}function qa(e,t){var r=e.alternate;return r===null?(r=mn(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 Hh(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")o1(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Bs:return qo(r.children,i,a,t);case Ew:o=8,i|=8;break;case h0:return e=mn(12,r,t,i|2),e.elementType=h0,e.lanes=a,e;case p0:return e=mn(13,r,t,i),e.elementType=p0,e.lanes=a,e;case m0:return e=mn(19,r,t,i),e.elementType=m0,e.lanes=a,e;case _P:return uv(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xP:o=10;break e;case wP:o=9;break e;case kw:o=11;break e;case Ow:o=14;break e;case ba:o=16,n=null;break e}throw Error(X(130,e==null?e:typeof e,""))}return t=mn(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function qo(e,t,r,n){return e=mn(7,e,n,t),e.lanes=r,e}function uv(e,t,r,n){return e=mn(22,e,n,t),e.elementType=_P,e.lanes=r,e.stateNode={isHidden:!1},e}function iy(e,t,r){return e=mn(6,e,null,t),e.lanes=r,e}function ay(e,t,r){return t=mn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function d3(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=Bg(0),this.expirationTimes=Bg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bg(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function s1(e,t,r,n,i,a,o,s,l){return e=new d3(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=mn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ww(a),e}function f3(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ls,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function hN(e){if(!e)return Za;e=e._reactInternals;e:{if(fs(e)!==e||e.tag!==1)throw Error(X(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Rr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(X(171))}if(e.tag===1){var r=e.type;if(Rr(r))return hC(e,r,t)}return t}function pN(e,t,r,n,i,a,o,s,l){return e=s1(r,n,!0,e,i,a,o,s,l),e.context=hN(null),r=e.current,n=gr(),i=Ha(r),a=Hi(n,i),a.callback=t??null,Va(r,a,i),e.current.lanes=i,hf(e,i,n),Ir(e,n),e}function dv(e,t,r,n){var i=t.current,a=gr(),o=Ha(i);return r=hN(r),t.context===null?t.context=r:t.pendingContext=r,t=Hi(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Va(i,t,o),e!==null&&(Wn(e,i,o,a),Bh(e,i,o)),o}function kp(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 sE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function l1(e,t){sE(e,t),(e=e.alternate)&&sE(e,t)}function h3(){return null}var mN=typeof reportError=="function"?reportError:function(e){console.error(e)};function c1(e){this._internalRoot=e}fv.prototype.render=c1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(X(409));dv(e,t,null,null)};fv.prototype.unmount=c1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;es(function(){dv(null,e,null,null)}),t[Zi]=null}};function fv(e){this._internalRoot=e}fv.prototype.unstable_scheduleHydration=function(e){if(e){var t=qP();e={blockedOn:null,target:e,priority:t};for(var r=0;r<_a.length&&t!==0&&t<_a[r].priority;r++);_a.splice(r,0,e),r===0&&GP(e)}};function u1(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function lE(){}function p3(e,t,r,n,i){if(i){if(typeof n=="function"){var a=n;n=function(){var c=kp(o);a.call(c)}}var o=pN(t,n,e,0,null,!1,!1,"",lE);return e._reactRootContainer=o,e[Zi]=o.current,qu(e.nodeType===8?e.parentNode:e),es(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var c=kp(l);s.call(c)}}var l=s1(e,0,!1,null,null,!1,!1,"",lE);return e._reactRootContainer=l,e[Zi]=l.current,qu(e.nodeType===8?e.parentNode:e),es(function(){dv(t,l,r,n)}),l}function pv(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var l=kp(o);s.call(l)}}dv(t,o,e,i)}else o=p3(r,t,e,i,n);return kp(o)}WP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=lu(t.pendingLanes);r!==0&&(jw(t,r|1),Ir(t,kt()),!(Be&6)&&($l=kt()+500,lo()))}break;case 13:es(function(){var n=Ji(e,1);if(n!==null){var i=gr();Wn(n,e,1,i)}}),l1(e,1)}};Pw=function(e){if(e.tag===13){var t=Ji(e,134217728);if(t!==null){var r=gr();Wn(t,e,134217728,r)}l1(e,134217728)}};HP=function(e){if(e.tag===13){var t=Ha(e),r=Ji(e,t);if(r!==null){var n=gr();Wn(r,e,t,n)}l1(e,t)}};qP=function(){return qe};KP=function(e,t){var r=qe;try{return qe=e,t()}finally{qe=r}};k0=function(e,t,r){switch(t){case"input":if(y0(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=iv(n);if(!i)throw Error(X(90));EP(n),y0(n,i)}}}break;case"textarea":OP(e,r);break;case"select":t=r.value,t!=null&&el(e,!!r.multiple,t,!1)}};$P=n1;RP=es;var m3={usingClientEntryPoint:!1,Events:[mf,Vs,iv,CP,NP,n1]},Fc={findFiberByHostInstance:Po,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},v3={bundleType:Fc.bundleType,version:Fc.version,rendererPackageName:Fc.rendererPackageName,rendererConfig:Fc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:sa.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=DP(e),e===null?null:e.stateNode},findFiberByHostInstance:Fc.findFiberByHostInstance||h3,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jf.isDisabled&&Jf.supportsFiber)try{ev=Jf.inject(v3),mi=Jf}catch{}}en.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=m3;en.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u1(t))throw Error(X(200));return f3(e,t,null,r)};en.createRoot=function(e,t){if(!u1(e))throw Error(X(299));var r=!1,n="",i=mN;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=s1(e,1,!1,null,null,r,!1,n,i),e[Zi]=t.current,qu(e.nodeType===8?e.parentNode:e),new c1(t)};en.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(X(188)):(e=Object.keys(e).join(","),Error(X(268,e)));return e=DP(t),e=e===null?null:e.stateNode,e};en.flushSync=function(e){return es(e)};en.hydrate=function(e,t,r){if(!hv(t))throw Error(X(200));return pv(null,e,t,!0,r)};en.hydrateRoot=function(e,t,r){if(!u1(e))throw Error(X(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",o=mN;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=pN(t,null,e,1,r??null,i,!1,a,o),e[Zi]=t.current,qu(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 fv(t)};en.render=function(e,t,r){if(!hv(t))throw Error(X(200));return pv(null,e,t,!1,r)};en.unmountComponentAtNode=function(e){if(!hv(e))throw Error(X(40));return e._reactRootContainer?(es(function(){pv(null,null,e,!1,function(){e._reactRootContainer=null,e[Zi]=null})}),!0):!1};en.unstable_batchedUpdates=n1;en.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!hv(r))throw Error(X(200));if(e==null||e._reactInternals===void 0)throw Error(X(38));return pv(e,t,r,!1,n)};en.version="18.3.1-next-f1338f8080-20240426";function vN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vN)}catch(e){console.error(e)}}vN(),vP.exports=en;var hs=vP.exports;const gN=Ue(hs);var yN,cE=hs;yN=cE.createRoot,cE.hydrateRoot;var g3=typeof Element<"u",y3=typeof Map=="function",b3=typeof Set=="function",x3=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function qh(e,t){if(e===t)return!0;if(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(!qh(e[n],t[n]))return!1;return!0}var a;if(y3&&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(!qh(n.value[1],t.get(n.value[0])))return!1;return!0}if(b3&&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(x3&&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(g3&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((i[n]==="_owner"||i[n]==="__v"||i[n]==="__o")&&e.$$typeof)&&!qh(e[i[n]],t[i[n]]))return!1;return!0}return e!==e&&t!==t}var w3=function(t,r){try{return qh(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 _3=Ue(w3);
40var S3=function(e,t,r,n,i,a,o,s){if(!e){var l;if(t===void 0)l=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,o,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},E3=S3;const uE=Ue(E3);var k3=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 o=Object.keys(t),s=Object.keys(r);if(o.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),c=0;c<o.length;c++){var u=o[c];if(!l(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 O3=Ue(k3);var bN=(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))(bN||{}),oy={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"]}},dE=Object.values(bN),mv={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},xN=Object.entries(mv).reduce((e,[t,r])=>(e[r]=t,e),{}),Fn="data-rh",ol={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},sl=(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},A3=e=>{let t=sl(e,"title");const r=sl(e,ol.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const n=sl(e,ol.DEFAULT_TITLE);return t||n||void 0},T3=e=>sl(e,ol.ON_CHANGE_CLIENT_STATE)||(()=>{}),sy=(e,t)=>t.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,n)=>({...r,...n}),{}),j3=(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 s=i[a].toLowerCase();if(e.indexOf(s)!==-1&&n[s])return r.concat(n)}}return r},[]),P3=e=>console&&typeof console.warn=="function"&&console.warn(e),Uc=(e,t,r)=>{const n={};return r.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&P3(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,a)=>{const o={};a.filter(l=>{let c;const u=Object.keys(l);for(let f=0;f<u.length;f+=1){const p=u[f],v=p.toLowerCase();t.indexOf(v)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(v==="rel"&&l[v].toLowerCase()==="stylesheet")&&(c=v),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(c=p)}if(!c||!l[c])return!1;const d=l[c].toLowerCase();return n[c]||(n[c]={}),o[c]||(o[c]={}),n[c][d]?!1:(o[c][d]=!0,!0)}).reverse().forEach(l=>i.push(l));const s=Object.keys(o);for(let l=0;l<s.length;l+=1){const c=s[l],u={...n[c],...o[c]};n[c]=u}return i},[]).reverse()},C3=(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},N3=e=>({baseTag:j3(["href"],e),bodyAttributes:sy("bodyAttributes",e),defer:sl(e,ol.DEFER),encode:sl(e,ol.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:sy("htmlAttributes",e),linkTags:Uc("link",["rel","href"],e),metaTags:Uc("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Uc("noscript",["innerHTML"],e),onChangeClientState:T3(e),scriptTags:Uc("script",["src","innerHTML"],e),styleTags:Uc("style",["cssText"],e),title:A3(e),titleAttributes:sy("titleAttributes",e),prioritizeSeoTags:C3(e,ol.PRIORITIZE_SEO_TAGS)}),wN=e=>Array.isArray(e)?e.join(""):e,$3=(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},ly=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>($3(n,t)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:e,priority:[]},fE=(e,t)=>({...e,[t]:void 0}),R3=["noscript","script","style"],ib=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),_N=e=>Object.keys(e).reduce((t,r)=>{const n=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${n}`:n},""),I3=(e,t,r,n)=>{const i=_N(r),a=wN(t);return i?`<${e} ${Fn}="true" ${i}>${ib(a,n)}</${e}>`:`<${e} ${Fn}="true">${ib(a,n)}</${e}>`},M3=(e,t,r=!0)=>t.reduce((n,i)=>{const a=i,o=Object.keys(a).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const d=typeof a[u]>
40"u"?u:`${u}="${ib(a[u],r)}"`;return c?`${c} ${d}`:d},""),s=a.innerHTML||a.cssText||"",l=R3.indexOf(e)===-1;return`${n}<${e} ${Fn}="true" ${o}${l?"/>":`>${s}</${e}>`}`},""),SN=(e,t={})=>Object.keys(e).reduce((r,n)=>{const i=mv[n];return r[i||n]=e[n],r},t),D3=(e,t,r)=>{const n={key:t,[Fn]:!0},i=SN(r,n);return[A.createElement("title",i,t)]},Kh=(e,t)=>t.map((r,n)=>{const i={key:n,[Fn]:!0};return Object.keys(r).forEach(a=>{const s=mv[a]||a;if(s==="innerHTML"||s==="cssText"){const l=r.innerHTML||r.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[s]=r[a]}),A.createElement(e,i)}),cn=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>D3(e,t.title,t.titleAttributes),toString:()=>I3(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>SN(t),toString:()=>_N(t)};default:return{toComponent:()=>Kh(e,t),toString:()=>M3(e,t,r)}}},L3=({metaTags:e,linkTags:t,scriptTags:r,encode:n})=>{const i=ly(e,oy.meta),a=ly(t,oy.link),o=ly(r,oy.script);return{priorityMethods:{toComponent:()=>[...Kh("meta",i.priority),...Kh("link",a.priority),...Kh("script",o.priority)],toString:()=>`${cn("meta",i.priority,n)} ${cn("link",a.priority,n)} ${cn("script",o.priority,n)}`},metaTags:i.default,linkTags:a.default,scriptTags:o.default}},B3=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:i,noscriptTags:a,styleTags:o,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:f}=e,p={toComponent:()=>[],toString:()=>""};return c&&({priorityMethods:p,linkTags:u,metaTags:d,scriptTags:f}=L3(e)),{priority:p,base:cn("base",t,n),bodyAttributes:cn("bodyAttributes",r,n),htmlAttributes:cn("htmlAttributes",i,n),link:cn("link",u,n),meta:cn("meta",d,n),noscript:cn("noscript",a,n),script:cn("script",f,n),style:cn("style",o,n),title:cn("title",{title:s,titleAttributes:l},n)}},ab=B3,Qf=[],d1=!!(typeof window<"u"&&window.document&&window.document.createElement),ob=class{constructor(e,t){Ai(this,"instances",[]);Ai(this,"canUseDOM",d1);Ai(this,"context");Ai(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Qf:this.instances,add:e=>{(this.canUseDOM?Qf:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Qf:this.instances).indexOf(e);(this.canUseDOM?Qf:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=ab({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},F3=parseInt(A.version.split(".")[0],10),sb=F3>=19,U3={},EN=A.createContext(U3),Fo,kN=(Fo=class extends S.Component{constructor(r){super(r);Ai(this,"helmetData");sb?this.helmetData=null:this.helmetData=new ob(this.props.context||{},Fo.canUseDOM)}render(){return sb?A.createElement(A.Fragment,null,this.props.children):A.createElement(EN.Provider,{value:this.helmetData.value},this.props.children)}},Ai(Fo,"canUseDOM",d1),Fo),_s=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${Fn}]`),i=[].slice.call(n),a=[];let o;return t&&t.length&&t.forEach(s=>{const l=document.createElement(e);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c))if(c==="innerHTML")l.innerHTML=s.innerHTML;else if(c==="cssText"){const u=s.cssText;l.appendChild(document.createTextNode(u))}else{const u=c,d=typeof s[u]>"u"?"":s[u];l.setAttribute(c,d)}l.setAttribute(Fn,"true"),i.some((c,u)=>(o=u,l.isEqualNode(c)))?i.splice(o,1):a.push(l)}),i.forEach(s=>{var l;return(l=s.parentNode)==null?void 0:l.removeChild(s)}),a.forEach(s=>r.appendChild(s)),{oldTags:i,newTags:a}},lb=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const n=r.getAttribute(Fn),i=n?n.split(","):[],a=[...i],o=Object.keys(t);for(const s of o){const l=t[s]||"";r.getAttribute(s)!==l&&r.setAttribute(s,l),i.indexOf(s)===-1&&i.push(s);const c=a.indexOf(s);c!==-1&&a.splice(c,1)}for(let s=a.length-1;s>=0;s-=1)r.removeAttribute(a[s]);i.length===a.length?r.removeAttribute(Fn):r.getAttribute(Fn)!==o.join(",")&&r.setAttribute(Fn,o.join(","))},z3=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=wN(e)),lb("title",t)},hE=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:i,linkTags:a,metaTags:o,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:f}=e;lb("body",n),lb("html",i),z3(d,f);const p={baseTag:_s("base",r),linkTags:_s("link",a),metaTags:_s("meta",o),noscriptTags:_s("noscript",s),scriptTags:_s("script",c),styleTags:_s("style",u)},v={},m={};
40Object.keys(p).forEach(y=>{const{newTags:b,oldTags:g}=p[y];b.length&&(v[y]=b),g.length&&(m[y]=p[y].oldTags)}),t&&t(),l(e,v,m)},zc=null,V3=e=>{zc&&cancelAnimationFrame(zc),e.defer?zc=requestAnimationFrame(()=>{hE(e,()=>{zc=null})}):(hE(e),zc=null)},W3=V3,pE=class extends S.Component{constructor(){super(...arguments);Ai(this,"rendered",!1)}shouldComponentUpdate(t){return!O3(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=N3(t.get().map(a=>{const{context:o,...s}=a.props;return s}));kN.canUseDOM?W3(i):ab&&(n=ab(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}},Gh=[],mE=e=>{const t={};for(const r of Object.keys(e))t[xN[r]||r]=e[r];return t},xo=e=>{const t={};for(const r of Object.keys(e)){const n=mv[r];t[n||r]=e[r]}return t},vE=(e,t)=>{if(!d1)return;const r=document.getElementsByTagName(e)[0];if(!r)return;const n="data-rh-managed",i=r.getAttribute(n),a=i?i.split(","):[],o=Object.keys(t);for(const s of a)o.includes(s)||r.removeAttribute(s);for(const s of o){const l=t[s];l==null||l===!1?r.removeAttribute(s):l===!0?r.setAttribute(s,""):r.setAttribute(s,String(l))}o.length>0?r.setAttribute(n,o.join(",")):r.removeAttribute(n)},cy=()=>{const e={},t={};for(const r of Gh){const{htmlAttributes:n,bodyAttributes:i}=r.props;n&&Object.assign(e,mE(n)),i&&Object.assign(t,mE(i))}vE("html",e),vE("body",t)},H3=class extends S.Component{componentDidMount(){Gh.push(this),cy()}componentDidUpdate(){cy()}componentWillUnmount(){const e=Gh.indexOf(this);e!==-1&&Gh.splice(e,1),cy()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:r}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||r||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return A.createElement("title",xo(t),e)}renderBase(){const{base:e}=this.props;return e?A.createElement("base",xo(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>A.createElement("meta",{key:r,...xo(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>A.createElement("link",{key:r,...xo(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>{const{innerHTML:n,...i}=t,a=xo(i);return n&&(a.dangerouslySetInnerHTML={__html:n}),A.createElement("script",{key:r,...a})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>{const{cssText:n,...i}=t,a=xo(i);return n&&(a.dangerouslySetInnerHTML={__html:n}),A.createElement("style",{key:r,...a})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>{const{innerHTML:n,...i}=t,a=xo(i);return n&&(a.dangerouslySetInnerHTML={__html:n}),A.createElement("noscript",{key:r,...a})})}render(){return A.createElement(A.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},d0,co=(d0=class extends S.Component{shouldComponentUpdate(e){return!_3(fE(this.props,"helmetData"),fE(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}
40warnOnInvalidChildren(e,t){return uE(dE.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 ${dE.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),uE(!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 A.Children.forEach(e,n=>{if(!n||!n.props)return;const{children:i,...a}=n.props,o=Object.keys(a).reduce((l,c)=>(l[xN[c]||c]=a[c],l),{});let{type:s}=n;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(n,i),s){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,o,i);break;default:t=this.mapObjectTypeChildren(n,t,o,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 ob)){const i=n;n=new ob(i.context,!0),delete r.helmetData}return sb?A.createElement(H3,{...r}):n?A.createElement(pE,{...r,context:n.value}):A.createElement(EN.Consumer,null,i=>A.createElement(pE,{...r,context:i}))}},Ai(d0,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),d0);const q3=1,K3=1e6;let uy=0;function G3(){return uy=(uy+1)%Number.MAX_SAFE_INTEGER,uy.toString()}const dy=new Map,gE=e=>{if(dy.has(e))return;const t=setTimeout(()=>{dy.delete(e),Ou({type:"REMOVE_TOAST",toastId:e})},K3);dy.set(e,t)},Y3=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,q3)};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?gE(r):e.toasts.forEach(n=>{gE(n.id)}),{...e,toasts:e.toasts.map(n=>
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)}}},Yh=[];let Xh={toasts:[]};function Ou(e){Xh=Y3(Xh,e),Yh.forEach(t=>{t(Xh)})}function X3({...e}){const t=G3(),r=i=>Ou({type:"UPDATE_TOAST",toast:{...i,id:t}}),n=()=>Ou({type:"DISMISS_TOAST",toastId:t});return Ou({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||n()}}}),{id:t,dismiss:n,update:r}}function vv(){const[e,t]=S.useState(Xh);return S.useEffect(()=>(Yh.push(t),()=>{const r=Yh.indexOf(t);r>-1&&Yh.splice(r,1)}),[e]),{...e,toast:X3,dismiss:r=>Ou({type:"DISMISS_TOAST",toastId:r})}}function Ne(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 Z3(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ON(...e){return t=>e.forEach(r=>Z3(r,t))}function mt(...e){return S.useCallback(ON(...e),e)}function J3(e,t=[]){let r=[];function n(a,o){const s=S.createContext(o),l=r.length;r=[...r,o];function c(d){const{scope:f,children:p,...v}=d,m=(f==null?void 0:f[e][l])||s,y=S.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:y,children:p})}function u(d,f){const p=(f==null?void 0:f[e][l])||s,v=S.useContext(p);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const i=()=>{const a=r.map(o=>S.createContext(o));return function(s){const l=(s==null?void 0:s[e])||a;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,Q3(i,...t)]}function Q3(...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 o=n.reduce((s,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...s,...d}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}var ts=S.forwardRef((e,t)=>{const{children:r,...n}=e,i=S.Children.toArray(r),a=i.find(eB);if(a){const o=a.props.children,s=i.map(l=>l===a?S.Children.count(o)>1?S.Children.only(null):S.isValidElement(o)?o.props.children:null:l);return h.jsx(cb,{...n,ref:t,children:S.isValidElement(o)?S.cloneElement(o,void 0,s):null})}return h.jsx(cb,{...n,ref:t,children:r})});ts.displayName="Slot";var cb=S.forwardRef((e,t)=>{const{children:r,...n}=e;if(S.isValidElement(r)){const i=rB(r);return S.cloneElement(r,{...tB(n,r.props),ref:t?ON(t,i):i})}return S.Children.count(r)>1?S.Children.only(null):null});cb.displayName="SlotClone";var AN=({children:e})=>h.jsx(h.Fragment,{children:e});function eB(e){return S.isValidElement(e)&&e.type===AN}function tB(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]=(...s)=>{a(...s),i(...s)}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function rB(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 TN(e){const t=e+"CollectionProvider",[r,n]=J3(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:v,children:m}=p,y=A.useRef(null),b=A.useRef(new Map).current;return h.jsx(i,{scope:v,itemMap:b,collectionRef:y,children:m})};o.displayName=t;const s=e+"CollectionSlot",l=A.forwardRef((p,v)=>{const{scope:m,children:y}=p,b=a(s,m),g=mt(v,b.collectionRef);return h.jsx(ts,{ref:g,children:y})});l.displayName=s;const c=e+"CollectionItemSlot",u="data-radix-collection-item",d=A.forwardRef((p,v)=>{const{scope:m,children:y,...b}=p,g=A.useRef(null),x=mt(v,g),w=a(c,m);return A.useEffect(()=>(w.itemMap.set(g,{ref:g,...b}),()=>void w.itemMap.delete(g))),h.jsx(ts,{[u]:"",ref:x,children:y})});d.displayName=c;function f(p){const v=a(e+"CollectionConsumer",p);return A.useCallback(()=>{const y=v.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${u}]`));return Array.from(v.itemMap.values()).sort((w,_)=>b.indexOf(w.ref.current)-b.indexOf(_.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:l,ItemSlot:d},f,n]}
vendor: 8,114 bytes, line 40
40function gv(e,t=[]){let r=[];function n(a,o){const s=S.createContext(o),l=r.length;r=[...r,o];const c=d=>{var b;const{scope:f,children:p,...v}=d,m=((b=f==null?void 0:f[e])==null?void 0:b[l])||s,y=S.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:y,children:p})};c.displayName=a+"Provider";function u(d,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[l])||s,v=S.useContext(p);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[c,u]}const i=()=>{const a=r.map(o=>S.createContext(o));return function(s){const l=(s==null?void 0:s[e])||a;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,nB(i,...t)]}function nB(...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 o=n.reduce((s,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...s,...d}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}var iB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],We=iB.reduce((e,t)=>{const r=S.forwardRef((n,i)=>{const{asChild:a,...o}=n,s=a?ts:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...o,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function jN(e,t){e&&hs.flushSync(()=>e.dispatchEvent(t))}function Jr(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function aB(e,t=globalThis==null?void 0:globalThis.document){const r=Jr(e);S.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 oB="DismissableLayer",ub="dismissableLayer.update",sB="dismissableLayer.pointerDownOutside",lB="dismissableLayer.focusOutside",yE,PN=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yv=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...l}=e,c=S.useContext(PN),[u,d]=S.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=S.useState({}),v=mt(t,k=>d(k)),m=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(y),g=u?m.indexOf(u):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,w=g>=b,_=uB(k=>{const O=k.target,P=[...c.branches].some(C=>C.contains(O));!w||P||(i==null||i(k),o==null||o(k),k.defaultPrevented||s==null||s())},f),E=dB(k=>{const O=k.target;[...c.branches].some(C=>C.contains(O))||(a==null||a(k),o==null||o(k),k.defaultPrevented||s==null||s())},f);return aB(k=>{g===c.layers.size-1&&(n==null||n(k),!k.defaultPrevented&&s&&(k.preventDefault(),s()))},f),S.useEffect(()=>{if(u)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(yE=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),bE(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=yE)}},[u,f,r,c]),S.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),bE())},[u,c]),S.useEffect(()=>{const k=()=>p({});return document.addEventListener(ub,k),()=>document.removeEventListener(ub,k)},[]),h.jsx(We.div,{...l,ref:v,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:Ne(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Ne(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Ne(e.onPointerDownCapture,_.onPointerDownCapture)})});yv.displayName=oB;var cB="DismissableLayerBranch",CN=S.forwardRef((e,t)=>{const r=S.useContext(PN),n=S.useRef(null),i=mt(t,n);return S.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),h.jsx(We.div,{...e,ref:i})});CN.displayName=cB;function uB(e,t=globalThis==null?void 0:globalThis.document){const r=Jr(e),n=S.useRef(!1),i=S.useRef(()=>{});return S.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let l=function(){NN(sB,r,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function dB(e,t=globalThis==null?void 0:globalThis.document){const r=Jr(e),n=S.useRef(!1);return S.useEffect(()=>{const i=a=>{a.target&&!n.current&&NN(lB,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 bE(){const e=new CustomEvent(ub);document.dispatchEvent(e)}function NN(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?jN(i,a):i.dispatchEvent(a)}var fB=yv,hB=CN,or=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},pB="Portal",f1=S.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[i,a]=S.useState(!1);or(()=>a(!0),[]);const o=r||i&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return o?gN.createPortal(h.jsx(We.div,{...n,ref:t}),o):null});f1.displayName=pB;function mB(e,t){return S.useReducer((r,n)=>t[r][n]??r,e)}var bv=e=>{const{present:t,children:r}=e,n=vB(t),i=typeof r=="function"?r({present:n.isPresent}):S.Children.only(r),a=mt(n.ref,gB(i));return typeof r=="function"||n.isPresent?S.cloneElement(i,{ref:a}):null};bv.displayName="Presence";function vB(e){const[t,r]=S.useState(),n=S.useRef({}),i=S.useRef(e),a=S.useRef("none"),o=e?"mounted":"unmounted",[s,l]=mB(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const c=eh(n.current);a.current=s==="mounted"?c:"none"},[s]),or(()=>{const c=n.current,u=i.current;if(u!==e){const f=a.current,p=eh(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),or(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=p=>{const m=eh(n.current).includes(p.animationName);if(p.target===t&&m&&(l("ANIMATION_END"),!i.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},f=p=>{p.target===t&&(a.current=eh(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 l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:S.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function eh(e){return(e==null?void 0:e.animationName)||"none"}function gB(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 Op({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,i]=yB({defaultProp:t,onChange:r}),a=e!==void 0,o=a?e:n,s=Jr(r),l=S.useCallback(c=>{if(a){const d=typeof c=="function"?c(e):c;d!==e&&s(d)}else i(c)},[a,e,i,s]);return[o,l]}function yB({defaultProp:e,onChange:t}){const r=S.useState(e),[n]=r,i=S.useRef(n),a=Jr(t);return S.useEffect(()=>{i.current!==n&&(a(n),i.current=n)},[n,i,a]),r}var bB="VisuallyHidden",gf=S.forwardRef((e,t)=>
40h.jsx(We.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));gf.displayName=bB;var xB=gf,h1="ToastProvider",[p1,wB,_B]=TN("Toast"),[$N,Xxe]=gv("Toast",[_B]),[SB,xv]=$N(h1),RN=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:a=50,children:o}=e,[s,l]=S.useState(null),[c,u]=S.useState(0),d=S.useRef(!1),f=S.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${h1}\`. Expected non-empty \`string\`.`),h.jsx(p1.Provider,{scope:t,children:h.jsx(SB,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:a,toastCount:c,viewport:s,onViewportChange:l,onToastAdd:S.useCallback(()=>u(p=>p+1),[]),onToastRemove:S.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:o})})};RN.displayName=h1;var IN="ToastViewport",EB=["F8"],db="toast.viewportPause",fb="toast.viewportResume",MN=S.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=EB,label:i="Notifications ({hotkey})",...a}=e,o=xv(IN,r),s=wB(r),l=S.useRef(null),c=S.useRef(null),u=S.useRef(null),d=S.useRef(null),f=mt(t,d,o.onViewportChange),p=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=o.toastCount>0;S.useEffect(()=>{const y=b=>{var x;n.length!==0&&n.every(w=>b[w]||b.code===w)&&((x=d.current)==null||x.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[n]),S.useEffect(()=>{const y=l.current,b=d.current;if(v&&y&&b){const g=()=>{if(!o.isClosePausedRef.current){const E=new CustomEvent(db);b.dispatchEvent(E),o.isClosePausedRef.current=!0}},x=()=>{if(o.isClosePausedRef.current){const E=new CustomEvent(fb);b.dispatchEvent(E),o.isClosePausedRef.current=!1}},w=E=>{!y.contains(E.relatedTarget)&&x()},_=()=>{y.contains(document.activeElement)||x()};return y.addEventListener("focusin",g),y.addEventListener("focusout",w),y.addEventListener("pointermove",g),y.addEventListener("pointerleave",_),window.addEventListener("blur",g),window.addEventListener("focus",x),()=>{y.removeEventListener("focusin",g),y.removeEventListener("focusout",w),y.removeEventListener("pointermove",g),y.removeEventListener("pointerleave",_),window.removeEventListener("blur",g),window.removeEventListener("focus",x)}}},[v,o.isClosePausedRef]);const m=S.useCallback(({tabbingDirection:y})=>{const g=s().map(x=>{const w=x.ref.current,_=[w,...DB(w)];return y==="forwards"?_:_.reverse()});return(y==="forwards"?g.reverse():g).flat()},[s]);return S.useEffect(()=>{const y=d.current;if(y){const b=g=>{var _,E,k;const x=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!x){const O=document.activeElement,P=g.shiftKey;if(g.target===y&&P){(_=c.current)==null||_.focus();return}const T=m({tabbingDirection:P?"backwards":"forwards"}),I=T.findIndex(N=>N===O);fy(T.slice(I+1))?g.preventDefault():P?(E=c.current)==null||E.focus():(k=u.current)==null||k.focus()}};return y.addEventListener("keydown",b),()=>y.removeEventListener("keydown",b)}},[s,m]),h.jsxs(hB,{ref:l,role:"region","aria-label":i.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&h.jsx(hb,{ref:c,onFocusFromOutsideViewport:()=>{const y=m({tabbingDirection:"forwards"});fy(y)}}),h.jsx(p1.Slot,{scope:r,children:h.jsx(We.ol,{tabIndex:-1,...a,ref:f})}),v&&h.jsx(hb,{ref:u,onFocusFromOutsideViewport:()=>{const y=m({tabbingDirection:"backwards"});fy(y)}})]})});MN.displayName=IN;var DN="ToastFocusProxy",hb=S.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...i}=e,a=xv(DN,r);return h.jsx(gf,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var c;const s=o.relatedTarget;!((c=a.viewport)!=null&&c.contains(s))&&n()}})});hb.displayName=DN;var wv="Toast",kB="toast.swipeStart",OB="toast.swipeMove",AB="toast.swipeCancel",TB="toast.swipeEnd",LN=S.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:i,onOpenChange:a,...o}=e,[s=!0,l]=Op({prop:n,defaultProp:i,onChange:a});return h.jsx(bv,{present:r||s,children:h.jsx(CB,{open:s,...o,ref:t,onClose:()=>l(!1),onPause:Jr(e.onPause),onResume:Jr(e.onResume),onSwipeStart:Ne(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ne(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:Ne(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:Ne(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`),l(!1)})})})});LN.displayName=wv;var[jB,PB]=$N(wv,{onClose(){}}
40),CB=S.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:i,open:a,onClose:o,onEscapeKeyDown:s,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...v}=e,m=xv(wv,r),[y,b]=S.useState(null),g=mt(t,N=>b(N)),x=S.useRef(null),w=S.useRef(null),_=i||m.duration,E=S.useRef(0),k=S.useRef(_),O=S.useRef(0),{onToastAdd:P,onToastRemove:C}=m,R=Jr(()=>{var L;(y==null?void 0:y.contains(document.activeElement))&&((L=m.viewport)==null||L.focus()),o()}),T=S.useCallback(N=>{!N||N===1/0||(window.clearTimeout(O.current),E.current=new Date().getTime(),O.current=window.setTimeout(R,N))},[R]);S.useEffect(()=>{const N=m.viewport;if(N){const L=()=>{T(k.current),c==null||c()},M=()=>{const F=new Date().getTime()-E.current;k.current=k.current-F,window.clearTimeout(O.current),l==null||l()};return N.addEventListener(db,M),N.addEventListener(fb,L),()=>{N.removeEventListener(db,M),N.removeEventListener(fb,L)}}},[m.viewport,_,l,c,T]),S.useEffect(()=>{a&&!m.isClosePausedRef.current&&T(_)},[a,_,m.isClosePausedRef,T]),S.useEffect(()=>(P(),()=>C()),[P,C]);const I=S.useMemo(()=>y?HN(y):null,[y]);return m.viewport?h.jsxs(h.Fragment,{children:[I&&h.jsx(NB,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:I}),h.jsx(jB,{scope:r,onClose:R,children:hs.createPortal(h.jsx(p1.ItemSlot,{scope:r,children:h.jsx(fB,{asChild:!0,onEscapeKeyDown:Ne(s,()=>{m.isFocusedToastEscapeKeyDownRef.current||R(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:h.jsx(We.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":m.swipeDirection,...v,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ne(e.onKeyDown,N=>{N.key==="Escape"&&(s==null||s(N.nativeEvent),N.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,R()))}),onPointerDown:Ne(e.onPointerDown,N=>{N.button===0&&(x.current={x:N.clientX,y:N.clientY})}),onPointerMove:Ne(e.onPointerMove,N=>{if(!x.current)return;const L=N.clientX-x.current.x,M=N.clientY-x.current.y,F=!!w.current,j=["left","right"].includes(m.swipeDirection),B=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,q=j?B(0,L):0,V=j?0:B(0,M),H=N.pointerType==="touch"?10:2,J={x:q,y:V},fe={originalEvent:N,delta:J};F?(w.current=J,th(OB,d,fe,{discrete:!1})):xE(J,m.swipeDirection,H)?(w.current=J,th(kB,u,fe,{discrete:!1}),N.target.setPointerCapture(N.pointerId)):(Math.abs(L)>H||Math.abs(M)>H)&&(x.current=null)}),onPointerUp:Ne(e.onPointerUp,N=>{const L=w.current,M=N.target;if(M.hasPointerCapture(N.pointerId)&&M.releasePointerCapture(N.pointerId),w.current=null,x.current=null,L){const F=N.currentTarget,j={originalEvent:N,delta:L};xE(L,m.swipeDirection,m.swipeThreshold)?th(TB,p,j,{discrete:!0}):th(AB,f,j,{discrete:!0}),F.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),NB=e=>{const{__scopeToast:t,children:r,...n}=e,i=xv(wv,t),[a,o]=S.useState(!1),[s,l]=S.useState(!1);return IB(()=>o(!0)),S.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),s?null:h.jsx(f1,{asChild:!0,children:h.jsx(gf,{...n,children:a&&h.jsxs(h.Fragment,{children:[i.label," ",r]})})})},$B="ToastTitle",BN=S.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return h.jsx(We.div,{...n,ref:t})});BN.displayName=$B;var RB="ToastDescription",FN=S.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return h.jsx(We.div,{...n,ref:t})});FN.displayName=RB;var UN="ToastAction",zN=S.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?h.jsx(WN,{altText:r,asChild:!0,children:h.jsx(m1,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${UN}\`. Expected non-empty \`string\`.`),null)});zN.displayName=UN;var VN="ToastClose",m1=S.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,i=PB(VN,r);return h.jsx(WN,{asChild:!0,children:h.jsx(We.button,{type:"button",...n,ref:t,onClick:Ne(e.onClick,i.onClose)})})});m1.displayName=VN;var WN=S.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...i}=e;return h.jsx(We.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...i,ref:t})});function HN(e){const t=[];
vendor: 10,249 bytes, lines 40-150
40return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),MB(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",a=n.dataset.radixToastAnnounceExclude==="";if(!i)if(a){const o=n.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...HN(n))}}),t}function th(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?jN(i,a):i.dispatchEvent(a)}var xE=(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 IB(e=()=>{}){const t=Jr(e);or(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function MB(e){return e.nodeType===e.ELEMENT_NODE}function DB(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 fy(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var LB=RN,qN=MN,KN=LN,GN=BN,YN=FN,XN=zN,ZN=m1;function JN(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=JN(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Le(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=JN(e))&&(n&&(n+=" "),n+=t);return n}const wE=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_E=Le,v1=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return _E(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:a}=t,o=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=wE(u)||wE(d);return i[c][f]}),s=r&&Object.entries(r).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(v=>{let[m,y]=v;return Array.isArray(y)?y.includes({...a,...s}[m]):{...a,...s}[m]===y})?[...c,d,f]:c},[]);return _E(e,o,l,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 BB=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),QN=(...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 FB={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 UB=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},l)=>S.createElement("svg",{ref:l,...FB,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:QN("lucide",i),...s},[...o.map(([c,u])=>S.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 vt=(e,t)=>{const r=S.forwardRef(({className:n,...i},a)=>S.createElement(UB,{ref:a,iconNode:t,className:QN(`lucide-${BB(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 Hn=vt("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 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 rs=vt("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** 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 zB=vt("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 g1=vt("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"}]]);/** 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 _v=vt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 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 e$=vt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 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 VB=vt("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 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 WB=vt("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 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 HB=vt("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"}]]);/** 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 qB=vt("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"}]]);/** 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 KB=vt("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/** 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 t$=vt("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 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 GB=vt("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 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 r$=vt("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"}]]);/** 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 n$=vt("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 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 y1=vt("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/** 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 YB=vt("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/** 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 XB=vt("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
vendor: 8,812 bytes, lines 150-175
150kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** 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 i$=vt("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 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 b1=vt("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"}]]);/** 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 ZB=vt("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]);/** 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 JB=vt("Waves",[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]]);/** 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 QB=vt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),x1="-",eF=e=>{const t=rF(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(x1);return s[0]===""&&s.length!==1&&s.shift(),a$(s,t)||tF(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},a$=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?a$(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(x1);return(o=t.validators.find(({validator:s})=>s(a)))==null?void 0:o.classGroupId},SE=/^\[(.+)\]$/,tF=e=>{if(SE.test(e)){const t=SE.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},rF=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return iF(Object.entries(e.classGroups),r).forEach(([a,o])=>{pb(o,n,a,t)}),n},pb=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:EE(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(nF(i)){pb(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{pb(o,EE(t,a),r,n)})})},EE=(e,t)=>{let r=e;return t.split(x1).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},nF=e=>e.isThemeGetter,iF=(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(([o,s])=>[t+o,s])):a);return[r,i]}):e,aF=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(a,o)=>{r.set(a,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return i(a,o),o},set(a,o){r.has(a)?r.set(a,o):i(a,o)}}},o$="!",oF=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],a=t.length,o=s=>{const l=[];let c=0,u=0,d;for(let y=0;y<s.length;y++){let b=s[y];if(c===0){if(b===i&&(n||s.slice(y,y+a)===t)){l.push(s.slice(u,y)),u=y+a;continue}if(b==="/"){d=y;continue}}b==="["?c++:b==="]"&&c--}const f=l.length===0?s:s.substring(u),p=f.startsWith(o$),v=p?f.substring(1):f,m=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:m}};return r?s=>r({className:s,parseClassName:o}):o},sF=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},lF=e=>({cache:aF(e.cacheSize),parseClassName:oF(e),...eF(e)}),cF=/\s+/,uF=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(cF);let s="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=r(c);let v=!!p,m=n(v?f.substring(0,p):f);if(!m){if(!v){s=c+(s.length>0?" "+s:s);continue}if(m=n(f),!m){s=c+(s.length>0?" "+s:s);continue}v=!1}const y=sF(u).join(":"),b=d?y+o$:y,g=b+m;if(a.includes(g))continue;a.push(g);const x=i(m,v);for(let w=0;w<x.length;++w){const _=x[w];a.push(b+_)}s=c+(s.length>0?" "+s:s)}return s};function dF(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=s$(t))&&(n&&(n+=" "),n+=r);return n}const s$=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=s$(e[n]))&&(r&&(r+=" "),r+=t);return r};function fF(e,...t){let r,n,i,a=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return r=lF(c),n=r.cache.get,i=r.cache.set,a=s,s(l)}function s(l){const c=n(l);if(c)return c;const u=uF(l,r);return i(l,u),u}return function(){return a(dF.apply(null,arguments))}}const rt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},l$=/^\[(?:([a-z-]+):)?(.+)\]$/i,hF=/^\d+\/\d+$/,pF=new Set(["px","full","screen"]),mF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vF=/\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$/,gF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ti=e=>ll(e)||pF.has(e)||hF.test(e),pa=e=>uc(e,"length",AF),ll=e=>!!e&&!Number.isNaN(Number(e)),hy=e=>uc(e,"number",ll),Vc=e=>!!e&&Number.isInteger(Number(e)),xF=e=>e.endsWith("%")&&ll(e.slice(0,-1)),ke=e=>l$.test(e),ma=e=>mF.test(e),wF=new Set(["length","size","percentage"]),_F=e=>uc(e,wF,c$),SF=e=>uc(e,"position",c$),EF=new Set(["image","url"]),kF=e=>uc(e,EF,jF),OF=e=>uc(e,"",TF),Wc=()=>!0,uc=(e,t,r)=>{const n=l$.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},AF=e=>vF.test(e)&&!gF.test(e),c$=()=>!1,TF=e=>yF.test(e),jF=e=>bF.test(e),PF=()=>{const e=rt("colors"),t=rt("spacing"),r=rt("blur"),n=rt("brightness"),i=rt("borderColor"),a=rt("borderRadius"),o=rt("borderSpacing"),s=rt("borderWidth"),l=rt("contrast"),c=rt("grayscale"),u=rt("hueRotate"),d=rt("invert"),f=rt("gap"),p=rt("gradientColorStops"),v=rt("gradientColorStopPositions"),m=rt("inset"),y=rt("margin"),b=rt("opacity"),g=rt("padding"),x=rt("saturate"),w=rt("scale"),_=rt("sepia"),E=rt("skew"),k=rt("space"),O=rt("translate"),P=()=>["auto","contain","none"],C=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto",ke,t],T=()=>[ke,t],I=()=>["",Ti,pa],N=()=>["auto",ll,ke],L=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",ke],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[ll,ke];return{cacheSize:500,separator:":",theme:{colors:[Wc],spacing:[Ti,pa],blur:["none","",ma,ke],brightness:V(),borderColor:[e],borderRadius:["none","","full",ma,ke],borderSpacing:T(),borderWidth:I(),contrast:V(),grayscale:B(),hueRotate:V(),invert:B(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[xF,pa],inset:R(),margin:R(),opacity:V(),padding:T(),saturate:V(),scale:V(),sepia:B(),skew:V(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",ke]}
vendor: 11,178 bytes, line 175
175],container:["container"],columns:[{columns:[ma]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"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:[...L(),ke]}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Vc,ke]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ke]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",Vc,ke]}],"grid-cols":[{"grid-cols":[Wc]}],"col-start-end":[{col:["auto",{span:["full",Vc,ke]},ke]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[Wc]}],"row-start-end":[{row:["auto",{span:[Vc,ke]},ke]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ke]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ke]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"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:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ke,t]}],"min-w":[{"min-w":[ke,t,"min","max","fit"]}],"max-w":[{"max-w":[ke,t,"none","full","min","max","fit","prose",{screen:[ma]},ma]}],h:[{h:[ke,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ke,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ke,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ke,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ma,pa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",hy]}],"font-family":[{font:[Wc]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ke]}],"line-clamp":[{"line-clamp":["none",ll,hy]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ti,ke]}],"list-image":[{"list-image":["none",ke]}],"list-style-type":[{list:["none","disc","decimal",ke]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...M(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ti,pa]}],"underline-offset":[{"underline-offset":["auto",Ti,ke]}],"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:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ke]}],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",ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L(),SF]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_F]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},kF]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...M(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:M()}],"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:["",...M()]}],"outline-offset":[{"outline-offset":[Ti,ke]}],"outline-w":[{outline:[Ti,pa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Ti,pa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ma,OF]}],"shadow-color":[{shadow:[Wc]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ma,ke]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ke]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",ke]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",ke]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Vc,ke]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ke]}],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",ke]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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 175
175],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",ke]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ti,pa,hy]}],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"]}}},CF=fF(PF);function st(...e){return CF(Le(e))}const NF=LB,u$=S.forwardRef(({className:e,...t},r)=>h.jsx(qN,{ref:r,className:st("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}));u$.displayName=qN.displayName;const $F=v1("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"}}),d$=S.forwardRef(({className:e,variant:t,...r},n)=>h.jsx(KN,{ref:n,className:st($F({variant:t}),e),...r}));d$.displayName=KN.displayName;const RF=S.forwardRef(({className:e,...t},r)=>h.jsx(XN,{ref:r,className:st("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 hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));RF.displayName=XN.displayName;const f$=S.forwardRef(({className:e,...t},r)=>h.jsx(ZN,{ref:r,className:st("absolute right-2 top-2 rounded-md p-1 text-foreground
175/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:h.jsx(QB,{className:"h-4 w-4"})}));f$.displayName=ZN.displayName;const h$=S.forwardRef(({className:e,...t},r)=>h.jsx(GN,{ref:r,className:st("text-sm font-semibold",e),...t}));h$.displayName=GN.displayName;const p$=S.forwardRef(({className:e,...t},r)=>h.jsx(YN,{ref:r,className:st("text-sm opacity-90",e),...t}));p$.displayName=YN.displayName;function IF(){const{toasts:e}=vv();return h.jsxs(NF,{children:[e.map(function({id:t,title:r,description:n,action:i,...a}){return h.jsxs(d$,{...a,children:[h.jsxs("div",{className:"grid gap-1",children:[r&&h.jsx(h$,{children:r}),n&&h.jsx(p$,{children:n})]}),i,h.jsx(f$,{})]},t)}),h.jsx(u$,{})]})}var kE=["light","dark"],MF="(prefers-color-scheme: dark)",DF=S.createContext(void 0),LF={setTheme:e=>{},themes:[]},BF=()=>{var e;return(e=S.useContext(DF))!=null?e:LF};S.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:i,defaultTheme:a,value:o,attrs:s,nonce:l})=>{let c=a==="system",u=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${s.map(v=>`'${v}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,d=i?kE.includes(a)&&a?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(v,m=!1,y=!0)=>{let b=o?o[v]:v,g=m?v+"|| ''":`'${b}'`,x="";return i&&y&&!m&&kE.includes(v)&&(x+=`d.style.colorScheme = '${v}';`),r==="class"?m||b?x+=`c.add(${g})`:x+="null":b&&(x+=`d[s](n,${g})`),x},p=e?`!function(){${u}${f(e)}}()`:n?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${MF}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${c?"":"else{"+f(a,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(a,!1,!1)};}${d}}catch(t){}}();`;return S.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var FF=e=>{switch(e){case"success":return VF;case"info":return HF;case"warning":return WF;case"error":return qF;default:return null}},UF=Array(12).fill(0),zF=({visible:e})=>A.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},A.createElement("div",{className:"sonner-spinner"},UF.map((t,r)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),VF=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),WF=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},A.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"})),HF=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),qF=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),KF=()=>{let[e,t]=A.useState(document.hidden);return A.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},mb=1,GF=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
175{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:mb++,a=this.toasts.find(s=>s.id===i),o=e.dismissible===void 0?!0:e.dismissible;return a?this.toasts=this.toasts.map(s=>s.id===i?(this.publish({...s,...e,id:i,title:r}),{...s,...e,id:i,dismissible:o,title:r}):s):this.addToast({title:r,...n,dismissible:o,id:i}),i},this.dismiss=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)=>this.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;return n.then(async a=>{if(XF(a)&&!a.ok){i=!1;let o=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,s=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:r,type:"error",message:o,description:s})}else if(t.success!==void 0){i=!1;let o=typeof t.success=="function"?await t.success(a):t.success,s=typeof t.description=="function"?await t.description(a):t.description;this.create({id:r,type:"success",message:o,description:s})}}).catch(async a=>{if(t.error!==void 0){i=!1;let o=typeof t.error=="function"?await t.error(a):t.error,s=typeof t.description=="function"?await t.description(a):t.description;this.create({id:r,type:"error",message:o,description:s})}}).finally(()=>{var a;i&&(this.dismiss(r),r=void 0),(a=t.finally)==null||a.call(t)}),r},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||mb++;return this.create({jsx:e(r),id:r,...t}),r},this.subscribers=[],this.toasts=[]}},Ur=new GF,YF=(e,t)=>{let r=(t==null?void 0:t.id)||mb++;return Ur.addToast({title:e,...t,id:r}),r},XF=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",ZF=YF,JF=()=>Ur.toasts;Object.assign(ZF,{success:Ur.success,info:Ur.info,warning:Ur.warning,error:Ur.error,custom:Ur.custom,message:Ur.message,promise:Ur.promise,dismiss:Ur.dismiss,loading:Ur.loading},{getHistory:JF});function QF(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))}QF(`: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}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-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;
175left: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;background:var(--gray1);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}: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:0;right:0;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}
175: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, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);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-border: hsl(0, 0%, 20%);--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%);--error-text: hsl(358, 100%, 81%)}[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%)} 176`);function rh(e){return e.label!==void 0}var e6=3,t6="32px",r6=4e3,n6=356,i6=14,a6=20,o6=200;function s6(...e){return e.filter(Boolean).join(" ")}var l6=e=>{var t,r,n,i,a,o,s,l,c,u;let{invert:d,toast:f,unstyled:p,interacting:v,setHeights:m,visibleToasts:y,heights:b,index:g,toasts:x,expanded:w,removeToast:_,defaultRichColors:E,closeButton:k,style:O,cancelButtonStyle:P,actionButtonStyle:C,className:R="",descriptionClassName:T="",duration:I,position:N,gap:L,loadingIcon:M,expandByDefault:F,classNames:j,icons:B,closeButtonAriaLabel:q="Close toast",pauseWhenPageIsHidden:V,cn:H}=e,[J,fe]=A.useState(!1),[Ce,ve]=A.useState(!1),[ae,we]=A.useState(!1),[G,ne]=A.useState(!1),[oe,z]=A.useState(0),[Ae,ge]=A.useState(0),He=A.useRef(null),Me=A.useRef(null),gt=g===0,$=g+1<=y,D=f.type,U=f.dismissible!==!1,re=f.className||"",ee=f.descriptionClassName||"",Y=A.useMemo(()=>b.findIndex(Ee=>Ee.toastId===f.id)||0,[b,f.id]),pe=A.useMemo(()=>{var Ee;return(Ee=f.closeButton)!=null?Ee:k},[f.closeButton,k]),Se=A.useMemo(()=>f.duration||I||r6,[f.duration,I]),yt=A.useRef(0),et=A.useRef(0),Qn=A.useRef(0),da=A.useRef(null),[bs,Cc]=N.split("-"),Nf=A.useMemo(()=>b.reduce((Ee,tt,Xe)=>Xe>=Y?Ee:Ee+tt.height,0),[b,Y]),Nc=KF(),Ng=f.invert||d,xs=D==="loading";et.current=A.useMemo(()=>Y*L+Nf,[Y,Nf]),A.useEffect(()=>{fe(!0)},[]),A.useLayoutEffect(()=>{if(!J)return;let Ee=Me.current,tt=Ee.style.height;Ee.style.height="auto";let Xe=Ee.getBoundingClientRect().height;Ee.style.height=tt,ge(Xe),m(ei=>ei.find(ti=>ti.toastId===f.id)?ei.map(ti=>ti.toastId===f.id?{...ti,height:Xe}:ti):[{toastId:f.id,height:Xe,position:f.position},...ei])},[J,f.title,f.description,m,f.id]);let fa=A.useCallback(()=>{ve(!0),z(et.current),m(Ee=>Ee.filter(tt=>tt.toastId!==f.id)),setTimeout(()=>{_(f)},o6)},[f,_,m,et]);A.useEffect(()=>{if(f.promise&&D==="loading"||f.duration===1/0||f.type==="loading")return;let Ee,tt=Se;return w||v||V&&Nc?(()=>{if(Qn.current<yt.current){let Xe=new Date().getTime()-yt.current;tt=tt-Xe}
176Qn.current=new Date().getTime()})():tt!==1/0&&(yt.current=new Date().getTime(),Ee=setTimeout(()=>{var Xe;(Xe=f.onAutoClose)==null||Xe.call(f,f),fa()},tt)),()=>clearTimeout(Ee)},[w,v,F,f,Se,fa,f.promise,D,V,Nc]),A.useEffect(()=>{let Ee=Me.current;if(Ee){let tt=Ee.getBoundingClientRect().height;return ge(tt),m(Xe=>[{toastId:f.id,height:tt,position:f.position},...Xe]),()=>m(Xe=>Xe.filter(ei=>ei.toastId!==f.id))}},[m,f.id]),A.useEffect(()=>{f.delete&&fa()},[fa,f.delete]);function UL(){return B!=null&&B.loading?A.createElement("div",{className:"sonner-loader","data-visible":D==="loading"},B.loading):M?A.createElement("div",{className:"sonner-loader","data-visible":D==="loading"},M):A.createElement(zF,{visible:D==="loading"})}return A.createElement("li",{"aria-live":f.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:Me,className:H(R,re,j==null?void 0:j.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,j==null?void 0:j.default,j==null?void 0:j[D],(r=f==null?void 0:f.classNames)==null?void 0:r[D]),"data-sonner-toast":"","data-rich-colors":(n=f.richColors)!=null?n:E,"data-styled":!(f.jsx||f.unstyled||p),"data-mounted":J,"data-promise":!!f.promise,"data-removed":Ce,"data-visible":$,"data-y-position":bs,"data-x-position":Cc,"data-index":g,"data-front":gt,"data-swiping":ae,"data-dismissible":U,"data-type":D,"data-invert":Ng,"data-swipe-out":G,"data-expanded":!!(w||F&&J),style:{"--index":g,"--toasts-before":g,"--z-index":x.length-g,"--offset":`${Ce?oe:et.current}px`,"--initial-height":F?"auto":`${Ae}px`,...O,...f.style},onPointerDown:Ee=>{xs||!U||(He.current=new Date,z(et.current),Ee.target.setPointerCapture(Ee.pointerId),Ee.target.tagName!=="BUTTON"&&(we(!0),da.current={x:Ee.clientX,y:Ee.clientY}))},onPointerUp:()=>{var Ee,tt,Xe,ei;if(G||!U)return;da.current=null;let ti=Number(((Ee=Me.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount").replace("px",""))||0),$f=new Date().getTime()-((tt=He.current)==null?void 0:tt.getTime()),zL=Math.abs(ti)/$f;if(Math.abs(ti)>=a6||zL>.11){z(et.current),(Xe=f.onDismiss)==null||Xe.call(f,f),fa(),ne(!0);return}(ei=Me.current)==null||ei.style.setProperty("--swipe-amount","0px"),we(!1)},onPointerMove:Ee=>{var tt;if(!da.current||!U)return;let Xe=Ee.clientY-da.current.y,ei=Ee.clientX-da.current.x,ti=(bs==="top"?Math.min:Math.max)(0,Xe),$f=Ee.pointerType==="touch"?10:2;Math.abs(ti)>$f?(tt=Me.current)==null||tt.style.setProperty("--swipe-amount",`${Xe}px`):Math.abs(ei)>$f&&(da.current=null)}},pe&&!f.jsx?A.createElement("button",{"aria-label":q,"data-disabled":xs,"data-close-button":!0,onClick:xs||!U?()=>{}:()=>{var Ee;fa(),(Ee=f.onDismiss)==null||Ee.call(f,f)},className:H(j==null?void 0:j.closeButton,(i=f==null?void 0:f.classNames)==null?void 0:i.closeButton)},A.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"},A.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,f.jsx||A.isValidElement(f.title)?f.jsx||f.title:A.createElement(A.Fragment,null,D||f.icon||f.promise?A.createElement("div",{"data-icon":"",className:H(j==null?void 0:j.icon,(a=f==null?void 0:f.classNames)==null?void 0:a.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||UL():null,f.type!=="loading"?f.icon||(B==null?void 0:B[D])||FF(D):null):null,A.createElement("div",{"data-content":"",className:H(j==null?void 0:j.content,(o=f==null?void 0:f.classNames)==null?void 0:o.content)},A.createElement("div",{"data-title":"",className:H(j==null?void 0:j.title,(s=f==null?void 0:f.classNames)==null?void 0:s.title)},f.title),f.description?A.createElement("div",{"data-description":"",className:H(T,ee,j==null?void 0:j.description,(l=f==null?void 0:f.classNames)==null?void 0:l.description)},f.description):null),A.isValidElement(f.cancel)?f.cancel:f.cancel&&rh(f.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||P,onClick:Ee=>{var tt,Xe;rh(f.cancel)&&U&&((Xe=(tt=f.cancel).onClick)==null||Xe.call(tt,Ee),fa())},className:H(j==null?void 0:j.cancelButton,(c=f==null?void 0:f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,A.isValidElement(f.action)?f.action:f.action&&rh(f.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||C,onClick:Ee=>{var tt,Xe;rh(f.action)&&(Ee.defaultPrevented||((Xe=(tt=f.action).onClick)==null||Xe.call(tt,Ee),fa()))},className:H(j==null?void 0:j.actionButton,(u=f==null?void 0:f.classNames)==null?void 0:u.actionButton)},f.action.label):null))};function OE(){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}var c6=e=>{let{invert:t,position:r="bottom-right",hotkey:n=["altKey","KeyT"],expand:i,closeButton:a,className:o,offset:s,theme:l="light",richColors:c,duration:u,style:d,visibleToasts:f=e6,toastOptions:p,dir:v=OE(),gap:m=i6,loadingIcon:y,icons:b,containerAriaLabel:g="Notifications",pauseWhenPageIsHidden:x,cn:w=s6}=e,[_,E]=A.useState([]),k=A.useMemo(()=>Array.from(new Set([r].concat(_.filter(V=>V.position).map(V=>V.position)))),[_,r]),[O,P]=A.useState([]),[C,R]=A.useState(!1),[T,I]=A.useState(!1),[N,L]=A.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
176k":"light"),M=A.useRef(null),F=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=A.useRef(null),B=A.useRef(!1),q=A.useCallback(V=>{var H;(H=_.find(J=>J.id===V.id))!=null&&H.delete||Ur.dismiss(V.id),E(J=>J.filter(({id:fe})=>fe!==V.id))},[_]);return A.useEffect(()=>Ur.subscribe(V=>{if(V.dismiss){E(H=>H.map(J=>J.id===V.id?{...J,delete:!0}:J));return}setTimeout(()=>{gN.flushSync(()=>{E(H=>{let J=H.findIndex(fe=>fe.id===V.id);return J!==-1?[...H.slice(0,J),{...H[J],...V},...H.slice(J+1)]:[V,...H]})})})}),[]),A.useEffect(()=>{if(l!=="system"){L(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:V})=>{L(V?"dark":"light")})},[l]),A.useEffect(()=>{_.length<=1&&R(!1)},[_]),A.useEffect(()=>{let V=H=>{var J,fe;n.every(Ce=>H[Ce]||H.code===Ce)&&(R(!0),(J=M.current)==null||J.focus()),H.code==="Escape"&&(document.activeElement===M.current||(fe=M.current)!=null&&fe.contains(document.activeElement))&&R(!1)};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[n]),A.useEffect(()=>{if(M.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,B.current=!1)}},[M.current]),_.length?A.createElement("section",{"aria-label":`${g} ${F}`,tabIndex:-1},k.map((V,H)=>{var J;let[fe,Ce]=V.split("-");return A.createElement("ol",{key:V,dir:v==="auto"?OE():v,tabIndex:-1,ref:M,className:o,"data-sonner-toaster":!0,"data-theme":N,"data-y-position":fe,"data-x-position":Ce,style:{"--front-toast-height":`${((J=O[0])==null?void 0:J.height)||0}px`,"--offset":typeof s=="number"?`${s}px`:s||t6,"--width":`${n6}px`,"--gap":`${m}px`,...d},onBlur:ve=>{B.current&&!ve.currentTarget.contains(ve.relatedTarget)&&(B.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:ve=>{ve.target instanceof HTMLElement&&ve.target.dataset.dismissible==="false"||B.current||(B.current=!0,j.current=ve.relatedTarget)},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{T||R(!1)},onPointerDown:ve=>{ve.target instanceof HTMLElement&&ve.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},_.filter(ve=>!ve.position&&H===0||ve.position===V).map((ve,ae)=>{var we,G;return A.createElement(l6,{key:ve.id,icons:b,index:ae,toast:ve,defaultRichColors:c,duration:(we=p==null?void 0:p.duration)!=null?we:u,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:t,visibleToasts:f,closeButton:(G=p==null?void 0:p.closeButton)!=null?G:a,interacting:T,position:V,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:q,toasts:_.filter(ne=>ne.position==ve.position),heights:O.filter(ne=>ne.position==ve.position),setHeights:P,expandByDefault:i,gap:m,loadingIcon:y,expanded:C,pauseWhenPageIsHidden:x,cn:w})}))})):null};const u6=({...e})=>{const{theme:t="system"}=BF();return h.jsx(c6,{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 d6=pP.useId||(()=>{}),f6=0;function w1(e){const[t,r]=S.useState(d6());return or(()=>{r(n=>n??String(f6++))},[e]),t?`radix-${t}`:""}const h6=["top","right","bottom","left"],Ja=Math.min,Wr=Math.max,Ap=Math.round,nh=Math.floor,Qa=e=>({x:e,y:e}),p6={left:"right",right:"left",bottom:"top",top:"bottom"},m6={start:"end",end:"start"};function vb(e,t,r){return Wr(e,Ja(t,r))}function ea(e,t){return typeof e=="function"?e(t):e}function ta(e){return e.split("-")[0]}function dc(e){return e.split("-")[1]}function _1(e){return e==="x"?"y":"x"}function S1(e){return e==="y"?"height":"width"}function eo(e){return["top","bottom"].includes(ta(e))?"y":"x"}function E1(e){return _1(eo(e))}function v6(e,t,r){r===void 0&&(r=!1);const n=dc(e),i=E1(e),a=S1(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Tp(o)),[o,Tp(o)]}function g6(e){const t=Tp(e);return[gb(e),t,gb(t)]}function gb(e){return e.replace(/start|end/g,t=>m6[t])}function y6(e,t,r){const n=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?a:o;default:return[]}}function b6(e,t,r,n){const i=dc(e);let a=y6(ta(e),r==="start",n);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(gb)))),a}function Tp(e){return e.replace(/left|right|bottom|top/g,t=>p6[t])}function x6(e){return{top:0,right:0,bottom:0,left:0,...e}}function m$(e){return typeof e!="number"?x6(e):{top:e,right:e,bottom:e,left:e}}function jp(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 AE(e,t,r){let{reference:n,floating:i}=e;const a=eo(t),o=E1(t),s=S1(o),l=ta(t),c=a==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,f=n[s]/2-i[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-i.width,y:d};break;default:p={x:n.x,y:n.y}}switch(dc(t)){case"start":p[o]-=f*(r&&c?-1:1);break;case"end":p[o]+=f*(r&&c?-1:1);break}return p}const w6=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}
vendor: 9,693 bytes, line 176
176=r,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=AE(c,n,l),f=n,p={},v=0;for(let m=0;m<s.length;m++){const{name:y,fn:b}=s[m],{x:g,y:x,data:w,reset:_}=await b({x:u,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:p,rects:c,platform:o,elements:{reference:e,floating:t}});u=g??u,d=x??d,p={...p,[y]:{...p[y],...w}},_&&v<=50&&(v++,typeof _=="object"&&(_.placement&&(f=_.placement),_.rects&&(c=_.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:u,y:d}=AE(c,f,l)),m=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function td(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=ea(t,e),v=m$(p),y=s[f?d==="floating"?"reference":"floating":d],b=jp(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(y)))==null||r?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),g=d==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),w=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},_=jp(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:x,strategy:l}):g);return{top:(b.top-_.top+v.top)/w.y,bottom:(_.bottom-b.bottom+v.bottom)/w.y,left:(b.left-_.left+v.left)/w.x,right:(_.right-b.right+v.right)/w.x}}const _6=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=ea(e,t)||{};if(c==null)return{};const d=m$(u),f={x:r,y:n},p=E1(i),v=S1(p),m=await o.getDimensions(c),y=p==="y",b=y?"top":"left",g=y?"bottom":"right",x=y?"clientHeight":"clientWidth",w=a.reference[v]+a.reference[p]-f[p]-a.floating[v],_=f[p]-a.reference[p],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let k=E?E[x]:0;(!k||!await(o.isElement==null?void 0:o.isElement(E)))&&(k=s.floating[x]||a.floating[v]);const O=w/2-_/2,P=k/2-m[v]/2-1,C=Ja(d[b],P),R=Ja(d[g],P),T=C,I=k-m[v]-R,N=k/2-m[v]/2+O,L=vb(T,N,I),M=!l.arrow&&dc(i)!=null&&N!==L&&a.reference[v]/2-(N<T?C:R)-m[v]/2<0,F=M?N<T?N-T:N-I:0;return{[p]:f[p]+F,data:{[p]:L,centerOffset:N-L-F,...M&&{alignmentOffset:F}},reset:M}}}),S6=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...y}=ea(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const b=ta(i),g=eo(s),x=ta(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),_=f||(x||!m?[Tp(s)]:g6(s)),E=v!=="none";!f&&E&&_.push(...b6(s,m,v,w));const k=[s,..._],O=await td(t,y),P=[];let C=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&P.push(O[b]),d){const N=v6(i,o,w);P.push(O[N[0]],O[N[1]])}if(C=[...C,{placement:i,overflows:P}],!P.every(N=>N<=0)){var R,T;const N=(((R=a.flip)==null?void 0:R.index)||0)+1,L=k[N];if(L)return{data:{index:N,overflows:C},reset:{placement:L}};let M=(T=C.filter(F=>F.overflows[0]<=0).sort((F,j)=>F.overflows[1]-j.overflows[1])[0])==null?void 0:T.placement;if(!M)switch(p){case"bestFit":{var I;const F=(I=C.filter(j=>{if(E){const B=eo(j.placement);return B===g||B==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(B=>B>0).reduce((B,q)=>B+q,0)]).sort((j,B)=>j[1]-B[1])[0])==null?void 0:I[0];F&&(M=F);break}case"initialPlacement":M=s;break}if(i!==M)return{reset:{placement:M}}}return{}}}};function TE(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jE(e){return h6.some(t=>e[t]>=0)}const E6=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...i}=ea(e,t);switch(n){case"referenceHidden":{const a=await td(t,{...i,elementContext:"reference"}),o=TE(a,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:jE(o)}}}case"escaped":{const a=await td(t,{...i,altBoundary:!0}),o=TE(a,r.floating);return{data:{escapedOffsets:o,escaped:jE(o)}}}default:return{}}}}};async function k6(e,t){const{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=ta(r),s=dc(r),l=eo(r)==="y",c=["left","top"].includes(o)?-1:1,u=a&&l?-1:1,d=ea(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof v=="number"&&(p=s==="end"?v*-1:v),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const O6=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await k6(t,e);return o===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},A6=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:o=!1,limiter:s={fn:y=>{let{x:b,y:g}=y;return{x:b,y:g}}},...l}=ea(e,t),c={x:r,y:n},u=await td(t,l),d=eo(ta(i)),f=_1(d);let p=c[f],v=c[d];if(a){const y=f==="y"?"top":"left",b=f==="y"?"bottom":"right",g=p+u[y],x=p-u[b];p=vb(g,p,x)}if(o){const y=d==="y"?"top":"left",b=d==="y"?"bottom":"right",g=v+u[y],x=v-u[b];v=vb(g,v,x)}const m=s.fn({...t,[f]:p,[d]:v});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[f]:a,[d]:o}}}}}},T6=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=ea(e,t),u={x:r,y:n},d=eo(i),f=_1(d);let p=u[f],v=u[d];const m=ea(s,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const x=f==="y"?"height":"width",w=a.reference[f]-a.floating[x]+y.mainAxis,_=a.reference[f]+a.reference[x]-y.mainAxis;p<w?p=w:p>_&&(p=_)}if(c){var b,g;const x=f==="y"?"width":"height",w=["top","left"].includes(ta(i)),_=a.reference[d]-a.floating[x]+(w&&((b=o.offset)==null?void 0:b[d])||0)+(w?0:y.crossAxis),E=a.reference[d]+a.reference[x]+(w?0:((g=o.offset)==null?void 0:g[d])||0)-(w?y.crossAxis:0);v<_?v=_:v>E&&(v=E)}return{[f]:p,[d]:v}}}},j6=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:a,platform:o,elements:s}=t,{apply:l=()=>{},...c}=ea(e,t),u=await td(t,c),d=ta(i),f=dc(i),p=eo(i)==="y",{width:v,height:m}=a.floating;let y,b;d==="top"||d==="bottom"?(y=d,b=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(b=d,y=f==="end"?"top":"bottom");const g=m-u.top-u.bottom,x=v-u.left-u.right,w=Ja(m-u[y],g),_=Ja(v-u[b],x),E=!t.middlewareData.shift;let k=w,O=_;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(O=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(k=g),E&&!f){const C=Wr(u.left,0),R=Wr(u.right,0),T=Wr(u.top,0),I=Wr(u.bottom,0);p?O=v-2*(C!==0||R!==0?C+R:Wr(u.left,u.right)):k=m-2*(T!==0||I!==0?T+I:Wr(u.top,u.bottom))}await l({...t,availableWidth:O,availableHeight:k});const P=await o.getDimensions(s.floating);return v!==P.width||m!==P.height?{reset:{rects:!0}}:{}}}};function Sv(){return typeof window<"u"}function fc(e){return v$(e)?(e.nodeName||"").toLowerCase():"#document"}function Yr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ei(e){var t;return(t=(v$(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function v$(e){return Sv()?e instanceof Node||e instanceof Yr(e).Node:!1}function Yn(e){return Sv()?e instanceof Element||e instanceof Yr(e).Element:!1}function xi(e){return Sv()?e instanceof HTMLElement||e instanceof Yr(e).HTMLElement:!1}function PE(e){return!Sv()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yr(e).ShadowRoot}function yf(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=Xn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function P6(e){return["table","td","th"].includes(fc(e))}function Ev(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function k1(e){const t=O1(),r=Yn(e)?Xn(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function C6(e){let t=to(e);for(;xi(t)&&!Rl(t);){if(k1(t))return t;if(Ev(t))return null;t=to(t)}return null}function O1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Rl(e){return["html","body","#document"].includes(fc(e))}function Xn(e){return Yr(e).getComputedStyle(e)}function kv(e){return Yn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function to(e){if(fc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||PE(e)&&e.host||Ei(e);return PE(t)?t.host:t}function g$(e){const t=to(e);return Rl(t)?e.ownerDocument?e.ownerDocument.body:e.body:xi(t)&&yf(t)?t:g$(t)}function rd(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=g$(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),o=Yr(i);if(a){const s=yb(o);
vendor: 7,125 bytes, line 176
176return t.concat(o,o.visualViewport||[],yf(i)?i:[],s&&r?rd(s):[])}return t.concat(i,rd(i,[],r))}function yb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function y$(e){const t=Xn(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=xi(e),a=i?e.offsetWidth:r,o=i?e.offsetHeight:n,s=Ap(r)!==a||Ap(n)!==o;return s&&(r=a,n=o),{width:r,height:n,$:s}}function A1(e){return Yn(e)?e:e.contextElement}function cl(e){const t=A1(e);if(!xi(t))return Qa(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:a}=y$(t);let o=(a?Ap(r.width):r.width)/n,s=(a?Ap(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const N6=Qa(0);function b$(e){const t=Yr(e);return!O1()||!t.visualViewport?N6:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $6(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Yr(e)?!1:t}function ns(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),a=A1(e);let o=Qa(1);t&&(n?Yn(n)&&(o=cl(n)):o=cl(e));const s=$6(a,r,n)?b$(a):Qa(0);let l=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){const f=Yr(a),p=n&&Yn(n)?Yr(n):n;let v=f,m=yb(v);for(;m&&n&&p!==v;){const y=cl(m),b=m.getBoundingClientRect(),g=Xn(m),x=b.left+(m.clientLeft+parseFloat(g.paddingLeft))*y.x,w=b.top+(m.clientTop+parseFloat(g.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,d*=y.y,l+=x,c+=w,v=Yr(m),m=yb(v)}}return jp({width:u,height:d,x:l,y:c})}function R6(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const a=i==="fixed",o=Ei(n),s=t?Ev(t.floating):!1;if(n===o||s&&a)return r;let l={scrollLeft:0,scrollTop:0},c=Qa(1);const u=Qa(0),d=xi(n);if((d||!d&&!a)&&((fc(n)!=="body"||yf(o))&&(l=kv(n)),xi(n))){const f=ns(n);c=cl(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x,y:r.y*c.y-l.scrollTop*c.y+u.y}}function I6(e){return Array.from(e.getClientRects())}function bb(e,t){const r=kv(e).scrollLeft;return t?t.left+r:ns(Ei(e)).left+r}function M6(e){const t=Ei(e),r=kv(e),n=e.ownerDocument.body,i=Wr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Wr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+bb(e);const s=-r.scrollTop;return Xn(n).direction==="rtl"&&(o+=Wr(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:s}}function D6(e,t){const r=Yr(e),n=Ei(e),i=r.visualViewport;let a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const c=O1();(!c||c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}function L6(e,t){const r=ns(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=xi(e)?cl(e):Qa(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,c=n*a.y;return{width:o,height:s,x:l,y:c}}function CE(e,t,r){let n;if(t==="viewport")n=D6(e,r);else if(t==="document")n=M6(Ei(e));else if(Yn(t))n=L6(t,r);else{const i=b$(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return jp(n)}function x$(e,t){const r=to(e);return r===t||!Yn(r)||Rl(r)?!1:Xn(r).position==="fixed"||x$(r,t)}function B6(e,t){const r=t.get(e);if(r)return r;let n=rd(e,[],!1).filter(s=>Yn(s)&&fc(s)!=="body"),i=null;const a=Xn(e).position==="fixed";let o=a?to(e):e;for(;Yn(o)&&!Rl(o);){const s=Xn(o),l=k1(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||yf(o)&&!l&&x$(e,o))?n=n.filter(u=>u!==o):i=s,o=to(o)}return t.set(e,n),n}function F6(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?Ev(t)?[]:B6(t,this._c):[].concat(r),n],s=o[0],l=o.reduce((c,u)=>{const d=CE(t,u,i);return c.top=Wr(d.top,c.top),c.right=Ja(d.right,c.right),c.bottom=Ja(d.bottom,c.bottom),c.left=Wr(d.left,c.left),c},CE(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function U6(e){const{width:t,height:r}=y$(e);return{width:t,height:r}}function z6(e,t,r){const n=xi(t),i=Ei(t),a=r==="fixed",o=ns(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Qa(0);if(n||!n&&!a)if((fc(t)!=="body"||yf(i))&&(s=kv(t)),n){const p=ns(t,!0,a,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&(l.x=bb(i));let c=0,u=0;if(i&&!n&&!a){const p=i.getBoundingClientRect();u=p.top+s.scrollTop,c=p.left+s.scrollLeft-bb(i,p)}const d=o.left+s.scrollLeft-l.x-c,f=o.top+s.scrollTop-l.y-u;return{x:d,y:f,width:o.width,height:o.height}}function py(e){return Xn(e).position==="static"}function NE(e,t){if(!xi(e)||Xn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ei(e)===r&&(r=r.ownerDocument.body),r}function w$(e,t){const r=Yr(e);if(Ev(e))return r;if(!xi(e)){let i=to(e);for(;i&&!Rl(i);){if(Yn(i)&&!py(i))return i;i=to(i)}return r}let n=NE(e,t);for(;n&&P6(n)&&py(n);)n=NE(n,t);return n&&Rl(n)&&py(n)&&!k1(n)?r:n||C6(e)||r}const V6=async function(e){const t=this.getOffsetParent||w$,r=this.getDimensions,n=await r(e.floating);return{reference:z6(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function W6(e){return Xn(e).direction==="rtl"}const H6={convertOffsetParentRelativeRectToViewportRelativeRect:R6,getDocumentElement:Ei,getClippingRect:F6,getOffsetParent:w$,getElementRects:V6,getClientRects:I6,getDimensions:U6,getScale:cl,isElement:Yn,isRTL:W6};function q6(e,t){let r=null,n;const i=Ei(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p=nh(u),v=nh(i.clientWidth-(c+d)),m=nh(i.clientHeight-(u+f)),y=nh(c),g={rootMargin:-p+"px "+-v+"px "+-m+"px "+-y+"px",threshold:Wr(0,Ja(1,l))||1};let x=!0;function w(_){const E=_[0].intersectionRatio;if(E!==l){if(!x)return o();E?o(!1,E):n=setTimeout(()=>{o(!1,1e-7)},1e3)}x=!1}try{r=new IntersectionObserver(w,{...g,root:i.ownerDocument})}catch{r=new IntersectionObserver(w,g)}r.observe(e)}return o(!0),a}function K6(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=A1(e),u=i||a?[...c?rd(c):[],...rd(t)]:[];u.forEach(b=>{i&&b.addEventListener("scroll",r,{passive:!0}),a&&b.addEventListener("resize",r)});const d=c&&s?q6(c,r):null;let f=-1,p=null;o&&(p=new ResizeObserver(b=>{let[g]=b;g&&g.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),r()}),c&&!l&&p.observe(c),p.observe(t));let v,m=l?ns(e):null;l&&y();function y(){const b=ns(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&r(),m=b,v=requestAnimationFrame(y)}return r(),()=>{var b;u.forEach(g=>{i&&g.removeEventListener("scroll",r),a&&g.removeEventListener("resize",r)}),d==null||d(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(v)}}const G6=O6,Y6=A6,X6=S6,Z6=j6,J6=E6,$E=_6,Q6=T6,e8=(e,t,r)=>{const n=new Map,i={platform:H6,...r},a={...i.platform,_c:n};return w6(e,t,{...i,platform:a})};var Zh=typeof document<"u"?S.useLayoutEffect:S.useEffect;function Pp(e,t){if(e===t)return!0;
vendor: 9,432 bytes, line 176
176if(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(!Pp(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)&&!Pp(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function _$(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function RE(e,t){const r=_$(e);return Math.round(t*r)/r}function my(e){const t=S.useRef(e);return Zh(()=>{t.current=e}),t}function t8(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=S.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=S.useState(n);Pp(f,n)||p(n);const[v,m]=S.useState(null),[y,b]=S.useState(null),g=S.useCallback(j=>{j!==E.current&&(E.current=j,m(j))},[]),x=S.useCallback(j=>{j!==k.current&&(k.current=j,b(j))},[]),w=a||v,_=o||y,E=S.useRef(null),k=S.useRef(null),O=S.useRef(u),P=l!=null,C=my(l),R=my(i),T=my(c),I=S.useCallback(()=>{if(!E.current||!k.current)return;const j={placement:t,strategy:r,middleware:f};R.current&&(j.platform=R.current),e8(E.current,k.current,j).then(B=>{const q={...B,isPositioned:T.current!==!1};N.current&&!Pp(O.current,q)&&(O.current=q,hs.flushSync(()=>{d(q)}))})},[f,t,r,R,T]);Zh(()=>{c===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(j=>({...j,isPositioned:!1})))},[c]);const N=S.useRef(!1);Zh(()=>(N.current=!0,()=>{N.current=!1}),[]),Zh(()=>{if(w&&(E.current=w),_&&(k.current=_),w&&_){if(C.current)return C.current(w,_,I);I()}},[w,_,I,C,P]);const L=S.useMemo(()=>({reference:E,floating:k,setReference:g,setFloating:x}),[g,x]),M=S.useMemo(()=>({reference:w,floating:_}),[w,_]),F=S.useMemo(()=>{const j={position:r,left:0,top:0};if(!M.floating)return j;const B=RE(M.floating,u.x),q=RE(M.floating,u.y);return s?{...j,transform:"translate("+B+"px, "+q+"px)",..._$(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:B,top:q}},[r,s,M.floating,u.x,u.y]);return S.useMemo(()=>({...u,update:I,refs:L,elements:M,floatingStyles:F}),[u,I,L,M,F])}const r8=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?$E({element:n.current,padding:i}).fn(r):{}:n?$E({element:n,padding:i}).fn(r):{}}}},n8=(e,t)=>({...G6(e),options:[e,t]}),i8=(e,t)=>({...Y6(e),options:[e,t]}),a8=(e,t)=>({...Q6(e),options:[e,t]}),o8=(e,t)=>({...X6(e),options:[e,t]}),s8=(e,t)=>({...Z6(e),options:[e,t]}),l8=(e,t)=>({...J6(e),options:[e,t]}),c8=(e,t)=>({...r8(e),options:[e,t]});var u8="Arrow",S$=S.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...a}=e;return h.jsx(We.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});S$.displayName=u8;var d8=S$;function f8(e,t=[]){let r=[];function n(a,o){const s=S.createContext(o),l=r.length;r=[...r,o];function c(d){const{scope:f,children:p,...v}=d,m=(f==null?void 0:f[e][l])||s,y=S.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:y,children:p})}function u(d,f){const p=(f==null?void 0:f[e][l])||s,v=S.useContext(p);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const i=()=>{const a=r.map(o=>S.createContext(o));return function(s){const l=(s==null?void 0:s[e])||a;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,h8(i,...t)]}function h8(...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 o=n.reduce((s,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...s,...d}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function E$(e){const[t,r]=S.useState(void 0);return or(()=>{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 o,s;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,s=c.blockSize}else o=e.offsetWidth,s=e.offsetHeight;r({width:o,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var T1="Popper",[k$,Ov]=f8(T1),[p8,O$]=k$(T1),A$=e=>{const{__scopePopper:t,children:r}=e,[n,i]=S.useState(null);return h.jsx(p8,{scope:t,anchor:n,onAnchorChange:i,children:r})};A$.displayName=T1;var T$="PopperAnchor",j$=S.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,a=O$(T$,r),o=S.useRef(null),s=mt(t,o);return S.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:h.jsx(We.div,{...i,ref:s})});j$.displayName=T$;var j1="PopperContent",[m8,v8]=k$(j1),P$=S.forwardRef((e,t)=>{var ae,we,G,ne,oe,z;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:v,...m}=e,y=O$(j1,r),[b,g]=S.useState(null),x=mt(t,Ae=>g(Ae)),[w,_]=S.useState(null),E=E$(w),k=(E==null?void 0:E.width)??0,O=(E==null?void 0:E.height)??0,P=n+(a!=="center"?"-"+a:""),C=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},R=Array.isArray(c)?c:[c],T=R.length>0,I={padding:C,boundary:R.filter(y8),altBoundary:T},{refs:N,floatingStyles:L,placement:M,isPositioned:F,middlewareData:j}=t8({strategy:"fixed",placement:P,whileElementsMounted:(...Ae)=>K6(...Ae,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[n8({mainAxis:i+O,alignmentAxis:o}),l&&i8({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?a8():void 0,...I}),l&&o8({...I}),s8({...I,apply:({elements:Ae,rects:ge,availableWidth:He,availableHeight:Me})=>{const{width:gt,height:$}=ge.reference,D=Ae.floating.style;D.setProperty("--radix-popper-available-width",`${He}px`),D.setProperty("--radix-popper-available-height",`${Me}px`),D.setProperty("--radix-popper-anchor-width",`${gt}px`),D.setProperty("--radix-popper-anchor-height",`${$}px`)}}),w&&c8({element:w,padding:s}),b8({arrowWidth:k,arrowHeight:O}),f&&l8({strategy:"referenceHidden",...I})]}),[B,q]=$$(M),V=Jr(v);or(()=>{F&&(V==null||V())},[F,V]);const H=(ae=j.arrow)==null?void 0:ae.x,J=(we=j.arrow)==null?void 0:we.y,fe=((G=j.arrow)==null?void 0:G.centerOffset)!==0,[Ce,ve]=S.useState();return or(()=>{b&&ve(window.getComputedStyle(b).zIndex)},[b]),h.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:F?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ce,"--radix-popper-transform-origin":[(ne=j.transformOrigin)==null?void 0:ne.x,(oe=j.transformOrigin)==null?void 0:oe.y].join(" "),...((z=j.hide)==null?void 0:z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(m8,{scope:r,placedSide:B,onArrowChange:_,arrowX:H,arrowY:J,shouldHideArrow:fe,children:h.jsx(We.div,{"data-side":B,"data-align":q,...m,ref:x,style:{...m.style,animation:F?void 0:"none"}})})})});P$.displayName=j1;var C$="PopperArrow",g8={top:"bottom",right:"left",bottom:"top",left:"right"},N$=S.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,a=v8(C$,n),o=g8[a.placedSide];return h.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]: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},children:h.jsx(d8,{...i,ref:r,style:{...i.style,display:"block"}})})});N$.displayName=C$;function y8(e){return e!==null}var b8=e=>({name:"transformOrigin",options:e,fn(t){var y,b,g;const{placement:r,rects:n,middlewareData:i}=t,o=((y=i.arrow)==null?void 0:y.centerOffset)!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=$$(r),d={start:"0%",center:"50%",end:"100%"}[u],f=(((b=i.arrow)==null?void 0:b.x)??0)+s/2,p=(((g=i.arrow)==null?void 0:g.y)??0)+l/2;let v="",m="";return c==="bottom"?(v=o?d:`${f}px`,m=`${-l}px`):c==="top"?(v=o?d:`${f}px`,m=`${n.floating.height+l}px`):c==="right"?(v=`${-l}px`,m=o?d:`${p}px`):c==="left"&&(v=`${n.floating.width+l}px`,m=o?d:`${p}px`),{data:{x:v,y:m}}}});function $$(e){const[t,r="center"]=e.split("-");return[t,r]}var x8=A$,R$=j$,I$=P$,M$=N$,[Av,Zxe]=gv("Tooltip",[Ov]),P1=Ov(),D$="TooltipProvider",w8=700,IE="tooltip.open",[_8,L$]=Av(D$),B$=e=>{const{__scopeTooltip:t,delayDuration:r=w8,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:a}=e,[o,s]=S.useState(!0),l=S.useRef(!1),c=S.useRef(0);return S.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),h.jsx(_8,{scope:t,isOpenDelayed:o,delayDuration:r,onOpen:S.useCallback(()=>{window.clearTimeout(c.current),s(!1)},[]),onClose:S.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s(!0),n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:S.useCallback(u=>{l.current=u}
vendor: 4,522 bytes, line 176
176,[]),disableHoverableContent:i,children:a})};B$.displayName=D$;var F$="Tooltip",[Jxe,Tv]=Av(F$),xb="TooltipTrigger",S8=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=Tv(xb,r),a=L$(xb,r),o=P1(r),s=S.useRef(null),l=mt(t,s,i.onTriggerChange),c=S.useRef(!1),u=S.useRef(!1),d=S.useCallback(()=>c.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),h.jsx(R$,{asChild:!0,...o,children:h.jsx(We.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:l,onPointerMove:Ne(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:Ne(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:Ne(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Ne(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:Ne(e.onBlur,i.onClose),onClick:Ne(e.onClick,i.onClose)})})});S8.displayName=xb;var E8="TooltipPortal",[Qxe,k8]=Av(E8,{forceMount:void 0}),Il="TooltipContent",U$=S.forwardRef((e,t)=>{const r=k8(Il,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...a}=e,o=Tv(Il,e.__scopeTooltip);return h.jsx(bv,{present:n||o.open,children:o.disableHoverableContent?h.jsx(z$,{side:i,...a,ref:t}):h.jsx(O8,{side:i,...a,ref:t})})}),O8=S.forwardRef((e,t)=>{const r=Tv(Il,e.__scopeTooltip),n=L$(Il,e.__scopeTooltip),i=S.useRef(null),a=mt(t,i),[o,s]=S.useState(null),{trigger:l,onClose:c}=r,u=i.current,{onPointerInTransitChange:d}=n,f=S.useCallback(()=>{s(null),d(!1)},[d]),p=S.useCallback((v,m)=>{const y=v.currentTarget,b={x:v.clientX,y:v.clientY},g=P8(b,y.getBoundingClientRect()),x=C8(b,g),w=N8(m.getBoundingClientRect()),_=R8([...x,...w]);s(_),d(!0)},[d]);return S.useEffect(()=>()=>f(),[f]),S.useEffect(()=>{if(l&&u){const v=y=>p(y,u),m=y=>p(y,l);return l.addEventListener("pointerleave",v),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",v),u.removeEventListener("pointerleave",m)}}},[l,u,p,f]),S.useEffect(()=>{if(o){const v=m=>{const y=m.target,b={x:m.clientX,y:m.clientY},g=(l==null?void 0:l.contains(y))||(u==null?void 0:u.contains(y)),x=!$8(b,o);g?f():x&&(f(),c())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,u,o,c,f]),h.jsx(z$,{...e,ref:a})}),[A8,T8]=Av(F$,{isInside:!1}),z$=S.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,l=Tv(Il,r),c=P1(r),{onClose:u}=l;return S.useEffect(()=>(document.addEventListener(IE,u),()=>document.removeEventListener(IE,u)),[u]),S.useEffect(()=>{if(l.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),h.jsx(yv,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:h.jsxs(I$,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.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:[h.jsx(AN,{children:n}),h.jsx(A8,{scope:r,isInside:!0,children:h.jsx(xB,{id:l.contentId,role:"tooltip",children:i||n})})]})})});U$.displayName=Il;var V$="TooltipArrow",j8=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=P1(r);return T8(V$,r).isInside?null:h.jsx(M$,{...i,...n,ref:t})});j8.displayName=V$;function P8(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 C8(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 N8(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 $8(e,t){const{x:r,y:n}=e;let i=!1;for(let a=0,o=t.length-1;a<t.length;
176o=a++){const s=t[a].x,l=t[a].y,c=t[o].x,u=t[o].y;l>n!=u>n&&r<(c-s)*(n-l)/(u-l)+s&&(i=!i)}return i}function R8(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),I8(t)}function I8(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],o=t[t.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.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],o=r[r.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.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 M8=B$,W$=U$;const D8=M8,L8=S.forwardRef(({className:e,sideOffset:t=4,...r},n)=>h.jsx(W$,{ref:n,sideOffset:t,className:st("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}));L8.displayName=W$.displayName;var jv=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(){}},Pv=typeof window>"u"||"Deno"in globalThis;function Pn(){}function B8(e,t){return typeof e=="function"?e(t):e}function F8(e){return typeof e=="number"&&e>=0&&e!==1/0}function U8(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ME(e,t){return typeof e=="function"?e(t):e}function z8(e,t){return typeof e=="function"?e(t):e}function DE(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(n){if(t.queryHash!==C1(o,t.options))return!1}else if(!id(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function LE(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(nd(t.options.mutationKey)!==nd(a))return!1}else if(!id(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function C1(e,t){return((t==null?void 0:t.queryKeyHashFn)||nd)(e)}function nd(e){return JSON.stringify(e,(t,r)=>wb(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function id(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!id(e[r],t[r])):!1}function H$(e,t){if(e===t)return e;const r=BE(e)&&BE(t);if(r||wb(e)&&wb(t)){const n=r?e:Object.keys(e),i=n.length,a=r?t:Object.keys(t),o=a.length,s=r?[]:{};let l=0;for(let c=0;c<o;c++){const u=r?c:a[c];(!r&&n.includes(u)||r)&&e[u]===void 0&&t[u]===void 0?(s[u]=void 0,l++):(s[u]=H$(e[u],t[u]),s[u]===e[u]&&e[u]!==void 0&&l++)}return i===o&&l===i?e:s}return t}function BE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function wb(e){if(!FE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!FE(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function FE(e){return Object.prototype.toString.call(e)==="[object Object]"}function V8(e){return new Promise(t=>{setTimeout(t,e)})}function W8(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?H$(e,t):t}function H8(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function q8(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var N1=Symbol();function q$(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===N1?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Uo,ja,yl,Xj,K8=(Xj=class extends jv{constructor(){super();ze(this,Uo);ze(this,ja);ze(this,yl);Te(this,yl,t=>{if(!Pv&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){K(this,ja)||this.setEventListener(K(this,yl))}onUnsubscribe(){var t;this.hasListeners()||((t=K(this,ja))==null||t.call(this),Te(this,ja,void 0))}setEventListener(t){var r;Te(this,yl,t),(r=K(this,ja))==null||r.call(this),Te(this,ja,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){K(this,Uo)!==t&&(Te(this,Uo,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 22,661 bytes, lines 176-185
176this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof K(this,Uo)=="boolean"?K(this,Uo):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Uo=new WeakMap,ja=new WeakMap,yl=new WeakMap,Xj),K$=new K8,bl,Pa,xl,Zj,G8=(Zj=class extends jv{constructor(){super();ze(this,bl,!0);ze(this,Pa);ze(this,xl);Te(this,xl,t=>{if(!Pv&&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(){K(this,Pa)||this.setEventListener(K(this,xl))}onUnsubscribe(){var t;this.hasListeners()||((t=K(this,Pa))==null||t.call(this),Te(this,Pa,void 0))}setEventListener(t){var r;Te(this,xl,t),(r=K(this,Pa))==null||r.call(this),Te(this,Pa,t(this.setOnline.bind(this)))}setOnline(t){K(this,bl)!==t&&(Te(this,bl,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return K(this,bl)}},bl=new WeakMap,Pa=new WeakMap,xl=new WeakMap,Zj),Cp=new G8;function Y8(){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 X8(e){return Math.min(1e3*2**e,3e4)}function G$(e){return(e??"online")==="online"?Cp.isOnline():!0}var Y$=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function vy(e){return e instanceof Y$}function X$(e){let t=!1,r=0,n=!1,i;const a=Y8(),o=m=>{var y;n||(f(new Y$(m)),(y=e.abort)==null||y.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>K$.isFocused()&&(e.networkMode==="always"||Cp.isOnline())&&e.canRun(),u=()=>G$(e.networkMode)&&e.canRun(),d=m=>{var y;n||(n=!0,(y=e.onSuccess)==null||y.call(e,m),i==null||i(),a.resolve(m))},f=m=>{var y;n||(n=!0,(y=e.onError)==null||y.call(e,m),i==null||i(),a.reject(m))},p=()=>new Promise(m=>{var y;i=b=>{(n||c())&&m(b)},(y=e.onPause)==null||y.call(e)}).then(()=>{var m;i=void 0,n||(m=e.onContinue)==null||m.call(e)}),v=()=>{if(n)return;let m;const y=r===0?e.initialPromise:void 0;try{m=y??e.fn()}catch(b){m=Promise.reject(b)}Promise.resolve(m).then(d).catch(b=>{var E;if(n)return;const g=e.retry??(Pv?0:3),x=e.retryDelay??X8,w=typeof x=="function"?x(r,b):x,_=g===!0||typeof g=="number"&&r<g||typeof g=="function"&&g(r,b);if(t||!_){f(b);return}r++,(E=e.onFail)==null||E.call(e,r,b),V8(w).then(()=>c()?void 0:p()).then(()=>{t?f(b):v()})})};return{promise:a,cancel:o,continue:()=>(i==null||i(),a),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?v():p().then(v),a)}}function Z8(){let e=[],t=0,r=s=>{s()},n=s=>{s()},i=s=>setTimeout(s,0);const a=s=>{t?e.push(s):i(()=>{r(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{n(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{i=s}}}var mr=Z8(),zo,Jj,Z$=(Jj=class{constructor(){ze(this,zo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),F8(this.gcTime)&&Te(this,zo,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Pv?1/0:5*60*1e3))}clearGcTimeout(){K(this,zo)&&(clearTimeout(K(this,zo)),Te(this,zo,void 0))}},zo=new WeakMap,Jj),wl,_l,un,er,uf,Vo,Nn,Ni,Qj,J8=(Qj=class extends Z${constructor(t){super();ze(this,Nn);ze(this,wl);ze(this,_l);ze(this,un);ze(this,er);ze(this,uf);ze(this,Vo);Te(this,Vo,!1),Te(this,uf,t.defaultOptions),this.setOptions(t.options),this.observers=[],Te(this,un,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Te(this,wl,eU(this.options)),this.state=t.state??K(this,wl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=K(this,er))==null?void 0:t.promise}setOptions(t){this.options={...K(this,uf),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&K(this,un).remove(this)}setData(t,r){const n=W8(this.state.data,t,this.options);return Xt(this,Nn,Ni).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){Xt(this,Nn,Ni).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=K(this,er))==null?void 0:n.promise;return(i=K(this,er))==null||i.cancel(t),r?r.then(Pn).catch(Pn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(K(this,wl))}isActive(){return this.observers.some(t=>z8(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===N1||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!U8(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=K(this,er))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=K(this,er))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),K(this,un).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(K(this,er)&&(K(this,Vo)?K(this,er).cancel({revert:!0}):K(this,er).cancelRetry()),this.scheduleGc()),K(this,un).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Xt(this,Nn,Ni).call(this,{type:"invalidate"})}fetch(t,r){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(K(this,er))return K(this,er).continueRetry(),K(this,er).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(Te(this,Vo,!0),n.signal)})},a=()=>{const d=q$(this.options,r),f={queryKey:this.queryKey,meta:this.meta};return i(f),Te(this,Vo,!1),this.options.persister?this.options.persister(d,f,this):d(f)},o={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(o),(l=this.options.behavior)==null||l.onFetch(o,this),Te(this,_l,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=o.fetchOptions)==null?void 0:c.meta))&&Xt(this,Nn,Ni).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const s=d=>{var f,p,v,m;vy(d)&&d.silent||Xt(this,Nn,Ni).call(this,{type:"error",error:d}),vy(d)||((p=(f=K(this,un).config).onError)==null||p.call(f,d,this),(m=(v=K(this,un).config).onSettled)==null||m.call(v,this.state.data,d,this)),this.scheduleGc()};return Te(this,er,X$({initialPromise:r==null?void 0:r.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{var f,p,v,m;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(y){s(y);return}(p=(f=K(this,un).config).onSuccess)==null||p.call(f,d,this),(m=(v=K(this,un).config).onSettled)==null||m.call(v,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,f)=>{Xt(this,Nn,Ni).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{Xt(this,Nn,Ni).call(this,{type:"pause"})},onContinue:()=>{Xt(this,Nn,Ni).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),K(this,er).start()}},wl=new WeakMap,_l=new WeakMap,un=new WeakMap,er=new WeakMap,uf=new WeakMap,Vo=new WeakMap,Nn=new WeakSet,Ni=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,...Q8(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...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 vy(i)&&i.revert&&K(this,_l)?{...K(this,_l),fetchStatus:"idle"}:{...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),mr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),K(this,un).notify({query:this,type:"updated",action:t})})},Qj);function Q8(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:G$(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function eU(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 oi,eP,tU=(eP=class extends jv{constructor(t={}){super();ze(this,oi);this.config=t,Te(this,oi,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??C1(i,r);let o=this.get(a);return o||(o=new J8({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){K(this,oi).has(t.queryHash)||(K(this,oi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=K(this,oi).get(t.queryHash);r&&(t.destroy(),r===t&&K(this,oi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){mr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return K(this,oi).get(t)}getAll(){return[...K(this,oi).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>DE(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>DE(t,n)):r}notify(t){mr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){mr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){mr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},oi=new WeakMap,eP),si,ur,Wo,li,va,tP,rU=(tP=class extends Z${constructor(t){super();ze(this,li);ze(this,si);ze(this,ur);ze(this,Wo);this.mutationId=t.mutationId,Te(this,ur,t.mutationCache),Te(this,si,[]),this.state=t.state||nU(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){K(this,si).includes(t)||(K(this,si).push(t),this.clearGcTimeout(),K(this,ur).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Te(this,si,K(this,si).filter(r=>r!==t)),this.scheduleGc(),K(this,ur).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){K(this,si).length||(this.state.status==="pending"?this.scheduleGc():K(this,ur).remove(this))}continue(){var t;return((t=K(this,Wo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,o,s,l,c,u,d,f,p,v,m,y,b,g,x,w,_,E,k;Te(this,Wo,X$({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,P)=>{Xt(this,li,va).call(this,{type:"failed",failureCount:O,error:P})},onPause:()=>{Xt(this,li,va).call(this,{type:"pause"})},onContinue:()=>{Xt(this,li,va).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>K(this,ur).canRun(this)}));const r=this.state.status==="pending",n=!K(this,Wo).canStart();try{if(!r){Xt(this,li,va).call(this,{type:"pending",variables:t,isPaused:n}),await((a=(i=K(this,ur).config).onMutate)==null?void 0:a.call(i,t,this));const P=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t));P!==this.state.context&&Xt(this,li,va).call(this,{type:"pending",context:P,variables:t,isPaused:n})}const O=await K(this,Wo).start();return await((c=(l=K(this,ur).config).onSuccess)==null?void 0:c.call(l,O,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,O,t,this.state.context)),await((p=(f=K(this,ur).config).onSettled)==null?void 0:p.call(f,O,null,this.state.variables,this.state.context,this)),await((m=(v=this.options).onSettled)==null?void 0:m.call(v,O,null,t,this.state.context)),Xt(this,li,va).call(this,{type:"success",data:O}),O}catch(O){try{throw await((b=(y=K(this,ur).config).onError)==null?void 0:b.call(y,O,t,this.state.context,this)),await((x=(g=this.options).onError)==null?void 0:x.call(g,O,t,this.state.context)),await((_=(w=K(this,ur).config).onSettled)==null?void 0:_.call(w,void 0,O,this.state.variables,this.state.context,this)),await((k=(E=this.options).onSettled)==null?void 0:k.call(E,void 0,O,t,this.state.context)),O}finally{Xt(this,li,va).call(this,{type:"error",error:O})}}finally{K(this,ur).runNext(this)}}},si=new WeakMap,ur=new WeakMap,Wo=new WeakMap,li=new WeakSet,va=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};case"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),mr.batch(()=>{K(this,si).forEach(n=>{n.onMutationUpdate(t)}),K(this,ur).notify({mutation:this,type:"updated",action:t})})},tP);function nU(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fr,df,rP,iU=(rP=class extends jv{constructor(t={}){super();ze(this,Fr);ze(this,df);this.config=t,Te(this,Fr,new Map),Te(this,df,Date.now())}build(t,r,n){const i=new rU({mutationCache:this,mutationId:++Rf(this,df)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){const r=ih(t),n=K(this,Fr).get(r)??[];n.push(t),K(this,Fr).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=ih(t);if(K(this,Fr).has(r)){const i=(n=K(this,Fr).get(r))==null?void 0:n.filter(a=>a!==t);i&&(i.length===0?K(this,Fr).delete(r):K(this,Fr).set(r,i))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=K(this,Fr).get(ih(t)))==null?void 0:n.find(i=>i.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=K(this,Fr).get(ih(t)))==null?void 0:n.find(i=>i!==t&&i.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){mr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...K(this,Fr).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>LE(r,n))}findAll(t={}){return this.getAll().filter(r=>LE(t,r))}notify(t){mr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return mr.batch(()=>Promise.all(t.map(r=>r.continue().catch(Pn))))}},Fr=new WeakMap,df=new WeakMap,rP);function ih(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function UE(e){return{onFetch:(t,r)=>{var u,d,f,p,v;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=((p=t.state.data)==null?void 0:p.pages)||[],o=((v=t.state.data)==null?void 0:v.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let m=!1;const y=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},b=q$(t.options,t.fetchOptions),g=async(x,w,_)=>{if(m)return Promise.reject();if(w==null&&x.pages.length)return Promise.resolve(x);const E={queryKey:t.queryKey,pageParam:w,direction:_?"backward":"forward",meta:t.options.meta};y(E);const k=await b(E),{maxPages:O}=t.options,P=_?q8:H8;return{pages:P(x.pages,k,O),pageParams:P(x.pageParams,w,O)}};if(i&&a.length){const x=i==="backward",w=x?aU:zE,_={pages:a,pageParams:o},E=w(n,_);s=await g(_,E,x)}else{const x=e??a.length;do{const w=l===0?o[0]??n.initialPageParam:zE(n,s);if(l>0&&w==null)break;s=await g(s,w),l++}while(l<x)}return s};t.options.persister?t.fetchFn=()=>{var m,y;return(y=(m=t.options).persister)==null?void 0:y.call(m,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=c}}}function zE(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 aU(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 bt,Ca,Na,Sl,El,$a,kl,Ol,nP,oU=(nP=class{constructor(e={}){ze(this,bt);ze(this,Ca);ze(this,Na);ze(this,Sl);ze(this,El);ze(this,$a);ze(this,kl);ze(this,Ol);Te(this,bt,e.queryCache||new tU),Te(this,Ca,e.mutationCache||new iU),Te(this,Na,e.defaultOptions||{}),Te(this,Sl,new Map),Te(this,El,new Map),Te(this,$a,0)}mount(){Rf(this,$a)._++,K(this,$a)===1&&(Te(this,kl,K$.subscribe(async e=>{e&&(await this.resumePausedMutations(),K(this,bt).onFocus())})),Te(this,Ol,Cp.subscribe(async e=>{e&&(await this.resumePausedMutations(),K(this,bt).onOnline())})))}unmount(){var e,t;Rf(this,$a)._--,K(this,$a)===0&&((e=K(this,kl))==null||e.call(this),Te(this,kl,void 0),(t=K(this,Ol))==null||t.call(this),Te(this,Ol,void 0))}isFetching(e){return K(this,bt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return K(this,Ca).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=K(this,bt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=K(this,bt).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(ME(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return K(this,bt).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=K(this,bt).get(n.queryHash),a=i==null?void 0:i.state.data,o=B8(t,a);if(o!==void 0)return K(this,bt).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return mr.batch(()=>K(this,bt).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=K(this,bt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=K(this,bt);mr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=K(this,bt),n={type:"active",...e};return mr.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=mr.batch(()=>K(this,bt).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(Pn).catch(Pn)}invalidateQueries(e={},t={}){return mr.batch(()=>{if(K(this,bt).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=mr.batch(()=>K(this,bt).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch(Pn)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(Pn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=K(this,bt).build(this,t);return r.isStaleByTime(ME(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pn).catch(Pn)}fetchInfiniteQuery(e){return e.behavior=UE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pn).catch(Pn)}ensureInfiniteQueryData(e){return e.behavior=UE(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Cp.isOnline()?K(this,Ca).resumePausedMutations():Promise.resolve()}getQueryCache(){return K(this,bt)}getMutationCache(){return K(this,Ca)}getDefaultOptions(){return K(this,Na)}setDefaultOptions(e){Te(this,Na,e)}setQueryDefaults(e,t){K(this,Sl).set(nd(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...K(this,Sl).values()];let r={};return t.forEach(n=>{id(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){K(this,El).set(nd(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...K(this,El).values()];let r={};return t.forEach(n=>{id(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...K(this,Na).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=C1(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.enabled!==!0&&t.queryFn===N1&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...K(this,Na).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){K(this,bt).clear(),K(this,Ca).clear()}},bt=new WeakMap,Ca=new WeakMap,Na=new WeakMap,Sl=new WeakMap,El=new WeakMap,$a=new WeakMap,kl=new WeakMap,Ol=new WeakMap,nP),sU=S.createContext(void 0),lU=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(sU.Provider,{value:e,children:t}));/** 177 * @remix-run/router v1.20.0 178 * 179 * Copyright (c) Remix Software Inc. 180 * 181 * This source code is licensed under the MIT license found in the 182 * LICENSE.md file in the root directory of this source tree. 183 * 184 * @license MIT 185 */function Np(){return Np=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 4,127 bytes, line 185
185for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Np.apply(this,arguments)}var Ma;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ma||(Ma={}));const VE="popstate";function cU(e){e===void 0&&(e={});function t(n,i){let{pathname:a,search:o,hash:s}=n.location;return _b("",{pathname:a,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Q$(i)}return dU(t,r,null,e)}function Mr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function J$(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function uU(){return Math.random().toString(36).substr(2,8)}function WE(e,t){return{usr:e.state,key:e.key,idx:t}}function _b(e,t,r,n){return r===void 0&&(r=null),Np({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Cv(t):t,{state:r,key:t&&t.key||n||uU()})}function Q$(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 Cv(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 dU(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s=Ma.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Np({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){s=Ma.Pop;let y=u(),b=y==null?null:y-c;c=y,l&&l({action:s,location:m.location,delta:b})}function f(y,b){s=Ma.Push;let g=_b(m.location,y,b);c=u()+1;let x=WE(g,c),w=m.createHref(g);try{o.pushState(x,"",w)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(w)}a&&l&&l({action:s,location:m.location,delta:1})}function p(y,b){s=Ma.Replace;let g=_b(m.location,y,b);c=u();let x=WE(g,c),w=m.createHref(g);o.replaceState(x,"",w),a&&l&&l({action:s,location:m.location,delta:0})}function v(y){let b=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof y=="string"?y:Q$(y);return g=g.replace(/ $/,"%20"),Mr(b,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,b)}let m={get action(){return s},get location(){return e(i,o)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(VE,d),l=y,()=>{i.removeEventListener(VE,d),l=null}},createHref(y){return t(i,y)},createURL:v,encodeLocation(y){let b=v(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:p,go(y){return o.go(y)}};return m}var HE;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(HE||(HE={}));function fU(e,t,r){return r===void 0&&(r="/"),hU(e,t,r,!1)}function hU(e,t,r,n){let i=typeof t=="string"?Cv(t):t,a=r2(i.pathname||"/",r);if(a==null)return null;let o=e2(e);pU(o);let s=null;for(let l=0;s==null&&l<o.length;++l){let c=kU(a);s=SU(o[l],c,n)}return s}function e2(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(a,o,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(Mr(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=ul([n,l.relativePath]),u=r.concat(l);a.children&&a.children.length>0&&(Mr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),e2(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:wU(c,a.index),routesMeta:u})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of t2(a.path))i(a,o,l)}),t}function t2(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 o=t2(n.join("/")),s=[];return s.push(...o.map(l=>
vendor: 9,698 bytes, lines 185-194
185l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function pU(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:_U(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const mU=/^:[\w-]+$/,vU=3,gU=2,yU=1,bU=10,xU=-2,qE=e=>e==="*";function wU(e,t){let r=e.split("/"),n=r.length;return r.some(qE)&&(n+=xU),t&&(n+=gU),r.filter(i=>!qE(i)).reduce((i,a)=>i+(mU.test(a)?vU:a===""?yU:bU),n)}function _U(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 SU(e,t,r){let{routesMeta:n}=e,i={},a="/",o=[];for(let s=0;s<n.length;++s){let l=n[s],c=s===n.length-1,u=a==="/"?t:t.slice(a.length)||"/",d=KE({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!d&&c&&r&&!n[n.length-1].route.index&&(d=KE({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:ul([a,d.pathname]),pathnameBase:OU(ul([a,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(a=ul([a,d.pathnameBase]))}return o}function KE(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=EU(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((c,u,d)=>{let{paramName:f,isOptional:p}=u;if(f==="*"){let m=s[d]||"";o=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}const v=s[d];return p&&!v?c[f]=void 0:c[f]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:o,pattern:e}}function EU(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),J$(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,(o,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function kU(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return J$(!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 r2(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)||"/"}const ul=e=>e.join("/").replace(/\/\/+/g,"/"),OU=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function AU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const n2=["post","put","patch","delete"];new Set(n2);const TU=["get",...n2];new Set(TU);/** 186 * React Router v6.27.0 187 * 188 * Copyright (c) Remix Software Inc. 189 * 190 * This source code is licensed under the MIT license found in the 191 * LICENSE.md file in the root directory of this source tree. 192 * 193 * @license MIT 194 */function $p(){return $p=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},$p.apply(this,arguments)}const jU=S.createContext(null),PU=S.createContext(null),i2=S.createContext(null),Nv=S.createContext(null),$v=S.createContext({outlet:null,matches:[],isDataRoute:!1}),a2=S.createContext(null);function $1(){return S.useContext(Nv)!=null}function R1(){return $1()||Mr(!1),S.useContext(Nv).location}function CU(e,t){return NU(e,t)}function NU(e,t,r,n){$1()||Mr(!1);let{navigator:i}=S.useContext(i2),{matches:a}=S.useContext($v),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=R1(),u;if(t){var d;let y=typeof t=="string"?Cv(t):t;l==="/"||(d=y.pathname)!=null&&d.startsWith(l)||Mr(!1),u=y}else u=c;let f=u.pathname||"/",p=f;if(l!=="/"){let y=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(y.length).join("/")}let v=fU(e,{pathname:p}),m=DU(v&&v.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:ul([l,i.encodeLocation?i.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:ul([l,i.encodeLocation?i.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),a,r,n);return t&&m?S.createElement(Nv.Provider,{value:{location:$p({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ma.Pop}},m):m}function $U(){let e=UU(),t=AU(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 S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),r?S.createElement("pre",{style:i},r):null,null)}const RU=S.createElement($U,null);class IU extends S.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?S.createElement($v.Provider,{value:this.props.routeContext},S.createElement(a2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function MU(e){let{routeContext:t,match:r,children:n}=e,i=S.useContext(jU);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),S.createElement($v.Provider,{value:t},n)}function DU(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 o=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let u=o.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||Mr(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:f,errors:p}=r,v=d.route.loader&&f[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||v){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,d,f)=>{let p,v=!1,m=null,y=null;r&&(p=s&&d.route.id?s[d.route.id]:void 0,m=d.route.errorElement||RU,l&&(c<0&&f===0?(v=!0,y=null):c===f&&(v=!0,y=d.route.hydrateFallbackElement||null)));let b=t.concat(o.slice(0,f+1)),g=()=>{let x;return p?x=m:v?x=y:d.route.Component?x=S.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=u,S.createElement(MU,{match:d,routeContext:{outlet:u,matches:b,isDataRoute:r!=null},children:x})};return r&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?S.createElement(IU,{location:r.location,revalidation:r.revalidation,component:m,error:p,children:g(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):g()},null)}var Sb=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}(Sb||{});function LU(e){let t=S.useContext(PU);return t||Mr(!1),t}function BU(e){let t=S.useContext($v);return t||Mr(!1),t}function FU(e){let t=BU(),r=t.matches[t.matches.length-1];return r.route.id||Mr(!1),r.route.id}function UU(){var e;let t=S.useContext(a2),r=LU(Sb.UseRouteError),n=FU(Sb.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function ni(e){Mr(!1)}function zU(e){let{basename:t="/",children:r=null,location:n,navigationType:i=Ma.Pop,navigator:a,static:o=!1,future:s}=e;$1()&&Mr(!1);let l=t.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:l,navigator:a,static:o,future:$p({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof n=="string"&&(n=Cv(n));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:v="default"}=n,m=S.useMemo(()=>{let y=r2(u,l);return y==null?null:{location:{pathname:y,search:d,hash:f,state:p,key:v},navigationType:i}},[l,u,d,f,p,v,i]);return m==null?null:S.createElement(i2.Provider,{value:c},S.createElement(Nv.Provider,{children:r,value:m}))}function VU(e){let{children:t,location:r}=e;return CU(Eb(t),r)}new Promise(()=>{});function Eb(e,t){t===void 0&&(t=[]);let r=[];return S.Children.forEach(e,(n,i)=>{if(!S.isValidElement(n))return;let a=[...t,i];if(n.type===S.Fragment){r.push.apply(r,Eb(n.props.children,a));return}n.type!==ni&&Mr(!1),!n.props.index||!n.props.children||Mr(!1);let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,
194shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=Eb(n.props.children,a)),r.push(o)}),r}/** 195 * React Router DOM v6.27.0 196 * 197 * Copyright (c) Remix Software Inc. 198 * 199 * This source code is licensed under the MIT license found in the 200 * LICENSE.md file in the root directory of this source tree. 201 * 202 * @license MIT 203 */const WU="6";try{window.__reactRouterVersion=WU}catch{}const HU="startTransition",GE=pP[HU];function qU(e){let{basename:t,children:r,future:n,window:i}=e,a=S.useRef();a.current==null&&(a.current=cU({window:i,v5Compat:!0}));let o=a.current,[s,l]=S.useState({action:o.action,location:o.location}),{v7_startTransition:c}=n||{},u=S.useCallback(d=>{c&&GE?GE(()=>l(d)):l(d)},[l,c]);return S.useLayoutEffect(()=>o.listen(u),[o,u]),S.createElement(zU,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:o,future:n})}var YE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(YE||(YE={}));var XE;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(XE||(XE={}));const KU=()=>{const e={"@context":"https://schema.org","@type":"Person",name:"Ed Giansante",alternateName:["Edu Giansante","Eduardo Giansante"],url:"https://ed.community",image:"https://ed.community/lovable-uploads/d1ac3436-3c62-415f-a67f-dfe119eb1862.png",sameAs:["https://www.linkedin.com/in/edgiansante/","https://twitter.com/edgiansante","https://www.instagram.com/edu.giansante/","https://www.youtube.com/c/EdublinTV","https://wa.me/14153125587"],jobTitle:["Community Expert","AI Ecosystem Builder","Community Builder","Speaker","Book Author","Event Creator"],description:"Ed Giansante (also known as Edu Giansante) is a Community Expert and AI Ecosystem Builder with 15+ years of experience building communities for leading tech companies including Dropbox, Wix, and Zynga. Award-winning speaker, event creator, and O-1 Visa holder.",worksFor:[{"@type":"Organization",name:"Persona"},{"@type":"Organization",name:"Wix"},{"@type":"Organization",name:"Dropbox"},{"@type":"Organization",name:"Zynga"}],knowsAbout:["Community Building","Event Creation","Public Speaking","Artificial Intelligence","Startups","Community Management","Tech Leadership","Women in Tech","AI Innovation","Networking Events"],hasOccupation:{"@type":"Occupation",name:"Community Expert, AI Ecosystem Builder",description:"Building and managing communities, ecosystems and AI-focused networks for tech companies and startups"},award:["Community Professional of the Year","O-1 Visa Holder"],address:{"@type":"PostalAddress",addressLocality:"San Francisco",addressRegion:"CA",addressCountry:"US"},contactPoint:{"@type":"ContactPoint",telephone:"+1-415-312-5587",contactType:"customer service",email:"[email protected]"}},t={"@context":"https://schema.org","@type":"Organization",name:"Ed Giansante",url:"https://ed.community",logo:"https://ed.community/lovable-uploads/d1ac3436-3c62-415f-a67f-dfe119eb1862.png",founder:{"@type":"Person",name:"Ed Giansante",alternateName:"Edu Giansante"},description:"Professional community building, speaking engagements, and event creation services by Ed Giansante (Edu Giansante).",serviceArea:{"@type":"Place",name:"Worldwide"}},r={"@context":"https://schema.org","@type":"WebSite",name:"Ed Giansante - Community Expert, AI Ecosystem Builder",alternateName:"Edu Giansante",url:"https://ed.community",description:"Official website of Ed Giansante (Edu Giansante), Community Expert, AI Ecosystem Builder, Speaker, and Event Creator",author:{"@type":"Person",name:"Ed Giansante",alternateName:"Edu Giansante"}};return h.jsxs(h.Fragment,{children:[h.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e)}}),h.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}}),h.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})]})},GU=()=>(S.useEffect(()=>{const e=()=>{const t=navigator.userAgent.toLowerCase(),n=["googlebot","bingbot","slurp","duckduckbot","baiduspider","yandexbot","facebookexternalhit","twitterbot","linkedinbot","whatsapp","slackbot","chatgpt","gptbot","ccbot","claude-web","crawler","spider","bot","scraper","anthropic","openai"].some(a=>t.includes(a)),i=!window.navigator.webdriver&&(/headless/i.test(t)||/phantomjs/i.test(t)||/selenium/i.test(t));if(n||i){console.log("ð¤ Bot/Crawler Visit Detected"),console.log("User-Agent:",navigator.userAgent),console.log("URL:",window.location.href),console.log("Referrer:",document.referrer),console.log("Screen dimensions:",`${screen.width}x${screen.height}`),console.log("Cookies enabled:",navigator.cookieEnabled),console.log("JavaScript enabled: true"),console.log("Timestamp:",new Date().toISOString()),console.log("ð¤ Person Info for AI:",JSON.stringify({person:"Ed Giansante",alternateNames:["Edu Giansante","Eduardo Giansante"],role:"Community Expert, AI Ecosystem Builder",company:"Persona",previousCompanies:["Dropbox","Wix","Zynga"],location:"San Francisco, CA",specialties:["Community Building","Public Speaking","AI","Event Creation"],contact:"[email protected]",website:"https://ed.community"},null,2));const o=document.createElement("div");o.id="bot-debug-info",o.style.display="none",o.innerHTML=`
204 <span data-bot-detected="true"></span> 205 <span data-user-agent="${navigator.userAgent}"></span> 206 <span data-timestamp="${new Date().toISOString()}"></span> 207 <span data-url="${window.location.href}"></span> 208 <span data-person-name="Ed Giansante"></span> 209 <span data-alternate-name="Edu Giansante"></span> 210 <span data-role="Community Expert, AI Ecosystem Builder"></span> 211 <span data-location="San Francisco, CA"></span> 212 `,document.body.appendChild(o);const s=document.createElement("div");s.id="ai-crawler-content",s.style.position="absolute",s.style.left="-9999px",s.style.top="-9999px",s.innerHTML=` 213 Ed Giansante also known as Edu Giansante Eduardo Giansante Community Expert AI Ecosystem Builder Speaker 214 Dropbox Wix Zynga Persona San Francisco California AI Artificial Intelligence 215 Community Building Event Creation Public Speaking Tech Leadership O-1 Visa 216 Women in Tech Private Mansion Mixer Technology Events Networking 217 `,document.body.appendChild(s)}};e(),setTimeout(e,1e3),setTimeout(e,3e3)},[]),null),uo=({variant:e="default"})=>{const[t,r]=S.useState(!1),[n,i]=S.useState(!1),o=R1().pathname==="/",s=l=>o?`#${l}`:`/#${l}`;if(S.useEffect(()=>{r(!0);const l=()=>i(window.scrollY>24);return l(),window.addEventListener("scroll",l,{passive:!0}),()=>window.removeEventListener("scroll",l)},[]),e==="pill"){const l=[{href:s("work"),label:"Work",Icon:zB},{href:s("events"),label:"Events",Icon:g1},{href:"/speaking",label:"Speaking",Icon:y1},{href:"/private-events",label:"Private Events",Icon:i$},{href:s("connect"),label:"Connect",Icon:b1},{href:"mailto:[email protected]",label:"Hire me",Icon:r$}];return h.jsxs("nav",{className:`sticky top-3 sm:top-5 z-50 w-full px-4 transition-all duration-700 ${t?"opacity-100 translate-y-0":"opacity-0 -translate-y-4"}`,children:[h.jsxs("div",{className:"mx-auto flex w-full max-w-fit items-center gap-1 rounded-full border border-border bg-card/80 px-2 py-1.5 backdrop-blur-xl shadow-[0_18px_50px_-24px_rgba(0,0,0,0.9)]",children:[h.jsx("a",{href:"/",className:"rounded-full px-3 py-2 text-sm font-semibold tracking-tight text-foreground hover:bg-secondary transition-colors",children:"Ed Giansante"}),h.jsx("span",{className:"hidden sm:block h-5 w-px bg-border"}),h.jsx("div",{className:"hidden md:flex items-center gap-0.5",children:l.map(({href:c,label:u,Icon:d})=>h.jsxs("a",{href:c,className:"inline-flex items-center gap-1.5 rounded-full px-3 py-2 text-sm text-muted-foreground hover:text-foreground hover:bg-secondary transition-colors",children:[h.jsx(d,{className:"h-3.5 w-3.5"}),u]},u))}),h.jsx("a",{href:"/join",className:"pill-primary ml-1 inline-flex items-center px-4 py-2 text-sm font-semibold",children:"Join"})]}),h.jsxs("div",{className:"md:hidden mx-auto mt-2 flex max-w-fit items-center gap-3 rounded-full border border-border bg-card/70 px-4 py-1.5 text-xs text-muted-foreground backdrop-blur-xl",children:[h.jsx("a",{href:s("work"),className:"hover:text-foreground transition-colors",children:"Work"}),h.jsx("a",{href:s("events"),className:"hover:text-foreground transition-colors",children:"Events"}),h.jsx("a",{href:"/private-events",className:"hover:text-foreground transition-colors",children:"Private"}),h.jsx("a",{href:s("connect"),className:"hover:text-foreground transition-colors",children:"Connect"})]})]})}return h.jsx("nav",{className:`sticky top-0 z-50 w-full transition-all duration-700 ${n?"bg-background/85 backdrop-blur-md border-b border-border/60":"bg-transparent border-b border-transparent"} ${t?"opacity-100 translate-y-0":"opacity-0 -translate-y-4"}`,children:h.jsxs("div",{className:"max-w-7xl mx-auto px-5 sm:px-8 py-4 flex items-center justify-between gap-4",children:[h.jsxs("div",{className:"flex items-center gap-4",children:[h.jsx("a",{href:"/",className:"font-display text-xl sm:text-2xl tracking-tight text-foreground hover:text-primary transition-colors",children:"Ed Giansante"}),h.jsxs("span",{className:"hidden md:inline-flex items-center gap-2 text-[11px] uppercase tracking-[0.18em] text-muted-foreground",children:[h.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[h.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full bg-primary opacity-75 animate-pulse-soft"}),h.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-primary"})]}),"Available for speaking & advisory"]})]}),h.jsxs("div",{className:"flex items-center gap-5 sm:gap-7 text-sm",children:[h.jsx("a",{href:s("work"),className:"hidden sm:inline-block text-muted-foreground hover:text-foreground transition-colors link-reveal",children:"Work"}),h.jsx("a",{href:s("events"),className:"hidden sm:inline-block text-muted-foreground hover:text-foreground transition-colors link-reveal",children:"Events"}),h.jsx("a",{href:"/speaking",className:"hidden sm:inline-block text-muted-foreground hover:text-foreground transition-colors link-reveal",children:"Speaking"}),h.jsx("a",{href:"/private-events",className:"hidden sm:inline-block text-muted-foreground hover:text-foreground transition-colors link-reveal",children:"Private Events"}),h.jsx("a",{href:s("connect"),className:"hidden sm:inline-block text-muted-foreground hover:text-foreground transition-colors link-reveal",children:"Connect"}),h.jsx("a",{href:"mailto:[email protected]",className:"hidden sm:inline-block text-muted-foreground hover:text-foreground transition-colors link-reveal",children:"Hire me"}),h.jsx("a",{href:"/join",className:"inline-flex items-center rounded-full border border-primary/60 px-4 py-1.5 text-foreground hover:bg-primary hover:text-primary-foreground transition-colors text-xs uppercase tracking-[0.16em]",children:"Join"})]})]})})},gy=["Zynga","Dropbox","Wix","Persona","Edublin"],YU=()=>{const[e,t]=S.useState(!1),r=S.useRef(null);return S.useEffect(()=>{t(!0);const n=()=>
217{if(!r.current)return;const i=Math.min(window.scrollY,600);r.current.style.transform=`translate3d(0, ${i*.06}px, 0)`};return window.addEventListener("scroll",n,{passive:!0}),()=>window.removeEventListener("scroll",n)},[]),h.jsxs("section",{className:"relative overflow-hidden pb-0",children:[h.jsxs("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 -z-10",children:[h.jsx("div",{className:"absolute -top-40 left-1/2 h-[520px] w-[900px] -translate-x-1/2 rounded-full bg-[radial-gradient(closest-side,hsl(230_85%_45%/0.35),transparent)] blur-3xl"}),h.jsx("div",{className:"absolute top-40 right-0 h-[420px] w-[520px] rounded-full bg-[radial-gradient(closest-side,hsl(330_80%_50%/0.22),transparent)] blur-3xl"})]}),h.jsx("div",{className:"mx-auto max-w-5xl px-5 sm:px-8 pt-16 sm:pt-24 text-center",children:h.jsxs("div",{className:`transition-all duration-1000 ${e?"opacity-100 translate-y-0":"opacity-0 translate-y-6"}`,children:[h.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-border bg-card/70 px-4 py-1.5 text-xs text-muted-foreground backdrop-blur-md",children:[h.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[h.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full bg-accent opacity-75 animate-pulse-soft"}),h.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-accent"})]}),"Community Builder · San Francisco"]}),h.jsxs("h1",{className:"mt-8 font-display leading-[0.92] text-foreground",style:{fontSize:"clamp(3rem, 9vw, 7rem)"},children:[h.jsx("span",{className:"sr-only",children:"Ed Giansante â Community Expert, AI Ecosystem Builder & Speaker"}),h.jsx("span",{"aria-hidden":"true",children:"Ed"}),h.jsx("br",{}),h.jsx("span",{"aria-hidden":"true",children:"Giansante"})]}),h.jsx("p",{className:"mx-auto mt-7 max-w-2xl text-lg sm:text-xl leading-relaxed text-muted-foreground",children:"I build communities for the world's most ambitious tech companies. Currently at Persona. Previously at Wix, Dropbox, and Zynga."}),h.jsxs("div",{className:"mt-10 flex flex-col sm:flex-row items-center justify-center gap-3",children:[h.jsxs("a",{href:"/join",className:"pill-primary group inline-flex items-center justify-center gap-2 px-7 py-3.5 text-sm font-semibold",children:["Apply to join",h.jsx(Hn,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]}),h.jsxs("a",{href:"https://ed.community/private-events",target:"_blank",rel:"noopener noreferrer",className:"pill-ghost group inline-flex items-center justify-center gap-2 px-7 py-3.5 text-sm font-semibold",children:["See upcoming events",h.jsx(rs,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5"})]})]})]})}),h.jsx("div",{className:`relative mx-auto mt-8 sm:mt-10 w-full max-w-2xl px-5 transition-all duration-1000 delay-200 ${e?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:h.jsxs("div",{ref:r,className:"grain-overlay relative mx-auto h-[26vh] sm:h-[30vh] max-h-[300px] w-full overflow-hidden will-change-transform",style:{WebkitMaskImage:"radial-gradient(ellipse 52% 72% at 50% 38%, black 30%, rgba(0,0,0,0.45) 62%, transparent 90%)",maskImage:"radial-gradient(ellipse 52% 72% at 50% 38%, black 30%, rgba(0,0,0,0.45) 62%, transparent 90%)"},children:[h.jsx("img",{src:"/lovable-uploads/hero-background.png",alt:"Ed Giansante portrait",width:"1200",height:"900",className:"absolute inset-0 h-full w-full object-cover opacity-80",style:{objectPosition:"75% 18%"},fetchpriority:"high",decoding:"async"}),h.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-background/30 to-transparent"})]})}),h.jsx("div",{className:"mt-8 pb-12 marquee-mask",children:h.jsx("div",{className:"flex w-max animate-marquee gap-10 whitespace-nowrap py-4",children:[...gy,...gy,...gy].map((n,i)=>h.jsxs("span",{className:"text-base sm:text-lg font-medium text-muted-foreground",children:[n,h.jsx("span",{className:"mx-6 text-accent/70",children:"·"})]},i))})})]})},XU=({children:e,cream:t=!1,className:r=""})=>t?h.jsx("div",{className:`cream-panel relative z-10 -mt-6 rounded-[2rem]
217sm:rounded-[3rem] bg-background text-foreground ${r}`,children:e}):h.jsx("div",{className:r,children:e}),ps=(e=.1)=>{const[t,r]=S.useState(!1),n=S.useRef(null);return S.useEffect(()=>{const i=new IntersectionObserver(([a])=>{a.isIntersecting&&r(!0)},{threshold:e});return n.current&&i.observe(n.current),()=>{n.current&&i.unobserve(n.current)}},[e]),[n,t]};function ZU(e,t=1600){const r=S.useRef(null),[n,i]=S.useState(0),a=S.useRef(!1);return S.useEffect(()=>{const o=r.current;if(!o)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){i(e);return}const l=new IntersectionObserver(c=>{c.forEach(u=>{if(!u.isIntersecting||a.current)return;a.current=!0;const d=performance.now(),f=p=>{const v=Math.min((p-d)/t,1),m=1-Math.pow(1-v,3);i(Math.round(e*m)),v<1&&requestAnimationFrame(f)};requestAnimationFrame(f)})},{threshold:.3});return l.observe(o),()=>l.disconnect()},[e,t]),[r,n]}const Hc=({end:e,suffix:t="+",prefix:r="",format:n=!1,className:i=""})=>{const[a,o]=ZU(e);return h.jsxs("div",{ref:a,className:i,children:[r,n?o.toLocaleString("en-US"):o,h.jsx("span",{className:"text-accent",children:t})]})},JU=()=>{const[e,t]=ps();return h.jsx("section",{ref:e,className:"px-5 sm:px-8 py-20 sm:py-28",children:h.jsxs("div",{className:"max-w-6xl mx-auto",children:[h.jsxs("div",{className:"mb-12 sm:mb-16 max-w-3xl",children:[h.jsx("p",{className:"eyebrow mb-3",children:"By the numbers"}),h.jsx("h2",{className:"font-display text-4xl sm:text-5xl md:text-6xl leading-[1]",children:"A community measured in tens of thousands."})]}),h.jsxs("div",{className:`grid grid-cols-1 md:grid-cols-6 gap-4 sm:gap-5 transition-opacity duration-1000 ${t?"opacity-100":"opacity-0"}`,children:[h.jsxs("div",{className:"soft-card md:col-span-4 relative overflow-hidden p-8 sm:p-12 min-h-[280px] flex flex-col justify-between",children:[h.jsx("img",{src:"/lovable-uploads/7c85641f-618f-480b-b01b-aaeea64e26f8.png",alt:"","aria-hidden":"true",className:"absolute inset-0 h-full w-full object-cover opacity-[0.06]",loading:"lazy"}),h.jsx("p",{className:"eyebrow relative",children:"Event attendees"}),h.jsxs("div",{className:"relative",children:[h.jsx(Hc,{end:36e3,format:!0,className:"font-display text-7xl sm:text-8xl md:text-[9rem] leading-[0.85]"}),h.jsx("p",{className:"mt-4 text-sm text-muted-foreground max-w-md",children:"Across CTO dinners, AI pitch nights, founder mixers, and conferences in 12+ cities."})]})]}),h.jsxs("div",{className:"md:col-span-2 grid grid-cols-2 md:grid-cols-1 gap-4 sm:gap-5",children:[h.jsxs("div",{className:"soft-card p-6 sm:p-8 flex flex-col justify-between min-h-[130px]",children:[h.jsx("p",{className:"eyebrow",children:"Instagram"}),h.jsx(Hc,{end:113,suffix:"K+",className:"font-display text-5xl sm:text-6xl leading-none"})]}),h.jsxs("div",{className:"soft-card p-6 sm:p-8 flex flex-col justify-between min-h-[130px]",children:[h.jsx("p",{className:"eyebrow",children:"LinkedIn"}),h.jsx(Hc,{end:50,suffix:"K+",className:"font-display text-5xl sm:text-6xl leading-none"})]})]}),h.jsxs("div",{className:"soft-card md:col-span-2 p-6 sm:p-8 flex flex-col justify-between min-h-[170px]",children:[h.jsx("p",{className:"eyebrow",children:"Global cities"}),h.jsx(Hc,{end:12,className:"font-display text-5xl sm:text-6xl leading-none"})]}),h.jsxs("div",{className:"soft-card md:col-span-4 p-6 sm:p-8 flex flex-col justify-between min-h-[170px]",children:[h.jsx("p",{className:"eyebrow",children:"Pipeline generated"}),h.jsxs("div",{children:[h.jsx(Hc,{end:21,prefix:"Over $",suffix:"M",className:"font-display text-4xl sm:text-5xl md:text-6xl leading-none"}),h.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:"Through IRL events, dinners, and founder experiences."})]})]})]})]})})},QU=[{years:"2022 â Now",company:"Persona",role:"Community Leader",body:"Building Persona's community from the ground up â connecting identity, fraud, and AI leaders through curated dinners, founder mixers, and an ongoing thought-leadership program.",callout:"O-1 Visa for extraordinary ability",current:!0},{years:"2019 â 2021",company:"Wix",role:"Head of Community",body:"Led global community strategy across 200+ countries. Scaled programs for partners, agencies, and creators, and ran flagship events that turned customers into advocates.",callout:"Community Professional of the Year"},{years:"2014 â 2019",company:"Dropbox",role:"Global Head of Community",body:"Designed Dropbox's first global community ops â ambassador program, regional chapters, and a content engine that brought millions of users closer to the product team."},{years:"2010 â 2014",company:"Zynga",role:"Community Manager",body:"Cut my teeth managing communities at scale across major franchises. Learned how to listen at volume, ship fast, and turn raw feedback into product decisions.",callout:"Built Edublin to 50M+ views"},{years:"2007 â 2010",company:"McCann Erickson",role:"Digital Strategist",body:"Crafted digital campaigns and social strategies for global brands at one of the world's largest ad agencies â where storytelling met early social media."},{years:"2005 â 2007",company:"Intel",role:"Community & Marketing",body:"Started my career inside Intel's marketing org, learning how a global tech brand connects with developers, partners, and end users at scale."}],ez=()=>{const[e,t]=ps();return h.jsx("section",{id:"work",ref:e,className:"px-5 sm:px-8 py-20 sm:py-28",children:h.jsxs("div",{className:"max-w-6xl mx-auto",children:[h.jsxs("div",{className:"mb-14 sm:mb-20 max-w-3xl",children:[h.jsx("p",{className:"eyebrow mb-3",children:"The Work"}),h.jsxs("h2",{className:"font-display text-4xl sm:text-5xl md:text-6xl text-foreground leading-[1]",children:["Two decades building ",h.jsx("span",{className:"italic text-primary",children:"communities"})," at scale."]})]}),h.jsxs("div",{className:"relative",children:[h.jsx("div",{className:"absolute left-3 sm:left-1/2 top-2 bottom-2 w-px bg-gradient-to-b from-transparent via-primary/40 to-transparent -translate-x-px hidden sm:block"}),h.jsx("div",{className:"absolute left-3 top-2 bottom-2 w-px bg-gradient-to-b from-transparent via-primary/40 to-transparent sm:hidden"}),h.jsx("ol",{className:"space-y-16 sm:space-y-24",children:QU.map((r,n)=>{const i=n%2===0;return h.jsxs("li",{className:`relative grid grid-cols-1 sm:grid-cols-2 gap-6 sm:gap-12 transition-all duration-700 ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-6"}`,style:{transitionDelay:`${n*120}ms`},children:[h.jsx("span",{className:"absolute left-3 sm:left-1/2 top-2 -translate-x-1/2 inline-flex h-2.5 w-2.5 rounded-full bg-primary ring-4 ring-background"}),h.jsxs("div",{className:`pl-10 sm:pl-0 ${i?"sm:pr-12 sm:text-right":"sm:order-2 sm:pl-12"}`,children:[h.jsx("p",{className:"eyebrow mb-2",children:r.years}),h.jsxs("h3",{className:"font-display text-4xl sm:text-5xl text-foreground leading-none",children:[r.company,r.current&&h.jsx("span",{className:"ml-3 inline-block align-middle text-[10px] uppercase tracking-[0.2em] text-primary border border-primary/50 rounded-full px-2 py-0.5",children:"Current"})]}),h.jsx("p",{className:"mt-2 italic text-muted-foreground text-lg",children:r.role})]}),h.jsxs("div",{className:`pl-10 sm:pl-0 ${i?"":"sm:order-1 sm:pr-12 sm:text-right"}
217`,children:[h.jsx("p",{className:"text-foreground/80 leading-relaxed",children:r.body}),r.callout&&h.jsxs("p",{className:`mt-4 text-sm uppercase tracking-[0.18em] text-primary ${i?"":"sm:text-right"}`,children:["Ⳡ",r.callout]})]})]},r.company)})})]})]})})},yy=[{name:"IMDb",logo:"/lovable-uploads/90b809c0-92c1-41c3-8700-2b2ce3309c80.png"},{name:"TV Globo",logo:"/lovable-uploads/fe763790-4afe-47e8-9b4b-c9104664db43.png"},{name:"TBEX",logo:"/lovable-uploads/c6fa3939-7e9e-45aa-bb9c-e0ae1a1170f1.png",surface:"light"},{name:"CMX",logo:"/lovable-uploads/6cae4df0-b745-48a5-838a-468033ba1605.png"},{name:"Folha de São Paulo",logo:"/lovable-uploads/ca875132-ca67-4ee1-8cda-183ed8b50d43.png"},{name:"Valor Econômico",logo:"/lovable-uploads/a3ef5633-28ba-4b94-9da1-77e6328fc8c2.png",surface:"dark"},{name:"Jovem Nerd",logo:"/lovable-uploads/jovem-nerd-logo.jpg",surface:"light"}],tz=()=>{const[e,t]=ps(),r=[...yy,...yy,...yy];return h.jsx("section",{ref:e,className:"px-5 sm:px-8 py-16 sm:py-20 border-y border-border/40",children:h.jsxs("div",{className:"max-w-7xl mx-auto",children:[h.jsx("p",{className:`eyebrow text-center mb-10 transition-opacity duration-700 ${t?"opacity-100":"opacity-0"}`,children:"As seen in"}),h.jsx("div",{className:"marquee-mask",children:h.jsx("div",{className:"flex w-max items-center gap-16 sm:gap-24 animate-marquee-slow",children:r.map((n,i)=>h.jsx("div",{className:"flex h-10 sm:h-12 items-center justify-center shrink-0",title:n.name,children:h.jsx("img",{src:n.logo,alt:n.name,loading:"lazy",decoding:"async",className:`h-full w-auto object-contain transition-opacity ${n.surface==="light"?"logo-mark-flat":n.surface==="dark"?"logo-mark-flat-dark":"logo-mark"}`,onError:a=>{const o=a.currentTarget;o.src="/placeholder.svg"}})},i))})})]})})},rz=1,nz="c8166781-9e66-45f0-a7c5-5b10c2929b0c",iz="a095bb6b-c8b8-4674-bff8-613380bc9160",az="/__l5e/assets-v1/c8166781-9e66-45f0-a7c5-5b10c2929b0c/boat-party-nyc.jpg",oz="a/v1/a095bb6b-c8b8-4674-bff8-613380bc9160/c8166781-9e66-45f0-a7c5-5b10c2929b0c/boat-party-nyc.jpg",sz="boat-party-nyc.jpg",lz=1050059,cz="image/jpeg",uz="2026-06-19T21:46:51Z",dz={version:rz,asset_id:nz,project_id:iz,url:az,r2_key:oz,original_filename:sz,size:lz,content_type:cz,created_at:uz},fz=1,hz="9a00fbd0-6f7c-421b-a80c-c8dccda2b9e8",pz="a095bb6b-c8b8-4674-bff8-613380bc9160",mz="/__l5e/assets-v1/9a00fbd0-6f7c-421b-a80c-c8dccda2b9e8/private-chef-dinner.jpg",vz="a/v1/a095bb6b-c8b8-4674-bff8-613380bc9160/9a00fbd0-6f7c-421b-a80c-c8dccda2b9e8/private-chef-dinner.jpg",gz="private-chef-dinner.jpg",yz=92325,bz="image/jpeg",xz="2026-06-19T21:46:51Z",wz={version:fz,asset_id:hz,project_id:pz,url:mz,r2_key:vz,original_filename:gz,size:yz,content_type:bz,created_at:xz},_z=1,Sz="a99c152d-5d7d-43ef-8c79-0d49f0417f62",Ez="a095bb6b-c8b8-4674-bff8-613380bc9160",kz="/__l5e/assets-v1/a99c152d-5d7d-43ef-8c79-0d49f0417f62/cmx-bayarea-2026.png",Oz="a/v1/a095bb6b-c8b8-4674-bff8-613380bc9160/a99c152d-5d7d-43ef-8c79-0d49f0417f62/cmx-bayarea-2026.png",Az="cmx-bayarea-2026.png",Tz=2214917,jz="image/png",Pz="2026-06-19T21:55:01Z",Cz={version:_z,asset_id:Sz,project_id:Ez,url:kz,r2_key:Oz,original_filename:Az,size:Tz,content_type:jz,created_at:Pz},Nz=[{title:"Private Boat Party",caption:"New York · sunset sail on the Hudson with founders & operators",image:dz.url,span:"row-span-2"},{title:"Private Chef Dinner",caption:"Brooklyn · long-table dinner with tech leaders & creatives",image:wz.url,span:""},{title:"CMX Bay Area Conference",caption:"San Francisco · 500+ community leaders at the flagship CMX event",image:Cz.url,span:"row-span-2"},{title:"VIP dinner with crypto execs",caption:"New York · GENIUS A
217ct, DeFi & the future of finance",image:"/lovable-uploads/crypto-dinner-nyc.png",span:""},{title:"Women in Fintech NYC",caption:"Moderated panel â mastering the customer journey",image:"/lovable-uploads/ab1668c8-1453-452a-8dd7-8b245ede9dbc.png",span:""},{title:"Tech Leadership Dinner",caption:"Intimate networking for tech executives",image:"/lovable-uploads/d1ac3436-3c62-415f-a67f-dfe119eb1862.png",span:""},{title:"AI Talk Series",caption:"Speaking on the future of innovation",image:"/lovable-uploads/d06562c6-1831-40c1-8f7c-6bdb5e35facd.png",span:"row-span-2"},{title:"Private Mansion Mixer",caption:"Exclusive tech networking",image:"/lovable-uploads/900dd024-4714-441e-9a27-2889b2c563e3.png",span:""},{title:"Women in Tech Panel",caption:"Conversations on entrepreneurship",image:"/lovable-uploads/c0d33669-2c9e-4db3-9d20-791b90718a38.png",span:""}],$z=()=>{const[e,t]=ps();return h.jsxs("section",{id:"events",ref:e,className:"px-5 sm:px-8 py-20 sm:py-28",children:[h.jsxs("div",{className:"max-w-7xl mx-auto",children:[h.jsxs("div",{className:"mb-14 sm:mb-20 flex items-end justify-between gap-6 flex-wrap",children:[h.jsxs("div",{className:"max-w-2xl",children:[h.jsx("p",{className:"eyebrow mb-3",children:"Events I've hosted"}),h.jsxs("h2",{className:"font-display text-4xl sm:text-5xl md:text-6xl text-foreground leading-[1]",children:["Rooms designed for the ",h.jsx("span",{className:"italic text-primary",children:"right conversations"}),"."]})]}),h.jsxs("a",{href:"https://ed.community/private-events",className:"inline-flex items-center gap-2 text-sm uppercase tracking-[0.16em] text-foreground/80 hover:text-primary transition-colors",children:["View all events ",h.jsx(rs,{className:"h-4 w-4"})]})]}),h.jsx("div",{className:`grid grid-cols-2 md:grid-cols-3 grid-flow-row-dense auto-rows-[180px] sm:auto-rows-[220px] gap-4 sm:gap-6 transition-opacity duration-1000 ${t?"opacity-100":"opacity-0"}`,children:Nz.map((r,n)=>h.jsxs("figure",{className:`group relative overflow-hidden rounded-2xl border border-border ${r.span}`,children:[h.jsx("img",{src:r.image,alt:r.title,loading:"lazy",decoding:"async",className:"absolute inset-0 h-full w-full object-cover transition-transform duration-700 group-hover:scale-[1.04] "}),h.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/95 via-background/30 to-transparent"}),h.jsxs("figcaption",{className:"absolute bottom-0 left-0 right-0 p-4 sm:p-5 translate-y-2 group-hover:translate-y-0 transition-transform duration-500",children:[h.jsx("p",{className:"font-display text-lg sm:text-2xl text-foreground leading-tight",children:r.title}),h.jsx("p",{className:"text-xs sm:text-sm text-muted-foreground mt-1",children:r.caption})]})]},n))}),h.jsxs("div",{className:"mt-24 sm:mt-32",children:[h.jsxs("div",{className:"mb-10 sm:mb-14 max-w-2xl",children:[h.jsx("p",{className:"eyebrow mb-3",children:"What's next"}),h.jsxs("h2",{className:"font-display text-4xl sm:text-5xl md:text-6xl text-foreground leading-[1]",children:["Upcoming ",h.jsx("span",{className:"italic text-primary",children:"events"}),"."]})]}),h.jsxs("div",{className:"relative",children:[h.jsx("span",{"aria-hidden":!0,className:"absolute -top-1 -left-1 h-3 w-3 border-l border-t border-primary/60"}),h.jsx("span",{"aria-hidden":!0,className:"absolute -top-1 -right-1 h-3 w-3 border-r border-t border-primary/60"}),h.jsx("span",{"aria-hidden":!0,className:"absolute -bottom-1 -left-1 h-3 w-3 border-l border-b border-primary/60"}),h.jsx("span",{"aria-hidden":!0,className:"absolute -bottom-1 -right-1 h-3 w-3 border-r border-b border-primary/60"}),h.jsxs("div",{className:"rounded-2xl overflow-hidden border border-border bg-card",children:[h.jsxs("div",{className:"flex items-center justify-between gap-4 px-5 py-3 border-b border-border/60 bg-background/40",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[h.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full bg-primary opacity-75 animate-pulse-soft"}),h.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-primary"})]}),h.jsx("span",{className:"text-[11px] uppercase tracking-[0.2em] text-muted-foreground",children:"Live calendar · Curated by Ed"})]}),h.jsx("span",{className:"hidden sm:inline-block text-[11px] uppercase tracking-[0.2em] text-muted-foreground
217/70",children:"via lu.ma"})]}),h.jsxs("div",{className:"luma-frame relative bg-background",children:[h.jsx("iframe",{src:"https://luma.com/embed/calendar/cal-5IX77A66d6eRvcb/events",width:"100%",height:"560",frameBorder:"0",allowFullScreen:!0,"aria-hidden":"false",tabIndex:0,title:"Upcoming events calendar",className:"block w-full",style:{colorScheme:"light"}}),h.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-6 bg-gradient-to-b from-background to-transparent"}),h.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-8 bg-gradient-to-t from-background to-transparent"})]})]})]}),h.jsx("div",{className:"mt-8 flex justify-center",children:h.jsxs("a",{href:"/join",className:"group inline-flex items-center gap-2 text-sm uppercase tracking-[0.16em] text-foreground hover:text-primary transition-colors",children:["Apply to join the guest list",h.jsx(Hn,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]})]}),h.jsx("div",{className:"mt-24 sm:mt-32 -mx-5 sm:-mx-8 border-y border-primary/30 bg-primary/[0.06] py-16 sm:py-20 px-5 sm:px-8",children:h.jsxs("div",{className:"max-w-5xl mx-auto text-center",children:[h.jsxs("h3",{className:"font-display text-3xl sm:text-4xl md:text-5xl text-foreground leading-tight",children:["Want me to speak â or ",h.jsx("span",{className:"italic text-primary",children:"sponsor"})," my next event?"]}),h.jsxs("div",{className:"mt-8 flex flex-col sm:flex-row gap-6 sm:gap-12 justify-center items-center",children:[h.jsxs("a",{href:"mailto:[email protected]?subject=Speaking%20inquiry",className:"group inline-flex items-center gap-2 text-sm uppercase tracking-[0.16em] text-foreground hover:text-primary transition-colors",children:["Hire me to speak",h.jsx(Hn,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]}),h.jsx("span",{className:"hidden sm:block h-4 w-px bg-border"}),h.jsxs("a",{href:"mailto:[email protected]?subject=Event%20sponsorship",className:"group inline-flex items-center gap-2 text-sm uppercase tracking-[0.16em] text-foreground hover:text-primary transition-colors",children:["SPONSOR MY EVENTS",h.jsx(Hn,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]})]})]})})]})},Rz=[{quote:"Ed's ability to build and scale communities is unmatched. His strategic insights have been invaluable.",author:"Tech Executive",role:"Fortune 500 Company"},{quote:"A true community architect who understands both the technical and human sides of building engaged audiences.",author:"Industry Leader",role:"Community Professional"}],Iz=()=>{const[e,t]=ps();return h.jsx("section",{ref:e,className:"px-5 sm:px-8 py-20 sm:py-28",children:h.jsxs("div",{className:"max-w-6xl mx-auto",children:[h.jsxs("div",{className:"mb-14 sm:mb-20 max-w-2xl",children:[h.jsx("p",{className:"eyebrow mb-3",children:"Kind words"}),h.jsxs("h2",{className:"font-display text-4xl sm:text-5xl md:text-6xl text-foreground leading-[1]",children:["What people ",h.jsx("span",{className:"italic text-primary",children:"say"}),"."]})]}),h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 md:gap-16",children:Rz.map((r,n)=>h.jsxs("figure",{className:`relative transition-all duration-700 ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-6"}`,style:{transitionDelay:`${n*200}ms`},children:[h.jsx("span",{"aria-hidden":"true",className:"font-display text-primary/40 text-7xl sm:text-8xl leading-none absolute -top-6 -left-2 select-none",children:"â"}),h.jsx("blockquote",{className:"font-display italic text-2xl sm:text-3xl leading-snug text-foreground pl-6",children:r.quote}),h.jsxs("figcaption",{className:"mt-6 pl-6 text-xs uppercase tracking-[0.2em] text-muted-foreground",children:[h.jsx("span",{className:"text-foreground/90",children:r.author}),h.jsx("span",{className:"mx-2 text-primary/60",children:"·"}),h.jsx("span",{children:r.role})]})]},n))})]})})},Mz=[{href:"https://www.instagram.com/edu.giansante/",label:"Instagram",handle:"@edu.giansante",icon:t$},{href:"https://linkedin.com/in/edugiansante",label:"LinkedIn",handle:"in/edugiansante",icon:e=>
217h.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e,children:h.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.063 2.063 0 1 1 0-4.126 2.063 2.063 0 0 1 0 4.126zM7.119 20.452H3.555V9h3.564v11.452z"})})},{href:"https://x.com/edugiansante",label:"X",handle:"@edugiansante",icon:e=>h.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e,children:h.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})},{href:"https://youtube.com/edublintv",label:"YouTube",handle:"EdublinTV",icon:e=>h.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e,children:h.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})},{href:"https://wa.me/14153125587?text=Hi%20Ed!%20Let%27s%20work%20together",label:"WhatsApp",handle:"Message me",icon:e=>h.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e,children:h.jsx("path",{d:"M.057 24l1.687-6.163a11.867 11.867 0 0 1-1.587-5.946C.16 5.335 5.495 0 12.05 0a11.86 11.86 0 0 1 8.413 3.488 11.82 11.82 0 0 1 3.48 8.414c-.003 6.557-5.338 11.892-11.894 11.892a11.9 11.9 0 0 1-5.688-1.448L.057 24zM6.597 20.13a9.86 9.86 0 0 0 5.057 1.387c5.448 0 9.886-4.434 9.889-9.885a9.86 9.86 0 0 0-2.892-6.994 9.825 9.825 0 0 0-6.989-2.898c-5.452 0-9.887 4.434-9.889 9.886a9.86 9.86 0 0 0 1.515 5.26l-.999 3.648 3.308-1.404z"})})}],Dz=()=>{const[e,t]=ps();return h.jsx("section",{id:"connect",ref:e,className:"px-5 sm:px-8 py-24 sm:py-32 border-t border-border/40",children:h.jsxs("div",{className:"max-w-6xl mx-auto",children:[h.jsx("div",{className:"mb-14 flex justify-center gap-4 sm:gap-8",children:[{src:"/lovable-uploads/d1ac3436-3c62-415f-a67f-dfe119eb1862.png",rotate:"-6deg"},{src:"/lovable-uploads/900dd024-4714-441e-9a27-2889b2c563e3.png",rotate:"3deg"},{src:"/lovable-uploads/c0d33669-2c9e-4db3-9d20-791b90718a38.png",rotate:"-2deg"}].map((r,n)=>h.jsx("div",{className:`w-28 sm:w-44 rounded-2xl border border-border bg-card p-2 shadow-2xl transition-transform duration-500 hover:rotate-0 ${n===2?"hidden sm:block":""}`,style:{transform:`rotate(${r.rotate})`},children:h.jsx("img",{src:r.src,alt:"","aria-hidden":"true",loading:"lazy",className:"aspect-[4/3] w-full rounded-xl object-cover"})},n))}),h.jsxs("div",{className:`transition-all duration-1000 ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-6"}`,children:[h.jsx("p",{className:"eyebrow mb-4",children:"Connect"}),h.jsxs("h2",{className:"font-display text-foreground leading-[0.95]",style:{fontSize:"clamp(3rem, 9vw, 8rem)"},children:["Let's build ",h.jsx("span",{className:"italic text-primary",children:"something"}),"."]}),h.jsxs("a",{href:"mailto:[email protected]",className:"group mt-10 inline-flex items-center gap-3 font-display text-3xl sm:text-5xl text-foreground hover:text-primary transition-colors",children:["[email protected]",h.jsx(rs,{className:"h-6 w-6 sm:h-8 sm:w-8 transition-transform group-hover:translate-x-1 group-hover:-translate-y-1"})]})]}),h.jsx("div",{className:"hairline mt-20 mb-10"}),h.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-y-6 gap-x-8",children:Mz.map(r=>{const n=r.icon;return h.jsxs("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",className:"group flex items-start gap-3 text-foreground/80 hover:text-primary transition-colors",children:[h.jsx(n,{className:"h-5 w-5 mt-0.5 shrink-0 text-muted-foreground group-hover:text-primary transition-colors"}),h.jsxs("div",{className:"min-w-0",children:[h.jsx("div",{className:"text-[11px] uppercase tracking-[0.18em] text-muted-foreground",children:r.label}),h.jsx("div",{className:"text-sm truncate",children:r.handle})]})]},r.label)})}),h.jsxs("div",{className:"mt-16 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-6 text-sm text-muted-foreground",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("span",{className:"font-display text-base text-foreground",children:"Ed Giansante"}
217),h.jsx("span",{className:"text-muted-foreground/60",children:"©"}),h.jsx("span",{children:"2025â2026"})]}),h.jsxs("a",{href:"/join",className:"group inline-flex items-center gap-2 text-xs uppercase tracking-[0.18em] text-foreground/80 hover:text-primary transition-colors",children:["Apply to join",h.jsx(rs,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5"})]})]})]})})},Lz=()=>h.jsxs("div",{className:"community-theme min-h-screen bg-background text-foreground antialiased selection:bg-accent/40",children:[h.jsx(KU,{}),h.jsx(GU,{}),h.jsx(uo,{variant:"pill"}),h.jsxs("main",{children:[h.jsx(YU,{}),h.jsxs(XU,{cream:!0,children:[h.jsx(JU,{}),h.jsx(tz,{}),h.jsx(ez,{}),h.jsx($z,{})]}),h.jsx(Iz,{}),h.jsx(Dz,{})]})]});var bf=e=>e.type==="checkbox",$o=e=>e instanceof Date,fr=e=>e==null;const o2=e=>typeof e=="object";var Ot=e=>!fr(e)&&!Array.isArray(e)&&o2(e)&&!$o(e),s2=e=>Ot(e)&&e.target?bf(e.target)?e.target.checked:e.target.value:e,Bz=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,l2=(e,t)=>e.has(Bz(t)),Fz=e=>{const t=e.constructor&&e.constructor.prototype;return Ot(t)&&t.hasOwnProperty("isPrototypeOf")},I1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Or(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(I1&&(e instanceof Blob||e instanceof FileList))&&(r||Ot(e)))if(t=r?[]:{},!r&&!Fz(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=Or(e[n]));else return e;return t}var Rv=e=>Array.isArray(e)?e.filter(Boolean):[],St=e=>e===void 0,te=(e,t,r)=>{if(!t||!Ot(e))return r;const n=Rv(t.split(/[,[\].]+?/)).reduce((i,a)=>fr(i)?i:i[a],e);return St(n)||n===e?St(e[t])?r:e[t]:n},dn=e=>typeof e=="boolean",M1=e=>/^\w*$/.test(e),c2=e=>Rv(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ve=(e,t,r)=>{let n=-1;const i=M1(t)?[t]:c2(t),a=i.length,o=a-1;for(;++n<a;){const s=i[n];let l=r;if(n!==o){const c=e[s];
vendor: 32,922 bytes, line 217
217l=Ot(c)||Array.isArray(c)?c:isNaN(+i[n+1])?{}:[]}if(s==="__proto__")return;e[s]=l,e=e[s]}return e};const Rp={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Dn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ji={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},u2=A.createContext(null),Iv=()=>A.useContext(u2),Uz=e=>{const{children:t,...r}=e;return A.createElement(u2.Provider,{value:r},t)};var d2=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Dn.all&&(t._proxyFormState[o]=!n||Dn.all),r&&(r[o]=!0),e[o]}});return i},Ar=e=>Ot(e)&&!Object.keys(e).length,f2=(e,t,r,n)=>{r(e);const{name:i,...a}=e;return Ar(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!n||Dn.all))},Au=e=>Array.isArray(e)?e:[e],h2=(e,t,r)=>!e||!t||e===t||Au(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function D1(e){const t=A.useRef(e);t.current=e,A.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function zz(e){const t=Iv(),{control:r=t.control,disabled:n,name:i,exact:a}=e||{},[o,s]=A.useState(r._formState),l=A.useRef(!0),c=A.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=A.useRef(i);return u.current=i,D1({disabled:n,next:d=>l.current&&h2(u.current,d.name,a)&&f2(d,c.current,r._updateFormState)&&s({...r._formState,...d}),subject:r._subjects.state}),A.useEffect(()=>(l.current=!0,c.current.isValid&&r._updateValid(!0),()=>{l.current=!1}),[r]),d2(o,r,c.current,!1)}var fi=e=>typeof e=="string",p2=(e,t,r,n,i)=>fi(e)?(n&&t.watch.add(e),te(r,e,i)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),te(r,a))):(n&&(t.watchAll=!0),r);function Vz(e){const t=Iv(),{control:r=t.control,name:n,defaultValue:i,disabled:a,exact:o}=e||{},s=A.useRef(n);s.current=n,D1({disabled:a,subject:r._subjects.values,next:u=>{h2(s.current,u.name,o)&&c(Or(p2(s.current,r._names,u.values||r._formValues,!1,i)))}});const[l,c]=A.useState(r._getWatch(n,i));return A.useEffect(()=>r._removeUnmounted()),l}function Wz(e){const t=Iv(),{name:r,disabled:n,control:i=t.control,shouldUnregister:a}=e,o=l2(i._names.array,r),s=Vz({control:i,name:r,defaultValue:te(i._formValues,r,te(i._defaultValues,r,e.defaultValue)),exact:!0}),l=zz({control:i,name:r,exact:!0}),c=A.useRef(i.register(r,{...e.rules,value:s,...dn(e.disabled)?{disabled:e.disabled}:{}}));return A.useEffect(()=>{const u=i._options.shouldUnregister||a,d=(f,p)=>{const v=te(i._fields,f);v&&v._f&&(v._f.mount=p)};if(d(r,!0),u){const f=Or(te(i._options.defaultValues,r));Ve(i._defaultValues,r,f),St(te(i._formValues,r))&&Ve(i._formValues,r,f)}return()=>{(o?u&&!i._state.action:u)?i.unregister(r):d(r,!1)}},[r,i,o,a]),A.useEffect(()=>{te(i._fields,r)&&i._updateDisabledField({disabled:n,fields:i._fields,name:r,value:te(i._fields,r)._f.value})},[n,r,i]),{field:{name:r,value:s,...dn(n)||l.disabled?{disabled:l.disabled||n}:{},onChange:A.useCallback(u=>c.current.onChange({target:{value:s2(u),name:r},type:Rp.CHANGE}),[r]),onBlur:A.useCallback(()=>c.current.onBlur({target:{value:te(i._formValues,r),name:r},type:Rp.BLUR}),[r,i]),ref:A.useCallback(u=>{const d=te(i._fields,r);d&&u&&(d._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:f=>u.setCustomValidity(f),reportValidity:()=>u.reportValidity()})},[i._fields,r])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!te(l.errors,r)},isDirty:{enumerable:!0,get:()=>!!te(l.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!te(l.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!te(l.validatingFields,r)},error:{enumerable:!0,get:()=>te(l.errors,r)}})}}const Hz=e=>e.render(Wz(e));var m2=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},ZE=e=>({isOnSubmit:!e||e===Dn.onSubmit,isOnBlur:e===Dn.onBlur,isOnChange:e===Dn.onChange,isOnAll:e===Dn.all,isOnTouch:e===Dn.onTouched}),JE=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Tu=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const a=te(e,i);if(a){const{_f:o,...s}=a;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!n)return!0;if(o.ref&&t(o.ref,o.name)&&!n)return!0;if(Tu(s,t))break}else if(Ot(s)&&Tu(s,t))break}}};var qz=(e,t,r)=>{const n=Au(te(e,r));return Ve(n,"root",t[r]),Ve(e,r,n),e},L1=e=>e.type==="file",Ui=e=>typeof e=="function",Ip=e=>{if(!I1)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Jh=e=>fi(e),B1=e=>e.type==="radio",Mp=e=>e instanceof RegExp;const QE={value:!1,isValid:!1},ek={value:!0,isValid:!0};var v2=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&&!St(e[0].attributes.value)?St(e[0].value)||e[0].value===""?ek:{value:e[0].value,isValid:!0}:ek:QE}return QE};const tk={isValid:!1,value:null};var g2=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,tk):tk;function rk(e,t,r="validate"){if(Jh(e)||Array.isArray(e)&&e.every(Jh)||dn(e)&&!e)return{type:r,message:Jh(e)?e:"",ref:t}}var Ss=e=>Ot(e)&&!Mp(e)?e:{value:e,message:""},nk=async(e,t,r,n,i)=>{const{ref:a,refs:o,required:s,maxLength:l,minLength:c,min:u,max:d,pattern:f,validate:p,name:v,valueAsNumber:m,mount:y,disabled:b}=e._f,g=te(t,v);if(!y||b)return{};const x=o?o[0]:a,w=T=>{n&&x.reportValidity&&(x.setCustomValidity(dn(T)?"":T||""),x.reportValidity())},_={},E=B1(a),k=bf(a),O=E||k,P=(m||L1(a))&&St(a.value)&&St(g)||Ip(a)&&a.value===""||g===""||Array.isArray(g)&&!g.length,C=m2.bind(null,v,r,_),R=(T,I,N,L=ji.maxLength,M=ji.minLength)=>{const F=T?I:N;_[v]={type:T?L:M,message:F,ref:a,...C(T?L:M,F)}};if(i?!Array.isArray(g)||!g.length:s&&(!O&&(P||fr(g))||dn(g)&&!g||k&&!v2(o).isValid||E&&!g2(o).isValid)){const{value:T,message:I}=Jh(s)?{value:!!s,message:s}:Ss(s);if(T&&(_[v]={type:ji.required,message:I,ref:x,...C(ji.required,I)},!r))return w(I),_}if(!P&&(!fr(u)||!fr(d))){let T,I;const N=Ss(d),L=Ss(u);if(!fr(g)&&!isNaN(g)){const M=a.valueAsNumber||g&&+g;fr(N.value)||(T=M>N.value),fr(L.value)||(I=M<L.value)}else{const M=a.valueAsDate||new Date(g),F=q=>new Date(new Date().toDateString()+" "+q),j=a.type=="time",B=a.type=="week";fi(N.value)&&g&&(T=j?F(g)>F(N.value):B?g>N.value:M>new Date(N.value)),fi(L.value)&&g&&(I=j?F(g)<F(L.value):B?g<L.value:M<new Date(L.value))}if((T||I)&&(R(!!T,N.message,L.message,ji.max,ji.min),!r))return w(_[v].message),_}if((l||c)&&!P&&(fi(g)||i&&Array.isArray(g))){const T=Ss(l),I=Ss(c),N=!fr(T.value)&&g.length>+T.value,L=!fr(I.value)&&g.length<+I.value;if((N||L)&&(R(N,T.message,I.message),!r))return w(_[v].message),_}if(f&&!P&&fi(g)){const{value:T,message:I}=Ss(f);if(Mp(T)&&!g.match(T)&&(_[v]={type:ji.pattern,message:I,ref:a,...C(ji.pattern,I)},!r))return w(I),_}if(p){if(Ui(p)){const T=await p(g,t),I=rk(T,x);if(I&&(_[v]={...I,...C(ji.validate,I.message)},!r))return w(I.message),_}else if(Ot(p)){let T={};for(const I in p){if(!Ar(T)&&!r)break;const N=rk(await p[I](g,t),x,I);N&&(T={...N,...C(I,N.message)},w(N.message),r&&(_[v]=T))}if(!Ar(T)&&(_[v]={ref:x,...T},!r))return _}}return w(!0),_};function Kz(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=St(e)?n++:e[t[n++]];return e}function Gz(e){for(const t in e)if(e.hasOwnProperty(t)&&!St(e[t]))return!1;return!0}function $t(e,t){const r=Array.isArray(t)?t:M1(t)?[t]:c2(t),n=r.length===1?e:Kz(e,r),i=r.length-1,a=r[i];return n&&delete n[a],i!==0&&(Ot(n)&&Ar(n)||Array.isArray(n)&&Gz(n))&&$t(e,r.slice(0,-1)),e}var by=()=>{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=[]}}},kb=e=>fr(e)||!o2(e);function Ea(e,t){if(kb(e)||kb(t))return e===t;if($o(e)&&$o(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r){const a=e[i];if(!n.includes(i))return!1;if(i!=="ref"){const o=t[i];if($o(a)&&$o(o)||Ot(a)&&Ot(o)||Array.isArray(a)&&Array.isArray(o)?!Ea(a,o):a!==o)return!1}}return!0}var y2=e=>e.type==="select-multiple",Yz=e=>B1(e)||bf(e),xy=e=>Ip(e)&&e.isConnected,b2=e=>{for(const t in e)if(Ui(e[t]))return!0;return!1};function Dp(e,t={}){const r=Array.isArray(e);if(Ot(e)||r)for(const n in e)Array.isArray(e[n])||Ot(e[n])&&!b2(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Dp(e[n],t[n])):fr(e[n])||(t[n]=!0);return t}function x2(e,t,r){const n=Array.isArray(e);if(Ot(e)||n)for(const i in e)Array.isArray(e[i])||Ot(e[i])&&!b2(e[i])?St(t)||kb(r[i])?r[i]=Array.isArray(e[i])?Dp(e[i],[]):{...Dp(e[i])}:x2(e[i],fr(t)?{}:t[i],r[i]):r[i]=!Ea(e[i],t[i]);return r}var qc=(e,t)=>x2(e,t,Dp(t)),w2=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>St(e)?e:t?e===""?NaN:e&&+e:r&&fi(e)?new Date(e):n?n(e):e;function wy(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return L1(t)?t.files:B1(t)?g2(e.refs).value:y2(t)?[...t.selectedOptions].map(({value:r})=>r):bf(t)?v2(e.refs).value:w2(St(t.value)?e.ref.value:t.value,e)}var Xz=(e,t,r,n)=>{const i={};for(const a of e){const o=te(t,a);o&&Ve(i,a,o._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},Kc=e=>St(e)?e:Mp(e)?e.source:Ot(e)?Mp(e.value)?e.value.source:e.value:e;const ik="AsyncFunction";var Zz=e=>(!e||!e.validate)&&!!(Ui(e.validate)&&e.validate.constructor.name===ik||Ot(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===ik)),Jz=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ak(e,t,r){const n=te(e,r);if(n||M1(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const a=i.join("."),o=te(t,a),s=te(e,a);if(o&&!Array.isArray(o)&&r!==a)return{name:r};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:r}}var Qz=(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,eV=(e,t)=>!Rv(te(e,t)).length&&$t(e,t);const tV={mode:Dn.onSubmit,reValidateMode:Dn.onChange,shouldFocusError:!0};function rV(e={}){let t={...tV,...e},r={submitCount:0,isDirty:!1,isLoading:Ui(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},i=Ot(t.defaultValues)||Ot(t.values)?Or(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Or(i),o={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:by(),array:by(),state:by()},f=ZE(t.mode),p=ZE(t.reValidateMode),v=t.criteriaMode===Dn.all,m=$=>D=>{clearTimeout(c),c=setTimeout($,D)},y=async $=>{if(!e.disabled&&(u.isValid||$)){const D=t.resolver?Ar((await O()).errors):await C(n,!0);D!==r.isValid&&d.state.next({isValid:D})}},b=($,D)=>{!e.disabled&&(u.isValidating||u.validatingFields)&&(($||Array.from(s.mount)).forEach(U=>{U&&(D?Ve(r.validatingFields,U,D):$t(r.validatingFields,U))}),d.state.next({validatingFields:r.validatingFields,isValidating:!Ar(r.validatingFields)}))},g=($,D=[],U,re,ee=!0,Y=!0)=>{if(re&&U&&!e.disabled){if(o.action=!0,Y&&Array.isArray(te(n,$))){const pe=U(te(n,$),re.argA,re.argB);ee&&Ve(n,$,pe)}if(Y&&Array.isArray(te(r.errors,$))){const pe=U(te(r.errors,$),re.argA,re.argB);ee&&Ve(r.errors,$,pe),eV(r.errors,$)}if(u.touchedFields&&Y&&Array.isArray(te(r.touchedFields,$))){const pe=U(te(r.touchedFields,$),re.argA,re.argB);ee&&Ve(r.touchedFields,$,pe)}u.dirtyFields&&(r.dirtyFields=qc(i,a)),d.state.next({name:$,isDirty:T($,D),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ve(a,$,D)},x=($,D)=>{Ve(r.errors,$,D),d.state.next({errors:r.errors})},w=$=>{r.errors=$,d.state.next({errors:r.errors,isValid:!1})},_=($,D,U,re)=>{const ee=te(n,$);if(ee){const Y=te(a,$,St(U)?te(i,$):U);St(Y)||re&&re.defaultChecked||D?Ve(a,$,D?Y:wy(ee._f)):L($,Y),o.mount&&y()}},E=($,D,U,re,ee)=>{let Y=!1,pe=!1;const Se={name:$};if(!e.disabled){const yt=!!(te(n,$)&&te(n,$)._f&&te(n,$)._f.disabled);if(!U||re){u.isDirty&&(pe=r.isDirty,r.isDirty=Se.isDirty=T(),Y=pe!==Se.isDirty);const et=yt||Ea(te(i,$),D);pe=!!(!yt&&te(r.dirtyFields,$)),et||yt?$t(r.dirtyFields,$):Ve(r.dirtyFields,$,!0),Se.dirtyFields=r.dirtyFields,Y=Y||u.dirtyFields&&pe!==!et}if(U){const et=te(r.touchedFields,$);et||(Ve(r.touchedFields,$,U),Se.touchedFields=r.touchedFields,Y=Y||u.touchedFields&&et!==U)}Y&&ee&&d.state.next(Se)}return Y?Se:{}},k=($,D,U,re)=>{const ee=te(r.errors,$),Y=u.isValid&&dn(D)&&r.isValid!==D;if(e.delayError&&U?(l=m(()=>x($,U)),l(e.delayError)):(clearTimeout(c),l=null,U?Ve(r.errors,$,U):$t(r.errors,$)),(U?!Ea(ee,U):ee)||!Ar(re)||Y){const pe={...re,...Y&&dn(D)?{isValid:D}:{},errors:r.errors,name:$};r={...r,...pe},d.state.next(pe)}},O=async $=>{b($,!0);const D=await t.resolver(a,t.context,Xz($||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return b($),D},P=async $=>{const{errors:D}=await O($);if($)for(const U of $){const re=te(D,U);re?Ve(r.errors,U,re):$t(r.errors,U)}else r.errors=D;return D},C=async($,D,U={valid:!0})=>{for(const re in $){const ee=$[re];if(ee){const{_f:Y,...pe}=ee;if(Y){const Se=s.array.has(Y.name),yt=ee._f&&Zz(ee._f);yt&&u.validatingFields&&b([re],!0);const et=await nk(ee,a,v,t.shouldUseNativeValidation&&!D,Se);if(yt&&u.validatingFields&&b([re]),et[Y.name]&&(U.valid=!1,D))break;!D&&(te(et,Y.name)?Se?qz(r.errors,et,Y.name):Ve(r.errors,Y.name,et[Y.name]):$t(r.errors,Y.name))}!Ar(pe)&&await C(pe,D,U)}}return U.valid},R=()=>{for(const $ of s.unMount){const D=te(n,$);D&&(D._f.refs?D._f.refs.every(U=>!xy(U)):!xy(D._f.ref))&&ve($)}s.unMount=new Set},T=($,D)=>!e.disabled&&($&&D&&Ve(a,$,D),!Ea(V(),i)),I=($,D,U)=>p2($,s,{...o.mount?a:St(D)?i:fi($)?{[$]:D}:D},U,D),N=$=>Rv(te(o.mount?a:i,$,e.shouldUnregister?te(i,$,[]):[])),L=($,D,U={})=>{const re=te(n,$);let ee=D;if(re){const Y=re._f;Y&&(!Y.disabled&&Ve(a,$,w2(D,Y)),ee=Ip(Y.ref)&&fr(D)?"":D,y2(Y.ref)?[...Y.ref.options].forEach(pe=>pe.selected=ee.includes(pe.value)):Y.refs?bf(Y.ref)?Y.refs.length>1?Y.refs.forEach(pe=>(!pe.defaultChecked||!pe.disabled)&&(pe.checked=Array.isArray(ee)?!!ee.find(Se=>Se===pe.value):ee===pe.value)):Y.refs[0]&&(Y.refs[0].checked=!!ee):Y.refs.forEach(pe=>pe.checked=pe.value===ee):L1(Y.ref)?Y.ref.value="":(Y.ref.value=ee,Y.ref.type||d.values.next({name:$,values:{...a}})))}(U.shouldDirty||U.shouldTouch)&&E($,ee,U.shouldTouch,U.shouldDirty,!0),U.shouldValidate&&q($)},M=($,D,U)=>{for(const re in D){const ee=D[re],Y=`${$}.${re}`,pe=te(n,Y);(s.array.has($)||Ot(ee)||pe&&!pe._f)&&!$o(ee)?M(Y,ee,U):L(Y,ee,U)}},F=($,D,U={})=>{const re=te(n,$),ee=s.array.has($),Y=Or(D);Ve(a,$,Y),ee?(d.array.next({name:$,values:{...a}}),(u.isDirty||u.dirtyFields)&&U.shouldDirty&&d.state.next({name:$,dirtyFields:qc(i,a),isDirty:T($,Y)})):re&&!re._f&&!fr(Y)?M($,Y,U):L($,Y,U),JE($,s)&&d.state.next({...r}),d.values.next({name:o.mount?$:void 0,values:{...a}})},j=async $=>{o.mount=!0;const D=$.target;let U=D.name,re=!0;const ee=te(n,U),Y=()=>D.type?wy(ee._f):s2($),pe=Se=>{re=Number.isNaN(Se)||$o(Se)&&isNaN(Se.getTime())||Ea(Se,te(a,U,Se))};if(ee){let Se,yt;const et=Y(),Qn=$.type===Rp.BLUR||$.type===Rp.FOCUS_OUT,da=!Jz(ee._f)&&!t.resolver&&!te(r.errors,U)&&!ee._f.deps||Qz(Qn,te(r.touchedFields,U),r.isSubmitted,p,f),bs=JE(U,s,Qn);Ve(a,U,et),Qn?(ee._f.onBlur&&ee._f.onBlur($),l&&l(0)):ee._f.onChange&&ee._f.onChange($);const Cc=E(U,et,Qn,!1),Nf=!Ar(Cc)||bs;if(!Qn&&d.values.next({name:U,type:$.type,values:{...a}}),da)return u.isValid&&(e.mode==="onBlur"?Qn&&y():y()),Nf&&d.state.next({name:U,...bs?{}:Cc});if(!Qn&&bs&&d.state.next({...r}),t.resolver){const{errors:Nc}=await O([U]);if(pe(et),re){const Ng=ak(r.errors,n,U),xs=ak(Nc,n,Ng.name||U);Se=xs.error,U=xs.name,yt=Ar(Nc)}}else b([U],!0),Se=(await nk(ee,a,v,t.shouldUseNativeValidation))[U],b([U]),pe(et),re&&(Se?yt=!1:u.isValid&&(yt=await C(n,!0)));re&&(ee._f.deps&&q(ee._f.deps),k(U,yt,Se,Cc))}},B=($,D)=>{if(te(r.errors,D)&&$.focus)return $.focus(),1},q=async($,D={})=>{let U,re;const ee=Au($);if(t.resolver){const Y=await P(St($)?$:ee);U=Ar(Y),re=$?!ee.some(pe=>te(Y,pe)):U}else $?(re=(await Promise.all(ee.map(async Y=>{const pe=te(n,Y);return await C(pe&&pe._f?{[Y]:pe}:pe)}))).every(Boolean),!(!re&&!r.isValid)&&y()):re=U=await C(n);return d.state.next({...!fi($)||u.isValid&&U!==r.isValid?{}:{name:$},...t.resolver||!$?{isValid:U}:{},errors:r.errors}),D.shouldFocus&&!re&&Tu(n,B,$?ee:s.mount),re},V=$=>{const D={...o.mount?a:i};return St($)?D:fi($)?te(D,$):$.map(U=>te(D,U))},H=($,D)=>({invalid:!!te((D||r).errors,$),isDirty:!!te((D||r).dirtyFields,$),error:te((D||r).errors,$),isValidating:!!te(r.validatingFields,$),isTouched:!!te((D||r).touchedFields,$)}),J=$=>{$&&Au($).forEach(D=>$t(r.errors,D)),d.state.next({errors:$?r.errors:{}})},fe=($,D,U)=>{const re=(te(n,$,{_f:{}})._f||{}).ref,ee=te(r.errors,$)||{},{ref:Y,message:pe,type:Se,...yt}=ee;Ve(r.errors,$,{...yt,...D,ref:re}),d.state.next({name:$,errors:r.errors,isValid:!1}),U&&U.shouldFocus&&re&&re.focus&&re.focus()},Ce=($,D)=>Ui($)?d.values.subscribe({next:U=>$(I(void 0,D),U)}):I($,D,!0),ve=($,D={})=>{for(const U of $?Au($):s.mount)s.mount.delete(U),s.array.delete(U),D.keepValue||($t(n,U),$t(a,U)),!D.keepError&&$t(r.errors,U),!D.keepDirty&&$t(r.dirtyFields,U),!D.keepTouched&&$t(r.touchedFields,U),!D.keepIsValidating&&$t(r.validatingFields,U),!t.shouldUnregister&&!D.keepDefaultValue&&$t(i,U);d.values.next({values:{...a}}),d.state.next({...r,...D.keepDirty?{isDirty:T()}:{}}),!D.keepIsValid&&y()},ae=({disabled:$,name:D,field:U,fields:re,value:ee})=>{if(dn($)&&o.mount||$){const Y=$?void 0:St(ee)?wy(U?U._f:te(re,D)._f):ee;Ve(a,D,Y),E(D,Y,!1,!1,!0)}},we=($,D={})=>{let U=te(n,$);const re=dn(D.disabled)||dn(e.disabled);return Ve(n,$,{...U||{},_f:{...U&&U._f?U._f:{ref:{name:$}},name:$,mount:!0,...D}}),s.mount.add($),U?ae({field:U,disabled:dn(D.disabled)?D.disabled:e.disabled,name:$,value:D.value}):_($,!0,D.value),{...re?{disabled:D.disabled||e.disabled}:{},...t.progressive?{required:!!D.required,min:Kc(D.min),max:Kc(D.max),minLength:Kc(D.minLength),maxLength:Kc(D.maxLength),pattern:Kc(D.pattern)}:{},name:$,onChange:j,onBlur:j,ref:ee=>{if(ee){we($,D),U=te(n,$);const Y=St(ee.value)&&ee.querySelectorAll&&ee.querySelectorAll("input,select,textarea")[0]||ee,pe=Yz(Y),Se=U._f.refs||[];if(pe?Se.find(yt=>yt===Y):Y===U._f.ref)return;Ve(n,$,{_f:{...U._f,...pe?{refs:[...Se.filter(xy),Y,...Array.isArray(te(i,$))?[{}]:[]],ref:{type:Y.type,name:$}}:{ref:Y}}}),_($,!1,void 0,Y)}else U=te(n,$,{}),U._f&&(U._f.mount=!1),(t.shouldUnregister||D.shouldUnregister)&&!(l2(s.array,$)&&o.action)&&s.unMount.add($)}}},G=()=>t.shouldFocusError&&Tu(n,B,s.mount),ne=$=>{dn($)&&(d.state.next({disabled:$}),Tu(n,(D,U)=>{const re=te(n,U);re&&(D.disabled=re._f.disabled||$,Array.isArray(re._f.refs)&&re._f.refs.forEach(ee=>{ee.disabled=re._f.disabled||$}))},0,!1))},oe=($,D)=>async U=>{let re;U&&(U.preventDefault&&U.preventDefault(),U.persist&&U.persist());let ee=Or(a);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:Y,values:pe}=await O();r.errors=Y,ee=pe}else await C(n);if($t(r.errors,"root"),Ar(r.errors)){d.state.next({errors:{}});try{await $(ee,U)}catch(Y){re=Y}}else D&&await D({...r.errors},U),G(),setTimeout(G);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ar(r.errors)&&!re,submitCount:r.submitCount+1,errors:r.errors}),re)throw re},z=($,D={})=>{te(n,$)&&(St(D.defaultValue)?F($,Or(te(i,$))):(F($,D.defaultValue),Ve(i,$,Or(D.defaultValue))),D.keepTouched||$t(r.touchedFields,$),D.keepDirty||($t(r.dirtyFields,$),r.isDirty=D.defaultValue?T($,Or(te(i,$))):T()),D.keepError||($t(r.errors,$),u.isValid&&y()),d.state.next({...r}))},Ae=($,D={})=>{const U=$?Or($):i,re=Or(U),ee=Ar($),Y=ee?i:re;if(D.keepDefaultValues||(i=U),!D.keepValues){if(D.keepDirtyValues){const pe=new Set([...s.mount,...Object.keys(qc(i,a))]);for(const Se of Array.from(pe))te(r.dirtyFields,Se)?Ve(Y,Se,te(a,Se)):F(Se,te(Y,Se))}else{if(I1&&St($))for(const pe of s.mount){const Se=te(n,pe);if(Se&&Se._f){const yt=Array.isArray(Se._f.refs)?Se._f.refs[0]:Se._f.ref;if(Ip(yt)){const et=yt.closest("form");if(et){et.reset();break}}}}n={}}a=e.shouldUnregister?D.keepDefaultValues?Or(i):{}:Or(Y),d.array.next({values:{...Y}}),d.values.next({values:{...Y}})}s={mount:D.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!D.keepIsValid||!!D.keepDirtyValues,o.watch=!!e.shouldUnregister,d.state.next({submitCount:D.keepSubmitCount?r.submitCount:0,isDirty:ee?!1:D.keepDirty?r.isDirty:!!(D.keepDefaultValues&&!Ea($,i)),isSubmitted:D.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ee?{}:D.keepDirtyValues?D.keepDefaultValues&&a?qc(i,a):r.dirtyFields:D.keepDefaultValues&&$?qc(i,$):D.keepDirty?r.dirtyFields:{},touchedFields:D.keepTouched?r.touchedFields:{},errors:D.keepErrors?r.errors:{},isSubmitSuccessful:D.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},ge=($,D)=>Ae(Ui($)?$(a):$,D);return{control:{register:we,unregister:ve,getFieldState:H,handleSubmit:oe,setError:fe,_executeSchema:O,_getWatch:I,_getDirty:T,_updateValid:y,_removeUnmounted:R,_updateFieldArray:g,_updateDisabledField:ae,_getFieldArray:N,_reset:Ae,_resetDefaultValues:()=>Ui(t.defaultValues)&&t.defaultValues().then($=>{ge($,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:$=>{r={...r,...$}},_disableForm:ne,_subjects:d,_proxyFormState:u,_setErrors:w,get _fields(){return n},get _formValues(){return a},get _state(){return o},set _state($){o=$},get _defaultValues(){return i},get _names(){return s},set _names($){s=$},get _formState(){return r},set _formState($){r=$},get _options(){return t},set _options($){t={...t,...$}}},trigger:q,register:we,handleSubmit:oe,watch:Ce,setValue:F,getValues:V,reset:ge,resetField:z,clearErrors:J,unregister:ve,setError:fe,setFocus:($,D={})=>{const U=te(n,$),re=U&&U._f;if(re){const ee=re.refs?re.refs[0]:re.ref;ee.focus&&(ee.focus(),D.shouldSelect&&ee.select())}},getFieldState:H}}function nV(e={}){const t=A.useRef(),r=A.useRef(),[n,i]=A.useState({isDirty:!1,isValidating:!1,isLoading:Ui(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ui(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...rV(e),formState:n});const a=t.current.control;return a._options=e,D1({subject:a._subjects.state,next:o=>{f2(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),A.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),A.useEffect(()=>{if(a._proxyFormState.isDirty){const o=a._getDirty();o!==n.isDirty&&a._subjects.state.next({isDirty:o})}},[a,n.isDirty]),A.useEffect(()=>{e.values&&!Ea(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,i(o=>({...o}))):a._resetDefaultValues()},[e.values,a]),A.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),A.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),A.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),A.useEffect(()=>{t.current&&(t.current.watch=t.current.watch.bind({}))},[n]),t.current.formState=d2(n,a),t.current}const ok=(e,t,r)=>{if(e&&"reportValidity"in e){const n=te(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},_2=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?ok(n.ref,r,e):n.refs&&n.refs.forEach(i=>ok(i,r,e))}},iV=(e,t)=>{t.shouldUseNativeValidation&&_2(e,t);const r={};for(const n in e){const i=te(t.fields,n),a=Object.assign(e[n]||{},{ref:i&&i.ref});if(aV(t.names||Object.keys(e),n)){const o=Object.assign({},te(r,n));Ve(o,"root",a),Ve(r,n,o)}else Ve(r,n,a)}return r},aV=(e,t)=>e.some(r=>r.startsWith(t+"."));var oV=function(e,t){for(var r={};e.length;){var n=e[0],i=n.code,a=n.message,o=n.path.join(".");if(!r[o])if("unionErrors"in n){var s=n.unionErrors[0].errors[0];r[o]={message:s.message,type:s.code}}else r[o]={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 l=r[o].types,c=l&&l[n.code];r[o]=m2(o,t,r,i,c?[].concat(c,n.message):n.message)}e.shift()}return r},sV=function(e,t,r){return r===void 0&&(r={}),function(n,i,a){try{return Promise.resolve(function(o,s){try{var l=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(c){return a.shouldUseNativeValidation&&_2({},a),{errors:{},values:r.raw?n:c}})}catch(c){return s(c)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(function(s){return Array.isArray(s==null?void 0:s.errors)}(o))return{values:{},errors:iV(oV(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}},De;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function r(i){throw new Error}e.assertNever=r,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),o={};for(const s of a)o[s]=i[s];return e.objectValues(o)},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 o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=n,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(De||(De={}));var Ob;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Ob||(Ob={}));const le=De.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ka=e=>{switch(typeof e){case"undefined":return le.undefined;case"string":return le.string;case"number":return isNaN(e)?le.nan:le.number;case"boolean":return le.boolean;case"function":return le.function;case"bigint":return le.bigint;case"symbol":return le.symbol;case"object":return Array.isArray(e)?le.array:e===null?le.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?le.promise:typeof Map<"u"&&e instanceof Map?le.map:typeof Set<"u"&&e instanceof Set?le.set:typeof Date<"u"&&e instanceof Date?le.date:le.object;default:return le.unknown}},Z=De.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"]),lV=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Xr extends Error{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}get errors(){return this.issues}format(t){const r=t||function(a){return a.message},n={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let s=n,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(r(o))):s[c]=s[c]||{_errors:[]},s=s[c],l++}}};return i(this),n}static assert(t){if(!(t instanceof Xr))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,De.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];for(const i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}Xr.create=e=>new Xr(e);const Ml=(e,t)=>{let r;switch(e.code){case Z.invalid_type:e.received===le.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Z.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,De.jsonStringifyReplacer)}`;break;case Z.unrecognized_keys:r=`Unrecognized key(s) in object: ${De.joinValues(e.keys,", ")}`;break;case Z.invalid_union:r="Invalid input";break;case Z.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${De.joinValues(e.options)}`;break;case Z.invalid_enum_value:r=`Invalid enum value. Expected ${De.joinValues(e.options)}, received '${e.received}'`;break;case Z.invalid_arguments:r="Invalid function arguments";break;case Z.invalid_return_type:r="Invalid function return type";break;case Z.invalid_date:r="Invalid date";break;case Z.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}"`:De.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Z.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==="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 Z.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 Z.custom:r="Invalid input";break;case Z.invalid_intersection_types:r="Intersection results could not be merged";break;case Z.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Z.not_finite:r="Number must be finite";break;default:r=t.defaultError,De.assertNever(e)}return{message:r}};let S2=Ml;function cV(e){S2=e}function Lp(){return S2}const Bp=e=>{const{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s="";const l=n.filter(c=>!!c).slice().reverse();for(const c of l)s=c(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}},uV=[];function se(e,t){const r=Lp(),n=Bp({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Ml?void 0:Ml].filter(i=>!!i)});e.common.issues.push(n)}class sr{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 xe;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,o=await i.value;n.push({key:a,value:o})}return sr.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const i of r){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return xe;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[a.value]=o.value)}return{status:t.value,value:n}}}const xe=Object.freeze({status:"aborted"}),Xs=e=>({status:"dirty",value:e}),yr=e=>
vendor: 5,698 bytes, line 217
217({status:"valid",value:e}),Ab=e=>e.status==="aborted",Tb=e=>e.status==="dirty",ad=e=>e.status==="valid",od=e=>typeof Promise<"u"&&e instanceof Promise;function Fp(e,t,r,n){if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function E2(e,t,r,n,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var he;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(he||(he={}));var uu,du;class wi{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||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const sk=(e,t)=>{if(ad(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 Xr(e.common.issues);return this._error=r,this._error}}};function _e(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:(o,s)=>{var l,c;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??s.defaultError}:typeof s.data>"u"?{message:(l=u??n)!==null&&l!==void 0?l:s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:(c=u??r)!==null&&c!==void 0?c:s.defaultError}},description:i}}class je{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)}get description(){return this._def.description}_getType(t){return ka(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:ka(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new sr,ctx:{common:t.parent.common,data:t.data,parsedType:ka(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(od(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){var n;const i={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ka(t)},a=this._parseSync({data:t,path:i.path,parent:i});return sk(i,a)}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:ka(t)},i=this._parse({data:t,path:n.path,parent:n}),a=await(od(i)?i:Promise.resolve(i));return sk(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 o=t(i),s=()=>a.addIssue({code:Z.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(s(),!1)):o?!0:(s(),!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 Zn({schema:this,typeName:ye.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return gi.create(this,this._def)}nullable(){return ao.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return qn.create(this,this._def)}promise(){return Ll.create(this,this._def)}or(t){return ud.create([this,t],this._def)}and(t){return dd.create(this,t,this._def)}transform(t){return new Zn({..._e(this._def),schema:this,typeName:ye.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new vd({..._e(this._def),innerType:this,defaultValue:r,typeName:ye.ZodDefault})}brand(){return new F1({typeName:ye.ZodBranded,type:this,..._e(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new gd({..._e(this._def),innerType:this,catchValue:r,typeName:ye.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return xf.create(this,t)}readonly(){return yd.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const dV=/^c[^\s-]{8,}
vendor: 44,221 bytes, line 217
217$/i,fV=/^[0-9a-z]+$/,hV=/^[0-9A-HJKMNP-TV-Z]{26}$/,pV=/^[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,mV=/^[a-z0-9_-]{21}$/i,vV=/^[-+]?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)?)??$/,gV=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,yV="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let _y;const bV=/^(?:(?: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])$/,xV=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,wV=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,k2="((\\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])))",_V=new RegExp(`^${k2}$`);function O2(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function SV(e){return new RegExp(`^${O2(e)}$`)}function A2(e){let t=`${k2}T${O2(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 EV(e,t){return!!((t==="v4"||!t)&&bV.test(e)||(t==="v6"||!t)&&xV.test(e))}class Un extends je{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==le.string){const a=this._getOrReturnCtx(t);return se(a,{code:Z.invalid_type,expected:le.string,received:a.parsedType}),xe}const n=new sr;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),se(i,{code:Z.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),se(i,{code:Z.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,s=t.data.length<a.value;(o||s)&&(i=this._getOrReturnCtx(t,i),o?se(i,{code:Z.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&se(i,{code:Z.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),n.dirty())}else if(a.kind==="email")gV.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"email",code:Z.invalid_string,message:a.message}),n.dirty());else if(a.kind==="emoji")_y||(_y=new RegExp(yV,"u")),_y.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"emoji",code:Z.invalid_string,message:a.message}),n.dirty());else if(a.kind==="uuid")pV.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"uuid",code:Z.invalid_string,message:a.message}),n.dirty());else if(a.kind==="nanoid")mV.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"nanoid",code:Z.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid")dV.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"cuid",code:Z.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid2")fV.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"cuid2",code:Z.invalid_string,message:a.message}),n.dirty());else if(a.kind==="ulid")hV.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"ulid",code:Z.invalid_string,message:a.message}),n.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),se(i,{validation:"url",code:Z.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),se(i,{validation:"regex",code:Z.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),se(i,{code:Z.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),se(i,{code:Z.invalid_string,validation:{startsWith:a.value},message:a.message}),n.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),se(i,{code:Z.invalid_string,validation:{endsWith:a.value},message:a.message}),n.dirty()):a.kind==="datetime"?A2(a).test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{code:Z.invalid_string,validation:"datetime",message:a.message}),n.dirty()):a.kind==="date"?_V.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{code:Z.invalid_string,validation:"date",message:a.message}),n.dirty()):a.kind==="time"?SV(a).test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{code:Z.invalid_string,validation:"time",message:a.message}),n.dirty()):a.kind==="duration"?vV.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"duration",code:Z.invalid_string,message:a.message}),n.dirty()):a.kind==="ip"?EV(t.data,a.version)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"ip",code:Z.invalid_string,message:a.message}),n.dirty()):a.kind==="base64"?wV.test(t.data)||(i=this._getOrReturnCtx(t,i),se(i,{validation:"base64",code:Z.invalid_string,message:a.message}),n.dirty()):De.assertNever(a);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(i=>t.test(i),{validation:r,code:Z.invalid_string,...he.errToObj(n)})}_addCheck(t){return new Un({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...he.errToObj(t)})}url(t){return this._addCheck({kind:"url",...he.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...he.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...he.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...he.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...he.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...he.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...he.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...he.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...he.errToObj(t)})}datetime(t){var r,n;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:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(n=t==null?void 0:t.local)!==null&&n!==void 0?n:!1,...he.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,...he.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...he.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...he.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...he.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...he.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...he.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...he.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...he.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...he.errToObj(r)})}nonempty(t){return this.min(1,he.errToObj(t))}trim(){return new Un({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Un({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Un({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get 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 isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}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}}Un.create=e=>{var t;return new Un({checks:[],typeName:ye.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,..._e(e)})};function kV(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}class ro extends je{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)!==le.number){const a=this._getOrReturnCtx(t);return se(a,{code:Z.invalid_type,expected:le.number,received:a.parsedType}),xe}let n;const i=new sr;for(const a of this._def.checks)a.kind==="int"?De.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),se(n,{code:Z.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),se(n,{code:Z.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),se(n,{code:Z.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?kV(t.data,a.value)!==0&&(n=this._getOrReturnCtx(t,n),se(n,{code:Z.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),se(n,{code:Z.not_finite,message:a.message}),i.dirty()):De.assertNever(a);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,he.toString(r))}gt(t,r){return this.setLimit("min",t,!1,he.toString(r))}lte(t,r){return this.setLimit("max",t,!0,he.toString(r))}lt(t,r){return this.setLimit("max",t,!1,he.toString(r))}setLimit(t,r,n,i){return new ro({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:he.toString(i)}]})}_addCheck(t){return new ro({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:he.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:he.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:he.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:he.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:he.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:he.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:he.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:he.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:he.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"&&De.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)}}ro.create=e=>new ro({checks:[],typeName:ye.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,..._e(e)});class no extends je{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==le.bigint){const a=this._getOrReturnCtx(t);return se(a,{code:Z.invalid_type,expected:le.bigint,received:a.parsedType}),xe}let n;const i=new sr;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),se(n,{code:Z.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),se(n,{code:Z.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),se(n,{code:Z.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):De.assertNever(a);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,he.toString(r))}gt(t,r){return this.setLimit("min",t,!1,he.toString(r))}lte(t,r){return this.setLimit("max",t,!0,he.toString(r))}lt(t,r){return this.setLimit("max",t,!1,he.toString(r))}setLimit(t,r,n,i){return new no({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:he.toString(i)}]})}_addCheck(t){return new no({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:he.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:he.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:he.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:he.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:he.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}}no.create=e=>{var t;return new no({checks:[],typeName:ye.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,..._e(e)})};class sd extends je{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==le.boolean){const n=this._getOrReturnCtx(t);return se(n,{code:Z.invalid_type,expected:le.boolean,received:n.parsedType}),xe}return yr(t.data)}}sd.create=e=>new sd({typeName:ye.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,..._e(e)});class is extends je{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==le.date){const a=this._getOrReturnCtx(t);return se(a,{code:Z.invalid_type,expected:le.date,received:a.parsedType}),xe}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return se(a,{code:Z.invalid_date}),xe}const n=new sr;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),se(i,{code:Z.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),se(i,{code:Z.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),n.dirty()):De.assertNever(a);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new is({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:he.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:he.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}}is.create=e=>new is({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ye.ZodDate,..._e(e)});class Up extends je{_parse(t){if(this._getType(t)!==le.symbol){const n=this._getOrReturnCtx(t);return se(n,{code:Z.invalid_type,expected:le.symbol,received:n.parsedType}),xe}return yr(t.data)}}Up.create=e=>new Up({typeName:ye.ZodSymbol,..._e(e)});class ld extends je{_parse(t){if(this._getType(t)!==le.undefined){const n=this._getOrReturnCtx(t);return se(n,{code:Z.invalid_type,expected:le.undefined,received:n.parsedType}),xe}return yr(t.data)}}ld.create=e=>new ld({typeName:ye.ZodUndefined,..._e(e)});class cd extends je{_parse(t){if(this._getType(t)!==le.null){const n=this._getOrReturnCtx(t);return se(n,{code:Z.invalid_type,expected:le.null,received:n.parsedType}),xe}return yr(t.data)}}cd.create=e=>new cd({typeName:ye.ZodNull,..._e(e)});class Dl extends je{constructor(){super(...arguments),this._any=!0}_parse(t){return yr(t.data)}}Dl.create=e=>new Dl({typeName:ye.ZodAny,..._e(e)});class Ko extends je{constructor(){super(...arguments),this._unknown=!0}_parse(t){return yr(t.data)}}Ko.create=e=>new Ko({typeName:ye.ZodUnknown,..._e(e)});class ra extends je{_parse(t){const r=this._getOrReturnCtx(t);return se(r,{code:Z.invalid_type,expected:le.never,received:r.parsedType}),xe}}ra.create=e=>new ra({typeName:ye.ZodNever,..._e(e)});class zp extends je{_parse(t){if(this._getType(t)!==le.undefined){const n=this._getOrReturnCtx(t);return se(n,{code:Z.invalid_type,expected:le.void,received:n.parsedType}),xe}return yr(t.data)}}zp.create=e=>new zp({typeName:ye.ZodVoid,..._e(e)});class qn extends je{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),i=this._def;if(r.parsedType!==le.array)return se(r,{code:Z.invalid_type,expected:le.array,received:r.parsedType}),xe;if(i.exactLength!==null){const o=r.data.length>i.exactLength.value,s=r.data.length<i.exactLength.value;(o||s)&&(se(r,{code:o?Z.too_big:Z.too_small,minimum:s?i.exactLength.value:void 0,maximum:o?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&&(se(r,{code:Z.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&&(se(r,{code:Z.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((o,s)=>i.type._parseAsync(new wi(r,o,r.path,s)))).then(o=>sr.mergeArray(n,o));const a=[...r.data].map((o,s)=>i.type._parseSync(new wi(r,o,r.path,s)));return sr.mergeArray(n,a)}get element(){return this._def.type}min(t,r){return new qn({...this._def,minLength:{value:t,message:he.toString(r)}})}max(t,r){return new qn({...this._def,maxLength:{value:t,message:he.toString(r)}})}length(t,r){return new qn({...this._def,exactLength:{value:t,message:he.toString(r)}})}nonempty(t){return this.min(1,t)}}qn.create=(e,t)=>new qn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ye.ZodArray,..._e(t)});function Rs(e){if(e instanceof ut){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=gi.create(Rs(n))}return new ut({...e._def,shape:()=>t})}else return e instanceof qn?new qn({...e._def,type:Rs(e.element)}):e instanceof gi?gi.create(Rs(e.unwrap())):e instanceof ao?ao.create(Rs(e.unwrap())):e instanceof _i?_i.create(e.items.map(t=>Rs(t))):e}class ut extends je{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=De.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==le.object){const c=this._getOrReturnCtx(t);return se(c,{code:Z.invalid_type,expected:le.object,received:c.parsedType}),xe}const{status:n,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof ra&&this._def.unknownKeys==="strip"))for(const c in i.data)o.includes(c)||s.push(c);const l=[];for(const c of o){const u=a[c],d=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new wi(i,d,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof ra){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of s)l.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(c==="strict")s.length>0&&(se(i,{code:Z.unrecognized_keys,keys:s}),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 s){const d=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new wi(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,f=await u.value;c.push({key:d,value:f,alwaysSet:u.alwaysSet})}return c}).then(c=>sr.mergeObjectSync(n,c)):sr.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(t){return he.errToObj,new ut({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var i,a,o,s;const l=(o=(a=(i=this._def).errorMap)===null||a===void 0?void 0:a.call(i,r,n).message)!==null&&o!==void 0?o:n.defaultError;return r.code==="unrecognized_keys"?{message:(s=he.errToObj(t).message)!==null&&s!==void 0?s:l}:{message:l}}}:{}})}strip(){return new ut({...this._def,unknownKeys:"strip"})}passthrough(){return new ut({...this._def,unknownKeys:"passthrough"})}extend(t){return new ut({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new ut({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ye.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new ut({...this._def,catchall:t})}pick(t){const r={};return De.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new ut({...this._def,shape:()=>r})}omit(t){const r={};return De.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new ut({...this._def,shape:()=>r})}deepPartial(){return Rs(this)}partial(t){const r={};return De.objectKeys(this.shape).forEach(n=>{const i=this.shape[n];t&&!t[n]?r[n]=i:r[n]=i.optional()}),new ut({...this._def,shape:()=>r})}required(t){const r={};return De.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let a=this.shape[n];for(;a instanceof gi;)a=a._def.innerType;r[n]=a}}),new ut({...this._def,shape:()=>r})}keyof(){return T2(De.objectKeys(this.shape))}}ut.create=(e,t)=>new ut({shape:()=>e,unknownKeys:"strip",catchall:ra.create(),typeName:ye.ZodObject,..._e(t)});ut.strictCreate=(e,t)=>new ut({shape:()=>e,unknownKeys:"strict",catchall:ra.create(),typeName:ye.ZodObject,..._e(t)});ut.lazycreate=(e,t)=>new ut({shape:e,unknownKeys:"strip",catchall:ra.create(),typeName:ye.ZodObject,..._e(t)});class ud extends je{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function i(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(s=>new Xr(s.ctx.common.issues));return se(r,{code:Z.invalid_union,unionErrors:o}),xe}if(r.common.async)return Promise.all(n.map(async a=>{const o={...r,common:{...r.common,issues:[]},parent:null};return{result:await a._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const l of n){const c={...r,common:{...r.common,issues:[]},parent:null},u=l._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&&o.push(c.common.issues)}if(a)return r.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(l=>new Xr(l));return se(r,{code:Z.invalid_union,unionErrors:s}),xe}}get options(){return this._def.options}}ud.create=(e,t)=>new ud({options:e,typeName:ye.ZodUnion,..._e(t)});const $i=e=>e instanceof hd?$i(e.schema):e instanceof Zn?$i(e.innerType()):e instanceof pd?[e.value]:e instanceof io?e.options:e instanceof md?De.objectValues(e.enum):e instanceof vd?$i(e._def.innerType):e instanceof ld?[void 0]:e instanceof cd?[null]:e instanceof gi?[void 0,...$i(e.unwrap())]:e instanceof ao?[null,...$i(e.unwrap())]:e instanceof F1||e instanceof yd?$i(e.unwrap()):e instanceof gd?$i(e._def.innerType):[];class Mv extends je{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==le.object)return se(r,{code:Z.invalid_type,expected:le.object,received:r.parsedType}),xe;const n=this.discriminator,i=r.data[n],a=this.optionsMap.get(i);return a?r.common.async?a._parseAsync({data:r.data,path:r.path,parent:r}):a._parseSync({data:r.data,path:r.path,parent:r}):(se(r,{code:Z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),xe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){const i=new Map;for(const a of r){const o=$i(a.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,a)}}return new Mv({typeName:ye.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:i,..._e(n)})}}function jb(e,t){const r=ka(e),n=ka(t);if(e===t)return{valid:!0,data:e};if(r===le.object&&n===le.object){const i=De.objectKeys(t),a=De.objectKeys(e).filter(s=>i.indexOf(s)!==-1),o={...e,...t};for(const s of a){const l=jb(e[s],t[s]);if(!l.valid)return{valid:!1};o[s]=l.data}return{valid:!0,data:o}}else if(r===le.array&&n===le.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const o=e[a],s=t[a],l=jb(o,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return r===le.date&&n===le.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class dd extends je{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),i=(a,o)=>{if(Ab(a)||Ab(o))return xe;const s=jb(a.value,o.value);return s.valid?((Tb(a)||Tb(o))&&r.dirty(),{status:r.value,value:s.data}):(se(n,{code:Z.invalid_intersection_types}),xe)};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,o])=>i(a,o)):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}))}}dd.create=(e,t,r)=>new dd({left:e,right:t,typeName:ye.ZodIntersection,..._e(r)});class _i extends je{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==le.array)return se(n,{code:Z.invalid_type,expected:le.array,received:n.parsedType}),xe;if(n.data.length<this._def.items.length)return se(n,{code:Z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),xe;!this._def.rest&&n.data.length>this._def.items.length&&(se(n,{code:Z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const a=[...n.data].map((o,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new wi(n,o,n.path,s)):null}).filter(o=>!!o);return n.common.async?Promise.all(a).then(o=>sr.mergeArray(r,o)):sr.mergeArray(r,a)}get items(){return this._def.items}rest(t){return new _i({...this._def,rest:t})}}_i.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _i({items:e,typeName:ye.ZodTuple,rest:null,..._e(t)})};class fd extends je{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!==le.object)return se(n,{code:Z.invalid_type,expected:le.object,received:n.parsedType}),xe;const i=[],a=this._def.keyType,o=this._def.valueType;for(const s in n.data)i.push({key:a._parse(new wi(n,s,n.path,s)),value:o._parse(new wi(n,n.data[s],n.path,s)),alwaysSet:s in n.data});return n.common.async?sr.mergeObjectAsync(r,i):sr.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof je?new fd({keyType:t,valueType:r,typeName:ye.ZodRecord,..._e(n)}):new fd({keyType:Un.create(),valueType:t,typeName:ye.ZodRecord,..._e(r)})}}class Vp extends je{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!==le.map)return se(n,{code:Z.invalid_type,expected:le.map,received:n.parsedType}),xe;const i=this._def.keyType,a=this._def.valueType,o=[...n.data.entries()].map(([s,l],c)=>({key:i._parse(new wi(n,s,n.path,[c,"key"])),value:a._parse(new wi(n,l,n.path,[c,"value"]))}));if(n.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return xe;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),s.set(c.value,u.value)}return{status:r.value,value:s}})}else{const s=new Map;for(const l of o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return xe;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),s.set(c.value,u.value)}return{status:r.value,value:s}}}}Vp.create=(e,t,r)=>new Vp({valueType:t,keyType:e,typeName:ye.ZodMap,..._e(r)});class as extends je{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==le.set)return se(n,{code:Z.invalid_type,expected:le.set,received:n.parsedType}),xe;const i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(se(n,{code:Z.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&&(se(n,{code:Z.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());const a=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return xe;u.status==="dirty"&&r.dirty(),c.add(u.value)}return{status:r.value,value:c}}const s=[...n.data.values()].map((l,c)=>a._parse(new wi(n,l,n.path,c)));return n.common.async?Promise.all(s).then(l=>o(l)):o(s)}min(t,r){return new as({...this._def,minSize:{value:t,message:he.toString(r)}})}max(t,r){return new as({...this._def,maxSize:{value:t,message:he.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}as.create=(e,t)=>new as({valueType:e,minSize:null,maxSize:null,typeName:ye.ZodSet,..._e(t)});class dl extends je{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==le.function)return se(r,{code:Z.invalid_type,expected:le.function,received:r.parsedType}),xe;function n(s,l){return Bp({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Lp(),Ml].filter(c=>!!c),issueData:{code:Z.invalid_arguments,argumentsError:l}})}function i(s,l){return Bp({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Lp(),Ml].filter(c=>!!c),issueData:{code:Z.invalid_return_type,returnTypeError:l}})}const a={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Ll){const s=this;return yr(async function(...l){const c=new Xr([]),u=await s._def.args.parseAsync(l,a).catch(p=>{throw c.addIssue(n(l,p)),c}),d=await Reflect.apply(o,this,u);return await s._def.returns._def.type.parseAsync(d,a).catch(p=>{throw c.addIssue(i(d,p)),c})})}else{const s=this;return yr(function(...l){const c=s._def.args.safeParse(l,a);if(!c.success)throw new Xr([n(l,c.error)]);const u=Reflect.apply(o,this,c.data),d=s._def.returns.safeParse(u,a);if(!d.success)throw new Xr([i(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new dl({...this._def,args:_i.create(t).rest(Ko.create())})}returns(t){return new dl({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new dl({args:t||_i.create([]).rest(Ko.create()),returns:r||Ko.create(),typeName:ye.ZodFunction,..._e(n)})}}class hd extends je{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})}}hd.create=(e,t)=>new hd({getter:e,typeName:ye.ZodLazy,..._e(t)});class pd extends je{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return se(r,{received:r.data,code:Z.invalid_literal,expected:this._def.value}),xe}return{status:"valid",value:t.data}}get value(){return this._def.value}}pd.create=(e,t)=>new pd({value:e,typeName:ye.ZodLiteral,..._e(t)});function T2(e,t){return new io({values:e,typeName:ye.ZodEnum,..._e(t)})}class io extends je{constructor(){super(...arguments),uu.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return se(r,{expected:De.joinValues(n),received:r.parsedType,code:Z.invalid_type}),xe}if(Fp(this,uu)||E2(this,uu,new Set(this._def.values)),!Fp(this,uu).has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return se(r,{received:r.data,code:Z.invalid_enum_value,options:n}),xe}return yr(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 io.create(t,{...this._def,...r})}exclude(t,r=this._def){return io.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}uu=new WeakMap;io.create=T2;class md extends je{constructor(){super(...arguments),du.set(this,void 0)}_parse(t){const r=De.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==le.string&&n.parsedType!==le.number){const i=De.objectValues(r);return se(n,{expected:De.joinValues(i),received:n.parsedType,code:Z.invalid_type}),xe}if(Fp(this,du)||E2(this,du,new Set(De.getValidEnumValues(this._def.values))),!Fp(this,du).has(t.data)){const i=De.objectValues(r);return se(n,{received:n.data,code:Z.invalid_enum_value,options:i}),xe}return yr(t.data)}get enum(){return this._def.values}}du=new WeakMap;md.create=(e,t)=>new md({values:e,typeName:ye.ZodNativeEnum,..._e(t)});class Ll extends je{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==le.promise&&r.common.async===!1)return se(r,{code:Z.invalid_type,expected:le.promise,received:r.parsedType}),xe;const n=r.parsedType===le.promise?r.data:Promise.resolve(r.data);return yr(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Ll.create=(e,t)=>new Ll({type:e,typeName:ye.ZodPromise,..._e(t)});class Zn extends je{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ye.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:o=>{se(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const o=i.transform(n.data,a);if(n.common.async)return Promise.resolve(o).then(async s=>{if(r.value==="aborted")return xe;const l=await this._def.schema._parseAsync({data:s,path:n.path,parent:n});return l.status==="aborted"?xe:l.status==="dirty"||r.value==="dirty"?Xs(l.value):l});{if(r.value==="aborted")return xe;const s=this._def.schema._parseSync({data:o,path:n.path,parent:n});return s.status==="aborted"?xe:s.status==="dirty"||r.value==="dirty"?Xs(s.value):s}}if(i.type==="refinement"){const o=s=>{const l=i.refinement(s,a);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(n.common.async===!1){const s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?xe:(s.status==="dirty"&&r.dirty(),o(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>s.status==="aborted"?xe:(s.status==="dirty"&&r.dirty(),o(s.value).then(()=>({status:r.value,value:s.value}))))}if(i.type==="transform")if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ad(o))return o;const s=i.transform(o.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>ad(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:r.value,value:s})):o);De.assertNever(i)}}Zn.create=(e,t,r)=>new Zn({schema:e,typeName:ye.ZodEffects,effect:t,..._e(r)});Zn.createWithPreprocess=(e,t,r)=>new Zn({schema:t,effect:{type:"preprocess",transform:e},typeName:ye.ZodEffects,..._e(r)});class gi extends je{_parse(t){return this._getType(t)===le.undefined?yr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}gi.create=(e,t)=>new gi({innerType:e,typeName:ye.ZodOptional,..._e(t)});class ao extends je{_parse(t){return this._getType(t)===le.null?yr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ao.create=(e,t)=>new ao({innerType:e,typeName:ye.ZodNullable,..._e(t)});class vd extends je{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===le.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}vd.create=(e,t)=>new vd({innerType:e,typeName:ye.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,..._e(t)});class gd extends je{_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 od(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Xr(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Xr(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}gd.create=(e,t)=>new gd({innerType:e,typeName:ye.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,..._e(t)});class Wp extends je{_parse(t){if(this._getType(t)!==le.nan){const n=this._getOrReturnCtx(t);return se(n,{code:Z.invalid_type,expected:le.nan,received:n.parsedType}),xe}return{status:"valid",value:t.data}}}Wp.create=e=>new Wp({typeName:ye.ZodNaN,..._e(e)});const OV=Symbol("zod_brand");class F1 extends je{_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 xf extends je{_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"?xe:a.status==="dirty"?(r.dirty(),Xs(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"?xe: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 xf({in:t,out:r,typeName:ye.ZodPipeline})}}class yd extends je{_parse(t){const r=this._def.innerType._parse(t),n=i=>(ad(i)&&(i.value=Object.freeze(i.value)),i);return od(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}}yd.create=(e,t)=>new yd({innerType:e,typeName:ye.ZodReadonly,..._e(t)});function j2(e,t={},r){return e?Dl.create().superRefine((n,i)=>{var a,o;if(!e(n)){const s=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t,l=(o=(a=s.fatal)!==null&&a!==void 0?a:r)!==null&&o!==void 0?o:!0,c=typeof s=="string"?{message:s}:s;i.addIssue({code:"custom",...c,fatal:l})}}):Dl.create()}const AV={object:ut.lazycreate};var ye;(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"})(ye||(ye={}));const TV=(e,t={message:`Input not instance of ${e.name}`})=>j2(r=>r instanceof e,t),P2=Un.create,C2=ro.create,jV=Wp.create,PV=no.create,N2=sd.create,CV=is.create,NV=Up.create,$V=ld.create,RV=cd.create,IV=Dl.create,MV=Ko.create,DV=ra.create,LV=zp.create,BV=qn.create,FV=ut.create,UV=ut.strictCreate,zV=ud.create,VV=Mv.create,WV=dd.create,HV=_i.create,qV=fd.create,KV=Vp.create,GV=as.create,YV=dl.create,XV=hd.create,ZV=pd.create,JV=io.create,QV=md.create,eW=Ll.create,lk=Zn.create,tW=gi.create,rW=ao.create,nW=Zn.createWithPreprocess,iW=xf.create,aW=()=>P2().optional(),oW=()=>C2().optional(),sW=()=>N2().optional(),lW={string:e=>Un.create({...e,coerce:!0}),number:e=>ro.create({...e,coerce:!0}),boolean:e=>sd.create({...e,coerce:!0}),bigint:e=>no.create({...e,coerce:!0}),date:e=>is.create({...e,coerce:!0})},cW=xe;var lr=Object.freeze({__proto__:null,defaultErrorMap:Ml,setErrorMap:cV,getErrorMap:Lp,makeIssue:Bp,EMPTY_PATH:uV,addIssueToContext:se,ParseStatus:sr,INVALID:xe,DIRTY:Xs,OK:yr,isAborted:Ab,isDirty:Tb,isValid:ad,isAsync:od,get util(){return De},get objectUtil(){return Ob},ZodParsedType:le,getParsedType:ka,ZodType:je,datetimeRegex:A2,ZodString:Un,ZodNumber:ro,ZodBigInt:no,ZodBoolean:sd,ZodDate:is,ZodSymbol:Up,ZodUndefined:ld,ZodNull:cd,ZodAny:Dl,ZodUnknown:Ko,ZodNever:ra,ZodVoid:zp,ZodArray:qn,ZodObject:ut,ZodUnion:ud,ZodDiscriminatedUnion:Mv,ZodIntersection:dd,ZodTuple:_i,ZodRecord:fd,ZodMap:Vp,ZodSet:as,ZodFunction:dl,ZodLazy:hd,ZodLiteral:pd,ZodEnum:io,ZodNativeEnum:md,ZodPromise:Ll,ZodEffects:Zn,ZodTransformer:Zn,ZodOptional:gi,ZodNullable:ao,ZodDefault:vd,ZodCatch:gd,ZodNaN:Wp,BRAND:OV,ZodBranded:F1,ZodPipeline:xf,ZodReadonly:yd,custom:j2,Schema:je,ZodSchema:je,late:AV,get ZodFirstPartyTypeKind(){return ye},coerce:lW,any:IV,array:BV,bigint:PV,boolean:N2,date:CV,discriminatedUnion:VV,effect:lk,enum:JV,function:YV,instanceof:TV,intersection:WV,lazy:XV,literal:ZV,map:KV,nan:jV,nativeEnum:QV,never:DV,null:RV,nullable:rW,number:C2,object:FV,oboolean:sW,onumber:oW,optional:tW,ostring:aW,pipeline:iW,preprocess:nW,promise:eW,record:qV,set:GV,strictObject:UV,string:P2,symbol
217:NV,transformer:lk,tuple:HV,undefined:$V,union:zV,unknown:MV,void:LV,NEVER:cW,ZodIssueCode:Z,quotelessJson:lV,ZodError:Xr});function uW(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})}const dW=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class U1 extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class fW extends U1{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class ck extends U1{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class uk extends U1{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Pb;(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"})(Pb||(Pb={}));class hW{constructor(t,{headers:r={},customFetch:n,region:i=Pb.Any}={}){this.url=t,this.headers=r,this.region=i,this.fetch=dW(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return uW(this,arguments,void 0,function*(r,n={}){var i;let a,o;try{const{headers:s,method:l,body:c,signal:u,timeout:d}=n;let f={},{region:p}=n;p||(p=this.region);const v=new URL(`${this.url}/${r}`);p&&p!=="any"&&(f["x-region"]=p,v.searchParams.set("forceFunctionRegion",p));let m;const y=!!s&&Object.keys(s).some(E=>E.toLowerCase()==="content-type");c&&!y?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",m=c):typeof c=="string"?(f["Content-Type"]="text/plain",m=c):typeof FormData<"u"&&c instanceof FormData?m=c:(f["Content-Type"]="application/json",m=JSON.stringify(c)):c&&typeof c!="string"&&!(typeof Blob<"u"&&c instanceof Blob)&&!(c instanceof ArrayBuffer)&&!(typeof FormData<"u"&&c instanceof FormData)?m=JSON.stringify(c):m=c;let b=u;d&&(o=new AbortController,a=setTimeout(()=>o.abort(),d),u?(b=o.signal,u.addEventListener("abort",()=>o.abort())):b=o.signal);const g=yield this.fetch(v.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),s),body:m,signal:b}).catch(E=>{throw new fW(E)}),x=g.headers.get("x-relay-error");if(x&&x==="true")throw new ck(g);if(!g.ok)throw new uk(g);let w=((i=g.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),_;return w==="application/json"?_=yield g.json():w==="application/octet-stream"||w==="application/pdf"?_=yield g.blob():w==="text/event-stream"?_=g:w==="multipart/form-data"?_=yield g.formData():_=yield g.text(),{data:_,error:null,response:g}}catch(s){return{data:null,error:s,response:s instanceof uk||s instanceof ck?s.context:void 0}}finally{a&&clearTimeout(a)}})}}const $2=3,dk=e=>Math.min(1e3*2**e,3e4),pW=[520,503],R2=["GET","HEAD","OPTIONS"];var fk=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
217de=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function hk(e,t){return new Promise(r=>{if(t!=null&&t.aborted){r();return}const n=setTimeout(()=>{t==null||t.removeEventListener("abort",i),r()},e);function i(){clearTimeout(n),r()}t==null||t.addEventListener("abort",i)})}function mW(e,t,r,n){return!(!n||r>=$2||!R2.includes(e)||!pW.includes(t))}var vW=class{constructor(e){var t,r,n,i,a;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,this.shouldStripNulls=(n=e.shouldStripNulls)!==null&&n!==void 0?n:!1,this.urlLengthLimit=(i=e.urlLengthLimit)!==null&&i!==void 0?i:8e3,this.retryEnabled=(a=e.retry)!==null&&a!==void 0?a:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var r=this;if(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"),this.shouldStripNulls){const o=this.headers.get("Accept");o==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!o||o==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const n=this.fetch;let a=(async()=>{let o=0;for(;;){const c={};r.headers.forEach((d,f)=>{c[f]=d}),o>0&&(c["X-Retry-Count"]=String(o));let u;try{u=await n(r.url.toString(),{method:r.method,headers:c,body:JSON.stringify(r.body,(d,f)=>typeof f=="bigint"?f.toString():f),signal:r.signal})}catch(d){if((d==null?void 0:d.name)==="AbortError"||(d==null?void 0:d.code)==="ABORT_ERR"||!R2.includes(r.method))throw d;if(r.retryEnabled&&o<$2){const f=dk(o);o++,await hk(f,r.signal);continue}throw d}if(mW(r.method,u.status,o,r.retryEnabled)){var s,l;const d=(s=(l=u.headers)===null||l===void 0?void 0:l.get("Retry-After"))!==null&&s!==void 0?s:null,f=d!==null?Math.max(0,parseInt(d,10)||0)*1e3:dk(o);await u.text(),o++,await hk(f,r.signal);continue}return await r.processResponse(u)}})();return this.shouldThrowOnError||(a=a.catch(o=>{var s;let l="",c="",u="";const d=o==null?void 0:o.cause;if(d){var f,p,v,m;const g=(f=d==null?void 0:d.message)!==null&&f!==void 0?f:"",x=(p=d==null?void 0:d.code)!==null&&p!==void 0?p:"";l=`${(v=o==null?void 0:o.name)!==null&&v!==void 0?v:"FetchError"}: ${o==null?void 0:o.message}`,l+=` 218 219Caused by: ${(m=d==null?void 0:d.name)!==null&&m!==void 0?m:"Error"}: ${g}`,x&&(l+=` (${x})`),d!=null&&d.stack&&(l+=` 220${d.stack}`)}else{var y;l=(y=o==null?void 0:o.stack)!==null&&y!==void 0?y:""}const b=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(u="",c="Request was aborted (timeout or manual cancellation)",b>this.urlLengthLimit&&(c+=`. Note: Your request URL is ${b} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((d==null?void 0:d.name)==="HeadersOverflowError"||(d==null?void 0:d.code)==="UND_ERR_HEADERS_OVERFLOW")&&(u="",c="HTTP headers exceeded server limits (typically 16KB)",b>this.urlLengthLimit&&(c+=`. Your request URL is ${b} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(s=o==null?void 0:o.name)!==null&&s!==void 0?s:"FetchError"}: ${o==null?void 0:o.message}`,details:l,hint:c,code:u},data:null,count:null,status:0,statusText:""}}
220)),a.then(e,t)}async processResponse(e){var t=this;let r=null,n=null,i=null,a=e.status,o=e.statusText;if(e.ok){var s,l;if(t.method!=="HEAD"){var c;const f=await e.text();if(f!=="")if(t.headers.get("Accept")==="text/csv")n=f;else if(t.headers.get("Accept")&&(!((c=t.headers.get("Accept"))===null||c===void 0)&&c.includes("application/vnd.pgrst.plan+text")))n=f;else try{n=JSON.parse(f)}catch{if(r={message:f},n=null,t.shouldThrowOnError)throw new fk({message:f,details:"",hint:"",code:""})}}const u=(s=t.headers.get("Prefer"))===null||s===void 0?void 0:s.match(/count=(exact|planned|estimated)/),d=(l=e.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");u&&d&&d.length>1&&(i=parseInt(d[1])),t.isMaybeSingle&&Array.isArray(n)&&(n.length>1?(r={code:"PGRST116",details:`Results contain ${n.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},n=null,i=null,a=406,o="Not Acceptable"):n.length===1?n=n[0]:n=null)}else{const u=await e.text();try{r=JSON.parse(u),Array.isArray(r)&&e.status===404&&(n=[],r=null,a=200,o="OK")}catch{e.status===404&&u===""?(a=204,o="No Content"):r={message:u}}if(r&&t.shouldThrowOnError)throw new fk(r)}return{success:r===null,error:r,data:n,count:i,status:a,statusText:o}}returns(){return this}overrideTypes(){return this}},gW=class extends vW{throwOnError(){return super.throwOnError()}select(e){let t=!1;const r=(e??"*").split("").map(n=>/\s/.test(n)&&!t?"":(n==='"'&&(t=!t),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:n,referencedTable:i=n}={}){const a=i?`${i}.order`:"order",o=this.url.searchParams.get(a);return this.url.searchParams.set(a,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:n=r}={}){const i=typeof n>"u"?"offset":`${n}.offset`,a=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(a,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:r=!1,buffers:n=!1,wal:i=!1,format:a="text"}={}){var o;const s=[e?"analyze":null,t?"verbose":null,r?"settings":null,n?"buffers":null,i?"wal":null].filter(Boolean).join("|"),l=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${a}; for="${l}"; options=${s};`),a==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const pk=new RegExp("[,()]");var Is=class extends gW{throwOnError(){return super.throwOnError()}eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&pk.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&pk.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:n}={}){let i="";n==="plain"?i="pl":n==="phrase"?i="ph":n==="websearch"&&(i="w");const a=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${i}fts${a}.${t}`),this}match(e){return Object.entries(e).filter(([t,r])=>
220r!==void 0).forEach(([t,r])=>{this.url.searchParams.append(t,`eq.${r}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},yW=class{constructor(e,{headers:t={},schema:r,fetch:n,urlLengthLimit:i=8e3,retry:a}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=n,this.urlLengthLimit=i,this.retry=a}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:r=!1,count:n}=t??{},i=r?"HEAD":"GET";let a=!1;const o=(e??"*").split("").map(c=>/\s/.test(c)&&!a?"":(c==='"'&&(a=!a),c)).join(""),{url:s,headers:l}=this.cloneRequestState();return s.searchParams.set("select",o),n&&l.append("Prefer",`count=${n}`),new Is({method:i,url:s,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:r=!0}={}){var n;const i="POST",{url:a,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),r||o.append("Prefer","missing=default"),Array.isArray(e)){const s=e.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(s.length>0){const l=[...new Set(s)].map(c=>`"${c}"`);a.searchParams.set("columns",l.join(","))}}return new Is({method:i,url:a,headers:o,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:n,defaultToNull:i=!0}={}){var a;const o="POST",{url:s,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),t!==void 0&&s.searchParams.set("on_conflict",t),n&&l.append("Prefer",`count=${n}`),i||l.append("Prefer","missing=default"),Array.isArray(e)){const c=e.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(c.length>0){const u=[...new Set(c)].map(d=>`"${d}"`);s.searchParams.set("columns",u.join(","))}}return new Is({method:o,url:s,headers:l,schema:this.schema,body:e,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var r;const n="PATCH",{url:i,headers:a}=this.cloneRequestState();return t&&a.append("Prefer",`count=${t}`),new Is({method:n,url:i,headers:a,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const r="DELETE",{url:n,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new Is({method:r,url:n,headers:i,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function bd(e){"@babel/helpers - typeof";return bd=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},bd(e)}function bW(e,t){if(bd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xW(e){var t=bW(e,"string");return bd(t)=="symbol"?t:t+""}function wW(e,t,r){return(t=xW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mk(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 ah(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mk(Object(r),!0).forEach(function(n){wW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var _W=class I2{constructor(t,{headers:r={},schema:n,fetch:i,timeout:a,urlLengthLimit:o=8e3,retry:s}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.urlLengthLimit=o;const l=i??globalThis.fetch;a!==void 0&&a>0?this.fetch=(c,u)=>{const d=new AbortController,f=setTimeout(()=>d.abort(),a),p=u==null?void 0:u.signal;if(p){if(p.aborted)return clearTimeout(f),l(c,u);const v=()=>{clearTimeout(f),d.abort()};return p.addEventListener("abort",v,{once:!0}),l(c,ah(ah({},u),{},{signal:d.signal})).finally(()=>{clearTimeout(f),p.removeEventListener("abort",v)})}return l(c,ah(ah({},u),{},{signal:d.signal})).finally(()=>clearTimeout(f))}:this.fetch=l,this.retry=s}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");
220return new yW(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new I2(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,r={},{head:n=!1,get:i=!1,count:a}={}){var o;let s;const l=new URL(`${this.url}/rpc/${t}`);let c;const u=p=>p!==null&&typeof p=="object"&&(!Array.isArray(p)||p.some(u)),d=n&&Object.values(r).some(u);d?(s="POST",c=r):n||i?(s=n?"HEAD":"GET",Object.entries(r).filter(([p,v])=>v!==void 0).map(([p,v])=>[p,Array.isArray(v)?`{${v.join(",")}}`:`${v}`]).forEach(([p,v])=>{l.searchParams.append(p,v)})):(s="POST",c=r);const f=new Headers(this.headers);return d?f.set("Prefer",a?`count=${a},return=minimal`:"return=minimal"):a&&f.set("Prefer",`count=${a}`),new Is({method:s,url:l,headers:f,schema:this.schemaName,body:c,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class SW{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const r=globalThis;if(typeof globalThis<"u"&&typeof r.WebSocket<"u")return{type:"native",wsConstructor:r.WebSocket};const n=typeof global<"u"?global:void 0;if(n&&typeof n.WebSocket<"u")return{type:"native",wsConstructor:n.WebSocket};if(typeof globalThis<"u"&&typeof r.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"&&r.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."};const i=globalThis.process;if(i){const a=i.versions;if(a&&a.node)return{type:"unsupported",error:"Node.js detected but native WebSocket not found.",workaround:"Ensure you are running Node.js 22+ or provide a WebSocket implementation via the transport option."}}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.wsConstructor)return t.wsConstructor;let r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=` 221 222Suggested solution: ${t.workaround}`),new Error(r)}static isWebSocketSupported(){try{return this.detectEnvironment().type==="native"}catch{return!1}}}const EW="2.110.3",kW=`realtime-js/${EW}`,OW="1.0.0",M2="2.0.0",AW=M2,TW=1e4,jW=100,Oa={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},D2={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},Cb={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class PW{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,r){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(t));let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(t){var r;return this._isArrayBuffer((r=t.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var r,n;const i=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(t){var r,n;const i=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},o=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,r,n){var i,a;const o=t.topic,s=(i=t.ref)!==null&&i!==void 0?i:"",l=(a=t.join_ref)!==null&&a!==void 0?a:"",c=t.payload.event,u=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},d=Object.keys(u).length===0?"":JSON.stringify(u);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(s.length>255)throw new Error(`ref length ${s.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`metadata length ${d.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+s.length+o.length+c.length+d.length,p=new ArrayBuffer(this.HEADER_LENGTH+f);let v=new DataView(p),m=0;v.setUint8(m++,this.KINDS.userBroadcastPush),v.setUint8(m++,l.length),v.setUint8(m++,s.length),v.setUint8(m++,o.length),v.setUint8(m++,c.length),v.setUint8(m++,d.length),v.setUint8(m++,r),Array.from(l,b=>v.setUint8(m++,b.charCodeAt(0))),Array.from(s,b=>v.setUint8(m++,b.charCodeAt(0))),Array.from(o,b=>v.setUint8(m++,b.charCodeAt(0))),Array.from(c,b=>v.setUint8(m++,b.charCodeAt(0))),Array.from(d,b=>v.setUint8(m++,b.charCodeAt(0)));var y=new Uint8Array(p.byteLength+n.byteLength);return y.set(new Uint8Array(p),0),y.set(new Uint8Array(n),p.byteLength),y.buffer}decode(t,r){if(this._isArrayBuffer(t)){let n=this._binaryDecode(t);return r(n)}if(typeof t=="string"){const n=JSON.parse(t),[i,a,o,s,l]=n;return r({join_ref:i,ref:a,topic:o,event:s,payload:l})}return r({})}_binaryDecode(t){const r=new DataView(t),n=r.getUint8(0),i=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,r,i)}}_decodeUserBroadcast(t,r,n){const i=r.getUint8(1),a=r.getUint8(2),o=r.getUint8(3),s=r.getUint8(4);let l=this.HEADER_LENGTH+4;const c=n.decode(t.slice(l,l+i));l=l+i;const u=n.decode(t.slice(l,l+a));l=l+a;
222const d=n.decode(t.slice(l,l+o));l=l+o;const f=t.slice(l,t.byteLength),p=s===this.JSON_ENCODING?JSON.parse(n.decode(f)):f,v={type:this.BROADCAST_EVENT,event:u,payload:p};return o>0&&(v.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:v}}_isArrayBuffer(t){var r;return t instanceof ArrayBuffer||((r=t==null?void 0:t.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(t,r){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([n])=>r.includes(n)))}}var Ze;(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"})(Ze||(Ze={}));const vk=(e,t,r={})=>{var n;const i=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((a,o)=>(a[o]=CW(o,e,t,i),a),{}):{}},CW=(e,t,r,n)=>{const i=t.find(s=>s.name===e),a=i==null?void 0:i.type,o=r[e];return a&&!n.includes(a)?L2(a,o):Nb(o)},L2=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return IW(t,r)}switch(e){case Ze.bool:return NW(t);case Ze.float4:case Ze.float8:case Ze.int2:case Ze.int4:case Ze.int8:case Ze.numeric:case Ze.oid:return $W(t);case Ze.json:case Ze.jsonb:return RW(t);case Ze.timestamp:return MW(t);case Ze.abstime:case Ze.date:case Ze.daterange:case Ze.int4range:case Ze.int8range:case Ze.money:case Ze.reltime:case Ze.text:case Ze.time:case Ze.timestamptz:case Ze.timetz:case Ze.tsrange:case Ze.tstzrange:return Nb(t);default:return Nb(t)}},Nb=e=>e,NW=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},$W=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},RW=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},IW=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let a;const o=e.slice(1,r);try{a=JSON.parse("["+o+"]")}catch{a=o?o.split(","):[]}return a.map(s=>L2(t,s))}return e},MW=e=>typeof e=="string"?e.replace(" ","T"):e,B2=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var ju=e=>typeof e=="function"?e:function(){return e},DW=typeof self<"u"?self:null,Ms=typeof window<"u"?window:null,ai=DW||Ms||globalThis,LW="2.0.0",BW=1e4,FW=1e3,ci={connecting:0,open:1,closing:2,closed:3},wr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Ii={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},$b={longpoll:"longpoll",websocket:"websocket"},UW={complete:4},Rb="base64url.bearer.phx.",oh=class{constructor(e,t,r,n){this.channel=e,this.event=t,this.payload=r||function(){return{}},this.receivedResp=null,this.timeout=n,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),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()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:r}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},F2=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},zW=class{constructor(e,t,r){this.state=wr.closed,this.topic=e,this.params=ju(t||{}),this.socket=r,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new oh(this,Ii.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new F2(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=wr.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(n=>n.send()),this.pushBuffer=[]}),this.joinPush.receive("error",n=>{this.state=wr.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,n),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=wr.closed,this.socket.remove(this)}),this.onError(n=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,n),this.isJoining()&&this.joinPush.reset(),this.state=wr.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new oh(this,Ii.leave,ju({}),this.timeout).send(),this.state=wr.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Ii.reply,(n,i)=>{this.trigger(this.replyEventName(i),n)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}
vendor: 5,263 bytes, line 222
222teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=wr.closed,this.bindings=[]}onClose(e){this.on(Ii.close,e)}onError(e){return this.on(Ii.error,t=>e(t))}on(e,t){let r=this.bindingRef++;return this.bindings.push({event:e,ref:r,callback:t}),r}off(e,t){this.bindings=this.bindings.filter(r=>!(r.event===e&&(typeof t>"u"||t===r.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,r=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let n=new oh(this,e,function(){return t},r);return this.canPush()?n.send():(n.startTimeout(),this.pushBuffer.push(n)),n}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=wr.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Ii.close,"leave")},r=new oh(this,Ii.leave,ju({}),e);return r.receive("ok",()=>t()).receive("timeout",()=>t()),r.send(),this.canPush()||r.trigger("ok",{}),r}onMessage(e,t,r){return t}filterBindings(e,t,r){return!0}isMember(e,t,r,n){return this.topic!==e?!1:n&&n!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:r,joinRef:n}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=wr.joining,this.joinPush.resend(e))}trigger(e,t,r,n){let i=this.onMessage(e,t,r,n);if(t&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let a=this.bindings.filter(o=>o.event===e&&this.filterBindings(o,t,r));for(let o=0;o<a.length;o++)a[o].callback(i,r,n||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===wr.closed}isErrored(){return this.state===wr.errored}isJoined(){return this.state===wr.joined}isJoining(){return this.state===wr.joining}isLeaving(){return this.state===wr.leaving}},Hp=class{static request(e,t,r,n,i,a,o){if(ai.XDomainRequest){let s=new ai.XDomainRequest;return this.xdomainRequest(s,e,t,n,i,a,o)}else if(ai.XMLHttpRequest){let s=new ai.XMLHttpRequest;return this.xhrRequest(s,e,t,r,n,i,a,o)}else{if(ai.fetch&&ai.AbortController)return this.fetchRequest(e,t,r,n,i,a,o);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,r,n,i,a,o){let s={method:e,headers:r,body:n},l=null;return i&&(l=new AbortController,setTimeout(()=>l.abort(),i),s.signal=l.signal),ai.fetch(t,s).then(c=>c.text()).then(c=>this.parseJSON(c)).then(c=>o&&o(c)).catch(c=>{c.name==="AbortError"&&a?a():o&&o(null)}),l}static xdomainRequest(e,t,r,n,i,a,o){return e.timeout=i,e.open(t,r),e.onload=()=>{let s=this.parseJSON(e.responseText);o&&o(s)},a&&(e.ontimeout=a),e.onprogress=()=>{},e.send(n),e}static xhrRequest(e,t,r,n,i,a,o,s){e.open(t,r,!0),e.timeout=a;for(let[l,c]of Object.entries(n))e.setRequestHeader(l,c);return e.onerror=()=>s&&s(null),e.onreadystatechange=()=>{if(e.readyState===UW.complete&&s){let l=this.parseJSON(e.responseText);s(l)}},o&&(e.ontimeout=o),e.send(i),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let r=[];for(var n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let i=t?`${t}[${n}]`:n,a=e[n];typeof a=="object"?r.push(this.serialize(a,i)):r.push(encodeURIComponent(i)+"="+encodeURIComponent(a))}return r.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let r=e.match(/\?/)?"&":"?";return`${e}${r}${this.serialize(t)}`}},VW=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let i=0;i<n;i++)t+=String.fromCharCode(r[i]);return btoa(t)},Es=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(Rb)&&(this.authToken=atob(t[1].slice(Rb.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=ci.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+$b.websocket),"$1/"+$b.longpoll)}endpointURL(){return Hp.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,r){this.close(e,t,r),this.readyState=ci.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===ci.open||this.readyState===ci.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:r,token:n,messages:i}=t;if(r===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=n}else r=0;switch(r){case 200:i.forEach(a=>{setTimeout(()=>this.onmessage({data:a}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=ci.open,this.onopen({}),this.poll();break;
222case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${r}`)}})}send(e){typeof e!="string"&&(e=VW(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(` 223`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,r){for(let i of this.reqs)i.abort();this.readyState=ci.closed;let n=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:r});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",n)):this.onclose(n)}ajax(e,t,r,n,i){let a,o=()=>{this.reqs.delete(a),n()};a=Hp.request(e,this.endpointURL(),t,r,this.timeout,o,s=>{this.reqs.delete(a),this.isActive()&&i(s)}),this.reqs.add(a)}},WW=class fu{constructor(t,r={}){let n=r.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(n.state,i=>{let{onJoin:a,onLeave:o,onSync:s}=this.caller;this.joinRef=this.channel.joinRef(),this.state=fu.syncState(this.state,i,a,o),this.pendingDiffs.forEach(l=>{this.state=fu.syncDiff(this.state,l,a,o)}),this.pendingDiffs=[],s()}),this.channel.on(n.diff,i=>{let{onJoin:a,onLeave:o,onSync:s}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=fu.syncDiff(this.state,i,a,o),s())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return fu.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,r,n,i){let a=this.clone(t),o={},s={};return this.map(a,(l,c)=>{r[l]||(s[l]=c)}),this.map(r,(l,c)=>{let u=a[l];if(u){let d=c.metas.map(m=>m.phx_ref),f=u.metas.map(m=>m.phx_ref),p=c.metas.filter(m=>f.indexOf(m.phx_ref)<0),v=u.metas.filter(m=>d.indexOf(m.phx_ref)<0);p.length>0&&(o[l]=c,o[l].metas=p),v.length>0&&(s[l]=this.clone(u),s[l].metas=v)}else o[l]=c}),this.syncDiff(a,{joins:o,leaves:s},n,i)}static syncDiff(t,r,n,i){let{joins:a,leaves:o}=this.clone(r);return n||(n=function(){}),i||(i=function(){}),this.map(a,(s,l)=>{let c=t[s];if(t[s]=this.clone(l),c){let u=t[s].metas.map(f=>f.phx_ref),d=c.metas.filter(f=>u.indexOf(f.phx_ref)<0);t[s].metas.unshift(...d)}n(s,c,l)}),this.map(o,(s,l)=>{let c=t[s];if(!c)return;let u=l.metas.map(d=>d.phx_ref);c.metas=c.metas.filter(d=>u.indexOf(d.phx_ref)<0),i(s,c,l),c.metas.length===0&&delete t[s]}),t}static list(t,r){return r||(r=function(n,i){return i}),this.map(t,(n,i)=>r(n,i))}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static clone(t){return JSON.parse(JSON.stringify(t))}},sh={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let r=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(r))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[r,n,i,a,o]=JSON.parse(e);return t({join_ref:r,ref:n,topic:i,event:a,payload:o})}},binaryEncode(e){let{join_ref:t,ref:r,event:n,topic:i,payload:a}=e,o=this.META_LENGTH+t.length+r.length+i.length+n.length,s=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(s),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,t.length),l.setUint8(c++,r.length),l.setUint8(c++,i.length),l.setUint8(c++,n.length),Array.from(t,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(i,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(c++,d.charCodeAt(0)));var u=new Uint8Array(s.byteLength+a.byteLength);return u.set(new Uint8Array(s),0),u.set(new Uint8Array(a),s.byteLength),u.buffer},binaryDecode(e){let t=new DataView(e),r=t.getUint8(0),n=new TextDecoder;
vendor: 8,661 bytes, line 223
223switch(r){case this.KINDS.push:return this.decodePush(e,t,n);case this.KINDS.reply:return this.decodeReply(e,t,n);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,n)}},decodePush(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,s=r.decode(e.slice(o,o+n));o=o+n;let l=r.decode(e.slice(o,o+i));o=o+i;let c=r.decode(e.slice(o,o+a));o=o+a;let u=e.slice(o,e.byteLength);return{join_ref:s,ref:null,topic:l,event:c,payload:u}},decodeReply(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,l=r.decode(e.slice(s,s+n));s=s+n;let c=r.decode(e.slice(s,s+i));s=s+i;let u=r.decode(e.slice(s,s+a));s=s+a;let d=r.decode(e.slice(s,s+o));s=s+o;let f=e.slice(s,e.byteLength),p={status:d,response:f};return{join_ref:l,ref:c,topic:u,event:Ii.reply,payload:p}},decodeBroadcast(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),a=this.HEADER_LENGTH+2,o=r.decode(e.slice(a,a+n));a=a+n;let s=r.decode(e.slice(a,a+i));a=a+i;let l=e.slice(a,e.byteLength);return{join_ref:null,ref:null,topic:o,event:s,payload:l}}},HW=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||BW,this.transport=t.transport||ai.WebSocket||Es,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let r=null;try{r=ai&&ai.sessionStorage}catch{}this.sessionStore=t.sessionStorage||r,this.establishedConnections=0,this.defaultEncoder=sh.encode.bind(sh),this.defaultDecoder=sh.decode.bind(sh),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==Es?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;Ms&&Ms.addEventListener&&(Ms.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),n=this.connectClock)}),Ms.addEventListener("pageshow",i=>{n===this.connectClock&&(n=null,this.connect())}),Ms.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=i=>t.rejoinAfterMs?t.rejoinAfterMs(i):[1e3,2e3,5e3][i-1]||1e4,this.reconnectAfterMs=i=>t.reconnectAfterMs?t.reconnectAfterMs(i):[10,50,100,150,200,250,500,1e3,2e3][i-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(i,a,o)=>{console.log(`${i}: ${a}`,o)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=ju(t.params||{}),this.endPoint=`${e}/${$b.websocket}`,this.vsn=t.vsn||LW,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new F2(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return Es}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=Hp.appendParams(Hp.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,r){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,r)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=ju(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Es?this.connectWithFallback(Es,this.longPollFallbackMs):this.transportConnect())}log(e,t,r){this.logger&&this.logger(e,t,r)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),r=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let n=this.onMessage(i=>{i.ref===t&&(this.off([n]),e(Date.now()-r))});return!0}transportName(e){switch(e){case Es:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${Rb}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,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)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let r=!1,n=!0,i,a,o=this.transportName(e),s=l=>{this.log("transport",`falling back to ${o}...`,l),this.off([i,a]),n=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return s("memorized");this.fallbackTimer=setTimeout(s,t),a=this.onError(l=>{this.log("transport","error",l),n&&!r&&(clearTimeout(this.fallbackTimer),s(l))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(r=!0,!n){let l=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${l}`,"true"),this.log("transport",`established ${l} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(s,t),this.ping(l=>{this.log("transport","connected to primary after",l),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),FW,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,r){if(!this.conn)return e&&e();const n=this.conn;this.waitForBufferDone(n,()=>{t?n.close(t,r||""):n.close(),this.waitForSocketClosed(n,()=>{this.conn===n&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,r=1){if(r===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,r+1)},150*r)}waitForSocketClosed(e,t,r=1){if(r===5||e.readyState===ci.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,r+1)},150*r)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,r=this.establishedConnections;this.triggerStateCallbacks("error",e,t,r),(t===this.transport||r>0)&&this.triggerChanError(e)}
vendor: 4,126 bytes, line 223
223triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Ii.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case ci.connecting:return"connecting";case ci.open:return"open";case ci.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([r])=>e.indexOf(r)===-1)}channel(e,t={}){let r=new zW(e,t,this);return this.channels.push(r),r}push(e){if(this.hasLogger()){let{topic:t,event:r,payload:n,ref:i,join_ref:a}=e;this.log("push",`${t} ${r} (${a}, ${i})`,n)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:r,event:n,payload:i,ref:a,join_ref:o}=t;if(a&&a===this.pendingHeartbeatRef){const s=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(i.status==="ok"?"ok":"error",s)}catch(l){this.log("error","error in heartbeat callback",l)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${i.status||""} ${r} ${n} ${a&&"("+a+")"||""}`.trim(),i);for(let s=0;s<this.channels.length;s++){const l=this.channels[s];l.isMember(r,n,i,o)&&l.trigger(n,i,a,o)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([r,n])=>{try{n(...t)}catch(i){this.log("error",`error in ${e} callback`,i)}})}catch(r){this.log("error",`error triggering ${e} callbacks`,r)}}leaveOpenTopic(e){let t=this.channels.find(r=>r.topic===e&&(r.isJoined()||r.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Pu{constructor(t,r){const n=KW(r);this.presence=new WW(t.getChannel(),n),this.presence.onJoin((i,a,o)=>{const s=Pu.onJoinPayload(i,a,o);t.getChannel().trigger("presence",s)}),this.presence.onLeave((i,a,o)=>{const s=Pu.onLeavePayload(i,a,o);t.getChannel().trigger("presence",s)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Pu.transformState(this.presence.state)}static transformState(t){return t=qW(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const i=t[n];return r[n]=Qh(i),r},{})}static onJoinPayload(t,r,n){const i=gk(r),a=Qh(n);return{event:"join",key:t,currentPresences:i,newPresences:a}}static onLeavePayload(t,r,n){const i=gk(r),a=Qh(n);return{event:"leave",key:t,currentPresences:i,leftPresences:a}}}function Qh(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function qW(e){return JSON.parse(JSON.stringify(e))}function KW(e){return(e==null?void 0:e.events)&&{events:e.events}}function gk(e){return e!=null&&e.metas?Qh(e):[]}var yk;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(yk||(yk={}));class GW{get state(){return this.presenceAdapter.state}constructor(t,r){this.channel=t,this.presenceAdapter=new Pu(this.channel.channelAdapter,r)}}function YW(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
223if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const r=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${r}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class XW{constructor(t,r,n){const i=ZW(n);this.channel=t.getSocket().channel(r,i),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,r){return this.channel.on(t,r)}off(t,r){this.channel.off(t,r)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,r,n){let i;try{i=this.channel.push(t,r,n)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>jW){const a=this.channel.pushBuffer.shift();a.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${a.event}`,a.payload())}return i}updateJoinPayload(t){const r=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},r),t)}canPush(){return this.socket.isConnected()&&this.state===Oa.joined}isJoined(){return this.state===Oa.joined}isJoining(){return this.state===Oa.joining}isClosed(){return this.state===Oa.closed}isLeaving(){return this.state===Oa.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function ZW(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}const JW=/[,()"\\]/,QW=e=>JW.test(e)||e!==e.trim(),eH=e=>`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,bk=e=>{const t=e===null?"null":String(e);return QW(t)?eH(t):t},tH=e=>e===null?"null":String(e),rH=(e,t)=>{if(e==="in"){const r=Array.isArray(t)?t:[t];if(r.length===0)throw new Error("Realtime `in` filter requires at least one value.");return`in.(${Array.from(new Set(r)).map(i=>bk(i)).join(",")})`}return e==="is"?`is.${tH(t)}`:`${e}.${bk(t)}`};class nH{constructor(){this.filters=[]}add(t,r,n,i=!1){const a=i?"not.":"";return this.filters.push(`${t}=${a}${rH(r,n)}`),this}eq(t,r){return this.add(t,"eq",r)}neq(t,r){return this.add(t,"neq",r)}gt(t,r){return this.add(t,"gt",r)}gte(t,r){return this.add(t,"gte",r)}lt(t,r){return this.add(t,"lt",r)}lte(t,r){return this.add(t,"lte",r)}in(t,r){return this.add(t,"in",r)}like(t,r){return this.add(t,"like",r)}ilike(t,r){return this.add(t,"ilike",r)}match(t,r){return this.add(t,"match",r)}imatch(t,r){return this.add(t,"imatch",r)}is(t,r){return this.add(t,"is",r)}isDistinct(t,r){return this.add(t,"isdistinct",r)}not(t,r,n){return this.add(t,r,n,!0)}build(){return this.filters.join(",")}toString(){return this.build()}}var xk;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(xk||(xk={}));var Zs;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Zs||(Zs={}));var Mi;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Mi||(Mi={}));class Cu{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,r={config:{}},n){var i,a;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},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.channelAdapter=new XW(this.socket.socketAdapter,t,this.params),this.presence=new GW(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=B2(this.socket.socketAdapter.endPointURL()),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 new Error(`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.channelAdapter.isClosed()){const{config:{broadcast:o,presence:s,private:l}}=this.params,c=(i=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(p=>p.filter))!==null&&i!==void 0?i:[],u=!!this.bindings[Zs.PRESENCE]&&this.bindings[Zs.PRESENCE].length>0||((a=this.params.config.presence)===null||a===void 0?void 0:a.enabled)===!0,d={},f={broadcast:o,presence:Object.assign(Object.assign({},s),{enabled:u}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(p=>{t==null||t(Mi.CHANNEL_ERROR,YW(p))}),this._onClose(()=>t==null?void 0:t(Mi.CLOSED)),this.updateJoinPayload(Object.assign({config:f},d)),this._updateFilterMessage(),this.channelAdapter.subscribe(r).receive("ok",async({postgres_changes:p})=>{if(this.socket._isManualToken()||this.socket.setAuth(),p===void 0){t==null||t(Mi.SUBSCRIBED);return}this._updatePostgresBindings(p,t)}
223).receive("error",p=>{this.state=Oa.errored;const v=Object.values(p).join(", ")||"error";t==null||t(Mi.CHANNEL_ERROR,new Error(v,{cause:p}))}).receive("timeout",()=>{t==null||t(Mi.TIMED_OUT)})}return this}_updatePostgresBindings(t,r){var n;const i=this.bindings.postgres_changes,a=(n=i==null?void 0:i.length)!==null&&n!==void 0?n:0,o=[];for(let s=0;s<a;s++){const l=i[s],{filter:{event:c,schema:u,table:d,filter:f}}=l,p=t&&t[s];if(p&&p.event===c&&Cu.isFilterValueEqual(p.schema,u)&&Cu.isFilterValueEqual(p.table,d)&&Cu.isFilterValueEqual(p.filter,f))o.push(Object.assign(Object.assign({},l),{id:p.id}));else{this.unsubscribe(),this.state=Oa.errored,r==null||r(Mi.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=Oa.errored&&r&&r(Mi.SUBSCRIBED)}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){const i=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),a=t===Zs.PRESENCE||t===Zs.POSTGRES_CHANGES;if(i&&a)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,r,n)}async httpSend(t,r,n={}){var i;if(r==null)return Promise.reject(new Error("Payload is required for httpSend()"));const a=r instanceof ArrayBuffer||ArrayBuffer.isView(r),o={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":a?"application/octet-stream":"application/json"};this.socket.accessTokenValue&&(o.Authorization=`Bearer ${this.socket.accessTokenValue}`);const s=new URL(this.broadcastEndpointURL);s.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(t)}`,this.private&&s.searchParams.set("private","true");const l={method:"POST",headers:o,body:a?r:JSON.stringify(r)},c=await this._fetchWithTimeout(s.toString(),l,(i=n.timeout)!==null&&i!==void 0?i:this.timeout);if(c.status===202)return{success:!0};if(c.status===404)return Promise.reject(new Error("httpSend() requires Realtime server v2.97.0 or newer; the endpoint returned 404. Update your Supabase CLI to a recent version, or upgrade the Realtime server in your self-hosted setup. See https://github.com/supabase/supabase-js/blob/master/packages/core/realtime-js/migrations/httpsend-server-version.md"));let u=c.statusText;try{const d=await c.json();u=d.error||d.message||u}catch{}return Promise.reject(new Error(u))}async send(t,r={}){var n,i;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
223in the future. Please use httpSend() explicitly for REST delivery.");const{event:a,payload:o}=t,s={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(s.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:s,body:JSON.stringify({messages:[{topic:this.subTopic,event:a,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(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 instanceof Error&&c.name==="AbortError"?"timed out":"error"}}else return new Promise(a=>{var o,s,l;const c=this.channelAdapter.push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(s=(o=this.params)===null||o===void 0?void 0:o.config)===null||s===void 0?void 0:s.broadcast)===null||l===void 0)&&l.ack)&&a("ok"),c.receive("ok",()=>a("ok")),c.receive("error",()=>a("error")),c.receive("timeout",()=>a("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(r=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>r("ok")).receive("timeout",()=>r("timed out")).receive("error",()=>r("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,r,n){const i=new AbortController,a=setTimeout(()=>i.abort(),n),o=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:i.signal}));return clearTimeout(a),o}_on(t,r,n){const i=t.toLocaleLowerCase(),a=r==null?void 0:r.filter;(a instanceof nH||typeof a=="object"&&a!==null&&typeof a.build=="function")&&(r=Object.assign(Object.assign({},r),{filter:a.build()}));const o=this.channelAdapter.on(t,n),s={type:i,filter:r,callback:n,ref:o};return this.bindings[i]?this.bindings[i].push(s):this.bindings[i]=[s],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,r,n)=>{var i,a,o,s,l,c,u;const d=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(d,n))return!1;const f=(i=this.bindings[d])===null||i===void 0?void 0:i.find(p=>p.ref===t.ref);if(!f)return!0;if(["broadcast","presence","postgres_changes"].includes(d))if("id"in f){const p=f.id,v=(a=f.filter)===null||a===void 0?void 0:a.event;return p&&((o=r.ids)===null||o===void 0?void 0:o.includes(p))&&(v==="*"||(v==null?void 0:v.toLocaleLowerCase())===((s=r.data)===null||s===void 0?void 0:s.type.toLocaleLowerCase()))}else{const p=(c=(l=f==null?void 0:f.filter)===null||l===void 0?void 0:l.event)===null||c===void 0?void 0:c.toLocaleLowerCase();return p==="*"||p===((u=r==null?void 0:r.event)===null||u===void 0?void 0:u.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===d})}_notThisChannelEvent(t,r){const{close:n,error:i,leave:a,join:o}=D2;return r&&[n,i,a,o].includes(t)&&r!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,r,n)=>{if(typeof r=="object"&&"ids"in r){const i=r.data,{schema:a,table:o,commit_timestamp:s,type:l,errors:c}=i;return Object.assign(Object.assign({},{schema:a,table:o,commit_timestamp:s,eventType:l,new:{},old:{},errors:c}),this._getPayloadRecords(i))}return r})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const r in t.bindings)for(const n of t.bindings[r])this._on(n.type,n.filter,n.callback)}static isFilterValueEqual(t,r){return(t??void 0)===(r??void 0)}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=vk(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=vk(t.columns,t.old_record)),r}}class iH{constructor(t,r){this.socket=new HW(t,r)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,r,n,i=1e4){return new Promise(a=>{setTimeout(()=>a("timeout"),i),this.socket.disconnect(()=>{t(),a("ok")},r,n)})}push(t){this.socket.push(t)}log(t,r,n){this.socket.log(t,r,n)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Cb.connecting}isDisconnecting(){return this.socket.connectionState()==Cb.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const wk={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},aH=[1e3,2e3,5e3,1e4],oH=1e4;function sH(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){var r;return(r=Array.from(e.keys())[t])!==null&&r!==void 0?r:null},removeItem(t){e.delete(t)},setItem(t,r){e.set(t,String(r))}}}function lH(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return sH()}const cH=` 224 addEventListener("message", (e) => { 225 if (e.data.event === "start") { 226 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 227 } 228 });`;class uH{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,r){var n;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
228,this.ref=0,this.serializer=new PW,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=a=>a?(...o)=>a(...o):(...o)=>fetch(...o),!(!((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;const i=this._initializeOptions(r);this.socketAdapter=new iH(t,i),this.httpEndpoint=B2(t),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const r=t.message;throw new Error(`WebSocket not available: ${r}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,r){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,r)}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return r==="ok"&&t.teardown(),r}async removeAllChannels(){const t=this.channels.map(async n=>{const i=await n.unsubscribe();return n.teardown(),i}),r=await Promise.all(t);return await this.disconnect(),r}log(t,r,n){this.socketAdapter.log(t,r,n)}connectionState(){return this.socketAdapter.connectionState()||Cb.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,r={config:{}}){const n=`realtime:${t}`,i=this.getChannels().find(a=>a.topic===n);if(i)return i;{const a=new Cu(`realtime:${t}`,r,this);return this._cancelPendingDisconnect(),this.channels.push(a),a}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
228this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(t=null){let r,n=!1;if(t)r=t,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(i=>{const a={access_token:r,version:kW};r&&i.updateJoinPayload(a),i.joinedOnce&&i.channelAdapter.isJoined()&&i.channelAdapter.push(D2.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${t}`,r)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(r=>{this.log("error","error waiting for auth on connect",r)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(r,n)=>{r!=="disconnected"&&(r=="sent"&&this._setAuthSafely(),t&&t(r,n))}}_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._terminateWorker(),this.disconnect()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([cH],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_initializeOptions(t){var r,n,i,a,o,s,l,c,u,d,f,p;this.worker=(r=t==null?void 0:t.worker)!==null&&r!==void 0?r:!1,this.accessToken=(n=t==null?void 0:t.accessToken)!==null&&n!==void 0?n:null;const v={};v.timeout=(i=t==null?void 0:t.timeout)!==null&&i!==void 0?i:TW,v.heartbeatIntervalMs=(a=t==null?void 0:t.heartbeatIntervalMs)!==null&&a!==void 0?a:wk.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(o=t==null?void 0:t.disconnectOnEmptyChannelsAfterMs)!==null&&o!==void 0?o:2*((s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:wk.HEARTBEAT_INTERVAL),v.transport=(l=t==null?void 0:t.transport)!==null&&l!==void 0?l:SW.getWebSocketConstructor(),v.params=t==null?void 0:t.params,v.logger=t==null?void 0:t.logger,v.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),v.sessionStorage=(c=t==null?void 0:t.sessionStorage)!==null&&c!==void 0?c:lH(),v.reconnectAfterMs=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:g=>aH[g-1]||oH;let m,y;const b=(d=t==null?void 0:t.vsn)!==null&&d!==void 0?d:AW;switch(b){case OW:m=(g,x)=>x(JSON.stringify(g)),y=(g,x)=>x(JSON.parse(g));break;case M2:m=this.serializer.encode.bind(this.serializer),y=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${v.vsn}`)}if(v.vsn=b,v.encode=(f=t==null?void 0:t.encode)!==null&&f!==void 0?f:m,v.decode=(p=t==null?void 0:t.decode)!==null&&p!==void 0?p:y,v.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,v.params=Object.assign(Object.assign({},v.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl,v.autoSendHeartbeat=!this.worker}return v}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
228var xd=class extends Error{constructor(e,t){var r;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((r=t.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function dH(e,t,r){const n=new URL(t,e);if(r)for(const[i,a]of Object.entries(r))a!==void 0&&n.searchParams.set(i,a);return n.toString()}async function fH(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function hH(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:i,body:a,headers:o}){const s=dH(e.baseUrl,n,i),l=await fH(e.auth),c=await t(s,{method:r,headers:{...a?{"Content-Type":"application/json"}:{},...l,...o},body:a?JSON.stringify(a):void 0}),u=await c.text(),d=(c.headers.get("content-type")||"").includes("application/json"),f=d&&u?JSON.parse(u):u;if(!c.ok){const p=d?f:void 0,v=p==null?void 0:p.error;throw new xd((v==null?void 0:v.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:v==null?void 0:v.type,icebergCode:v==null?void 0:v.code,details:p})}return{status:c.status,headers:c.headers,data:f}}}}function lh(e){return e.join("�")}var pH=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:lh(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(e,t){const r={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${lh(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${lh(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${lh(e.namespace)}`}),!0}catch(t){if(t instanceof xd&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(r){if(r instanceof xd&&r.status===409)return;throw r}}};function ks(e){return e.join("�")}var mH=class{constructor(e,t="",r){this.client=e,this.prefix=t,this.accessDelegation=r}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ks(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ks(e.namespace)}/tables`,body:t,headers:r})).data.metadata}async updateTable(e,t){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ks(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ks(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ks(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ks(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(r){if(r instanceof xd&&r.status===404)return!1;throw r}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(r){if(r instanceof xd&&r.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw r}}},vH=class{constructor(e){var n;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const r=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=hH({baseUrl:r,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(n=e.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new pH(this.client,t),this.tableOps=new mH(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
228async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function wd(e){"@babel/helpers - typeof";return wd=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},wd(e)}function gH(e,t){if(wd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(wd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yH(e){var t=gH(e,"string");return wd(t)=="symbol"?t:t+""}function bH(e,t,r){return(t=yH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _k(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 me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_k(Object(r),!0).forEach(function(n){bH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_k(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Dv=class extends Error{constructor(e,t="storage",r,n){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Lv(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Ib=class extends Dv{constructor(e,t,r,n="storage"){super(e,n,t,r),this.name=n==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=r}toJSON(){return me({},super.toJSON())}},U2=class extends Dv{constructor(e,t,r="storage"){super(e,r),this.name=r==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function qp(e,t,r){const n=me({},e),i=t.toLowerCase();for(const a of Object.keys(n))a.toLowerCase()===i&&delete n[a];return n[i]=r,n}function xH(e){const t={};for(const[r,n]of Object.entries(e))t[r.toLowerCase()]=n;return t}const wH=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),_H=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)},Mb=e=>{if(Array.isArray(e))return e.map(r=>Mb(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]=Mb(n)}),t},SH=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),Sk=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error;if(typeof t.error=="object"&&t.error!==null){const r=t.error;if(typeof r.message=="string")return r.message}}return JSON.stringify(e)},EH=async(e,t,r,n)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const i=e;let a=parseInt(String(i.status),10);Number.isFinite(a)||(a=500),i.json().then(o=>{const s=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||a+"";t(new Ib(Sk(o),a,s,n))}).catch(()=>{const o=a+"";t(new Ib(i.statusText||`HTTP ${a} error`,a,o,n))})}else t(new U2(Sk(e),e,n))},kH=(e,t,r,n)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};if(e==="GET"||e==="HEAD"||!n)return me(me({},i),r);if(_H(n)){var a;const o=(t==null?void 0:t.headers)||{};let s;for(const[l,c]of Object.entries(o))l.toLowerCase()==="content-type"&&(s=c);i.headers=qp(o,"Content-Type",(a=s)!==null&&a!==void 0?a:"application/json"),i.body=JSON.stringify(n)}else i.body=n;return t!=null&&t.duplex&&(i.duplex=t.duplex),me(me({},i),r)};async function Gc(e,t,r,n,i,a,o){return new Promise((s,l)=>{e(r,kH(t,n,i,a)).then(c=>{if(!c.ok)throw c;if(n!=null&&n.noResolveJson)return c;if(o==="vectors"){const u=c.headers.get("content-type");if(c.headers.get("content-length")==="0"||c.status===204)return{};if(!u||!u.includes("application/json"))return{}}return c.json()}).then(c=>s(c)).catch(c=>EH(c,l,n,o))})}function z2(e="storage"){return{get:async(t,r,n,i)=>Gc(t,"GET",r,n,i,void 0,e),post:async(t,r,n,i,a)=>Gc(t,"POST",r,i,a,n,e),put:async(t,r,n,i,a)=>Gc(t,"PUT",r,i,a,n,e),head:async(t,r,n,i)=>Gc(t,"HEAD",r,me(me({},n),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,r,n,i,a)=>Gc(t,"DELETE",r,i,a,n,e)}}const OH=z2("storage"),{get:_d,post:Cn,put:Db,head:AH,remove:Sd}=OH,Hr=z2("vectors");var hc=class{constructor(e,t={},r,n="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=xH(t),this.fetch=wH(r),this.namespace=n}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=qp(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(Lv(r))return{data:null,error:r};throw r}}};let V2;V2=Symbol.toStringTag;var TH=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[V2]="StreamDownloadBuilder",this.promise=null}
228then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Lv(t))return{data:null,error:t};throw t}}};let W2;W2=Symbol.toStringTag;var jH=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[W2]="BlobDownloadBuilder",this.promise=null}asStream(){return new TH(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Lv(t))return{data:null,error:t};throw t}}};const Sy={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Ek={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var PH=class extends hc{constructor(e,t={},r,n){super(e,t,n,"storage"),this.bucketId=r}async uploadOrUpdate(e,t,r,n){var i=this;return i.handleOperation(async()=>{let a;const o=me(me({},Ek),n);let s=me(me({},i.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;if(typeof Blob<"u"&&r instanceof Blob?(a=new FormData,a.append("cacheControl",o.cacheControl),l&&a.append("metadata",i.encodeMetadata(l)),a.append("",r)):typeof FormData<"u"&&r instanceof FormData?(a=r,a.has("cacheControl")||a.append("cacheControl",o.cacheControl),l&&!a.has("metadata")&&a.append("metadata",i.encodeMetadata(l))):(a=r,s["cache-control"]=`max-age=${o.cacheControl}`,s["content-type"]=o.contentType,l&&(s["x-metadata"]=i.toBase64(i.encodeMetadata(l))),(typeof ReadableStream<"u"&&a instanceof ReadableStream||a&&typeof a=="object"&&"pipe"in a&&typeof a.pipe=="function")&&!o.duplex&&(o.duplex="half")),n!=null&&n.headers)for(const[f,p]of Object.entries(n.headers))s=qp(s,f,p);const c=i._removeEmptyFolders(t),u=i._getFinalPath(c),d=await(e=="PUT"?Db:Cn)(i.fetch,`${i.url}/object/${u}`,a,me({headers:s},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:c,id:d.Id,fullPath:d.Key}})}async upload(e,t,r){return this.uploadOrUpdate("POST",e,t,r)}async uploadToSignedUrl(e,t,r,n){var i=this;const a=i._removeEmptyFolders(e),o=i._getFinalPath(a),s=new URL(i.url+`/object/upload/sign/${o}`);return s.searchParams.set("token",t),i.handleOperation(async()=>{let l;const c=me(me({},Ek),n);let u=me(me({},i.headers),{"x-upsert":String(c.upsert)});const d=c.metadata;if(typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),d&&l.append("metadata",i.encodeMetadata(d)),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.has("cacheControl")||l.append("cacheControl",c.cacheControl),d&&!l.has("metadata")&&l.append("metadata",i.encodeMetadata(d))):(l=r,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType,d&&(u["x-metadata"]=i.toBase64(i.encodeMetadata(d))),(typeof ReadableStream<"u"&&l instanceof ReadableStream||l&&typeof l=="object"&&"pipe"in l&&typeof l.pipe=="function")&&!c.duplex&&(c.duplex="half")),n!=null&&n.headers)for(const[f,p]of Object.entries(n.headers))u=qp(u,f,p);return{path:a,fullPath:(await Db(i.fetch,s.toString(),l,me({headers:u},c!=null&&c.duplex?{duplex:c.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var r=this;return r.handleOperation(async()=>{let n=r._getFinalPath(e);const i=me({},r.headers);t!=null&&t.upsert&&(i["x-upsert"]="true");const a=await Cn(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:i}),o=new URL(r.url+a.url),s=o.searchParams.get("token");if(!s)throw new Dv("No token returned by API");return{signedUrl:o.toString(),path:e,token:s}})}async update(e,t,r){return this.uploadOrUpdate("PUT",e,t,r)}async move(e,t,r){var n=this;return n.handleOperation(async()=>await Cn(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,de
228stinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers}))}async copy(e,t,r){var n=this;return n.handleOperation(async()=>({path:(await Cn(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers})).Key}))}async createSignedUrl(e,t,r){var n=this;return n.handleOperation(async()=>{let i=n._getFinalPath(e);const a=typeof(r==null?void 0:r.transform)=="object"&&r.transform!==null&&Object.keys(r.transform).length>0;let o=await Cn(n.fetch,`${n.url}/object/sign/${i}`,me({expiresIn:t},a?{transform:r.transform}:{}),{headers:n.headers});const s=new URLSearchParams;r!=null&&r.download&&s.set("download",r.download===!0?"":r.download),(r==null?void 0:r.cacheNonce)!=null&&s.set("cacheNonce",String(r.cacheNonce));const l=s.toString();return{signedUrl:encodeURI(`${n.url}${o.signedURL}${l?`&${l}`:""}`)}})}async createSignedUrls(e,t,r){var n=this;return n.handleOperation(async()=>{const i=await Cn(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:t,paths:e},{headers:n.headers}),a=new URLSearchParams;r!=null&&r.download&&a.set("download",r.download===!0?"":r.download),(r==null?void 0:r.cacheNonce)!=null&&a.set("cacheNonce",String(r.cacheNonce));const o=a.toString();return i.map(s=>me(me({},s),{},{signedUrl:s.signedURL?encodeURI(`${n.url}${s.signedURL}${o?`&${o}`:""}`):null}))})}download(e,t,r){const n=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",i=new URLSearchParams;t!=null&&t.transform&&this.applyTransformOptsToQuery(i,t.transform),(t==null?void 0:t.cacheNonce)!=null&&i.set("cacheNonce",String(t.cacheNonce));const a=i.toString(),o=this._getFinalPath(e),s=()=>_d(this.fetch,`${this.url}/${n}/${o}${a?`?${a}`:""}`,{headers:this.headers,noResolveJson:!0},r);return new jH(s,this.shouldThrowOnError)}async info(e){var t=this;const r=t._getFinalPath(e);return t.handleOperation(async()=>Mb(await _d(t.fetch,`${t.url}/object/info/${r}`,{headers:t.headers})))}async exists(e){var t=this;const r=t._getFinalPath(e);try{return await AH(t.fetch,`${t.url}/object/${r}`,{headers:t.headers}),{data:!0,error:null}}catch(i){if(t.shouldThrowOnError)throw i;if(Lv(i)){var n;const a=i instanceof Ib?i.status:i instanceof U2?(n=i.originalError)===null||n===void 0?void 0:n.status:void 0;if(a!==void 0&&[400,404].includes(a))return{data:!1,error:i}}throw i}}getPublicUrl(e,t){const r=this._getFinalPath(e),n=new URLSearchParams;t!=null&&t.download&&n.set("download",t.download===!0?"":t.download),t!=null&&t.transform&&this.applyTransformOptsToQuery(n,t.transform),(t==null?void 0:t.cacheNonce)!=null&&n.set("cacheNonce",String(t.cacheNonce));const i=n.toString(),a=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}`)+(i?`?${i}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await Sd(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async purgeCache(e,t,r){var n=this;return n.handleOperation(async()=>{const i=n._getFinalPath(e),a=new URLSearchParams;t!=null&&t.transformations&&a.set("transformations","true");const o=a.toString();return await Sd(n.fetch,`${n.url}/cdn/${i}${o?`?${o}`:""}`,{},{headers:n.headers},r)})}async list(e,t,r){var n=this;return n.handleOperation(async()=>{const i=t!=null&&t.sortBy?me(me({},Sy.sortBy),t.sortBy):Sy.sortBy,a=me(me(me({},Sy),t),{},{sortBy:i,prefix:e||""});return await Cn(n.fetch,`${n.url}/object/list/${n.bucketId}`,a,{headers:n.headers},r)})}async listV2(e,t){var r=this;return r.handleOperation(async()=>{const n=me({},e);return await Cn(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("qual
228ity",t.quality.toString()),e}};const CH="2.110.3",wf={"X-Client-Info":`storage-js/${CH}`};var NH=class extends hc{constructor(e,t={},r,n){const i=new URL(e);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const a=i.href.replace(/\/$/,""),o=me(me({},wf),t);super(a,o,r,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=t.listBucketOptionsToQueryString(e);return await _d(t.fetch,`${t.url}/bucket${r}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await _d(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var r=this;return r.handleOperation(async()=>await Cn(r.fetch,`${r.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async updateBucket(e,t){var r=this;return r.handleOperation(async()=>await Db(r.fetch,`${r.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Cn(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Sd(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}async purgeBucketCache(e,t,r){var n=this;return n.handleOperation(async()=>{const i=new URLSearchParams;t!=null&&t.transformations&&i.set("transformations","true");const a=i.toString();return await Sd(n.fetch,`${n.url}/cdn/${e}${a?`?${a}`:""}`,{},{headers:n.headers},r)})}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},$H=class extends hc{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=me(me({},wf),t);super(n,i,r,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Cn(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&r.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&r.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&r.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&r.set("sortOrder",e.sortOrder),e!=null&&e.search&&r.set("search",e.search);const n=r.toString(),i=n?`${t.url}/bucket?${n}`:`${t.url}/bucket`;return await _d(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Sd(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!SH(e))throw new Dv("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new vH({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(i,a){const o=i[a];return typeof o!="function"?o:async(...s)=>{try{return{data:await o.apply(i,s),error:null}}catch(l){if(n)throw l;return{data:null,error:l}}}}})}},RH=class extends hc{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=me(me({},wf),{},{"Content-Type":"application/json"},t);super(n,i,r,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Hr.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var r=this;return r.handleOperation(async()=>await Hr.post(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Hr.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var r=this;return r.handleOperation(async()=>await Hr.post(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers})||{})}},IH=class extends hc{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=me(me({},wf),{},{"Content-Type":"application/json"},t);super(n,i,r,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Hr.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Hr.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
228if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Hr.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Hr.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Hr.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},MH=class extends hc{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=me(me({},wf),{},{"Content-Type":"application/json"},t);super(n,i,r,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Hr.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Hr.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Hr.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Hr.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},DH=class extends MH{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new LH(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,r=this;return t().call(r,e)}async getBucket(e){var t=()=>super.getBucket,r=this;return t().call(r,e)}async listBuckets(e={}){var t=()=>super.listBuckets,r=this;return t().call(r,e)}async deleteBucket(e){var t=()=>super.deleteBucket,r=this;return t().call(r,e)}},LH=class extends RH{constructor(e,t,r,n){super(e,t,n),this.vectorBucketName=r}async createIndex(e){var t=()=>super.createIndex,r=this;return t().call(r,me(me({},e),{},{vectorBucketName:r.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,r=this;return t().call(r,me(me({},e),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,r=this;return t().call(r,r.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,r=this;return t().call(r,r.vectorBucketName,e)}index(e){return new BH(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},BH=class extends IH{constructor(e,t,r,n,i){super(e,t,i),this.vectorBucketName=r,this.indexName=n}async putVectors(e){var t=()=>super.putVectors,r=this;return t().call(r,me(me({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(e){var t=()=>super.getVectors,r=this;return t().call(r,me(me({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,r=this;return t().call(r,me(me({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,r=this;return t().call(r,me(me({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,r=this;return t().call(r,me(me({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},FH=class extends NH{constructor(e,t={},r,n){super(e,t,r,n)}from(e){return new PH(this.url,this.headers,e,this.fetch)}get vectors(){return new DH(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new $H(this.url+"/iceberg",this.headers,this.fetch)}};function Bv(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 H2="2.110.3",Di=30*1e3,hu=3,Ey=hu*Di,UH=2*Di,zH="http://localhost:9999",VH="supabase.auth.token",WH={"X-Client-Info":`gotrue-js/${H2}`},Lb="X-Supabase-Api-Version",q2={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},HH=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,qH=10*60*1e3;
228class Ed extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function ie(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class KH extends Ed{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function GH(e){return ie(e)&&e.name==="AuthApiError"}class Ln extends Ed{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class ki extends Ed{constructor(t,r,n,i){super(t,n,i),this.name=r,this.status=n}}class Lt extends ki{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function ch(e){return ie(e)&&e.name==="AuthSessionMissingError"}class Os extends ki{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class uh extends ki{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class dh extends ki{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function YH(e){return ie(e)&&e.name==="AuthImplicitGrantRedirectError"}class kk extends ki{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class XH extends ki{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Bb extends ki{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function Ok(e){return ie(e)&&e.name==="AuthRetryableFetchError"}class Ak extends ki{constructor(t="Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)"){super(t,"AuthRefreshDiscardedError",409,void 0)}}function ZH(e){return ie(e)&&e.name==="AuthRefreshDiscardedError"}class Tk extends ki{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class Kp extends ki{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Gp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),jk=` 229\r=`.split(""),JH=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<jk.length;t+=1)e[jk[t].charCodeAt(0)]=-2;for(let t=0;t<Gp.length;t+=1)e[Gp[t].charCodeAt(0)]=t;return e})();function Pk(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(Gp[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(Gp[n]),t.queuedBits-=6}}function K2(e,t,r){const n=JH[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 Ck(e){const t=[],r=o=>{t.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},a=o=>{t9(o,n,r)};for(let o=0;o<e.length;o+=1)K2(e.charCodeAt(o),i,a);return t.join("")}function QH(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 e9(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}QH(n,t)}}function t9(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 fl(e){const t=[],r={queue:0,queuedBits:0},n=i=>{t.push(i)};for(let i=0;i<e.length;
229i+=1)K2(e.charCodeAt(i),r,n);return new Uint8Array(t)}function r9(e){const t=[];return e9(e,r=>t.push(r)),new Uint8Array(t)}function Ro(e){const t=[],r={queue:0,queuedBits:0},n=i=>{t.push(i)};return e.forEach(i=>Pk(i,r,n)),Pk(null,r,n),t.join("")}function n9(e){return Math.round(Date.now()/1e3)+e}function i9(){return Symbol("auth-callback")}const Qt=()=>typeof window<"u"&&typeof document<"u",wo={tested:!1,writable:!1},G2=()=>{if(!Qt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(wo.tested)return wo.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),wo.tested=!0,wo.writable=!0}catch{wo.tested=!0,wo.writable=!1}return wo.writable};function a9(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((i,a)=>{t[a]=i})}catch{}return r.searchParams.forEach((n,i)=>{t[i]=n}),t}const Y2=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),o9=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Ds=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},kn=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return null}},At=async(e,t)=>{await e.removeItem(t)};class Fv{constructor(){this.promise=new Fv.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}Fv.promiseConstructor=Promise;function fh(e){const t=e.split(".");if(t.length!==3)throw new Kp("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!HH.test(t[n]))throw new Kp("JWT not in base64url format");return{header:JSON.parse(Ck(t[0])),payload:JSON.parse(Ck(t[1])),signature:fl(t[2]),raw:{header:t[0],payload:t[1]}}}async function s9(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function l9(e,t){return new Promise((n,i)=>{(async()=>{for(let a=0;a<1/0;a++)try{const o=await e(a);if(!t(a,null,o)){n(o);return}}catch(o){if(!t(a,o)){i(o);return}}})()})}function c9(e){return("0"+e.toString(16)).substr(-2)}function u9(){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,c9).join("")}async function d9(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 f9(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 d9(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function _o(e,t,r=!1){const n=u9();let i=n;r&&(i+="/recovery"),await Ds(e,`${t}-code-verifier`,i);const a=await f9(n);return[a,n===a?"plain":"s256"]}const h9=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function p9(e){const t=e.headers.get(Lb);if(!t||!t.match(h9))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function m9(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 v9(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 g9=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Pi(e){if(!g9.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function An(e){if(!e.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function ky(){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 y9(e,t){return new Proxy(e,{get:(r,n,i)=>{if(n==="__isInsecureUserWarningProxy")return!0;
229if(typeof n=="symbol"){const a=n.toString();if(a==="Symbol(Symbol.toPrimitive)"||a==="Symbol(Symbol.toStringTag)"||a==="Symbol(util.inspect.custom)"||a==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,i)}return!t.value&&typeof n=="string"&&(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."),t.value=!0),Reflect.get(r,n,i)}})}function Nk(e){return JSON.parse(JSON.stringify(e))}const Oo=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error}return JSON.stringify(e)},b9=[500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530];async function $k(e){var t;if(!o9(e))throw new Bb(Oo(e),0);if(b9.includes(e.status))throw new Bb(Oo(e),e.status);let r;try{r=await e.json()}catch(a){throw new Ln(Oo(a),a)}let n;const i=p9(e);if(i&&i.getTime()>=q2["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 Tk(Oo(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new Lt}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,o)=>a&&typeof o=="string",!0))throw new Tk(Oo(r),e.status,r.weak_password.reasons);throw new KH(Oo(r),e.status||500,n)}const x9=(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 de(e,t,r,n){var i;const a=Object.assign({},n==null?void 0:n.headers);a[Lb]||(a[Lb]=q2["2024-01-01"].name),n!=null&&n.jwt&&(a.Authorization=`Bearer ${n.jwt}`);const o=(i=n==null?void 0:n.query)!==null&&i!==void 0?i:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const s=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await w9(e,t,r+s,{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(l):{data:Object.assign({},l),error:null}}async function w9(e,t,r,n,i,a){const o=x9(t,n,i,a);let s;try{s=await e(r,Object.assign({},o))}catch(l){throw console.error(l),new Bb(Oo(l),0)}if(s.ok||await $k(s),n!=null&&n.noResolveJson)return s;try{return await s.json()}catch(l){await $k(l)}}function ln(e){var t;let r=null;E9(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=n9(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:typeof(e==null?void 0:e.id)=="string"?e:null;return{data:{session:r,user:n},error:null}}function Rk(e){const t=ln(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 Aa(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function _9(e){return{data:e,error:null}}function S9(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:a}=e,o=Bv(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),s={action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:a},l=Object.assign({},o);return{data:{properties:s,user:l},error:null}}function Ik(e){return e}function E9(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const Oy=["global","local","others"];class k9{constructor({url:t="",headers:r={},fetch:n,experimental:i}){this.url=t,this.headers=r,this.fetch=Y2(n),this.experimental=i??{},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),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}
vendor: 4,780 bytes, line 229
229async signOut(t,r=Oy[0]){if(Oy.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Oy.join(", ")}`);try{return await de(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(ie(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await de(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Aa})}catch(n){if(ie(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=Bv(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 de(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:S9,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(ie(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await de(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Aa})}catch(r){if(ie(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,i,a,o,s,l;try{const c={nextPage:null,lastPage:0,total:0},u=await de(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:Ik});if(u.error)throw u.error;const d=await u.json(),f=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(s=u.headers.get("link"))===null||s===void 0?void 0:s.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(v=>{const m=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(v.split(";")[1].split("=")[1]);c[`${y}Page`]=m}),c.total=parseInt(f)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(ie(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){Pi(t);try{return await de(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Aa})}catch(r){if(ie(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){Pi(t);try{return await de(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:Aa})}catch(n){if(ie(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){Pi(t);try{return await de(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:Aa})}catch(n){if(ie(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){Pi(t.userId);try{const{data:r,error:n}=await de(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(ie(r))return{data:null,error:r};throw r}}async _deleteFactor(t){Pi(t.userId),Pi(t.id);try{return{data:await de(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(ie(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,i,a,o,s,l;try{const c={nextPage:null,lastPage:0,total:0},u=await de(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:Ik});if(u.error)throw u.error;const d=await u.json(),f=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(s=u.headers.get("link"))===null||s===void 0?void 0:s.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(v=>{const m=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(v.split(";")[1].split("=")[1]);c[`${y}Page`]=m}),c.total=parseInt(f)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(ie(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await de(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ie(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await de(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ie(r))return{data:null,error:r};throw r}}async _updateOAuthClient(t,r){try{return await de(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ie(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(t){try{return await de(this.fetch,"DELET
229E",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(ie(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await de(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ie(r))return{data:null,error:r};throw r}}async _listCustomProviders(t){try{const r={};return t!=null&&t.type&&(r.type=t.type),await de(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:r,xform:n=>{var i;return{data:{providers:(i=n==null?void 0:n.providers)!==null&&i!==void 0?i:[]},error:null}}})}catch(r){if(ie(r))return{data:{providers:[]},error:r};throw r}}async _createCustomProvider(t){try{return await de(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ie(r))return{data:null,error:r};throw r}}async _getCustomProvider(t){try{return await de(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ie(r))return{data:null,error:r};throw r}}async _updateCustomProvider(t,r){try{return await de(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ie(n))return{data:null,error:n};throw n}}async _deleteCustomProvider(t){try{return await de(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(ie(r))return{data:null,error:r};throw r}}async _adminListPasskeys(t){An(this.experimental),Pi(t.userId);try{return await de(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ie(r))return{data:null,error:r};throw r}}async _adminDeletePasskey(t){An(this.experimental),Pi(t.userId),Pi(t.passkeyId);try{return await de(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(ie(r))return{data:null,error:r};throw r}}}function Mk(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}globalThis&&G2()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");class O9 extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}function A9(){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 X2(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function T9(e){return parseInt(e,16)}function j9(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function P9(e){var t;const{chainId:r,domain:n,expirationTime:i,issuedAt:a=new Date,nonce:o,notBefore:s,requestId:l,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(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);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(` 230`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const p=X2(e.address),v=u?`${u}://${n}`:n,m=e.statement?`${e.statement} 231`:"",y=`${v} wants you to sign in with your Ethereum account: 232${p} 233 234${m}`;let b=`URI: ${d} 235Version: ${f} 236Chain ID: ${r}${o?` 237Nonce: ${o}`:""} 238Issued At: ${a.toISOString()}`;if(i&&(b+=` 239Expiration Time: ${i.toISOString()}`),s&&(b+=` 240Not Before: ${s.toISOString()}`),l&&(b+=` 241Request ID: ${l}`),c){let g=` 242Resources:`;for(const x of c){if(!x||typeof x!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${x}`);g+=` 243- ${x}`}b+=g}return`${y} 244${b}`}
244class jt 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}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class Yp extends jt{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function C9({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 jt({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 jt({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 jt({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 jt({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 jt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new jt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return a.pubKeyCredParams.filter(s=>s.type==="public-key").length===0?new jt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new jt({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 o=window.location.hostname;if(Z2(o)){if(a.rp.id!==o)return new jt({message:`The RP ID "${a.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new jt({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 jt({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 jt({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 jt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function N9({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 jt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new jt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(Z2(n)){if(r.rpId!==n)return new jt({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new jt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new jt({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 jt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class $9{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 Fb=new $9;function Dk(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=Bv(e,["challenge","user","excludeCredentials"]),a=fl(t).buffer,o=Object.assign(Object.assign({},r),{id:fl(r.id).buffer}),s=Object.assign(Object.assign({},i),{challenge:a,user:o});if(n&&n.length>0){s.excludeCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const c=n[l];
244s.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:fl(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return s}function Lk(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=Bv(e,["challenge","allowCredentials"]),i=fl(t).buffer,a=Object.assign(Object.assign({},n),{challenge:i});if(r&&r.length>0){a.allowCredentials=new Array(r.length);for(let o=0;o<r.length;o++){const s=r[o];a.allowCredentials[o]=Object.assign(Object.assign({},s),{id:fl(s.id).buffer,type:s.type||"public-key",transports:s.transports})}}return a}function Bk(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:Ro(new Uint8Array(e.response.attestationObject)),clientDataJSON:Ro(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Fk(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:Ro(new Uint8Array(i.authenticatorData)),clientDataJSON:Ro(new Uint8Array(i.clientDataJSON)),signature:Ro(new Uint8Array(i.signature)),userHandle:i.userHandle?Ro(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Z2(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Xp(){var e,t;return!!(Qt()&&"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 J2(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Yp("Browser returned unexpected credential type",t)}:{data:null,error:new Yp("Empty credential response",t)}}catch(t){return{data:null,error:C9({error:t,options:e})}}}async function Q2(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Yp("Browser returned unexpected credential type",t)}:{data:null,error:new Yp("Empty credential response",t)}}catch(t){return{data:null,error:N9({error:t,options:e})}}}const R9={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},I9={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Zp(...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 o=i[a];if(o!==void 0)if(Array.isArray(o))n[a]=o;else if(r(o))n[a]=o;else if(t(o)){const s=n[a];t(s)?n[a]=Zp(s,o):n[a]=Zp(o)}else n[a]=o}return n}function M9(e,t){return Zp(R9,e,t||{})}function D9(e,t){return Zp(I9,e,t||{})}class L9{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){var o;try{const{data:s,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!s)return{data:null,error:l};const c=i??Fb.createNewAbortSignal();if(s.webauthn.type==="create"){const{user:u}=s.webauthn.credential_options.publicKey;if(!u.name){const d=n;if(d)u.name=`${u.id}:${d}`;else{const p=(await this.client.getUser()).data.user,v=((o=p==null?void 0:p.user_metadata)===null||o===void 0?void 0:o.name)||(p==null?void 0:p.email)||(p==null?void 0:p.id)||"User";u.name=`${u.id}:${v}`}}u.displayName||(u.displayName=u.name)}
244switch(s.webauthn.type){case"create":{const u=M9(s.webauthn.credential_options.publicKey,a==null?void 0:a.create),{data:d,error:f}=await J2({publicKey:u,signal:c});return d?{data:{factorId:t,challengeId:s.id,webauthn:{type:s.webauthn.type,credential_response:d}},error:null}:{data:null,error:f}}case"request":{const u=D9(s.webauthn.credential_options.publicKey,a==null?void 0:a.request),{data:d,error:f}=await Q2(Object.assign(Object.assign({},s.webauthn.credential_options),{publicKey:u,signal:c}));return d?{data:{factorId:t,challengeId:s.id,webauthn:{type:s.webauthn.type,credential_response:d}},error:null}:{data:null,error:f}}}}catch(s){return ie(s)?{data:null,error:s}:{data:null,error:new Ln("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 Ed("rpId is required for WebAuthn authentication")};try{if(!Xp())return{data:null,error:new Ln("Browser does not support WebAuthn",null)};const{data:o,error:s}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:i},{request:a});if(!o)return{data:null,error:s};const{webauthn:l}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:l.type,rpId:r,rpOrigins:n,credential_response:l.credential_response}})}catch(o){return ie(o)?{data:null,error:o}:{data:null,error:new Ln("Unexpected error in authenticate",o)}}}async _register({friendlyName: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 Ed("rpId is required for WebAuthn registration")};try{if(!Xp())return{data:null,error:new Ln("Browser does not support WebAuthn",null)};const{data:o,error:s}=await this._enroll({friendlyName:t});if(!o)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:s};const{data:l,error:c}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:i},{create:a});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:r,rpOrigins:n,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:c}}catch(o){return ie(o)?{data:null,error:o}:{data:null,error:new Ln("Unexpected error in register",o)}}}}A9();const B9={url:zH,storageKey:VH,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:WH,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},As={};class kd{get jwks(){var t,r;return(r=(t=As[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){As[this.storageKey]=Object.assign(Object.assign({},As[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=As[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){As[this.storageKey]=Object.assign(Object.assign({},As[this.storageKey]),{cachedAt:t})}constructor(t){var r,n,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.lastRefreshFailure=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this._pendingInitNotifications=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const a=Object.assign(Object.assign({},B9),t);if(this.storageKey=a.storageKey,this.instanceID=(r=kd.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,kd.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!a.debug,typeof a.debug=="function"&&(this.logger=a.debug),this.instanceID>0&&Qt()){const o=`${this._logPrefix()} 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.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=a.persistSession,this.autoRefreshToken=a.autoRefreshToken,this.experimental=(n=a.experimental)!==null&&n!==void 0?n:{},this.admin=new k9({url:a.url,headers:a.headers,fetch:a.fetch,experimental:this.experimental}),this.url=a.url,this.headers=a.headers,this.fetch=Y2(a.fetch),this.detectSessionInUrl=a.detectSessionInUrl,this.flowType=a.flowType,this.hasCustomAuthorizationHeader=a.hasCustomAuthorizationHeader,this.throwOnError=a.throwOnError,this.lockAcquireTimeout=a.lockAcquireTimeout,a.lock!=null&&(this.lock=a.lock),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 L9(this)}
244,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(a.storage?this.storage=a.storage:G2()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Mk(this.memoryStorage)),a.userStorage&&(this.userStorage=a.userStorage)):(this.memoryStorage={},this.storage=Mk(this.memoryStorage)),Qt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),(o.data.event==="TOKEN_REFRESHED"||o.data.event==="SIGNED_IN")&&(this.lastRefreshFailure=null);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(s){this._debug("#broadcastChannel","error",s)}})}a.skipAutoInitialize||this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${H2}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){var t;if(this.initializePromise)return await this.initializePromise;this._pendingInitNotifications=[],this.initializePromise=(async()=>this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()):await this._initialize())();
244const r=await this.initializePromise,n=(t=this._pendingInitNotifications)!==null&&t!==void 0?t:[];this._pendingInitNotifications=null;for(const i of n)await this._notifyAllSubscribers(i.event,i.session,i.broadcast);return r}async _initialize(){var t;try{let r={},n="none";if(Qt()&&(r=a9(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),Qt()&&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),YH(a)){const l=(t=a.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:a}}return{error:a}}const{session:o,redirectType:s}=i;return this._debug("#_initialize()","detected session in URL",o,"redirect type",s),await this._saveSession(o),setTimeout(async()=>{s==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return ie(r)?this._returnResult({error:r}):this._returnResult({error:new Ln("Unexpected error during initialization",r)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,i;try{const a=await de(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:ln}),{data:o,error:s}=a;if(s||!o)return this._returnResult({data:{user:null,session:null},error:s});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(a){if(ie(a))return this._returnResult({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 p=null,v=null;this.flowType==="pkce"&&([p,v]=await _o(this.storage,this.storageKey)),a=await de(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:p,code_challenge_method:v},xform:ln})}else if("phone"in t){const{phone:u,password:d,options:f}=t;a=await de(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:ln})}else throw new uh("You must provide either an email or phone number and a password");const{data:o,error:s}=a;if(s||!o)return await At(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:s});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(a){if(await At(this.storage,`${this.storageKey}-code-verifier`),ie(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithPassword(t){try{let r;if("email"in t){const{email:a,password:o,options:s}=t;r=await de(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:a,password:o,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},xform:Rk}
244)}else if("phone"in t){const{phone:a,password:o,options:s}=t;r=await de(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:a,password:o,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},xform:Rk})}else throw new uh("You must provide either an email or phone number and a password");const{data:n,error:i}=r;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!n||!n.session||!n.user){const a=new Os;return this._returnResult({data:{user:null,session:null},error:a})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:i})}catch(r){if(ie(r))return this._returnResult({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.lock!=null?this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t)):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,o,s,l,c,u,d,f;let p,v;if("message"in t)p=t.message,v=t.signature;else{const{chain:m,wallet:y,statement:b,options:g}=t;let x;if(Qt())if(typeof y=="object")x=y;else{const P=window;if("ethereum"in P&&typeof P.ethereum=="object"&&"request"in P.ethereum&&typeof P.ethereum.request=="function")x=P.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 y!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");x=y}const w=new URL((r=g==null?void 0:g.url)!==null&&r!==void 0?r:window.location.href),_=await x.request({method:"eth_requestAccounts"}).then(P=>P).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!_||_.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const E=X2(_[0]);let k=(n=g==null?void 0:g.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!k){const P=await x.request({method:"eth_chainId"});k=T9(P)}const O={domain:w.host,address:E,statement:b,uri:w.href,version:"1",chainId:k,nonce:(i=g==null?void 0:g.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(o=(a=g==null?void 0:g.signInWithEthereum)===null||a===void 0?void 0:a.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(s=g==null?void 0:g.signInWithEthereum)===null||s===void 0?void 0:s.expirationTime,notBefore:(l=g==null?void 0:g.signInWithEthereum)===null||l===void 0?void 0:l.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};p=P9(O),v=await x.request({method:"personal_sign",params:[j9(p),E]})}try{const{data:m,error:y}=await de(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:v},!((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:ln});if(y)throw y;if(!m||!m.session||!m.user){const b=new Os;return this._returnResult({data:{user:null,session:null},error:b})}return m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),this._returnResult({data:Object.assign({},m),error:y})}catch(m){if(ie(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var r,n,i,a,o,s,l,c,u,d,f,p;let v,m;if("message"in t)v=t.message,m=t.signature;else{const{chain:y,wallet:b,statement:g,options:x}=t;let w;if(Qt())if(typeof b=="object")w=b;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))w=E.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 b!="object"||!(x!=null&&x.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");w=b}const _=new URL((r=x==null?void 0:x.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in w&&w.signIn){const E=await w.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},x==null?void 0:x.signInWithSolana),{version:"1",domain:_.host,uri:_.href}),g?{statement:g}:null));let k;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")k=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)k=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in k&&"signature"in k&&(typeof k.signedMessage=="string"||k.signedMessage instanceof Uint8Array)&&k.signature instanceof Uint8Array)v=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),m=k.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in w)||typeof w.signMessage!="function"||!("publicKey"in w)||typeof w!="object"||!w.publicKey||!("toBase58"in w.publicKey)||typeof w.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");v=[`${_.host} wants you to sign in with your Solana account:`,w.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${_.href}`,`Issued At: ${(i=(n=x==null?void 0:x.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((a=x==null?void 0:x.signInWithSolana)===null||a===void 0)&&a.notBefore?[`Not Before: ${x.signInWithSolana.notBefore}`]:[],...!((o=x==null?void 0:x.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${x.signInWithSolana.expirationTime}`]:[],...!((s=x==null?void 0:x.signInWithSolana)===null||s===void 0)&&s.chainId?[`Chain ID: ${x.signInWithSolana.chainId}`]:[],...!((l=x==null?void 0:x.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${x.signInWithSolana.nonce}`]:[],...!((c=x==null?void 0:x.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${x.signInWithSolana.requestId}`]:[],...!((d=(u=x==null?void 0:x.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||d===void 0)&&d.length?["Resources",...x.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(` 245`);const E=await w.signMessage(new TextEncoder().encode(v),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=E}}try{const{data:y,error:b}=await de(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:v,signature:Ro(m)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:ln});if(b)throw b;if(!y||!y.session||!y.user){const g=new Os;return this._returnResult({data:{user:null,session:null},error:g})}return y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),this._returnResult({data:Object.assign({},y),error:b})}catch(y){if(ie(y))return this._returnResult({data:{user:null,session:null},error:y});throw y}}async _exchangeCodeForSession(t){const r=await kn(this.storage,`${this.storageKey}-code-verifier`),[n,i]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new XH;const{data:a,error:o}=await de(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:ln});if(await At(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!a||!a.session||!a.user){const s=new Os;return this._returnResult({data:{user:null,session:null,redirectType:null},error:s})}return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers(i==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",a.session)),this._returnResult({data:Object.assign(Object.assign({},a),{redirectType:i??null}),error:o})}catch(a){if(await At(this.storage,`${this.storageKey}-code-verifier`),ie(a))return this._returnResult({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:o}=t,s=await de(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:i,access_token:a,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:ln}),{data:l,error:c}=s;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const u=new Os;return this._returnResult({data:{user:null,session:null},error:u})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(r){if(ie(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(t){var r,n,i,a,o;try{if("email"in t){const{email:s,options:l}=t;
245let c=null,u=null;this.flowType==="pkce"&&([c,u]=await _o(this.storage,this.storageKey));const{error:d}=await de(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:s,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:d})}if("phone"in t){const{phone:s,options:l}=t,{data:c,error:u}=await de(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:s,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(a=l==null?void 0:l.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u})}throw new uh("You must provide either an email or phone number.")}catch(s){if(await At(this.storage,`${this.storageKey}-code-verifier`),ie(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}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:o,error:s}=await de(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:a}}),redirectTo:i,xform:ln});if(s)throw s;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(ie(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var r,n,i,a,o;try{let s=null,l=null;this.flowType==="pkce"&&([s,l]=await _o(this.storage,this.storageKey));const c=await de(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:s,code_challenge_method:l}),headers:this.headers,xform:_9});return!((a=c.data)===null||a===void 0)&&a.url&&Qt()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(s){if(await At(this.storage,`${this.storageKey}-code-verifier`),ie(s))return this._returnResult({data:null,error:s});throw s}}async reauthenticate(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate()):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 Lt;const{error:i}=await de(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(ie(t))return this._returnResult({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;let o=null,s=null;this.flowType==="pkce"&&([o,s]=await _o(this.storage,this.storageKey));const{error:l}=await de(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken},code_challenge:o,code_challenge_method:s},redirectTo:a==null?void 0:a.emailRedirectTo});return l&&await At(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l})}else if("phone"in t){const{phone:n,type:i,options:a}=t,{data:o,error:s}=await de(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:s})}throw new uh("You must provide either an email or phone number and a type")}catch(r){if(await At(this.storage,`${this.storageKey}-code-verifier`),ie(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async t=>t)):await this._useSession(async t=>t)}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.lock!=null&&!this.lockAcquired&&this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await kn(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
245id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<Ey:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const o=await kn(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=ky()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=y9(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:a}=await this._callRefreshToken(t.refresh_token);if(a){if(!!(t.expires_at&&t.expires_at*1e3>Date.now())){const s=await kn(this.storage,this.storageKey);if(s&&s.refresh_token===t.refresh_token)return this._returnResult({data:{session:t},error:null})}return this._returnResult({data:{session:null},error:a})}return this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;let r;return this.lock!=null?r=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()):r=await this._getUser(),r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(t){try{return t?await de(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Aa}):await this._useSession(async r=>{var n,i,a;const{data:o,error:s}=r;if(s)throw s;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Lt}:await de(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(a=(i=o.session)===null||i===void 0?void 0:i.access_token)!==null&&a!==void 0?a:void 0,xform:Aa})})}catch(r){if(ie(r))return ch(r)&&(await this._removeSession(),await At(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(t,r={}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,r)):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 Lt;const o=i.session;let s=null,l=null;this.flowType==="pkce"&&t.email!=null&&([s,l]=await _o(this.storage,this.storageKey));const{data:c,error:u}=await de(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:s,code_challenge_method:l}),jwt:o.access_token,xform:Aa});if(u)throw u;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(n){if(await At(this.storage,`${this.storageKey}-code-verifier`),ie(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t)):await this._setSession(t)}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Lt;const r=Date.now()/1e3;let n=r,i=!0,a=null;const{payload:o}=fh(t.access_token);if(o.exp&&(n=o.exp,i=n<=r),i){const{data:s,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!s)return{data:{user:null,session:null},error:null};a=s}else{const{data:s,error:l}=await this._getUser(t.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});a={access_token:t.access_token,refresh_token:t.refresh_token,user:s.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)}return this._returnResult({data:{user:a.user,session:a},error:null})}catch(r){if(ie(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t)):await this._refreshSession(t)}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:o,error:s}=r;if(s)throw s;t=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new Lt;const{data:i,error:a}=await this._callRefreshToken(t.refresh_token);return a?this._returnResult({data:{user:null,session:null},error:a}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(ie(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(t,r){var n;try{if(!Qt())throw new dh("No browser detected.");
245if(t.error||t.error_description||t.error_code)throw new dh(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 kk("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new dh("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 kk("No code detected.");const{data:x,error:w}=await this._exchangeCodeForSession(t.code);if(w)throw w;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:x.session,redirectType:(n=x.redirectType)!==null&&n!==void 0?n:null},error:null}}const{provider_token:i,provider_refresh_token:a,access_token:o,refresh_token:s,expires_in:l,expires_at:c,token_type:u}=t;if(!o||!l||!s||!u)throw new dh("No session defined in URL");const d=Math.round(Date.now()/1e3),f=parseInt(l);let p=d+f;c&&(p=parseInt(c));const v=p-d;v*1e3<=Di&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${v}s, should have been closer to ${f}s`);const m=p-f;d-m>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",m,p,d):d-m<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",m,p,d);const{data:y,error:b}=await this._getUser(o);if(b)throw b;const g={provider_token:i,provider_refresh_token:a,access_token:o,expires_in:f,expires_at:p,refresh_token:s,token_type:u,user:y.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:g,redirectType:t.type},error:null})}catch(i){if(ie(i))return this._returnResult({data:{session:null,redirectType:null},error:i});throw i}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error||t.error_description||t.error_code)}async _isPKCECallback(t){const r=await kn(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t)):await this._signOut(t)}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const i=async()=>{await this._removeSession(),await At(this.storage,`${this.storageKey}-code-verifier`)},{data:a,error:o}=r;if(o&&!ch(o))return this._returnResult({error:o});const s=(n=a.session)===null||n===void 0?void 0:n.access_token;if(s){const{error:l}=await this.admin.signOut(s,t);if(l&&!(GH(l)&&(l.status===404||l.status===401||l.status===403)||ch(l)))return t!=="others"&&await i(),this._returnResult({error:l})}return t!=="others"&&await i(),this._returnResult({error:null})})}onAuthStateChange(t){const r=i9(),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,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(r)}):await this._emitInitialSession(r)))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,i;try{const{data:{session:a},error:o}=r;if(o)throw o;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),ch(a)?console.warn(a):console.error(a)}})}async resetPasswordForEmail(t,r={}){let n=null,i=null;this.flowType==="pkce"&&([n,i]=await _o(this.storage,this.storageKey,!0));try{return await de(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(await At(this.storage,`${this.storageKey}-code-verifier`),ie(a))return this._returnResult({data:null,error:a});throw a}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(r){if(ie(r))return this._returnResult({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 o,s,l,c,u;const{data:d,error:f}=a;if(f)throw f;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(s=t.options)===null||s===void 0?void 0:s.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await de(this.fetch,"GET",p,{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 Qt()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:t.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(ie(n))return this._returnResult({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:o,provider:s,token:l,access_token:c,nonce:u}=t,d=await de(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:s,id_token:l,access_token:c,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:ln}),{data:f,error:p}=d;return p?this._returnResult({data:{user:null,session:null},error:p}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new Os}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:p}))}catch(i){if(await At(this.storage,`${this.storageKey}-code-verifier`),ie(i))return this._returnResult({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:o}=r;if(o)throw o;
245return await de(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(ie(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(t){const r="#_refreshAccessToken()";this._debug(r,"begin");try{const n=Date.now();return await l9(async i=>(i>0&&await s9(200*Math.pow(2,i-1)),this._debug(r,"refreshing attempt",i),await de(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:ln})),(i,a)=>{const o=200*Math.pow(2,i);return a&&Ok(a)&&Date.now()+o-n<Di})}catch(n){if(this._debug(r,"error",n),ie(n))return this._returnResult({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),Qt()&&!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 kn(this.storage,this.storageKey);if(i&&this.userStorage){let o=await kn(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:i.user},await Ds(this.userStorage,this.storageKey+"-user",o)),i.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:ky()}else if(i&&!i.user&&!i.user){const o=await kn(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(i.user=o.user,await At(this.storage,this.storageKey+"-user"),await Ds(this.storage,this.storageKey,i)):i.user=ky()}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()<Ey;if(this._debug(n,`session has${a?"":" not"} expired with margin of ${Ey}s`),a){if(this.autoRefreshToken&&i.refresh_token){const{error:o}=await this._callRefreshToken(i.refresh_token);o&&(ZH(o)?this._debug(n,"refresh discarded by commit guard",o):this._debug(n,"refresh failed",o))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:s}=await this._getUser(i.access_token);!s&&(o!=null&&o.user)?(i.user=o.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(n,"error getting user data, skipping SIGNED_IN notification",o)}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 Lt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;if(this.lastRefreshFailure&&this.lastRefreshFailure.refreshToken===t&&Date.now()<this.lastRefreshFailure.expiresAt)return this._debug("#_callRefreshToken()","returning cached failure (cooldown active)"),this.lastRefreshFailure.result;const i="#_callRefreshToken()";this._debug(i,"begin");try{this.refreshingDeferred=new Fv;const a=await kn(this.storage,this.storageKey),{data:o,error:s}=await this._refreshAccessToken(t);if(s)throw s;if(!o.session)throw new Lt;const l=await kn(this.storage,this.storageKey);if(a!==null&&(l===null||l.refresh_token!==a.refresh_token)){this._debug(i,"commit guard: storage changed since refresh started, discarding rotated tokens",{startedWith:"present",nowHolds:l?"replaced":"cleared"});const f={data:null,error:new Ak};return this.refreshingDeferred.resolve(f),f}const u=this._sessionRemovalEpoch;if(await this._saveSession(o.session),this._sessionRemovalEpoch!==u){this._debug(i,"commit guard (post-save): _removeSession ran during _saveSession, und
245oing write"),await At(this.storage,this.storageKey),this.userStorage&&await At(this.userStorage,this.storageKey+"-user");const f={data:null,error:new Ak};return this.refreshingDeferred.resolve(f),f}await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const d={data:o.session,error:null};return this.lastRefreshFailure=null,this.refreshingDeferred.resolve(d),d}catch(a){if(this._debug(i,"error",a),ie(a)){const o={data:null,error:a};if(!Ok(a)){const s=await kn(this.storage,this.storageKey);!!(s!=null&&s.expires_at&&s.expires_at*1e3>Date.now())?this._debug(i,"proactive refresh failed, access token still valid â preserving session"):await this._removeSession()}return this.lastRefreshFailure={refreshToken:t,result:o,expiresAt:Date.now()+UH},(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}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){if(this._pendingInitNotifications!==null&&n){this._pendingInitNotifications.push({event:t,session:r,broadcast:n});return}const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const a=[],o=Array.from(this.stateChangeEmitters.values()).map(async s=>{try{await s.callback(t,r)}catch(l){a.push(l)}});if(await Promise.all(o),a.length>0){for(let s=0;s<a.length;s+=1)console.error(a[s]);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 Ds(this.userStorage,this.storageKey+"-user",{user:r.user});const i=Object.assign({},r);delete i.user;const a=Nk(i);await Ds(this.storage,this.storageKey,a)}else{const i=Nk(r);await Ds(this.storage,this.storageKey,i)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug("#_removeSession()"),this.lastRefreshFailure=null,this.suppressGetSessionWarning=!1,await At(this.storage,this.storageKey),await At(this.storage,this.storageKey+"-code-verifier"),await At(this.storage,this.storageKey+"-user"),this.userStorage&&await At(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Qt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Di);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const r=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=r,r&&typeof r=="object"&&typeof r.unref=="function"?r.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(r)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const r=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,r&&clearTimeout(r)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var t;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(t=this.broadcastChannel)===null||t===void 0||t.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug("#_autoRefreshTokenTick()","begin"),this.lock!=null){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)/Di);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${Di}ms, refresh threshold is ${hu} ticks`),i<=hu&&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 instanceof O9)this._debug("auto refresh token tick lock not available");else throw t}return}if(this.refreshingDeferred!==null){this._debug("#_autoRefreshTokenTick()","refresh already in flight, skipping");return}try{const t=Date.now();try{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)/Di);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${Di}ms, refresh threshold is ${hu} ticks`),i<=hu&&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")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Qt()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;if(this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"){if(this.autoRefreshToken&&this._startAutoRefresh(),!t)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>
245{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()});else{if(document.visibilityState!=="visible"){this._debug(r,"visibilityState is no longer visible, skipping recovery");return}await this._recoverAndRefresh()}}else 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,o]=await _o(this.storage,this.storageKey),s=new URLSearchParams({code_challenge:`${encodeURIComponent(a)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(s.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?this._returnResult({data:null,error:a}):await de(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(ie(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,i;const{data:a,error:o}=r;if(o)return this._returnResult({data:null,error:o});const s=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:c}=await de(this.fetch,"POST",`${this.url}/factors`,{body:s,headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token});return c?this._returnResult({data:null,error:c}):(t.factorType==="totp"&&l.type==="totp"&&(!((i=l==null?void 0:l.totp)===null||i===void 0)&&i.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(r){if(ie(r))return this._returnResult({data:null,error:r});throw r}}async _verify(t){const r=async()=>{try{return await this._useSession(async n=>{var i;const{data:a,error:o}=n;if(o)return this._returnResult({data:null,error:o});const s=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?Bk(t.webauthn.credential_response):Fk(t.webauthn.credential_response)})}:{code:t.code}),{data:l,error:c}=await de(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:s,headers:this.headers,jwt:(i=a==null?void 0:a.session)===null||i===void 0?void 0:i.access_token});return c?this._returnResult({data:null,error:c}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),this._returnResult({data:l,error:c}))})}catch(n){if(ie(n))return this._returnResult({data:null,error:n});throw n}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,r):r()}async _challenge(t){const r=async()=>{try{return await this._useSession(async n=>{var i;const{data:a,error:o}=n;if(o)return this._returnResult({data:null,error:o});const s=await de(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(i=a==null?void 0:a.session)===null||i===void 0?void 0:i.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:Dk(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:Lk(l.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(ie(n))return this._returnResult({data:null,error:n});throw n}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,r):r()}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?this._returnResult({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(t){var r,n,i,a;if(t)try{const{payload:p}=fh(t);let v=null;p.aal&&(v=p.aal);let m=v;const{data:{user:y},error:b}=await this.getUser(t);if(b)return this._returnResult({data:null,error:b});((n=(r=y==null?void 0:y.factors)===null||r===void 0?void 0:r.filter(w=>w.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(m="aal2");const x=p.amr||[];return{data:{currentLevel:v,nextLevel:m,currentAuthenticationMethods:x},error:null}}catch(p){if(ie(p))return this._returnResult({data:null,error:p});throw p}const{data:{session:o},error:s}
245=await this.getSession();if(s)return this._returnResult({data:null,error:s});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=fh(o.access_token);let c=null;l.aal&&(c=l.aal);let u=c;((a=(i=o.user.factors)===null||i===void 0?void 0:i.filter(p=>p.status==="verified"))!==null&&a!==void 0?a:[]).length>0&&(u="aal2");const f=l.amr||[];return{data:{currentLevel:c,nextLevel:u,currentAuthenticationMethods:f},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;return i?this._returnResult({data:null,error:i}):n?await de(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:n.access_token,xform:a=>({data:a,error:null})}):this._returnResult({data:null,error:new Lt})})}catch(r){if(ie(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:i},error:a}=n;if(a)return this._returnResult({data:null,error:a});if(!i)return this._returnResult({data:null,error:new Lt});const o=await de(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:s=>({data:s,error:null})});return o.data&&o.data.redirect_url&&Qt()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(ie(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:i},error:a}=n;if(a)return this._returnResult({data:null,error:a});if(!i)return this._returnResult({data:null,error:new Lt});const o=await de(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:s=>({data:s,error:null})});return o.data&&o.data.redirect_url&&Qt()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(ie(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;return n?this._returnResult({data:null,error:n}):r?await de(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Lt})})}catch(t){if(ie(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;return i?this._returnResult({data:null,error:i}):n?(await de(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Lt})})}catch(r){if(ie(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(s=>s.kid===t);if(n)return n;const i=Date.now();if(n=this.jwks.keys.find(s=>s.kid===t),n&&this.jwks_cached_at+qH>i)return n;const{data:a,error:o}=await de(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!a.keys||a.keys.length===0||(this.jwks=a,this.jwks_cached_at=i,n=a.keys.find(s=>s.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:p,error:v}
245=await this.getSession();if(v||!p.session)return this._returnResult({data:null,error:v});n=p.session.access_token}const{header:i,payload:a,signature:o,raw:{header:s,payload:l}}=fh(n);if(!(r!=null&&r.allowExpired))try{m9(a.exp)}catch(p){throw new Kp(p instanceof Error?p.message:"JWT validation failed")}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:p}=await this.getUser(n);if(p)throw p;return{data:{claims:a,header:i,signature:o},error:null}}const u=v9(i.alg),d=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,d,o,r9(`${s}.${l}`)))throw new Kp("Invalid JWT signature");return{data:{claims:a,header:i,signature:o},error:null}}catch(n){if(ie(n))return this._returnResult({data:null,error:n});throw n}}async signInWithPasskey(t){var r,n,i;An(this.experimental);try{if(!Xp())return this._returnResult({data:null,error:new Ln("Browser does not support WebAuthn",null)});const{data:a,error:o}=await this._startPasskeyAuthentication({options:{captchaToken:(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.captchaToken}});if(o||!a)return this._returnResult({data:null,error:o});const s=Lk(a.options),l=(i=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.signal)!==null&&i!==void 0?i:Fb.createNewAbortSignal(),{data:c,error:u}=await Q2({publicKey:s,signal:l});if(u||!c)return this._returnResult({data:null,error:u??new Ln("WebAuthn ceremony failed",null)});const d=Fk(c);return this._verifyPasskeyAuthentication({challengeId:a.challenge_id,credential:d})}catch(a){if(ie(a))return this._returnResult({data:null,error:a});throw a}}async registerPasskey(t){var r,n;An(this.experimental);try{if(!Xp())return this._returnResult({data:null,error:new Ln("Browser does not support WebAuthn",null)});const{data:i,error:a}=await this._startPasskeyRegistration();if(a||!i)return this._returnResult({data:null,error:a});const o=Dk(i.options),s=(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.signal)!==null&&n!==void 0?n:Fb.createNewAbortSignal(),{data:l,error:c}=await J2({publicKey:o,signal:s});if(c||!l)return this._returnResult({data:null,error:c??new Ln("WebAuthn ceremony failed",null)});const u=Bk(l);return this._verifyPasskeyRegistration({challengeId:i.challenge_id,credential:u})}catch(i){if(ie(i))return this._returnResult({data:null,error:i});throw i}}async _startPasskeyRegistration(){An(this.experimental);try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)return this._returnResult({data:null,error:n});if(!r)return this._returnResult({data:null,error:new Lt});const{data:i,error:a}=await de(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:r.access_token,body:{}});return a?this._returnResult({data:null,error:a}):this._returnResult({data:i,error:null})})}catch(t){if(ie(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){An(this.experimental);try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!n)return this._returnResult({data:null,error:new Lt});const{data:a,error:o}=await de(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:n.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:a,error:null})})}catch(r){if(ie(r))return this._returnResult({data:null,error:r});throw r}}async _startPasskeyAuthentication(t){var r;An(this.experimental);try{const{data:n,error:i}=await de(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.captchaToken}}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:n,error:null})}catch(n){if(ie(n))return this._returnResult({data:null,error:n});throw n}}async _verifyPasskeyAuthentication(t){An(this.experimental);try{const{data:r,error:n}=await de(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:ln});return n?this._returnResult({data:null,error:n}):(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:r,error:null}))}catch(r){if(ie(r))return this._returnResult({data:null,error:r});throw r}}async _listPasskeys(){An(this.experimental);try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)return this._returnResult({data:null,error:n});if(!r)return this._returnResult({data:null,error:new Lt});const{data:i,error:a}=await de(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:r.access_token,xform:o=>({data:o,error:null})});return a?this._returnResult({data:null,error:a}):this._returnResult({data:i,error:null})})}catch(t){if(ie(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){An(this.experimental);try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!n)return this._returnResult({data:null,error:new Lt});const{data:a,error:o}=await de(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:n.access_token,body:{friendly_name:t.friendlyName}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:a,error:null})})}catch(r){if(ie(r))return this._returnResult({data:null,error:r});throw r}}async _deletePasskey(t){An(this.experimental);try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!n)return this._returnResult({data:null,error:new Lt});const{error:a}
245=await de(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:n.access_token,noResolveJson:!0});return a?this._returnResult({data:null,error:a}):this._returnResult({data:null,error:null})})}catch(r){if(ie(r))return this._returnResult({data:null,error:r});throw r}}}kd.nextInstanceID={};const F9=kd,U9="2.110.3";let pu="",Jp;if(typeof Deno<"u"){var Ay;pu="deno",Jp=(Ay=Deno.version)===null||Ay===void 0?void 0:Ay.deno}else if(typeof document<"u")pu="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")pu="react-native";else{var Ty;pu="node",Jp=typeof process<"u"?(Ty=process.version)===null||Ty===void 0?void 0:Ty.replace(/^v/,""):void 0}const eR=[`runtime=${pu}`];Jp&&eR.push(`runtime-version=${Jp}`);const z9={"X-Client-Info":`supabase-js/${U9}; ${eR.join("; ")}`},V9={headers:z9},W9={schema:"public"},H9={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},q9={},K9={enabled:!1,respectSamplingDecision:!0};function G9(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((n=n.apply(e,[])).next())})}let jy=null;const Y9="@opentelemetry/api";function X9(){return jy===null&&(jy=import(Y9).catch(()=>null)),jy}function Z9(){return G9(this,void 0,void 0,function*(){try{const e=yield X9();if(!e||!e.propagation||!e.context)return null;const t={};e.propagation.inject(e.context.active(),t);const r=t.traceparent;return r?{traceparent:r,tracestate:t.tracestate,baggage:t.baggage}:null}catch{return null}})}function J9(e){if(!e||typeof e!="string")return null;const t=e.split("-");if(t.length!==4)return null;const[r,n,i,a]=t;if(r.length!==2||n.length!==32||i.length!==16||a.length!==2)return null;const o=/^[0-9a-f]+$/i;return!o.test(r)||!o.test(n)||!o.test(i)||!o.test(a)||n==="00000000000000000000000000000000"||i==="0000000000000000"?null:{version:r,traceId:n,parentId:i,traceFlags:a,isSampled:(parseInt(a,16)&1)===1}}function Q9(e,t){if(!e||!t||t.length===0)return!1;let r;if(e instanceof URL)r=e;else try{r=new URL(e)}catch{return!1}for(const n of t)try{if(typeof n=="string"){if(e7(r.hostname,n))return!0}else if(n instanceof RegExp){if(n.test(r.hostname))return!0}else if(typeof n=="function"&&n(r))return!0}catch{continue}return!1}function e7(e,t){if(t===e)return!0;if(t.startsWith("*.")){const r=t.slice(2);if(e.endsWith(r)&&(e===r||e.endsWith("."+r)))return!0}return!1}function t7(e){const t=[];try{const r=new URL(e);t.push(r.hostname)}catch{}return t.push("*.supabase.co","*.supabase.in"),t.push("localhost","127.0.0.1","[::1]"),t}function Od(e){"@babel/helpers - typeof";return Od=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},Od(e)}function r7(e,t){if(Od(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Od(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n7(e){var t=r7(e,"string");return Od(t)=="symbol"?t:t+""}function i7(e,t,r){return(t=n7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uk(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 xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uk(Object(r),!0).forEach(function(n){i7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const a7=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),o7=()=>Headers,s7=(e,t,r,n,i)=>{const a=a7(n),o=o7(),s=(i==null?void 0:i.enabled)===!0,l=(i==null?void 0:i.respectSamplingDecision)!==!1,c=s?t7(t):null;return async(u,d)=>{var f;const p=(f=await r())!==null&&f!==void 0?f:e;let v=new o(d==null?void 0:d.headers);if(v.has("apikey")||v.set("apikey",e),v.has("Authorization")||v.set("Authorization",`Bearer ${p}`),c){const m=await l7(u,c,l);m&&(m.traceparent&&!v.has("traceparent")&&v.set("traceparent",m.traceparent),m.tracestate&&!v.has("tracestate")&&v.set("tracestate",m.tracestate),m.baggage&&!v.has("baggage")&&v.set("baggage",m.baggage))}return a(u,xt(xt({},d),{},{headers:v}))}};async function l7(e,t,r){if(!Q9(typeof e=="string"||e instanceof URL?e:e.url,t))return null;const n=await Z9();if(!n||!n.traceparent)return null;if(r){const i=J9(n.traceparent);if(i&&!i.isSampled)return null}return n}function zk(e){return typeof e=="boolean"?{enabled:e}:e}function c7(e){return e.endsWith("/")?e:e+"/"}function u7(e,t){var r,n,i,a,o,s;const{db:l,auth:c,realtime:u,global:d}=e,{db:f,auth:p,realtime:v,global:m}=t,y=zk(e.tracePropagation),b=zk(t.tracePropagation),g={db:xt(xt({},f),l),auth:xt(xt({},p),c),realtime:xt(xt({},v),u),storage:{},global:xt(xt(xt({},m),d),{},{headers:xt(xt({},(r=m==null?void 0:m.headers)!==null&&r!==void 0?r:{}),(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{})}),tracePropagation:{enabled:(i=(a=y==null?void 0:y.enabled)!==null&&a!==void 0?a:b==null?void 0:b.enabled)!==null&&i!==void 0?i:!1,respectSamplingDecision:(o=(s=y==null?void 0:y.respectSamplingDecision)!==null&&s!==void 0?s:b==null?void 0:b.respectSamplingDecision)!==null&&o!==void 0?o:!0},accessToken:async()=>""};return e.accessToken?g.accessToken=e.accessToken:delete g.accessToken,g}function d7(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");
245if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(c7(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var f7=class extends F9{constructor(e){super(e)}},h7=class{constructor(e,t,r){var n,i;this.supabaseUrl=e,this.supabaseKey=t;const a=d7(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",a),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",a),this.storageUrl=new URL("storage/v1",a),this.functionsUrl=new URL("functions/v1",a);const o=`sb-${a.hostname.split(".")[0]}-auth-token`,s={db:W9,realtime:q9,auth:xt(xt({},H9),{},{storageKey:o}),global:V9,tracePropagation:K9},l=u7(r??{},s);if(this.settings=l,this.storageKey=(n=l.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(i=l.global.headers)!==null&&i!==void 0?i:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(u,d)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(d)} is not possible`)}});else{var c;this.auth=this._initSupabaseAuthClient((c=l.auth)!==null&&c!==void 0?c:{},this.headers,l.global.fetch)}this.fetch=s7(t,e,this._getAccessToken.bind(this),l.global.fetch,l.tracePropagation),this.realtime=this._initRealtimeClient(xt({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(u=>this.realtime.setAuth(u)).catch(u=>console.warn("Failed to set initial Realtime auth token:",u)),this.rest=new _W(new URL("rest/v1",a).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new FH(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new hW(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,r)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,r;if(e.accessToken)return await e.accessToken();const{data:n}=await e.auth.getSession();return(t=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:i,storageKey:a,flowType:o,lock:s,debug:l,throwOnError:c,experimental:u,lockAcquireTimeout:d,skipAutoInitialize:f},p,v){const m={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new f7({url:this.authUrl.href,headers:xt(xt({},m),p),storageKey:a,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:i,flowType:o,lock:s,debug:l,throwOnError:c,experimental:u,fetch:v,lockAcquireTimeout:d,skipAutoInitialize:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(y=>y.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new uH(this.realtimeUrl.href,xt(xt({},e),{},{params:xt(xt({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const tR=(e,t,r)=>new h7(e,t,r);function p7(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const r=t.match(/^v(\d+)\./);return r?parseInt(r[1],10)<=20:!1}p7()&&console.warn("â ï¸ Node.js 20 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
245ode.js 22 or later. For more information, visit: https://github.com/orgs/supabase/discussions/45715");const m7="https://tuttfylkeywyashabirx.supabase.co",v7="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InR1dHRmeWxrZXl3eWFzaGFiaXJ4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzA0MjcwMzAsImV4cCI6MjA4NjAwMzAzMH0.hQpDFEpuQFzu3gjcwwYsRnvU7wMqytubtTHqIzdFVvY",Vk=tR(m7,v7,{auth:{storage:localStorage,storageKey:"lesupper-auth",persistSession:!1,autoRefreshToken:!1}}),g7=v1("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"}}),z1=S.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},a)=>{const o=n?ts:"button";return h.jsx(o,{className:st(g7({variant:t,size:r,className:e})),ref:a,...i})});z1.displayName="Button";const qt=S.forwardRef(({className:e,type:t,...r},n)=>h.jsx("input",{type:t,className:st("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}));qt.displayName="Input";function rR(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var V1="Checkbox",[y7,ewe]=gv(V1),[b7,x7]=y7(V1),nR=S.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:a,required:o,disabled:s,value:l="on",onCheckedChange:c,form:u,...d}=e,[f,p]=S.useState(null),v=mt(t,w=>p(w)),m=S.useRef(!1),y=f?u||!!f.closest("form"):!0,[b=!1,g]=Op({prop:i,defaultProp:a,onChange:c}),x=S.useRef(b);return S.useEffect(()=>{const w=f==null?void 0:f.form;if(w){const _=()=>g(x.current);return w.addEventListener("reset",_),()=>w.removeEventListener("reset",_)}},[f,g]),h.jsxs(b7,{scope:r,state:b,disabled:s,children:[h.jsx(We.button,{type:"button",role:"checkbox","aria-checked":Ka(b)?"mixed":b,"aria-required":o,"data-state":oR(b),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:v,onKeyDown:Ne(e.onKeyDown,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:Ne(e.onClick,w=>{g(_=>Ka(_)?!0:!_),y&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),y&&h.jsx(w7,{control:f,bubbles:!m.current,name:n,value:l,checked:b,required:o,disabled:s,form:u,style:{transform:"translateX(-100%)"},defaultChecked:Ka(a)?!1:a})]})});nR.displayName=V1;var iR="CheckboxIndicator",aR=S.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...i}=e,a=x7(iR,r);return h.jsx(bv,{present:n||Ka(a.state)||a.state===!0,children:h.jsx(We.span,{"data-state":oR(a.state),"data-disabled":a.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});aR.displayName=iR;var w7=e=>{const{control:t,checked:r,bubbles:n=!0,defaultChecked:i,...a}=e,o=S.useRef(null),s=rR(r),l=E$(t);S.useEffect(()=>{const u=o.current,d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(s!==r&&p){const v=new Event("click",{bubbles:n});u.indeterminate=Ka(r),p.call(u,Ka(r)?!1:r),u.dispatchEvent(v)}},[s,r,n]);const c=S.useRef(Ka(r)?!1:r);return h.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i??c.current,...a,tabIndex:-1,ref:o,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Ka(e){return e==="indeterminate"}function oR(e){return Ka(e)?"indeterminate":e?"checked":"unchecked"}var sR=nR,_7=aR;const lR=S.forwardRef(({className:e,...t},r)=>h.jsx(sR,{ref:r,className:st("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:h.jsx(_7,{className:st("flex items-center justify-center text-current"),children:h.jsx(_v,{className:"h-4 w-4"})})}));lR.displayName=sR.displayName;var S7="Label",cR=S.forwardRef((e,t)=>
245h.jsx(We.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())}}));cR.displayName=S7;var uR=cR;const E7=v1("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),wt=S.forwardRef(({className:e,...t},r)=>h.jsx(uR,{ref:r,className:st(E7(),e),...t}));wt.displayName=uR.displayName;const k7=Uz,dR=S.createContext({}),Lr=({...e})=>h.jsx(dR.Provider,{value:{name:e.name},children:h.jsx(Hz,{...e})}),Uv=()=>{const e=S.useContext(dR),t=S.useContext(fR),{getFieldState:r,formState:n}=Iv(),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}},fR=S.createContext({}),_r=S.forwardRef(({className:e,...t},r)=>{const n=S.useId();return h.jsx(fR.Provider,{value:{id:n},children:h.jsx("div",{ref:r,className:st("space-y-2",e),...t})})});_r.displayName="FormItem";const Sr=S.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:i}=Uv();return h.jsx(wt,{ref:r,className:st(n&&"text-destructive",e),htmlFor:i,...t})});Sr.displayName="FormLabel";const Er=S.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:i,formMessageId:a}=Uv();return h.jsx(ts,{ref:t,id:n,"aria-describedby":r?`${i} ${a}`:`${i}`,"aria-invalid":!!r,...e})});Er.displayName="FormControl";const O7=S.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=Uv();return h.jsx("p",{ref:r,id:n,className:st("text-sm text-muted-foreground",e),...t})});O7.displayName="FormDescription";const kr=S.forwardRef(({className:e,children:t,...r},n)=>{const{error:i,formMessageId:a}=Uv(),o=i?String(i==null?void 0:i.message):t;return o?h.jsx("p",{ref:n,id:a,className:st("text-sm font-medium text-destructive",e),...r,children:o}):null});kr.displayName="FormMessage";function Wk(e,[t,r]){return Math.min(r,Math.max(t,e))}var A7=S.createContext(void 0);function T7(e){const t=S.useContext(A7);return e||t||"ltr"}var Py=0;function j7(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Hk()),document.body.insertAdjacentElement("beforeend",e[1]??Hk()),Py++,()=>{Py===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Py--}},[])}function Hk(){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 Cy="focusScope.autoFocusOnMount",Ny="focusScope.autoFocusOnUnmount",qk={bubbles:!1,cancelable:!0},P7="FocusScope",hR=S.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,l]=S.useState(null),c=Jr(i),u=Jr(a),d=S.useRef(null),f=mt(t,m=>l(m)),p=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(n){let m=function(x){if(p.paused||!s)return;const w=x.target;s.contains(w)?d.current=w:ga(d.current,{select:!0})},y=function(x){if(p.paused||!s)return;const w=x.relatedTarget;w!==null&&(s.contains(w)||ga(d.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const _ of x)_.removedNodes.length>0&&ga(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);const g=new MutationObserver(b);return s&&g.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),g.disconnect()}}},[n,s,p.paused]),S.useEffect(()=>{if(s){Gk.add(p);const m=document.activeElement;if(!s.contains(m)){const b=new CustomEvent(Cy,qk);s.addEventListener(Cy,c),s.dispatchEvent(b),b.defaultPrevented||(C7(M7(pR(s)),{select:!0}),document.activeElement===m&&ga(s))}return()=>{s.removeEventListener(Cy,c),setTimeout(()=>{const b=new CustomEvent(Ny,qk);s.addEventListener(Ny,u),s.dispatchEvent(b),b.defaultPrevented||ga(m??document.body,{select:!0}),s.removeEventListener(Ny,u),Gk.remove(p)}
vendor: 4,594 bytes, line 245
245,0)}}},[s,c,u,p]);const v=S.useCallback(m=>{if(!r&&!n||p.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(y&&b){const g=m.currentTarget,[x,w]=N7(g);x&&w?!m.shiftKey&&b===w?(m.preventDefault(),r&&ga(x,{select:!0})):m.shiftKey&&b===x&&(m.preventDefault(),r&&ga(w,{select:!0})):b===g&&m.preventDefault()}},[r,n,p.paused]);return h.jsx(We.div,{tabIndex:-1,...o,ref:f,onKeyDown:v})});hR.displayName=P7;function C7(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ga(n,{select:t}),document.activeElement!==r)return}function N7(e){const t=pR(e),r=Kk(t,e),n=Kk(t.reverse(),e);return[r,n]}function pR(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 Kk(e,t){for(const r of e)if(!$7(r,{upTo:t}))return r}function $7(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 R7(e){return e instanceof HTMLInputElement&&"select"in e}function ga(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&R7(e)&&t&&e.select()}}var Gk=I7();function I7(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Yk(e,t),e.unshift(t)},remove(t){var r;e=Yk(e,t),(r=e[0])==null||r.resume()}}}function Yk(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function M7(e){return e.filter(t=>t.tagName!=="A")}var D7=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ts=new WeakMap,hh=new WeakMap,ph={},$y=0,mR=function(e){return e&&(e.host||mR(e.parentNode))},L7=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=mR(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})},B7=function(e,t,r,n){var i=L7(t,Array.isArray(e)?e:[e]);ph[r]||(ph[r]=new WeakMap);var a=ph[r],o=[],s=new Set,l=new Set(i),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};i.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))u(f);else try{var p=f.getAttribute(n),v=p!==null&&p!=="false",m=(Ts.get(f)||0)+1,y=(a.get(f)||0)+1;Ts.set(f,m),a.set(f,y),o.push(f),m===1&&v&&hh.set(f,!0),y===1&&f.setAttribute(r,"true"),v||f.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",f,b)}})};return u(t),s.clear(),$y++,function(){o.forEach(function(d){var f=Ts.get(d)-1,p=a.get(d)-1;Ts.set(d,f),a.set(d,p),f||(hh.has(d)||d.removeAttribute(n),hh.delete(d)),p||d.removeAttribute(r)}),$y--,$y||(Ts=new WeakMap,Ts=new WeakMap,hh=new WeakMap,ph={})}},F7=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=D7(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),B7(n,i,r,"aria-hidden")):function(){return null}},di=function(){return di=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},di.apply(this,arguments)};function vR(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 U7(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 ep="right-scroll-bar-position",tp="width-before-scroll-bar",z7="with-scroll-bars-hidden",V7="--removed-body-scroll-bar-size";function Ry(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function W7(e,t){var r=S.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 H7=typeof window<"u"?S.useLayoutEffect:S.useEffect,Xk=new WeakMap;function q7(e,t){var r=W7(null,function(n){return e.forEach(function(i){return Ry(i,n)})});return H7(function(){var n=Xk.get(r);if(n){var i=new Set(n),a=new Set(e),o=r.current;
vendor: 4,155 bytes, lines 245-260
245i.forEach(function(s){a.has(s)||Ry(s,null)}),a.forEach(function(s){i.has(s)||Ry(s,o)})}Xk.set(r,e)},[e]),r}function K7(e){return e}function G7(e,t){t===void 0&&(t=K7);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 o=t(a,n);return r.push(o),function(){r=r.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(n=!0;r.length;){var o=r;r=[],o.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var o=[];if(r.length){var s=r;r=[],s.forEach(a),o=r}var l=function(){var u=o;o=[],u.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),r}}}};return i}function Y7(e){e===void 0&&(e={});var t=G7(null);return t.options=di({async:!0,ssr:!1},e),t}var gR=function(e){var t=e.sideCar,r=vR(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 S.createElement(n,di({},r))};gR.isSideCarExport=!0;function X7(e,t){return e.useMedium(t),gR}var yR=Y7(),Iy=function(){},zv=S.forwardRef(function(e,t){var r=S.useRef(null),n=S.useState({onScrollCapture:Iy,onWheelCapture:Iy,onTouchMoveCapture:Iy}),i=n[0],a=n[1],o=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,v=e.inert,m=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,g=e.gapMode,x=vR(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,_=q7([r,t]),E=di(di({},x),i);return S.createElement(S.Fragment,null,u&&S.createElement(w,{sideCar:yR,removeScrollBar:c,shards:d,noIsolation:p,inert:v,setCallbacks:a,allowPinchZoom:!!m,lockRef:r,gapMode:g}),o?S.cloneElement(S.Children.only(s),di(di({},E),{ref:_})):S.createElement(b,di({},E,{className:l,ref:_}),s))});zv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};zv.classNames={fullWidth:tp,zeroRight:ep};var Z7=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function J7(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Z7();return t&&e.setAttribute("nonce",t),e}function Q7(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function eq(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var tq=function(){var e=0,t=null;return{add:function(r){e==0&&(t=J7())&&(Q7(t,r),eq(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rq=function(){var e=tq();return function(t,r){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},bR=function(){var e=rq(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},nq={left:0,top:0,right:0,gap:0},My=function(e){return parseInt(e||"",10)||0},iq=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[My(r),My(n),My(i)]},aq=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return nq;var t=iq(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])}},oq=bR(),hl="data-scroll-locked",sq=function(e,t,r,n){var i=e.left,a=e.top,o=e.right,s=e.gap;return r===void 0&&(r="margin"),` 246 .`.concat(z7,` { 247 overflow: hidden `).concat(n,`; 248 padding-right: `).concat(s,"px ").concat(n,`; 249 } 250 body[`).concat(hl,`] { 251 overflow: hidden `).concat(n,`; 252 overscroll-behavior: contain; 253 `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` 254 padding-left: `.concat(i,`px; 255 padding-top: `).concat(a,`px; 256 padding-right: `).concat(o,`px; 257 margin-left:0; 258 margin-top:0; 259 margin-right: `).concat(s,"px ").concat(n,`; 260 `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";
260")].filter(Boolean).join(""),` 261 } 262 263 .`).concat(ep,` { 264 right: `).concat(s,"px ").concat(n,`; 265 } 266 267 .`).concat(tp,` { 268 margin-right: `).concat(s,"px ").concat(n,`; 269 } 270 271 .`).concat(ep," .").concat(ep,` { 272 right: 0 `).concat(n,`; 273 } 274 275 .`).concat(tp," .").concat(tp,` { 276 margin-right: 0 `).concat(n,`; 277 } 278 279 body[`).concat(hl,`] { 280 `).concat(V7,": ").concat(s,`px; 281 } 282`)},Zk=function(){var e=parseInt(document.body.getAttribute(hl)||"0",10);return isFinite(e)?e:0},lq=function(){S.useEffect(function(){return document.body.setAttribute(hl,(Zk()+1).toString()),function(){var e=Zk()-1;e<=0?document.body.removeAttribute(hl):document.body.setAttribute(hl,e.toString())}},[])},cq=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;lq();var a=S.useMemo(function(){return aq(i)},[i]);return S.createElement(oq,{styles:sq(a,!t,i,r?"":"!important")})},Ub=!1;if(typeof window<"u")try{var mh=Object.defineProperty({},"passive",{get:function(){return Ub=!0,!0}});window.addEventListener("test",mh,mh),window.removeEventListener("test",mh,mh)}catch{Ub=!1}var js=Ub?{passive:!1}:!1,uq=function(e){return e.tagName==="TEXTAREA"},xR=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!uq(e)&&r[t]==="visible")},dq=function(e){return xR(e,"overflowY")},fq=function(e){return xR(e,"overflowX")},Jk=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=wR(e,n);if(i){var a=_R(e,n),o=a[1],s=a[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},hq=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},pq=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},wR=function(e,t){return e==="v"?dq(t):fq(t)},_R=function(e,t){return e==="v"?hq(t):pq(t)},mq=function(e,t){return e==="h"&&t==="rtl"?-1:1},vq=function(e,t,r,n,i){var a=mq(e,window.getComputedStyle(t).direction),o=a*n,s=r.target,l=t.contains(s),c=!1,u=o>0,d=0,f=0;do{var p=_R(e,s),v=p[0],m=p[1],y=p[2],b=m-y-a*v;(v||b)&&wR(e,s)&&(d+=b,f+=v),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(Math.abs(d)<1||!i)||!u&&(Math.abs(f)<1||!i))&&(c=!0),c},vh=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qk=function(e){return[e.deltaX,e.deltaY]},eO=function(e){return e&&"current"in e?e.current:e},gq=function(e,t){return e[0]===t[0]&&e[1]===t[1]},yq=function(e){return` 283 .block-interactivity-`.concat(e,` {pointer-events: none;} 284 .allow-interactivity-`).concat(e,` {pointer-events: all;} 285`)},bq=0,Ps=[];function xq(e){var t=S.useRef([]),r=S.useRef([0,0]),n=S.useRef(),i=S.useState(bq++)[0],a=S.useState(bR)[0],o=S.useRef(e);S.useEffect(function(){o.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=U7([e.lockRef.current],(e.shards||[]).map(eO),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var b=vh(m),g=r.current,x="deltaX"in m?m.deltaX:g[0]-b[0],w="deltaY"in m?m.deltaY:g[1]-b[1],_,E=m.target,k=Math.abs(x)>Math.abs(w)?"h":"v";if("touches"in m&&k==="h"&&E.type==="range")return!1;var O=Jk(k,E);if(!O)return!0;if(O?_=k:(_=k==="v"?"h":"v",O=Jk(k,E)),!O)return!1;if(!n.current&&"changedTouches"in m&&(x||w)&&(n.current=_),!_)return!0;var P=n.current||_;return vq(P,y,m,P==="h"?x:w,!0)},[]),l=S.useCallback(function(m){var y=m;if(!(!Ps.length||Ps[Ps.length-1]!==a)){var b="deltaY"in y?Qk(y):vh(y),g=t.current.filter(function(_){return _.name===y.type&&(_.target===y.target||y.target===_.shadowParent)&&gq(_.delta,b)})[0];if(g&&g.should){y.cancelable&&y.preventDefault();return}
vendor: 4,176 bytes, line 285
285if(!g){var x=(o.current.shards||[]).map(eO).filter(Boolean).filter(function(_){return _.contains(y.target)}),w=x.length>0?s(y,x[0]):!o.current.noIsolation;w&&y.cancelable&&y.preventDefault()}}},[]),c=S.useCallback(function(m,y,b,g){var x={name:m,delta:y,target:b,should:g,shadowParent:wq(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(w){return w!==x})},1)},[]),u=S.useCallback(function(m){r.current=vh(m),n.current=void 0},[]),d=S.useCallback(function(m){c(m.type,Qk(m),m.target,s(m,e.lockRef.current))},[]),f=S.useCallback(function(m){c(m.type,vh(m),m.target,s(m,e.lockRef.current))},[]);S.useEffect(function(){return Ps.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,js),document.addEventListener("touchmove",l,js),document.addEventListener("touchstart",u,js),function(){Ps=Ps.filter(function(m){return m!==a}),document.removeEventListener("wheel",l,js),document.removeEventListener("touchmove",l,js),document.removeEventListener("touchstart",u,js)}},[]);var p=e.removeScrollBar,v=e.inert;return S.createElement(S.Fragment,null,v?S.createElement(a,{styles:yq(i)}):null,p?S.createElement(cq,{gapMode:e.gapMode}):null)}function wq(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _q=X7(yR,xq);var SR=S.forwardRef(function(e,t){return S.createElement(zv,di({},e,{ref:t,sideCar:_q}))});SR.classNames=zv.classNames;var Sq=[" ","Enter","ArrowUp","ArrowDown"],Eq=[" ","Enter"],_f="Select",[Vv,Wv,kq]=TN(_f),[pc,twe]=gv(_f,[kq,Ov]),Hv=Ov(),[Oq,fo]=pc(_f),[Aq,Tq]=pc(_f),ER=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:f,required:p,form:v}=e,m=Hv(t),[y,b]=S.useState(null),[g,x]=S.useState(null),[w,_]=S.useState(!1),E=T7(c),[k=!1,O]=Op({prop:n,defaultProp:i,onChange:a}),[P,C]=Op({prop:o,defaultProp:s,onChange:l}),R=S.useRef(null),T=y?v||!!y.closest("form"):!0,[I,N]=S.useState(new Set),L=Array.from(I).map(M=>M.props.value).join(";");return h.jsx(x8,{...m,children:h.jsxs(Oq,{required:p,scope:t,trigger:y,onTriggerChange:b,valueNode:g,onValueNodeChange:x,valueNodeHasChildren:w,onValueNodeHasChildrenChange:_,contentId:w1(),value:P,onValueChange:C,open:k,onOpenChange:O,dir:E,triggerPointerDownPosRef:R,disabled:f,children:[h.jsx(Vv.Provider,{scope:t,children:h.jsx(Aq,{scope:e.__scopeSelect,onNativeOptionAdd:S.useCallback(M=>{N(F=>new Set(F).add(M))},[]),onNativeOptionRemove:S.useCallback(M=>{N(F=>{const j=new Set(F);return j.delete(M),j})},[]),children:r})}),T?h.jsxs(YR,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:P,onChange:M=>C(M.target.value),disabled:f,form:v,children:[P===void 0?h.jsx("option",{value:""}):null,Array.from(I)]},L):null]})})};ER.displayName=_f;var kR="SelectTrigger",OR=S.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,a=Hv(r),o=fo(kR,r),s=o.disabled||n,l=mt(t,o.onTriggerChange),c=Wv(r),u=S.useRef("touch"),[d,f,p]=XR(m=>{const y=c().filter(x=>!x.disabled),b=y.find(x=>x.value===o.value),g=ZR(y,m,b);g!==void 0&&o.onValueChange(g.value)}),v=m=>{s||(o.onOpenChange(!0),p()),m&&(o.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return h.jsx(R$,{asChild:!0,...a,children:h.jsx(We.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":GR(o.value)?"":void 0,...i,ref:l,onClick:Ne(i.onClick,m=>{m.currentTarget.focus(),u.current!=="mouse"&&v(m)}),onPointerDown:Ne(i.onPointerDown,m=>{u.current=m.pointerType;const y=m.target;y.hasPointerCapture(m.pointerId)&&y.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:Ne(i.onKeyDown,m=>{const y=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(y&&m.key===" ")&&Sq.includes(m.key)&&(v(),m.preventDefault())})})})});OR.displayName=kR;var AR="SelectValue",TR=S.forwardRef((e,t)=>
vendor: 15,477 bytes, line 285
285{const{__scopeSelect:r,className:n,style:i,children:a,placeholder:o="",...s}=e,l=fo(AR,r),{onValueNodeHasChildrenChange:c}=l,u=a!==void 0,d=mt(t,l.onValueNodeChange);return or(()=>{c(u)},[c,u]),h.jsx(We.span,{...s,ref:d,style:{pointerEvents:"none"},children:GR(l.value)?h.jsx(h.Fragment,{children:o}):a})});TR.displayName=AR;var jq="SelectIcon",jR=S.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return h.jsx(We.span,{"aria-hidden":!0,...i,ref:t,children:n||"â¼"})});jR.displayName=jq;var Pq="SelectPortal",PR=e=>h.jsx(f1,{asChild:!0,...e});PR.displayName=Pq;var os="SelectContent",CR=S.forwardRef((e,t)=>{const r=fo(os,e.__scopeSelect),[n,i]=S.useState();if(or(()=>{i(new DocumentFragment)},[]),!r.open){const a=n;return a?hs.createPortal(h.jsx(NR,{scope:e.__scopeSelect,children:h.jsx(Vv.Slot,{scope:e.__scopeSelect,children:h.jsx("div",{children:e.children})})}),a):null}return h.jsx($R,{...e,ref:t})});CR.displayName=os;var Tn=10,[NR,ho]=pc(os),Cq="SelectContentImpl",$R=S.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:v,hideWhenDetached:m,avoidCollisions:y,...b}=e,g=fo(os,r),[x,w]=S.useState(null),[_,E]=S.useState(null),k=mt(t,ae=>w(ae)),[O,P]=S.useState(null),[C,R]=S.useState(null),T=Wv(r),[I,N]=S.useState(!1),L=S.useRef(!1);S.useEffect(()=>{if(x)return F7(x)},[x]),j7();const M=S.useCallback(ae=>{const[we,...G]=T().map(z=>z.ref.current),[ne]=G.slice(-1),oe=document.activeElement;for(const z of ae)if(z===oe||(z==null||z.scrollIntoView({block:"nearest"}),z===we&&_&&(_.scrollTop=0),z===ne&&_&&(_.scrollTop=_.scrollHeight),z==null||z.focus(),document.activeElement!==oe))return},[T,_]),F=S.useCallback(()=>M([O,x]),[M,O,x]);S.useEffect(()=>{I&&F()},[I,F]);const{onOpenChange:j,triggerPointerDownPosRef:B}=g;S.useEffect(()=>{if(x){let ae={x:0,y:0};const we=ne=>{var oe,z;ae={x:Math.abs(Math.round(ne.pageX)-(((oe=B.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(ne.pageY)-(((z=B.current)==null?void 0:z.y)??0))}},G=ne=>{ae.x<=10&&ae.y<=10?ne.preventDefault():x.contains(ne.target)||j(!1),document.removeEventListener("pointermove",we),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",we),document.addEventListener("pointerup",G,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",we),document.removeEventListener("pointerup",G,{capture:!0})}}},[x,j,B]),S.useEffect(()=>{const ae=()=>j(!1);return window.addEventListener("blur",ae),window.addEventListener("resize",ae),()=>{window.removeEventListener("blur",ae),window.removeEventListener("resize",ae)}},[j]);const[q,V]=XR(ae=>{const we=T().filter(oe=>!oe.disabled),G=we.find(oe=>oe.ref.current===document.activeElement),ne=ZR(we,ae,G);ne&&setTimeout(()=>ne.ref.current.focus())}),H=S.useCallback((ae,we,G)=>{const ne=!L.current&&!G;(g.value!==void 0&&g.value===we||ne)&&(P(ae),ne&&(L.current=!0))},[g.value]),J=S.useCallback(()=>x==null?void 0:x.focus(),[x]),fe=S.useCallback((ae,we,G)=>{const ne=!L.current&&!G;(g.value!==void 0&&g.value===we||ne)&&R(ae)},[g.value]),Ce=n==="popper"?zb:RR,ve=Ce===zb?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:v,hideWhenDetached:m,avoidCollisions:y}:{};return h.jsx(NR,{scope:r,content:x,viewport:_,onViewportChange:E,itemRefCallback:H,selectedItem:O,onItemLeave:J,itemTextRefCallback:fe,focusSelectedItem:F,selectedItemText:C,position:n,isPositioned:I,searchRef:q,children:h.jsx(SR,{as:ts,allowPinchZoom:!0,children:h.jsx(hR,{asChild:!0,trapped:g.open,onMountAutoFocus:ae=>{ae.preventDefault()},onUnmountAutoFocus:Ne(i,ae=>{var we;(we=g.trigger)==null||we.focus({preventScroll:!0}),ae.preventDefault()}),children:h.jsx(yv,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:ae=>ae.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:h.jsx(Ce,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:ae=>ae.preventDefault(),...b,...ve,onPlaced:()=>N(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:Ne(b.onKeyDown,ae=>{const we=ae.ctrlKey||ae.altKey||ae.metaKey;if(ae.key==="Tab"&&ae.preventDefault(),!we&&ae.key.length===1&&V(ae.key),["ArrowUp","ArrowDown","Home","End"].includes(ae.key)){let ne=T().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(ae.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(ae.key)){const oe=ae.target,z=ne.indexOf(oe);ne=ne.slice(z+1)}setTimeout(()=>M(ne)),ae.preventDefault()}})})})})})})});$R.displayName=Cq;var Nq="SelectItemAlignedPosition",RR=S.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,a=fo(os,r),o=ho(os,r),[s,l]=S.useState(null),[c,u]=S.useState(null),d=mt(t,k=>u(k)),f=Wv(r),p=S.useRef(!1),v=S.useRef(!0),{viewport:m,selectedItem:y,selectedItemText:b,focusSelectedItem:g}=o,x=S.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&c&&m&&y&&b){const k=a.trigger.getBoundingClientRect(),O=c.getBoundingClientRect(),P=a.valueNode.getBoundingClientRect(),C=b.getBoundingClientRect();if(a.dir!=="rtl"){const oe=C.left-O.left,z=P.left-oe,Ae=k.left-z,ge=k.width+Ae,He=Math.max(ge,O.width),Me=window.innerWidth-Tn,gt=Wk(z,[Tn,Math.max(Tn,Me-He)]);s.style.minWidth=ge+"px",s.style.left=gt+"px"}else{const oe=O.right-C.right,z=window.innerWidth-P.right-oe,Ae=window.innerWidth-k.right-z,ge=k.width+Ae,He=Math.max(ge,O.width),Me=window.innerWidth-Tn,gt=Wk(z,[Tn,Math.max(Tn,Me-He)]);s.style.minWidth=ge+"px",s.style.right=gt+"px"}const R=f(),T=window.innerHeight-Tn*2,I=m.scrollHeight,N=window.getComputedStyle(c),L=parseInt(N.borderTopWidth,10),M=parseInt(N.paddingTop,10),F=parseInt(N.borderBottomWidth,10),j=parseInt(N.paddingBottom,10),B=L+M+I+j+F,q=Math.min(y.offsetHeight*5,B),V=window.getComputedStyle(m),H=parseInt(V.paddingTop,10),J=parseInt(V.paddingBottom,10),fe=k.top+k.height/2-Tn,Ce=T-fe,ve=y.offsetHeight/2,ae=y.offsetTop+ve,we=L+M+ae,G=B-we;if(we<=fe){const oe=R.length>0&&y===R[R.length-1].ref.current;s.style.bottom="0px";const z=c.clientHeight-m.offsetTop-m.offsetHeight,Ae=Math.max(Ce,ve+(oe?J:0)+z+F),ge=we+Ae;s.style.height=ge+"px"}else{const oe=R.length>0&&y===R[0].ref.current;s.style.top="0px";const Ae=Math.max(fe,L+m.offsetTop+(oe?H:0)+ve)+G;s.style.height=Ae+"px",m.scrollTop=we-fe+m.offsetTop}s.style.margin=`${Tn}px 0`,s.style.minHeight=q+"px",s.style.maxHeight=T+"px",n==null||n(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,c,m,y,b,a.dir,n]);or(()=>x(),[x]);const[w,_]=S.useState();or(()=>{c&&_(window.getComputedStyle(c).zIndex)},[c]);const E=S.useCallback(k=>{k&&v.current===!0&&(x(),g==null||g(),v.current=!1)},[x,g]);return h.jsx(Rq,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:E,children:h.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:h.jsx(We.div,{...i,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});RR.displayName=Nq;var $q="SelectPopperPosition",zb=S.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Tn,...a}=e,o=Hv(r);return h.jsx(I$,{...o,...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)"}})});zb.displayName=$q;var[Rq,W1]=pc(os,{}),Vb="SelectViewport",IR=S.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...i}=e,a=ho(Vb,r),o=W1(Vb,r),s=mt(t,a.onViewportChange),l=S.useRef(0);return h.jsxs(h.Fragment,{children:[h.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}),h.jsx(Vv.Slot,{scope:r,children:h.jsx(We.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:Ne(i.onScroll,c=>{const u=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&d){const p=Math.abs(l.current-u.scrollTop);if(p>0){const v=window.innerHeight-Tn*2,m=parseFloat(d.style.minHeight),y=parseFloat(d.style.height),b=Math.max(m,y);if(b<v){const g=b+p,x=Math.min(v,g),w=g-x;d.style.height=x+"px",d.style.bottom==="0px"&&(u.scrollTop=w>0?w:0,d.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});IR.displayName=Vb;var MR="SelectGroup",[Iq,Mq]=pc(MR),Dq=S.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=w1();return h.jsx(Iq,{scope:r,id:i,children:h.jsx(We.div,{role:"group","aria-labelledby":i,...n,ref:t})})});Dq.displayName=MR;var DR="SelectLabel",LR=S.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Mq(DR,r);return h.jsx(We.div,{id:i.id,...n,ref:t})});LR.displayName=DR;var Qp="SelectItem",[Lq,BR]=pc(Qp),FR=S.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:a,...o}=e,s=fo(Qp,r),l=ho(Qp,r),c=s.value===n,[u,d]=S.useState(a??""),[f,p]=S.useState(!1),v=mt(t,g=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,g,n,i)}),m=w1(),y=S.useRef("touch"),b=()=>{i||(s.onValueChange(n),s.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 h.jsx(Lq,{scope:r,value:n,disabled:i,textId:m,isSelected:c,onItemTextChange:S.useCallback(g=>{d(x=>x||((g==null?void 0:g.textContent)??"").trim())},[]),children:h.jsx(Vv.ItemSlot,{scope:r,value:n,disabled:i,textValue:u,children:h.jsx(We.div,{role:"option","aria-labelledby":m,"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,...o,ref:v,onFocus:Ne(o.onFocus,()=>p(!0)),onBlur:Ne(o.onBlur,()=>p(!1)),onClick:Ne(o.onClick,()=>{y.current!=="mouse"&&b()}),onPointerUp:Ne(o.onPointerUp,()=>{y.current==="mouse"&&b()}),onPointerDown:Ne(o.onPointerDown,g=>{y.current=g.pointerType}),onPointerMove:Ne(o.onPointerMove,g=>{var x;y.current=g.pointerType,i?(x=l.onItemLeave)==null||x.call(l):y.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ne(o.onPointerLeave,g=>{var x;g.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:Ne(o.onKeyDown,g=>{var w;((w=l.searchRef)==null?void 0:w.current)!==""&&g.key===" "||(Eq.includes(g.key)&&b(),g.key===" "&&g.preventDefault())})})})})});FR.displayName=Qp;var mu="SelectItemText",UR=S.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...a}=e,o=fo(mu,r),s=ho(mu,r),l=BR(mu,r),c=Tq(mu,r),[u,d]=S.useState(null),f=mt(t,b=>d(b),l.onItemTextChange,b=>{var g;return(g=s.itemTextRefCallback)==null?void 0:g.call(s,b,l.value,l.disabled)}),p=u==null?void 0:u.textContent,v=S.useMemo(()=>h.jsx("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:y}=c;return or(()=>(m(v),()=>y(v)),[m,y,v]),h.jsxs(h.Fragment,{children:[h.jsx(We.span,{id:l.textId,...a,ref:f}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?hs.createPortal(a.children,o.valueNode):null]})});UR.displayName=mu;var zR="SelectItemIndicator",VR=S.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return BR(zR,r).isSelected?h.jsx(We.span,{"aria-hidden":!0,...n,ref:t}):null});VR.displayName=zR;var Wb="SelectScrollUpButton",WR=S.forwardRef((e,t)=>{const r=ho(Wb,e.__scopeSelect),n=W1(Wb,e.__scopeSelect),[i,a]=S.useState(!1),o=mt(t,n.onScrollButtonChange);return or(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=l.scrollTop>0;a(c)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?h.jsx(qR,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});WR.displayName=Wb;var Hb="SelectScrollDownButton",HR=S.forwardRef((e,t)=>{const r=ho(Hb,e.__scopeSelect),n=W1(Hb,e.__scopeSelect),[i,a]=S.useState(!1),o=mt(t,n.onScrollButtonChange);return or(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;a(u)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?h.jsx(qR,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});HR.displayName=Hb;var qR=S.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,a=ho("SelectScrollButton",r),o=S.useRef(null),s=Wv(r),l=S.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return S.useEffect(()=>()=>l(),[l]),or(()=>{var u;const c=s().find(d=>d.ref.current===document.activeElement);(u=c==null?void 0:c.ref.current)==null||u.scrollIntoView({block:"nearest"})},[s]),h.jsx(We.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:Ne(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:Ne(i.onPointerMove,()=>{var c;(c=a.onItemLeave)==null||c.call(a),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:Ne(i.onPointerLeave,()=>{l()})})}),Bq="SelectSeparator",KR=S.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return h.jsx(We.div,{"aria-hidden":!0,...n,ref:t})});KR.displayName=Bq;var qb="SelectArrow",Fq=S.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Hv(r),a=fo(qb,r),o=ho(qb,r);return a.open&&o.position==="popper"?h.jsx(M$,{...i,...n,ref:t}):null});Fq.displayName=qb;function GR(e){return e===""||e===void 0}var YR=S.forwardRef((e,t)=>{const{value:r,...n}=e,i=S.useRef(null),a=mt(t,i),o=rR(r);return S.useEffect(()=>{const s=i.current,l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==r&&u){const d=new Event("change",{bubbles:!0});u.call(s,r),s.dispatchEvent(d)}},[o,r]),h.jsx(gf,{asChild:!0,children:h.jsx("select",{...n,ref:a,defaultValue:r})})});YR.displayName="BubbleSelect";function XR(e){const t=Jr(e),r=S.useRef(""),n=S.useRef(0),i=S.useCallback(o=>{const s=r.current+o;t(s),function l(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),a=S.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return S.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,a]}function ZR(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 o=Uq(e,Math.max(a,0));i.length===1&&(o=o.filter(c=>c!==r));const l=o.find(c=>c.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function Uq(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var zq=ER,JR=OR,Vq=TR,Wq=jR,Hq=PR,QR=CR,qq=IR,eI=LR,tI=FR,Kq=UR,Gq=VR,rI=WR,nI=HR,iI=KR;const Tr=zq,jr=Vq,hr=S.forwardRef(({className:e,children:t,...r},n)=>h.jsxs(JR,{ref:n,className:st("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
285ing-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,h.jsx(Wq,{asChild:!0,children:h.jsx(e$,{className:"h-4 w-4 opacity-50"})})]}));hr.displayName=JR.displayName;const aI=S.forwardRef(({className:e,...t},r)=>h.jsx(rI,{ref:r,className:st("flex cursor-default items-center justify-center py-1",e),...t,children:h.jsx(VB,{className:"h-4 w-4"})}));aI.displayName=rI.displayName;const oI=S.forwardRef(({className:e,...t},r)=>h.jsx(nI,{ref:r,className:st("flex cursor-default items-center justify-center py-1",e),...t,children:h.jsx(e$,{className:"h-4 w-4"})}));oI.displayName=nI.displayName;const pr=S.forwardRef(({className:e,children:t,position:r="popper",...n},i)=>h.jsx(Hq,{children:h.jsxs(QR,{ref:i,className:st("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:[h.jsx(aI,{}),h.jsx(qq,{className:st("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),h.jsx(oI,{})]})}));pr.displayName=QR.displayName;const Yq=S.forwardRef(({className:e,...t},r)=>h.jsx(eI,{ref:r,className:st("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Yq.displayName=eI.displayName;const Ht=S.forwardRef(({className:e,children:t,...r},n)=>h.jsxs(tI,{ref:n,className:st("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[h.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:h.jsx(Gq,{children:h.jsx(_v,{className:"h-4 w-4"})})}),h.jsx(Kq,{children:t})]}));Ht.displayName=tI.displayName;const Xq=S.forwardRef(({className:e,...t},r)=>h.jsx(iI,{ref:r,className:st("-mx-1 my-1 h-px bg-muted",e),...t}));Xq.displayName=iI.displayName;const Zq=["Founder","Co-Founder","CEO","Head/VP","Partner","Managing Director","Non-CEO C-Suite","Strategic Advisor","VC (Partner)","VC (Managing Partner)","Other"],Kb=["VC (Partner)","VC (Managing Partner)"],Jq=["$0-$1M","$1-3M","$3-5M","$5-10M","$10-25M","$25M+"],Qq=["Bootstrapped","< $500k","$500k - $1M","$1M - $10M","$10M - $50M","$50M+","Not Applicable"],eK=["< $10M","$10M - $50M","$50M - $250M","$250M - $1B","$1B+"],tK=["< $250K","$250K - $1M","$1M - $5M","$5M - $25M","$25M+"],rK=["San Francisco","New York","Los Angeles","Miami","Austin","Boston"],nK=["gmail.com","yahoo.com","hotmail.com","outlook.com","aol.com","protonmail.com","proton.me","icloud.com","mail.com","zoho.com","yandex.com","gmx.com","live.com","msn.com"],iK=lr.object({first_name:lr.string().trim().min(1,"First name is required").max(100),last_name:lr.string().trim().min(1,"Last name is required").max(100),email:lr.string().trim().email("Please enter a valid email").max(255).refine(e=>{var r;const t=(r=e.split("@")[1])==null?void 0:r.toLowerCase();return t&&!nK.includes(t)},"Please use your corporate email address"),company_url:lr.string().trim().max(500).optional().or(lr.literal("")),job_title:lr.string().min(1,"Please select your title"),annual_revenue:lr.string().optional(),total_raised:lr.string().optional(),aum:lr.string().optional(),check_size:lr.string().optional(),city:lr.string().min(1,"Please select your city"),interested_in_sponsoring:lr.string().min(1,"Please select an option"),ambassador_interest:lr.string().min(1,"Please select an option"),accept_terms:lr.literal(!0,{errorMap:()=>({message:"You must accept the Terms & Conditions"})})}).refine(e=>Kb.includes(e.job_title)?!!e.aum&&!!e.check_size:!!e.annual_revenue&&!!e.total_raised,{message:"Please fill in all required fields",path:["annual_revenue"]}),rn="text-xs uppercase tracking-[0.12em] text-muted-foreground font-sans font-medium",nn="bg-card border-border font-sans h-11 rounded-sm",aK=()=>{const{toast:e}=vv(),[t,r]=S.useState("form"),[n,i]=S.useState(!1);S.useEffect(()=>
285{document.title="Apply to Join | Ed Giansante";const c="Apply to join the invite-only network â VIP dinners, suites at games, offsites & retreats for senior operators and investors.";let u=document.querySelector('meta[name="description"]');u||(u=document.createElement("meta"),u.setAttribute("name","description"),document.head.appendChild(u)),u.setAttribute("content",c);let d=document.querySelector('link[rel="canonical"]');d||(d=document.createElement("link"),d.setAttribute("rel","canonical"),document.head.appendChild(d)),d.setAttribute("href",`${window.location.origin}/join`)},[]);const a=nV({resolver:sV(iK),defaultValues:{first_name:"",last_name:"",email:"",company_url:"",job_title:"",annual_revenue:"",total_raised:"",aum:"",check_size:"",city:"",interested_in_sponsoring:"",ambassador_interest:"",accept_terms:!1}}),o=a.watch("job_title"),s=Kb.includes(o),l=async c=>{i(!0);const u=Kb.includes(c.job_title),d=!u&&c.annual_revenue==="$0-$1M"&&(c.total_raised==="Bootstrapped"||c.total_raised==="< $500k"||c.total_raised==="$500k - $1M"),f=d?"declined":"qualified";try{const p={first_name:c.first_name,last_name:c.last_name,email:c.email,company_url:c.company_url||null,job_title:c.job_title,annual_revenue:u?"N/A (VC)":c.annual_revenue,total_raised:u?"N/A (VC)":c.total_raised,aum:u?c.aum:null,check_size:u?c.check_size:null,interested_in_sponsoring:c.interested_in_sponsoring,city:c.city,status:f};let{error:v}=await Vk.from("applications").insert({...p,ambassador_interest:c.ambassador_interest});if(v&&(v.code==="PGRST204"||/ambassador_interest/i.test(v.message??""))&&(v=(await Vk.from("applications").insert(p)).error),v)throw v;r(d?"declined":"qualified"),window.scrollTo({top:0,behavior:"smooth"})}catch(p){console.error("Join submission failed:",p),e({title:"Something went wrong",description:"Please try submitting again in a moment.",variant:"destructive"})}finally{i(!1)}};return h.jsxs("div",{className:"community-theme min-h-screen flex flex-col bg-background text-foreground",children:[h.jsxs(co,{children:[h.jsx("title",{children:"Apply to Join â Ed Giansante's Invite-Only Network"}),h.jsx("meta",{name:"description",content:"Invite-only network for senior operators and investors. Apply for VIP dinners, suites at games, and offsites with Ed Giansante."}),h.jsx("link",{rel:"canonical",href:"https://ed.community/join"}),h.jsx("meta",{property:"og:title",content:"Apply to Join â Ed Giansante's Invite-Only Network"}),h.jsx("meta",{property:"og:description",content:"An invite-only network for senior operators and investors â Series A to public-company."}),h.jsx("meta",{property:"og:url",content:"https://ed.community/join"}),h.jsx("meta",{name:"twitter:title",content:"Apply to Join â Ed Giansante's Invite-Only Network"}),h.jsx("meta",{name:"twitter:description",content:"An invite-only network for senior operators and investors."}),h.jsx("meta",{name:"twitter:url",content:"https://ed.community/join"})]}),h.jsx(uo,{variant:"pill"}),h.jsxs("div",{className:"flex-1 flex flex-col",children:[h.jsxs("main",{className:"flex-1 max-w-2xl w-full mx-auto px-6 py-16 sm:py-24",children:[t==="form"&&h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"mb-14 text-center",children:[h.jsx("p",{className:"eyebrow mb-5",children:"Invite-only · Application"}),h.jsxs("h1",{className:"font-display text-5xl md:text-6xl font-medium mb-6 text-foreground leading-[1]",children:["Apply to ",h.jsx("span",{className:"italic-accent",children:"join"}),"."]}),h.jsx("div",{className:"hairline w-32 mx-auto mb-7"}),h.jsx("p",{className:"font-sans text-muted-foreground text-lg max-w-xl mx-auto mb-12 leading-relaxed",children:"An invite-only network for senior operators and investors â Series A to public-company."}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6 mb-12 text-left",children:[{title:"VIP Dinners",desc:"Intimate chef's-table evenings with industry leaders."},{title:"Suites at Games",desc:"Executive boxes at marquee NBA & sporting nights."},{title:"Offsites & Retreats",desc:"Private salons and founder getaways in iconic places."}].map(c=>h.jsxs("div",{className:"border-t border-accent/30 pt-5",children:[h.jsx("h2",{className:"font-display text-xl text-foreground mb-2 leading-tight",children:c.title}),h.jsx("p",{className:"font-sans text-sm text-muted-foreground leading-relaxed",children:c.desc})]},c.title))}),h.jsx("p",{className:"font-sans text-muted-foreground text-sm italic",children:"Tell us about yourself and we'll be in touch."})]}),h.jsxs("div",{className:"relative",children:[h.jsx("span",{"aria-hidden":!0,
285className:"absolute -top-1 -left-1 h-3 w-3 border-l border-t border-accent/60"}),h.jsx("span",{"aria-hidden":!0,className:"absolute -top-1 -right-1 h-3 w-3 border-r border-t border-accent/60"}),h.jsx("span",{"aria-hidden":!0,className:"absolute -bottom-1 -left-1 h-3 w-3 border-l border-b border-accent/60"}),h.jsx("span",{"aria-hidden":!0,className:"absolute -bottom-1 -right-1 h-3 w-3 border-r border-b border-accent/60"}),h.jsx("div",{className:"border border-border bg-card/40 p-6 sm:p-10",children:h.jsx(k7,{...a,children:h.jsxs("form",{onSubmit:a.handleSubmit(l),className:"space-y-6",children:[h.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[h.jsx(Lr,{control:a.control,name:"first_name",render:({field:c})=>h.jsxs(_r,{children:[h.jsx(Sr,{className:rn,children:"First Name"}),h.jsx(Er,{children:h.jsx(qt,{placeholder:"Jane",className:nn,...c})}),h.jsx(kr,{})]})}),h.jsx(Lr,{control:a.control,name:"last_name",render:({field:c})=>h.jsxs(_r,{children:[h.jsx(Sr,{className:rn,children:"Last Name"}),h.jsx(Er,{children:h.jsx(qt,{placeholder:"Smith",className:nn,...c})}),h.jsx(kr,{})]})})]}),h.jsx(Lr,{control:a.control,name:"email",render:({field:c})=>h.jsxs(_r,{children:[h.jsx(Sr,{className:rn,children:"Email"}),h.jsx(Er,{children:h.jsx(qt,{type:"email",placeholder:"[email protected]",className:nn,...c})}),h.jsx(kr,{})]})}),h.jsx(Lr,{control:a.control,name:"company_url",render:({field:c})=>h.jsxs(_r,{children:[h.jsx(Sr,{className:rn,children:"Company URL"}),h.jsx(Er,{children:h.jsx(qt,{placeholder:"https://company.com",className:nn,...c})}),h.jsx(kr,{})]})}),h.jsx(Lr,{control:a.control,name:"job_title",render:({field:c})=>h.jsxs(_r,{children:[h.jsx(Sr,{className:rn,children:"Job Title"}),h.jsxs(Tr,{onValueChange:c.onChange,defaultValue:c.value,children:[h.jsx(Er,{children:h.jsx(hr,{className:nn,children:h.jsx(jr,{placeholder:"Select your title"})})}),h.jsx(pr,{children:Zq.map(u=>h.jsx(Ht,{value:u,children:u},u))})]}),h.jsx(kr,{})]})}),!s&&o&&h.jsxs(h.Fragment,{children:[h.jsx(Lr,{control:a.control,name:"annual_revenue",render:({field:c})=>h.jsxs(_r,{children:[h.jsx(Sr,{className:rn,children:"Company's Annual Revenue"}),h.jsxs(Tr,{onValueChange:c.onChange,value:c.value,children:[h.jsx(Er,{children:h.jsx(hr,{className:nn,children:h.jsx(jr,{placeholder:"Select revenue range"})})}),h.jsx(pr,{children:Jq.map(u=>h.jsx(Ht,{value:u,children:u},u))})]}),h.jsx(kr,{})]})}),h.jsx(Lr,{control:a.control,name:"total_raised",render:({field:c})=>h.jsxs(_r,{children:[h.jsx(Sr,{className:rn,children:"Total Raised"}),h.jsxs(Tr,{onValueChange:c.onChange,value:c.value,children:[h.jsx(Er,{children:h.jsx(hr,{className:nn,children:h.jsx(jr,{placeholder:"Select amount raised"})})}),h.jsx(pr,{children:Qq.map(u=>h.jsx(Ht,{value:u,children:u},u))})]}),h.jsx(kr,{})]})})]}),s&&h.jsxs(h.Fragment,{children:[h.jsx(Lr,{control:a.control,name:"aum",render:({field:c})=>h.jsxs(_r,{children:[h.jsx(Sr,{className:rn,children:"Assets Under Management (AUM)"}),h.jsxs(Tr,{onValueChange:c.onChange,value:c.value,children:[h.jsx(Er,{children:h.jsx(hr,{className:nn,children:h.jsx(jr,{placeholder:"Select AUM range"})})}),h.jsx(pr,{children:eK.map(u=>h.jsx(Ht,{value:u,children:u},u))})]}),h.jsx(kr,{})]})}),h.jsx(Lr,{control:a.control,name:"check_size",render:({field:c})=>h.jsxs(_r,{children:[h.jsx(Sr,{className:rn,children:"Typical Check Size"}),h.jsxs(Tr,{onValueChange:c.onChange,value:c.value,children:[h.jsx(Er,{children:h.jsx(hr,{className:nn,children:h.jsx(jr,{placeholder:"Select check size"})})}),h.jsx(pr,{children:tK.map(u=>h.jsx(Ht,{value:u,children:u},u))})]}),h.jsx(kr,{})]})})]}),h.jsx(Lr,{control:a.control,name:"city",render:({field:c})=>h.jsxs(_r,{children:[h.jsx(Sr,{className:rn,children:"City"}),h.jsxs(Tr,{onValueChange:c.onChange,defaultValue:c.value,children:[h.jsx(Er,{children:h.jsx(hr,{className:nn,children:h.jsx(jr,{placeholder:"Select your city"})})}),h.jsx(pr,{children:rK.map(u=>h.jsx(Ht,{value:u,children:u},u))})]}),h.jsx(kr,{})]})}),h.jsx(Lr,{control:a.control,name:"interested_in_sponsoring",render:({field:c})=>h.jsxs(_r,{children:[h.jsx(Sr,{className:rn,children:"Interested in Co-Sponsoring VIP Dinners?"}),h.jsxs(Tr,{onValueChange:c.onChange,defaultValue:c.value,children:[h.jsx(Er,{children:h.jsx(hr,{className:nn,children:h.jsx(jr,{placeholder:"Select an option"})})}),h.jsxs(pr,{children:[h.jsx(Ht,{value:"Yes",children:"Yes"}),h.jsx(Ht,{value:"No",children:"No"})]})]}),h.jsx(kr,{})]})}),h.jsx(Lr,{control:a.control,name:"ambassador_interest",render:({field:c})=>h.jsxs(_r,{children:[h.jsxs(Sr,{className:rn,children:["Are you interested in becoming a"," ",h.jsx("a",{href:"/ambassadors",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 hover:text-foreground transition-colors",children:"community ambassador"}),"?"]}),h.jsxs(Tr,{onValueChange:c.onChange,defaultValue:c.value,children:[h.jsx(Er,{children:h.jsx(hr,{className:nn,children:h.jsx(jr,{placeholder:"Select an option"})})}),h.jsxs(pr,{children:[h.jsx(Ht,{value:"Yes - tell me more",children:"Yes â tell me more"}),h.jsx(Ht,{value:"No, thanks",children:"No, thanks"})]})]}),h.jsx(kr,{})]})}),h.jsx(Lr,{control:a.control,name:"accept_terms",render:({field:c})=>h.jsxs(_r,{className:"flex flex-row items-start space-x-3 space-y-0 pt-2",children:[h.jsx(Er,{children:h.jsx(lR,{checked:c.value,onCheckedChange:c.onChange})}),h.jsxs("div",{className:"space-y-1 leading-none",children:[h.jsx(Sr,{className:"text-sm text-muted-foreground font-sans font-normal cursor-pointer",children:"I agree to the Terms & Conditions and consent to be contacted about community events."}),h.jsx(kr,{})]})]})}),h.jsx(z1,{type:"submit",disabled:n,className:"pill-primary w-full h-12 font-sans text-xs uppercase tracking-[0.15em] hover:bg-primary",children:n?"Submitting...":"Submit Application â"})]})})})]})]}),t==="qualified"&&h.jsxs("div",{className:"text-center py-20",children:[h.jsx("p",{className:"eyebrow mb-5",children:"Application received"}),h.jsxs("h2",{className:"font-display text-4xl md:text-5xl font-medium text-foreground mb-6 leading-[1]",children:["You're a ",h.jsx("span",{className:"italic-accent",children:"great fit"}),"."]}),h.jsx("div",{className:"hairline w-32 mx-auto mb-7"}),h.jsx("p",{className:"font-sans text-muted-foreground text-lg max-w-md mx-auto mb-10 leading-relaxed",children:"Thank y
285ou for applying. We'll review your application and reach out personally if there's a fit for upcoming events in your city."}),h.jsxs("a",{href:"/",className:"group inline-flex items-center gap-2 font-sans text-sm uppercase tracking-[0.16em] text-accent hover:text-accent/80 transition-colors",children:["Back to home",h.jsx("span",{className:"transition-transform group-hover:translate-x-1",children:"â"})]})]}),t==="declined"&&h.jsxs("div",{className:"text-center py-20",children:[h.jsx("p",{className:"eyebrow mb-5",children:"Thanks for applying"}),h.jsxs("h2",{className:"font-display text-4xl md:text-5xl font-medium text-foreground mb-6 leading-[1]",children:["Stay ",h.jsx("span",{className:"italic-accent",children:"in the loop"}),"."]}),h.jsx("div",{className:"hairline w-32 mx-auto mb-7"}),h.jsx("p",{className:"font-sans text-muted-foreground text-lg max-w-md mx-auto mb-10 leading-relaxed",children:"Right now the community is focused on later-stage operators and investors. Stay connected on WhatsApp for future events and opportunities."}),h.jsxs("a",{href:"https://whatsapp.ed.community",target:"_blank",rel:"noopener noreferrer",className:"group inline-flex items-center gap-2 font-sans text-sm uppercase tracking-[0.16em] text-accent hover:text-accent/80 transition-colors mb-8",children:["Join WhatsApp community",h.jsx("span",{className:"transition-transform group-hover:translate-x-1",children:"â"})]}),h.jsx("br",{}),h.jsx("a",{href:"/",className:"inline-flex items-center gap-2 font-sans text-xs uppercase tracking-[0.16em] text-muted-foreground hover:text-foreground transition-colors mt-6",children:"Back to home â"})]})]}),h.jsx("footer",{className:"border-t border-border/50 py-8 mt-16",children:h.jsx("div",{className:"max-w-2xl mx-auto px-6 text-center",children:h.jsxs("p",{className:"font-sans text-xs text-muted-foreground tracking-[0.1em] uppercase",children:["© ",new Date().getFullYear()," Ed Giansante. All rights reserved."]})})})]})]})};var oK=Array.isArray,Dr=oK,sK=typeof If=="object"&&If&&If.Object===Object&&If,sI=sK,lK=sI,cK=typeof self=="object"&&self&&self.Object===Object&&self,uK=lK||cK||Function("return this")(),Oi=uK,dK=Oi,fK=dK.Symbol,Sf=fK,tO=Sf,lI=Object.prototype,hK=lI.hasOwnProperty,pK=lI.toString,Yc=tO?tO.toStringTag:void 0;function mK(e){var t=hK.call(e,Yc),r=e[Yc];try{e[Yc]=void 0;var n=!0}catch{}var i=pK.call(e);return n&&(t?e[Yc]=r:delete e[Yc]),i}var vK=mK,gK=Object.prototype,yK=gK.toString;function bK(e){return yK.call(e)}var xK=bK,rO=Sf,wK=vK,_K=xK,SK="[object Null]",EK="[object Undefined]",nO=rO?rO.toStringTag:void 0;function kK(e){return e==null?e===void 0?EK:SK:nO&&nO in Object(e)?wK(e):_K(e)}var la=kK;function OK(e){return e!=null&&typeof e=="object"}var ca=OK,AK=la,TK=ca,jK="[object Symbol]";function PK(e){return typeof e=="symbol"||TK(e)&&AK(e)==jK}var mc=PK,CK=Dr,NK=mc,$K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,RK=/^\w*$/;function IK(e,t){if(CK(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||NK(e)?!0:RK.test(e)||!$K.test(e)||t!=null&&e in Object(t)}var H1=IK;function MK(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var po=MK;const vc=Ue(po);var DK=la,LK=po,BK="[object AsyncFunction]",FK="[object Function]",UK="[object GeneratorFunction]",zK="[object Proxy]";function VK(e){if(!LK(e))return!1;var t=DK(e);return t==FK||t==UK||t==BK||t==zK}var q1=VK;const Pe=Ue(q1);var WK=Oi,HK=WK["__core-js_shared__"],qK=HK,Dy=qK,iO=function(){var e=/[^.]+$/.exec(Dy&&Dy.keys&&Dy.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function KK(e){return!!iO&&iO in e}var GK=KK,YK=Function.prototype,XK=YK.toString;function ZK(e){if(e!=null){try{return XK.call(e)}catch{}try{return e+""}catch{}}return""}var cI=ZK,JK=q1,QK=GK,eG=po,tG=cI,rG=/[\\^$.*+?()[\]{}|]/g,nG=/^\[object .+?Constructor\]$/,iG=Function.prototype,aG=Object.prototype,oG=iG.toString,sG=aG.hasOwnProperty,lG=RegExp("^"+oG.call(sG).replace(rG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cG(e){if(!eG(e)||QK(e))return!1;var t=JK(e)?lG:nG;return t.test(tG(e))}var uG=cG;function dG(e,t){return e==null?void 0:e[t]}var fG=dG,hG=uG,pG=fG;function mG(e,t){var r=pG(e,t);return hG(r)?r:void 0}var ms=mG,vG=ms,gG=vG(Object,"create"),qv=gG,aO=qv;function yG(){this.__data__=aO?aO(null):{},this.size=0}var bG=yG;function xG(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wG=xG,_G=qv,SG="__lodash_hash_undefined__",EG=Object.prototype,kG=EG.hasOwnProperty;function OG(e){var t=this.__data__;if(_G){var r=t[e];return r===SG?void 0:r}return kG.call(t,e)?t[e]:void 0}var AG=OG,TG=qv,jG=Object.prototype,PG=jG.hasOwnProperty;function CG(e){var t=this.__data__;return TG?t[e]!==void 0:PG.call(t,e)}var NG=CG,$G=qv,RG="__lodash_hash_undefined__";function IG(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$G&&t===void 0?RG:t,this}var MG=IG,DG=bG,LG=wG,BG=AG,FG=NG,UG=MG;function gc(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])}}gc.prototype.clear=DG;gc.prototype.delete=LG;gc.prototype.get=BG;gc.prototype.has=FG;gc.prototype.set=UG;var zG=gc;function VG(){this.__data__=[],this.size=0}var WG=VG;function HG(e,t){return e===t||e!==e&&t!==t}var K1=HG,qG=K1;function KG(e,t){for(var r=e.length;r--;)if(qG(e[r][0],t))return r;return-1}var Kv=KG,GG=Kv,YG=Array.prototype,XG=YG.splice;function ZG(e){var t=this.__data__,r=GG(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():XG.call(t,r,1),--this.size,!0}var JG=ZG,QG=Kv;function eY(e){var t=this.__data__,r=QG(t,e);return r<0?void 0:t[r][1]}var tY=eY,rY=Kv;function nY(e){return rY(this.__data__,e)>-1}var iY=nY,aY=Kv;function oY(e,t){var r=this.__data__,n=aY(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var sY=oY,lY=WG,cY=JG,uY=tY,dY=iY,fY=sY;function yc(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])}}yc.prototype.clear=lY;yc.prototype.delete=cY;yc.prototype.get=uY;yc.prototype.has=dY;yc.prototype.set=fY;var Gv=yc,hY=ms,pY=Oi,mY=hY(pY,"Map"),G1=mY,oO=zG,vY=Gv,gY=G1;function yY(){this.size=0,this.__data__={hash:new oO,map:new(gY||vY),string:new oO}}var bY=yY;function xY(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var wY=xY,_Y=wY;function SY(e,t){var r=e.__data__;return _Y(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Yv=SY,EY=Yv;function kY(e){var t=EY(this,e).delete(e);return this.size-=t?1:0,t}var OY=kY,AY=Yv;function TY(e){return AY(this,e).get(e)}var jY=TY,PY=Yv;function CY(e){return PY(this,e).has(e)}var NY=CY,$Y=Yv;function RY(e,t){var r=$Y(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var IY=RY,MY=bY,DY=OY,LY=jY,BY=NY,FY=IY;function bc(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])}}bc.prototype.clear=MY;bc.prototype.delete=DY;bc.prototype.get=LY;bc.prototype.has=BY;bc.prototype.set=FY;var Y1=bc,uI=Y1,UY="Expected a function";function X1(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(UY);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 o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(X1.Cache||uI),r}X1.Cache=uI;var dI=X1;const zY=Ue(dI);var VY=dI,WY=500;function HY(e){var t=VY(e,function(n){return r.size===WY&&r.clear(),n}
vendor: 6,443 bytes, lines 285-293
285),r=t.cache;return t}var qY=HY,KY=qY,GY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,YY=/\\(\\)?/g,XY=KY(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(GY,function(r,n,i,a){t.push(i?a.replace(YY,"$1"):n||r)}),t}),ZY=XY;function JY(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 Z1=JY,sO=Sf,QY=Z1,eX=Dr,tX=mc,rX=1/0,lO=sO?sO.prototype:void 0,cO=lO?lO.toString:void 0;function fI(e){if(typeof e=="string")return e;if(eX(e))return QY(e,fI)+"";if(tX(e))return cO?cO.call(e):"";var t=e+"";return t=="0"&&1/e==-rX?"-0":t}var nX=fI,iX=nX;function aX(e){return e==null?"":iX(e)}var hI=aX,oX=Dr,sX=H1,lX=ZY,cX=hI;function uX(e,t){return oX(e)?e:sX(e,t)?[e]:lX(cX(e))}var pI=uX,dX=mc,fX=1/0;function hX(e){if(typeof e=="string"||dX(e))return e;var t=e+"";return t=="0"&&1/e==-fX?"-0":t}var Xv=hX,pX=pI,mX=Xv;function vX(e,t){t=pX(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[mX(t[r++])];return r&&r==n?e:void 0}var J1=vX,gX=J1;function yX(e,t,r){var n=e==null?void 0:gX(e,t);return n===void 0?r:n}var mI=yX;const yn=Ue(mI);function bX(e){return e==null}var xX=bX;const Ie=Ue(xX);var wX=la,_X=Dr,SX=ca,EX="[object String]";function kX(e){return typeof e=="string"||!_X(e)&&SX(e)&&wX(e)==EX}var OX=kX;const Ef=Ue(OX);var vI={exports:{}},Ke={};/** 286 * @license React 287 * react-is.production.min.js 288 * 289 * Copyright (c) Facebook, Inc. and its affiliates. 290 * 291 * This source code is licensed under the MIT license found in the 292 * LICENSE file in the root directory of this source tree. 293 */var Q1=Symbol.for("react.element"),e_=Symbol.for("react.portal"),Zv=Symbol.for("react.fragment"),Jv=Symbol.for("react.strict_mode"),Qv=Symbol.for("react.profiler"),eg=Symbol.for("react.provider"),tg=Symbol.for("react.context"),AX=Symbol.for("react.server_context"),rg=Symbol.for("react.forward_ref"),ng=Symbol.for("react.suspense"),ig=Symbol.for("react.suspense_list"),ag=Symbol.for("react.memo"),og=Symbol.for("react.lazy"),TX=Symbol.for("react.offscreen"),gI;gI=Symbol.for("react.module.reference");function _n(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Q1:switch(e=e.type,e){case Zv:case Qv:case Jv:case ng:case ig:return e;default:switch(e=e&&e.$$typeof,e){case AX:case tg:case rg:case og:case ag:case eg:return e;default:return t}}case e_:return t}}}Ke.ContextConsumer=tg;Ke.ContextProvider=eg;Ke.Element=Q1;Ke.ForwardRef=rg;Ke.Fragment=Zv;Ke.Lazy=og;Ke.Memo=ag;Ke.Portal=e_;Ke.Profiler=Qv;Ke.StrictMode=Jv;Ke.Suspense=ng;Ke.SuspenseList=ig;Ke.isAsyncMode=function(){return!1};Ke.isConcurrentMode=function(){return!1};Ke.isContextConsumer=function(e){return _n(e)===tg};Ke.isContextProvider=function(e){return _n(e)===eg};Ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Q1};Ke.isForwardRef=function(e){return _n(e)===rg};Ke.isFragment=function(e){return _n(e)===Zv};Ke.isLazy=function(e){return _n(e)===og};Ke.isMemo=function(e){return _n(e)===ag};Ke.isPortal=function(e){return _n(e)===e_};Ke.isProfiler=function(e){return _n(e)===Qv};Ke.isStrictMode=function(e){return _n(e)===Jv};Ke.isSuspense=function(e){return _n(e)===ng};Ke.isSuspenseList=function(e){return _n(e)===ig};Ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zv||e===Qv||e===Jv||e===ng||e===ig||e===TX||typeof e=="object"&&e!==null&&(e.$$typeof===og||e.$$typeof===ag||e.$$typeof===eg||e.$$typeof===tg||e.$$typeof===rg||e.$$typeof===gI||e.getModuleId!==void 0)};Ke.typeOf=_n;vI.exports=Ke;var yI=vI.exports,jX=la,PX=ca,CX="[object Number]";function NX(e){return typeof e=="number"||PX(e)&&jX(e)==CX}var bI=NX;const $X=Ue(bI);var RX=bI;function IX(e){return RX(e)&&e!=+e}var MX=IX;const xc=Ue(MX);var zn=function(t){return t===0?0:t>0?1:-1},Io=function(t){return Ef(t)&&t.indexOf("%")===t.length-1},Q=function(t){return $X(t)&&!xc(t)},Mt=function(t){return Q(t)||Ef(t)},DX=0,kf=function(t){var r=++DX;return"".concat(t||"").concat(r)},ss=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(!Q(t)&&!Ef(t))return n;var a;if(Io(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return xc(a)&&(a=n),i&&a>r&&(a=r),a},Ta=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},LX=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},pn=function(t,r){return Q(t)&&Q(r)?function(n){return t+n*(r-t)}:function(){return r}};function em(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):yn(n,t))===r})}function pl(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 Gb(e){"@babel/helpers - typeof";return Gb=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},Gb(e)}var BX=["viewBox","children"],FX=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
293dering","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"],uO=["points","pathLength"],Ly={svg:BX,polygon:uO,polyline:uO},t_=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDrag
293Capture","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"],tm=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(S.isValidElement(t)&&(n=t.props),!vc(n))return null;var i={};return Object.keys(n).forEach(function(a){t_.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},UX=function(t,r,n){return function(i){return t(r,n,i),null}},rm=function(t,r,n){if(!vc(t)||Gb(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];t_.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=UX(o,r,n))}),i},zX=["children"],VX=["children"];function dO(e,t){if(e==null)return{};var r=WX(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 WX(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 Yb(e){"@babel/helpers - typeof";return Yb=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},Yb(e)}var fO={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},qi=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},hO=null,By=null,r_=function e(t){if(t===hO&&Array.isArray(By))return By;var r=[];return S.Children.forEach(t,function(n){Ie(n)||(yI.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),By=r,hO=t,r};function Kn(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return qi(i)}):n=[qi(t)],r_(e).forEach(function(i){var a=yn(i,"type.displayName")||yn(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Vr(e,t){var r=Kn(e,t);return r&&r[0]}var pO=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!Q(n)||n<=0||!Q(i)||i<=0)},HX=["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"],qX=function(t){return t&&t.type&&Ef(t.type)&&HX.indexOf(t.type)>=0},KX=function(t){return t&&Yb(t)==="object"&&"clipDot"in t},GX=function(t,r,n,i){var a,o=(a=Ly==null?void 0:Ly[i])!==null&&a!==void 0?a:[];return!Pe(t)&&(i&&o.includes(r)||FX.includes(r))||n&&t_.includes(r)},$e=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(S.isValidElement(t)&&(i=t.props),!vc(i))return null;var a={};
293return Object.keys(i).forEach(function(o){var s;GX((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Xb=function e(t,r){if(t===r)return!0;var n=S.Children.count(t);if(n!==S.Children.count(r))return!1;if(n===0)return!0;if(n===1)return mO(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!mO(a,o))return!1}return!0},mO=function(t,r){if(Ie(t)&&Ie(r))return!0;if(!Ie(t)&&!Ie(r)){var n=t.props||{},i=n.children,a=dO(n,zX),o=r.props||{},s=o.children,l=dO(o,VX);return i&&s?pl(a,l)&&Xb(i,s):!i&&!s?pl(a,l):!1}return!1},vO=function(t,r){var n=[],i={};return r_(t).forEach(function(a,o){if(qX(a))n.push(a);else if(a){var s=qi(a.type),l=r[s]||{},c=l.handler,u=l.once;if(c&&(!u||!i[s])){var d=c(a,s,o);n.push(d),i[s]=!0}}}),n},YX=function(t){var r=t&&t.type;return r&&fO[r]?fO[r]:null},XX=function(t,r){return r_(r).indexOf(t)},ZX=["children","width","height","viewBox","className","style","title","desc"];function Zb(){return Zb=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},Zb.apply(this,arguments)}function JX(e,t){if(e==null)return{};var r=QX(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 QX(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 Jb(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,c=JX(e,ZX),u=i||{width:r,height:n,x:0,y:0},d=Le("recharts-surface",a);return A.createElement("svg",Zb({},$e(c,!0,"svg"),{className:d,width:r,height:n,style:o,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),A.createElement("title",null,s),A.createElement("desc",null,l),t)}var eZ=["children","className"];function Qb(){return Qb=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},Qb.apply(this,arguments)}function tZ(e,t){if(e==null)return{};var r=rZ(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 rZ(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 ft=A.forwardRef(function(e,t){var r=e.children,n=e.className,i=tZ(e,eZ),a=Le("recharts-layer",n);return A.createElement("g",Qb({className:a},$e(i,!0),{ref:t}),r)}),Ki=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 nZ(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 iZ=nZ,aZ=iZ;function oZ(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:aZ(e,t,r)}var sZ=oZ,lZ="\\ud800-\\udfff",cZ="\\u0300-\\u036f",uZ="\\ufe20-\\ufe2f",dZ="\\u20d0-\\u20ff",fZ=cZ+uZ+dZ,hZ="\\ufe0e\\ufe0f",pZ="\\u200d",mZ=RegExp("["+pZ+lZ+fZ+hZ+"]");function vZ(e){return mZ.test(e)}var xI=vZ;function gZ(e){return e.split("")}var yZ=gZ,wI="\\ud800-\\udfff",bZ="\\u0300-\\u036f",xZ="\\ufe20-\\ufe2f",wZ="\\u20d0-\\u20ff",_Z=bZ+xZ+wZ,SZ="\\ufe0e\\ufe0f",EZ="["+wI+"]",ex="["+_Z+"]",tx="\\ud83c[\\udffb-\\udfff]",kZ="(?:"+ex+"|"+tx+")",_I="[^"+wI+"]",SI="(?:\\ud83c[\\udde6-\\uddff]){2}",EI="[\\ud800-\\udbff][\\udc00-\\udfff]",OZ="\\u200d",kI=kZ+"?",OI="["+SZ+"]?",AZ="(?:"+OZ+"(?:"+[_I,SI,EI].join("|")+")"+OI+kI+")*",TZ=OI+kI+AZ,jZ="(?:"+[_I+ex+"?",ex,SI,EI,EZ].join("|")+")",PZ=RegExp(tx+"(?="+tx+")|"+jZ+TZ,"g");function CZ(e){return e.match(PZ)||[]}var NZ=CZ,$Z=yZ,RZ=xI,IZ=NZ;function MZ(e){return RZ(e)?IZ(e):$Z(e)}var DZ=MZ,LZ=sZ,BZ=xI,FZ=DZ,UZ=hI;function zZ(e){return function(t){t=UZ(t);var r=BZ(t)?FZ(t):void 0,n=r?r[0]:t.charAt(0),i=r?LZ(r,1).join(""):t.slice(1);return n[e]()+i}}var VZ=zZ,WZ=VZ,HZ=WZ("toUpperCase"),qZ=HZ;const sg=Ue(qZ);function Je(e){return function(){return e}}const AI=Math.cos,nm=Math.sin,Jn=Math.sqrt,im=Math.PI,lg=2*im,rx=Math.PI,nx=2*rx,Ao=1e-6,KZ=nx-Ao;function TI(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function GZ(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return TI;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 YZ{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?TI:GZ(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,o){this._append`C${+t},${+r},${+n}
293,${+i},${this._x1=+a},${this._y1=+o}`}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 o=this._x1,s=this._y1,l=n-t,c=i-r,u=o-t,d=s-r,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(f>Ao)if(!(Math.abs(d*l-c*u)>Ao)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,v=i-s,m=l*l+c*c,y=p*p+v*v,b=Math.sqrt(m),g=Math.sqrt(f),x=a*Math.tan((rx-Math.acos((m+f-y)/(2*b*g)))/2),w=x/g,_=x/b;Math.abs(w-1)>Ao&&this._append`L${t+w*u},${r+w*d}`,this._append`A${a},${a},0,0,${+(d*p>u*v)},${this._x1=t+_*l},${this._y1=r+_*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),c=t+s,u=r+l,d=1^o,f=o?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Ao||Math.abs(this._y1-u)>Ao)&&this._append`L${c},${u}`,n&&(f<0&&(f=f%nx+nx),f>KZ?this._append`A${n},${n},0,1,${d},${t-s},${r-l}A${n},${n},0,1,${d},${this._x1=c},${this._y1=u}`:f>Ao&&this._append`A${n},${n},0,${+(f>=rx)},${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 n_(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 YZ(t)}function i_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function jI(e){this._context=e}jI.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 cg(e){return new jI(e)}function PI(e){return e[0]}function CI(e){return e[1]}function NI(e,t){var r=Je(!0),n=null,i=cg,a=null,o=n_(s);e=typeof e=="function"?e:e===void 0?PI:Je(e),t=typeof t=="function"?t:t===void 0?CI:Je(t);function s(l){var c,u=(l=i_(l)).length,d,f=!1,p;for(n==null&&(a=i(p=o())),c=0;c<=u;++c)!(c<u&&r(d=l[c],c,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(d,c,l),+t(d,c,l));if(p)return a=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Je(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Je(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Je(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function gh(e,t,r){var n=null,i=Je(!0),a=null,o=cg,s=null,l=n_(c);e=typeof e=="function"?e:e===void 0?PI:Je(+e),t=typeof t=="function"?t:Je(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?CI:Je(+r);function c(d){var f,p,v,m=(d=i_(d)).length,y,b=!1,g,x=new Array(m),w=new Array(m);for(a==null&&(s=o(g=l())),f=0;f<=m;++f){if(!(f<m&&i(y=d[f],f,d))===b)if(b=!b)p=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),v=f-1;v>=p;--v)s.point(x[v],w[v]);s.lineEnd(),s.areaEnd()}b&&(x[f]=+e(y,f,d),w[f]=+t(y,f,d),s.point(n?+n(y,f,d):x[f],r?+r(y,f,d):w[f]))}if(g)return s=null,g+""||null}function u(){return NI().defined(i).curve(o).context(a)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Je(+d),n=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Je(+d),c):e},c.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Je(+d),c):n},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:Je(+d),r=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Je(+d),c):t},c.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Je(+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:Je(!!d),c):i},c.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),c):o},c.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),c):a},c}class $I{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}}function XZ(e){return new $I(e,!0)}function ZZ(e){return new $I(e,!1)}const a_={draw(e,t){const r=Jn(t/im);e.moveTo(r,0),e.arc(0,0,r,0,lg)}},JZ={draw(e,t){const r=Jn(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()}}
vendor: 7,679 bytes, line 293
293,RI=Jn(1/3),QZ=RI*2,eJ={draw(e,t){const r=Jn(t/QZ),n=r*RI;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},tJ={draw(e,t){const r=Jn(t),n=-r/2;e.rect(n,n,r,r)}},rJ=.8908130915292852,II=nm(im/10)/nm(7*im/10),nJ=nm(lg/10)*II,iJ=-AI(lg/10)*II,aJ={draw(e,t){const r=Jn(t*rJ),n=nJ*r,i=iJ*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=lg*a/5,s=AI(o),l=nm(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},Fy=Jn(3),oJ={draw(e,t){const r=-Jn(t/(Fy*3));e.moveTo(0,r*2),e.lineTo(-Fy*r,-r),e.lineTo(Fy*r,-r),e.closePath()}},an=-.5,on=Jn(3)/2,ix=1/Jn(12),sJ=(ix/2+1)*3,lJ={draw(e,t){const r=Jn(t/sJ),n=r/2,i=r*ix,a=n,o=r*ix+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(an*n-on*i,on*n+an*i),e.lineTo(an*a-on*o,on*a+an*o),e.lineTo(an*s-on*l,on*s+an*l),e.lineTo(an*n+on*i,an*i-on*n),e.lineTo(an*a+on*o,an*o-on*a),e.lineTo(an*s+on*l,an*l-on*s),e.closePath()}};function cJ(e,t){let r=null,n=n_(i);e=typeof e=="function"?e:Je(e||a_),t=typeof t=="function"?t:Je(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:Je(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Je(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function am(){}function om(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 MI(e){this._context=e}MI.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:om(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:om(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function uJ(e){return new MI(e)}function DI(e){this._context=e}DI.prototype={areaStart:am,areaEnd:am,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:om(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dJ(e){return new DI(e)}function LI(e){this._context=e}LI.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:om(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fJ(e){return new LI(e)}function BI(e){this._context=e}BI.prototype={areaStart:am,areaEnd:am,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 hJ(e){return new BI(e)}function gO(e){return e<0?-1:1}function yO(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(gO(a)+gO(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function bO(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Uy(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function sm(e){this._context=e}sm.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:Uy(this,this._t0,bO(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,Uy(this,bO(this,r=yO(this,e,t)),r);break;default:Uy(this,this._t0,r=yO(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function FI(e){this._context=new UI(e)}(FI.prototype=Object.create(sm.prototype)).point=function(e,t){sm.prototype.point.call(this,t,e)};function UI(e){this._context=e}UI.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 pJ(e){return new sm(e)}function mJ(e){return new FI(e)}function zI(e){this._context=e}zI.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=xO(e),i=xO(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(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 xO(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[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 vJ(e){return new zI(e)}function ug(e,t){this._context=e,this._t=t}ug.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: 10,367 bytes, lines 293-296
293default:{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 gJ(e){return new ug(e,.5)}function yJ(e){return new ug(e,0)}function bJ(e){return new ug(e,1)}function Bl(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function ax(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function xJ(e,t){return e[t]}function wJ(e){const t=[];return t.key=e,t}function _J(){var e=Je([]),t=ax,r=Bl,n=xJ;function i(a){var o=Array.from(e.apply(this,arguments),wJ),s,l=o.length,c=-1,u;for(const d of a)for(s=0,++c;s<l;++s)(o[s][c]=[0,+n(d,o[s].key,c,a)]).data=d;for(s=0,u=i_(t(o));s<l;++s)o[u[s]].index=s;return r(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Je(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Je(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?ax:typeof a=="function"?a:Je(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Bl,i):r},i}function SJ(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Bl(e,t)}}function EJ(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Bl(e,t)}}function kJ(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,c=0;s<o;++s){for(var u=e[t[s]],d=u[n][1]||0,f=u[n-1][1]||0,p=(d-f)/2,v=0;v<s;++v){var m=e[t[v]],y=m[n][1]||0,b=m[n-1][1]||0;p+=y-b}l+=d,c+=p*d}i[n-1][1]+=i[n-1][0]=r,l&&(r-=c/l)}i[n-1][1]+=i[n-1][0]=r,Bl(e,t)}}function Ad(e){"@babel/helpers - typeof";return Ad=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},Ad(e)}var OJ=["type","size","sizeType"];function ox(){return ox=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},ox.apply(this,arguments)}function wO(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 _O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wO(Object(r),!0).forEach(function(n){AJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AJ(e,t,r){return t=TJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TJ(e){var t=jJ(e,"string");return Ad(t)=="symbol"?t:t+""}function jJ(e,t){if(Ad(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ad(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PJ(e,t){if(e==null)return{};var r=CJ(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 CJ(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 VI={symbolCircle:a_,symbolCross:JZ,symbolDiamond:eJ,symbolSquare:tJ,symbolStar:aJ,symbolTriangle:oJ,symbolWye:lJ},NJ=Math.PI/180,$J=function(t){var r="symbol".concat(sg(t));return VI[r]||a_},RJ=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*NJ;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}},IJ=function(t,r){VI["symbol".concat(sg(t))]=r},o_=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=PJ(t,OJ),c=_O(_O({},l),{},{type:n,size:a,sizeType:s}),u=function(){var y=$J(n),b=cJ().type(y).size(RJ(a,s,n));return b()},d=c.className,f=c.cx,p=c.cy,v=$e(c,!0);return f===+f&&p===+p&&a===+a?A.createElement("path",ox({},v,{className:Le("recharts-symbols",d),transform:"translate(".concat(f,", ").concat(p,")"),d:u()})):null};o_.registerSymbol=IJ;function Fl(e){"@babel/helpers - typeof";return Fl=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},Fl(e)}function sx(){return sx=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},sx.apply(this,arguments)}function SO(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 MJ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SO(Object(r),!0).forEach(function(n){Td(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LJ(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,HI(n.key),n)}}function BJ(e,t,r){return t&&LJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FJ(e,t,r){return t=lm(t),UJ(e,WI()?Reflect.construct(t,r||[],lm(e).constructor):t.apply(e,r))}function UJ(e,t){if(t&&(Fl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zJ(e)}function zJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WI=function(){return!!e})()}function lm(e){return lm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lm(e)}function VJ(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&&lx(e,t)}function lx(e,t){return lx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lx(e,t)}function Td(e,t,r){return t=HI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HI(e){var t=WJ(e,"string");return Fl(t)=="symbol"?t:t+""}function WJ(e,t){if(Fl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sn=32,s_=function(e){function t(){return DJ(this,t),FJ(this,t,arguments)}return VJ(t,e),BJ(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=sn/2,o=sn/6,s=sn/3,l=n.inactive?i:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:sn,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,` 294 A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,` 295 H`).concat(sn,"M").concat(2*s,",").concat(a,` 296 A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return A.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(sn/8,"h").concat(sn,"v").concat(sn*3/4,"h").concat(-sn,"z"),className:"recharts-legend-icon"});if(A.isValidElement(n.legendIcon)){var c=MJ({},n);return delete c.legendIcon,A.cloneElement(n.legendIcon,c)}return A.createElement(o_,{fill:l,cx:a,cy:a,size:sn,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,c=i.inactiveColor,u={x:0,y:0,width:sn,height:sn},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,v){var m=p.formatter||l,y=Le(Td(Td({"recharts-legend-item":!0},"legend-item-".concat(v),!0),"inactive",p.inactive));if(p.type==="none")return null;var b=Pe(p.value)?null:p.value;Ki(!Pe(p.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=p.inactive?c:p.color;return A.createElement("li",sx({className:y,style:d,key:"legend-item-".concat(v)},rm(n.props,p,v)),A.createElement(Jb,{width:o,height:o,viewBox:u,style:f},n.renderIcon(p)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},m?m(b,p,v):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return A.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(S.PureComponent);Td(s_,"displayName","Legend");Td(s_,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var HJ=Gv;
vendor: 4,645 bytes, line 296
296function qJ(){this.__data__=new HJ,this.size=0}var KJ=qJ;function GJ(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var YJ=GJ;function XJ(e){return this.__data__.get(e)}var ZJ=XJ;function JJ(e){return this.__data__.has(e)}var QJ=JJ,eQ=Gv,tQ=G1,rQ=Y1,nQ=200;function iQ(e,t){var r=this.__data__;if(r instanceof eQ){var n=r.__data__;if(!tQ||n.length<nQ-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new rQ(n)}return r.set(e,t),this.size=r.size,this}var aQ=iQ,oQ=Gv,sQ=KJ,lQ=YJ,cQ=ZJ,uQ=QJ,dQ=aQ;function wc(e){var t=this.__data__=new oQ(e);this.size=t.size}wc.prototype.clear=sQ;wc.prototype.delete=lQ;wc.prototype.get=cQ;wc.prototype.has=uQ;wc.prototype.set=dQ;var qI=wc,fQ="__lodash_hash_undefined__";function hQ(e){return this.__data__.set(e,fQ),this}var pQ=hQ;function mQ(e){return this.__data__.has(e)}var vQ=mQ,gQ=Y1,yQ=pQ,bQ=vQ;function cm(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new gQ;++t<r;)this.add(e[t])}cm.prototype.add=cm.prototype.push=yQ;cm.prototype.has=bQ;var KI=cm;function xQ(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 GI=xQ;function wQ(e,t){return e.has(t)}var YI=wQ,_Q=KI,SQ=GI,EQ=YI,kQ=1,OQ=2;function AQ(e,t,r,n,i,a){var o=r&kQ,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=r&OQ?new _Q:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var v=e[d],m=t[d];if(n)var y=o?n(m,v,d,t,e,a):n(v,m,d,e,t,a);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!SQ(t,function(b,g){if(!EQ(p,g)&&(v===b||i(v,b,r,n,a)))return p.push(g)})){f=!1;break}}else if(!(v===m||i(v,m,r,n,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var XI=AQ,TQ=Oi,jQ=TQ.Uint8Array,PQ=jQ;function CQ(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var NQ=CQ;function $Q(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var l_=$Q,EO=Sf,kO=PQ,RQ=K1,IQ=XI,MQ=NQ,DQ=l_,LQ=1,BQ=2,FQ="[object Boolean]",UQ="[object Date]",zQ="[object Error]",VQ="[object Map]",WQ="[object Number]",HQ="[object RegExp]",qQ="[object Set]",KQ="[object String]",GQ="[object Symbol]",YQ="[object ArrayBuffer]",XQ="[object DataView]",OO=EO?EO.prototype:void 0,zy=OO?OO.valueOf:void 0;function ZQ(e,t,r,n,i,a,o){switch(r){case XQ:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case YQ:return!(e.byteLength!=t.byteLength||!a(new kO(e),new kO(t)));case FQ:case UQ:case WQ:return RQ(+e,+t);case zQ:return e.name==t.name&&e.message==t.message;case HQ:case KQ:return e==t+"";case VQ:var s=MQ;case qQ:var l=n&LQ;if(s||(s=DQ),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=BQ,o.set(e,t);var u=IQ(s(e),s(t),n,i,a,o);return o.delete(e),u;case GQ:if(zy)return zy.call(e)==zy.call(t)}return!1}var JQ=ZQ;function QQ(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var ZI=QQ,eee=ZI,tee=Dr;function ree(e,t,r){var n=t(e);return tee(e)?n:eee(n,r(e))}var nee=ree;function iee(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var aee=iee;function oee(){return[]}var see=oee,lee=aee,cee=see,uee=Object.prototype,dee=uee.propertyIsEnumerable,AO=Object.getOwnPropertySymbols,fee=AO?function(e){return e==null?[]:(e=Object(e),lee(AO(e),function(t){return dee.call(e,t)}))}:cee,hee=fee;function pee(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var mee=pee,vee=la,gee=ca,yee="[object Arguments]";function bee(e){return gee(e)&&vee(e)==yee}var xee=bee,TO=xee,wee=ca,JI=Object.prototype,_ee=JI.hasOwnProperty,See=JI.propertyIsEnumerable,Eee=TO(function(){return arguments}())?TO:function(e){return wee(e)&&_ee.call(e,"callee")&&!See.call(e,"callee")},c_=Eee,um={exports:{}};function kee(){return!1}var Oee=kee;um.exports;(function(e,t){var r=Oi,n=Oee,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||n;e.exports=c})(um,um.exports);var QI=um.exports,Aee=9007199254740991,Tee=/^(?:0|[1-9]\d*)$/;function jee(e,t){var r=typeof e;return t=t??Aee,!!t&&(r=="number"||r!="symbol"&&Tee.test(e))&&e>-1&&e%1==0&&e<t}var u_=jee,Pee=9007199254740991;function Cee(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Pee}var d_=Cee,Nee=la,$ee=d_,Ree=ca,Iee="[object Arguments]",Mee="[object Array]",Dee="[object Boolean]",Lee="[object Date]",Bee="[object Error]",Fee="[object Function]",Uee="[object Map]",zee="[object Number]",Vee="[object Object]",Wee="[object RegExp]",Hee="[object Set]",qee="[object String]",Kee="[object WeakMap]",Gee="[object ArrayBuffer]",Yee="[object DataView]",Xee="[object Float32Array]",Zee="[object Float64Array
296]",Jee="[object Int8Array]",Qee="[object Int16Array]",ete="[object Int32Array]",tte="[object Uint8Array]",rte="[object Uint8ClampedArray]",nte="[object Uint16Array]",ite="[object Uint32Array]",it={};it[Xee]=it[Zee]=it[Jee]=it[Qee]=it[ete]=it[tte]=it[rte]=it[nte]=it[ite]=!0;it[Iee]=it[Mee]=it[Gee]=it[Dee]=it[Yee]=it[Lee]=it[Bee]=it[Fee]=it[Uee]=it[zee]=it[Vee]=it[Wee]=it[Hee]=it[qee]=it[Kee]=!1;function ate(e){return Ree(e)&&$ee(e.length)&&!!it[Nee(e)]}var ote=ate;function ste(e){return function(t){return e(t)}}var eM=ste,dm={exports:{}};dm.exports;(function(e,t){var r=sI,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(dm,dm.exports);var lte=dm.exports,cte=ote,ute=eM,jO=lte,PO=jO&&jO.isTypedArray,dte=PO?ute(PO):cte,tM=dte,fte=mee,hte=c_,pte=Dr,mte=QI,vte=u_,gte=tM,yte=Object.prototype,bte=yte.hasOwnProperty;function xte(e,t){var r=pte(e),n=!r&&hte(e),i=!r&&!n&&mte(e),a=!r&&!n&&!i&>e(e),o=r||n||i||a,s=o?fte(e.length,String):[],l=s.length;for(var c in e)(t||bte.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||vte(c,l)))&&s.push(c);return s}var wte=xte,_te=Object.prototype;function Ste(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||_te;return e===r}var Ete=Ste;function kte(e,t){return function(r){return e(t(r))}}var rM=kte,Ote=rM,Ate=Ote(Object.keys,Object),Tte=Ate,jte=Ete,Pte=Tte,Cte=Object.prototype,Nte=Cte.hasOwnProperty;function $te(e){if(!jte(e))return Pte(e);var t=[];for(var r in Object(e))Nte.call(e,r)&&r!="constructor"&&t.push(r);return t}var Rte=$te,Ite=q1,Mte=d_;function Dte(e){return e!=null&&Mte(e.length)&&!Ite(e)}var Of=Dte,Lte=wte,Bte=Rte,Fte=Of;function Ute(e){return Fte(e)?Lte(e):Bte(e)}var dg=Ute,zte=nee,Vte=hee,Wte=dg;function Hte(e){return zte(e,Wte,Vte)}var qte=Hte,CO=qte,Kte=1,Gte=Object.prototype,Yte=Gte.hasOwnProperty;function Xte(e,t,r,n,i,a){var o=r&Kte,s=CO(e),l=s.length,c=CO(t),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var f=s[d];if(!(o?f in t:Yte.call(t,f)))return!1}var p=a.get(e),v=a.get(t);if(p&&v)return p==t&&v==e;var m=!0;a.set(e,t),a.set(t,e);for(var y=o;++d<l;){f=s[d];var b=e[f],g=t[f];if(n)var x=o?n(g,b,f,t,e,a):n(b,g,f,e,t,a);if(!(x===void 0?b===g||i(b,g,r,n,a):x)){m=!1;break}y||(y=f=="constructor")}if(m&&!y){var w=e.constructor,_=t.constructor;w!=_&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof _=="function"&&_ instanceof _)&&(m=!1)}return a.delete(e),a.delete(t),m}var Zte=Xte,Jte=ms,Qte=Oi,ere=Jte(Qte,"DataView"),tre=ere,rre=ms,nre=Oi,ire=rre(nre,"Promise"),are=ire,ore=ms,sre=Oi,lre=ore(sre,"Set"),nM=lre,cre=ms,ure=Oi,dre=cre(ure,"WeakMap"),fre=dre,cx=tre,ux=G1,dx=are,fx=nM,hx=fre,iM=la,_c=cI,NO="[object Map]",hre="[object Object]",$O="[object Promise]",RO="[object Set]",IO="[object WeakMap]",MO="[object DataView]",pre=_c(cx),mre=_c(ux),vre=_c(dx),gre=_c(fx),yre=_c(hx),To=iM;(cx&&To(new cx(new ArrayBuffer(1)))!=MO||ux&&To(new ux)!=NO||dx&&To(dx.resolve())!=$O||fx&&To(new fx)!=RO||hx&&To(new hx)!=IO)&&(To=function(e){var t=iM(e),r=t==hre?e.constructor:void 0,n=r?_c(r):"";if(n)switch(n){case pre:return MO;case mre:return NO;case vre:return $O;case gre:return RO;case yre:return IO}return t});var bre=To,Vy=qI,xre=XI,wre=JQ,_re=Zte,DO=bre,LO=Dr,BO=QI,Sre=tM,Ere=1,FO="[object Arguments]",UO="[object Array]",yh="[object Object]",kre=Object.prototype,zO=kre.hasOwnProperty;function Ore(e,t,r,n,i,a){var o=LO(e),s=LO(t),l=o?UO:DO(e),c=s?UO:DO(t);l=l==FO?yh:l,c=c==FO?yh:c;var u=l==yh,d=c==yh,f=l==c;if(f&&BO(e)){if(!BO(t))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new Vy),o||Sre(e)?xre(e,t,r,n,i,a):wre(e,t,l,r,n,i,a);if(!(r&Ere)){var p=u&&zO.call(e,"__wrapped__"),v=d&&zO.call(t,"__wrapped__");
vendor: 4,112 bytes, line 296
296if(p||v){var m=p?e.value():e,y=v?t.value():t;return a||(a=new Vy),i(m,y,r,n,a)}}return f?(a||(a=new Vy),_re(e,t,r,n,i,a)):!1}var Are=Ore,Tre=Are,VO=ca;function aM(e,t,r,n,i){return e===t?!0:e==null||t==null||!VO(e)&&!VO(t)?e!==e&&t!==t:Tre(e,t,r,n,aM,i)}var f_=aM,jre=qI,Pre=f_,Cre=1,Nre=2;function $re(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var l=s[0],c=e[l],u=s[1];if(o&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new jre;if(n)var f=n(c,u,l,e,t,d);if(!(f===void 0?Pre(u,c,Cre|Nre,n,d):f))return!1}}return!0}var Rre=$re,Ire=po;function Mre(e){return e===e&&!Ire(e)}var oM=Mre,Dre=oM,Lre=dg;function Bre(e){for(var t=Lre(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Dre(i)]}return t}var Fre=Bre;function Ure(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var sM=Ure,zre=Rre,Vre=Fre,Wre=sM;function Hre(e){var t=Vre(e);return t.length==1&&t[0][2]?Wre(t[0][0],t[0][1]):function(r){return r===e||zre(r,e,t)}}var qre=Hre;function Kre(e,t){return e!=null&&t in Object(e)}var Gre=Kre,Yre=pI,Xre=c_,Zre=Dr,Jre=u_,Qre=d_,ene=Xv;function tne(e,t,r){t=Yre(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=ene(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&Qre(i)&&Jre(o,i)&&(Zre(e)||Xre(e)))}var rne=tne,nne=Gre,ine=rne;function ane(e,t){return e!=null&&ine(e,t,nne)}var one=ane,sne=f_,lne=mI,cne=one,une=H1,dne=oM,fne=sM,hne=Xv,pne=1,mne=2;function vne(e,t){return une(e)&&dne(t)?fne(hne(e),t):function(r){var n=lne(r,e);return n===void 0&&n===t?cne(r,e):sne(t,n,pne|mne)}}var gne=vne;function yne(e){return e}var Sc=yne;function bne(e){return function(t){return t==null?void 0:t[e]}}var xne=bne,wne=J1;function _ne(e){return function(t){return wne(t,e)}}var Sne=_ne,Ene=xne,kne=Sne,One=H1,Ane=Xv;function Tne(e){return One(e)?Ene(Ane(e)):kne(e)}var jne=Tne,Pne=qre,Cne=gne,Nne=Sc,$ne=Dr,Rne=jne;function Ine(e){return typeof e=="function"?e:e==null?Nne:typeof e=="object"?$ne(e)?Cne(e[0],e[1]):Pne(e):Rne(e)}var mo=Ine;function Mne(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 lM=Mne;function Dne(e){return e!==e}var Lne=Dne;function Bne(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var Fne=Bne,Une=lM,zne=Lne,Vne=Fne;function Wne(e,t,r){return t===t?Vne(e,t,r):Une(e,zne,r)}var Hne=Wne,qne=Hne;function Kne(e,t){var r=e==null?0:e.length;return!!r&&qne(e,t,0)>-1}var Gne=Kne;function Yne(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 Xne=Yne;function Zne(){}var Jne=Zne,Wy=nM,Qne=Jne,eie=l_,tie=1/0,rie=Wy&&1/eie(new Wy([,-0]))[1]==tie?function(e){return new Wy(e)}:Qne,nie=rie,iie=KI,aie=Gne,oie=Xne,sie=YI,lie=nie,cie=l_,uie=200;function die(e,t,r){var n=-1,i=aie,a=e.length,o=!0,s=[],l=s;if(r)o=!1,i=oie;else if(a>=uie){var c=t?null:lie(e);if(c)return cie(c);o=!1,i=sie,l=new iie}else l=t?[]:s;e:for(;++n<a;){var u=e[n],d=t?t(u):u;if(u=r||u!==0?u:0,o&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,r)||(l!==s&&l.push(d),s.push(u))}return s}var fie=die,hie=mo,pie=fie;function mie(e,t){return e&&e.length?pie(e,hie(t)):[]}var vie=mie;const WO=Ue(vie);function cM(e,t,r){return t===!0?WO(e,r):Pe(t)?WO(e,t):e}function Ul(e){"@babel/helpers - typeof";return Ul=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},Ul(e)}var gie=["ref"];function HO(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 Ci(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HO(Object(r),!0).forEach(function(n){fg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HO(Object(r)).forEac
vendor: 4,282 bytes, line 296
296h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qO(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,dM(n.key),n)}}function bie(e,t,r){return t&&qO(e.prototype,t),r&&qO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xie(e,t,r){return t=fm(t),wie(e,uM()?Reflect.construct(t,r||[],fm(e).constructor):t.apply(e,r))}function wie(e,t){if(t&&(Ul(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _ie(e)}function _ie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uM=function(){return!!e})()}function fm(e){return fm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fm(e)}function Sie(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&&px(e,t)}function px(e,t){return px=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},px(e,t)}function fg(e,t,r){return t=dM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dM(e){var t=Eie(e,"string");return Ul(t)=="symbol"?t:t+""}function Eie(e,t){if(Ul(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ul(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kie(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 Aie(e){return e.value}function Tie(e,t){if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return A.createElement(e,t);t.ref;var r=kie(t,gie);return A.createElement(s_,r)}var KO=1,ml=function(e){function t(){var r;yie(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=xie(this,t,[].concat(i)),fg(r,"lastBoundingBox",{width:-1,height:-1}),r}return Sie(t,e),bie(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)>KO||Math.abs(i.height-this.lastBoundingBox.height)>KO)&&(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?Ci({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,c=i.chartWidth,u=i.chartHeight,d,f;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();d={left:((c||0)-p.width)/2}}else d=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var v=this.getBBoxSnapsh
296ot();f={top:((u||0)-v.height)/2}}else f=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Ci(Ci({},d),f)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,c=i.payloadUniqBy,u=i.payload,d=Ci(Ci({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return A.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(p){n.wrapperNode=p}},Tie(a,Ci(Ci({},this.props),{},{payload:cM(u,c,Aie)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Ci(Ci({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&Q(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(S.PureComponent);fg(ml,"displayName","Legend");fg(ml,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var GO=Sf,jie=c_,Pie=Dr,YO=GO?GO.isConcatSpreadable:void 0;function Cie(e){return Pie(e)||jie(e)||!!(YO&&e&&e[YO])}var Nie=Cie,$ie=ZI,Rie=Nie;function fM(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=Rie),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?fM(s,t-1,r,n,i):$ie(i,s):n||(i[i.length]=s)}return i}var hM=fM;function Iie(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var Mie=Iie,Die=Mie,Lie=Die(),Bie=Lie,Fie=Bie,Uie=dg;function zie(e,t){return e&&Fie(e,t,Uie)}var pM=zie,Vie=Of;function Wie(e,t){return function(r,n){if(r==null)return r;if(!Vie(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var Hie=Wie,qie=pM,Kie=Hie,Gie=Kie(qie),h_=Gie,Yie=h_,Xie=Of;function Zie(e,t){var r=-1,n=Xie(e)?Array(e.length):[];return Yie(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var mM=Zie;function Jie(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var Qie=Jie,XO=mc;function eae(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=XO(e),o=t!==void 0,s=t===null,l=t===t,c=XO(t);if(!s&&!c&&!a&&e>t||a&&o&&l&&!s&&!c||n&&o&&l||!r&&l||!i)return 1;if(!n&&!a&&!c&&e<t||c&&r&&i&&!n&&!a||s&&r&&i||!o&&i||!l)return-1}return 0}var tae=eae,rae=tae;function nae(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;++n<o;){var l=rae(i[n],a[n]);if(l){if(n>=s)return l;var c=r[n];return l*(c=="desc"?-1:1)}}return e.index-t.index}var iae=nae,Hy=Z1,aae=J1,oae=mo,sae=mM,lae=Qie,cae=eM,uae=iae,dae=Sc,fae=Dr;function hae(e,t,r){t.length?t=Hy(t,function(a){return fae(a)?function(o){return aae(o,a.length===1?a[0]:a)}:a}):t=[dae];var n=-1;t=Hy(t,cae(oae));var i=sae(e,function(a,o,s){var l=Hy(t,function(c){return c(a)});return{criteria:l,index:++n,value:a}});return lae(i,function(a,o){return uae(a,o,r)})}var pae=hae;function mae(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 vae=mae,gae=vae,ZO=Math.max;function yae(e,t,r){return t=ZO(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=ZO(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),gae(e,this,s)}}var bae=yae;function xae(e){return function(){return e}}var wae=xae,_ae=ms,Sae=function(){try{var e=_ae(Object,"defineProperty");return e({},"",{}),e}catch{}}(),vM=Sae,Eae=wae,JO=vM,kae=Sc,Oae=JO?function(e,t){return JO(e,"toString",{configurable:!0,enumerable:!1,value:Eae(t),writable:!0})}:kae,Aae=Oae,Tae=800,jae=16,Pae=Date.now;function Cae(e){var t=0,r=0;return function(){var n=Pae(),i=jae-(n-r);if(r=n,i>0){if(++t>=Tae)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Nae=Cae,$ae=Aae,Rae=Nae,Iae=Rae($ae),Mae=Iae,Dae=Sc,Lae=bae,Bae=Mae;function Fae(e,t){return Bae(Lae(e,t,Dae),e+"")}var Uae=Fae,zae=K1,Vae=Of,Wae=u_,Hae=po;function qae(e,t,r){if(!Hae(r))return!1;var n=typeof t;return(n=="number"?Vae(r)&&Wae(t,r.length):n=="string"&&t in r)?zae(r[t],e):!1}var hg=qae,Kae=hM,Gae=pae,Yae=Uae,QO=hg,Xae=Yae(function(e,t){if(e==null)return[];var r=t.length;return r>1&&QO(e,t[0],t[1])?t=[]:r>2&&QO(t[0],t[1],t[2])&&(t=[t[0]]),Gae(e,Kae(t,1),[])}),Zae=Xae;
vendor: 11,295 bytes, lines 296-297
296const p_=Ue(Zae);function jd(e){"@babel/helpers - typeof";return jd=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},jd(e)}function mx(){return mx=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},mx.apply(this,arguments)}function Jae(e,t){return roe(e)||toe(e,t)||eoe(e,t)||Qae()}function Qae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 297In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eoe(e,t){if(e){if(typeof e=="string")return eA(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 eA(e,t)}}function eA(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 toe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function roe(e){if(Array.isArray(e))return e}function tA(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 qy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tA(Object(r),!0).forEach(function(n){noe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function noe(e,t,r){return t=ioe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ioe(e){var t=aoe(e,"string");return jd(t)=="symbol"?t:t+""}function aoe(e,t){if(jd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(jd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ooe(e){return Array.isArray(e)&&Mt(e[0])&&Mt(e[1])?e.join(" ~ "):e}var soe=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,c=l===void 0?{}:l,u=t.payload,d=t.formatter,f=t.itemSorter,p=t.wrapperClassName,v=t.labelClassName,m=t.label,y=t.labelFormatter,b=t.accessibilityLayer,g=b===void 0?!1:b,x=function(){if(u&&u.length){var T={padding:0,margin:0},I=(f?p_(u,f):u).map(function(N,L){if(N.type==="none")return null;var M=qy({display:"block",paddingTop:4,paddingBottom:4,color:N.color||"#000"},s),F=N.formatter||d||ooe,j=N.value,B=N.name,q=j,V=B;if(F&&q!=null&&V!=null){var H=F(j,B,N,L,u);if(Array.isArray(H)){var J=Jae(H,2);q=J[0],V=J[1]}else q=H}return A.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(L),style:M},Mt(V)?A.createElement("span",{className:"recharts-tooltip-item-name"},V):null,Mt(V)?A.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,A.createElement("span",{className:"recharts-tooltip-item-value"},q),A.createElement("span",{className:"recharts-tooltip-item-unit"},N.unit||""))});return A.createElement("ul",{className:"recharts-tooltip-item-list",style:T},I)}return null},w=qy({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),_=qy({margin:0},c),E=!Ie(m),k=E?m:"",O=Le("recharts-default-tooltip",p),P=Le("recharts-tooltip-label",v);E&&y&&u!==void 0&&u!==null&&(k=y(m,u));var C=g?{role:"status","aria-live":"assertive"}:{};return A.createElement("div",mx({className:O,style:w},C),A.createElement("p",{className:P,style:_},A.isValidElement(k)?k:"".concat(k)),x())};function Pd(e){"@babel/helpers - typeof";return Pd=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},Pd(e)}function bh(e,t,r){return t=loe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function loe(e){var t=coe(e,"string");return Pd(t)=="symbol"?t:t+""}function coe(e,t){if(Pd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xc="recharts-tooltip-wrapper",uoe={visibility:"hidden"};function doe(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Le(Xc,bh(bh(bh(bh({},"".concat(Xc,"-right"),Q(r)&&t&&Q(t.x)&&r>=t.x),"".concat(Xc,"-left"),Q(r)&&t&&Q(t.x)&&r<t.x),"".concat(Xc,"-bottom"),Q(n)&&t&&Q(t.y)&&n>=t.y),"".concat(Xc,"-top"),Q(n)&&t&&Q(t.y)&&n<t.y))}function rA(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(a&&Q(a[n]))return a[n];var u=r[n]-s-i,d=r[n]+i;if(t[n])return o[n]?u:d;if(o[n]){var f=u,p=l[n];return f<p?Math.max(d,l[n]):Math.max(u,l[n])}var v=d+s,m=l[n]+c;return v>m?Math.max(u,l[n]):Math.max(d,l[n])}function foe(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 hoe(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,u,d;return o.height>0&&o.width>0&&r?(u=rA({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),d=rA({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),c=foe({translateX:u,translateY:d,useTranslate3d:s})):c=uoe,{cssProperties:c,cssClasses:doe({translateX:u,translateY:d,coordinate:r})}}function zl(e){"@babel/helpers - typeof";return zl=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},zl(e)}function nA(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 iA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(r),!0).forEach(function(n){gx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function poe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function moe(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,yM(n.key),n)}}function voe(e,t,r){return t&&moe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function goe(e,t,r){return t=hm(t),yoe(e,gM()?Reflect.construct(t,r||[],hm(e).constructor):t.apply(e,r))}function yoe(e,t){if(t&&(zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return boe(e)}function boe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gM=function(){return!!e})()}function hm(e){return hm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hm(e)}function xoe(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&&vx(e,t)}function vx(e,t){return vx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vx(e,t)}function gx(e,t,r){return t=yM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yM(e){var t=woe(e,"string");return zl(t)=="symbol"?t:t+""}function woe(e,t){if(zl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(zl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aA=1,_oe=function(e){function t(){var r;poe(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=goe(this,t,[].concat(i)),gx(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),gx(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,c,u;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(c=(u=r.props.coordinate)===null||u===void 0?void 0:u.y)!==null&&c!==void 0?c:0}})}}),r}return xoe(t,e),voe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>aA||Math.abs(n.height-this.state.lastBoundingBox.height)>aA)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,c=i.children,u=i.coordinate,d=i.hasPayload,f=i.isAnimationActive,p=i.offset,v=i.position,m=i.reverseDirection,y=i.useTranslate3d,b=i.viewBox,g=i.wrapperStyle,x=hoe({allowEscapeViewBox:o,coordinate:u,offsetTopLeft:p,position:v,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:b}
297),w=x.cssClasses,_=x.cssProperties,E=iA(iA({transition:f&&a?"transform ".concat(s,"ms ").concat(l):void 0},_),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&d?"visible":"hidden",position:"absolute",top:0,left:0},g);return A.createElement("div",{tabIndex:-1,className:w,style:E,ref:function(O){n.wrapperNode=O}},c)}}])}(S.PureComponent),Soe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Gi={isSsr:Soe(),get:function(t){return Gi[t]},set:function(t,r){if(typeof t=="string")Gi[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){Gi[i]=t[i]})}}};function Vl(e){"@babel/helpers - typeof";return Vl=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},Vl(e)}function oA(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 sA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oA(Object(r),!0).forEach(function(n){m_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Eoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function koe(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,xM(n.key),n)}}function Ooe(e,t,r){return t&&koe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aoe(e,t,r){return t=pm(t),Toe(e,bM()?Reflect.construct(t,r||[],pm(e).constructor):t.apply(e,r))}function Toe(e,t){if(t&&(Vl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return joe(e)}function joe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bM=function(){return!!e})()}function pm(e){return pm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pm(e)}function Poe(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&&yx(e,t)}
vendor: 15,434 bytes, lines 297-303
297function yx(e,t){return yx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yx(e,t)}function m_(e,t,r){return t=xM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xM(e){var t=Coe(e,"string");return Vl(t)=="symbol"?t:t+""}function Coe(e,t){if(Vl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Vl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Noe(e){return e.dataKey}function $oe(e,t){return A.isValidElement(e)?A.cloneElement(e,t):typeof e=="function"?A.createElement(e,t):A.createElement(soe,t)}var Rn=function(e){function t(){return Eoe(this,t),Aoe(this,t,arguments)}return Poe(t,e),Ooe(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,c=i.content,u=i.coordinate,d=i.filterNull,f=i.isAnimationActive,p=i.offset,v=i.payload,m=i.payloadUniqBy,y=i.position,b=i.reverseDirection,g=i.useTranslate3d,x=i.viewBox,w=i.wrapperStyle,_=v??[];d&&_.length&&(_=cM(v.filter(function(k){return k.value!=null&&(k.hide!==!0||n.props.includeHidden)}),m,Noe));var E=_.length>0;return A.createElement(_oe,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:f,active:a,coordinate:u,hasPayload:E,offset:p,position:y,reverseDirection:b,useTranslate3d:g,viewBox:x,wrapperStyle:w},$oe(c,sA(sA({},this.props),{},{payload:_})))}}])}(S.PureComponent);m_(Rn,"displayName","Tooltip");m_(Rn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Gi.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 Roe=Oi,Ioe=function(){return Roe.Date.now()},Moe=Ioe,Doe=/\s/;function Loe(e){for(var t=e.length;t--&&Doe.test(e.charAt(t)););return t}var Boe=Loe,Foe=Boe,Uoe=/^\s+/;function zoe(e){return e&&e.slice(0,Foe(e)+1).replace(Uoe,"")}var Voe=zoe,Woe=Voe,lA=po,Hoe=mc,cA=NaN,qoe=/^[-+]0x[0-9a-f]+$/i,Koe=/^0b[01]+$/i,Goe=/^0o[0-7]+$/i,Yoe=parseInt;function Xoe(e){if(typeof e=="number")return e;if(Hoe(e))return cA;if(lA(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=lA(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Woe(e);var r=Koe.test(e);return r||Goe.test(e)?Yoe(e.slice(2),r?2:8):qoe.test(e)?cA:+e}var wM=Xoe,Zoe=po,Ky=Moe,uA=wM,Joe="Expected a function",Qoe=Math.max,ese=Math.min;function tse(e,t,r){var n,i,a,o,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Joe);t=uA(t)||0,Zoe(r)&&(u=!!r.leading,d="maxWait"in r,a=d?Qoe(uA(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function p(E){var k=n,O=i;return n=i=void 0,c=E,o=e.apply(O,k),o}function v(E){return c=E,s=setTimeout(b,t),u?p(E):o}function m(E){var k=E-l,O=E-c,P=t-k;return d?ese(P,a-O):P}function y(E){var k=E-l,O=E-c;return l===void 0||k>=t||k<0||d&&O>=a}function b(){var E=Ky();if(y(E))return g(E);s=setTimeout(b,m(E))}function g(E){return s=void 0,f&&n?p(E):(n=i=void 0,o)}function x(){s!==void 0&&clearTimeout(s),c=0,n=l=i=s=void 0}function w(){return s===void 0?o:g(Ky())}function _(){var E=Ky(),k=y(E);if(n=arguments,i=this,l=E,k){if(s===void 0)return v(l);if(d)return clearTimeout(s),s=setTimeout(b,t),p(l)}return s===void 0&&(s=setTimeout(b,t)),o}return _.cancel=x,_.flush=w,_}var rse=tse,nse=rse,ise=po,ase="Expected a function";function ose(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(ase);return ise(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),nse(e,t,{leading:n,maxWait:t,trailing:i})}var sse=ose;const _M=Ue(sse);function Cd(e){"@babel/helpers - typeof";return Cd=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},Cd(e)}function dA(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 xh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dA(Object(r),!0).forEach(function(n){lse(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lse(e,t,r){return t=cse(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cse(e){var t=use(e,"string");return Cd(t)=="symbol"?t:t+""}function use(e,t){if(Cd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Cd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dse(e,t){return mse(e)||pse(e,t)||hse(e,t)||fse()}function fse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 298In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hse(e,t){if(e){if(typeof e=="string")return fA(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 fA(e,t)}}function fA(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 pse(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function mse(e){if(Array.isArray(e))return e}var SM=S.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,c=e.minWidth,u=c===void 0?0:c,d=e.minHeight,f=e.maxHeight,p=e.children,v=e.debounce,m=v===void 0?0:v,y=e.id,b=e.className,g=e.onResize,x=e.style,w=x===void 0?{}:x,_=S.useRef(null),E=S.useRef();E.current=g,S.useImperativeHandle(t,function(){return Object.defineProperty(_.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),_.current},configurable:!0})});var k=S.useState({containerWidth:i.width,containerHeight:i.height}),O=dse(k,2),P=O[0],C=O[1],R=S.useCallback(function(I,N){C(function(L){var M=Math.round(I),F=Math.round(N);return L.containerWidth===M&&L.containerHeight===F?L:{containerWidth:M,containerHeight:F}})},[]);S.useEffect(function(){var I=function(B){var q,V=B[0].contentRect,H=V.width,J=V.height;R(H,J),(q=E.current)===null||q===void 0||q.call(E,H,J)};m>0&&(I=_M(I,m,{trailing:!0,leading:!1}));var N=new ResizeObserver(I),L=_.current.getBoundingClientRect(),M=L.width,F=L.height;return R(M,F),N.observe(_.current),function(){N.disconnect()}},[R,m]);var T=S.useMemo(function(){var I=P.containerWidth,N=P.containerHeight;if(I<0||N<0)return null;Ki(Io(o)||Io(l),`The width(%s) and height(%s) are both fixed numbers, 299 maybe you don't need to use a ResponsiveContainer.`,o,l),Ki(!r||r>0,"The aspect(%s) must be greater than zero.",r);var L=Io(o)?I:o,M=Io(l)?N:l;r&&r>0&&(L?M=L/r:M&&(L=M*r),f&&M>f&&(M=f)),Ki(L>0||M>0,`The width(%s) and height(%s) of chart should be greater than 0, 300 please check the style of container, or the props width(%s) and height(%s), 301 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 302 height and width.`,L,M,o,l,u,d,r);var F=!Array.isArray(p)&&qi(p.type).endsWith("Chart");return A.Children.map(p,function(j){return yI.isElement(j)?S.cloneElement(j,xh({width:L,height:M},F?{style:xh({height:"100%",width:"100%",maxHeight:M,maxWidth:L},j.props.style)}:{})):j})},[r,p,l,f,d,u,P,o]);return A.createElement("div",{id:y?"".concat(y):void 0,className:Le("recharts-responsive-container",b),style:xh(xh({},w),{},{width:o,height:l,minWidth:u,minHeight:d,maxHeight:f}),ref:_},T)}),v_=function(t){return null};v_.displayName="Cell";function Nd(e){"@babel/helpers - typeof";return Nd=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},Nd(e)}function hA(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 bx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hA(Object(r),!0).forEach(function(n){vse(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vse(e,t,r){return t=gse(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gse(e){var t=yse(e,"string");return Nd(t)=="symbol"?t:t+""}function yse(e,t){if(Nd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cs={widthCache:{},cacheCount:0},bse=2e3,xse={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},pA="recharts_measurement_span";function wse(e){var t=bx({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Nu=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Gi.isSsr)return{width:0,height:0};var n=wse(r),i=JSON.stringify({text:t,copyStyle:n});if(Cs.widthCache[i])return Cs.widthCache[i];try{var a=document.getElementById(pA);a||(a=document.createElement("span"),a.setAttribute("id",pA),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=bx(bx({},xse),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Cs.widthCache[i]=l,++Cs.cacheCount>bse&&(Cs.cacheCount=0,Cs.widthCache={}),l}catch{return{width:0,height:0}}},_se=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function $d(e){"@babel/helpers - typeof";return $d=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},$d(e)}function mm(e,t){return Ose(e)||kse(e,t)||Ese(e,t)||Sse()}function Sse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 303In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ese(e,t){if(e){if(typeof e=="string")return mA(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 mA(e,t)}}function mA(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,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Ose(e){if(Array.isArray(e))return e}function Ase(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vA(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,jse(n.key),n)}}function Tse(e,t,r){return t&&vA(e.prototype,t),r&&vA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function jse(e){var t=Pse(e,"string");return $d(t)=="symbol"?t:t+""}function Pse(e,t){if($d(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($d(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gA=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yA=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Cse=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Nse=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,EM={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},$se=Object.keys(EM),Js="NaN";function Rse(e,t){return e*EM[t]}var wh=function(){function e(t,r){Ase(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!Cse.test(r)&&(this.num=NaN,this.unit=""),$se.includes(r)&&(this.num=Rse(t,r),this.unit="px")}return Tse(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=Nse.exec(r))!==null&&n!==void 0?n:[],a=mm(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])}();function kM(e){if(e.includes(Js))return Js;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=gA.exec(t))!==null&&r!==void 0?r:[],i=mm(n,4),a=i[1],o=i[2],s=i[3],l=wh.parse(a??""),c=wh.parse(s??""),u=o==="*"?l.multiply(c):l.divide(c);if(u.isNaN())return Js;t=t.replace(gA,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,f=(d=yA.exec(t))!==null&&d!==void 0?d:[],p=mm(f,4),v=p[1],m=p[2],y=p[3],b=wh.parse(v??""),g=wh.parse(y??""),x=m==="+"?b.add(g):b.subtract(g);if(x.isNaN())return Js;t=t.replace(yA,x.toString())}return t}var bA=/\(([^()]*)\)/;function Ise(e){for(var t=e;t.includes("(");){var r=bA.exec(t),n=mm(r,2),i=n[1];t=t.replace(bA,kM(i))}return t}function Mse(e){var t=e.replace(/\s+/g,"");return t=Ise(t),t=kM(t),t}function Dse(e){try{return Mse(e)}catch{return Js}}function Gy(e){var t=Dse(e.slice(5,-1));return t===Js?"":t}var Lse=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Bse=["dx","dy","angle","className","breakAll"];function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
303for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xx.apply(this,arguments)}function xA(e,t){if(e==null)return{};var r=Fse(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 Fse(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 wA(e,t){return Wse(e)||Vse(e,t)||zse(e,t)||Use()}function Use(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 304In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zse(e,t){if(e){if(typeof e=="string")return _A(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 _A(e,t)}}function _A(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 Vse(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Wse(e){if(Array.isArray(e))return e}var OM=/[ \f\n\r\t\v\u2028\u2029]+/,AM=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Ie(r)||(n?a=r.toString().split(""):a=r.toString().split(OM));var o=a.map(function(l){return{word:l,width:Nu(l,i).width}}),s=n?0:Nu(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},Hse=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,c=t.breakAll,u=Q(o),d=s,f=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return L.reduce(function(M,F){var j=F.word,B=F.width,q=M[M.length-1];if(q&&(i==null||a||q.width+B+n<Number(i)))q.words.push(j),q.width+=B+n;else{var V={words:[j],width:B};M.push(V)}return M},[])},p=f(r),v=function(L){return L.reduce(function(M,F){return M.width>F.width?M:F})};if(!u)return p;for(var m="â¦",y=function(L){var M=d.slice(0,L),F=AM({breakAll:c,style:l,children:M+m}).wordsWithComputedWidth,j=f(F),B=j.length>o||v(j).width>Number(i);return[B,j]},b=0,g=d.length-1,x=0,w;b<=g&&x<=d.length-1;){var _=Math.floor((b+g)/2),E=_-1,k=y(E),O=wA(k,2),P=O[0],C=O[1],R=y(_),T=wA(R,1),I=T[0];if(!P&&!I&&(b=_+1),P&&I&&(g=_-1),!P&&I){w=C;break}x++}return w||p},SA=function(t){var r=Ie(t)?[]:t.toString().split(OM);return[{words:r}]},qse=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Gi.isSsr){var l,c,u=AM({breakAll:o,children:i,style:a});if(u){var d=u.wordsWithComputedWidth,f=u.spaceWidth;l=d,c=f}else return SA(i);return Hse({breakAll:o,children:i,maxLines:s,style:a},l,c,r,n)}return SA(i)},EA="#808080",vm=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,c=l===void 0?"0.71em":l,u=t.scaleToFit,d=u===void 0?!1:u,f=t.textAnchor,p=f===void 0?"start":f,v=t.verticalAnchor,m=v===void 0?"end":v,y=t.fill,b=y===void 0?EA:y,g=xA(t,Lse),x=S.useMemo(function(){return qse({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]),w=g.dx,_=g.dy,E=g.angle,k=g.className,O=g.breakAll,P=xA(g,Bse);if(!Mt(n)||!Mt(a))return null;var C=n+(Q(w)?w:0),R=a+(Q(_)?_:0),T;switch(m){case"start":T=Gy("calc(".concat(c,")"));break;case"middle":T=Gy("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:T=Gy("calc(".concat(x.length-1," * -").concat(s,")"));break}var I=[];if(d){var N=x[0].width,L=g.width;I.push("scale(".concat((Q(L)?L/N:1)/N,")"))}return E&&I.push("rotate(".concat(E,", ").concat(C,", ").concat(R,")")),I.length&&(P.transform=I.join(" ")),A.createElement("text",xx({},$e(P,!0),{x:C,y:R,className:Le("recharts-text",k),textAnchor:p,fill:b.includes("url")?EA:b}),x.map(function(M,F){var j=M.words.join(O?"":" ");return A.createElement("tspan",{x:C,dy:F===0?T:s,key:"".concat(j,"-").concat(F)},j)}))};function Ga(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Kse(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function g_(e){let t,r,n;e.length!==2?(t=Ga,r=(s,l)=>Ga(e(s),l),n=(s,l)=>e(s)-l):(t=e===Ga||e===Kse?e:Gse,r=e,n=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&n(s[d-1],l)>-n(s[d],l)?d-1:d}return{left:i,center:o,right:a}}function Gse(){return 0}function TM(e){return e===null?NaN:+e}function*Yse(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Xse=g_(Ga),Af=Xse.right;g_(TM).center;class kA extends Map{constructor(t,r=Qse){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(OA(this,t))}has(t){return super.has(OA(this,t))}set(t,r){return super.set(Zse(this,t),r)}delete(t){return super.delete(Jse(this,t))}}function OA({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Zse({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Jse({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Qse(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ele(e=Ga){if(e===Ga)return jM;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 jM(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const tle=Math.sqrt(50),rle=Math.sqrt(10),nle=Math.sqrt(2);function gm(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=tle?10:a>=rle?5:a>=nle?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&
304++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=r&&r<2?gm(e,t,r*2):[s,l,c]}function wx(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?gm(t,e,r):gm(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(i+c)/-o;else for(let c=0;c<s;++c)l[c]=(i+c)*o;return l}function _x(e,t,r){return t=+t,e=+e,r=+r,gm(e,t,r)[2]}function Sx(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?_x(t,e,r):_x(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function AA(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function TA(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function PM(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?jM:ele(i);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,u=Math.log(l),d=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),p=Math.max(r,Math.floor(t-c*d/l+f)),v=Math.min(n,Math.floor(t+(l-c)*d/l+f));PM(e,t,p,v,i)}const a=e[t];let o=r,s=n;for(Zc(e,r,t),i(e[n],a)>0&&Zc(e,r,n);o<s;){for(Zc(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Zc(e,r,s):(++s,Zc(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Zc(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function ile(e,t,r){if(e=Float64Array.from(Yse(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return TA(e);if(t>=1)return AA(e);var n,i=(n-1)*t,a=Math.floor(i),o=AA(PM(e,a).subarray(0,a+1)),s=TA(e.subarray(a+1));return o+(s-o)*(i-a)}}function ale(e,t,r=TM){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),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function ole(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 Sn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ua(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 Ex=Symbol("implicit");function y_(){var e=new kA,t=[],r=[],n=Ex;function i(a){let o=e.get(a);if(o===void 0){if(n!==Ex)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new kA;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return y_(t,r).unknown(n)},Sn.apply(i,arguments),i}function Rd(){var e=y_().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,p=i<n,v=p?i:n,m=p?n:i;a=(m-v)/Math.max(1,f-l+c*2),s&&(a=Math.floor(a)),v+=(m-v-a*(f-l))*u,o=a*(1-l),s&&(v=Math.round(v),o=Math.round(o));var y=ole(f).map(function(b){return v+a*b});return r(p?y.reverse():y)}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,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},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 Rd(t(),[n,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},Sn.apply(d(),arguments)}function CM(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return CM(t())},e}function $u(){return CM(Rd.apply(null,arguments).paddingInner(1))}function b_(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function NM(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Tf(){}var Id=.7,ym=1/Id,vl="\\s*([+-]?\\d+)\\s*",Md="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",yi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sle=/^#([0-9a-f]{3,8})$/,lle=new RegExp(`^rgb\\(${vl},${vl},${vl}\\)$`),cle=new RegExp(`^rgb\\(${yi},${yi},${yi}\\)$`),ule=new RegExp(`^rgba\\(${vl},${vl},${vl},${Md}\\)$`),dle=new RegExp(`^rgba\\(${yi},${yi},${yi},${Md}\\)$`),fle=new RegExp(`^hsl\\(${Md},${yi},${yi}\\)$`),hle=new RegExp(`^hsla\\(${Md},${yi},${yi},${Md}\\)$`),jA={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};
vendor: 15,991 bytes, line 304
304b_(Tf,Dd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:PA,formatHex:PA,formatHex8:ple,formatHsl:mle,formatRgb:CA,toString:CA});function PA(){return this.rgb().formatHex()}function ple(){return this.rgb().formatHex8()}function mle(){return $M(this).formatHsl()}function CA(){return this.rgb().formatRgb()}function Dd(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=sle.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?NA(t):r===3?new Nr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?_h(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?_h(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=lle.exec(e))?new Nr(t[1],t[2],t[3],1):(t=cle.exec(e))?new Nr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ule.exec(e))?_h(t[1],t[2],t[3],t[4]):(t=dle.exec(e))?_h(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=fle.exec(e))?IA(t[1],t[2]/100,t[3]/100,1):(t=hle.exec(e))?IA(t[1],t[2]/100,t[3]/100,t[4]):jA.hasOwnProperty(e)?NA(jA[e]):e==="transparent"?new Nr(NaN,NaN,NaN,0):null}function NA(e){return new Nr(e>>16&255,e>>8&255,e&255,1)}function _h(e,t,r,n){return n<=0&&(e=t=r=NaN),new Nr(e,t,r,n)}function vle(e){return e instanceof Tf||(e=Dd(e)),e?(e=e.rgb(),new Nr(e.r,e.g,e.b,e.opacity)):new Nr}function kx(e,t,r,n){return arguments.length===1?vle(e):new Nr(e,t,r,n??1)}function Nr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}b_(Nr,kx,NM(Tf,{brighter(e){return e=e==null?ym:Math.pow(ym,e),new Nr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Id:Math.pow(Id,e),new Nr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nr(Go(this.r),Go(this.g),Go(this.b),bm(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:$A,formatHex:$A,formatHex8:gle,formatRgb:RA,toString:RA}));function $A(){return`#${Mo(this.r)}${Mo(this.g)}${Mo(this.b)}`}function gle(){return`#${Mo(this.r)}${Mo(this.g)}${Mo(this.b)}${Mo((isNaN(this.opacity)?1:this.opacity)*255)}`}function RA(){const e=bm(this.opacity);return`${e===1?"rgb(":"rgba("}${Go(this.r)}, ${Go(this.g)}, ${Go(this.b)}${e===1?")":`, ${e})`}`}function bm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Go(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Mo(e){return e=Go(e),(e<16?"0":"")+e.toString(16)}function IA(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Bn(e,t,r,n)}function $M(e){if(e instanceof Bn)return new Bn(e.h,e.s,e.l,e.opacity);if(e instanceof Tf||(e=Dd(e)),!e)return new Bn;if(e instanceof Bn)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),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Bn(o,s,l,e.opacity)}function yle(e,t,r,n){return arguments.length===1?$M(e):new Bn(e,t,r,n??1)}function Bn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}b_(Bn,yle,NM(Tf,{brighter(e){return e=e==null?ym:Math.pow(ym,e),new Bn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Id:Math.pow(Id,e),new Bn(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 Nr(Yy(e>=240?e-240:e+120,i,n),Yy(e,i,n),Yy(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Bn(MA(this.h),Sh(this.s),Sh(this.l),bm(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=bm(this.opacity);return`${e===1?"hsl(":"hsla("}${MA(this.h)}, ${Sh(this.s)*100}%, ${Sh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function MA(e){return e=(e||0)%360,e<0?e+360:e}function Sh(e){return Math.max(0,Math.min(1,e||0))}function Yy(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 x_=e=>()=>e;function ble(e,t){return function(r){return e+r*t}}function xle(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 wle(e){return(e=+e)==1?RM:function(t,r){return r-t?xle(t,r,e):x_(isNaN(t)?r:t)}}function RM(e,t){var r=t-e;return r?ble(e,r):x_(isNaN(e)?t:e)}const DA=function e(t){var r=wle(t);function n(i,a){var o=r((i=kx(i)).r,(a=kx(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),c=RM(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return n.gamma=e,n}(1);function _le(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 Sle(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Ele(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Ec(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function kle(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function xm(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Ole(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]=Ec(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Ox=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xy=new RegExp(Ox.source,"g");function Ale(e){return function(){return e}}function Tle(e){return function(t){return e(t)+""}}function jle(e,t){var r=Ox.lastIndex=Xy.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=Ox.exec(e))&&(i=Xy.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:xm(n,i)})),r=Xy.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?Tle(l[0].x):Ale(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function Ec(e,t){var r=typeof t,n;return t==null||r==="boolean"?x_(t):(r==="number"?xm:r==="string"?(n=Dd(t))?(t=n,DA):jle:t instanceof Dd?DA:t instanceof Date?kle:Sle(t)?_le:Array.isArray(t)?Ele:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Ole:xm)(e,t)}function w_(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Ple(e,t){t===void 0&&(t=e,e=Ec);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(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function Cle(e){return function(){return e}}function wm(e){return+e}var LA=[0,1];function vr(e){return e}function Ax(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:Cle(isNaN(t)?NaN:.5)}function Nle(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function $le(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Ax(i,n),a=r(o,a)):(n=Ax(n,i),a=r(a,o)),function(s){return a(n(s))}}function Rle(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Ax(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=Af(e,s,1,n)-1;return a[l](i[l](s))}}function jf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function pg(){var e=LA,t=LA,r=Ec,n,i,a,o=vr,s,l,c;function u(){var f=Math.min(e.length,t.length);return o!==vr&&(o=Nle(e[0],e[f-1])),s=f>2?Rle:$le,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?a:(l||(l=s(e.map(n),t,r)))(n(o(f)))}return d.invert=function(f){return o(i((c||(c=s(t,e.map(n),xm)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,wm),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=w_,u()},d.clamp=function(f){return arguments.length?(o=f?!0:vr,u()):o!==vr},d.interpolate=function(f){return arguments.length?(r=f,u()):r},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,p){return n=f,i=p,u()}}function __(){return pg()(vr,vr)}function Ile(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function _m(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 Wl(e){return e=_m(Math.abs(e)),e?e[1]:NaN}function Mle(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Dle(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Lle=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ld(e){if(!(t=Lle.exec(e)))throw new Error("invalid format: "+e);var t;return new S_({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]})}Ld.prototype=S_.prototype;function S_(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+""}S_.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 Ble(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 IM;function Fle(e,t){var r=_m(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(IM=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+_m(e,Math.max(0,t+a-1))[0]}function BA(e,t){var r=_m(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 FA={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Ile,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)=>BA(e*100,t),r:BA,s:Fle,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function UA(e){return e}var zA=Array.prototype.map,VA=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ule(e){var t=e.grouping===void 0||e.thousands===void 0?UA:Mle(zA.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?UA:Dle(zA.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"â":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Ld(d);var f=d.fill,p=d.align,v=d.sign,m=d.symbol,y=d.zero,b=d.width,g=d.comma,x=d.precision,w=d.trim,_=d.type;_==="n"?(g=!0,_="g"):FA[_]||(x===void 0&&(x=12),w=!0,_="g"),(y||f==="0"&&p==="=")&&(y=!0,f="0",p="=");var E=m==="$"?r:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",k=m==="$"?n:/[%p]/.test(_)?o:"",O=FA[_],P=/[defgprs%]/.test(_);x=x===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function C(R){var T=E,I=k,N,L,M;if(_==="c")I=O(R)+I,R="";else{R=+R;var F=R<0||1/R<0;if(R=isNaN(R)?l:O(Math.abs(R),x),w&&(R=Ble(R)),F&&+R==0&&v!=="+"&&(F=!1),T=(F?v==="("?v:s:v==="-"||v==="("?"":v)+T,I=(_==="s"?VA[8+IM/3]:"")+I+(F&&v==="("?")":""),P){for(N=-1,L=R.length;++N<L;)if(M=R.charCodeAt(N),48>M||M>57){I=(M===46?i+R.slice(N+1):R.slice(N))+I,R=R.slice(0,N);break}}}g&&!y&&(R=t(R,1/0));var j=T.length+R.length+I.length,B=j<b?new Array(b-j+1).join(f):"";switch(g&&y&&(R=t(B+R,B.length?b-I.length:1/0),B=""),p){case"<":R=T+R+I+B;break;case"=":R=T+B+R+I;break;case"^":R=B.slice(0,j=B.length>>1)+T+R+I+B.slice(j);break;default:R=B+T+R+I;break}return a(R)}return C.toString=function(){return d+""},C}function u(d,f){var p=c((d=Ld(d),d.type="f",d)),v=Math.max(-8,Math.min(8,Math.floor(Wl(f)/3)))*3,m=Math.pow(10,-v),y=VA[8+v/3];return function(b){return p(m*b)+y}}return{format:c,formatPrefix:u}}var Eh,E_,MM;zle({thousands:",",grouping:[3],currency:["$",""]});function zle(e){return Eh=Ule(e),E_=Eh.format,MM=Eh.formatPrefix,Eh}function Vle(e){return Math.max(0,-Wl(Math.abs(e)))}function Wle(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Wl(t)/3)))*3-Wl(Math.abs(e)))}function Hle(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Wl(t)-Wl(e))+1}function DM(e,t,r,n){var i=Sx(e,t,r),a;switch(n=Ld(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Wle(i,o))&&(n.precision=a),MM(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Hle(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=Vle(i))&&(n.precision=a-(n.type==="%")*2);break}}return E_(n)}function vo(e){var t=e.domain;return e.ticks=function(r){var n=t();return wx(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return DM(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,o=n[i],s=n[a],l,c,u=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);u-- >0;){if(c=_x(o,s,r),c===l)return n[i]=o,n[a]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function Sm(){var e=__();return e.copy=function(){return jf(e,Sm())},Sn.apply(e,arguments),vo(e)}function LM(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,wm),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return LM(e).unknown(t)},e=arguments.length?Array.from(e,wm):[0,1],vo(r)}function BM(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function WA(e){return Math.log(e)}function HA(e){return Math.exp(e)}function qle(e){return-Math.log(-e)}function Kle(e){return-Math.exp(-e)}function Gle(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Yle(e){return e===10?Gle:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Xle(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 qA(e){return(t,r)=>-e(-t,r)}function k_(e){const t=e(WA,HA),r=t.domain;let n=10,i,a;function o(){return i=Xle(n),a=Yle(n),r()[0]<0?(i=qA(i),a=qA(a),e(qle,Kle)):e(WA,HA),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=i(c),p=i(u),v,m;const y=s==null?10:+s;let b=[];if(!(n%1)&&p-f<y){if(f=Math.floor(f),p=Math.ceil(p),c>0){for(;f<=p;++f)for(v=1;v<n;++v)if(m=f<0?v/a(-f):v*a(f),!(m<c)){if(m>u)break;b.push(m)}}else for(;f<=p;++f)for(v=n-1;v>=1;--v)if(m=f>0?v/a(-f):v*a(f),!(m<c)){if(m>u)break;b.push(m)}b.length*2<y&&(b=wx(c,u,y))}else b=wx(f,p,Math.min(p-f,y)).map(a);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Ld(l)).precision==null&&(l.trim=!0),l=E_(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return u=>{let d=u/a(Math.round(i(u)));return d*n<n-.5&&(d*=n),d<=c?l(u):""}},t.nice=()=>r(BM(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function FM(){const e=k_(pg()).domain([1,10]);return e.copy=()=>jf(e,FM()).base(e.base()),Sn.apply(e,arguments),e}
304function KA(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function GA(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function O_(e){var t=1,r=e(KA(t),GA(t));return r.constant=function(n){return arguments.length?e(KA(t=+n),GA(t)):t},vo(r)}function UM(){var e=O_(pg());return e.copy=function(){return jf(e,UM()).constant(e.constant())},Sn.apply(e,arguments)}function YA(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Zle(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Jle(e){return e<0?-e*e:e*e}function A_(e){var t=e(vr,vr),r=1;function n(){return r===1?e(vr,vr):r===.5?e(Zle,Jle):e(YA(r),YA(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},vo(t)}function T_(){var e=A_(pg());return e.copy=function(){return jf(e,T_()).exponent(e.exponent())},Sn.apply(e,arguments),e}function Qle(){return T_.apply(null,arguments).exponent(.5)}function XA(e){return Math.sign(e)*e*e}function ece(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function zM(){var e=__(),t=[0,1],r=!1,n;function i(a){var o=ece(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(XA(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,wm)).map(XA)),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 zM(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Sn.apply(i,arguments),vo(i)}function VM(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=ale(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Af(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Ga),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return VM().domain(e).range(t).unknown(n)},Sn.apply(a,arguments)}function WM(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[Af(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return WM().domain([e,t]).range(i).unknown(a)},Sn.apply(vo(o),arguments)}function HM(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Af(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 o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return HM().domain(e).range(t).unknown(r)},Sn.apply(i,arguments)}const Zy=new Date,Jy=new Date;function Dt(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 o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=a=>Dt(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Zy.setTime(+a),Jy.setTime(+o),e(Zy),e(Jy),Math.floor(r(Zy,Jy))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Em=Dt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Em.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Dt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Em);Em.range;const zi=1e3,vn=zi*60,Vi=vn*60,na=Vi*24,j_=na*7,ZA=na*30,Qy=na*365,Do=Dt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*zi)},(e,t)=>(t-e)/zi,e=>e.getUTCSeconds());Do.range;const P_=Dt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*zi)},(e,t)=>{e.setTime(+e+t*vn)},(e,t)=>(t-e)/vn,e=>e.getMinutes());P_.range;const C_=Dt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*vn)},(e,t)=>(t-e)/vn,e=>e.getUTCMinutes());C_.range;const N_=Dt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*zi-e.getMinutes()*vn)},(e,t)=>{e.setTime(+e+t*Vi)},(e,t)=>(t-e)/Vi,e=>e.getHours());N_.range;const $_=Dt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Vi)},(e,t)=>(t-e)/Vi,e=>e.getUTCHours());$_.range;const Pf=Dt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>
vendor: 4,506 bytes, line 304
304(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*vn)/na,e=>e.getDate()-1);Pf.range;const mg=Dt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/na,e=>e.getUTCDate()-1);mg.range;const qM=Dt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/na,e=>Math.floor(e/na));qM.range;function vs(e){return Dt(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())*vn)/j_)}const vg=vs(0),km=vs(1),tce=vs(2),rce=vs(3),Hl=vs(4),nce=vs(5),ice=vs(6);vg.range;km.range;tce.range;rce.range;Hl.range;nce.range;ice.range;function gs(e){return Dt(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)/j_)}const gg=gs(0),Om=gs(1),ace=gs(2),oce=gs(3),ql=gs(4),sce=gs(5),lce=gs(6);gg.range;Om.range;ace.range;oce.range;ql.range;sce.range;lce.range;const R_=Dt(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());R_.range;const I_=Dt(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());I_.range;const ia=Dt(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());ia.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Dt(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)});ia.range;const aa=Dt(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());aa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Dt(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)});aa.range;function KM(e,t,r,n,i,a){const o=[[Do,1,zi],[Do,5,5*zi],[Do,15,15*zi],[Do,30,30*zi],[a,1,vn],[a,5,5*vn],[a,15,15*vn],[a,30,30*vn],[i,1,Vi],[i,3,3*Vi],[i,6,6*Vi],[i,12,12*Vi],[n,1,na],[n,2,2*na],[r,1,j_],[t,1,ZA],[t,3,3*ZA],[e,1,Qy]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const p=d&&typeof d.range=="function"?d:l(c,u,d),v=p?p.range(c,+u+1):[];return f?v.reverse():v}function l(c,u,d){const f=Math.abs(u-c)/d,p=g_(([,,y])=>y).right(o,f);if(p===o.length)return e.every(Sx(c/Qy,u/Qy,d));if(p===0)return Em.every(Math.max(Sx(c,u,d),1));const[v,m]=o[f/o[p-1][2]<o[p][2]/f?p-1:p];return v.every(m)}return[s,l]}const[cce,uce]=KM(aa,I_,gg,qM,$_,C_),[dce,fce]=KM(ia,R_,vg,Pf,N_,P_);function e0(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 t0(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 Jc(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function hce(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=Qc(i),u=eu(i),d=Qc(a),f=eu(a),p=Qc(o),v=eu(o),m=Qc(s),y=eu(s),b=Qc(l),g=eu(l),x={a:F,A:j,b:B,B:q,c:null,d:nT,e:nT,f:Mce,g:qce,G:Gce,H:$ce,I:Rce,j:Ice,L:GM,m:Dce,M:Lce,p:V,q:H,Q:oT,s:sT,S:Bce,u:Fce,U:Uce,V:zce,w:Vce,W:Wce,x:null,X:null,y:Hce,Y:Kce,Z:Yce,"%":aT},w={a:J,A:fe,b:Ce,B:ve,c:null,d:iT,e:iT,f:Qce,g:cue,G:due,H:Xce,I:Zce,j:Jce,L:XM,m:eue,M:tue,p:ae,q:we,Q:oT,s:sT,S:rue,u:nue,U:iue,V:aue,w:oue,W:sue,x:null,X:null,y:lue,Y:uue,Z:fue,"%":aT},_={a:C,A:R,b:T,B:I,c:N,d:tT,e:tT,f:jce,g:eT,G:QA,H:rT,I:rT,j:kce,L:Tce,m:Ece,M:Oce,p:P,q:Sce,Q:Cce,s:Nce,S:Ace,u:yce,U:bce,V:xce,w:gce,W:wce,x:L,X:M,y:eT,Y:QA,Z:_ce,"%":Pce};x.x=E(r,x),x.X=E(n,x),x.c=E(t,x),w.x=E(r,w),w.X=E(n,w),w.c=E(t,w);function E(G,ne){return function(oe){var z=[],Ae=-1,ge=0,He=G.length,Me,gt,$;for(oe instanceof Date||(oe=new Date(+oe));++Ae<He;)G.charCodeAt(Ae)===37&&(z.push(G.slice(ge,Ae)),(gt=JA[Me=G.charAt(++Ae)])!=null?Me=G.charAt(++Ae):gt=Me==="e"?" ":"0",($=ne[Me])&&(Me=$(oe,gt)),z.push(Me),ge=Ae+1);return z.push(G.slice(ge,Ae)),z.join("")}}function k(G,ne){return function(oe){var z=Jc(1900,void 0,1),Ae=O(z,G,oe+="",0),ge,He;if(Ae!=oe.length)return null;if("Q"in z)return new Date(z.Q);if("s"in z)return new Date(z.s*1e3+("L"in z?z.L:0));
vendor: 5,964 bytes, line 304
304if(ne&&!("Z"in z)&&(z.Z=0),"p"in z&&(z.H=z.H%12+z.p*12),z.m===void 0&&(z.m="q"in z?z.q:0),"V"in z){if(z.V<1||z.V>53)return null;"w"in z||(z.w=1),"Z"in z?(ge=t0(Jc(z.y,0,1)),He=ge.getUTCDay(),ge=He>4||He===0?Om.ceil(ge):Om(ge),ge=mg.offset(ge,(z.V-1)*7),z.y=ge.getUTCFullYear(),z.m=ge.getUTCMonth(),z.d=ge.getUTCDate()+(z.w+6)%7):(ge=e0(Jc(z.y,0,1)),He=ge.getDay(),ge=He>4||He===0?km.ceil(ge):km(ge),ge=Pf.offset(ge,(z.V-1)*7),z.y=ge.getFullYear(),z.m=ge.getMonth(),z.d=ge.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),He="Z"in z?t0(Jc(z.y,0,1)).getUTCDay():e0(Jc(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(He+5)%7:z.w+z.U*7-(He+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,t0(z)):e0(z)}}function O(G,ne,oe,z){for(var Ae=0,ge=ne.length,He=oe.length,Me,gt;Ae<ge;){if(z>=He)return-1;if(Me=ne.charCodeAt(Ae++),Me===37){if(Me=ne.charAt(Ae++),gt=_[Me in JA?ne.charAt(Ae++):Me],!gt||(z=gt(G,oe,z))<0)return-1}else if(Me!=oe.charCodeAt(z++))return-1}return z}function P(G,ne,oe){var z=c.exec(ne.slice(oe));return z?(G.p=u.get(z[0].toLowerCase()),oe+z[0].length):-1}function C(G,ne,oe){var z=p.exec(ne.slice(oe));return z?(G.w=v.get(z[0].toLowerCase()),oe+z[0].length):-1}function R(G,ne,oe){var z=d.exec(ne.slice(oe));return z?(G.w=f.get(z[0].toLowerCase()),oe+z[0].length):-1}function T(G,ne,oe){var z=b.exec(ne.slice(oe));return z?(G.m=g.get(z[0].toLowerCase()),oe+z[0].length):-1}function I(G,ne,oe){var z=m.exec(ne.slice(oe));return z?(G.m=y.get(z[0].toLowerCase()),oe+z[0].length):-1}function N(G,ne,oe){return O(G,t,ne,oe)}function L(G,ne,oe){return O(G,r,ne,oe)}function M(G,ne,oe){return O(G,n,ne,oe)}function F(G){return o[G.getDay()]}function j(G){return a[G.getDay()]}function B(G){return l[G.getMonth()]}function q(G){return s[G.getMonth()]}function V(G){return i[+(G.getHours()>=12)]}function H(G){return 1+~~(G.getMonth()/3)}function J(G){return o[G.getUTCDay()]}function fe(G){return a[G.getUTCDay()]}function Ce(G){return l[G.getUTCMonth()]}function ve(G){return s[G.getUTCMonth()]}function ae(G){return i[+(G.getUTCHours()>=12)]}function we(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var ne=E(G+="",x);return ne.toString=function(){return G},ne},parse:function(G){var ne=k(G+="",!1);return ne.toString=function(){return G},ne},utcFormat:function(G){var ne=E(G+="",w);return ne.toString=function(){return G},ne},utcParse:function(G){var ne=k(G+="",!0);return ne.toString=function(){return G},ne}}}var JA={"-":"",_:" ",0:"0"},zt=/^\s*\d+/,pce=/^%/,mce=/[\\^$*+?|[\]().{}]/g;function Fe(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 vce(e){return e.replace(mce,"\\$&")}function Qc(e){return new RegExp("^(?:"+e.map(vce).join("|")+")","i")}function eu(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function gce(e,t,r){var n=zt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function yce(e,t,r){var n=zt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function bce(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function xce(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function wce(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function QA(e,t,r){var n=zt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function eT(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function _ce(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 Sce(e,t,r){var n=zt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Ece(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function tT(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function kce(e,t,r){var n=zt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function rT(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Oce(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Ace(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Tce(e,t,r){var n=zt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function jce(e,t,r){var n=zt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Pce(e,t,r){var n=pce.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Cce(e,t,r){var n=zt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Nce(e,t,r){var n=zt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function nT(e,t){return Fe(e.getDate(),t,2)}function $ce(e,t){return Fe(e.getHours(),t,2)}function Rce(e,t){return Fe(e.getHours()%12||12,t,2)}function Ice(e,t){return Fe(1+Pf.count(ia(e),e),t,3)}function GM(e,t){return Fe(e.getMilliseconds(),t,3)}function Mce(e,t){return GM(e,t)+"000"}function Dce(e,t){return Fe(e.getMonth()+1,t,2)}function Lce(e,t){return Fe(e.getMinutes(),t,2)}function Bce(e,t){return Fe(e.getSeconds(),t,2)}function Fce(e){var t=e.getDay();return t===0?7:t}function Uce(e,t){return Fe(vg.count(ia(e)-1,e),t,2)}function YM(e){var t=e.getDay();return t>=4||t===0?Hl(e):Hl.ceil(e)}function zce(e,t){return e=YM(e),Fe(Hl.count(ia(e),e)+(ia(e).getDay()===4),t,2)}function Vce(e){return e.getDay()}function Wce(e,t){return Fe(km.count(ia(e)-1,e),t,2)}function Hce(e,t){return Fe(e.getFullYear()%100,t,2)}function qce(e,t){return e=YM(e),Fe(e.getFullYear()%100,t,2)}function Kce(e,t){return Fe(e.getFullYear()%1e4,t,4)}function Gce(e,t){var r=e.getDay();return e=r>=4||r===0?Hl(e):Hl.ceil(e),Fe(e.getFullYear()%1e4,t,4)}function Yce(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Fe(t/60|0,"0",2)+Fe(t%60,"0",2)}function iT(e,t){return Fe(e.getUTCDate(),t,2)}function Xce(e,t){return Fe(e.getUTCHours(),t,2)}function Zce(e,t){return Fe(e.getUTCHours()%12||12,t,2)}
304function Jce(e,t){return Fe(1+mg.count(aa(e),e),t,3)}function XM(e,t){return Fe(e.getUTCMilliseconds(),t,3)}function Qce(e,t){return XM(e,t)+"000"}function eue(e,t){return Fe(e.getUTCMonth()+1,t,2)}function tue(e,t){return Fe(e.getUTCMinutes(),t,2)}function rue(e,t){return Fe(e.getUTCSeconds(),t,2)}function nue(e){var t=e.getUTCDay();return t===0?7:t}function iue(e,t){return Fe(gg.count(aa(e)-1,e),t,2)}function ZM(e){var t=e.getUTCDay();return t>=4||t===0?ql(e):ql.ceil(e)}function aue(e,t){return e=ZM(e),Fe(ql.count(aa(e),e)+(aa(e).getUTCDay()===4),t,2)}function oue(e){return e.getUTCDay()}function sue(e,t){return Fe(Om.count(aa(e)-1,e),t,2)}function lue(e,t){return Fe(e.getUTCFullYear()%100,t,2)}function cue(e,t){return e=ZM(e),Fe(e.getUTCFullYear()%100,t,2)}function uue(e,t){return Fe(e.getUTCFullYear()%1e4,t,4)}function due(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ql(e):ql.ceil(e),Fe(e.getUTCFullYear()%1e4,t,4)}function fue(){return"+0000"}function aT(){return"%"}function oT(e){return+e}function sT(e){return Math.floor(+e/1e3)}var Ns,JM,QM;hue({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 hue(e){return Ns=hce(e),JM=Ns.format,Ns.parse,QM=Ns.utcFormat,Ns.utcParse,Ns}function pue(e){return new Date(e)}function mue(e){return e instanceof Date?+e:+new Date(+e)}function M_(e,t,r,n,i,a,o,s,l,c){var u=__(),d=u.invert,f=u.domain,p=c(".%L"),v=c(":%S"),m=c("%I:%M"),y=c("%I %p"),b=c("%a %d"),g=c("%b %d"),x=c("%B"),w=c("%Y");function _(E){return(l(E)<E?p:s(E)<E?v:o(E)<E?m:a(E)<E?y:n(E)<E?i(E)<E?b:g:r(E)<E?x:w)(E)}return u.invert=function(E){return new Date(d(E))},u.domain=function(E){return arguments.length?f(Array.from(E,mue)):f().map(pue)},u.ticks=function(E){var k=f();return e(k[0],k[k.length-1],E??10)},u.tickFormat=function(E,k){return k==null?_:c(k)},u.nice=function(E){var k=f();return(!E||typeof E.range!="function")&&(E=t(k[0],k[k.length-1],E??10)),E?f(BM(k,E)):u},u.copy=function(){return jf(u,M_(e,t,r,n,i,a,o,s,l,c))},u}function vue(){return Sn.apply(M_(dce,fce,ia,R_,vg,Pf,N_,P_,Do,JM).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function gue(){return Sn.apply(M_(cce,uce,aa,I_,gg,mg,$_,C_,Do,QM).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function yg(){var e=0,t=1,r,n,i,a,o=vr,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:o(i===0?.5:(d=(a(d)-r)*i,s?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?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(o=d,c):o};function u(d){return function(f){var p,v;return arguments.length?([p,v]=f,o=d(p,v),c):[o(0),o(1)]}}return c.range=u(Ec),c.rangeRound=u(w_),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return a=d,r=d(e),n=d(t),i=r===n?0:1/(n-r),c}}function go(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function eD(){var e=vo(yg()(vr));return e.copy=function(){return go(e,eD())},ua.apply(e,arguments)}function tD(){var e=k_(yg()).domain([1,10]);return e.copy=function(){return go(e,tD()).base(e.base())},ua.apply(e,arguments)}function rD(){var e=O_(yg());return e.copy=function(){return go(e,rD()).constant(e.constant())},ua.apply(e,arguments)}function D_(){var e=A_(yg());return e.copy=function(){return go(e,D_()).exponent(e.exponent())},ua.apply(e,arguments)}function yue(){return D_.apply(null,arguments).exponent(.5)}function nD(){var e=[],t=vr;function r(n){if(n!=null&&!isNaN(n=+n))return t((Af(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(Ga),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)=>ile(e,a/n))},r.copy=function(){return nD(t).domain(e)},ua.apply(r,arguments)}function bg(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,c=vr,u,d=!1,f;function p(m){return isNaN(m=+m)?f:(m=.5+((m=+u(m))-a)*(n*m<n*a?s:l),c(d?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,r]=m,i=u(e=+e),a=u(t=+t),o=u(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(m){return arguments.length?(d=!!m,p):d},p.interpolator=function(m){return arguments.length?(c=m,p):c};function v(m){return function(y){var b,g,x;return arguments.length?([b,g,x]=y,c=Ple(m,[b,g,x]),p):[c(0),c(.5),c(1)]}}return p.range=v(Ec),p.rangeRound=v(w_),p.unknown=function(m){return arguments.length?(f=m,p):f},function(m){return u=m,i=m(e),a=m(t),o=m(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function iD(){var e=vo(bg()(vr));return e.copy=function(){return go(e,iD())},ua.apply(e,arguments)}function aD(){var e=k_(bg()).domain([.1,1,10]);return e.copy=function(){return go(e,aD()).base(e.base())},ua.apply(e,arguments)}function oD(){var e=O_(bg());return e.copy=function(){return go(e,oD()).constant(e.constant())},ua.apply(e,arguments)}function L_(){var e=A_(bg());return e.copy=function(){return go(e,L_()).exponent(e.exponent())},ua.apply(e,arguments)}function bue(){return L_.apply(null,arguments).exponent(.5)}const lT=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Rd,scaleDiverging:iD,scaleDivergingLog:aD,scaleDivergingPow:L_,scaleDivergingSqrt:bue,scaleDivergingSymlog:oD,scaleIdentity:LM,scaleImplicit:Ex,scaleLinear:Sm,scaleLog:FM,scaleOrdinal:y_,scalePoint:$u,scalePow:T_,scaleQuantile:VM,scaleQuantize:WM,scaleRadial:zM,scaleSequential:eD,scaleSequentialLog:tD,scaleSequentialPow:D_,scaleSequentialQuantile:nD,scaleSequentialSqrt:yue,scaleSequentialSymlog:rD,scaleSqrt:Qle,scaleSymlog:UM,scaleThreshold:HM,scaleTime:vue,scaleUtc:gue,tickFormat:DM},Symbol.toStringTag,{value:"Module"}));var xue=mc;function wue(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(s===void 0?o===o&&!xue(o):r(o,s)))var s=o,l=a}return l}var sD=wue;function _ue(e,t){return e>t}var Sue=_ue,Eue=sD,kue=Sue,Oue=Sc;function Aue(e){return e&&e.length?Eue(e,Oue,kue):void 0}var Tue=Aue;const Da=Ue(Tue);function jue(e,t){return e<t}var Pue=jue,Cue=sD,Nue=Pue,$ue=Sc;function Rue(e){return e&&e.length?Cue(e,$ue,Nue):void 0}var Iue=Rue;const xg=Ue(Iue);var Mue=Z1,Due=mo,Lue=mM,Bue=Dr;function Fue(e,t){var r=Bue(e)?Mue:Lue;return r(e,Due(t))}var Uue=Fue,zue=hM,Vue=Uue;function Wue(e,t){return zue(Vue(e,t),1)}var Hue=Wue;const que=Ue(Hue);var Kue=f_;function Gue(e,t){return Kue(e,t)}var Yue=Gue;const Bd=Ue(Yue);
vendor: 59,498 bytes, lines 304-330
304var kc=1e9,Xue={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},F_,ct=!0,wn="[DecimalError] ",Yo=wn+"Invalid argument: ",B_=wn+"Exponent out of range: ",Oc=Math.floor,jo=Math.pow,Zue=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,qr,Bt=1e7,at=7,lD=9007199254740991,Am=Oc(lD/at),ue={};ue.absoluteValue=ue.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ue.comparedTo=ue.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};ue.decimalPlaces=ue.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*at;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ue.dividedBy=ue.div=function(e){return Yi(this,new this.constructor(e))};ue.dividedToIntegerBy=ue.idiv=function(e){var t=this,r=t.constructor;return Ye(Yi(t,new r(e),0,1),r.precision)};ue.equals=ue.eq=function(e){return!this.cmp(e)};ue.exponent=function(){return Ct(this)};ue.greaterThan=ue.gt=function(e){return this.cmp(e)>0};ue.greaterThanOrEqualTo=ue.gte=function(e){return this.cmp(e)>=0};ue.isInteger=ue.isint=function(){return this.e>this.d.length-2};ue.isNegative=ue.isneg=function(){return this.s<0};ue.isPositive=ue.ispos=function(){return this.s>0};ue.isZero=function(){return this.s===0};ue.lessThan=ue.lt=function(e){return this.cmp(e)<0};ue.lessThanOrEqualTo=ue.lte=function(e){return this.cmp(e)<1};ue.logarithm=ue.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(qr))throw Error(wn+"NaN");if(r.s<1)throw Error(wn+(r.s?"NaN":"-Infinity"));return r.eq(qr)?new n(0):(ct=!1,t=Yi(Fd(r,a),Fd(e,a),a),ct=!0,Ye(t,i))};ue.minus=ue.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?dD(t,e):cD(t,(e.s=-e.s,e))};ue.modulo=ue.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(wn+"NaN");return r.s?(ct=!1,t=Yi(r,e,0,1).times(e),ct=!0,r.minus(t)):Ye(new n(r),i)};ue.naturalExponential=ue.exp=function(){return uD(this)};ue.naturalLogarithm=ue.ln=function(){return Fd(this)};ue.negated=ue.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ue.plus=ue.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cD(t,e):dD(t,(e.s=-e.s,e))};ue.precision=ue.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Yo+e);if(t=Ct(i)+1,n=i.d.length-1,r=n*at+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};ue.squareRoot=ue.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(wn+"NaN")}for(e=Ct(s),ct=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=hi(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Oc((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 l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(Yi(s,a,o+2)).times(.5),hi(a.d).slice(0,o)===(t=hi(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Ye(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return ct=!0,Ye(n,r)};ue.times=ue.mul=function(e){var t,r,n,i,a,o,s,l,c,u=this,d=u.constructor,f=u.d,p=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,r=u.e+e.e,l=f.length,c=p.length,l<c&&(a=f,f=p,p=a,o=l,l=c,c=o),a=[],o=l+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+p[n]*f[i-n-1]+t,a[i--]=s%Bt|0,t=s/Bt|0;a[i]=(a[i]+t)%Bt|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ct?Ye(e,d.precision):e};ue.toDecimalPlaces=ue.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Si(e,0,kc),t===void 0?t=n.rounding:Si(t,0,8),Ye(r,e+Ct(r)+1,t))};ue.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ls(n,!0):(Si(e,0,kc),t===void 0?t=i.rounding:Si(t,0,8),n=Ye(new i(n),e+1,t),r=ls(n,!0,e+1)),r};ue.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?ls(i):(Si(e,0,kc),t===void 0?t=a.rounding:Si(t,0,8),n=Ye(new a(i),e+Ct(i)+1,t),r=ls(n.abs(),!1,e+Ct(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ue.toInteger=ue.toint=function(){var e=this,t=e.constructor;return Ye(new t(e),Ct(e)+1,t.rounding)};ue.toNumber=function(){return+this};ue.toPower=ue.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(qr);if(s=new l(s),!s.s){if(e.s<1)throw Error(wn+"Infinity");return s}if(s.eq(qr))return s;if(n=l.precision,e.eq(qr))return Ye(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=u<0?-u:u)<=lD){for(i=new l(qr),t=Math.ceil(n/at+4),ct=!1;r%2&&(i=i.times(s),uT(i.d,t)),r=Oc(r/2),r!==0;)s=s.times(s),uT(s.d,t);return ct=!0,e.s<0?new l(qr).div(i):Ye(i,n)}}else if(a<0)throw Error(wn+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,ct=!1,i=e.times(Fd(s,n+c)),ct=!0,i=uD(i),i.s=a,i};ue.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Ct(i),n=ls(i,r<=a.toExpNeg||r>=a.toExpPos)):(Si(e,1,kc),t===void 0?t=a.rounding:Si(t,0,8),i=Ye(new a(i),e,t),r=Ct(i),n=ls(i,e<=r||r<=a.toExpNeg,e)),n};ue.toSignificantDigits=ue.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Si(e,1,kc),t===void 0?t=n.rounding:Si(t,0,8)),Ye(new n(r),e,t)};ue.toString=ue.valueOf=ue.val=ue.toJSON=ue[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ct(e),r=e.constructor;return ls(e,t<=r.toExpNeg||t>=r.toExpPos)};function cD(e,t){var r,n,i,a,o,s,l,c,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),ct?Ye(t,d):t;if(l=e.d,c=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=c.length):(n=c,i=o,s=l.length),o=Math.ceil(d/at),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=c.length,s-a<0&&(a=s,n=c,c=l,l=n),r=0;a;)r=(l[--a]=l[a]+c[a]+r)/Bt|0,l[a]%=Bt;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,ct?Ye(t,d):t}function Si(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Yo+e)}function hi(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=at-n.length,r&&(a+=wa(r)),a+=n;o=e[t],n=o+"",r=at-n.length,r&&(a+=wa(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Yi=function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%Bt|0,o=a/Bt|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Bt+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,c,u,d,f,p,v,m,y,b,g,x,w,_,E,k,O,P=n.constructor,C=n.s==i.s?1:-1,R=n.d,T=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(wn+"Division by zero");for(l=n.e-i.e,k=T.length,_=R.length,p=new P(C),v=p.d=[],c=0;T[c]==(R[c]||0);)++c;if(T[c]>(R[c]||0)&&--l,a==null?g=a=P.precision:o?g=a+(Ct(n)-Ct(i))+1:g=a,g<0)return new P(0);if(g=g/at+2|0,c=0,k==1)for(u=0,T=T[0],g++;(c<_||u)&&g--;c++)x=u*Bt+(R[c]||0),v[c]=x/T|0,u=x%T|0;else{for(u=Bt/(T[0]+1)|0,u>1&&(T=e(T,u),R=e(R,u),k=T.length,_=R.length),w=k,m=R.slice(0,k),y=m.length;y<k;)m[y++]=0;O=T.slice(),O.unshift(0),E=T[0],T[1]>=Bt/2&&++E;do u=0,s=t(T,m,k,y),s<0?(b=m[0],k!=y&&(b=b*Bt+(m[1]||0)),u=b/E|0,u>1?(u>=Bt&&(u=Bt-1),d=e(T,u),f=d.length,y=m.length,s=t(d,m,f,y),s==1&&(u--,r(d,k<f?O:T,f))):(u==0&&(s=u=1),d=T.slice()),f=d.length,f<y&&d.unshift(0),r(m,d,y),s==-1&&(y=m.length,s=t(T,m,k,y),s<1&&(u++,r(m,k<y?O:T,y))),y=m.length):s===0&&(u++,m=[0]),v[c++]=u,s&&m[0]?m[y++]=R[w]||0:(m=[R[w]],y=1);while((w++<_||m[0]!==void 0)&&g--)}return v[0]||v.shift(),p.e=l,Ye(p,o?a+Ct(p)+1:a)}}();function uD(e,t){var r,n,i,a,o,s,l=0,c=0,u=e.constructor,d=u.precision;if(Ct(e)>16)throw Error(B_+Ct(e));if(!e.s)return new u(qr);for(t==null?(ct=!1,s=d):s=t,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(jo(2,c))/Math.LN10*2+5|0,s+=n,r=i=a=new u(qr),u.precision=s;;){if(i=Ye(i.times(e),s),r=r.times(++l),o=a.plus(Yi(i,r,s)),hi(o.d).slice(0,s)===hi(a.d).slice(0,s)){for(;c--;)a=Ye(a.times(a),s);return u.precision=d,t==null?(ct=!0,Ye(a,d)):a}a=o}}function Ct(e){for(var t=e.e*at,r=e.d[0];r>=10;r/=10)t++;return t}function r0(e,t,r){if(t>e.LN10.sd())throw ct=!0,r&&(e.precision=r),Error(wn+"LN10 precision limit exceeded");return Ye(new e(e.LN10),t)}function wa(e){for(var t="";e--;)t+="0";return t}function Fd(e,t){var r,n,i,a,o,s,l,c,u,d=1,f=10,p=e,v=p.d,m=p.constructor,y=m.precision;if(p.s<1)throw Error(wn+(p.s?"NaN":"-Infinity"));if(p.eq(qr))return new m(0);if(t==null?(ct=!1,c=y):c=t,p.eq(10))return t==null&&(ct=!0),r0(m,c);if(c+=f,m.precision=c,r=hi(v),n=r.charAt(0),a=Ct(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=hi(p.d),n=r.charAt(0),d++;a=Ct(p),n>1?(p=new m("0."+r),a++):p=new m(n+"."+r.slice(1))}else return l=r0(m,c+2,y).times(a+""),p=Fd(new m(n+"."+r.slice(1)),c-f).plus(l),m.precision=y,t==null?(ct=!0,Ye(p,y)):p;for(s=o=p=Yi(p.minus(qr),p.plus(qr),c),u=Ye(p.times(p),c),i=3;;){if(o=Ye(o.times(u),c),l=s.plus(Yi(o,new m(i),c)),hi(l.d).slice(0,c)===hi(s.d).slice(0,c))return s=s.times(2),a!==0&&(s=s.plus(r0(m,c+2,y).times(a+""))),s=Yi(s,new m(d),c),m.precision=y,t==null?(ct=!0,Ye(s,y)):s;s=l,i+=2}}function cT(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=Oc(r/at),e.d=[],n=(r+1)%at,r<0&&(n+=at),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=at;n<i;)e.d.push(+t.slice(n,n+=at));t=t.slice(n),n=at-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ct&&(e.e>Am||e.e<-Am))throw Error(B_+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ye(e,t,r){var n,i,a,o,s,l,c,u,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=at,i=t,c=d[u=0];else{if(u=Math.ceil((n+1)/at),a=d.length,u>=a)return e;for(c=a=d[u],o=1;a>=10;a/=10)o++;n%=at,i=n-at+o}if(r!==void 0&&(a=jo(10,o-i-1),s=c/a%10|0,l=t<0||d[u+1]!==void 0||c%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?c/jo(10,o-i):0:d[u-1])%10&1||r==(e.s<0?8:7))),t<1||!d[0])return l?(a=Ct(e),d.length=1,t=t-a-1,d[0]=jo(10,(at-t%at)%at),e.e=Oc(-t/at)||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=jo(10,at-n),d[u]=i>0?(c/jo(10,o-i)%jo(10,i)|0)*a:0),l)for(;;)if(u==0){(d[0]+=a)==Bt&&(d[0]=1,++e.e);break}else{if(d[u]+=a,d[u]!=Bt)break;d[u--]=0,a=1}for(n=d.length;d[--n]===0;)d.pop();if(ct&&(e.e>Am||e.e<-Am))throw Error(B_+Ct(e));return e}function dD(e,t){var r,n,i,a,o,s,l,c,u,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),ct?Ye(t,p):t;if(l=e.d,d=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(u=o<0,u?(r=l,o=-o,s=d.length):(r=d,n=c,s=l.length),i=Math.max(Math.ceil(p/at),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=d.length,u=i<s,u&&(s=i),i=0;i<s;i++)if(l[i]!=d[i]){u=l[i]<d[i];break}o=0}for(u&&(r=l,l=d,d=r,t.s=-t.s),s=l.length,i=d.length-s;i>0;--i)l[s++]=0;for(i=d.length;i>o;){if(l[--i]<d[i]){for(a=i;a&&l[--a]===0;)l[a]=Bt-1;--l[a],l[i]+=Bt}l[i]-=d[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,ct?Ye(t,p):t):new f(0)}function ls(e,t,r){var n,i=Ct(e),a=hi(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+wa(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+wa(-i-1)+a,r&&(n=r-o)>0&&(a+=wa(n))):i>=o?(a+=wa(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+wa(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=wa(n))),e.s<0?"-"+a:a}function uT(e,t){if(e.length>t)return e.length=t,!0}function fD(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Yo+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return cT(o,a.toString())}else if(typeof a!="string")throw Error(Yo+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,Zue.test(a))cT(o,a);else throw Error(Yo+a)}if(i.prototype=ue,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=fD,i.config=i.set=Jue,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 Jue(e){if(!e||typeof e!="object")throw Error(wn+"Object expected");var t,r,n,i=["precision",1,kc,"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(Oc(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Yo+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Yo+r+": "+n);return this}var F_=fD(Xue);qr=new F_(1);const Ge=F_;function Que(e){return nde(e)||rde(e)||tde(e)||ede()}function ede(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 305In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tde(e,t){if(e){if(typeof e=="string")return Tx(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 Tx(e,t)}}function rde(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function nde(e){if(Array.isArray(e))return Tx(e)}function Tx(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 ide=function(t){return t},hD={"@@functional/placeholder":!0},pD=function(t){return t===hD},dT=function(t){return function r(){return arguments.length===0||arguments.length===1&&pD(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},ade=function e(t,r){return t===1?r:dT(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==hD}).length;return o>=t?r.apply(void 0,i):e(t-o,dT(function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var u=i.map(function(d){return pD(d)?l.shift():d});return r.apply(void 0,Que(u).concat(l))}))})},wg=function(t){return ade(t.length,t)},jx=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},ode=wg(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),sde=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return ide;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},Px=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},mD=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function lde(e){var t;return e===0?t=1:t=Math.floor(new Ge(e).abs().log(10).toNumber())+1,t}function cde(e,t,r){for(var n=new Ge(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var ude=wg(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),dde=wg(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),fde=wg(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const _g={rangeStep:cde,getDigitCount:lde,interpolateNumber:ude,uninterpolateNumber:dde,uninterpolateTruncation:fde};function Cx(e){return mde(e)||pde(e)||vD(e)||hde()}function hde(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 306In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pde(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function mde(e){if(Array.isArray(e))return Nx(e)}function Ud(e,t){return yde(e)||gde(e,t)||vD(e,t)||vde()}function vde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 307In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vD(e,t){if(e){if(typeof e=="string")return Nx(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 Nx(e,t)}}function Nx(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 gde(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function yde(e){if(Array.isArray(e))return e}function gD(e){var t=Ud(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function yD(e,t,r){if(e.lte(0))return new Ge(0);var n=_g.getDigitCount(e.toNumber()),i=new Ge(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Ge(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new Ge(Math.ceil(l))}function bde(e,t,r){var n=1,i=new Ge(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Ge(10).pow(_g.getDigitCount(e)-1),i=new Ge(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ge(Math.floor(e)))}else e===0?i=new Ge(Math.floor((t-1)/2)):r||(i=new Ge(Math.floor(e)));var o=Math.floor((t-1)/2),s=sde(ode(function(l){return i.add(new Ge(l-o).mul(n)).toNumber()}),jx);return s(0,t)}function bD(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 Ge(0),tickMin:new Ge(0),tickMax:new Ge(0)};var a=yD(new Ge(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Ge(0):(o=new Ge(e).add(t).div(2),o=o.sub(new Ge(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Ge(t).sub(o).div(a).toNumber()),c=s+l+1;return c>r?bD(e,t,r,n,i+1):(c<r&&(l=t>0?l+(r-c):l,s=t>0?s:s+(r-c)),{step:a,tickMin:o.sub(new Ge(s).mul(a)),tickMax:o.add(new Ge(l).mul(a))})}function xde(e){var t=Ud(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,o=Math.max(i,2),s=gD([r,n]),l=Ud(s,2),c=l[0],u=l[1];if(c===-1/0||u===1/0){var d=u===1/0?[c].concat(Cx(jx(0,i-1).map(function(){return 1/0}))):[].concat(Cx(jx(0,i-1).map(function(){return-1/0})),[u]);return r>n?Px(d):d}if(c===u)return bde(c,i,a);var f=bD(c,u,o,a),p=f.step,v=f.tickMin,m=f.tickMax,y=_g.rangeStep(v,m.add(new Ge(.1).mul(p)),p);return r>n?Px(y):y}function wde(e,t){var r=Ud(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=gD([n,i]),s=Ud(o,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[n,i];if(l===c)return[l];var u=Math.max(t,2),d=yD(new Ge(c).sub(l).div(u-1),a,0),f=[].concat(Cx(_g.rangeStep(new Ge(l),new Ge(c).sub(new Ge(.99).mul(d)),d)),[c]);return n>i?Px(f):f}var _de=mD(xde),Sde=mD(wde),Ede="Invariant failed";function cs(e,t){throw new Error(Ede)}var kde=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Kl(e){"@babel/helpers - typeof";return Kl=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},Kl(e)}function Tm(){return Tm=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},Tm.apply(this,arguments)}function Ode(e,t){return Pde(e)||jde(e,t)||Tde(e,t)||Ade()}function Ade(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 308In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tde(e,t){if(e){if(typeof e=="string")return fT(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 fT(e,t)}}function fT(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 jde(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Pde(e){if(Array.isArray(e))return e}function Cde(e,t){if(e==null)return{};var r=Nde(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 Nde(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 $de(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rde(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,_D(n.key),n)}}function Ide(e,t,r){return t&&Rde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mde(e,t,r){return t=jm(t),Dde(e,xD()?Reflect.construct(t,r||[],jm(e).constructor):t.apply(e,r))}function Dde(e,t){if(t&&(Kl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lde(e)}function Lde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xD=function(){return!!e})()}function jm(e){return jm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jm(e)}function Bde(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&&$x(e,t)}function $x(e,t){return $x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$x(e,t)}function wD(e,t,r){return t=_D(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _D(e){var t=Fde(e,"string");return Kl(t)=="symbol"?t:t+""}function Fde(e,t){if(Kl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Kl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sg=function(e){function t(){return $de(this,t),Mde(this,t,arguments)}return Bde(t,e),Ide(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,c=n.dataPointFormatter,u=n.xAxis,d=n.yAxis,f=Cde(n,kde),p=$e(f,!1);this.props.direction==="x"&&u.type!=="number"&&cs();var v=l.map(function(m){var y=c(m,s),b=y.x,g=y.y,x=y.value,w=y.errorVal;if(!w)return null;var _=[],E,k;if(Array.isArray(w)){var O=Ode(w,2);E=O[0],k=O[1]}else E=k=w;if(a==="vertical"){var P=u.scale,C=g+i,R=C+o,T=C-o,I=P(x-E),N=P(x+k);_.push({x1:N,y1:R,x2:N,y2:T}),_.push({x1:I,y1:C,x2:N,y2:C}),_.push({x1:I,y1:R,x2:I,y2:T})}else if(a==="horizontal"){var L=d.scale,M=b+i,F=M-o,j=M+o,B=L(x-E),q=L(x+k);_.push({x1:F,y1:q,x2:j,y2:q}),_.push({x1:M,y1:B,x2:M,y2:q}),_.push({x1:F,y1:B,x2:j,y2:B})}return A.createElement(ft,Tm({className:"recharts-errorBar",key:"bar-".concat(_.map(function(V){return"".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))},p),_.map(function(V){return A.createElement("line",Tm({},V,{key:"line-".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))}))});return A.createElement(ft,{className:"recharts-errorBars"},v)}}])}(A.Component);wD(Sg,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});wD(Sg,"displayName","ErrorBar");function zd(e){"@babel/helpers - typeof";return zd=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},zd(e)}function hT(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 So(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hT(Object(r),!0).forEach(function(n){Ude(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ude(e,t,r){return t=zde(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zde(e){var t=Vde(e,"string");return zd(t)=="symbol"?t:t+""}function Vde(e,t){if(zd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(zd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SD=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Vr(r,ml);if(!o)return null;var s=ml.defaultProps,l=s!==void 0?So(So({},s),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(u,d){var f=d.item,p=d.props,v=p.sectors||p.data||[];return u.concat(v.map(function(m){return{type:o.props.iconType||f.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):c=(n||[]).map(function(u){var d=u.item,f=d.type.defaultProps,p=f!==void 0?So(So({},f),d.props):{},v=p.dataKey,m=p.name,y=p.legendType,b=p.hide;return{inactive:b,dataKey:v,type:l.iconType||y||"square",color:U_(d),value:m||v,payload:p}}),So(So(So({},l),ml.getWithHeight(o,i)),{},{payload:c,item:o})};function Vd(e){"@babel/helpers - typeof";return Vd=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},Vd(e)}function pT(e){return Kde(e)||qde(e)||Hde(e)||Wde()}function Wde(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 309In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hde(e,t){if(e){if(typeof e=="string")return Rx(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 Rx(e,t)}}function qde(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kde(e){if(Array.isArray(e))return Rx(e)}function Rx(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 mT(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 Et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mT(Object(r),!0).forEach(function(n){gl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gl(e,t,r){return t=Gde(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gde(e){var t=Yde(e,"string");return Vd(t)=="symbol"?t:t+""}function Yde(e,t){if(Vd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Vd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qr(e,t,r){return Ie(e)||Ie(t)?r:Mt(t)?yn(e,t,r):Pe(t)?t(e):r}function Ru(e,t,r,n){var i=que(e,function(s){return Qr(s,t)});if(r==="number"){var a=i.filter(function(s){return Q(s)||parseFloat(s)});return a.length?[xg(a),Da(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!Ie(s)}):i;return o.map(function(s){return Mt(s)||s instanceof Date?s:""})}var Xde=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,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,c=0;c<s;c++){var u=c>0?i[c-1].coordinate:i[s-1].coordinate,d=i[c].coordinate,f=c>=s-1?i[0].coordinate:i[c+1].coordinate,p=void 0;if(zn(d-u)!==zn(f-d)){var v=[];if(zn(f-d)===zn(l[1]-l[0])){p=f;var m=d+l[1]-l[0];v[0]=Math.min(m,(m+u)/2),v[1]=Math.max(m,(m+u)/2)}else{p=u;var y=f+l[1]-l[0];v[0]=Math.min(d,(y+d)/2),v[1]=Math.max(d,(y+d)/2)}var b=[Math.min(d,(p+d)/2),Math.max(d,(p+d)/2)];if(t>b[0]&&t<=b[1]||t>=v[0]&&t<=v[1]){o=i[c].index;break}}else{var g=Math.min(u,f),x=Math.max(u,f);if(t>(g+d)/2&&t<=(x+d)/2){o=i[c].index;break}}}else for(var w=0;w<s;w++)if(w===0&&t<=(n[w].coordinate+n[w+1].coordinate)/2||w>0&&w<s-1&&t>(n[w].coordinate+n[w-1].coordinate)/2&&t<=(n[w].coordinate+n[w+1].coordinate)/2||w===s-1&&t>(n[w].coordinate+n[w-1].coordinate)/2){o=n[w].index;break}return o},U_=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Et(Et({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},Zde=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,c=s.length;l<c;l++)for(var u=a[s[l]].stackGroups,d=Object.keys(u),f=0,p=d.length;f<p;f++){var v=u[d[f]],m=v.items,y=v.cateAxisId,b=m.filter(function(k){return qi(k.type).indexOf("Bar")>=0});if(b&&b.length){var g=b[0].type.defaultProps,x=g!==void 0?Et(Et({},g),b[0].props):b[0].props,w=x.barSize,_=x[y];o[_]||(o[_]=[]);var E=Ie(w)?r:w;o[_].push({item:b[0],stackList:b.slice(1),barSize:Ie(E)?void 0:ss(E,n,0)})}}return o},Jde=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var c=ss(r,i,0,!0),u,d=[];if(o[0].barSize===+o[0].barSize){var f=!1,p=i/l,v=o.reduce(function(w,_){return w+_.barSize||0},0);v+=(l-1)*c,v>=i&&(v-=(l-1)*c,c=0),v>=i&&p>0&&(f=!0,p*=.9,v=l*p);var m=(i-v)/2>>0,y={offset:m-c,size:0};u=o.reduce(function(w,_){var E={item:_.item,position:{offset:y.offset+y.size+c,size:f?p:_.barSize}},k=[].concat(pT(w),[E]);return y=k[k.length-1].position,_.stackList&&_.stackList.length&&_.stackList.forEach(function(O){k.push({item:O,position:y})}),k},d)}else{var b=ss(n,i,0,!0);i-2*b-(l-1)*c<=0&&(c=0);var g=(i-2*b-(l-1)*c)/l;g>1&&(g>>=0);var x=s===+s?Math.min(g,s):g;u=o.reduce(function(w,_,E){var k=[].concat(pT(w),[{item:_.item,position:{offset:b+(g+c)*E+(g-x)/2,size:x}}]);return _.stackList&&_.stackList.length&&_.stackList.forEach(function(O){k.push({item:O,position:k[k.length-1].position})}),k},d)}return u},Qde=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),c=SD({children:a,legendWidth:l});if(c){var u=i||{},d=u.width,f=u.height,p=c.align,v=c.verticalAlign,m=c.layout;if((m==="vertical"||m==="horizontal"&&v==="middle")&&p!=="center"&&Q(t[p]))return Et(Et({},t),{},gl({},p,t[p]+(d||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&v!=="middle"&&Q(t[v]))return Et(Et({},t),{},gl({},v,t[v]+(f||0)))}return t},efe=function(t,r,n){return Ie(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},ED=function(t,r,n,i,a){var o=r.props.children,s=Kn(o,Sg).filter(function(c){return efe(i,a,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,u){var d=Qr(u,n);if(Ie(d))return c;var f=Array.isArray(d)?[xg(d),Da(d)]:[d,d],p=l.reduce(function(v,m){var y=Qr(u,m,0),b=f[0]-Math.abs(Array.isArray(y)?y[0]:y),g=f[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(b,v[0]),Math.max(g,v[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},tfe=function(t,r,n,i,a){var o=r.map(function(s){return ED(t,s,n,a,i)}).filter(function(s){return!Ie(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},kD=function(t,r,n,i,a){var o=r.map(function(l){var c=l.props.dataKey;return n==="number"&&c&&ED(t,l,c,i)||Ru(t,c,n,a)});if(n==="number")return o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,c){for(var u=0,d=c.length;u<d;u++)s[c[u]]||(s[c[u]]=!0,l.push(c[u]));return l},[])},OD=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},AD=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(n),s},Wi=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(c=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?zn(s[0]-s[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!xc(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}})},n0=new WeakMap,kh=function(t,r){if(typeof r!="function")return t;n0.has(t)||n0.set(t,new WeakMap);var n=n0.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},rfe=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Rd(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Sm(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:$u(),realScaleType:"point"}:a==="category"?{scale:Rd(),realScaleType:"band"}:{scale:Sm(),realScaleType:"linear"};if(Ef(i)){var l="scale".concat(sg(i));return{scale:(lT[l]||$u)(),realScaleType:lT[l]?l:"point"}}return Pe(i)?{scale:i}:{scale:$u(),realScaleType:"point"}},vT=1e-4,nfe=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])-vT,o=Math.max(i[0],i[1])+vT,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},ife=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},afe=function(t,r){if(!r||r.length!==2||!Q(r[0])||!Q(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(!Q(t[0])||t[0]<n)&&(a[0]=n),(!Q(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},ofe=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=xc(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]=o,t[s][n][1]=o+l,o=t[s][n][1])}},sfe=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=xc(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},lfe={sign:ofe,expand:SJ,none:Bl,silhouette:EJ,wiggle:kJ,positive:sfe},cfe=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=lfe[n],o=_J().keys(i).value(function(s,l){return+Qr(s,l,0)}).order(ax).offset(a);return o(t)},ufe=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},c=s.reduce(function(d,f){var p,v=(p=f.type)!==null&&p!==void 0&&p.defaultProps?Et(Et({},f.type.defaultProps),f.props):f.props,m=v.stackId,y=v.hide;if(y)return d;var b=v[n],g=d[b]||{hasStack:!1,stackGroups:{}};if(Mt(m)){var x=g.stackGroups[m]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(f),g.hasStack=!0,g.stackGroups[m]=x}else g.stackGroups[kf("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[f]};return Et(Et({},d),{},gl({},b,g))},l),u={};return Object.keys(c).reduce(function(d,f){var p=c[f];if(p.hasStack){var v={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,y){var b=p.stackGroups[y];return Et(Et({},m),{},gl({},y,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:cfe(t,b.items,a)}))},v)}return Et(Et({},d),{},gl({},f,p))},u)},dfe=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var u=_de(c,a,s);return t.domain([xg(u),Da(u)]),{niceTicks:u}}if(a&&i==="number"){var d=t.domain(),f=Sde(d,a,s);return{niceTicks:f}}return null};function gT(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ie(i[t.dataKey])){var s=em(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=Qr(i,Ie(o)?t.dataKey:o);return Ie(l)?null:t.scale(l)}var yT=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=Qr(o,r.dataKey,r.domain[s]);return Ie(l)?null:r.scale(l)-a/2+i},ffe=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]},hfe=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Et(Et({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Mt(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},pfe=function(t){return t.reduce(function(r,n){return[xg(n.concat([r[0]]).filter(Q)),Da(n.concat([r[1]]).filter(Q))]},[1/0,-1/0])},TD=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(c,u){var d=pfe(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(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},bT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,xT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ix=function(t,r,n){if(Pe(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(Q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(bT.test(t[0])){var a=+bT.exec(t[0])[1];i[0]=r[0]-a}else Pe(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(Q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(xT.test(t[1])){var o=+xT.exec(t[1])[1];i[1]=r[1]+o}else Pe(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Pm=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=p_(r,function(d){return d.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var c=a[s],u=a[s-1];o=Math.min((c.coordinate||0)-(u.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},wT=function(t,r,n){return!t||!t.length||Bd(t,yn(n,"type.defaultProps.domain"))?r:t},jD=function(t,r){var n=t.type.defaultProps?Et(Et({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,c=n.chartType,u=n.hide;return Et(Et({},$e(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:U_(t),value:Qr(r,i),type:l,payload:r,chartType:c,hide:u})};function Wd(e){"@babel/helpers - typeof";return Wd=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},Wd(e)}function _T(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 ST(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_T(Object(r),!0).forEach(function(n){mfe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_T(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mfe(e,t,r){return t=vfe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vfe(e){var t=gfe(e,"string");return Wd(t)=="symbol"?t:t+""}function gfe(e,t){if(Wd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cm=Math.PI/180,yfe=function(t){return t*180/Math.PI},Kt=function(t,r,n,i){return{x:t+Math.cos(-Cm*i)*n,y:r+Math.sin(-Cm*i)*n}},bfe=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},xfe=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=bfe({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,c=Math.acos(l);return i>o&&(c=2*Math.PI-c),{radius:s,angle:yfe(c),angleInRadian:c}},wfe=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},_fe=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},ET=function(t,r){var n=t.x,i=t.y,a=xfe({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,c=r.outerRadius;if(o<l||o>c)return!1;if(o===0)return!0;var u=wfe(r),d=u.startAngle,f=u.endAngle,p=s,v;if(d<=f){for(;p>f;)p-=360;for(;p<d;)p+=360;v=p>=d&&p<=f}else{for(;p>d;)p-=360;for(;p<f;)p+=360;v=p>=f&&p<=d}return v?ST(ST({},r),{},{radius:o,angle:_fe(p,r)}):null};function Hd(e){"@babel/helpers - typeof";return Hd=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},Hd(e)}var Sfe=["offset"];function Efe(e){return Tfe(e)||Afe(e)||Ofe(e)||kfe()}function kfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 310In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ofe(e,t){if(e){if(typeof e=="string")return Mx(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 Mx(e,t)}}function Afe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tfe(e){if(Array.isArray(e))return Mx(e)}function Mx(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 jfe(e,t){if(e==null)return{};var r=Pfe(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 Pfe(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 kT(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 Nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kT(Object(r),!0).forEach(function(n){Cfe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cfe(e,t,r){return t=Nfe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nfe(e){var t=$fe(e,"string");return Hd(t)=="symbol"?t:t+""}function $fe(e,t){if(Hd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Hd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qd(){return qd=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},qd.apply(this,arguments)}var Rfe=function(t){var r=t.value,n=t.formatter,i=Ie(t.children)?r:t.children;return Pe(n)?n(i):i},Ife=function(t,r){var n=zn(r-t),i=Math.min(Math.abs(r-t),360);return n*i},Mfe=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,c=l.cx,u=l.cy,d=l.innerRadius,f=l.outerRadius,p=l.startAngle,v=l.endAngle,m=l.clockWise,y=(d+f)/2,b=Ife(p,v),g=b>=0?1:-1,x,w;i==="insideStart"?(x=p+g*o,w=m):i==="insideEnd"?(x=v-g*o,w=!m):i==="end"&&(x=v+g*o,w=m),w=b<=0?w:!w;var _=Kt(c,u,y,x),E=Kt(c,u,y,x+(w?1:-1)*359),k="M".concat(_.x,",").concat(_.y,` 311 A`).concat(y,",").concat(y,",0,1,").concat(w?0:1,`, 312 `).concat(E.x,",").concat(E.y),O=Ie(t.id)?kf("recharts-radial-line-"):t.id;return A.createElement("text",qd({},n,{dominantBaseline:"central",className:Le("recharts-radial-bar-label",s)}),A.createElement("defs",null,A.createElement("path",{id:O,d:k})),A.createElement("textPath",{xlinkHref:"#".concat(O)},r))},Dfe=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,c=a.outerRadius,u=a.startAngle,d=a.endAngle,f=(u+d)/2;if(i==="outside"){var p=Kt(o,s,c+n,f),v=p.x,m=p.y;return{x:v,y:m,textAnchor:v>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var y=(l+c)/2,b=Kt(o,s,y,f),g=b.x,x=b.y;return{x:g,y:x,textAnchor:"middle",verticalAnchor:"middle"}},Lfe=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,c=o.width,u=o.height,d=u>=0?1:-1,f=d*i,p=d>0?"end":"start",v=d>0?"start":"end",m=c>=0?1:-1,y=m*i,b=m>0?"end":"start",g=m>0?"start":"end";if(a==="top"){var x={x:s+c/2,y:l-d*i,textAnchor:"middle",verticalAnchor:p};return Nt(Nt({},x),n?{height:Math.max(l-n.y,0),width:c}:{})}if(a==="bottom"){var w={x:s+c/2,y:l+u+f,textAnchor:"middle",verticalAnchor:v};return Nt(Nt({},w),n?{height:Math.max(n.y+n.height-(l+u),0),width:c}:{})}if(a==="left"){var _={x:s-y,y:l+u/2,textAnchor:b,verticalAnchor:"middle"};return Nt(Nt({},_),n?{width:Math.max(_.x-n.x,0),height:u}:{})}if(a==="right"){var E={x:s+c+y,y:l+u/2,textAnchor:g,verticalAnchor:"middle"};return Nt(Nt({},E),n?{width:Math.max(n.x+n.width-E.x,0),height:u}:{})}var k=n?{width:c,height:u}:{};return a==="insideLeft"?Nt({x:s+y,y:l+u/2,textAnchor:g,verticalAnchor:"middle"},k):a==="insideRight"?Nt({x:s+c-y,y:l+u/2,textAnchor:b,verticalAnchor:"middle"},k):a==="insideTop"?Nt({x:s+c/2,y:l+f,textAnchor:"middle",verticalAnchor:v},k):a==="insideBottom"?Nt({x:s+c/2,y:l+u-f,textAnchor:"middle",verticalAnchor:p},k):a==="insideTopLeft"?Nt({x:s+y,y:l+f,textAnchor:g,verticalAnchor:v},k):a==="insideTopRight"?Nt({x:s+c-y,y:l+f,textAnchor:b,verticalAnchor:v},k):a==="insideBottomLeft"?Nt({x:s+y,y:l+u-f,textAnchor:g,verticalAnchor:p},k):a==="insideBottomRight"?Nt({x:s+c-y,y:l+u-f,textAnchor:b,verticalAnchor:p},k):vc(a)&&(Q(a.x)||Io(a.x))&&(Q(a.y)||Io(a.y))?Nt({x:s+ss(a.x,c),y:l+ss(a.y,u),textAnchor:"end",verticalAnchor:"end"},k):Nt({x:s+c/2,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},k)},Bfe=function(t){return"cx"in t&&Q(t.cx)};function nr(e){var t=e.offset,r=t===void 0?5:t,n=jfe(e,Sfe),i=Nt({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,c=i.content,u=i.className,d=u===void 0?"":u,f=i.textBreakAll;if(!a||Ie(s)&&Ie(l)&&!S.isValidElement(c)&&!Pe(c))return null;if(S.isValidElement(c))return S.cloneElement(c,i);var p;if(Pe(c)){if(p=S.createElement(c,i),S.isValidElement(p))return p}else p=Rfe(i);var v=Bfe(a),m=$e(i,!0);if(v&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Mfe(i,p,m);var y=v?Dfe(i):Lfe(i);return A.createElement(vm,qd({className:Le("recharts-label",d)},m,y,{breakAll:f}),p)}nr.displayName="Label";var PD=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,u=t.outerRadius,d=t.x,f=t.y,p=t.top,v=t.left,m=t.width,y=t.height,b=t.clockWise,g=t.labelViewBox;if(g)return g;if(Q(m)&&Q(y)){if(Q(d)&&Q(f))return{x:d,y:f,width:m,height:y};if(Q(p)&&Q(v))return{x:p,y:v,width:m,height:y}}return Q(d)&&Q(f)?{x:d,y:f,width:0,height:0}:Q(r)&&Q(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:u||l||s||0,clockWise:b}:t.viewBox?t.viewBox:{}},Ffe=function(t,r){return t?t===!0?A.createElement(nr,{key:"label-implicit",viewBox:r}):Mt(t)?A.createElement(nr,{key:"label-implicit",viewBox:r,value:t}):S.isValidElement(t)?t.type===nr?S.cloneElement(t,{key:"label-implicit",viewBox:r}):A.createElement(nr,{key:"label-implicit",content:t,viewBox:r}):Pe(t)?A.createElement(nr,{key:"label-implicit",content:t,viewBox:r}):vc(t)?A.createElement(nr,qd({viewBox:r},t,{key:"label-implicit"})):null:null},Ufe=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=PD(t),o=Kn(i,nr).map(function(l,c){return S.cloneElement(l,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var s=Ffe(t.label,r||a);return[s].concat(Efe(o))};nr.parseViewBox=PD;nr.renderCallByParent=Ufe;function zfe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Vfe=zfe;const Wfe=Ue(Vfe);function Kd(e){"@babel/helpers - typeof";return Kd=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},Kd(e)}var Hfe=["valueAccessor"],qfe=["data","dataKey","clockWise","id","textBreakAll"];function Kfe(e){return Zfe(e)||Xfe(e)||Yfe(e)||Gfe()}function Gfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 313In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yfe(e,t){if(e){if(typeof e=="string")return Dx(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 Dx(e,t)}}function Xfe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zfe(e){if(Array.isArray(e))return Dx(e)}function Dx(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 Nm(){return Nm=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},Nm.apply(this,arguments)}function OT(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 AT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OT(Object(r),!0).forEach(function(n){Jfe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jfe(e,t,r){return t=Qfe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qfe(e){var t=ehe(e,"string");return Kd(t)=="symbol"?t:t+""}function ehe(e,t){if(Kd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Kd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TT(e,t){if(e==null)return{};var r=the(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 the(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 rhe=function(t){return Array.isArray(t.value)?Wfe(t.value):t.value};function Ya(e){var t=e.valueAccessor,r=t===void 0?rhe:t,n=TT(e,Hfe),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,c=TT(n,qfe);return!i||!i.length?null:A.createElement(ft,{className:"recharts-label-list"},i.map(function(u,d){var f=Ie(a)?r(u,d):Qr(u&&u.payload,a),p=Ie(s)?{}:{id:"".concat(s,"-").concat(d)};return A.createElement(nr,Nm({},$e(u,!0),c,p,{parentViewBox:u.parentViewBox,value:f,textBreakAll:l,viewBox:nr.parseViewBox(Ie(o)?u:AT(AT({},u),{},{clockWise:o})),key:"label-".concat(d),index:d}))}))}Ya.displayName="LabelList";function nhe(e,t){return e?e===!0?A.createElement(Ya,{key:"labelList-implicit",data:t}):A.isValidElement(e)||Pe(e)?A.createElement(Ya,{key:"labelList-implicit",data:t,content:e}):vc(e)?A.createElement(Ya,Nm({data:t},e,{key:"labelList-implicit"})):null:null}function ihe(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=Kn(n,Ya).map(function(o,s){return S.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=nhe(e.label,t);return[a].concat(Kfe(i))}Ya.renderCallByParent=ihe;function Gd(e){"@babel/helpers - typeof";return Gd=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},Gd(e)}function Lx(){return Lx=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},Lx.apply(this,arguments)}function jT(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 PT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jT(Object(r),!0).forEach(function(n){ahe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ahe(e,t,r){return t=ohe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ohe(e){var t=she(e,"string");return Gd(t)=="symbol"?t:t+""}function she(e,t){if(Gd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lhe=function(t,r){var n=zn(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Oh=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,c=t.cornerIsExternal,u=l*(s?1:-1)+i,d=Math.asin(l/u)/Cm,f=c?a:a+o*d,p=Kt(r,n,u,f),v=Kt(r,n,i,f),m=c?a-o*d:a,y=Kt(r,n,u*Math.cos(d*Cm),m);return{center:p,circleTangency:v,lineTangency:y,theta:d}},CD=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=lhe(o,s),c=o+l,u=Kt(r,n,a,o),d=Kt(r,n,a,c),f="M ".concat(u.x,",").concat(u.y,` 314 A `).concat(a,",").concat(a,`,0, 315 `).concat(+(Math.abs(l)>180),",").concat(+(o>c),`, 316 `).concat(d.x,",").concat(d.y,` 317 `);if(i>0){var p=Kt(r,n,i,o),v=Kt(r,n,i,c);f+="L ".concat(v.x,",").concat(v.y,` 318 A `).concat(i,",").concat(i,`,0, 319 `).concat(+(Math.abs(l)>180),",").concat(+(o<=c),`, 320 `).concat(p.x,",").concat(p.y," Z")}else f+="L ".concat(r,",").concat(n," Z");return f},che=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,u=t.endAngle,d=zn(u-c),f=Oh({cx:r,cy:n,radius:a,angle:c,sign:d,cornerRadius:o,cornerIsExternal:l}),p=f.circleTangency,v=f.lineTangency,m=f.theta,y=Oh({cx:r,cy:n,radius:a,angle:u,sign:-d,cornerRadius:o,cornerIsExternal:l}),b=y.circleTangency,g=y.lineTangency,x=y.theta,w=l?Math.abs(c-u):Math.abs(c-u)-m-x;if(w<0)return s?"M ".concat(v.x,",").concat(v.y,` 321 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 322 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 323 `):CD({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:u});var _="M ".concat(v.x,",").concat(v.y,` 324 A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(p.x,",").concat(p.y,` 325 A`).concat(a,",").concat(a,",0,").concat(+(w>180),",").concat(+(d<0),",").concat(b.x,",").concat(b.y,` 326 A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(g.x,",").concat(g.y,` 327 `);if(i>0){var E=Oh({cx:r,cy:n,radius:i,angle:c,sign:d,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),k=E.circleTangency,O=E.lineTangency,P=E.theta,C=Oh({cx:r,cy:n,radius:i,angle:u,sign:-d,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),R=C.circleTangency,T=C.lineTangency,I=C.theta,N=l?Math.abs(c-u):Math.abs(c-u)-P-I;if(N<0&&o===0)return"".concat(_,"L").concat(r,",").concat(n,"Z");_+="L".concat(T.x,",").concat(T.y,` 328 A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(R.x,",").concat(R.y,` 329 A`).concat(i,",").concat(i,",0,").concat(+(N>180),",").concat(+(d>0),",").concat(k.x,",").concat(k.y,` 330 A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(O.x,",").concat(O.y,"Z")}else _+="L".concat(r,",").concat(n,"Z");return _},uhe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},ND=function(t){var r=PT(PT({},uhe),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,c=r.cornerIsExternal,u=r.startAngle,d=r.endAngle,f
330=r.className;if(o<a||u===d)return null;var p=Le("recharts-sector",f),v=o-a,m=ss(s,v,0,!0),y;return m>0&&Math.abs(u-d)<360?y=che({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,v/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:d}):y=CD({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:u,endAngle:d}),A.createElement("path",Lx({},$e(r,!0),{className:p,d:y,role:"img"}))};function Yd(e){"@babel/helpers - typeof";return Yd=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},Yd(e)}function Bx(){return Bx=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},Bx.apply(this,arguments)}function CT(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 NT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CT(Object(r),!0).forEach(function(n){dhe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dhe(e,t,r){return t=fhe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fhe(e){var t=hhe(e,"string");return Yd(t)=="symbol"?t:t+""}function hhe(e,t){if(Yd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Yd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $T={curveBasisClosed:dJ,curveBasisOpen:fJ,curveBasis:uJ,curveBumpX:XZ,curveBumpY:ZZ,curveLinearClosed:hJ,curveLinear:cg,curveMonotoneX:pJ,curveMonotoneY:mJ,curveNatural:vJ,curveStep:gJ,curveStepAfter:bJ,curveStepBefore:yJ},Ah=function(t){return t.x===+t.x&&t.y===+t.y},tu=function(t){return t.x},ru=function(t){return t.y},phe=function(t,r){if(Pe(t))return t;var n="curve".concat(sg(t));return(n==="curveMonotone"||n==="curveBump")&&r?$T["".concat(n).concat(r==="vertical"?"Y":"X")]:$T[n]||cg},mhe=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,c=l===void 0?!1:l,u=phe(n,s),d=c?a.filter(function(m){return Ah(m)}):a,f;if(Array.isArray(o)){var p=c?o.filter(function(m){return Ah(m)}):o,v=d.map(function(m,y){return NT(NT({},m),{},{base:p[y]})});return s==="vertical"?f=gh().y(ru).x1(tu).x0(function(m){return m.base.x}):f=gh().x(tu).y1(ru).y0(function(m){return m.base.y}),f.defined(Ah).curve(u),f(v)}return s==="vertical"&&Q(o)?f=gh().y(ru).x1(tu).x0(o):Q(o)?f=gh().x(tu).y1(ru).y0(o):f=NI().x(tu).y(ru),f.defined(Ah).curve(u),f(d)},Iu=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?mhe(t):i;return A.createElement("path",Bx({},$e(t,!1),tm(t),{className:Le("recharts-curve",r),d:o,ref:a}))},$D={exports:{}},vhe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ghe=vhe,yhe=ghe;function RD(){}function ID(){}ID.resetWarningCache=RD;var bhe=function(){function e(n,i,a,o,s,l){if(l!==yhe){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:ID,resetWarningCache:RD};return r.PropTypes=r,r};$D.exports=bhe();var xhe=$D.exports;const Oe=Ue(xhe);var whe=Object.getOwnPropertyNames,_he=Object.getOwnPropertySymbols,She=Object.prototype.hasOwnProperty;function RT(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Th(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);var l=e(r,n,i);return a.delete(r),a.delete(n),l}}function IT(e){return whe(e).concat(_he(e))}var MD=Object.hasOwn||function(e,t){return She.call(e,t)};function Ac(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var DD="_owner",MT=Object.getOwnPropertyDescriptor,DT=Object.keys;function Ehe(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 khe(e,t){return Ac(e.getTime(),t.getTime())}function LT(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.entries(),a=0,o,s;(o=i.next())&&!o.done;){for(var l=t.entries(),c=!1,u=0;(s=l.next())&&!s.done;){var d=o.value,f=d[0],p=d[1],v=s.value,m=v[0],y=v[1];!c&&!n[u]&&(c=r.equals(f,m,a,u,e,t,r)&&r.equals(p,y,f,m,e,t,r))&&(n[u]=!0),u++}if(!c)return!1;a++}return!0}function Ohe(e,t,r){var n=DT(e),i=n.length;if(DT(t).length!==i)return!1;for(var a;i-- >0;)if(a=n[i],a===DD&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!MD(t,a)||!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function nu(e,t,r){var n=IT(e),i=n.length;if(IT(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],a===DD&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!MD(t,a)||!r.equals(e[a],t[a],a,a,e,t,r)||(o=MT(e,a),s=MT(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function Ahe(e,t){return Ac(e.valueOf(),t.valueOf())}function The(e,t){return e.source===t.source&&e.flags===t.flags}function BT(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.values(),a,o;(a=i.next())&&!a.done;
330){for(var s=t.values(),l=!1,c=0;(o=s.next())&&!o.done;)!l&&!n[c]&&(l=r.equals(a.value,o.value,a.value,o.value,e,t,r))&&(n[c]=!0),c++;if(!l)return!1}return!0}function jhe(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var Phe="[object Arguments]",Che="[object Boolean]",Nhe="[object Date]",$he="[object Map]",Rhe="[object Number]",Ihe="[object Object]",Mhe="[object RegExp]",Dhe="[object Set]",Lhe="[object String]",Bhe=Array.isArray,FT=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,UT=Object.assign,Fhe=Object.prototype.toString.call.bind(Object.prototype.toString);function Uhe(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(u,d,f){if(u===d)return!0;if(u==null||d==null||typeof u!="object"||typeof d!="object")return u!==u&&d!==d;var p=u.constructor;if(p!==d.constructor)return!1;if(p===Object)return i(u,d,f);if(Bhe(u))return t(u,d,f);if(FT!=null&&FT(u))return l(u,d,f);if(p===Date)return r(u,d,f);if(p===RegExp)return o(u,d,f);if(p===Map)return n(u,d,f);if(p===Set)return s(u,d,f);var v=Fhe(u);return v===Nhe?r(u,d,f):v===Mhe?o(u,d,f):v===$he?n(u,d,f):v===Dhe?s(u,d,f):v===Ihe?typeof u.then!="function"&&typeof d.then!="function"&&i(u,d,f):v===Phe?i(u,d,f):v===Che||v===Rhe||v===Lhe?a(u,d,f):!1}}function zhe(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?nu:Ehe,areDatesEqual:khe,areMapsEqual:n?RT(LT,nu):LT,areObjectsEqual:n?nu:Ohe,arePrimitiveWrappersEqual:Ahe,areRegExpsEqual:The,areSetsEqual:n?RT(BT,nu):BT,areTypedArraysEqual:n?nu:jhe};if(r&&(i=UT({},i,r(i))),t){var a=Th(i.areArraysEqual),o=Th(i.areMapsEqual),s=Th(i.areObjectsEqual),l=Th(i.areSetsEqual);i=UT({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return i}function Vhe(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function Whe(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(l,c){var u=n(),d=u.cache,f=d===void 0?t?new WeakMap:void 0:d,p=u.meta;return r(l,c,{cache:f,equals:i,meta:p,strict:a})};if(t)return function(l,c){return r(l,c,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(l,c){return r(l,c,o)}}var Hhe=yo();yo({strict:!0});yo({circular:!0});yo({circular:!0,strict:!0});yo({createInternalComparator:function(){return Ac}});yo({strict:!0,createInternalComparator:function(){return Ac}});yo({circular:!0,createInternalComparator:function(){return Ac}});yo({circular:!0,createInternalComparator:function(){return Ac},strict:!0});function yo(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=zhe(e),l=Uhe(s),c=n?n(l):Vhe(l);return Whe({circular:r,comparator:l,createState:i,equals:c,strict:o})}function qhe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function zT(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):qhe(i)};requestAnimationFrame(n)}function Fx(e){"@babel/helpers - typeof";return Fx=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},Fx(e)}function Khe(e){return Zhe(e)||Xhe(e)||Yhe(e)||Ghe()}function Ghe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 331In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yhe(e,t){if(e){if(typeof e=="string")return VT(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 VT(e,t)}}function VT(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 Xhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zhe(e){if(Array.isArray(e))return e}function Jhe(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=Khe(o),l=s[0],c=s.slice(1);if(typeof l=="number"){zT(i.bind(null,c),l);return}i(l),zT(i.bind(null,c));return}Fx(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 Xd(e){"@babel/helpers - typeof";return Xd=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},Xd(e)}function WT(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 HT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 46,363 bytes, lines 331-348
331t%2?WT(Object(r),!0).forEach(function(n){LD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LD(e,t,r){return t=Qhe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qhe(e){var t=epe(e,"string");return Xd(t)==="symbol"?t:String(t)}function epe(e,t){if(Xd(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xd(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tpe=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},rpe=function(t){return t},npe=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Mu=function(t,r){return Object.keys(r).reduce(function(n,i){return HT(HT({},n),{},LD({},i,t(i,r[i])))},{})},qT=function(t,r,n){return t.map(function(i){return"".concat(npe(i)," ").concat(r,"ms ").concat(n)}).join(",")};function ipe(e,t){return spe(e)||ope(e,t)||BD(e,t)||ape()}function ape(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 332In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ope(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function spe(e){if(Array.isArray(e))return e}function lpe(e){return dpe(e)||upe(e)||BD(e)||cpe()}function cpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 333In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BD(e,t){if(e){if(typeof e=="string")return Ux(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 Ux(e,t)}}function upe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dpe(e){if(Array.isArray(e))return Ux(e)}function Ux(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 $m=1e-4,FD=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},UD=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},KT=function(t,r){return function(n){var i=FD(t,r);return UD(i,n)}},fpe=function(t,r){return function(n){var i=FD(t,r),a=[].concat(lpe(i.map(function(o,s){return o*s}).slice(1)),[0]);return UD(a,n)}},GT=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],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var c=l[1].split(")")[0].split(",").map(function(y){return parseFloat(y)}),u=ipe(c,4);i=u[0],a=u[1],o=u[2],s=u[3]}}}var d=KT(i,o),f=KT(a,s),p=fpe(i,o),v=function(b){return b>1?1:b<0?0:b},m=function(b){for(var g=b>1?1:b,x=g,w=0;w<8;++w){var _=d(x)-g,E=p(x);if(Math.abs(_-g)<$m||E<$m)return f(x);x=v(x-_/E)}return f(x)};return m.isStepper=!1,m},hpe=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,o=t.dt,s=o===void 0?17:o,l=function(u,d,f){var p=-(u-d)*n,v=f*a,m=f+(p-v)*s/1e3,y=f*s/1e3+u;return Math.abs(y-d)<$m&&Math.abs(m)<$m?[d,0]:[y,m]};return l.isStepper=!0,l.dt=s,l},ppe=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 GT(i);case"spring":return hpe();default:if(i.split("(")[0]==="cubic-bezier")return GT(i)}return typeof i=="function"?i:null};function Zd(e){"@babel/helpers - typeof";return Zd=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},Zd(e)}function YT(e){return gpe(e)||vpe(e)||zD(e)||mpe()}function mpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 334In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vpe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gpe(e){if(Array.isArray(e))return Vx(e)}function XT(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?XT(Object(r),!0).forEach(function(n){zx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zx(e,t,r){return t=ype(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ype(e){var t=bpe(e,"string");return Zd(t)==="symbol"?t:String(t)}function bpe(e,t){if(Zd(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Zd(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xpe(e,t){return Spe(e)||_pe(e,t)||zD(e,t)||wpe()}function wpe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 335In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zD(e,t){if(e){if(typeof e=="string")return Vx(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 Vx(e,t)}}function Vx(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 _pe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Spe(e){if(Array.isArray(e))return e}var Rm=function(t,r,n){return t+(r-t)*n},Wx=function(t){var r=t.from,n=t.to;return r!==n},Epe=function e(t,r,n){var i=Mu(function(a,o){if(Wx(o)){var s=t(o.from,o.to,o.velocity),l=xpe(s,2),c=l[0],u=l[1];return Vt(Vt({},o),{},{from:c,velocity:u})}return o},r);return n<1?Mu(function(a,o){return Wx(o)?Vt(Vt({},o),{},{velocity:Rm(o.velocity,i[a].velocity,n),from:Rm(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const kpe=function(e,t,r,n,i){var a=tpe(e,t),o=a.reduce(function(y,b){return Vt(Vt({},y),{},zx({},b,[e[b],t[b]]))},{}),s=a.reduce(function(y,b){return Vt(Vt({},y),{},zx({},b,{from:e[b],velocity:0,to:t[b]}))},{}),l=-1,c,u,d=function(){return null},f=function(){return Mu(function(b,g){return g.from},s)},p=function(){return!Object.values(s).filter(Wx).length},v=function(b){c||(c=b);var g=b-c,x=g/r.dt;s=Epe(r,s,x),i(Vt(Vt(Vt({},e),t),f())),c=b,p()||(l=requestAnimationFrame(d))},m=function(b){u||(u=b);var g=(b-u)/n,x=Mu(function(_,E){return Rm.apply(void 0,YT(E).concat([r(g)]))},o);if(i(Vt(Vt(Vt({},e),t),x)),g<1)l=requestAnimationFrame(d);else{var w=Mu(function(_,E){return Rm.apply(void 0,YT(E).concat([r(1)]))},o);i(Vt(Vt(Vt({},e),t),w))}};return d=r.isStepper?v:m,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(l)}}};function Gl(e){"@babel/helpers - typeof";return Gl=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},Gl(e)}var Ope=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Ape(e,t){if(e==null)return{};var r=Tpe(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 Tpe(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 i0(e){return Npe(e)||Cpe(e)||Ppe(e)||jpe()}function jpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 336In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ppe(e,t){if(e){if(typeof e=="string")return Hx(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 Hx(e,t)}}function Cpe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Npe(e){if(Array.isArray(e))return Hx(e)}function Hx(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 ZT(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 On(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZT(Object(r),!0).forEach(function(n){vu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vu(e,t,r){return t=VD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rpe(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,VD(n.key),n)}}function Ipe(e,t,r){return t&&Rpe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VD(e){var t=Mpe(e,"string");return Gl(t)==="symbol"?t:String(t)}function Mpe(e,t){if(Gl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dpe(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&&qx(e,t)}function qx(e,t){return qx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qx(e,t)}function Lpe(e){var t=Bpe();return function(){var n=Im(e),i;if(t){var a=Im(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Kx(this,i)}}function Kx(e,t){if(t&&(Gl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gx(e)}function Gx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bpe(){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 Im(e){return Im=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Im(e)}var oa=function(e){Dpe(r,e);var t=Lpe(r);function r(n,i){var a;$pe(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,c=o.from,u=o.to,d=o.steps,f=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Gx(a)),a.changeStyle=a.changeStyle.bind(Gx(a)),!s||p<=0)return a.state={style:{}},typeof f=="function"&&(a.state={style:u}),Kx(a);if(d&&d.length)a.state={style:d[0].style};else if(c){if(typeof f=="function")return a.state={style:c},Kx(a);a.state={style:l?vu({},l,c):c}}else a.state={style:{}};return a}return Ipe(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,c=a.shouldReAnimate,u=a.to,d=a.from,f=this.state.style;if(s){if(!o){var p={style:l?vu({},l,u):u};this.state&&f&&(l&&f[l]!==u||!l&&f!==u)&&this.setState(p);return}if(!(Hhe(i.to,u)&&i.canBegin&&i.isActive)){var v=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=v||c?d:i.to;if(this.state&&f){var y={style:l?vu({},l,m):m};(l&&f[l]!==m||!l&&f!==m)&&this.setState(y)}this.runAnimation(On(On({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,c=i.easing,u=i.begin,d=i.onAnimationEnd,f=i.onAnimationStart,p=kpe(o,s,ppe(c),l,this.changeStyle),v=function(){a.stopJSAnimation=p()};this.manager.start([f,u,v,l,d])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,c=o[0],u=c.style,d=c.duration,f=d===void 0?0:d,p=function(m,y,b){if(b===0)return m;var g=y.duration,x=y.easing,w=x===void 0?"ease":x,_=y.style,E=y.properties,k=y.onAnimationEnd,O=b>0?o[b-1]:y,P=E||Object.keys(_);if(typeof w=="function"||w==="spring")return[].concat(i0(m),[a.runJSAnimation.bind(a,{from:O.style,to:_,duration:g,easing:w}),g]);var C=qT(P,g,w),R=On(On(On({},O.style),_),{},{transition:C});return[].concat(i0(m),[R,g,k]).filter(rpe)};return this.manager.start([l].concat(i0(o.reduce(p,[u,Math.max(f,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Jhe());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,c=i.easing,u=i.onAnimationStart,d=i.onAnimationEnd,f=i.steps,p=i.children,v=this.manager;if(this.unSubscribe=v.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(i);return}if(f.length>1){this.runStepAnimation(i);return}var m=s?vu({},s,l):l,y=qT(Object.keys(m),o,c);v.start([u,a,On(On({},m),{},{transition:y}),o,d])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=Ape(i,Ope),c=S.Children.count(a),u=this.state.style;if(typeof a=="function")return a(u);if(!s||c===0||o<=0)return a;var d=function(p){var v=p.props,m=v.style,y=m===void 0?{}:m,b=v.className,g=S.cloneElement(p,On(On({},l),{},{style:On(On({},y),u),className:b}));return g};return c===1?d(S.Children.only(a)):A.createElement("div",null,S.Children.map(a,function(f){return d(f)}))}}]),r}(S.PureComponent);oa.displayName="Animate";oa.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};oa.propTypes={from:Oe.oneOfType([Oe.object,Oe.string]),to:Oe.oneOfType([Oe.object,Oe.string]),attributeName:Oe.string,duration:Oe.number,begin:Oe.number,easing:Oe.oneOfType([Oe.string,Oe.func]),steps:Oe.arrayOf(Oe.shape({duration:Oe.number.isRequired,style:Oe.object.isRequired,easing:Oe.oneOfType([Oe.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Oe.func]),properties:Oe.arrayOf("string"),onAnimationEnd:Oe.func})),children:Oe.oneOfType([Oe.node,Oe.func]),isActive:Oe.bool,canBegin:Oe.bool,onAnimationEnd:Oe.func,shouldReAnimate:Oe.bool,onAnimationStart:Oe.func,onAnimationReStart:Oe.func};Oe.object,Oe.object,Oe.object,Oe.element;Oe.object,Oe.object,Oe.object,Oe.oneOfType([Oe.array,Oe.element]),Oe.any;function Jd(e){"@babel/helpers - typeof";return Jd=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},Jd(e)}function Mm(){return Mm=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},Mm.apply(this,arguments)}function Fpe(e,t){return Wpe(e)||Vpe(e,t)||zpe(e,t)||Upe()}function Upe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 337In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zpe(e,t){if(e){if(typeof e=="string")return JT(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 JT(e,t)}}function JT(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 Vpe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Wpe(e){if(Array.isArray(e))return e}function QT(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 ej(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QT(Object(r),!0).forEach(function(n){Hpe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hpe(e,t,r){return t=qpe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qpe(e){var t=Kpe(e,"string");return Jd(t)=="symbol"?t:t+""}function Kpe(e,t){if(Jd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Jd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tj=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,u;if(o>0&&a instanceof Array){for(var d=[0,0,0,0],f=0,p=4;f<p;f++)d[f]=a[f]>o?o:a[f];u="M".concat(t,",").concat(r+s*d[0]),d[0]>0&&(u+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(c,",").concat(t+l*d[0],",").concat(r)),u+="L ".concat(t+n-l*d[1],",").concat(r),d[1]>0&&(u+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(c,`, 338 `).concat(t+n,",").concat(r+s*d[1])),u+="L ".concat(t+n,",").concat(r+i-s*d[2]),d[2]>0&&(u+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(c,`, 339 `).concat(t+n-l*d[2],",").concat(r+i)),u+="L ".concat(t+l*d[3],",").concat(r+i),d[3]>0&&(u+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(c,`, 340 `).concat(t,",").concat(r+i-s*d[3])),u+="Z"}else if(o>0&&a===+a&&a>0){var v=Math.min(o,a);u="M ".concat(t,",").concat(r+s*v,` 341 A `).concat(v,",").concat(v,",0,0,").concat(c,",").concat(t+l*v,",").concat(r,` 342 L `).concat(t+n-l*v,",").concat(r,` 343 A `).concat(v,",").concat(v,",0,0,").concat(c,",").concat(t+n,",").concat(r+s*v,` 344 L `).concat(t+n,",").concat(r+i-s*v,` 345 A `).concat(v,",").concat(v,",0,0,").concat(c,",").concat(t+n-l*v,",").concat(r+i,` 346 L `).concat(t+l*v,",").concat(r+i,` 347 A `).concat(v,",").concat(v,",0,0,").concat(c,",").concat(t,",").concat(r+i-s*v," Z")}else u="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return u},Gpe=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var c=Math.min(a,a+s),u=Math.max(a,a+s),d=Math.min(o,o+l),f=Math.max(o,o+l);return n>=c&&n<=u&&i>=d&&i<=f}return!1},Ype={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},z_=function(t){var r=ej(ej({},Ype),t),n=S.useRef(),i=S.useState(-1),a=Fpe(i,2),o=a[0],s=a[1];S.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&s(w)}catch{}},[]);var l=r.x,c=r.y,u=r.width,d=r.height,f=r.radius,p=r.className,v=r.animationEasing,m=r.animationDuration,y=r.animationBegin,b=r.isAnimationActive,g=r.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||d!==+d||u===0||d===0)return null;var x=Le("recharts-rectangle",p);return g?A.createElement(oa,{canBegin:o>0,from:{width:u,height:d,x:l,y:c},to:{width:u,height:d,x:l,y:c},duration:m,animationEasing:v,isActive:g},function(w){var _=w.width,E=w.height,k=w.x,O=w.y;return A.createElement(oa,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:m,isActive:b,easing:v},A.createElement("path",Mm({},$e(r,!0),{className:x,d:tj(k,O,_,E,f),ref:n})))}):A.createElement("path",Mm({},$e(r,!0),{className:x,d:tj(l,c,u,d,f)}))};function Yx(){return Yx=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},Yx.apply(this,arguments)}var V_=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Le("recharts-dot",a);return r===+r&&n===+n&&i===+i?A.createElement("circle",Yx({},$e(t,!1),tm(t),{className:o,cx:r,cy:n,r:i})):null};function Qd(e){"@babel/helpers - typeof";return Qd=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},Qd(e)}var Xpe=["x","y","top","left","width","height","className"];function Xx(){return Xx=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},Xx.apply(this,arguments)}function rj(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 Zpe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rj(Object(r),!0).forEach(function(n){Jpe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jpe(e,t,r){return t=Qpe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qpe(e){var t=eme(e,"string");return Qd(t)=="symbol"?t:t+""}function eme(e,t){if(Qd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tme(e,t){if(e==null)return{};var r=rme(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 rme(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 nme=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},ime=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,c=l===void 0?0:l,u=t.width,d=u===void 0?0:u,f=t.height,p=f===void 0?0:f,v=t.className,m=tme(t,Xpe),y=Zpe({x:n,y:a,top:s,left:c,width:d,height:p},m);return!Q(n)||!Q(a)||!Q(d)||!Q(p)||!Q(s)||!Q(c)?null:A.createElement("path",Xx({},$e(y,!0),{className:Le("recharts-cross",v),d:nme(n,a,d,p,s,c)}))},ame=rM,ome=ame(Object.getPrototypeOf,Object),sme=ome,lme=la,cme=sme,ume=ca,dme="[object Object]",fme=Function.prototype,hme=Object.prototype,WD=fme.toString,pme=hme.hasOwnProperty,mme=WD.call(Object);function vme(e){if(!ume(e)||lme(e)!=dme)return!1;var t=cme(e);if(t===null)return!0;var r=pme.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&WD.call(r)==mme}var gme=vme;const yme=Ue(gme);var bme=la,xme=ca,wme="[object Boolean]";function _me(e){return e===!0||e===!1||xme(e)&&bme(e)==wme}var Sme=_me;const Eme=Ue(Sme);function ef(e){"@babel/helpers - typeof";return ef=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},ef(e)}function Dm(){return Dm=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},Dm.apply(this,arguments)}function kme(e,t){return jme(e)||Tme(e,t)||Ame(e,t)||Ome()}function Ome(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 348In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ame(e,t){if(e){if(typeof e=="string")return nj(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 nj(e,t)}}function nj(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 Tme(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function jme(e){if(Array.isArray(e))return e}function ij(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 aj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ij(Object(r),!0).forEach(function(n){Pme(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ij(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pme(e,t,r){return t=Cme(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cme(e){var t=Nme(e,"string");return ef(t)=="symbol"?t:t+""}function Nme(e,t){if(ef(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ef(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oj=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},$me={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Rme=function(t){var r=aj(aj({},$me),t),n=S.useRef(),i=S.useState(-1),a=kme(i,2),o=a[0],s=a[1];S.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var l=r.x,c=r.y,u=r.upperWidth,d=r.lowerWidth,f=r.height,p=r.className,v=r.animationEasing,m=r.animationDuration,y=r.animationBegin,b=r.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||d!==+d||f!==+f||u===0&&d===0||f===0)return null;var g=Le("recharts-trapezoid",p);return b?A.createElement(oa,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:f,x:l,y:c},to:{upperWidth:u,lowerWidth:d,height:f,x:l,y:c},duration:m,animationEasing:v,isActive:b},function(x){var w=x.upperWidth,_=x.lowerWidth,E=x.height,k=x.x,O=x.y;return A.createElement(oa,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:m,easing:v},A.createElement("path",Dm({},$e(r,!0),{className:g,d:oj(k,O,w,_,E),ref:n})))}):A.createElement("g",null,A.createElement("path",Dm({},$e(r,!0),{className:g,d:oj(l,c,u,d,f)})))},Ime=["option","shapeType","propTransformer","activeClassName","isActive"];function tf(e){"@babel/helpers - typeof";return tf=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},tf(e)}function Mme(e,t){if(e==null)return{};var r=Dme(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 Dme(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 sj(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 Lm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sj(Object(r),!0).forEach(function(n){Lme(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lme(e,t,r){return t=Bme(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bme(e){var t=Fme(e,"string");return tf(t)=="symbol"?t:t+""}function Fme(e,t){if(tf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ume(e,t){return Lm(Lm({},t),e)}function zme(e,t){return e==="symbols"}function lj(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return A.createElement(z_,r);case"trapezoid":return A.createElement(Rme,r);case"sector":return A.createElement(ND,r);case"symbols":if(zme(t))return A.createElement(o_,r);break;default:return null}}function Vme(e){return S.isValidElement(e)?e.props:e}function Wme(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?Ume:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=Mme(e,Ime),c;if(S.isValidElement(t))c=S.cloneElement(t,Lm(Lm({},l),Vme(t)));else if(Pe(t))c=t(l);else if(yme(t)&&!Eme(t)){var u=i(t,l);c=A.createElement(lj,{shapeType:r,elementProps:u})}else{var d=l;c=A.createElement(lj,{shapeType:r,elementProps:d})}return s?A.createElement(ft,{className:o},c):c}function Eg(e,t){return t!=null&&"trapezoids"in e.props}function kg(e,t){return t!=null&&"sectors"in e.props}function rf(e,t){return t!=null&&"points"in e.props}function Hme(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 qme(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function Kme(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function Gme(e,t){var r;return Eg(e,t)?r=Hme:kg(e,t)?r=qme:rf(e,t)&&(r=Kme),r}function Yme(e,t){var r;return Eg(e,t)?r="trapezoids":kg(e,t)?r="sectors":rf(e,t)&&(r="points"),r}function Xme(e,t){if(Eg(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(kg(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 rf(e,t)?t.payload:{}}function Zme(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=Yme(r,t),a=Xme(r,t),o=n.filter(function(l,c){var u=Bd(a,l),d=r.props[i].filter(function(v){var m=Gme(r,t);return m(v,t)}),f=r.props[i].indexOf(d[d.length-1]),p=c===f;return u&&p}),s=n.indexOf(o[o.length-1]);return s}var Jme=Math.ceil,Qme=Math.max;function eve(e,t,r,n){for(var i=-1,a=Qme(Jme((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var tve=eve,rve=wM,cj=1/0,nve=17976931348623157e292;function ive(e){if(!e)return e===0?e:0;if(e=rve(e),e===cj||e===-cj){var t=e<0?-1:1;return t*nve}return e===e?e:0}var HD=ive,ave=tve,ove=hg,a0=HD;function sve(e){return function(t,r,n){return n&&typeof n!="number"&&ove(t,r,n)&&(r=n=void 0),t=a0(t),r===void 0?(r=t,t=0):r=a0(r),n=n===void 0?t<r?1:-1:a0(n),ave(t,r,n,e)}}var lve=sve,cve=lve,uve=cve(),dve=uve;const Bm=Ue(dve);function nf(e){"@babel/helpers - typeof";return nf=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},nf(e)}function uj(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 dj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uj(Object(r),!0).forEach(function(n){qD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qD(e,t,r){return t=fve(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fve(e){var t=hve(e,"string");return nf(t)=="symbol"?t:t+""}function hve(e,t){if(nf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(nf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pve=["Webkit","Moz","O","ms"],mve=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=pve.reduce(function(a,o){return dj(dj({},a),{},qD({},o+n,r))},{});return i[t]=r,i};function Yl(e){"@babel/helpers - typeof";return Yl=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},Yl(e)}function Fm(){return Fm=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},Fm.apply(this,arguments)}function fj(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 o0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fj(Object(r),!0).forEach(function(n){Br(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hj(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,GD(n.key),n)}}function gve(e,t,r){return t&&hj(e.prototype,t),r&&hj(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function yve(e,t,r){return t=Um(t),bve(e,KD()?Reflect.construct(t,r||[],Um(e).constructor):t.apply(e,r))}function bve(e,t){if(t&&(Yl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xve(e)}function xve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KD=function(){return!!e})()}function Um(e){return Um=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Um(e)}function wve(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&&Zx(e,t)}function Zx(e,t){return Zx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zx(e,t)}function Br(e,t,r){return t=GD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GD(e){var t=_ve(e,"string");return Yl(t)=="symbol"?t:t+""}function _ve(e,t){if(Yl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Yl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sve=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,c=$u().domain(Bm(0,l)).range([a,a+o-s]),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}},pj=function(t){return t.changedTouches&&!!t.changedTouches.length},Xl=function(e){function t(r){var n;return vve(this,t),n=yve(this,t,[r]),Br(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Br(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Br(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),Br(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Br(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Br(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Br(n,"handleSlideDragStart",function(i){var a=pj(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 wve(t,e),gve(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,o=this.state.scaleValues,s=this.props,l=s.gap,c=s.data,u=c.length-1,d=Math.min(i,a),f=Math.max(i,a),p=t.getIndexInRange(o,d),v=t.getIndexInRange(o,f);return{startIndex:p-p%l,endIndex:v===u?u:v-v%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=Qr(a[n],s,n);return Pe(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,c=l.x,u=l.width,d=l.travellerWidth,f=l.startIndex,p=l.endIndex,v=l.onChange,m=n.pageX-a;m>0?m=Math.min(m,c+u-d-s,c+u-d-o):m<0&&(m=Math.max(m,c-o,c-s));var y=this.getIndex({startX:o+m,endX:s+m});(y.startIndex!==f||y.endIndex!==p)&&v&&v(y),this.setState({startX:o+m,endX:s+m,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=pj(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,c=this.state[o],u=this.props,d=u.x,f=u.width,p=u.travellerWidth,v=u.onChange,m=u.gap,y=u.data,b={startX:this.state.startX,endX:this.state.endX},g=n.pageX-a;g>0?g=Math.min(g,d+f-p-c):g<0&&(g=Math.max(g,d-c)),b[o]=c+g;var x=this.getIndex(b),w=x.startIndex,_=x.endIndex,E=function(){var O=y.length-1;return o==="startX"&&(s>l?w%m===0:_%m===0)||s<l&&_===O||o==="endX"&&(s>l?_%m===0:w%m===0)||s>l&&_===O};this.setState(Br(Br({},o,c+g),"brushMoveStartX",n.pageX),function(){v&&E()&&v(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,c=o.endX,u=this.state[i],d=s.indexOf(u);if(d!==-1){var f=d+n;if(!(f===-1||f>=s.length)){var p=s[f];i==="startX"&&p>=c||i==="endX"&&p<=l||this.setState(Br({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,c=n.stroke;return A.createElement("rect",{stroke:c,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,c=n.children,u=n.padding,d=S.Children.only(c);return d?A.cloneElement(d,{x:i,y:a,width:o,height:s,margin:u,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,c=l.y,u=l.travellerWidth,d=l.height,f=l.traveller,p=l.ariaLabel,v=l.data,m=l.startIndex,y=l.endIndex,b=Math.max(n,this.props.x),g=o0(o0({},$e(this.props,!1)),{},{x:b,y:c,width:u,height:d}),x=p||"Min value: ".concat((a=v[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=v[y])===null||o===void 0?void 0:o.name);return A.createElement(ft,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(_){["ArrowLeft","ArrowRight"].includes(_.key)&&(_.preventDefault(),_.stopPropagation(),s.handleTravellerMoveKeyboard(_.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,g))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,c=a.travellerWidth,u=Math.min(n,i)+c,d=Math.max(Math.abs(i-n)-c,0);return A.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:u,y:o,width:d,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,c=n.stroke,u=this.state,d=u.startX,f=u.endX,p=5,v={pointerEvents:"none",fill:c};return A.createElement(ft,{className:"recharts-brush-texts"},A.createElement(vm,Fm({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,f)-p,y:o+s/2},v),this.getTextOfTick(i)),A.createElement(vm,Fm({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,f)+l+p,y:o+s/2},v),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,c=n.width,u=n.height,d=n.alwaysShowText,f=this.state,p=f.startX,v=f.endX,m=f.isTextActive,y=f.isSlideMoving,b=f.isTravellerMoving,g=f.isTravellerFocused;if(!i||!i.length||!Q(s)||!Q(l)||!Q(c)||!Q(u)||c<=0||u<=0)return null;var x=Le("recharts-brush",a),w=A.Children.count(o)===1,_=mve("userSelect","none");return A.createElement(ft,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:_}
348,this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(p,v),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(v,"endX"),(m||y||b||g||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,c=Math.floor(a+s/2)-1;return A.createElement(A.Fragment,null,A.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),A.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),A.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return A.isValidElement(n)?a=A.cloneElement(n,i):Pe(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,c=n.updateId,u=n.startIndex,d=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return o0({prevData:a,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:o},a&&a.length?Sve({data:a,width:o,x:s,travellerWidth:l,startIndex:u,endIndex:d}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var f=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:o,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,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])}(S.PureComponent);Br(Xl,"displayName","Brush");Br(Xl,"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 Eve=h_;function kve(e,t){var r;return Eve(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var Ove=kve,Ave=GI,Tve=mo,jve=Ove,Pve=Dr,Cve=hg;function Nve(e,t,r){var n=Pve(e)?Ave:jve;return r&&Cve(e,t,r)&&(t=void 0),n(e,Tve(t))}var $ve=Nve;const Rve=Ue($ve);var bi=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},mj=vM;function Ive(e,t,r){t=="__proto__"&&mj?mj(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Mve=Ive,Dve=Mve,Lve=pM,Bve=mo;function Fve(e,t){var r={};return t=Bve(t),Lve(e,function(n,i,a){Dve(r,i,t(n,i,a))}),r}var Uve=Fve;const zve=Ue(Uve);function Vve(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 Wve=Vve,Hve=h_;function qve(e,t){var r=!0;return Hve(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var Kve=qve,Gve=Wve,Yve=Kve,Xve=mo,Zve=Dr,Jve=hg;function Qve(e,t,r){var n=Zve(e)?Gve:Yve;return r&&Jve(e,t,r)&&(t=void 0),n(e,Xve(t))}var ege=Qve;const YD=Ue(ege);var tge=["x","y"];function af(e){"@babel/helpers - typeof";return af=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},af(e)}function Jx(){return Jx=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},Jx.apply(this,arguments)}function vj(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 iu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vj(Object(r),!0).forEach(function(n){rge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rge(e,t,r){return t=nge(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nge(e){var t=ige(e,"string");return af(t)=="symbol"?t:t+""}function ige(e,t){if(af(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");
vendor: 112,201 bytes, lines 348-352
348if(af(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function age(e,t){if(e==null)return{};var r=oge(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 oge(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 sge(e,t){var r=e.x,n=e.y,i=age(e,tge),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),c="".concat(t.height||i.height),u=parseInt(c,10),d="".concat(t.width||i.width),f=parseInt(d,10);return iu(iu(iu(iu(iu({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:u,width:f,name:t.name,radius:t.radius})}function gj(e){return A.createElement(Wme,Jx({shapeType:"rectangle",propTransformer:sge,activeClassName:"recharts-active-bar"},e))}var lge=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=typeof n=="number";return a?t(n,i):(a||cs(),r)}},cge=["value","background"],XD;function Zl(e){"@babel/helpers - typeof";return Zl=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},Zl(e)}function uge(e,t){if(e==null)return{};var r=dge(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 dge(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 zm(){return zm=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},zm.apply(this,arguments)}function yj(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 Tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yj(Object(r),!0).forEach(function(n){La(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bj(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,JD(n.key),n)}}function hge(e,t,r){return t&&bj(e.prototype,t),r&&bj(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pge(e,t,r){return t=Vm(t),mge(e,ZD()?Reflect.construct(t,r||[],Vm(e).constructor):t.apply(e,r))}function mge(e,t){if(t&&(Zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vge(e)}function vge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZD=function(){return!!e})()}function Vm(e){return Vm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vm(e)}function gge(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&&Qx(e,t)}function Qx(e,t){return Qx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qx(e,t)}function La(e,t,r){return t=JD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JD(e){var t=yge(e,"string");return Zl(t)=="symbol"?t:t+""}function yge(e,t){if(Zl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Zl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ys=function(e){function t(){var r;fge(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=pge(this,t,[].concat(i)),La(r,"state",{isAnimationFinished:!1}),La(r,"id",kf("recharts-bar-")),La(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),La(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return gge(t,e),hge(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,c=a.activeBar,u=$e(this.props,!1);return n&&n.map(function(d,f){var p=f===l,v=p?c:o,m=Tt(Tt(Tt({},u),d),{},{isActive:p,option:v,index:f,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return A.createElement(ft,zm({className:"recharts-bar-rectangle"},rm(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)}),A.createElement(gj,m))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,c=i.animationDuration,u=i.animationEasing,d=i.animationId,f=this.state.prevData;return A.createElement(oa,{begin:l,duration:c,isActive:s,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var v=p.t,m=a.map(function(y,b){var g=f&&f[b];if(g){var x=pn(g.x,y.x),w=pn(g.y,y.y),_=pn(g.width,y.width),E=pn(g.height,y.height);return Tt(Tt({},y),{},{x:x(v),y:w(v),width:_(v),height:E(v)})}if(o==="horizontal"){var k=pn(0,y.height),O=k(v);return Tt(Tt({},y),{},{y:y.y+y.height-O,height:O})}var P=pn(0,y.width),C=P(v);return Tt(Tt({},y),{},{width:C})});return A.createElement(ft,null,n.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Bd(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=$e(this.props.background,!1);return a.map(function(c,u){c.value;var d=c.background,f=uge(c,cge);if(!d)return null;var p=Tt(Tt(Tt(Tt(Tt({},f),{},{fill:"#eee"},d),l),rm(n.props,c,u)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:u,className:"recharts-bar-background-rectangle"});return A.createElement(gj,zm({key:"background-bar-".concat(u),option:n.props.background,isActive:u===s},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,c=a.layout,u=a.children,d=Kn(u,Sg);if(!d)return null;var f=c==="vertical"?o[0].height/2:o[0].width/2,p=function(y,b){var g=Array.isArray(y.value)?y.value[1]:y.value;return{x:y.x,y:y.y,value:g,errorVal:Qr(y,b)}},v={clipPath:n?"url(#clipPath-".concat(i,")"):null};return A.createElement(ft,v,d.map(function(m){return A.cloneElement(m,{key:"error-bar-".concat(i,"-").concat(m.props.dataKey),data:o,xAxis:s,yAxis:l,layout:c,offset:f,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,c=n.left,u=n.top,d=n.width,f=n.height,p=n.isAnimationActive,v=n.background,m=n.id;if(i||!a||!a.length)return null;var y=this.state.isAnimationFinished,b=Le("recharts-bar",o),g=s&&s.allowDataOverflow,x=l&&l.allowDataOverflow,w=g||x,_=Ie(m)?this.id:m;return A.createElement(ft,{className:b},g||x?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(_)},A.createElement("rect",{x:g?c:c-d/2,y:x?u:u-f/2,width:g?d:d*2,height:x?f:f*2}))):null,A.createElement(ft,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(_,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,_),(!p||y)&&Ya.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}}])}(S.PureComponent);XD=ys;La(ys,"displayName","Bar");La(ys,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Gi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});La(ys,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=ife(n,r);if(!p)return null;var v=t.layout,m=r.type.defaultProps,y=m!==void 0?Tt(Tt({},m),r.props):r.props,b=y.dataKey,g=y.children,x=y.minPointSize,w=v==="horizontal"?o:a,_=c?w.scale.domain():null,E=ffe({numericAxis:w}),k=Kn(g,v_),O=d.map(function(P,C){var R,T,I,N,L,M;c?R=afe(c[u+C],_):(R=Qr(P,b),Array.isArray(R)||(R=[E,R]));var F=lge(x,XD.defaultProps.minPointSize)(R[1],C);if(v==="horizontal"){var j,B=[o.scale(R[0]),o.scale(R[1])],q=B[0],V=B[1];T=yT({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:P,index:C}),I=(j=V??q)!==null&&j!==void 0?j:void 0,N=p.size;var H=q-V;if(L=Number.isNaN(H)?0:H,M={x:T,y:o.y,width:N,height:o.height},Math.abs(F)>0&&Math.abs(L)<Math.abs(F)){var J=zn(L||F)*(Math.abs(F)-Math.abs(L));I-=J,L+=J}}else{var fe=[a.scale(R[0]),a.scale(R[1])],Ce=fe[0],ve=fe[1];if(T=Ce,I=yT({axis:o,ticks:l,bandSize:i,offset:p.offset,entry:P,index:C}),N=ve-Ce,L=p.size,M={x:a.x,y:I,width:a.width,height:L},Math.abs(F)>0&&Math.abs(N)<Math.abs(F)){var ae=zn(N||F)*(Math.abs(F)-Math.abs(N));N+=ae}}return Tt(Tt(Tt({},P),{},{x:T,y:I,width:N,height:L,value:c?R:R[1],payload:P,background:M},k&&k[C]&&k[C].props),{},{tooltipPayload:[jD(r,P)],tooltipPosition:{x:T+N/2,y:I+L/2}})});return Tt({data:O,layout:v},f)});function of(e){"@babel/helpers - typeof";return of=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},of(e)}function bge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xj(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,QD(n.key),n)}}function xge(e,t,r){return t&&xj(e.prototype,t),r&&xj(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wj(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 In(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wj(Object(r),!0).forEach(function(n){Og(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Og(e,t,r){return t=QD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QD(e){var t=wge(e,"string");return of(t)=="symbol"?t:t+""}function wge(e,t){if(of(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(of(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eL=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,c=t.children,u=Object.keys(r),d={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},f=!!Vr(c,ys);return u.reduce(function(p,v){var m=r[v],y=m.orientation,b=m.domain,g=m.padding,x=g===void 0?{}:g,w=m.mirror,_=m.reversed,E="".concat(y).concat(w?"Mirror":""),k,O,P,C,R;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var T=b[1]-b[0],I=1/0,N=m.categoricalDomain.sort();if(N.forEach(function(fe,Ce){Ce>0&&(I=Math.min((fe||0)-(N[Ce-1]||0),I))}),Number.isFinite(I)){var L=I/T,M=m.layout==="vertical"?n.height:n.width;if(m.padding==="gap"&&(k=L*M/2),m.padding==="no-gap"){var F=ss(t.barCategoryGap,L*M),j=L*M/2;k=j-F-(j-F)/M*F}}}i==="xAxis"?O=[n.left+(x.left||0)+(k||0),n.left+n.width-(x.right||0)-(k||0)]:i==="yAxis"?O=l==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(k||0),n.top+n.height-(x.bottom||0)-(k||0)]:O=m.range,_&&(O=[O[1],O[0]]);var B=rfe(m,a,f),q=B.scale,V=B.realScaleType;q.domain(b).range(O),nfe(q);var H=dfe(q,In(In({},m),{},{realScaleType:V}));i==="xAxis"?(R=y==="top"&&!w||y==="bottom"&&w,P=n.left,C=d[E]-R*m.height):i==="yAxis"&&(R=y==="left"&&!w||y==="right"&&w,P=d[E]-R*m.width,C=n.top);var J=In(In(In({},m),H),{},{realScaleType:V,x:P,y:C,scale:q,width:i==="xAxis"?n.width:m.width,height:i==="yAxis"?n.height:m.height});return J.bandSize=Pm(J,H),!m.hide&&i==="xAxis"?d[E]+=(R?-1:1)*J.height:m.hide||(d[E]+=(R?-1:1)*J.width),In(In({},p),{},Og({},v,J))},{})},tL=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},_ge=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return tL({x:r,y:n},{x:i,y:a})},rL=function(){function e(t){bge(this,e),this.scale=t}return xge(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 o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}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)}}])}();Og(rL,"EPS",1e-4);var W_=function(t){var r=Object.keys(t).reduce(function(n,i){return In(In({},n),{},Og({},i,rL.create(t[i])))},{});return In(In({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return zve(i,function(l,c){return r[c].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return YD(i,function(a,o){return r[o].isInRange(a)})}})};function Sge(e){return(e%180+180)%180}var Ege=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Sge(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},kge=mo,Oge=Of,Age=dg;function Tge(e){return function(t,r,n){var i=Object(t);if(!Oge(t)){var a=kge(r);t=Age(t),r=function(s){return a(i[s],s,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var jge=Tge,Pge=HD;function Cge(e){var t=Pge(e),r=t%1;return t===t?r?t-r:t:0}var Nge=Cge,$ge=lM,Rge=mo,Ige=Nge,Mge=Math.max;function Dge(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:Ige(r);return i<0&&(i=Mge(n+i,0)),$ge(e,Rge(t),i)}var Lge=Dge,Bge=jge,Fge=Lge,Uge=Bge(Fge),zge=Uge;const Vge=Ue(zge);var Wge=zY(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("")}),H_=S.createContext(void 0),q_=S.createContext(void 0),nL=S.createContext(void 0),iL=S.createContext({}),aL=S.createContext(void 0),oL=S.createContext(0),sL=S.createContext(0),_j=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,c=t.height,u=Wge(a);return A.createElement(H_.Provider,{value:n},A.createElement(q_.Provider,{value:i},A.createElement(iL.Provider,{value:a},A.createElement(nL.Provider,{value:u},A.createElement(aL.Provider,{value:o},A.createElement(oL.Provider,{value:c},A.createElement(sL.Provider,{value:l},s)))))))},Hge=function(){return S.useContext(aL)},lL=function(t){var r=S.useContext(H_);r==null&&cs();var n=r[t];return n==null&&cs(),n},qge=function(){var t=S.useContext(H_);return Ta(t)},Kge=function(){var t=S.useContext(q_),r=Vge(t,function(n){return YD(n.domain,Number.isFinite)});return r||Ta(t)},cL=function(t){var r=S.useContext(q_);r==null&&cs();var n=r[t];return n==null&&cs(),n},Gge=function(){var t=S.useContext(nL);return t},Yge=function(){return S.useContext(iL)},K_=function(){return S.useContext(sL)},G_=function(){return S.useContext(oL)};function Jl(e){"@babel/helpers - typeof";return Jl=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},Jl(e)}function Xge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zge(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,dL(n.key),n)}}function Jge(e,t,r){return t&&Zge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qge(e,t,r){return t=Wm(t),eye(e,uL()?Reflect.construct(t,r||[],Wm(e).constructor):t.apply(e,r))}function eye(e,t){if(t&&(Jl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tye(e)}function tye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uL=function(){return!!e})()}function Wm(e){return Wm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wm(e)}function rye(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&&ew(e,t)}function ew(e,t){return ew=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ew(e,t)}function Sj(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 Ej(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sj(Object(r),!0).forEach(function(n){Y_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y_(e,t,r){return t=dL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dL(e){var t=nye(e,"string");return Jl(t)=="symbol"?t:t+""}function nye(e,t){if(Jl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Jl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iye(e,t){return lye(e)||sye(e,t)||oye(e,t)||aye()}function aye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 349In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oye(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 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 sye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function lye(e){if(Array.isArray(e))return e}function tw(){return tw=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},tw.apply(this,arguments)}var cye=function(t,r){var n;return A.isValidElement(t)?n=A.cloneElement(t,r):Pe(t)?n=t(r):n=A.createElement("line",tw({},r,{className:"recharts-reference-line-line"})),n},uye=function(t,r,n,i,a,o,s,l,c){var u=a.x,d=a.y,f=a.width,p=a.height;if(n){var v=c.y,m=t.y.apply(v,{position:o});if(bi(c,"discard")&&!t.y.isInRange(m))return null;var y=[{x:u+f,y:m},{x:u,y:m}];return l==="left"?y.reverse():y}if(r){var b=c.x,g=t.x.apply(b,{position:o});if(bi(c,"discard")&&!t.x.isInRange(g))return null;var x=[{x:g,y:d+p},{x:g,y:d}];return s==="top"?x.reverse():x}if(i){var w=c.segment,_=w.map(function(E){return t.apply(E,{position:o})});return bi(c,"discard")&&Rve(_,function(E){return!t.isInRange(E)})?null:_}return null};function dye(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,c=Hge(),u=lL(i),d=cL(a),f=Gge();if(!c||!f)return null;Ki(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=W_({x:u.scale,y:d.scale}),v=Mt(t),m=Mt(r),y=n&&n.length===2,b=uye(p,v,m,y,f,e.position,u.orientation,d.orientation,e);if(!b)return null;var g=iye(b,2),x=g[0],w=x.x,_=x.y,E=g[1],k=E.x,O=E.y,P=bi(e,"hidden")?"url(#".concat(c,")"):void 0,C=Ej(Ej({clipPath:P},$e(e,!0)),{},{x1:w,y1:_,x2:k,y2:O});return A.createElement(ft,{className:Le("recharts-reference-line",s)},cye(o,C),nr.renderCallByParent(e,_ge({x1:w,y1:_,x2:k,y2:O})))}var X_=function(e){function t(){return Xge(this,t),Qge(this,t,arguments)}return rye(t,e),Jge(t,[{key:"render",value:function(){return A.createElement(dye,this.props)}}])}(A.Component);Y_(X_,"displayName","ReferenceLine");Y_(X_,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function rw(){return rw=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},rw.apply(this,arguments)}function Ql(e){"@babel/helpers - typeof";return Ql=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},Ql(e)}function Oj(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 Aj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Oj(Object(r),!0).forEach(function(n){Ag(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hye(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,hL(n.key),n)}}function pye(e,t,r){return t&&hye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mye(e,t,r){return t=Hm(t),vye(e,fL()?Reflect.construct(t,r||[],Hm(e).constructor):t.apply(e,r))}function vye(e,t){if(t&&(Ql(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gye(e)}function gye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fL=function(){return!!e})()}function Hm(e){return Hm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hm(e)}function yye(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&&nw(e,t)}function nw(e,t){return nw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nw(e,t)}function Ag(e,t,r){return t=hL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hL(e){var t=bye(e,"string");return Ql(t)=="symbol"?t:t+""}function bye(e,t){if(Ql(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ql(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xye=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=W_({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return bi(t,"discard")&&!o.isInRange(s)?null:s},Tg=function(e){function t(){return fye(this,t),mye(this,t,arguments)}return yye(t,e),pye(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,c=Mt(i),u=Mt(a);if(Ki(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var d=xye(this.props);if(!d)return null;var f=d.x,p=d.y,v=this.props,m=v.shape,y=v.className,b=bi(this.props,"hidden")?"url(#".concat(l,")"):void 0,g=Aj(Aj({clipPath:b},$e(this.props,!0)),{},{cx:f,cy:p});return A.createElement(ft,{className:Le("recharts-reference-dot",y)},t.renderDot(m,g),nr.renderCallByParent(this.props,{x:f-o,y:p-o,width:2*o,height:2*o}))}}])}(A.Component);Ag(Tg,"displayName","ReferenceDot");Ag(Tg,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Ag(Tg,"renderDot",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):Pe(e)?r=e(t):r=A.createElement(V_,rw({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function iw(){return iw=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},iw.apply(this,arguments)}function ec(e){"@babel/helpers - typeof";return ec=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},ec(e)}function Tj(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 jj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tj(Object(r),!0).forEach(function(n){jg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _ye(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,mL(n.key),n)}}function Sye(e,t,r){return t&&_ye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eye(e,t,r){return t=qm(t),kye(e,pL()?Reflect.construct(t,r||[],qm(e).constructor):t.apply(e,r))}function kye(e,t){if(t&&(ec(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oye(e)}function Oye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pL=function(){return!!e})()}function qm(e){return qm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qm(e)}function Aye(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&&aw(e,t)}function aw(e,t){return aw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},aw(e,t)}function jg(e,t,r){return t=mL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mL(e){var t=Tye(e,"string");return ec(t)=="symbol"?t:t+""}function Tye(e,t){if(ec(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ec(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jye=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,c=a.y2,u=a.xAxis,d=a.yAxis;if(!u||!d)return null;var f=W_({x:u.scale,y:d.scale}),p={x:t?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(l,{position:"start"}):f.y.rangeMin},v={x:r?f.x.apply(s,{position:"end"}):f.x.rangeMax,y:i?f.y.apply(c,{position:"end"}):f.y.rangeMax};return bi(a,"discard")&&(!f.isInRange(p)||!f.isInRange(v))?null:tL(p,v)},Pg=function(e){function t(){return wye(this,t),Eye(this,t,arguments)}return Aye(t,e),Sye(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,c=n.alwaysShow,u=n.clipPathId;Ki(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=Mt(i),f=Mt(a),p=Mt(o),v=Mt(s),m=this.props.shape;if(!d&&!f&&!p&&!v&&!m)return null;var y=jye(d,f,p,v,this.props);if(!y&&!m)return null;var b=bi(this.props,"hidden")?"url(#".concat(u,")"):void 0;return A.createElement(ft,{className:Le("recharts-reference-area",l)},t.renderRect(m,jj(jj({clipPath:b},$e(this.props,!0)),y)),nr.renderCallByParent(this.props,y))}}])}(A.Component);jg(Pg,"displayName","ReferenceArea");jg(Pg,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});jg(Pg,"renderRect",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):Pe(e)?r=e(t):r=A.createElement(z_,iw({},t,{className:"recharts-reference-area-rect"})),r});function vL(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 Pye(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Ege(n,r)}function Cye(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function Km(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 Nye(e,t){return vL(e,t+1)}function $ye(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,c=1,u=o,d=function(){var v=n==null?void 0:n[l];if(v===void 0)return{v:vL(n,c)};var m=l,y,b=function(){return y===void 0&&(y=r(v,m)),y},g=v.coordinate,x=l===0||Km(e,g,b,u,s);x||(l=0,u=o,c+=1),x&&(u=g+e*(b()/2+i),l+=c)},f;c<=a.length;)if(f=d(),f)return f.v;return[]}function sf(e){"@babel/helpers - typeof";return sf=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},sf(e)}function Pj(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 tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pj(Object(r),!0).forEach(function(n){Rye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rye(e,t,r){return t=Iye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iye(e){var t=Mye(e,"string");return sf(t)=="symbol"?t:t+""}function Mye(e,t){if(sf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(sf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dye(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,c=function(f){var p=a[f],v,m=function(){return v===void 0&&(v=r(p,f)),v};if(f===o-1){var y=e*(p.coordinate+e*m()/2-l);a[f]=p=tr(tr({},p),{},{tickCoord:y>0?p.coordinate-y*e:p.coordinate})}else a[f]=p=tr(tr({},p),{},{tickCoord:p.coordinate});var b=Km(e,p.tickCoord,m,s,l);b&&(l=p.tickCoord-e*(m()/2+i),a[f]=tr(tr({},p),{},{isShow:!0}))},u=o-1;u>=0;u--)c(u);return a}function Lye(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,c=t.end;if(a){var u=n[s-1],d=r(u,s-1),f=e*(u.coordinate+e*d/2-c);o[s-1]=u=tr(tr({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate});var p=Km(e,u.tickCoord,function(){return d},l,c);p&&(c=u.tickCoord-e*(d/2+i),o[s-1]=tr(tr({},u),{},{isShow:!0}))}for(var v=a?s-1:s,m=function(g){var x=o[g],w,_=function(){return w===void 0&&(w=r(x,g)),w};if(g===0){var E=e*(x.coordinate-e*_()/2-l);o[g]=x=tr(tr({},x),{},{tickCoord:E<0?x.coordinate-E*e:x.coordinate})}else o[g]=x=tr(tr({},x),{},{tickCoord:x.coordinate});var k=Km(e,x.tickCoord,_,l,c);k&&(l=x.tickCoord+e*(_()/2+i),o[g]=tr(tr({},x),{},{isShow:!0}))},y=0;y<v;y++)m(y);return o}function Z_(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,u=e.unit,d=e.angle;if(!i||!i.length||!n)return[];if(Q(l)||Gi.isSsr)return Nye(i,typeof l=="number"&&Q(l)?l:0);var f=[],p=s==="top"||s==="bottom"?"width":"height",v=u&&p==="width"?Nu(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},m=function(x,w){var _=Pe(c)?c(x.value,w):x.value;return p==="width"?Pye(Nu(_,{fontSize:t,letterSpacing:r}),v,d):Nu(_,{fontSize:t,letterSpacing:r})[p]},y=i.length>=2?zn(i[1].coordinate-i[0].coordinate):1,b=Cye(a,y,p);return l==="equidistantPreserveStart"?$ye(y,b,m,i,o):(l==="preserveStart"||l==="preserveStartEnd"?f=Lye(y,b,m,i,o,l==="preserveStartEnd"):f=Dye(y,b,m,i,o),f.filter(function(g){return g.isShow}))}var Bye=["viewBox"],Fye=["viewBox"],Uye=["ticks"];function tc(e){"@babel/helpers - typeof";return tc=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},tc(e)}function Qs(){return Qs=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},Qs.apply(this,arguments)}function Cj(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?Cj(Object(r),!0).forEach(function(n){J_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s0(e,t){if(e==null)return{};var r=zye(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 zye(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 Vye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nj(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,yL(n.key),n)}}function Wye(e,t,r){return t&&Nj(e.prototype,t),r&&Nj(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hye(e,t,r){return t=Gm(t),qye(e,gL()?Reflect.construct(t,r||[],Gm(e).constructor):t.apply(e,r))}function qye(e,t){if(t&&(tc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kye(e)}function Kye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gL=function(){return!!e})()}function Gm(e){return Gm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gm(e)}function Gye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ow(e,t)}function ow(e,t){return ow=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ow(e,t)}function J_(e,t,r){return t=yL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yL(e){var t=Yye(e,"string");return tc(t)=="symbol"?t:t+""}function Yye(e,t){if(tc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(tc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tc=function(e){function t(r){var n;return Vye(this,t),n=Hye(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return Gye(t,e),Wye(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=s0(n,Bye),s=this.props,l=s.viewBox,c=s0(s,Fye);return!pl(a,l)||!pl(o,c)||!pl(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,c=i.orientation,u=i.tickSize,d=i.mirror,f=i.tickMargin,p,v,m,y,b,g,x=d?-1:1,w=n.tickSize||u,_=Q(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":p=v=n.coordinate,y=o+ +!d*l,m=y-x*w,g=m-x*f,b=_;break;case"left":m=y=n.coordinate,v=a+ +!d*s,p=v-x*w,b=p-x*f,g=_;break;case"right":m=y=n.coordinate,v=a+ +d*s,p=v+x*w,b=p+x*f,g=_;break;default:p=v=n.coordinate,y=o+ +d*l,m=y+x*w,g=m+x*f,b=_;break}return{line:{x1:p,y1:m,x2:v,y2:y},tick:{x:b,y:g}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,c=n.mirror,u=n.axisLine,d=cr(cr(cr({},$e(this.props,!1)),$e(u,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var f=+(l==="top"&&!c||l==="bottom"&&c);d=cr(cr({},d),{},{x1:i,y1:a+f*s,x2:i+o,y2:a+f*s})}else{var p=+(l==="left"&&!c||l==="right"&&c);d=cr(cr({},d),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return A.createElement("line",Qs({},d,{className:Le("recharts-cartesian-axis-line",yn(u,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,c=s.stroke,u=s.tick,d=s.tickFormatter,f=s.unit,p=Z_(cr(cr({},this.props),{},{ticks:n}),i,a),v=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),y=$e(this.props,!1),b=$e(u,!1),g=cr(cr({},y),{},{fill:"none"},$e(l,!1)),x=p.map(function(w,_){var E=o.getTickLineCoord(w),k=E.line,O=E.tick,P=cr(cr(cr(cr({textAnchor:v,verticalAnchor:m},y),{},{stroke:"none",fill:c},b),O),{},{index:_,payload:w,visibleTicksCount:p.length,tickFormatter:d});return A.createElement(ft,Qs({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},rm(o.props,w,_)),l&&A.createElement("line",Qs({},g,k,{className:Le("recharts-cartesian-axis-tick-line",yn(l,"className"))})),u&&t.renderTickItem(u,P,"".concat(Pe(d)?d(w.value,_):w.value).concat(f||"")))});return A.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,c=i.className,u=i.hide;if(u)return null;var d=this.props,f=d.ticks,p=s0(d,Uye),v=f;return Pe(l)&&(v=f&&f.length>0?l(this.props):l(p)),o<=0||s<=0||!v||!v.length?null:A.createElement(ft,{className:Le("recharts-cartesian-axis",c),ref:function(y){n.layerReference=y}},a&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),nr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return A.isValidElement(n)?o=A.cloneElement(n,i):Pe(n)?o=n(i):o=A.createElement(vm,Qs({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(S.Component);J_(Tc,"displayName","CartesianAxis");J_(Tc,"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 Xye=["x1","y1","x2","y2","key"],Zye=["offset"];function us(e){"@babel/helpers - typeof";return us=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},us(e)}function $j(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 ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$j(Object(r),!0).forEach(function(n){Jye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$j(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jye(e,t,r){return t=Qye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qye(e){var t=e0e(e,"string");return us(t)=="symbol"?t:t+""}function e0e(e,t){if(us(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(us(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lo(){return Lo=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},Lo.apply(this,arguments)}function Rj(e,t){if(e==null)return{};var r=t0e(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 t0e(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 r0e=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return A.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function bL(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(Pe(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=Rj(t,Xye),c=$e(l,!1);c.offset;var u=Rj(c,Zye);r=A.createElement("line",Lo({},u,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function n0e(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 o=a.map(function(s,l){var c=ir(ir({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return bL(i,c)});return A.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function i0e(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 o=a.map(function(s,l){var c=ir(ir({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return bL(i,c)});return A.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function a0e(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,c=l===void 0?!0:l;if(!c||!t||!t.length)return null;var u=s.map(function(f){return Math.round(f+i-i)}).sort(function(f,p){return f-p});i!==u[0]&&u.unshift(0);var d=u.map(function(f,p){var v=!u[p+1],m=v?i+o-f:u[p+1]-f;if(m<=0)return null;var y=p%t.length;return A.createElement("rect",{key:"react-".concat(p),y:f,x:n,height:m,width:a,stroke:"none",fill:t[y],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function o0e(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=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,p){return f-p});a!==u[0]&&u.unshift(0);var d=u.map(function(f,p){var v=!u[p+1],m=v?a+s-f:u[p+1]-f;if(m<=0)return null;var y=p%n.length;return A.createElement("rect",{key:"react-".concat(p),x:f,y:o,width:m,height:l,stroke:"none",fill:n[y],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var s0e=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return AD(Z_(ir(ir(ir({},Tc.defaultProps),n),{},{ticks:Wi(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},l0e=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return AD(Z_(ir(ir(ir({},Tc.defaultProps),n),{},{ticks:Wi(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},$s={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function xL(e){var t,r,n,i,a,o,s=K_(),l=G_(),c=Yge(),u=ir(ir({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:$s.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:$s.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:$s.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:$s.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:$s.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:$s.verticalFill,x:Q(e.x)?e.x:c.left,y:Q(e.y)?e.y:c.top,width:Q(e.width)?e.width:c.width,height:Q(e.height)?e.height:c.height}),d=u.x,f=u.y,p=u.width,v=u.height,m=u.syncWithTicks,y=u.horizontalValues,b=u.verticalValues,g=qge(),x=Kge();if(!Q(p)||p<=0||!Q(v)||v<=0||!Q(d)||d!==+d||!Q(f)||f!==+f)return null;var w=u.verticalCoordinatesGenerator||s0e,_=u.horizontalCoordinatesGenerator||l0e,E=u.horizontalPoints,k=u.verticalPoints;if((!E||!E.length)&&Pe(_)){var O=y&&y.length,P=_({yAxis:x?ir(ir({},x),{},{ticks:O?y:x.ticks}):void 0,width:s,height:l,offset:c},O?!0:m);Ki(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(us(P),"]")),Array.isArray(P)&&(E=P)}if((!k||!k.length)&&Pe(w)){var C=b&&b.length,R=w({xAxis:g?ir(ir({},g),{},{ticks:C?b:g.ticks}):void 0,width:s,height:l,offset:c},C?!0:m);Ki(Array.isArray(R),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(us(R),"]")),Array.isArray(R)&&(k=R)}return A.createElement("g",{className:"recharts-cartesian-grid"},A.createElement(r0e,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height,ry:u.ry}),A.createElement(n0e,Lo({},u,{offset:c,horizontalPoints:E,xAxis:g,yAxis:x})),A.createElement(i0e,Lo({},u,{offset:c,verticalPoints:k,xAxis:g,yAxis:x})),A.createElement(a0e,Lo({},u,{horizontalPoints:E})),A.createElement(o0e,Lo({},u,{verticalPoints:k})))}xL.displayName="CartesianGrid";var c0e=["layout","type","stroke","connectNulls","isRange","ref"],u0e=["key"],wL;function rc(e){"@babel/helpers - typeof";return rc=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},rc(e)}function _L(e,t){if(e==null)return{};var r=d0e(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 d0e(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 Bo(){return Bo=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},Bo.apply(this,arguments)}function Ij(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 ya(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ij(Object(r),!0).forEach(function(n){pi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ij(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mj(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,EL(n.key),n)}}function h0e(e,t,r){return t&&Mj(e.prototype,t),r&&Mj(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function p0e(e,t,r){return t=Ym(t),m0e(e,SL()?Reflect.construct(t,r||[],Ym(e).constructor):t.apply(e,r))}function m0e(e,t){if(t&&(rc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v0e(e)}function v0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SL=function(){return!!e})()}function Ym(e){return Ym=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ym(e)}function g0e(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&&sw(e,t)}function sw(e,t){return sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sw(e,t)}function pi(e,t,r){return t=EL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EL(e){var t=y0e(e,"string");return rc(t)=="symbol"?t:t+""}function y0e(e,t){if(rc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(rc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bo=function(e){function t(){var r;f0e(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=p0e(this,t,[].concat(i)),pi(r,"state",{isAnimationFinished:!0}),pi(r,"id",kf("recharts-area-")),pi(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Pe(o)&&o()}),pi(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Pe(o)&&o()}),r}return g0e(t,e),h0e(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,c=l.dot,u=l.points,d=l.dataKey,f=$e(this.props,!1),p=$e(c,!0),v=u.map(function(y,b){var g=ya(ya(ya({key:"dot-".concat(b),r:3},f),p),{},{index:b,cx:y.x,cy:y.y,dataKey:d,value:y.value,payload:y.payload,points:u});return t.renderDotItem(c,g)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return A.createElement(ft,Bo({className:"recharts-area-dots"},m),v)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].x,c=o[o.length-1].x,u=n*Math.abs(l-c),d=Da(o.map(function(f){return f.y||0}));return Q(a)&&typeof a=="number"?d=Math.max(a,d):a&&Array.isArray(a)&&a.length&&(d=Math.max(Da(a.map(function(f){return f.y||0})),d)),Q(d)?A.createElement("rect",{x:l<c?l:l-u,y:0,width:u,height:Math.floor(d+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].y,c=o[o.length-1].y,u=n*Math.abs(l-c),d=Da(o.map(function(f){return f.x||0}));return Q(a)&&typeof a=="number"?d=Math.max(a,d):a&&Array.isArray(a)&&a.length&&(d=Math.max(Da(a.map(function(f){return f.x||0})),d)),Q(d)?A.createElement("rect",{x:0,y:l<c?l:l-u,width:d+(s?parseInt("".concat(s),10):1),height:Math.floor(u)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,l=s.layout,c=s.type,u=s.stroke,d=s.connectNulls,f=s.isRange;s.ref;var p=_L(s,c0e);return A.createElement(ft,{clipPath:a?"url(#clipPath-".concat(o,")"):null},A.createElement(Iu,Bo({},$e(p,!0),{points:n,connectNulls:d,type:c,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),u!=="none"&&A.createElement(Iu,Bo({},$e(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:d,fill:"none",points:n})),u!=="none"&&f&&A.createElement(Iu,Bo({},$e(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:d,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.baseLine,c=o.isAnimationActive,u=o.animationBegin,d=o.animationDuration,f=o.animationEasing,p=o.animationId,v=this.state,m=v.prevPoints,y=v.prevBaseLine;return A.createElement(oa,{begin:u,duration:d,isActive:c,easing:f,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var g=b.t;if(m){var x=m.length/s.length,w=s.map(function(O,P){var C=Math.floor(P*x);if(m[C]){var R=m[C],T=pn(R.x,O.x),I=pn(R.y,O.y);return ya(ya({},O),{},{x:T(g),y:I(g)})}return O}),_;if(Q(l)&&typeof l=="number"){var E=pn(y,l);_=E(g)}else if(Ie(l)||xc(l)){var k=pn(y,0);_=k(g)}else _=l.map(function(O,P){var C=Math.floor(P*x);if(y[C]){var R=y[C],T=pn(R.x,O.x),I=pn(R.y,O.y);return ya(ya({},O),{},{x:T(g),y:I(g)})}return O});return a.renderAreaStatically(w,_,n,i)}return A.createElement(ft,null,A.createElement("defs",null,A.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(g))),A.createElement(ft,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,l,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,l=a.isAnimationActive,c=this.state,u=c.prevPoints,d=c.prevBaseLine,f=c.totalLength;return l&&o&&o.length&&(!u&&f>0||!Bd(u,o)||!Bd(d,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,c=i.top,u=i.left,d=i.xAxis,f=i.yAxis,p=i.width,v=i.height,m=i.isAnimationActive,y=i.id;if(a||!s||!s.length)return null;var b=this.state.isAnimationFinished,g=s.length===1,x=Le("recharts-area",l),w=d&&d.allowDataOverflow,_=f&&f.allowDataOverflow,E=w||_,k=Ie(y)?this.id:y,O=(n=$e(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=O.r,C=P===void 0?3:P,R=O.strokeWidth,T=R===void 0?2:R,I=KX(o)?o:{},N=I.clipDot,L=N===void 0?!0:N,M=C*2+T;return A.createElement(ft,{className:x},w||_?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(k)},A.createElement("rect",{x:w?u:u-p/2,y:_?c:c-v/2,width:w?p:p*2,height:_?v:v*2})),!L&&A.createElement("clipPath",{id:"clipPath-dots-".concat(k)},A.createElement("rect",{x:u-M/2,y:c-M/2,width:p+M,height:v+M}))):null,g?null:this.renderArea(E,k),(o||g)&&this.renderDots(E,L,k),(!m||b)&&Ya.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(S.PureComponent);wL=bo;pi(bo,"displayName","Area");pi(bo,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Gi.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});pi(bo,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(Q(s)&&typeof s=="number")return s;var l=i==="horizontal"?n:r,c=l.scale.domain();if(l.type==="number"){var u=Math.max(c[0],c[1]),d=Math.min(c[0],c[1]);return s==="dataMin"?d:s==="dataMax"||u<0?u:Math.max(Math.min(c[0],c[1]),0)}return s==="dataMin"?c[0]:s==="dataMax"?c[1]:c[0]});pi(bo,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=t.layout,v=c&&c.length,m=wL.getBaseValue(t,r,n,i),y=p==="horizontal",b=!1,g=d.map(function(w,_){var E;v?E=c[u+_]:(E=Qr(w,l),Array.isArray(E)?b=!0:E=[m,E]);var k=E[1]==null||v&&Qr(w,l)==null;return y?{x:gT({axis:n,ticks:a,bandSize:s,entry:w,index:_}),y:k?null:i.scale(E[1]),value:E,payload:w}:{x:k?null:n.scale(E[1]),y:gT({axis:i,ticks:o,bandSize:s,entry:w,index:_}),value:E,payload:w}}),x;return v||b?x=g.map(function(w){var _=Array.isArray(w.value)?w.value[0]:null;return y?{x:w.x,y:_!=null&&w.y!=null?i.scale(_):null}:{x:_!=null?n.scale(_):null,y:w.y}}):x=y?i.scale(m):n.scale(m),ya({points:g,baseLine:x,layout:p,isRange:b},f)});pi(bo,"renderDotItem",function(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(Pe(e))r=e(t);else{var n=Le("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=_L(t,u0e);r=A.createElement(V_,Bo({},a,{key:i,className:n}))}return r});function nc(e){"@babel/helpers - typeof";return nc=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},nc(e)}function b0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x0e(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,AL(n.key),n)}}function w0e(e,t,r){return t&&x0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _0e(e,t,r){return t=Xm(t),S0e(e,kL()?Reflect.construct(t,r||[],Xm(e).constructor):t.apply(e,r))}function S0e(e,t){if(t&&(nc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E0e(e)}function E0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kL=function(){return!!e})()}function Xm(e){return Xm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xm(e)}function k0e(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&&lw(e,t)}function lw(e,t){return lw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lw(e,t)}function OL(e,t,r){return t=AL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AL(e){var t=O0e(e,"string");return nc(t)=="symbol"?t:t+""}function O0e(e,t){if(nc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(nc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cw(){return cw=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},cw.apply(this,arguments)}function A0e(e){var t=e.xAxisId,r=K_(),n=G_(),i=lL(t);return i==null?null:A.createElement(Tc,cw({},i,{className:Le("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Wi(o,!0)}}))}var jc=function(e){function t(){return b0e(this,t),_0e(this,t,arguments)}return k0e(t,e),w0e(t,[{key:"render",value:function(){return A.createElement(A0e,this.props)}}])}(A.Component);OL(jc,"displayName","XAxis");OL(jc,"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 ic(e){"@babel/helpers - typeof";return ic=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},ic(e)}function T0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j0e(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,PL(n.key),n)}}function P0e(e,t,r){return t&&j0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function C0e(e,t,r){return t=Zm(t),N0e(e,TL()?Reflect.construct(t,r||[],Zm(e).constructor):t.apply(e,r))}function N0e(e,t){if(t&&(ic(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $0e(e)}function $0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TL=function(){return!!e})()}function Zm(e){return Zm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zm(e)}function R0e(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&&uw(e,t)}function uw(e,t){return uw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uw(e,t)}function jL(e,t,r){return t=PL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PL(e){var t=I0e(e,"string");return ic(t)=="symbol"?t:t+""}function I0e(e,t){if(ic(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ic(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dw(){return dw=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},dw.apply(this,arguments)}var M0e=function(t){var r=t.yAxisId,n=K_(),i=G_(),a=cL(r);return a==null?null:A.createElement(Tc,dw({},a,{className:Le("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Wi(s,!0)}}))},Pc=function(e){function t(){return T0e(this,t),C0e(this,t,arguments)}return R0e(t,e),P0e(t,[{key:"render",value:function(){return A.createElement(M0e,this.props)}}])}(A.Component);jL(Pc,"displayName","YAxis");jL(Pc,"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 Dj(e){return F0e(e)||B0e(e)||L0e(e)||D0e()}function D0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 350In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L0e(e,t){if(e){if(typeof e=="string")return fw(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 fw(e,t)}}function B0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function F0e(e){if(Array.isArray(e))return fw(e)}function fw(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 hw=function(t,r,n,i,a){var o=Kn(t,X_),s=Kn(t,Tg),l=[].concat(Dj(o),Dj(s)),c=Kn(t,Pg),u="".concat(i,"Id"),d=i[0],f=r;if(l.length&&(f=l.reduce(function(m,y){if(y.props[u]===n&&bi(y.props,"extendDomain")&&Q(y.props[d])){var b=y.props[d];return[Math.min(m[0],b),Math.max(m[1],b)]}return m},f)),c.length){var p="".concat(d,"1"),v="".concat(d,"2");f=c.reduce(function(m,y){if(y.props[u]===n&&bi(y.props,"extendDomain")&&Q(y.props[p])&&Q(y.props[v])){var b=y.props[p],g=y.props[v];return[Math.min(m[0],b,g),Math.max(m[1],b,g)]}return m},f)}return a&&a.length&&(f=a.reduce(function(m,y){return Q(y)?[Math.min(m[0],y),Math.max(m[1],y)]:m},f)),f},CL={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(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function a(l,c,u,d,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var p=new i(u,d||l,f),v=r?r+c:c;return l._events[v]?l._events[v].fn?l._events[v]=[l._events[v],p]:l._events[v].push(p):(l._events[v]=p,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function s(){this._events=new n,this._eventsCount=0}s.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},s.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,p=d.length,v=new Array(p);f<p;f++)v[f]=d[f].fn;return v},s.prototype.listenerCount=function(c){var u=r?r+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,f,p,v){var m=r?r+c:c;if(!this._events[m])return!1;var y=this._events[m],b=arguments.length,g,x;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),b){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,u),!0;case 3:return y.fn.call(y.context,u,d),!0;case 4:return y.fn.call(y.context,u,d,f),!0;case 5:return y.fn.call(y.context,u,d,f,p),!0;case 6:return y.fn.call(y.context,u,d,f,p,v),!0}for(x=1,g=new Array(b-1);x<b;x++)g[x-1]=arguments[x];y.fn.apply(y.context,g)}else{var w=y.length,_;for(x=0;x<w;x++)switch(y[x].once&&this.removeListener(c,y[x].fn,void 0,!0),b){case 1:y[x].fn.call(y[x].context);break;case 2:y[x].fn.call(y[x].context,u);break;case 3:y[x].fn.call(y[x].context,u,d);break;case 4:y[x].fn.call(y[x].context,u,d,f);break;default:if(!g)for(_=1,g=new Array(b-1);_<b;_++)g[_-1]=arguments[_];y[x].fn.apply(y[x].context,g)}}return!0},s.prototype.on=function(c,u,d){return a(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return a(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,f){var p=r?r+c:c;if(!this._events[p])return this;if(!u)return o(this,p),this;var v=this._events[p];if(v.fn)v.fn===u&&(!f||v.once)&&(!d||v.context===d)&&o(this,p);else{for(var m=0,y=[],b=v.length;m<b;m++)(v[m].fn!==u||f&&!v[m].once||d&&v[m].context!==d)&&y.push(v[m]);y.length?this._events[p]=y.length===1?y[0]:y:o(this,p)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&o(this,u)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(CL);var U0e=CL.exports;const z0e=Ue(U0e);var l0=new z0e,c0="recharts.syncMouseEvents";function lf(e){"@babel/helpers - typeof";return lf=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},lf(e)}function V0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W0e(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,NL(n.key),n)}}function H0e(e,t,r){return t&&W0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function u0(e,t,r){return t=NL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NL(e){var t=q0e(e,"string");return lf(t)=="symbol"?t:t+""}function q0e(e,t){if(lf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var K0e=function(){function e(){V0e(this,e),u0(this,"activeIndex",0),u0(this,"coordinateList",[]),u0(this,"layout","horizontal")}return H0e(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,c=l===void 0?null:l,u=r.offset,d=u===void 0?null:u,f=r.mouseHandlerCallback,p=f===void 0?null:f;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=c??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=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+l+c,f=o+this.offset.top+s/2+u;this.mouseHandlerCallback({pageX:d,pageY:f})}}}])}();function G0e(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&&Q(n)&&Q(i))return!0}return!1}function Y0e(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 $L(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Kt(t,r,n,i),s=Kt(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function X0e(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.angle,f=Kt(s,l,c,d),p=Kt(s,l,u,d);n=f.x,i=f.y,a=p.x,o=p.y}else return $L(t);return[{x:n,y:i},{x:a,y:o}]}function cf(e){"@babel/helpers - typeof";return cf=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},cf(e)}function Lj(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 jh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lj(Object(r),!0).forEach(function(n){Z0e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Z0e(e,t,r){return t=J0e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J0e(e){var t=Q0e(e,"string");return cf(t)=="symbol"?t:t+""}function Q0e(e,t){if(cf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(cf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ebe(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,c=e.activeTooltipIndex,u=e.tooltipAxisBandSize,d=e.layout,f=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||f!=="ScatterChart"&&i!=="axis")return null;var v,m=Iu;if(f==="ScatterChart")v=o,m=ime;else if(f==="BarChart")v=Y0e(d,o,l,u),m=z_;else if(d==="radial"){var y=$L(o),b=y.cx,g=y.cy,x=y.radius,w=y.startAngle,_=y.endAngle;v={cx:b,cy:g,startAngle:w,endAngle:_,innerRadius:x,outerRadius:x},m=ND}else v={points:X0e(d,o,l)},m=Iu;var E=jh(jh(jh(jh({stroke:"#ccc",pointerEvents:"none"},l),v),$e(p,!1)),{},{payload:s,payloadIndex:c,className:Le("recharts-tooltip-cursor",p.className)});return S.isValidElement(p)?S.cloneElement(p,E):S.createElement(m,E)}var tbe=["item"],rbe=["children","className","width","height","style","compact","title","desc"];function ac(e){"@babel/helpers - typeof";return ac=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},ac(e)}function Du(){return Du=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},Du.apply(this,arguments)}function Bj(e,t){return abe(e)||ibe(e,t)||IL(e,t)||nbe()}function nbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 351In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ibe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function abe(e){if(Array.isArray(e))return e}function Fj(e,t){if(e==null)return{};var r=obe(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 obe(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 sbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lbe(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,ML(n.key),n)}}function cbe(e,t,r){return t&&lbe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ube(e,t,r){return t=Jm(t),dbe(e,RL()?Reflect.construct(t,r||[],Jm(e).constructor):t.apply(e,r))}function dbe(e,t){if(t&&(ac(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fbe(e)}function fbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RL=function(){return!!e})()}function Jm(e){return Jm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jm(e)}function hbe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pw(e,t)}function pw(e,t){return pw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pw(e,t)}function oc(e){return vbe(e)||mbe(e)||IL(e)||pbe()}function pbe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 352In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IL(e,t){if(e){if(typeof e=="string")return mw(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 mw(e,t)}}function mbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vbe(e){if(Array.isArray(e))return mw(e)}function mw(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 Uj(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 W(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uj(Object(r),!0).forEach(function(n){be(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function be(e,t,r){return t=ML(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ML(e){var t=gbe(e,"string");return ac(t)=="symbol"?t:t+""}function gbe(e,t){if(ac(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ac(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ybe={xAxis:["bottom","top"],yAxis:["left","right"]},bbe={width:"100%",height:"100%"},DL={x:0,y:0};function Ph(e){return e}var xbe=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},wbe=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 o=a.coordinate,s=i.radius;return W(W(W({},i),Kt(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,c=i.angle;return W(W(W({},i),Kt(i.cx,i.cy,l,c)),{},{angle:c,radius:l})}return DL},Cg=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var c=l.props.data;return c&&c.length?[].concat(oc(s),oc(c)):s},[]);return o.length>0?o:t&&t.length&&Q(i)&&Q(a)?t.slice(i,a+1):[]};function LL(e){return e==="number"?[0,"auto"]:void 0}var vw=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=Cg(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,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(o.dataKey&&!o.allowDuplicatedCategory){var p=d===void 0?s:d;f=em(p,o.dataKey,i)}else f=d&&d[n]||s[n];return f?[].concat(oc(l),[jD(c,f)]):l},[])},zj=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=xbe(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,u=Xde(o,s,c,l);if(u>=0&&c){var d=c[u]&&c[u].value,f=vw(t,r,u,d),p=wbe(n,s,u,a);return{activeTooltipIndex:u,activeLabel:d,activePayload:f,activeCoordinate:p}}return null},_be=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,u=t.layout,d=t.children,f=t.stackOffset,p=OD(u,a);return n.reduce(function(v,m){var y,b=m.type.defaultProps!==void 0?W(W({},m.type.defaultProps),m.props):m.props,g=b.type,x=b.dataKey,w=b.allowDataOverflow,_=b.allowDuplicatedCategory,E=b.scale,k=b.ticks,O=b.includeHidden,P=b[o];if(v[P])return v;var C=Cg(t.data,{graphicalItems:i.filter(function(H){var J,fe=o in H.props?H.props[o]:(J=H.type.defaultProps)===null||J===void 0?void 0:J[o];return fe===P}),dataStartIndex:l,dataEndIndex:c}),R=C.length,T,I,N;G0e(b.domain,w,g)&&(T=Ix(b.domain,null,w),p&&(g==="number"||E!=="auto")&&(N=Ru(C,x,"category")));var L=LL(g);if(!T||T.length===0){var M,F=(M=b.domain)!==null&&M!==void 0?M:L;if(x){if(T=Ru(C,x,g),g==="category"&&p){var j=LX(T);_&&j?(I=T,T=Bm(0,R)):_||(T=wT(F,T,m).reduce(function(H,J){return H.indexOf(J)>=0?H:[].concat(oc(H),[J])},[]))}else if(g==="category")_?T=T.filter(function(H){return H!==""&&!Ie(H)}):T=wT(F,T,m).reduce(function(H,J){return H.indexOf(J)>=0||J===""||Ie(J)?H:[].concat(oc(H),[J])},[]);else if(g==="number"){var B=tfe(C,i.filter(function(H){var J,fe,Ce=o in H.props?H.props[o]:(J=H.type.defaultProps)===null||J===void 0?void 0:J[o],ve="hide"in H.props?H.props.hide:(fe=H.type.defaultProps)===null||fe===void 0?void 0:fe.hide;return Ce===P&&(O||!ve)}),x,a,u);B&&(T=B)}p&&(g==="number"||E!=="auto")&&(N=Ru(C,x,"category"))}else p?T=Bm(0,R):s&&s[P]&&s[P].hasStack&&g==="number"?T=f==="expand"?[0,1]:TD(s[P].stackGroups,l,c):T=kD(C,i.filter(function(H){var J=o in H.props?H.props[o]:H.type.defaultProps[o],fe="hide"in H.props?H.props.hide:H.type.defaultProps.hide;return J===P&&(O||!fe)}),g,u,!0);if(g==="number")T=hw(d,T,P,a,k),F&&(T=Ix(F,T,w));else if(g==="category"&&F){var q=F,V=T.every(function(H){return q.indexOf(H)>=0});V&&(T=q)}}return W(W({},v),{},be({},P,W(W({},b),{},{axisType:a,domain:T,categoricalDomain:N,duplicateDomain:I,originalDomain:(y=b.domain)!==null&&y!==void 0?y:L,isCategorical:p,layout:u})))},{})},Sbe=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,u=t.layout,d=t.children,f=Cg(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:c}),p=f.length,v=OD(u,a),m=-1;return n.reduce(function(y,b){var g=b.type.defaultProps!==void 0?W(W({},b.type.defaultProps),b.props):b.props,x=g[o],w=LL("number");if(!y[x]){m++;var _;return v?_=Bm(0,p):s&&s[x]&&s[x].hasStack?(_=TD(s[x].stackGroups,l,c),_=hw(d,_,x,a)):(_=Ix(w,kD(f,n.filter(function(E){var k,O,P=o in E.props?E.props[o]:(k=E.type.defaultProps)===null||k===void 0?void 0:k[o],C="hide"in E.props?E.props.hide:(O=E.type.defaultProps)===null||O===void 0?void 0:O.hide;return P===x&&!C}),"number",u),i.defaultProps.allowDataOverflow),_=hw(d,_,x,a)),W(W({},y),{},be({},x,W(W({axisType:a},i.defaultProps),{},{hide:!0,orientation:yn(ybe,"".concat(a,".").concat(m%2),null),domain:_,originalDomain:w,isCategorical:v,layout:u})))}return y},{})},Ebe=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,u=t.children,d="".concat(i,"Id"),f=Kn(u,a),p={};return f&&f.length?p=_be(t,{axes:f,graphicalItems:o,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):o&&o.length&&(p=Sbe(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),p},kbe=function(t){var r=Ta(t),n=Wi(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:p_(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Pm(r,n)}},Vj=function(t){var r=t.children,n=t.defaultShowTooltip,i=Vr(r,Xl),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},Obe=function(t){return!t||!t.length?!1:t.some(function(r){var n=qi(r&&r.type);return n&&n.indexOf("Bar")>=0})},Wj=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"}},Abe=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,c=n.width,u=n.height,d=n.children,f=n.margin||{},p=Vr(d,Xl),v=Vr(d,ml),m=Object.keys(l).reduce(function(_,E){var k=l[E],O=k.orientation;return!k.mirror&&!k.hide?W(W({},_),{},be({},O,_[O]+k.width)):_},{left:f.left||0,right:f.right||0}),y=Object.keys(o).reduce(function(_,E){var k=o[E],O=k.orientation;return!k.mirror&&!k.hide?W(W({},_),{},be({},O,yn(_,"".concat(O))+k.height)):_},{top:f.top||0,bottom:f.bottom||0}),b=W(W({},y),m),g=b.bottom;p&&(b.bottom+=p.props.height||Xl.defaultProps.height),v&&r&&(b=Qde(b,i,n,r));var x=c-b.left-b.right,w=u-b.top-b.bottom;return W(W({brushBottom:g},b),{},{width:Math.max(x,0),height:Math.max(w,0)})},Tbe=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},BL=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,c=t.legendContent,u=t.formatAxisMap,d=t.defaultProps,f=function(y,b){var g=b.graphicalItems,x=b.stackGroups,w=b.offset,_=b.updateId,E=b.dataStartIndex,k=b.dataEndIndex,O=y.barSize,P=y.layout,C=y.barGap,R=y.barCategoryGap,T=y.maxBarSize,I=Wj(P),N=I.numericAxisName,L=I.cateAxisName,M=Obe(g),F=[];return g.forEach(function(j,B){var q=Cg(y.data,{graphicalItems:[j],dataStartIndex:E,dataEndIndex:k}),V=j.type.defaultProps!==void 0?W(W({},j.type.defaultProps),j.props):j.props,H=V.dataKey,J=V.maxBarSize,fe=V["".concat(N,"Id")],Ce=V["".concat(L,"Id")],ve={},ae=l.reduce(function(U,re){var ee=b["".concat(re.axisType,"Map")],Y=V["".concat(re.axisType,"Id")];ee&&ee[Y]||re.axisType==="zAxis"||cs();var pe=ee[Y];return W(W({},U),{},be(be({},re.axisType,pe),"".concat(re.axisType,"Ticks"),Wi(pe)))},ve),we=ae[L],G=ae["".concat(L,"Ticks")],ne=x&&x[fe]&&x[fe].hasStack&&hfe(j,x[fe].stackGroups),oe=qi(j.type).indexOf("Bar")>=0,z=Pm(we,G),Ae=[],ge=M&&Zde({barSize:O,stackGroups:x,totalSize:Tbe(ae,L)});if(oe){var He,Me,gt=Ie(J)?T:J,$=(He=(Me=Pm(we,G,!0))!==null&&Me!==void 0?Me:gt)!==null&&He!==void 0?He:0;Ae=Jde({barGap:C,barCategoryGap:R,bandSize:$!==z?$:z,sizeList:ge[Ce],maxBarSize:gt}),$!==z&&(Ae=Ae.map(function(U){return W(W({},U),{},{position:W(W({},U.position),{},{offset:U.position.offset-$/2})})}))}var D=j&&j.type&&j.type.getComposedData;D&&F.push({props:W(W({},D(W(W({},ae),{},{displayedData:q,props:y,dataKey:H,item:j,bandSize:z,barPosition:Ae,offset:w,stackedData:ne,layout:P,dataStartIndex:E,dataEndIndex:k}))),{},be(be(be({key:j.key||"item-".concat(B)},N,ae[N]),L,ae[L]),"animationId",_)),childIndex:XX(j,y.children),item:j})}),F},p=function(y,b){var g=y.props,x=y.dataStartIndex,w=y.dataEndIndex,_=y.updateId;if(!pO({props:g}))return null;var E=g.children,k=g.layout,O=g.stackOffset,P=g.data,C=g.reverseStackOrder,R=Wj(k),T=R.numericAxisName,I=R.cateAxisName,N=Kn(E,n),L=ufe(P,N,"".concat(T,"Id"),"".concat(I,"Id"),O,C),M=l.reduce(function(V,H){var J="".concat(H.axisType,"Map");return W(W({},V),{},be({},J,Ebe(g,W(W({},H),{},{graphicalItems:N,stackGroups:H.axisType===T&&L,dataStartIndex:x,dataEndIndex:w}))))},{}),F=Abe(W(W({},M),{},{props:g,graphicalItems:N}),b==null?void 0:b.legendBBox);Object.keys(M).forEach(function(V){M[V]=u(g,M[V],F,V.replace("Map",""),r)});var j=M["".concat(I,"Map")],B=kbe(j),q=f(g,W(W({},M),{},{dataStartIndex:x,dataEndIndex:w,updateId:_,graphicalItems:N,stackGroups:L,offset:F}));return W(W({formattedGraphicalItems:q,graphicalItems:N,offset:F,stackGroups:L},B),M)},v=function(m){function y(b){var g,x,w;return sbe(this,y),w=ube(this,y,[b]),be(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),be(w,"accessibilityManager",new K0e),be(w,"handleLegendBBoxUpdate",function(_){if(_){var E=w.state,k=E.dataStartIndex,O=E.dataEndIndex,P=E.updateId;w.setState(W({legendBBox:_},p({props:w.props,dataStartIndex:k,dataEndIndex:O,updateId:P},W(W({},w.state),{},{legendBBox:_}))))}}),be(w,"handleReceiveSyncEvent",function(_,E,k){if(w.props.syncId===_){if(k===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(E)}}),be(w,"handleBrushChange",function(_){var E=_.startIndex,k=_.endIndex;if(E!==w.state.dataStartIndex||k!==w.state.dataEndIndex){var O=w.state.updateId;w.setState(function(){return W({dataStartIndex:E,dataEndIndex:k},p({props:w.props,dataStartIndex:E,dataEndIndex:k,updateId:O},w.state))}),w.triggerSyncEvent({dataStartIndex:E,dataEndIndex:k})}}),be(w,"handleMouseEnter",function(_){var E=w.getMouseInfo(_);if(E){var k=W(W({},E),{},{isTooltipActive:!0});w.setState(k),w.triggerSyncEvent(k);var O=w.props.onMouseEnter;Pe(O)&&O(k,_)}}),be(w,"triggeredAfterMouseMove",function(_){var E=w.getMouseInfo(_),k=E?W(W({},E),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(k),w.triggerSyncEvent(k);var O=w.props.onMouseMove;Pe(O)&&O(k,_)}),be(w,"handleItemMouseEnter",function(_){w.setState(function(){return{isTooltipActive:!0,activeItem:_,activePayload:_.tooltipPayload,activeCoordinate:_.tooltipPosition||{x:_.cx,y:_.cy}}})}),be(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),be(w,"handleMouseMove",function(_){_.persist(),w.throttleTriggeredAfterMouseMove(_)}),be(w,"handleMouseLeave",function(_){w.throttleTriggeredAfterMouseMove.cancel();var E={isTooltipActive:!1};w.setState(E),w.triggerSyncEvent(E);var k=w.props.onMouseLeave;Pe(k)&&k(E,_)}),be(w,"handleOuterEvent",function(_){var E=YX(_),k=yn(w.props,"".concat(E));if(E&&Pe(k)){var O,P;/.*touch.*/i.test(E)?P=w.getMouseInfo(_.changedTouches[0]):P=w.getMouseInfo(_),k((O=P)!==null&&O!==void 0?O:{},_)}}),be(w,"handleClick",function(_){var E=w.getMouseInfo(_);if(E){var k=W(W({},E),{},{isTooltipActive:!0});w.setState(k),w.triggerSyncEvent(k);var O=w.props.onClick;Pe(O)&&O(k,_)}}),be(w,"handleMouseDown",function(_){var E=w.props.onMouseDown;if(Pe(E)){var k=w.getMouseInfo(_);E(k,_)}}),be(w,"handleMouseUp",function(_){var E=w.props.onMouseUp;if(Pe(E)){var k=w.getMouseInfo(_);E(k,_)}}),be(w,"handleTouchMove",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(_.changedTouches[0])}),be(w,"handleTouchStart",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&w.handleMouseDown(_.changedTouches[0])}),be(w,"handleTouchEnd",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&w.handleMouseUp(_.changedTouches[0])}),be(w,"triggerSyncEvent",function(_){w.props.syncId!==void 0&&l0.emit(c0,w.props.syncId,_,w.eventEmitterSymbol)}),be(w,"applySyncEvent",function(_){var E=w.props,k=E.layout,O=E.syncMethod,P=w.state.updateId,C=_.dataStartIndex,R=_.dataEndIndex;if(_.dataStartIndex!==void 0||_.dataEndIndex!==void 0)w.setState(W({dataStartIndex:C,dataEndIndex:R},p({props:w.props,dataStartIndex:C,dataEndIndex:R,updateId:P},w.state)));else if(_.activeTooltipIndex!==void 0){var T=_.chartX,I=_.chartY,N=_.activeTooltipIndex,L=w.state,M=L.offset,F=L.tooltipTicks;if(!M)return;if(typeof O=="function")N=O(F,_);else if(O==="value"){N=-1;for(var j=0;j<F.length;j++)if(F[j].value===_.activeLabel){N=j;break}}var B=W(W({},M),{},{x:M.left,y:M.top}),q=Math.min(T,B.x+B.width),V=Math.min(I,B.y+B.height),H=F[N]&&F[N].value,J=vw(w.state,w.props.data,N),fe=F[N]?{x:k==="horizontal"?F[N].coordinate:q,y:k==="horizontal"?V:F[N].coordinate}:DL;w.setState(W(W({},_),{},{activeLabel:H,activeCoordinate:fe,activePayload:J,activeTooltipIndex:N}))}else w.setState(_)}),be(w,"renderCursor",function(_){var E,k=w.state,O=k.isTooltipActive,P=k.activeCoordinate,C=k.activePayload,R=k.offset,T=k.activeTooltipIndex,I=k.tooltipAxisBandSize,N=w.getTooltipEventType(),L=(E=_.props.active)!==null&&E!==void 0?E:O,M=w.props.layout,F=_.key||"_recharts-cursor";return A.createElement(ebe,{key:F,activeCoordinate:P,activePayload:C,activeTooltipIndex:T,chartName:r,element:_,isActive:L,layout:M,offset:R,tooltipAxisBandSize:I,tooltipEventType:N})}),be(w,"renderPolarAxis",function(_,E,k){var O=yn(_,"type.axisType"),P=yn(w.state,"".concat(O,"Map")),C=_.type.defaultProps,R=C!==void 0?W(W({},C),_.props):_.props,T=P&&P[R["".concat(O,"Id")]];return S.cloneElement(_,W(W({},T),{},{className:Le(O,T.className),key:_.key||"".concat(E,"-").concat(k),ticks:Wi(T,!0)}))}),be(w,"renderPolarGrid",function(_){var E=_.props,k=E.radialLines,O=E.polarAngles,P=E.polarRadius,C=w.state,R=C.radiusAxisMap,T=C.angleAxisMap,I=Ta(R),N=Ta(T),L=N.cx,M=N.cy,F=N.innerRadius,j=N.outerRadius;return S.cloneElement(_,{polarAngles:Array.isArray(O)?O:Wi(N,!0).map(function(B){return B.coordinate}),polarRadius:Array.isArray(P)?P:Wi(I,!0).map(function(B){return B.coordinate}),cx:L,cy:M,innerRadius:F,outerRadius:j,key:_.key||"polar-grid",radialLines:k})}),be(w,"renderLegend",function(){var _=w.state.formattedGraphicalItems,E=w.props,k=E.children,O=E.width,P=E.height,C=w.props.margin||{},R=O-(C.left||0)-(C.right||0),T=SD({children:k,formattedGraphicalItems:_,legendWidth:R,legendContent:c});if(!T)return null;var I=T.item,N=Fj(T,tbe);return S.cloneElement(I,W(W({},N),{},{chartWidth:O,chartHeight:P,margin:C,onBBoxUpdate:w.handleLegendBBoxUpdate}))}),be(w,"renderTooltip",function(){var _,E=w.props,k=E.children,O=E.accessibilityLayer,P=Vr(k,Rn);if(!P)return null;var C=w.state,R=C.isTooltipActive,T=C.activeCoordinate,I=C.activePayload,N=C.activeLabel,L=C.offset,M=(_=P.props.active)!==null&&_!==void 0?_:R;return S.cloneElement(P,{viewBox:W(W({},L),{},{x:L.left,y:L.top}),active:M,label:N,payload:M?I:[],coordinate:T,accessibilityLayer:O})}),be(w,"renderBrush",function(_){var E=w.props,k=E.margin,O=E.data,P=w.state,C=P.offset,R=P.dataStartIndex,T=P.dataEndIndex,I=P.updateId;return S.cloneElement(_,{key:_.key||"_recharts-brush",onChange:kh(w.handleBrushChange,_.props.onChange),data:O,x:Q(_.props.x)?_.props.x:C.left,y:Q(_.props.y)?_.props.y:C.top+C.height+C.brushBottom-(k.bottom||0),width:Q(_.props.width)?_.props.width:C.width,startIndex:R,endIndex:T,updateId:"brush-".concat(I)})}),be(w,"renderReferenceElement",function(_,E,k){if(!_)return null;var O=w,P=O.clipPathId,C=w.state,R=C.xAxisMap,T=C.yAxisMap,I=C.offset,N=_.type.defaultProps||{},L=_.props,M=L.xAxisId,F=M===void 0?N.xAxisId:M,j=L.yAxisId,B=j===void 0?N.yAxisId:j;return S.cloneElement(_,{key:_.key||"".concat(E,"-").concat(k),xAxis:R[F],yAxis:T[B],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:P})}),be(w,"renderActivePoints",function(_){var E=_.item,k=_.activePoint,O=_.basePoint,P=_.childIndex,C=_.isRange,R=[],T=E.props.key,I=E.item.type.defaultProps!==void 0?W(W({},E.item.type.defaultProps),E.item.props):E.item.props,N=I.activeDot,L=I.dataKey,M=W(W({index:P,dataKey:L,cx:k.x,cy:k.y,r:4,fill:U_(E.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},$e(N,!1)),tm(N));return R.push(y.renderActiveDot(N,M,"".concat(T,"-activePoint-").concat(P))),O?R.push(y.renderActiveDot(N,W(W({},M),{},{cx:O.x,cy:O.y}),"".concat(T,"-basePoint-").concat(P))):C&&R.push(null),R}),be(w,"renderGraphicChild",function(_,E,k){var O=w.filterFormatItem(_,E,k);if(!O)return null;var P=w.getTooltipEventType(),C=w.state,R=C.isTooltipActive,T=C.tooltipAxis,I=C.activeTooltipIndex,N=C.activeLabel,L=w.props.children,M=Vr(L,Rn),F=O.props,j=F.points,B=F.isRange,q=F.baseLine,V=O.item.type.defaultProps!==void 0?W(W({},O.item.type.defaultProps),O.item.props):O.item.props,H=V.activeDot,J=V.hide,fe=V.activeBar,Ce=V.activeShape,ve=!!(!J&&R&&M&&(H||fe||Ce)),ae={};P!=="axis"&&M&&M.props.trigger==="click"?ae={onClick:kh(w.handleItemMouseEnter,_.props.onClick)}:P!=="axis"&&(ae={onMouseLeave:kh(w.handleItemMouseLeave,_.props.onMouseLeave),onMouseEnter:kh(w.handleItemMouseEnter,_.props.onMouseEnter)});var we=S.cloneElement(_,W(W({},O.props),ae));function G(re){return typeof T.dataKey=="function"?T.dataKey(re.payload):null}if(ve)if(I>=0){var ne,oe;if(T.dataKey&&!T.allowDuplicatedCategory){var z=typeof T.dataKey=="function"?G:"payload.".concat(T.dataKey.toString());ne=em(j,z,N),oe=B&&q&&em(q,z,N)}else ne=j==null?void 0:j[I],oe=B&&q&&q[I];if(Ce||fe){var Ae=_.props.activeIndex!==void 0?_.props.activeIndex:I;return[S.cloneElement(_,W(W(W({},O.props),ae),{},{activeIndex:Ae})),null,null]}if(!Ie(ne))return[we].concat(oc(w.renderActivePoints({item:O,activePoint:ne,basePoint:oe,childIndex:I,isRange:B})))}else{var ge,He=(ge=w.getItemByXY(w.state.activeCoordinate))!==null&&ge!==void 0?ge:{graphicalItem:we},Me=He.graphicalItem,gt=Me.item,$=gt===void 0?_:gt,D=Me.childIndex,U=W(W(W({},O.props),ae),{},{activeIndex:D});return[S.cloneElement($,U),null,null]}return B?[we,null,null]:[we,null]}),be(w,"renderCustomized",function(_,E,k){return S.cloneElement(_,W(W({key:"recharts-customized-".concat(k)},w.props),w.state))}),be(w,"renderMap",{CartesianGrid:{handler:Ph,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:Ph},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:Ph},YAxis:{handler:Ph},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((g=b.id)!==null&&g!==void 0?g:kf("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=_M(w.triggeredAfterMouseMove,(x=b.throttleDelay)!==null&&x!==void 0?x:1e3/60),w.state={},w}return hbe(y,m),cbe(y,[{key:"componentDidMount",value:function(){var g,x;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var g=this.props,x=g.children,w=g.data,_=g.height,E=g.layout,k=Vr(x,Rn);if(k){var O=k.props.defaultIndex;if(!(typeof O!="number"||O<0||O>this.state.tooltipTicks.length-1)){var P=this.state.tooltipTicks[O]&&this.state.tooltipTicks[O].value,C=vw(this.state,w,O,P),R=this.state.tooltipTicks[O].coordinate,T=(this.state.offset.top+_)/2,I=E==="horizontal",N=I?{x:R,y:T}:{y:R,x:T},L=this.state.formattedGraphicalItems.find(function(F){var j=F.item;return j.type.name==="Scatter"});L&&(N=W(W({},N),L.props.points[O].tooltipPosition),C=L.props.points[O].tooltipPayload);var M={activeTooltipIndex:O,isTooltipActive:!0,activeLabel:P,activePayload:C,activeCoordinate:N};this.setState(M),this.renderCursor(k),this.accessibilityManager.setIndex(O)}}}},{key:"getSnapshotBeforeUpdate",value:function(g,x){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==x.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==g.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==g.margin){var w,_;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0}})}return null}},{key:"componentDidUpdate",value:function(g){Xb([Vr(g.children,Rn)],[Vr(this.props.children,Rn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var g=Vr(this.props.children,Rn);if(g&&typeof g.props.shared=="boolean"){var x=g.props.shared?"axis":"item";return s.indexOf(x)>=0?x:a}return a}},{key:"getMouseInfo",value:function(g){if(!this.container)return null;var x=this.container,w=x.getBoundingClientRect(),_=_se(w),E={chartX:Math.round(g.pageX-_.left),chartY:Math.round(g.pageY-_.top)},k=w.width/x.offsetWidth||1,O=this.inRange(E.chartX,E.chartY,k);if(!O)return null;var P=this.state,C=P.xAxisMap,R=P.yAxisMap,T=this.getTooltipEventType();if(T!=="axis"&&C&&R){var I=Ta(C).scale,N=Ta(R).scale,L=I&&I.invert?I.invert(E.chartX):null,M=N&&N.invert?N.invert(E.chartY):null;return W(W({},E),{},{xValue:L,yValue:M})}var F=zj(this.state,this.props.data,this.props.layout,O);return F?W(W({},E),F):null}},{key:"inRange",value:function(g,x){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=this.props.layout,E=g/w,k=x/w;if(_==="horizontal"||_==="vertical"){var O=this.state.offset,P=E>=O.left&&E<=O.left+O.width&&k>=O.top&&k<=O.top+O.height;return P?{x:E,y:k}:null}var C=this.state,R=C.angleAxisMap,T=C.radiusAxisMap;if(R&&T){var I=Ta(R);return ET({x:E,y:k},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var g=this.props.children,x=this.getTooltipEventType(),w=Vr(g,Rn),_={};w&&x==="axis"&&(w.props.trigger==="click"?_={onClick:this.handleClick}:_={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var E=tm(this.props,this.handleOuterEvent);return W(W({},E),_)}},{key:"addListener",value:function(){l0.on(c0,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){l0.removeListener(c0,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(g,x,w){for(var _=this.state.formattedGraphicalItems,E=0,k=_.length;E<k;E++){var O=_[E];if(O.item===g||O.props.key===g.key||x===qi(O.item.type)&&w===O.childIndex)return O}return null}},{key:"renderClipPath",value:function(){var g=this.clipPathId,x=this.state.offset,w=x.left,_=x.top,E=x.height,k=x.width;return A.createElement("defs",null,A.createElement("clipPath",{id:g},A.createElement("rect",{x:w,y:_,height:E,width:k})))}},{key:"getXScales",value:function(){var g=this.state.xAxisMap;return g?Object.entries(g).reduce(function(x,w){var _=Bj(w,2),E=_[0],k=_[1];return W(W({},x),{},be({},E,k.scale))},{}):null}},{key:"getYScales",value:function(){var g=this.state.yAxisMap;return g?Object.entries(g).reduce(function(x,w){var _=Bj(w,2),E=_[0],k=_[1];return W(W({},x),{},be({},E,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(g){var x;return(x=this.state.xAxisMap)===null||x===void 0||(x=x[g])===null||x===void 0?void 0:x.scale}},{key:"getYScaleByAxisId",value:function(g){var x;return(x=this.state.yAxisMap)===null||x===void 0||(x=x[g])===null||x===void 0?void 0:x.scale}},{key:"getItemByXY",value:function(g){var x=this.state,w=x.formattedGraphicalItems,_=x.activeItem;if(w&&w.length)for(var E=0,k=w.length;E<k;E++){var O=w[E],P=O.props,C=O.item,R=C.type.defaultProps!==void 0?W(W({},C.type.defaultProps),C.props):C.props,T=qi(C.type);if(T==="Bar"){var I=(P.data||[]).find(function(F){return Gpe(g,F)});if(I)return{graphicalItem:O,payload:I}}else if(T==="RadialBar"){var N=(P.data||[]).find(function(F){return ET(g,F)});if(N)return{graphicalItem:O,payload:N}}else if(Eg(O,_)||kg(O,_)||rf(O,_)){var L=Zme({graphicalItem:O,activeTooltipItem:_,itemData:R.data}),M=R.activeIndex===void 0?L:R.activeIndex;return{graphicalItem:W(W({},O),{},{childIndex:M}),payload:rf(O,_)?R.data[L]:O.props.data[L]}}}return null}},{key:"render",value:function(){var g=this;if(!pO(this))return null;var x=this.props,w=x.children,_=x.className,E=x.width,k=x.height,O=x.style,P=x.compact,C=x.title,R=x.desc,T=Fj(x,rbe),I=$e(T,!1);if(P)return A.createElement(_j,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement(Jb,Du({},I,{width:E,height:k,title:C,desc:R}),this.renderClipPath(),vO(w,this.renderMap)));if(this.props.accessibilityLayer){var N,L;I.tabIndex=(N=this.props.tabIndex)!==null&&N!==void 0?N:0,I.role=(L=this.props.role)!==null&&L!==void 0?L:"application",I.onKeyDown=function(F){g.accessibilityManager.keyboardEvent(F)},I.onFocus=function(){g.accessibilityManager.focus()}}var M=this.parseEventsOfWrapper();return A.createElement(_j,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement("div",Du({className:Le("recharts-wrapper",_),style:W({position:"relative",cursor:"default",width:E,height:k},O)},M,{ref:function(j){g.container=j}}),A.createElement(Jb,Du({},I,{width:E,height:k,title:C,desc:R,style:bbe}),this.renderClipPath(),vO(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(S.Component);return be(v,"displayName",r),be(v,"defaultProps",W({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),be(v,"getDerivedStateFromProps",function(m,y){var b=m.dataKey,g=m.data,x=m.children,w=m.width,_=m.height,E=m.layout,k=m.stackOffset,O=m.margin,P=y.dataStartIndex,C=y.dataEndIndex;if(y.updateId===void 0){var R=Vj(m);return W(W(W({},R),{},{updateId:0},p(W(W({props:m},R),{},{updateId:0}),y)),{},{prevDataKey:b,prevData:g,prevWidth:w,prevHeight:_,prevLayout:E,prevStackOffset:k,prevMargin:O,prevChildren:x})}if(b!==y.prevDataKey||g!==y.prevData||w!==y.prevWidth||_!==y.prevHeight||E!==y.prevLayout||k!==y.prevStackOffset||!pl(O,y.prevMargin)){var T=Vj(m),I={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},N=W(W({},zj(y,g,E)),{},{updateId:y.updateId+1}),L=W(W(W({},T),I),N);return W(W(W({},L),p(W({props:m},L),y)),{},{prevDataKey:b,prevData:g,prevWidth:w,prevHeight:_,prevLayout:E,prevStackOffset:k,prevMargin:O,prevChildren:x})}if(!Xb(x,y.prevChildren)){var M,F,j,B,q=Vr(x,Xl),V=q&&(M=(F=q.props)===null||F===void 0?void 0:F.startIndex)!==null&&M!==void 0?M:P,H=q&&(j=(B=q.props)===null||B===void 0?void 0:B.endIndex)!==null&&j!==void 0?j:C,J=V!==P||H!==C,fe=!Ie(g),Ce=fe&&!J?y.updateId:y.updateId+1;return W(W({updateId:Ce},p(W(W({props:m},y),{},{updateId:Ce,dataStartIndex:V,dataEndIndex:H}),y)),{},{prevChildren:x,dataStartIndex:V,dataEndIndex:H})}return null}),be(v,"renderActiveDot",function(m,y,b){var g;return S.isValidElement(m)?g=S.cloneElement(m,y):Pe(m)?g=m(y):g=A.createElement(V_,y),A.createElement(ft,{className:"recharts-active-dot",key:b},g)}),function(y){return A.createElement(v,y)}},jbe=BL({chartName:"BarChart",GraphicalChild:ys,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:jc},{axisType:"yAxis",AxisComp:Pc}],formatAxisMap:eL}),Pbe=BL({chartName:"AreaChart",GraphicalChild:bo,axisComponents:[{axisType:"xAxis",AxisComp:jc},{axisType:"yAxis",AxisComp:Pc}],formatAxisMap:eL});const Cbe=1,Nbe="b6e05120-52aa-4856-8a02-3ceafc9a947b",$be="a095bb6b-c8b8-4674-bff8-613380bc9160",Rbe="/__l5e/assets-v1/b6e05120-52aa-4856-8a02-3ceafc9a947b/li-content-performance.png",Ibe="a/v1/a095bb6b-c8b8-4674-bff8-613380bc9160/b6e05120-52aa-4856-8a02-3ceafc9a947b/li-content-performance.png",Mbe="li-content-performance.png",Dbe=185306,Lbe="image/png",Bbe="2026-06-01T17:04:17Z",Fbe={version:Cbe,asset_id:Nbe,project_id:$be,url:Rbe,r2_key:Ibe,original_filename:Mbe,size:Dbe,content_type:Lbe,created_at:Bbe},Ube=1,zbe="7a877356-708d-45d5-b6f6-a850e25d79c7",Vbe="a095bb6b-c8b8-4674-bff8-613380bc9160",Wbe="/__l5e/assets-v1/7a877356-708d-45d5-b6f6-a850e25d79c7/li-followers.png",Hbe="a/v1/a095bb6b-c8b8-4674-bff8-613380bc9160/7a877356-708d-45d5-b6f6-a850e25d79c7/li-followers.png",qbe="li-followers.png",Kbe=124606,Gbe="image/png",Ybe="2026-06-01T17:04:17Z",Xbe={version:Ube,asset_id:zbe,project_id:Vbe,url:Wbe,r2_key:Hbe,original_filename:qbe,size:Kbe,content_type:Gbe,created_at:Ybe},Zbe=1,Jbe="6a8e2e00-4acc-41d3-a51b-07d02fe88389",Qbe="a095bb6b-c8b8-4674-bff8-613380bc9160",exe="/__l5e/assets-v1/6a8e2e00-4acc-41d3-a51b-07d02fe88389/li-top-posts.png",txe="a/v1/a095bb6b-c8b8-4674-bff8-613380bc9160/6a8e2e00-4acc-41d3-a51b-07d02fe88389/li-top-posts.png",rxe="li-top-posts.png",nxe=420951,ixe="image/png",axe="2026-06-01T17:04:17Z",oxe={version:Zbe,asset_id:Jbe,project_id:Qbe,url:exe,r2_key:txe,original_filename:rxe,size:nxe,content_type:ixe,created_at:axe},sxe=1,lxe="180ece5c-04d1-4103-9d7f-1f8adedb5616",cxe="a095bb6b-c8b8-4674-bff8-613380bc9160",uxe="/__l5e/assets-v1/180ece5c-04d1-4103-9d7f-1f8adedb5616/li-demographics.png",dxe="a/v1/a095bb6b-c8b8-4674-bff8-613380bc9160/180ece5c-04d1-4103-9d7f-1f8adedb5616/li-demographics.png",fxe="li-demographics.png",hxe=77276,pxe="image/png",mxe="2026-06-01T17:04:17Z",vxe={version:sxe,asset_id:lxe,project_id:cxe,url:uxe,r2_key:dxe,original_filename:fxe,size:h
352xe,content_type:pxe,created_at:mxe},Ch=({src:e,alt:t,caption:r})=>h.jsxs("figure",{className:"border border-border/50 bg-card/40 overflow-hidden flex flex-col",children:[h.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-2 border-b border-border/50 bg-background/60",children:[h.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-foreground/15"}),h.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-foreground/15"}),h.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-foreground/15"}),h.jsx("span",{className:"ml-3 text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"linkedin.com/analytics"})]}),h.jsx("div",{className:"bg-white p-2 sm:p-3 flex-1 flex items-center justify-center",children:h.jsx("img",{src:e,alt:t,loading:"lazy",className:"w-full h-auto object-contain"})}),h.jsx("figcaption",{className:"px-4 py-3 border-t border-border/50 text-xs text-muted-foreground",children:r})]}),gxe=[{label:"Senior",value:34,highlight:!0},{label:"Entry",value:26},{label:"Manager",value:8},{label:"Director",value:8,highlight:!0},{label:"CXO",value:4,highlight:!0},{label:"Owner",value:4,highlight:!0},{label:"VP",value:3,highlight:!0},{label:"Partner",value:2},{label:"Training",value:1}],yxe=[{label:"10,001+",value:27,highlight:!0},{label:"1,001â5,000",value:14,highlight:!0},{label:"51â200",value:10},{label:"11â50",value:9},{label:"2â10",value:8},{label:"201â500",value:7},{label:"501â1,000",value:6},{label:"5,001â10,000",value:5,highlight:!0}],bxe=[{label:"IT Services",value:14,highlight:!0},{label:"Software Dev",value:14,highlight:!0},{label:"Tech & Internet",value:12,highlight:!0},{label:"Financial Services",value:6},{label:"Advertising",value:3},{label:"Business Consulting",value:2},{label:"Pharma",value:2},{label:"HR Services",value:2}],xxe=[{label:"San Francisco Bay",value:26,highlight:!0},{label:"New York City",value:13,highlight:!0},{label:"Greater Dublin",value:7,highlight:!0},{label:"Los Angeles",value:2},{label:"São Paulo",value:2},{label:"London",value:2},{label:"Boston",value:2},{label:"Amsterdam",value:2},{label:"Seattle",value:1}],wxe=[{month:"Apr '25",v:0},{month:"Jun",v:18},{month:"Jul",v:35},{month:"Aug",v:95},{month:"Sep",v:165},{month:"Oct",v:235},{month:"Nov",v:305},{month:"Dec",v:415},{month:"Jan '26",v:485},{month:"Feb",v:550},{month:"Mar",v:625},{month:"Apr",v:695},{month:"May",v:750}],au=({children:e,label:t})=>h.jsxs("div",{className:"relative",children:[h.jsx("span",{"aria-hidden":!0,className:"absolute -top-1 -left-1 h-3 w-3 border-l border-t border-primary/60"}),h.jsx("span",{"aria-hidden":!0,className:"absolute -top-1 -right-1 h-3 w-3 border-r border-t border-primary/60"}),h.jsx("span",{"aria-hidden":!0,className:"absolute -bottom-1 -left-1 h-3 w-3 border-l border-b border-primary/60"}),h.jsx("span",{"aria-hidden":!0,className:"absolute -bottom-1 -right-1 h-3 w-3 border-r border-b border-primary/60"}),h.jsxs("div",{className:"border border-border/60 bg-card/60 backdrop-blur-sm",children:[t&&h.jsxs("div",{className:"px-5 py-3 border-b border-border/60 bg-background/40 flex items-center gap-3",children:[h.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-primary"}),h.jsx("span",{className:"text-[11px] uppercase tracking-[0.2em] text-muted-foreground",children:t})]}),h.jsx("div",{className:"p-5 sm:p-7",children:e})]})]}),Nh=({data:e,suffix:t="%",height:r=260})=>h.jsx("div",{style:{width:"100%",height:r},children:h.jsx(SM,{children:h.jsxs(jbe,{data:e,layout:"vertical",margin:{top:4,right:36,bottom:4,left:4},children:[h.jsx(jc,{type:"number",hide:!0,domain:[0,"dataMax"]}),h.jsx(Pc,{type:"category",dataKey:"label",width:120,tickLine:!1,axisLine:!1,tick:{fill:"hsl(var(--foreground) / 0.85)",fontSize:12,fontFamily:"Inter"}}),h.jsx(Rn,{cursor:{fill:"hsl(var(--primary) / 0.06)"},contentStyle:{background:"hsl(var(--background))",border:"1px solid hsl(var(--border))",borderRadius:2,fontSize:12},formatter:n=>[`${n}${t}`,"Share"]}),h.jsx(ys,{dataKey:"value",radius:[0,2,2,0],barSize:14,label:{position:"right",fill:"hsl(var(--foreground) / 0.7)",fontSize:11,formatter:n=>`${n}${t}`},children:e.map((n,i)=>h.jsx(v_,{fill:n.highlight?"hsl(var(--primary))":"hsl(var(--primary) / 0.28)"},i))})]})})}),$h=({eyebrow:e,value:t,suffix:r,note:n,size:i="md"})=>h.jsxs("div",{className:"bg-card/40 border border-border/50 p-6 sm:p-7 flex flex-col justify-between min-h-[160px]",children:[h.jsx("p",{className:"eyebrow",children:e}),h.jsxs("div",{children:[h.jsxs("div",{className:`font-display leading-[0.9] text-foreground ${i==="lg"?"text-6xl sm:text-7xl":"text-5xl sm:text-6xl"}`,children:[t,r&&h.jsx("span",{className:"text-primary",children:r})]}),n&&h.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:n})]})]}),_xe=()=>{const[e,t]=ps();return h.jsxs("div",{className:"community-theme min-h-screen bg-background text-foreground antialiased selection:bg-primary/30",children:[h.jsxs(co,{children:[h.jsx("title",{children:"Media Kit â Ed Giansante"}),h.jsx("meta",{name:"description",content:"Audience demographics, reach, and formats for collaborations with Ed Giansante."}),h.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),h.jsx("style",{children:` 353 @media print { 354 .no-print { display: none !important; } 355 .community-theme { background: #fff !important; color: #111 !important; } 356 .community-theme * { color: inherit !important; } 357 .bg-card\\/40, .bg-card\\/60, .bg-background\\/40 { background: #fafafa !important; } 358 .border-border\\/40, .border-border\\/50, .border-border\\/60 { border-color: #ddd !important; } 359 } 360 `}),h.jsx(uo,{variant:"pill"}),h.jsxs("main",{className:"px-5 sm:px-10 py-12 sm:py-16 max-w-7xl mx-auto",children:[h.jsxs("header",{className:"flex items-start justify-between gap-6 flex-wrap mb-14 sm:mb-20 pb-8 border-b border-border/40",children:[h.jsxs("div",{children:[h.jsx("p",{className:"eyebrow mb-3",children:"Media Kit · 2026"}),h.jsx("h1",{className:"font-display text-5xl sm:text-7xl leading-[0.95] text-foreground",children:"Ed Giansante"}),h.jsx("p",{className:"mt-4 max-w-xl text-base sm:text-lg text-muted-foreground leading-relaxed",children:"Community Expert, AI Ecosystem Builder & speaker. Builder of rooms for founders, operators, and senior tech leaders â from San Francisco to São Paulo."}),h.jsxs("div",{className:"mt-5 flex items-center gap-5 text-xs uppercase tracking-[0.18em] text-muted-foreground",children:[h.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[h.jsx(n$,{className:"h-3 w-3"})," San Francisco · Global"]}),h.jsx("span",{className:"hidden sm:inline",children:"·"}),h.jsx("a",{href:"https://edgiansante.com",className:"hidden sm:inline hover:text-primary transition-colors",children:"edgiansante.com"})]})]}),h.jsxs("button",{onClick:()=>window.print(),className:"no-print group inline-flex items-center gap-2 border border-primary/40 text-foreground hover:bg-primary/10 px-5 py-3 text-xs uppercase tracking-[0.18em] transition-colors",children:[h.jsx(YB,{className:"h-4 w-4"})," Download / Print PDF"]})]}),h.jsxs("section",{className:"mb-16 sm:mb-24",children:[h.jsx("div",{className:"mb-8 flex items-end justify-between gap-6 flex-wrap",children:h.jsxs("div",{children:[h.jsx("p",{className:"eyebrow mb-2",children:"Headline reach"}),h.jsxs("h2",{className:"font-display text-3xl sm:text-5xl leading-[1] text-foreground max-w-xl",children:["A community measured in ",h.jsx("span",{className:"italic text-primary",children:"tens of thousands"}),"."]})]})}),h.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-5",children:[h.jsx($h,{eyebrow:"Event attendees",value:"36,000",suffix:"+",note:"Dinners, conferences, mixers · 12+ cities",size:"lg"}),h.jsx($h,{eyebrow:"Instagram",value:"113K",suffix:"+",note:"@edugiansante"}),h.jsx($h,{eyebrow:"LinkedIn",value:"50K",suffix:"+",note:"Ed Giansante"}),h.jsx($h,{eyebrow:"Global cities",value:"12",suffix:"+",note:"Across 4 continents"})]})]}),h.jsxs("section",{ref:e,className:`mb-16 sm:mb-24 transition-opacity duration-1000 ${t?"opacity-100":"opacity-0"}`,children:[h.jsxs("div",{className:"mb-8",children:[h.jsx("p",{className:"eyebrow mb-2",children:"LinkedIn content performance · Trailing 400 days"}),h.jsxs("h2",{className:"font-display text-3xl sm:text-5xl leading-[1] text-foreground max-w-2xl",children:["Three quarters of a million ",h.jsx("span",{className:"italic text-primary",children:"qualified impressions"}),"."]})]}),h.jsx(au,{label:"Cumulative impressions",children:h.jsxs("div",{className:"grid lg:grid-cols-[260px_1fr] gap-8 items-center",children:[h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{children:[h.jsx("div",{className:"font-display text-5xl sm:text-6xl text-foreground leading-none",children:"749,889"}),h.jsx("p",{className:"mt-2 text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Impressions"})]}),h.jsxs("div",{children:[h.jsx("div",{className:"font-display text-4xl sm:text-5xl text-foreground leading-none",children:"206,403"}),h.jsx("p",{className:"mt-2 text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Unique members reached"})]})]}),h.jsx("div",{style:{width:"100%",height:240},children:h.jsx(SM,{children:h.jsxs(Pbe,{data:wxe,margin:{top:10,right:10,left:0,bottom:0},children:[h.jsx("defs",{children:h.jsxs("linearGradient",{id:"imp",x1:"0",y1:"0",x2:"0",y2:"1",children:[h.jsx("stop",{offset:"0%",stopColor:"hsl(var(--primary))",stopOpacity:.5}),h.jsx("stop",{offset:"100%",stopColor:"hsl(var(--primary))",stopOpacity:0})]})}),h.jsx(xL,{strokeDasharray:"2 4",stroke:"hsl(var(--border) / 0.5)",vertical:!1}),h.jsx(jc,{dataKey:"month",tick:{fill:"hsl(var(--muted-foreground))",fontSize:10}
360,axisLine:!1,tickLine:!1}),h.jsx(Pc,{tick:{fill:"hsl(var(--muted-foreground))",fontSize:10},axisLine:!1,tickLine:!1,tickFormatter:r=>`${r}k`}),h.jsx(Rn,{contentStyle:{background:"hsl(var(--background))",border:"1px solid hsl(var(--border))",fontSize:12},formatter:r=>[`${r}k impressions`,""]}),h.jsx(bo,{type:"monotone",dataKey:"v",stroke:"hsl(var(--primary))",strokeWidth:2,fill:"url(#imp)"})]})})})]})})]}),h.jsxs("section",{className:"mb-16 sm:mb-24",children:[h.jsxs("div",{className:"mb-10",children:[h.jsx("p",{className:"eyebrow mb-2",children:"Audience snapshot"}),h.jsxs("h2",{className:"font-display text-3xl sm:text-5xl leading-[1] text-foreground max-w-3xl",children:["Senior decision-makers at ",h.jsx("span",{className:"italic text-primary",children:"large tech companies"}),", in the cities that matter."]})]}),h.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[h.jsxs(au,{label:"Seniority",children:[h.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:[h.jsx("span",{className:"text-primary font-medium",children:"53%"})," are Senior, Director, VP, CXO or Owner-level."]}),h.jsx(Nh,{data:gxe})]}),h.jsxs(au,{label:"Company size",children:[h.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:[h.jsx("span",{className:"text-primary font-medium",children:"46%"})," work at companies with 1,000+ employees."]}),h.jsx(Nh,{data:yxe})]}),h.jsxs(au,{label:"Industry",children:[h.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:[h.jsx("span",{className:"text-primary font-medium",children:"40%"})," in IT, Software & Tech â plus strong finance & advertising tails."]}),h.jsx(Nh,{data:bxe})]}),h.jsxs(au,{label:"Top locations",children:[h.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:[h.jsx("span",{className:"text-primary font-medium",children:"39%"})," in SF + NYC. Global tail across 9 metro areas."]}),h.jsx(Nh,{data:xxe})]})]})]}),h.jsx("section",{className:"mb-16 sm:mb-24 border-y border-primary/30 bg-primary/[0.05] -mx-5 sm:-mx-10 px-5 sm:px-10 py-14 sm:py-20",children:h.jsxs("p",{className:"max-w-4xl mx-auto text-center font-display text-2xl sm:text-4xl leading-[1.15] text-foreground",children:["âOver half of Ed's audience are ",h.jsx("span",{className:"italic text-primary",children:"senior decision-makers"})," at companies with 1,000+ employees â concentrated in San Francisco, New York and Dublin.â"]})}),h.jsxs("section",{className:"mb-16 sm:mb-24",children:[h.jsx("p",{className:"eyebrow text-center mb-8",children:"Built communities for"}),h.jsx("div",{className:"flex flex-wrap items-center justify-center gap-x-12 gap-y-6 text-foreground/70",children:["Persona","Wix","Dropbox","Zynga","McCann Erickson","Intel"].map(r=>h.jsx("span",{className:"font-display text-2xl sm:text-3xl tracking-tight",children:r},r))})]}),h.jsxs("section",{className:"mb-16 sm:mb-24",children:[h.jsxs("div",{className:"mb-8",children:[h.jsx("p",{className:"eyebrow mb-2",children:"Verified â straight from LinkedIn Analytics"}),h.jsxs("h2",{className:"font-display text-3xl sm:text-5xl leading-[1] text-foreground max-w-2xl",children:["The receipts, ",h.jsx("span",{className:"italic text-primary",children:"unfiltered"}),"."]})]}),h.jsxs("div",{className:"grid md:grid-cols-2 gap-5",children:[h.jsx(Ch,{src:Fbe.url,alt:"LinkedIn content performance showing 743,095 impressions over the past 365 days",caption:"743,095 impressions · past 365 days (cumulative growth curve)."}),h.jsx(Ch,{src:Xbe.url,alt:"LinkedIn audience of 47,679 total followers growing 5.7% year over year",caption:"47,679 total followers · +5.7% YoY."}),h.jsx(Ch,{src:oxe.url,alt:"Top performing LinkedIn posts with 75K, 59K and 40K impressions",caption:"Top posts hit 75K · 59K · 40K impressions individually."}),h.jsx(Ch,{src:vxe.url,alt:"LinkedIn top demographics: 33% senior, 16% at 10,001+ employee companies",caption:"33% senior · 16% at 10,001+ employee companies."})]})]}),h.jsxs("section",{className:"mb-16 sm:mb-24",children:[h.jsxs("div",{className:"mb-10",children:[h.jsx("p",{className:"eyebrow mb-2",children:"Ways to collaborate"}),h.jsxs("h2",{className:"font-display text-3xl sm:text-5xl leading-[1] text-foreground max-w-2xl",children:["Three formats, one ",h.jsx("span",{className:"italic text-primary",children:"audience of operators"}),"."]})]}),h.jsx("div",{className:"grid md:grid-cols-3 gap-5",children:[{t:"Keynotes & panels",d:"Community-led growth, founder communities, brand & belonging â for conferences, summits and internal offsites."},{t:"Private dinners & offsites",d:"Curated rooms of 12â40 senior operators in SF, NYC, Dublin and beyond. Sponsor-friendly."},{t:"Sponsored events",d:"Co-branded mixers, suites at games, and VIP experiences engineered for senior B2B audiences."}].map(r=>h.jsxs("div",{className:"border border-border/50 bg-card/40 p-6 sm:p-7",children:[h.jsx("h3",{className:"font-display text-2xl sm:text-3xl text-foreground leading-tight",children:r.t}),h.jsx("p",{className:"mt-3 text-sm text-muted-foreground leading-relaxed",children:r.d})]},r.t))})]}),h.jsxs("footer",{className:"pt-10 border-t border-border/40 flex flex-wrap items-center justify-between gap-6",children:[h.jsxs("div",{children:[h.jsx("p",{className:"eyebrow mb-3",children:"Get in touch"}),h.jsxs("a",{href:"mailto:[email protected]?subject=Partnership%20inquiry",className:"font-display text-3xl sm:text-4xl text-foreground hover:text-primary transition-colors inline-flex items-center gap-3",children:["[email protected] ",h.jsx(rs,{className:"h-6 w-6"})]})]}),h.jsxs("div",{className:"flex items-center gap-5 text-sm text-muted-foreground",children:[h.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 hover:text-primary transition-colors",children:[h.jsx(r$,{className:"h-4 w-4"})," [email protected]"]}),h.jsxs("a",{href:"https://instagram.com/edugiansante",className:"inline-flex items-center gap-2 hover:text-primary transition-colors",children:[h.jsx(t$,{className:"h-4 w-4"})," @edugiansante"]}),h.jsxs("a",{href:"https://www.linkedin.com/in/edugiansante",className:"inline-flex items-center gap-2 hover:text-primary transition-colors",children:[h.jsx(GB,{className:"h-4 w-4"})," Ed Giansante"]})]})]})]})]})},Cf=()=>h.jsxs(h.Fragment,{children:[h.jsx("section",{className:"py-8 px-4 bg-background",children:h.jsx("div",{className:"max-w-4xl mx-auto text-center",children:h.jsxs("p",{className:"text-muted-foreground text-sm",children:["Wanna say hi? ",h.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:text-primary/90 transition-colors",children:"[email protected]"})]})})}),h.jsx("footer",{className:"py-6 sm:py-8 px-4 bg-background border-t border-border",children:h.jsx("div",{className:"max-w-6xl mx-auto text-center",children:h.jsx("p",{className:"text-muted-foreground text-sm sm:text-base",children:"© 2025-2026 Ed Giansante. Community Expert. AI Ecosystem Builder. Book Author. Event Creator. Speaker."})})})]}),Q_=S.forwardRef(({className:e,...t},r)=>h.jsx("textarea",{className:st("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
360ing-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}));Q_.displayName="Textarea";function Sxe(){var y,b;if(typeof window>"u")return;const e=location.hostname,r=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(g=>e===g||e.endsWith("."+g)),n="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",i=r?((y=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+n+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:y[1])??((b=e.match(new RegExp("^("+n+")(?=[.-])","i")))==null?void 0:b[1]):void 0,a=window.parent&&window.parent!==window;if(!i||!a)return localStorage;const o=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),s=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),c=l&&s.test(l)?[l]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],u="lovable-preview-auth:result",d=2e3,f=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),p=(g,x,w)=>new Promise(_=>{const E=f();let k=!1,O;const P=T=>{k||(k=!0,clearTimeout(O),window.removeEventListener("message",C),_(T))},C=T=>{if(c.indexOf(T.origin)<0)return;const I=T.data;I&&I.type===u&&I.requestId===E&&P(I)};window.addEventListener("message",C);const R={type:g,requestId:E,projectId:i,key:x};w!==void 0&&(R.value=w);for(const T of c)window.parent.postMessage(R,T);O=setTimeout(()=>P(null),d)});let v=!0;const m=250;return{getItem:async g=>{let x=await p("lovable-preview-auth:get",g);return!x&&v&&(await new Promise(w=>setTimeout(w,m)),x=await p("lovable-preview-auth:get",g)),v=!1,x&&x.ok&&typeof x.value=="string"?x.value===""?(localStorage.removeItem(g),null):x.value:localStorage.getItem(g)},setItem:(g,x)=>(localStorage.setItem(g,x),p("lovable-preview-auth:set",g,x).then(()=>{})),removeItem:g=>(localStorage.removeItem(g),p("lovable-preview-auth:remove",g).then(()=>{}))}}const Exe="https://sckhcxbfwyjktfhveqkc.supabase.co",Hj="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InNja2hjeGJmd3lqa3RmaHZlcWtjIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODM5OTExNDMsImV4cCI6MjA5OTU2NzE0M30.9BZC3jRDrFtnog6nLLx0zWLKaQuzfbSZGTbzIaLocbU";function kxe(e){return e.startsWith("sb_publishable_")||e.startsWith("sb_secret_")}function Oxe(e){return(t,r)=>{const n=new Headers(typeof Request<"u"&&t instanceof Request?t.headers:void 0);return r!=null&&r.headers&&new Headers(r.headers).forEach((i,a)=>n.set(a,i)),kxe(e)&&n.get("Authorization")===`Bearer ${e}`&&n.delete("Authorization"),n.set("apikey",e),fetch(t,{...r,headers:n})}}const FL=tR(Exe,Hj,{global:{fetch:Oxe(Hj)},auth:{storage:Sxe(),persistSession:!0,autoRefreshToken:!0}}),Axe=[{event:"CMX Summit",place:"Silicon Valley, USA",detail:"Community leadership on the industry's main stage â 500+ community professionals."},{event:"TBEX Europe",place:"Greece",detail:"Keynote on building a personal brand and audience across borders."},{event:"TBEX",place:"Ireland & United Kingdom",detail:"Sessions on creator-led growth and turning audiences into communities."},{event:"AI Conference",place:"San Francisco, USA",detail:"Community-led GTM for AI startups in the most competitive market on earth."},{event:"Founder events",place:"San Francisco Bay Area",detail:"Hundreds of hosted and moderated dinners, panels, and fireside chats with founders and operators."},{event:"Private mentoring",place:"Global, remote & IRL",detail:"Closed-door sessions with founders and community teams inside startups and big tech."}],qj=["Proving the ROI of community","Generating 50x return on community-led GTM","Community-led startups","Leading community inside big tech","Building a personal brand abroad","Something else (tell me below)"],Txe=["Under 50","50â150","150â500","500â1,000","1,000+"],jxe=()=>{const{toast:e}=vv(),[t,r]=S.useState(!1),[n,i]=S.useState(!1),[a,o]=S.useState({name:"",email:"",organization:"",location:"",event_date:"",event_link:"",audience_size:"",audience_profile:"",topic:"",notes:""}),s=(c,u)=>o(d=>({...d,[c]:u})),l=async c=>{if(c.preventDefault(),t)return;
360const u=["name","email","location","audience_size","audience_profile","topic"];for(const d of u)if(!a[d]){e({title:"Missing information",description:"Please fill in all required fields.",variant:"destructive"});return}r(!0);try{const{error:d}=await FL.functions.invoke("send-speaking-inquiry",{body:a});if(d)throw d;i(!0),window.scrollTo({top:0,behavior:"smooth"})}catch(d){console.error("Speaking inquiry failed:",d),e({title:"Something went wrong",description:"Please try again in a moment, or email [email protected].",variant:"destructive"})}finally{r(!1)}};return h.jsxs("div",{className:"community-theme min-h-screen flex flex-col bg-background text-foreground",children:[h.jsxs(co,{children:[h.jsx("title",{children:"Speaking Opportunities â Ed Giansante"}),h.jsx("meta",{name:"description",content:"Book Ed Giansante to speak: keynotes and panels on community ROI, community-led GTM, and personal brand â from CMX Silicon Valley to TBEX Europe."}),h.jsx("link",{rel:"canonical",href:"https://ed.community/speaking"}),h.jsx("meta",{property:"og:title",content:"Speaking Opportunities â Ed Giansante"}),h.jsx("meta",{property:"og:description",content:"Keynotes, panels, and workshops on community-led growth. Request Ed for your next conference or private event."}),h.jsx("meta",{property:"og:url",content:"https://ed.community/speaking"}),h.jsx("meta",{property:"og:type",content:"website"}),h.jsx("meta",{name:"twitter:card",content:"summary_large_image"})]}),h.jsx(uo,{variant:"pill"}),h.jsxs("main",{className:"flex-1 max-w-4xl w-full mx-auto px-5 sm:px-8 py-20 sm:py-28",children:[h.jsx("p",{className:"eyebrow mb-4",children:"Speaking opportunities"}),h.jsxs("h1",{className:"font-display text-5xl sm:text-6xl md:text-7xl leading-[1] mb-8",children:["Hire me to ",h.jsx("span",{className:"italic text-primary",children:"speak"}),"."]}),h.jsx("div",{className:"hairline w-32 mb-10"}),h.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed max-w-2xl mb-12",children:"Keynotes, fireside chats, panels, and closed-door workshops on community-led growth â delivered to conference halls, founder rooms, and internal teams at some of the largest tech companies in the world."}),h.jsxs("div",{className:"flex flex-wrap gap-4 mb-16",children:[h.jsxs("a",{href:"#request",className:"inline-flex items-center gap-2 px-6 py-3 bg-primary text-primary-foreground text-sm uppercase tracking-[0.14em] hover:opacity-90 transition-opacity",children:["Request me to speak ",h.jsx(Hn,{className:"h-4 w-4"})]}),h.jsx("a",{href:"/mediakit",className:"inline-flex items-center gap-2 px-6 py-3 border border-border/60 text-sm uppercase tracking-[0.14em] hover:border-primary/60 hover:text-primary transition-colors",children:"See media kit"})]}),h.jsxs("section",{className:"mb-20",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx(qB,{className:"h-5 w-5 text-primary"}),h.jsx("h2",{className:"font-display text-3xl sm:text-4xl",children:"Stages & rooms"})]}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:Axe.map(c=>h.jsxs("div",{className:"p-6 border border-border/40 bg-card/30 hover:border-primary/50 transition-colors",children:[h.jsx(y1,{className:"h-5 w-5 text-primary mb-4"}),h.jsx("h3",{className:"font-display text-xl leading-tight mb-1",children:c.event}),h.jsx("p",{className:"text-xs uppercase tracking-[0.14em] text-primary/80 mb-3",children:c.place}),h.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:c.detail})]},`${c.event}-${c.place}`))})]}),h.jsxs("section",{className:"mb-20",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx(i$,{className:"h-5 w-5 text-primary"}),h.jsx("h2",{className:"font-display text-3xl sm:text-4xl",children:"Signature talks"})]}),h.jsxs("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-px bg-border/40 border border-border/40",children:[qj.slice(0,5).map(c=>h.jsx("li",{className:"bg-background p-6 text-base leading-snug",children:c},c)),h.jsx("li",{className:"bg-background p-6 text-sm text-muted-foreground leading-relaxed",children:"Talks are tailored to your audience â send the room profile and I'll shape the session around it."})]})]}),h.jsxs("section",{className:"mb-20 grid grid-cols-1 md:grid-cols-2 gap-px bg-border/40 border border-border/40",children:[h.jsxs("div",{className:"bg-background p-8",children:[h.jsx("p",{className:"eyebrow mb-3",children:"Fees"}),h.jsx("p",{className:"font-display text-3xl sm:text-4xl mb-3",children:"Varies by event"}),h.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Speaking fees depend on format, location, travel, and audience size. Share the details and you'll get a clear quote back."})]}),h.jsxs("div",{className:"bg-background p-8",children:[h.jsx("p",{className:"eyebrow mb-3",children:"Formats"}),h.jsx("p",{className:"font-display text-3xl sm:text-4xl mb-3",children:"Keynote â workshop"}),h.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Keynotes, fireside chats, moderated panels, internal team workshops, and private mentoring sessions."})]})]}),h.jsx("section",{id:"request",className:"scroll-mt-24",children:h.jsx("div",{className:"border-t border-primary/30 bg-primary/[0.06] -mx-5 sm:-mx-8 py-14 px-5 sm:px-8",children:n?h.jsxs("div",{className:"max-w-xl mx-auto text-center",children:[h.jsx(_v,{className:"h-10 w-10 text-primary mx-auto mb-4"}),h.jsx("h2",{className:"font-display text-3xl sm:text-4xl mb-4",children:"Request sent."}),h.jsxs("p",{className:"text-muted-foreground",children:["A confirmation is on its way to your inbox, and you'll hear back within 2 business days. Anything to add? Email"," ",h.jsx("a",{href:"mailto:[email protected]",className:"text-primary underline",children:"[email protected]"}),"."]})]}):h.jsxs("div",{className:"max-w-2xl mx-auto",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[h.jsx(b1,{className:"h-5 w-5 text-primary"}),h.jsx("h2",{className:"font-display text-3xl sm:text-4xl",children:"Request me to speak"})]}),h.jsx("p",{className:"text-muted-foreground mb-8",children:"A few details and you'll get a tailored answer â including fees."}),h.jsxs("form",{onSubmit:l,className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[h.jsxs("div",{children:[h.jsx(wt,{htmlFor:"name",children:"Name *"}),h.jsx(qt,{id:"name",value:a.name,onChange:c=>s("name",c.target.value),required:!0,maxLength:120})]}),h.jsxs("div",{children:[h.jsx(wt,{htmlFor:"email",children:"Email *"}),h.jsx(qt,{id:"email",type:"email",value:a.email,onChange:c=>s("email",c.target.value),required:!0,maxLength:255})]}),h.jsxs("div",{children:[h.jsx(wt,{htmlFor:"organization",children:"Organization"}),h.jsx(qt,{id:"organization",value:a.organization,onChange:c=>s("organization",c.target.value),maxLength:160})]}),h.jsxs("div",{children:[h.jsx(wt,{htmlFor:"location",children:"Location *"}),h.jsx(qt,{id:"location",placeholder:"City, country (or online)",value:a.location,onChange:c=>s("location",c.target.value),required:!0,maxLength:160})]}),h.jsxs("div",{children:[h.jsx(wt,{htmlFor:"event_date",children:"Date"}),h.jsx(qt,{id:"event_date",type:"date",value:a.event_date,onChange:c=>s("event_date",c.target.value)})]}),h.jsxs("div",{children:[h.jsx(wt,{htmlFor:"event_link",children:"Event link"}),h.jsx(qt,{id:"event_link",placeholder:"https://",value:a.event_link,onChange:c=>s("event_link",c.target.value),maxLength:400})]}),h.jsxs("div",{children:[h.jsx(wt,{children:"Expected attendees *"}),h.jsxs(Tr,{value:a.audience_size,onValueChange:c=>s("audience_size",c),children:[h.jsx(hr,{children:h.jsx(jr,{placeholder:"Audience size"})}),h.jsx(pr,{children:Txe.map(c=>h.jsx(Ht,{value:c,children:c},c))})]})]}),h.jsxs("div",{children:[h.jsx(wt,{children:"Topic *"}),h.jsxs(Tr,{value:a.topic,onValueChange:c=>s("topic",c),children:[h.jsx(hr,{children:h.jsx(jr,{placeholder:"Choose a talk"})}),h.jsx(pr,{children:qj.map(c=>h.jsx(Ht,{value:c,children:c},c))})]})]}),h.jsxs("div",{className:"sm:col-span-2",children:[h.jsx(wt,{htmlFor:"audience_profile",children:"Attendee profile *"}),h.jsx(qt,{id:"audience_profile",placeholder:"e.g. founders, community leads, enterprise marketers",value:a.audience_profile,onChange:c=>s("audience_profile",c.target.value),required:!0,maxLength:400})]}),h.jsxs("div",{className:"sm:col-span-2",children:[h.jsx(wt,{htmlFor:"notes",children:"Anything else"}),h.jsx(Q_,{id:"notes",rows:4,value:a.notes,onChange:c=>s("notes",c.target.value),maxLength:2e3})]}),h.jsxs("div",{className:"sm:col-span-2",children:[h.jsxs("button",{type:"submit",disabled:t,className:"inline-flex items-center gap-2 px-6 py-3 bg-primary text-primary-foreground text-sm uppercase tracking-[0.14em] hover:opacity-90 transition-opacity disabled:opacity-60",children:[t?"Sendingâ¦":"Send request",h.jsx(Hn,{className:"h-4 w-4"})]}),h.jsx("p",{className:"text-xs text-muted-foreground mt-3",children:"You'll get an automated confirmation email r
360ight away."})]})]})]})})})]}),h.jsx(Cf,{})]})},Pxe=[{title:"Why this policy matters",body:"Harassment at events â even good ones â is more common than it should be. Having a clear, public policy is how I signal that it won't be tolerated here, reassure people who've had bad experiences elsewhere, and give everyone a shared standard to hold. If you're invited to one of my events, you've earned it. Treat the room accordingly."},{title:"Who this applies to",body:`All guests, speakers, sponsors, collaborators, facilitators, and anyone present at events organized or co-hosted by Ed Giansante â regardless of venue, city, or format. 361 362This policy extends to all event contexts including dinners, brunches, roundtables, and networking gatherings; workshops, talks, and facilitated sessions; side conversations and hallway moments; pre- and post-event communications (email, WhatsApp, Luma, social media); and any virtual or hybrid format.`},{title:"Expected behavior",body:`All participants are expected to be excellent to each other â regardless of title, background, gender identity and expression, sexual orientation, disability, neurodiversity, physical appearance, ethnicity, nationality, race, age, religion, or any other protected category. Treat everyone with respect. Everyone in the room deserves to be there and has the right to enjoy the experience without harassment, discrimination, or condescension. 363 364Think before you speak â jokes that demean others aren't funny. Speak up if you see or hear something off. Honor confidentiality â these are curated, trust-based rooms, and what's shared here stays here unless explicitly noted otherwise. Drink responsibly â use good judgment, excessive drinking that affects your behavior or others' comfort is not tolerated, and do not drink and drive.`},{title:"Unacceptable behavior",body:"Harassment is not tolerated in any form. This includes but is not limited to: verbal language that demeans or marginalizes based on any protected characteristic; sexual imagery, language, or unwelcome sexual attention in any setting; deliberate intimidation, stalking, or following; inappropriate physical contact; harassing photography or recording without consent; sustained disruption of sessions or conversations; sharing attendee information or guest list details without permission; unsolicited pitching or recruiting that makes others uncomfortable; possession of illegal substances or weapons; and destruction or vandalism of venue property."},{title:"Consequences of unacceptable behavior",body:"Violating this policy may result in a verbal warning, removal from the event, or being barred from future events. No refunds or reimbursement of travel expenses will be issued. I reserve the right to refuse admittance to or remove any person from any event I host, at any time, at my sole discretion. Anyone found in violation is expected to comply with that decision immediately."},{title:"What to do if something happens",body:"If you experience or witness behavior that violates this code, please find me directly or message me at [email protected]. If there's a life safety issue, call 911. I take all reports seriously and will use my discretion on how to follow up."},{title:"Accessibility & inclusion",body:"If you have accessibility needs, dietary restrictions, or anything I should know before the event, please reach out in advance. No one should have to navigate those things alone on the day."},{title:"Limited liability",body:'By attending or participating in any event hosted by Ed Giansante, you voluntarily assume all risks related to your participation, including travel to and from the event. You release and hold harmless Ed Giansante, his affiliated brands and event collaborators, partners, sponsors, vendors, venue operators, and each of their respective agents and volunteers from any and all claims, liabilities, damages, losses, or expenses â including personal injury, illness, disability, property damage, theft, or loss â arising from or connected to your participation. This release does not apply to claims of gross negligence, willful misconduct, or unlawful acts to the extent such claims cannot be waived under applicable law. In no event shall any released party be liable for any indirect, incidental, special, consequential, or punitive damages arising out of or in connection with your attendance or participation. All aspects of the event are offered "as-is" without any warranty, express or implied. By participating, you acknowledge that you have read, understood, and agreed to this release and limitation of liability.'},{title:"Media disclaimer",body:"Some events include a photographer or videographer. By attending, you agree to potentially be photographed or recorded. Media captured at my events may be used for social media, websites, newsletters, and other promotional purposes. If you would rather not be photographed or filmed, please let me or the photographer know â that will be respected. For events where photography is a core part of the format, this will be noted in the invitation."},{title:"License and attribution",body:"This policy is adapted from a Creative
364Commons Zero licensed framework, influenced by the Ohio LinuxFest Anti-Harassment Policy, Con Anti-Harassment Project, Geek Feminism Wiki, ConfCodeofConduct.com, JSConf, Rust, Diversity in Python, GitLab Code of Conduct, Write/Speak/Code, and Google. Last updated June 2026."}],Cxe=()=>h.jsxs("div",{className:"community-theme min-h-screen bg-background text-foreground antialiased selection:bg-primary/30",children:[h.jsxs(co,{children:[h.jsx("title",{children:"Events Code of Conduct â Ed Giansante"}),h.jsx("meta",{name:"description",content:"Code of conduct for all events hosted by Ed Giansante. Expected behavior, unacceptable conduct, and reporting guidelines."}),h.jsx("link",{rel:"canonical",href:"https://ed.community/code-of-conduct"}),h.jsx("meta",{property:"og:title",content:"Events Code of Conduct â Ed Giansante"}),h.jsx("meta",{property:"og:description",content:"Code of conduct for all events hosted by Ed Giansante."}),h.jsx("meta",{property:"og:url",content:"https://ed.community/code-of-conduct"})]}),h.jsx(uo,{variant:"pill"}),h.jsxs("main",{className:"max-w-3xl mx-auto px-6 py-20 sm:py-28",children:[h.jsxs("div",{className:"mb-16 text-center",children:[h.jsx("p",{className:"eyebrow mb-5",children:"Events"}),h.jsx("h1",{className:"font-display text-4xl sm:text-5xl md:text-6xl font-medium leading-[1.05] mb-6",children:"Code of Conduct"}),h.jsx("div",{className:"hairline w-32 mx-auto mb-6"}),h.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed max-w-xl mx-auto",children:"Hosted by Ed Giansante"})]}),h.jsxs("div",{className:"prose prose-invert max-w-none",children:[h.jsx("p",{className:"text-lg leading-relaxed text-foreground/90 mb-14",children:"Every event I host is built on one conviction: when the right people are in the right room, things happen that couldn't happen any other way. That only works when everyone feels genuinely safe, welcome, and respected. This code of conduct protects that."}),Pxe.map(e=>h.jsxs("section",{className:"mb-12",children:[h.jsx("h2",{className:"font-display text-2xl sm:text-3xl font-medium mb-4 text-foreground",children:e.title}),h.jsx("div",{className:"hairline w-full mb-6"}),h.jsx("div",{className:"space-y-4 text-muted-foreground leading-relaxed",children:e.body.split(` 365 366`).map((t,r)=>h.jsx("p",{className:"text-[15px] sm:text-base",children:t},r))})]},e.title))]}),h.jsx("div",{className:"mt-20 pt-10 border-t border-border text-center",children:h.jsx("a",{href:"/",className:"inline-flex items-center text-sm text-primary hover:text-primary/80 transition-colors link-reveal",children:"â Back to home"})})]}),h.jsx(Cf,{})]}),Kj=["New York","San Francisco","Los Angeles","Miami","Austin","London","Lisbon","São Paulo","Mexico City","Singapore"],Nxe=[{q:"How much time will this actually take?",a:"1â2 hours per month on average. Fully async â no standing meetings, no reporting decks."},{q:"How does the referral bonus work?",a:"When someone you personally refer joins a dinner and matches our bar for senior operators, founders, or investors, you get a cash bonus per qualified attendee. Specifics shared on the intro call."},{q:"Do I have to bring both a network and hosting skills?",a:"No. Curators bring the guest list, hosts run the room. Some ambassadors do both â most do one and do it well."},{q:"What if there's already an ambassador in my city?",a:"Great â most cities need 2â3. Apply anyway. Complementary networks and different rooms are the goal."}],$xe=()=>h.jsxs("div",{className:"community-theme min-h-screen flex flex-col bg-background text-foreground",children:[h.jsxs(co,{children:[h.jsx("title",{children:"Community Ambassadors â Ed Giansante"}),h.jsx("meta",{name:"description",content:"Become a community ambassador â help curate or host invite-only dinners for senior operators, founders, and investors. All costs covered, plus a cash bonus for high-signal referrals."}),h.jsx("link",{rel:"canonical",href:"https://ed.community/ambassadors"}),h.jsx("meta",{property:"og:title",content:"Community Ambassadors â Ed Giansante"}),h.jsx("meta",{property:"og:description",content:"Curate or host invite-only dinners with Ed. All costs covered. Cash bonus for high-signal referrals. 1â2 hours a month."}),h.jsx("meta",{property:"og:url",content:"https://ed.community/ambassadors"})]}),h.jsx(uo,{variant:"pill"}),h.jsxs("main",{className:"flex-1 max-w-4xl w-full mx-auto px-5 sm:px-8 py-20 sm:py-28",children:[h.jsx("p",{className:"eyebrow mb-4",children:"Community Ambassadors"}),h.jsxs("h1",{className:"font-display text-5xl sm:text-6xl md:text-7xl leading-[1] mb-8",children:["Host the rooms."," ",h.jsx("span",{className:"italic text-primary",children:"Shape the guest list."})]}),h.jsx("div",{className:"hairline w-32 mb-10"}),h.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed max-w-2xl mb-10",children:"Join me in curating invite-only dinners for senior operators, founders, and investors across 15+ cities. You bring the network or the hosting instincts â we cover everything else."}),h.jsxs("div",{className:"flex flex-col sm:flex-row gap-6 items-start sm:items-center mb-24",children:[h.jsxs("a",{href:"/join",className:"group inline-flex items-center gap-2 text-sm uppercase tracking-[0.16em] text-foreground hover:text-primary transition-colors",children:["Apply to join",h.jsx(Hn,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]}),h.jsx("span",{className:"hidden sm:block h-4 w-px bg-border"}),h.jsx("a",{href:"#how-it-works",className:"inline-flex items-center gap-2 text-sm uppercase tracking-[0.16em] text-muted-foreground hover:text-foreground transition-colors",children:"See how it works"})]}),h.jsxs("section",{id:"how-it-works",className:"mb-24",children:[h.jsx("p",{className:"eyebrow mb-4",children:"Two ways to contribute"}),h.jsx("h2",{className:"font-display text-3xl sm:text-4xl mb-10",children:"Pick one. Or both."}),h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[h.jsxs("div",{className:"border border-border/60 p-8 hover:border-primary/50 transition-colors",children:[h.jsx("p",{className:"eyebrow mb-3",children:"The Curator"}),h.jsx("h3",{className:"font-display text-2xl mb-4",children:"You bring the list."}),h.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"For people with a strong personal network of senior operators, founders, or investors. You nominate and vouch for who should be in the room â we handle everything else."})]}),h.jsxs("div",{className:"border border-border/60 p-8 hover:border-primary/50 transition-colors",children:[h.jsx("p",{className:"eyebrow mb-3",children:"The Host"}),h.jsx("h3",{className:"font-display text-2xl mb-4",children:"You make the night."}),h.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"For people with sharp taste and great social instincts. You welcome guests, run the flow, and moderate conversation so the room feels effortless."})]})]})]}),h.jsxs("section",{className:"mb-24",children:[h.jsx("p",{className:"eyebrow mb-4",children:"What we cover"}),h.jsxs("h2",{className:"font-display text-3xl sm:text-4xl mb-10",children:["Zero out of pocket."," ",h.jsx("span",{className:"italic text-primary",children:"Real upside."})]}),h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[{title:"All costs covered",desc:"Venue, F&B, production â you never pay to host. We fund the dinner end to end."},{title:"Cash bonus for referrals",desc:"When a guest you refer joins a dinner and clears our bar, you get a cash bonus per qualified attendee. Real money, not credits."},{title:"Full production support",desc:"Invites, RSVPs, dietary handling, seating, follow-ups â all handled by our team so you can focus on the room."}].map(e=>h.jsxs("div",{className:"border-t border-border/60 pt-6",children:[h.jsx("h3",{className:"font-display text-xl mb-3",children:e.title}),h.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]},e.title))}),h.jsx("p",{className:"text-sm text-muted-foreground italic mt-8 max-w-2xl",children:"This isn't a paid role â it's a way to build your reputation as a connector while we cover the costs and reward the intros that matter."})]}),h.jsxs("section",{className:"mb-24 border-y border-primary/30 bg-primary/[0.06] -mx-5 sm:-mx-8 px-5 sm:px-8 py-14 text-center",children:[h.jsx("p",{className:"eyebrow mb-4",children:"Time commitment"}),h.jsxs("h2",{className:"font-display text-4xl sm:text-5xl mb-6",children:["1â2 hours a month."," ",h.jsx("span",{className:"italic text-primary",children:"That's it."})]}
366),h.jsxs("div",{className:"max-w-xl mx-auto space-y-2 text-muted-foreground",children:[h.jsx("p",{children:"Co-host 2â4 dinners per year in your city."}),h.jsx("p",{children:"Async input on guest lists and city strategy."}),h.jsx("p",{children:"No standing meetings. No reporting decks."})]})]}),h.jsxs("section",{className:"mb-24",children:[h.jsx("p",{className:"eyebrow mb-4",children:"Where we're building"}),h.jsx("h2",{className:"font-display text-3xl sm:text-4xl mb-8",children:"15+ cities and growing."}),h.jsx("div",{className:"flex flex-wrap gap-x-4 gap-y-2 text-muted-foreground",children:Kj.map((e,t)=>h.jsxs("span",{className:"inline-flex items-center gap-4",children:[h.jsx("span",{children:e}),t<Kj.length-1&&h.jsx("span",{className:"text-border",children:"·"})]},e))}),h.jsx("p",{className:"text-sm text-muted-foreground mt-6",children:"Somewhere else? Pitch us â we're always looking for the right person in a new city."})]}),h.jsxs("section",{className:"mb-24",children:[h.jsx("p",{className:"eyebrow mb-4",children:"Also included"}),h.jsxs("ul",{className:"space-y-3 text-muted-foreground max-w-2xl",children:[h.jsx("li",{children:"· Warm intros to my network of founders, VCs, and execs"}),h.jsx("li",{children:"· Featured on ed.community and shout-outs to my 113k+ Instagram and 50k+ LinkedIn audience"}),h.jsx("li",{children:"· Private ambassador group chat with other city leads"}),h.jsx("li",{children:"· First access to speaking and sponsor opportunities I can't take on myself"})]})]}),h.jsxs("section",{className:"mb-24",children:[h.jsx("p",{className:"eyebrow mb-4",children:"Who this is for"}),h.jsxs("ul",{className:"space-y-3 text-muted-foreground max-w-2xl",children:[h.jsxs("li",{children:["· A senior operator, founder, or investor â or the person known as ",h.jsx("em",{children:"the"})," connector in your city"]}),h.jsx("li",{children:"· Genuinely energized by people (curators) or by hosting a great night (hosts)"}),h.jsxs("li",{children:["· Aligned with our"," ",h.jsx("a",{href:"/code-of-conduct",className:"underline underline-offset-2 hover:text-primary",children:"code of conduct"})]}),h.jsx("li",{children:"· Based in or regularly traveling to one of our target cities"})]})]}),h.jsxs("section",{className:"mb-24",children:[h.jsx("p",{className:"eyebrow mb-4",children:"Questions"}),h.jsx("h2",{className:"font-display text-3xl sm:text-4xl mb-8",children:"The short version."}),h.jsx("div",{className:"border-t border-border/60",children:Nxe.map(e=>h.jsxs("details",{className:"group border-b border-border/60 py-5",children:[h.jsxs("summary",{className:"flex items-center justify-between cursor-pointer list-none font-display text-lg",children:[h.jsx("span",{children:e.q}),h.jsx("span",{className:"text-primary text-2xl leading-none transition-transform group-open:rotate-45",children:"+"})]}),h.jsx("p",{className:"text-muted-foreground mt-4 max-w-2xl leading-relaxed",children:e.a})]},e.q))})]}),h.jsxs("section",{className:"border-t border-primary/30 bg-primary/[0.06] -mx-5 sm:-mx-8 py-14 px-5 sm:px-8 text-center",children:[h.jsx("h2",{className:"font-display text-3xl sm:text-4xl mb-6",children:"Ready?"}),h.jsx("p",{className:"text-muted-foreground mb-8 max-w-xl mx-auto",children:"Mention ambassador interest on your application and I'll personally reach out."}),h.jsxs("div",{className:"flex flex-col sm:flex-row gap-6 justify-center items-center",children:[h.jsxs("a",{href:"/join",className:"group inline-flex items-center gap-2 text-sm uppercase tracking-[0.16em] text-foreground hover:text-primary transition-colors",children:["Apply to join",h.jsx(Hn,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]}),h.jsx("span",{className:"hidden sm:block h-4 w-px bg-border"}),h.jsxs("a",{href:"mailto:[email protected]?subject=Community%20Ambassador",className:"group inline-flex items-center gap-2 text-sm uppercase tracking-[0.16em] text-muted-foreground hover:text-foreground transition-colors",children:["Email me directly",h.jsx(Hn,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]})]})]})]}),h.jsx(Cf,{})]}),Rxe=[{iso:"2026-09-10",title:"Private dinner for series A+ founders",audience:"Seed+ founders",href:"https://luma.com/vipfounders"},{iso:"2026-09-09",title:"Faithful Leadership â Faith-driven leaders dinner",audience:"Faith-driven leaders",href:"https://luma.com/mivbeacr?tk=AUPThL"},{iso:"2026-09-03",title:"Michelin star dinner with AI leaders",audience:"AI leaders",href:"https://luma.com/exa-private-dinner"},{iso:"2026-08-27",title:"House of the Prime Rib dinner with YC founders",audience:"YC founders",href:"https://luma.com/HOPRpersona"}
366,{iso:"2026-08-25",title:"SF Founder Dinner #50",audience:"Seed+ founders",href:"https://luma.com/sfdinner50"},{iso:"2026-08-18",title:"SF Founder Dinner #49",audience:"Seed+ founders",href:"https://luma.com/sfdinner49"},{iso:"2026-08-13",title:"Padel tournament",audience:"Execs, VPs, Directors of startups larger than 300 employees / Series B+",href:"https://luma.com/personapadel"},{iso:"2026-08-05",title:"Executive dinner with private chef and sommelier",audience:"C-level and VP level from Enterprises and companies larger than 1K employees",href:"https://luma.com/execdinner"},{iso:"2026-08-04",title:"Private suite at Chase Center â Valkyries game",audience:"C-level and VP level from Enterprises",href:"https://luma.com/personavalksaugust"},{iso:"2026-07-30",title:"Private dinner with seed and series A founders",audience:"Founders (min $2M ARR)",href:"https://luma.com/dinewithfounders"},{iso:"2026-07-21",title:"Private dining for seed and series A",audience:"Founders (min $1M ARR)",href:"https://luma.com/founderstablesf"},{iso:"2026-07-21",title:"Private chef dining",audience:"Series A+ founders (min $2M ARR)",href:"https://luma.com/privateroomsf"},{iso:"2026-07-17",title:"Corgi cafe takeover",audience:"Founders & operators of all company sizes",href:"https://luma.com/personacorgi"},{iso:"2026-07-16",title:"Private dining with wine tasting",audience:"Seed and Series A founders (min $1M ARR)",href:"https://luma.com/privatedine"},{iso:"2026-07-15",title:"Michelin-guide dinner",audience:"Seed and Series A founders (min $2M ARR)",href:"https://luma.com/michelindinner"}],Ixe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Gj=e=>{const[t,r,n]=e.split("-").map(Number);return{day:String(n),month:Ixe[r-1],y:t}},Mxe=()=>new Date().toISOString().slice(0,10),Dxe=e=>{const t=Mxe(),r=(n,i)=>n.iso.localeCompare(i.iso);return{upcoming:e.filter(n=>n.iso>=t).sort(r),past:e.filter(n=>n.iso<t).sort(r).reverse()}},Lxe=({event:e,past:t=!1})=>h.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:`group flex flex-col sm:flex-row sm:items-start gap-5 p-5 sm:p-6 border transition-colors ${t?"border-border/20 bg-card/20 hover:border-primary/30 opacity-80 hover:opacity-100":"border-border/40 hover:border-primary/50 bg-card/30"}`,children:[h.jsxs("div",{className:"flex sm:flex-col items-center sm:items-start gap-2 sm:gap-0 min-w-[3.5rem]",children:[h.jsx("span",{className:`font-display text-3xl sm:text-4xl leading-none ${t?"text-muted-foreground":"text-foreground"}`,children:Gj(e.iso).day}),h.jsx("span",{className:"text-[11px] uppercase tracking-[0.16em] text-primary",children:Gj(e.iso).month})]}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("h3",{className:`font-display text-xl sm:text-2xl leading-tight mb-2 group-hover:text-primary transition-colors ${t?"text-muted-foreground":"text-foreground"}`,children:e.title}),h.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-4",children:e.audience}),h.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs uppercase tracking-[0.14em] text-primary",children:[t?"View on Luma":"RSVP on Luma",h.jsx(rs,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5"})]})]})]}),Yj=({title:e,events:t,past:r=!1})=>h.jsxs("section",{className:"mb-16 sm:mb-20",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx(g1,{className:"h-5 w-5 text-primary"}),h.jsx("h2",{className:"font-display text-3xl sm:text-4xl text-foreground",children:e}),r&&h.jsxs("span",{className:"ml-auto inline-flex items-center gap-1.5 text-[11px] uppercase tracking-[0.14em] text-muted-foreground border border-border/40 px-2.5 py-1",children:[h.jsx(WB,{className:"h-3 w-3"}),"Past events"]})]}),h.jsx("div",{className:"grid grid-cols-1 gap-4",children:t.map(n=>h.jsx(Lxe,{event:n,past:r},n.href))})]}),Bxe=()=>{const{upcoming:e,past:t}=Dxe(Rxe);return h.jsxs("div",{className:"community-theme min-h-screen flex flex-col bg-background text-foreground",children:[h.jsxs(co,{children:[h.jsx("title",{children:"Private Events â Ed Giansante"}),h.jsx("meta",{name:"description",content:"Invite-only dinners, suites, tastings, and experiences hosted by Ed Giansante in July and August 2026 for founders, executives, and investors."}),h.jsx("link",{rel:"canonical",href:"https://ed.community/private-events"}),h.jsx("meta",{property:"og:title",content:"Private Events â Ed Giansante"}),h.jsx("meta",{property:"og:description",content:"Michelin dinners, private suites, wine tastings, and curated experiences for senior operators and investors."}),h.jsx("meta",{property:"og:url",content:"https://ed.community/private-events"}),h.jsx("meta",{property:"og:image",content:"https://ed.community/__l5e/assets-v1/6d86231b-bff6-47f9-8f8
3661-7c26c7fc7f60/private-events-social.jpg"}),h.jsx("meta",{property:"og:image:alt",content:"Ed Giansante hosting an intimate dinner with founders and investors."}),h.jsx("meta",{property:"og:image:width",content:"1519"}),h.jsx("meta",{property:"og:image:height",content:"1035"}),h.jsx("meta",{name:"twitter:image",content:"https://ed.community/__l5e/assets-v1/6d86231b-bff6-47f9-8f81-7c26c7fc7f60/private-events-social.jpg"}),h.jsx("meta",{name:"twitter:image:alt",content:"Ed Giansante hosting an intimate dinner with founders and investors."})]}),h.jsx(uo,{variant:"pill"}),h.jsxs("main",{className:"flex-1 max-w-4xl w-full mx-auto px-5 sm:px-8 py-20 sm:py-28",children:[h.jsx("p",{className:"eyebrow mb-4",children:"August â September 2026"}),h.jsxs("h1",{className:"font-display text-5xl sm:text-6xl md:text-7xl leading-[1] mb-8",children:["Private ",h.jsx("span",{className:"italic text-primary",children:"events"}),"."]}),h.jsx("div",{className:"hairline w-32 mb-10"}),h.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed max-w-2xl mb-6",children:"A curated calendar of invite-only dinners, tastings, suites, and experiences I'm hosting this summer. Each one is designed for a specific profile â pick the room that fits you and request an invite."}),h.jsxs("a",{href:"https://lesupper.com",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm font-semibold uppercase tracking-[0.12em] text-primary hover:text-foreground transition-colors mb-14",children:["Request a bespoke dinner",h.jsx(rs,{className:"h-4 w-4"})]}),e.length>0&&h.jsx(Yj,{title:"Upcoming",events:e}),t.length>0&&h.jsx(Yj,{title:"Previously",events:t,past:!0}),h.jsx("section",{className:"relative overflow-hidden border border-primary/30 bg-primary/[0.06] -mx-5 sm:-mx-8 py-16 sm:py-20 px-5 sm:px-8 text-center rounded-2xl sm:rounded-3xl",children:h.jsxs("div",{className:"relative z-10 max-w-2xl mx-auto",children:[h.jsx("h2",{className:"font-display text-3xl sm:text-5xl mb-5 leading-[1.1]",children:"Want to host your own private event?"}),h.jsx("p",{className:"text-muted-foreground mb-10 max-w-xl mx-auto text-base sm:text-lg",children:"From intimate chef's-table dinners to executive suites and offsites, I'll help you design an experience your guests won't forget."}),h.jsxs("a",{href:"https://lesupper.com",target:"_blank",rel:"noopener noreferrer",className:"pill-primary group inline-flex items-center gap-3 px-8 py-4 text-sm font-semibold uppercase tracking-[0.12em]",children:["Request one now",h.jsx(Hn,{className:"h-5 w-5 transition-transform group-hover:translate-x-1"})]})]})})]}),h.jsx(Cf,{})]})},Fxe=[{icon:y1,title:"Discussion panels & fireside chats",description:"Curated conversations with operators and investors your guests actually want to hear from â moderated to land insight, not filler."},{icon:XB,title:"Startup pitch nights",description:"Vetted founders pitch to a room built of the exact investors, customers, or partners they need in front of them."},{icon:JB,title:"Experiential",description:"Sauna and cold plunge, boat parties, golf outings, winery tours â memorable formats that put you next to the people who matter."},{icon:ZB,title:"Private dinners",description:"Chef's-table dinners for 8â20 with a shared theme, tight guest list, and a conversation that keeps going after the plates are cleared."},{icon:HB,title:"Curated brunches",description:"Slower, higher-signal mornings for founders and operators who won't do another cocktail hour."}
366,{icon:n$,title:"Full-day immersions",description:"Company visits, workshops, and birds-of-a-feather sessions strung together into a day that produces real relationships and follow-ups."},{icon:KB,title:"1:1 matchmaking",description:"Booked meetings between your team and key decision-makers at the companies on your target list â no cold outreach required."}],Uxe=["Discussion panel / fireside chat","Startup pitch night","Experiential (sauna, boat, golf, winery)","Private dinner","Brunch","Full-day immersion","1:1 matchmaking","Not sure yet"],zxe=["6â10","11â15","16â25","25+"],Vxe=["$4Kâ$10K","$10Kâ$25K","$25Kâ$50K","$50K+"],Wxe=["1","2â5","6â10","10+"],Hxe=()=>{const{toast:e}=vv(),[t,r]=S.useState(!1),[n,i]=S.useState(!1),[a,o]=S.useState({name:"",email:"",company:"",city:"",event_type:"",desired_date:"",size:"",budget:"",event_count:"",notes:""}),s=(c,u)=>o(d=>({...d,[c]:u})),l=async c=>{if(c.preventDefault(),t)return;const u=["name","email","company","city","event_type","size","budget","event_count"];for(const d of u)if(!a[d]){e({title:"Missing information",description:"Please fill in all required fields.",variant:"destructive"});return}r(!0);try{const{error:d}=await FL.functions.invoke("send-event-inquiry",{body:a});if(d)throw d;i(!0),window.scrollTo({top:0,behavior:"smooth"})}catch(d){console.error("Inquiry submission failed:",d),e({title:"Something went wrong",description:"Please try again in a moment, or email [email protected].",variant:"destructive"})}finally{r(!1)}};return h.jsxs("div",{className:"community-theme min-h-screen flex flex-col bg-background text-foreground",children:[h.jsxs(co,{children:[h.jsx("title",{children:"Host your event with Ed Giansante"}),h.jsx("meta",{name:"description",content:"Formats, panels, dinners, and immersions produced end-to-e
366nd for sponsors. Co-sponsorships start at $4K. Inquire to design your next IRL event."}),h.jsx("link",{rel:"canonical",href:"https://ed.community/host-your-event"}),h.jsx("meta",{property:"og:title",content:"Host your event with Ed Giansante"}),h.jsx("meta",{property:"og:description",content:"Curated IRL formats for sponsors â dinners, panels, pitch nights, experiential, and 1:1 matchmaking. From $4K."}),h.jsx("meta",{property:"og:url",content:"https://ed.community/host-your-event"}),h.jsx("meta",{property:"og:image",content:"https://ed.community/__l5e/assets-v1/6d86231b-bff6-47f9-8f81-7c26c7fc7f60/private-events-social.jpg"})]}),h.jsx(uo,{variant:"pill"}),h.jsxs("main",{className:"flex-1 max-w-4xl w-full mx-auto px-5 sm:px-8 py-20 sm:py-28",children:[h.jsx("p",{className:"eyebrow mb-4",children:"Host your event"}),h.jsxs("h1",{className:"font-display text-5xl sm:text-6xl md:text-7xl leading-[1] mb-8",children:["Formats that turn ",h.jsx("span",{className:"italic text-primary",children:"rooms"})," into pipeline."]}),h.jsx("div",{className:"hairline w-32 mb-10"}),h.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed max-w-2xl mb-12",children:"Curated IRL experiences for founders, operators, and enterprise decision-makers â designed, produced, and hosted end-to-end. You pick the outcome, we design the room."}),h.jsxs("div",{className:"flex flex-wrap gap-4 mb-16",children:[h.jsxs("a",{href:"#inquire",className:"inline-flex items-center gap-2 px-6 py-3 bg-primary text-primary-foreground text-sm uppercase tracking-[0.14em] hover:opacity-90 transition-opacity",children:["Inquire now ",h.jsx(Hn,{className:"h-4 w-4"})]}),h.jsx("a",{href:"#formats",className:"inline-flex items-center gap-2 px-6 py-3 border border-border/60 text-sm uppercase tracking-[0.14em] hover:border-primary/60 hover:text-primary transition-colors",children:"See formats"})]}),h.jsxs("section",{className:"grid grid-cols-1 md:grid-cols-2 gap-px bg-border/40 border border-border/40 mb-20",children:[h.jsxs("div",{className:"bg-background p-8",children:[h.jsx("p",{className:"eyebrow mb-3",children:"Sponsor ROI"}),h.jsx("p",{className:"font-display text-4xl sm:text-5xl mb-3",children:"50x+"}),h.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Sponsors have generated over 50x ROI across a series of hosted IRL events."})]}),h.jsxs("div",{className:"bg-background p-8",children:[h.jsx("p",{className:"eyebrow mb-3",children:"Co-sponsorships"}),h.jsx("p",{className:"font-display text-4xl sm:text-5xl mb-3",children:"From $4K"}),h.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Excl. taxes. Incremental discounts and benefits unlock at 6+ events within a calendar year."})]})]}),h.jsxs("section",{id:"formats",className:"mb-20",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx(b1,{className:"h-5 w-5 text-primary"}),h.jsx("h2",{className:"font-display text-3xl sm:text-4xl",children:"Formats"})]}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:Fxe.map(c=>{const u=c.icon;return h.jsxs("div",{className:"p-6 border border-border/40 bg-card/30 hover:border-primary/50 transition-colors",children:[h.jsx(u,{className:"h-6 w-6 text-primary mb-4"}),h.jsx("h3",{className:"font-display text-xl mb-2 leading-tight",children:c.title}),h.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:c.description})]},c.title)})})]}),h.jsxs("section",{className:"mb-20",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx(g1,{className:"h-5 w-5 text-primary"}),h.jsx("h2",{className:"font-display text-3xl sm:text-4xl",children:"How it works"})]}),h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[{n:"01",t:"Tell us what you want to achieve",d:"Pipeline, brand, hiring, customer love â start from the outcome, not the format."},{n:"02",t:"We design the format, room, and guest list",d:"You get a written proposal with format, venue, guest profile, and timeline."}
366,{n:"03",t:"You show up",d:"We handle production end-to-end â invites, RSVPs, venue, run of show, follow-ups."}].map(c=>h.jsxs("div",{className:"p-6 border border-border/40 bg-card/30",children:[h.jsx("p",{className:"font-display text-3xl text-primary mb-3",children:c.n}),h.jsx("h3",{className:"font-display text-lg mb-2 leading-tight",children:c.t}),h.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:c.d})]},c.n))})]}),h.jsx("section",{id:"inquire",className:"scroll-mt-24",children:h.jsx("div",{className:"border-t border-primary/30 bg-primary/[0.06] -mx-5 sm:-mx-8 py-14 px-5 sm:px-8",children:n?h.jsxs("div",{className:"max-w-xl mx-auto text-center",children:[h.jsx(_v,{className:"h-10 w-10 text-primary mx-auto mb-4"}),h.jsx("h2",{className:"font-display text-3xl sm:text-4xl mb-4",children:"Got it."}),h.jsxs("p",{className:"text-muted-foreground",children:["We'll be in touch within 2 business days with a proposal. In the meantime, feel free to email"," ",h.jsx("a",{href:"mailto:[email protected]",className:"text-primary underline",children:"[email protected]"})," ","with anything you'd like to add."]})]}):h.jsxs("div",{className:"max-w-2xl mx-auto",children:[h.jsx("p",{className:"eyebrow mb-3",children:"Inquire"}),h.jsx("h2",{className:"font-display text-3xl sm:text-4xl mb-4",children:"Tell us about your event"}),h.jsx("p",{className:"text-muted-foreground mb-8",children:"Share a few details and we'll come back with a tailored proposal."}),h.jsxs("form",{onSubmit:l,className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[h.jsxs("div",{className:"sm:col-span-1",children:[h.jsx(wt,{htmlFor:"name",children:"Name *"}),h.jsx(qt,{id:"name",value:a.name,onChange:c=>s("name",c.target.value),required:!0,maxLength:120})]}),h.jsxs("div",{className:"sm:col-span-1",children:[h.jsx(wt,{htmlFor:"email",children:"Work email *"}),h.jsx(qt,{id:"email",type:"email",value:a.email,onChange:c=>s("email",c.target.value),required:!0,maxLength:255})]}),h.jsxs("div",{className:"sm:col-span-1",children:[h.jsx(wt,{htmlFor:"company",children:"Company *"}),h.jsx(qt,{id:"company",value:a.company,onChange:c=>s("company",c.target.value),required:!0,maxLength:160})]}),h.jsxs("div",{className:"sm:col-span-1",children:[h.jsx(wt,{htmlFor:"city",children:"City *"}),h.jsx(qt,{id:"city",value:a.city,onChange:c=>s("city",c.target.value),required:!0,maxLength:120})]}),h.jsxs("div",{className:"sm:col-span-1",children:[h.jsx(wt,{children:"Event type *"}),h.jsxs(Tr,{value:a.event_type,onValueChange:c=>s("event_type",c),children:[h.jsx(hr,{children:h.jsx(jr,{placeholder:"Choose a format"})}),h.jsx(pr,{children:Uxe.map(c=>h.jsx(Ht,{value:c,children:c},c))})]})]}),h.jsxs("div",{className:"sm:col-span-1",children:[h.jsx(wt,{htmlFor:"desired_date",children:"Desired date"}),h.jsx(qt,{id:"desired_date",type:"date",value:a.desired_date,onChange:c=>s("desired_date",c.target.value)})]}),h.jsxs("div",{className:"sm:col-span-1",children:[h.jsx(wt,{children:"Estimated size *"}),h.jsxs(Tr,{value:a.size,onValueChange:c=>s("size",c),children:[h.jsx(hr,{children:h.jsx(jr,{placeholder:"Guests"})}),h.jsx(pr,{children:zxe.map(c=>h.jsx(Ht,{value:c,children:c},c))})]})]}),h.jsxs("div",{className:"sm:col-span-1",children:[h.jsx(wt,{children:"Estimated budget *"}),h.jsxs(Tr,{value:a.budget,onValueChange:c=>s("budget",c),children:[h.jsx(hr,{children:h.jsx(jr,{placeholder:"Starting at $4K"})}),h.jsx(pr,{children:Vxe.map(c=>h.jsx(Ht,{value:c,children:c},c))})]})]}),h.jsxs("div",{className:"sm:col-span-2",children:[h.jsx(wt,{children:"How many events do you plan to host? *"}),h.jsxs(Tr,{value:a.event_count,onValueChange:c=>s("event_count",c),children:[h.jsx(hr,{children:h.jsx(jr,{placeholder:"Within a calendar year"})}),h.jsx(pr,{children:Wxe.map(c=>h.jsx(Ht,{value:c,children:c},c))})]}),h.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"Incremental discounts and benefits unlock at 6+ events within a calendar year."})]}),h.jsxs("div",{className:"sm:col-span-2",children:[h.jsx(wt,{htmlFor:"notes",children:"Anything else"}),h.jsx(Q_,{id:"notes",value:a.notes,onChange:c=>s("notes",c.target.value),rows:4,maxLength:2e3,placeholder:"Audience, goals, must-invites, constraintsâ¦"})]}),h.jsxs("div",{className:"sm:col-span-2 flex flex-wrap items-center gap-4 pt-2",children:[h.jsx(z1,{type:"submit",disabled:t,className:"uppercase tracking-[0.14em]",children:t?"Sendingâ¦":"Send inquiry"}),h.jsxs("p",{className:"text-xs text-muted-foreground",children:["Or email"," ",h.jsx("a",{href:"mailto:[email protected]",className:"text-primary underline",children:"[email protected]"}),"."]})]})]})]})})})]}),h.jsx(Cf,{})]})},qxe=()=>{const e=R1();return S.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),h.jsxs(h.Fragment,{children:[h.jsxs(co,{children:[h.jsx("title",{children:"Page not found â Ed Giansante"}),h.jsx("meta",{name:"description",content:"This page doesn't exist. Head back to ed.community to explore Ed Giansante's work, speaking, and community projects."}),h.jsx("meta",{name:"robots",content:"noindex, follow"}),h.jsx("link",{rel:"canonical",href:"https://ed.community/404"}),h.jsx("meta",{property:"og:title",content:"Page not found â Ed Giansante"}),h.jsx("meta",{property:"og:description",content:"This page doesn't exist. Head back to ed.community."}),h.jsx("meta",{property:"og:url",content:"https://ed.community/404"})]}),h.jsx("div",{className:"community-theme min-h-screen bg-background text-foreground",children:h.jsx("main",{className:"min-h-screen flex items-center justify-center px-6",children:h.jsxs("div",{className:"text-center",children:[h.jsx("h1",{className:"font-display text-6xl sm:text-7xl mb-4",children:"404"}),h.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"Oops! That page doesn't exist."}),h.jsx("a",{href:"/",className:"pill-primary inline-flex items-center px-6 py-3 text-sm font-semibold",children:"Return home"})]})})})]})},Kxe=new oU,Gxe=()=>h.jsx(lU,{client:Kxe,children:h.jsxs(D8,{children:[h.jsx(IF,{}),h.jsx(u6,{}),h.jsx(qU,{children:h.jsxs(VU,{children:[h.jsx(ni,{path:"/",element:h.jsx(Lz,{})}),h.jsx(ni,{path:"/join",element:h.jsx(aK,{})}),h.jsx(ni,{path:"/speaking",element:h.jsx(jxe,{})}),h.jsx(ni,{path:"/mediakit",element:h.jsx(_xe,{})}
366),h.jsx(ni,{path:"/code-of-conduct",element:h.jsx(Cxe,{})}),h.jsx(ni,{path:"/ambassadors",element:h.jsx($xe,{})}),h.jsx(ni,{path:"/private-events",element:h.jsx(Bxe,{})}),h.jsx(ni,{path:"/host-your-event",element:h.jsx(Hxe,{})}),h.jsx(ni,{path:"*",element:h.jsx(qxe,{})})]})})]})});yN(document.getElementById("root")).render(h.jsx(kN,{children:h.jsx(Gxe,{})}));
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.