PageSourceSearch

https://brickvault-dev93ss4.manus.space/assets/index-BcxIlV11.js

js brickvault-dev93ss4.manus.space collected 2026-10-03 05:00:39 UTC 1,065,702 bytes, 415 lines download raw bytes

vendor: 28,184 bytes, lines 1-9
1function FB(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var Zd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nv={exports:{}},Xc={};/**
2 * @license React
3 * react-jsx-runtime.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and 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 Zj;function UB(){if(Zj)return Xc;Zj=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var l=null;if(o!==void 0&&(l=""+o),a.key!==void 0&&(l=""+a.key),"key"in a){o={};for(var c in a)c!=="key"&&(o[c]=a[c])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:o}}return Xc.Fragment=t,Xc.jsx=n,Xc.jsxs=n,Xc}var Jj;function HB(){return Jj||(Jj=1,nv.exports=UB()),nv.exports}var y=HB(),Xo=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(){}},WB={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},VB=class{#t=WB;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},Do=new VB;function GB(e){setTimeout(e,0)}var qo=typeof window>"u"||"Deno"in globalThis;function jn(){}function KB(e,t){return typeof e=="function"?e(t):e}function O1(e){return typeof e=="number"&&e>=0&&e!==1/0}function wk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Vi(e,t){return typeof e=="function"?e(t):e}function Pr(e,t){return typeof e=="function"?e(t):e}function eE(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==Ow(l,t.options))return!1}else if(!ju(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||o&&!o(t))}function tE(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Ki(t.options.mutationKey)!==Ki(o))return!1}else if(!ju(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Ow(e,t){return(t?.queryKeyHashFn||Ki)(e)}function Ki(e){return JSON.stringify(e,(t,n)=>_1(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function ju(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ju(e[n],t[n])):!1}var YB=Object.prototype.hasOwnProperty;function _w(e,t){if(e===t)return e;const n=nE(e)&&nE(t);if(!n&&!(_1(e)&&_1(t)))return t;const a=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),l=o.length,c=n?new Array(l):{};let f=0;for(let d=0;d<l;d++){const m=n?d:o[d],p=e[m],g=t[m];if(p===g){c[m]=p,(n?d<a:YB.call(e,m))&&f++;continue}if(p===null||g===null||typeof p!="object"||typeof g!="object"){c[m]=g;continue}const b=_w(p,g);c[m]=b,b===p&&f++}return a===l&&f===a?e:c}function Eu(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function nE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _1(e){if(!rE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!rE(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function rE(e){return Object.prototype.toString.call(e)==="[object Object]"}function QB(e){return new Promise(t=>{Do.setTimeout(t,e)})}function j1(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?_w(e,t):t}function XB(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ZB(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var sr=Symbol();function Ak(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===sr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ok(e,t){return typeof e=="function"?e(...t):!!e}var JB=class extends Xo{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!qo&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},jw=new JB;function E1(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var eI=GB;function tI(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=eI;const o=c=>{t?e.push(c):a(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&a(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:c=>{let f;t++;try{f=c()}finally{t--,t||l()}return f},batchCalls:c=>(...f)=>{o(()=>{c(...f)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{a=c}}}var zt=tI(),nI=class extends Xo{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!qo&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},Dh=new nI;function rI(e){return Math.min(1e3*2**e,3e4)}function _k(e){return(e??"online")==="online"?Dh.isOnline():!0}var C1=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function jk(e){let t=!1,n=0,r;const a=E1(),o=()=>a.status!=="pending",l=S=>{if(!o()){const A=new C1(S);g(A),e.onCancel?.(A)}},c=()=>{t=!0},f=()=>{t=!1},d=()=>jw.isFocused()&&(e.networkMode==="always"||Dh.isOnline())&&e.canRun(),m=()=>_k(e.networkMode)&&e.canRun(),p=S=>{o()||(r?.(),a.resolve(S))},g=S=>{o()||(r?.(),a.reject(S))},b=()=>new Promise(S=>{r=A=>{(o()||d())&&S(A)},e.onPause?.()}).then(()=>{r=void 0,o()||e.onContinue?.()}),w=()=>{if(o())return;let S;const A=n===0?e.initialPromise:void 0;try{S=A??e.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(p).catch(_=>{if(o())return;const T=e.retry??(qo?0:3),E=e.retryDelay??rI,P=typeof E=="function"?E(n,_):E,O=T===!0||typeof T=="number"&&n<T||typeof T=="function"&&T(n,_);if(t||!O){g(_);return}n++,e.onFail?.(n,_),QB(P).then(()=>d()?void 0:b()).then(()=>{t?g(_):w()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(r?.(),a),cancelRetry:c,continueRetry:f,canStart:m,start:()=>(m()?w():b().then(w),a)}}var Ek=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),O1(this.gcTime)&&(this.#t=Do.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(qo?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Do.clearTimeout(this.#t),this.#t=void 0)}},aI=class extends Ek{#t;#e;#n;#a;#r;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=aE(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=aE(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=j1(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(jn).catch(jn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Pr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===sr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Vi(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!wk(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(f=>f.options.queryFn);c&&this.setOptions(c.options)}const n=new AbortController,r=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const c=Ak(this.options,t),d=(()=>{const m={client:this.#a,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#s=!1,this.options.persister?this.options.persister(c,d,this):c(d)},l=(()=>{const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:a};return r(c),c})();this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#o({type:"fetch",meta:l.fetchOptions?.meta}),this.#r=jk({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:c=>{c instanceof C1&&c.revert&&this.setState({...this.#e,fetchStatus:"idle"}),n.abort()},onFail:(c,f)=>{this.#o({type:"failed",failureCount:c,error:f})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const c=await this.#r.start();if(c===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(c),this.#n.config.onSuccess?.(c,this),this.#n.config.onSettled?.(c,this.state.error,this),c}catch(c){if(c instanceof C1){if(c.silent)return this.#r.promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw this.#o({type:"error",error:c}),this.#n.config.onError?.(c,this),this.#n.config.onSettled?.(this.state.data,c,this),c}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Ck(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?r:void 0,r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),zt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Ck(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_k(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function aE(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Sf=class extends Xo{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#s=E1(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#i;#s;#o;#h;#f;#d;#c;#u;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),iE(this.#e,this.options)?this.#p():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return T1(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return T1(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pr(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),t._defaulted&&!Eu(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&oE(this.#e,n,this.options,t)&&this.#p(),this.updateResult(),r&&(this.#e!==n||Pr(this.options.enabled,this.#e)!==Pr(t.enabled,this.#e)||Vi(this.options.staleTime,this.#e)!==Vi(t.staleTime,this.#e))&&this.#g();const a=this.#y();r&&(this.#e!==n||Pr(this.options.enabled,this.#e)!==Pr(t.enabled,this.#e)||a!==this.#l)&&this.#v(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return oI(this,n)&&(this.#a=n,this.#i=this.options,this.#r=this.#e.state),n}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#p(e){this.#w();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(jn)),t}#g(){this.#x();const e=Vi(this.options.staleTime,this.#e);if(qo||this.#a.isStale||!O1(e))return;const n=wk(this.#a.dataUpdatedAt,e)+1;this.#c=Do.setTimeout(()=>{this.#a.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(e){this.#S(),this.#l=e,!(qo||Pr(this.options.enabled,this.#e)===!1||!O1(this.#l)||this.#l===0)&&(this.#u=Do.setInterval(()=>{(this.options.refetchIntervalInBackground||jw.isFocused())&&this.#p()},this.#l))}#b(){this.#g(),this.#v(this.#y())}#x(){this.#c&&(Do.clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(Do.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#a,o=this.#r,l=this.#i,f=e!==n?e.state:this.#n,{state:d}=e;let m={...d},p=!1,g;if(t._optimisticResults){const N=this.hasListeners(),B=!N&&iE(e,t),q=N&&oE(e,n,t,r);(B||q)&&(m={...m,...Ck(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:b,errorUpdatedAt:w,status:S}=m;g=m.data;let A=!1;if(t.placeholderData!==void 0&&g===void 0&&S==="pending"){let N;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(N=a.data,A=!0):N=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,N!==void 0&&(S="success",g=j1(a?.data,N,t),p=!0)}if(t.select&&g!==void 0&&!A)if(a&&g===o?.data&&t.select===this.#h)g=this.#f;else try{this.#h=t.select,g=t.select(g),g=j1(a?.data,g,t),this.#f=g,this.#o=null}catch(N){this.#o=N}this.#o&&(b=this.#o,g=this.#f,w=Date.now(),S="error");const _=m.fetchStatus==="fetching",T=S==="pending",E=S==="error",P=T&&_,O=g!==void 0,j={status:S,fetchStatus:m.fetchStatus,isPending:T,isSuccess:S==="success",isError:E,isInitialLoading:P,isLoading:P,data:g,dataUpdatedAt:m.dataUpdatedAt,error:b,errorUpdatedAt:w,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:_,isRefetching:_&&!T,isLoadingError:E&&!O,isPaused:m.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:E&&O,isStale:Ew(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Pr(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const N=I=>{j.status==="error"?I.reject(j.error):j.data!==void 0&&I.resolve(j.data)},B=()=>{const I=this.#s=j.promise=E1();N(I)},q=this.#s;switch(q.status){case"pending":e.queryHash===n.queryHash&&N(q);break;case"fulfilled":(j.status==="error"||j.data!==q.value)&&B();break;case"rejected":(j.status!=="error"||j.error!==q.reason)&&B();break}}return j}updateResult(){const e=this.#a,t=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#i=this.options,this.#r.data!==void 0&&(this.#d=this.#e),Eu(t,e))return;this.#a=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#m.size)return!0;const o=new Set(a??this.#m);return this.options.throwOnError&&o.add("error"),Object.keys(this.#a).some(l=>{const c=l;return this.#a[c]!==e[c]&&o.has(c)})};this.#A({listeners:n()})}#w(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#A(e){zt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function iI(e,t){return Pr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function iE(e,t){return iI(e,t)||e.state.data!==void 0&&T1(e,t,t.refetchOnMount)}function T1(e,t,n){if(Pr(t.enabled,e)!==!1&&Vi(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ew(e,t)}return!1}function oE(e,t,n,r){return(e!==t||Pr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ew(e,n)}function Ew(e,t){return Pr(t.enabled,e)!==!1&&e.isStaleByTime(Vi(t.staleTime,e))}function oI(e,t){return!Eu(e.getCurrentResult(),t)}function Nh(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},f=0;const d=async()=>{let m=!1;const p=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},g=Ak(t.options,t.fetchOptions),b=async(w,S,A)=>{if(m)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const T=(()=>{const C={client:t.client,queryKey:t.queryKey,pageParam:S,direction:A?"backward":"forward",meta:t.options.meta};return p(C),C})(),E=await g(T),{maxPages:P}=t.options,O=A?ZB:XB;return{pages:O(w.pages,E,P),pageParams:O(w.pageParams,S,P)}};if(a&&o.length){const w=a==="backward",S=w?Tk:P1,A={pages:o,pageParams:l},_=S(r,A);c=await b(A,_,w)}else{const w=e??o.length;do{const S=f===0?l[0]??r.initialPageParam:P1(r,c);if(f>0&&S==null)break;c=await b(c,S),f++}while(f<w)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function P1(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Tk(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function sI(e,t){return t?P1(e,t)!=null:!1}function lI(e,t){return!t||!e.getPreviousPageParam?!1:Tk(e,t)!=null}var Pk=class extends Sf{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Nh()})}getOptimisticResult(e){return e.behavior=Nh(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,r=super.createResult(e,t),{isFetching:a,isRefetching:o,isError:l,isRefetchError:c}=r,f=n.fetchMeta?.fetchMore?.direction,d=l&&f==="forward",m=a&&f==="forward",p=l&&f==="backward",g=a&&f==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:sI(t,n.data),hasPreviousPage:lI(t,n.data),isFetchNextPageError:d,isFetchingNextPage:m,isFetchPreviousPageError:p,isFetchingPreviousPage:g,isRefetchError:c&&!d&&!p,isRefetching:o&&!m&&!g}}},cI=class extends Ek{#t;#e;#n;#a;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||Mk(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=jk({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(o,l)=>{this.#r({type:"failed",failureCount:o,error:l})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",a=!this.#a.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:a}),await this.#n.config.onMutate?.(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#r({type:"pending",context:l,variables:e,isPaused:a})}const o=await this.#a.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#r({type:"success",data:o}),o}catch(o){try{throw await this.#n.config.onError?.(o,e,this.state.context,this,n),await this.options.onError?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,o,e,this.state.context,n),o}finally{this.#r({type:"error",error:o})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),zt.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Mk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var uI=class extends Xo{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new cI({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=Jd(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=Jd(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Jd(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Jd(e);return typeof t=="string"?this.#e.get(t)?.find(r=>
vendor: 2,022 bytes, line 9
9r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){zt.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>tE(t,n))}findAll(e={}){return this.getAll().filter(t=>tE(e,t))}notify(e){zt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return zt.batch(()=>Promise.all(e.map(t=>t.continue().catch(jn))))}};function Jd(e){return e.options.scope?.id}var fI=class extends Xo{#t;#e=void 0;#n;#a;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),Eu(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Ki(n.mutationKey)!==Ki(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(t,n){return this.#a=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??Mk();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){zt.batch(()=>{if(this.#a&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context,a={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#a.onSuccess?.(t.data,n,r,a),this.#a.onSettled?.(t.data,null,
9n,r,a)):t?.type==="error"&&(this.#a.onError?.(t.error,n,r,a),this.#a.onSettled?.(void 0,t.error,n,r,a))}this.listeners.forEach(n=>{n(this.#e)})})}};function sE(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function dI(e,t,n){const r=e.slice(0);return r[t]=n,r}var hI=class extends Xo{#t;#e;#n;#a;#r;#i;#s;#o;#h=[];constructor(e,t,n){super(),this.#t=e,this.#a=n,this.#n=[],this.#r=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(e=>{e.subscribe(t=>{this.#u(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#a=t,zt.batch(()=>{const n=this.#r,r=this.#c(this.#n);this.#h=r,r.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const a=r.map(m=>m.observer),o=a.map(m=>m.getCurrentResult()),l=n.length!==a.length,c=a.some((m,p)=>m!==n[p]),f=l||c,d=f?!0:o.some((m,p)=>{const g=this.#e[p];return!g||!Eu(m,g)});!f&&!d||(f&&(this.#r=a),this.#e=o,this.hasListeners()&&(f&&(sE(n,a).forEach(m=>{m.destroy()}),sE(a,n).forEach(m=>{m.subscribe(p=>{this.#u(m,p)})})),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){const n=this.#c(e),r=n.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions));return[r,a=>this.#d(a??r,t),()=>this.#f(r,n)]}#f(e,t){return t.map((n,r)=>{const a=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?a:n.observer.trackResult(a,o=>{t.forEach(l=>{l.observer.trackProp(o)})})})}#d(e,t){return t?((!this.#i||this.#e!==this.#o||t!==this.#s)&&(this.#s=t,this.#o=this.#e,this.#i=_w(this.#i,t(e))),this.#i):e}#c(e){const t=new Map(this.#r.map(r=>[r.options.queryHash,r])),n=[];return e.forEach(r=>{const a=this.#t.defaultQueryOptions(r),o=t.get(a.queryHash);o?n.push({defaultedQueryOptions:a,observer:o}):n.push({defaultedQueryOptions:a,observer:new Sf(this.#t,a)})}),n}#u(e,t){const n=this.#r.indexOf(e);n!==-1&&(this.#e=dI(this.#e,n,t),this.#l())}#l(){if(this.hasListeners()){const e=this.#i,t=this.#f(this.#e,this.#h),n=this.#d(t,this.#a?.combine);e!==n&&zt.batch(()=>{this.listeners.forEach(r=>{r(this.#e)})})}}},pI=class extends Xo{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??Ow(r,t);let o=this.get(a);return o||(o=new aI({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){zt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>eE(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>eE(e,n)):t}notify(e){zt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){zt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){zt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},mI=class{#t;#e;#n;#a;#r;#i;#s;#o;constructor(e={}){this.#t=e.queryCache||new pI,this.#e=e.mutationCache||new uI,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=jw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=Dh.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Vi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#t.get(r.queryHash)?.state.data,l=KB(t,o);if(l!==void 0)return this.#t.build(this,r).setData(l,{...n,manual:!0})}
vendor: 11,459 bytes, lines 9-17
9setQueriesData(e,t,n){return zt.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;zt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return zt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=zt.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(jn).catch(jn)}invalidateQueries(e,t={}){return zt.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=zt.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(jn)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(jn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(Vi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(jn).catch(jn)}fetchInfiniteQuery(e){return e.behavior=Nh(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jn).catch(jn)}ensureInfiniteQueryData(e){return e.behavior=Nh(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Dh.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#a.set(Ki(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{ju(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(Ki(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{ju(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ow(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===sr&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},rv={exports:{}},Re={};/**
10 * @license React
11 * react.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and 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 lE;function gI(){if(lE)return Re;lE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function b($){return $===null||typeof $!="object"?null:($=g&&$[g]||$["@@iterator"],typeof $=="function"?$:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,A={};function _($,V,Y){this.props=$,this.context=V,this.refs=A,this.updater=Y||w}_.prototype.isReactComponent={},_.prototype.setState=function($,V){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,V,"setState")},_.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function T(){}T.prototype=_.prototype;function E($,V,Y){this.props=$,this.context=V,this.refs=A,this.updater=Y||w}var P=E.prototype=new T;P.constructor=E,S(P,_.prototype),P.isPureReactComponent=!0;var O=Array.isArray;function C(){}var j={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function B($,V,Y){var Z=Y.ref;return{$$typeof:e,type:$,key:V,ref:Z!==void 0?Z:null,props:Y}}function q($,V){return B($.type,V,$.props)}function I($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function L($){var V={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(Y){return V[Y]})}var W=/\/+/g;function K($,V){return typeof $=="object"&&$!==null&&$.key!=null?L(""+$.key):V.toString(36)}function U($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(C,C):($.status="pending",$.then(function(V){$.status==="pending"&&($.status="fulfilled",$.value=V)},function(V){$.status==="pending"&&($.status="rejected",$.reason=V)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function R($,V,Y,Z,ce){var he=typeof $;(he==="undefined"||he==="boolean")&&($=null);var me=!1;if($===null)me=!0;else switch(he){case"bigint":case"string":case"number":me=!0;break;case"object":switch($.$$typeof){case e:case t:me=!0;break;case m:return me=$._init,R(me($._payload),V,Y,Z,ce)}}if(me)return ce=ce($),me=Z===""?"."+K($,0):Z,O(ce)?(Y="",me!=null&&(Y=me.replace(W,"$&/")+"/"),R(ce,V,Y,"",function(pe){return pe})):ce!=null&&(I(ce)&&(ce=q(ce,Y+(ce.key==null||$&&$.key===ce.key?"":(""+ce.key).replace(W,"$&/")+"/")+me)),V.push(ce)),1;me=0;var ye=Z===""?".":Z+":";if(O($))for(var ue=0;ue<$.length;ue++)Z=$[ue],he=ye+K(Z,ue),me+=R(Z,V,Y,he,ce);else if(ue=b($),typeof ue=="function")for($=ue.call($),ue=0;!(Z=$.next()).done;)Z=Z.value,he=ye+K(Z,ue++),me+=R(Z,V,Y,he,ce);else if(he==="object"){if(typeof $.then=="function")return R(U($),V,Y,Z,ce);throw V=String($),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return me}function F($,V,Y){if($==null)return $;var Z=[],ce=0;return R($,Z,"","",function(he){return V.call(Y,he,ce++)}),Z}function H($){if($._status===-1){var V=$._result;V=V(),V.then(function(Y){($._status===0||$._status===-1)&&($._status=1,$._result=Y)},function(Y){($._status===0||$._status===-1)&&($._status=2,$._result=Y)}),$._status===-1&&($._status=0,$._result=V)}if($._status===1)return $._result.default;throw $._result}var J=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},ae={map:F,forEach:function($,V,Y){F($,function(){V.apply(this,arguments)},Y)},count:function($){var V=0;return F($,function(){V++}),V},toArray:function($){return F($,function(V){return V})||[]},only:function($){if(!I($))throw Error("React.Children.only expected to receive a single React element child.");return $}};return Re.Activity=p,Re.Children=ae,Re.Component=_,Re.Fragment=n,Re.Profiler=a,Re.PureComponent=E,Re.StrictMode=r,Re.Suspense=f,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,Re.__COMPILER_RUNTIME={__proto__:null,c:function($){return j.H.useMemoCache($)}},Re.cache=function($){return function(){return $.apply(null,arguments)}},Re.cacheSignal=function(){return null},Re.cloneElement=function($,V,Y){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var Z=S({},$.props),ce=$.key;if(V!=null)for(he in V.key!==void 0&&(ce=""+V.key),V)!N.call(V,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&V.ref===void 0||(Z[he]=V[he]);var he=arguments.length-2;if(he===1)Z.children=Y;else if(1<he){for(var me=Array(he),ye=0;ye<he;ye++)me[ye]=arguments[ye+2];Z.children=me}return B($.type,ce,Z)},Re.createContext=function($){return $={$$typeof:l,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:o,_context:$},$},Re.createElement=function($,V,Y){var Z,ce={},he=null;if(V!=null)for(Z in V.key!==void 0&&(he=""+V.key),V)N.call(V,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ce[Z]=V[Z]);var me=arguments.length-2;if(me===1)ce.children=Y;else if(1<me){for(var ye=Array(me),ue=0;ue<me;ue++)ye[ue]=arguments[ue+2];ce.children=ye}if($&&$.defaultProps)for(Z in me=$.defaultProps,me)ce[Z]===void 0&&(ce[Z]=me[Z]);return B($,he,ce)},Re.createRef=function(){return{current:null}},Re.forwardRef=function($){return{$$typeof:c,render:$}},Re.isValidElement=I,Re.lazy=function($){return{$$typeof:m,_payload:{_status:-1,_result:$},_init:H}},Re.memo=function($,V){return{$$typeof:d,type:$,compare:V===void 0?null:V}},Re.startTransition=function($){var V=j.T,Y={};j.T=Y;try{var Z=$(),ce=j.S;ce!==null&&ce(Y,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(C,J)}catch(he){J(he)}finally{V!==null&&Y.types!==null&&(V.types=Y.types),j.T=V}},Re.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},Re.use=function($){return j.H.use($)},Re.useActionState=function($,V,Y){return j.H.useActionState($,V,Y)},Re.useCallback=function($,V){return j.H.useCallback($,V)},Re.useContext=function($){return j.H.useContext($)},Re.useDebugValue=function(){},Re.useDeferredValue=function($,V){return j.H.useDeferredValue($,V)},Re.useEffect=function($,V){return j.H.useEffect($,V)},Re.useEffectEvent=function($){return j.H.useEffectEvent($)},Re.useId=function(){return j.H.useId()},Re.useImperativeHandle=function($,V,Y){return j.H.useImperativeHandle($,V,Y)},Re.useInsertionEffect=function($,V){return j.H.useInsertionEffect($,V)},Re.useLayoutEffect=function($,V){return j.H.useLayoutEffect($,V)},Re.useMemo=function($,V){return j.H.useMemo($,V)},Re.useOptimistic=function($,V){return j.H.useOptimistic($,V)},Re.useReducer=function($,V,Y){return j.H.useReducer($,V,Y)},Re.useRef=function($){return j.H.useRef($)},Re.useState=function($){return j.H.useState($)},Re.useSyncExternalStore=function($,V,Y){return j.H.useSyncExternalStore($,V,Y)},Re.useTransition=function(){return j.H.useTransition()},Re.version="19.2.1",Re}var cE;function Hp(){return cE||(cE=1,rv.exports=gI()),rv.exports}var D=Hp();const z=lt(D),Dk=FB({__proto__:null,default:z},[D]);var Nk=D.createContext(void 0),wf=e=>{const t=D.useContext(Nk);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},yI=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(Nk.Provider,{value:e,children:t})),Rk=D.createContext(!1),kk=()=>D.useContext(Rk);Rk.Provider;function vI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var bI=D.createContext(vI()),zk=()=>D.useContext(bI),Bk=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOn
17Mount=!1))},Ik=e=>{D.useEffect(()=>{e.clearReset()},[e])},$k=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||Ok(n,[e.error,r])),Cw=(e,t)=>t.state.data===void 0,Lk=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},qk=(e,t)=>e.isLoading&&e.isFetching&&!t,M1=(e,t)=>e?.suspense&&t.isPending,Rh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Fk({queries:e,...t},n){const r=wf(n),a=kk(),o=zk(),l=D.useMemo(()=>e.map(S=>{const A=r.defaultQueryOptions(S);return A._optimisticResults=a?"isRestoring":"optimistic",A}),[e,r,a]);l.forEach(S=>{Lk(S),Bk(S,o)}),Ik(o);const[c]=D.useState(()=>new hI(r,l,t)),[f,d,m]=c.getOptimisticResult(l,t.combine),p=!a&&t.subscribed!==!1;D.useSyncExternalStore(D.useCallback(S=>p?c.subscribe(zt.batchCalls(S)):jn,[c,p]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),D.useEffect(()=>{c.setQueries(l,t)},[l,t,c]);const b=f.some((S,A)=>M1(l[A],S))?f.flatMap((S,A)=>{const _=l[A];if(_){const T=new Sf(r,_);if(M1(_,S))return Rh(_,T,o);qk(S,a)&&Rh(_,T,o)}return[]}):[];if(b.length>0)throw Promise.all(b);const w=f.find((S,A)=>{const _=l[A];return _&&$k({result:S,errorResetBoundary:o,throwOnError:_.throwOnError,query:r.getQueryCache().get(_.queryHash),suspense:_.suspense})});if(w?.error)throw w.error;return d(m())}function Wp(e,t,n){const r=kk(),a=zk(),o=wf(n),l=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",Lk(l),Bk(l,a),Ik(a);const c=!o.getQueryCache().get(l.queryHash),[f]=D.useState(()=>new t(o,l)),d=f.getOptimisticResult(l),m=!r&&e.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(p=>{const g=m?f.subscribe(zt.batchCalls(p)):jn;return f.updateResult(),g},[f,m]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),D.useEffect(()=>{f.setOptions(l)},[l,f]),M1(l,d))throw Rh(l,f,a);if($k({result:d,errorResetBoundary:a,throwOnError:l.throwOnError,query:o.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw d.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(l,d),l.experimental_prefetchInRender&&!qo&&qk(d,r)&&(c?Rh(l,f,a):o.getQueryCache().get(l.queryHash)?.promise)?.catch(jn).finally(()=>{f.updateResult()}),l.notifyOnChangeProps?d:f.trackResult(d)}function xI(e,t){return Wp(e,Sf,t)}function SI(e,t){return Wp({...e,enabled:!0,suspense:!0,throwOnError:Cw,placeholderData:void 0},Sf,t)}function wI(e,t){return Wp({...e,enabled:!0,suspense:!0,throwOnError:Cw},Pk,t)}function AI(e,t){return Fk({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:Cw,enabled:!0,placeholderData:void 0}))},t)}function OI(e,t){const n=wf(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function _I(e,t){const n=wf(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function jI(e,t){const n=wf(t),[r]=D.useState(()=>new fI(n,e));D.useEffect(()=>{r.setOptions(e)},[r,e]);const a=D.useSyncExternalStore(D.useCallback(l=>r.subscribe(zt.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=D.useCallback((l,c)=>{r.mutate(l,c).catch(jn)},[r]);if(a.error&&Ok(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}function EI(e,t){return Wp(e,Pk,t)}function Fo(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const CI=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Uk(e){return CI&&Fo(e)&&Symbol.asyncIterator in e}var TI=Object.create,Hk=Object.defineProperty,PI=Object.getOwnPropertyDescriptor,Wk=Object.getOwnPropertyNames,MI=Object.getPrototypeOf,DI=Object.prototype.hasOwnProperty,Af=(e,t)=>function(){return t||(0,e[Wk(e)[0]])((t={exports:{}}).exports,t),t.exports},NI=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=Wk(t),o=0,l=a.length,c;o<l;o++)c=a[o],!DI.call(e,c)&&c!==n&&Hk(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=PI(t,c))||r.enumerable});return e},Vp=(e,t,n)=>(n=e!=null?TI(MI(e)):{},NI(Hk(n,"default",{value:e,enumerable:!0}),e));const Vk=()=>{},uE=e=>{Object.freeze&&Object.freeze(e)};
17function Gk(e,t,n){var r;const a=t.join(".");return(r=n[a])!==null&&r!==void 0||(n[a]=new Proxy(Vk,{get(o,l){if(!(typeof l!="string"||l==="then"))return Gk(e,[...t,l],n)},apply(o,l,c){const f=t[t.length-1];let d={args:c,path:t};return f==="call"?d={args:c.length>=2?[c[1]]:[],path:t.slice(0,-1)}:f==="apply"&&(d={args:c.length>=2?c[1]:[],path:t.slice(0,-1)}),uE(d.args),uE(d.path),e(d)}})),n[a]}const Gp=e=>Gk(e,[],Object.create(null)),Tw=e=>new Proxy(Vk,{get(t,n){if(n!=="then")return e(n)}});var Kk=Af({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),RI=Af({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Kk().default;function r(a,o){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var c=l.call(a,o||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),kI=Af({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Kk().default,r=RI();function a(o){var l=r(o,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Yk=Af({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=kI();function r(a,o,l){return(o=n(o))in a?Object.defineProperty(a,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[o]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Pw=Af({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Yk();function r(o,l){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(o);l&&(f=f.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),c.push.apply(c,f)}return c}function a(o){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(f){n(o,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(f){Object.defineProperty(o,f,Object.getOwnPropertyDescriptor(c,f))})}return o}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});Vp(Pw());Vp(Yk());var eh=Vp(Pw());function zI(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,eh.default)((0,eh.default)({},e),{},{error:r})}}return{ok:!0,result:(0,eh.default)((0,eh.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var av=class extends Error{constructor(){super("Unable to transform response from server")}};function BI(e,t){let n;try{n=zI(e,t)}catch{throw new av}if(!n.ok&&(!Fo(n.error.error)||typeof n.error.error.code!="number"))throw new av;if(n.ok&&!Fo(n.result))throw new av;return n}Vp(Pw());function Kp(e){const t={subscribe(n){let r=null,a=!1,o=!1,l=!1;function c(){if(r===null){l=!0;return}o||(o=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(f){var d;a||(d=n.next)===null||d===void 0||d.call(n,f)},error(f){var d;a||(a=!0,(d=n.error)===null||d===void 0||d.call(n,f),c())},complete(){var f;a||(a=!0,(f=n.complete)===null||f===void 0||f.call(n),c())}}),l&&c(),{unsubscribe:c}},pipe(...n){return n.reduce(II,t)}};return t}function II(e,t){return t(e)}function $I(e){const t=new AbortController;return new Promise((r,a)=>{let o=!1;function l(){o||(o=!0,c.unsubscribe())}t.signal.addEventListener("abort",()=>{a(t.signal.reason)});const c=e.subscribe({next(f){o=!0,r(f),l()},error(f){a(f)},complete(){t.abort(),l()}})})}var LI=Object.create,Qk=Object.defineProperty,qI=Object.getOwnPropertyDescriptor,Xk=Object.getOwnPropertyNames,FI=Object.getPrototypeOf,UI=Object.prototype.hasOwnProperty,Zi=(e,t)=>function(){return t||(0,e[Xk(e)[0]])((t={exports:{}}).exports,t),t.exports},HI=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=Xk(t),o=0,l=a.length,c;o<l;o++)c=a[o],!UI.call(e,c)&&c!==n&&Qk(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=qI(t,c))||r.enumerable});return e},Zo=(e,t,n)=>(n=e!=null?LI(FI(e)):{},HI(t||!e||!e.__esModule?Qk(n,"default",{value:e,enumerable:!0}):n,e)),WI=Zi({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,a){if(r==null)return{};var o={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(a.includes(l))continue;o[l]=r[l]}return o}
17t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),VI=Zi({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=WI();function r(a,o){if(a==null)return{};var l,c,f=n(a,o);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);for(c=0;c<d.length;c++)l=d[c],o.includes(l)||{}.propertyIsEnumerable.call(a,l)&&(f[l]=a[l])}return f}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Zk=Zi({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),GI=Zi({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Zk().default;function r(a,o){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var c=l.call(a,o||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),KI=Zi({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Zk().default,r=GI();function a(o){var l=r(o,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),YI=Zi({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=KI();function r(a,o,l){return(o=n(o))in a?Object.defineProperty(a,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[o]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Of=Zi({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=YI();function r(o,l){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(o);l&&(f=f.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),c.push.apply(c,f)}return c}function a(o){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(f){n(o,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(f){Object.defineProperty(o,f,Object.getOwnPropertyDescriptor(c,f))})}return o}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),QI=Zo(VI(),1),fE=Zo(Of(),1);const XI=["cursor","direction"];function sa(e,t,n){const r=e.flatMap(a=>a.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&Fo(t)&&("direction"in t||"cursor"in t)){const{cursor:a,direction:o}=t,l=(0,QI.default)(t,XI);return[r,{input:l,type:"infinite"}]}return[r,(0,fE.default)((0,fE.default)({},typeof t<"u"&&t!==sr&&{input:t}),n&&n!=="any"&&{type:n})]}function _h(e){return sa(e,void 0,"any")}var ZI=Object.create,Jk=Object.defineProperty,JI=Object.getOwnPropertyDescriptor,e5=Object.getOwnPropertyNames,e$=Object.getPrototypeOf,t$=Object.prototype.hasOwnProperty,va=(e,t)=>function(){return t||(0,e[e5(e)[0]])((t={exports:{}}).exports,t),t.exports},n$=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=e5(t),o=0,l=a.length,c;o<l;o++)c=a[o],!t$.call(e,c)&&c!==n&&Jk(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=JI(t,c))||r.enumerable});return e},qt=(e,t,n)=>(n=e!=null?ZI(e$(e)):{},n$(t||!e||!e.__esModule?Jk(n,"default",{value:e,enumerable:!0}):n,e)),t5=va({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a}
17,t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),r$=va({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=t5().default;function r(a,o){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var c=l.call(a,o||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),a$=va({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=t5().default,r=r$();function a(o){var l=r(o,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Jo=va({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=a$();function r(a,o,l){return(o=n(o))in a?Object.defineProperty(a,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[o]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Jr=va({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Jo();function r(o,l){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(o);l&&(f=f.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),c.push.apply(c,f)}return c}function a(o){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(f){n(o,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(f){Object.defineProperty(o,f,Object.getOwnPropertyDescriptor(c,f))})}return o}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});function i$(e){return t=>{let n=0,r=null;const a=[];function o(){r||(r=t.subscribe({next(c){for(const d of a){var f;(f=d.next)===null||f===void 0||f.call(d,c)}},error(c){for(const d of a){var f;(f=d.error)===null||f===void 0||f.call(d,c)}},complete(){for(const f of a){var c;(c=f.complete)===null||c===void 0||c.call(f)}}}))}function l(){if(n===0&&r){const c=r;r=null,c.unsubscribe()}}return Kp(c=>(n++,a.push(c),o(),{unsubscribe(){n--,l();const f=a.findIndex(d=>d===c);f>-1&&a.splice(f,1)}}))}}function o$(e){let t=e;const n=[],r=l=>{t!==void 0&&l.next(t),n.push(l)},a=l=>{n.splice(n.indexOf(l),1)},o=Kp(l=>(r(l),()=>{a(l)}));return o.next=l=>{if(t!==l){t=l;for(const c of n)c.next(l)}},o.get=()=>t,o}function s$(e){return Kp(t=>{function n(a=0,o=e.op){const l=e.links[a];if(!l)throw new Error("No more links to execute - did you forget to add an ending link?");return l({op:o,next(f){return n(a+1,f)}})}return n().subscribe(t)})}var th=qt(Jo(),1),Gs=qt(Jr(),1);function l$(e){return e instanceof hl}function c$(e){return Fo(e)&&Fo(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function u$(e,t){return typeof e=="string"?e:Fo(e)&&typeof e.message=="string"?e.message:t}var hl=class jh extends Error{constructor(t,n){var r,a;const o=n?.cause;super(t,{cause:o}),(0,th.default)(this,"cause",void 0),(0,th.default)(this,"shape",void 0),(0,th.default)(this,"data",void 0),(0,th.default)(this,"meta",void 0),this.meta=n?.meta,this.cause=o,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(a=n.result)===null||a===void 0?void 0:a.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,jh.prototype)}static from(t,n={}){const r=t;return l$(r)?(n.meta&&(r.meta=(0,Gs.default)((0,Gs.default)({},r.meta),n.meta)),r):c$(r)?new jh(r.error.message,(0,Gs.default)((0,Gs.default)({},n),{},{result:r})):new jh(u$(r,"Unknown error"),(0,Gs.default)((0,Gs.default)({},n),{},{cause:r}))}};function f$(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const dE=e=>typeof e=="function";function d$(e){if(e)return e;if(typeof window<"u"&&dE(window.fetch))return window.fetch;if(typeof globalThis<"u"&&dE(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var hu=qt(Jr());function h$(e){return{url:e.url.toString(),fetch:e.fetch,transformer:f$(e.transformer),methodOverride:e.methodOverride}}function p$(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const m$={query:"GET",mutation:"POST",subscription:"PATCH"};function n5(e){return"input"in e?e.transformer.input.serialize(e.input):p$(e.input
17s.map(t=>e.transformer.input.serialize(t)))}const r5=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const a=[];if(t[1]&&a.push(t[1]),"inputs"in e&&a.push("batch=1"),e.type==="query"||e.type==="subscription"){const o=n5(e);o!==void 0&&e.methodOverride!=="POST"&&a.push(`input=${encodeURIComponent(JSON.stringify(o))}`)}return a.length&&(r+="?"+a.join("&")),r},g$=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=n5(e);return t!==void 0?JSON.stringify(t):void 0},y$=e=>S$((0,hu.default)((0,hu.default)({},e),{},{contentTypeHeader:"application/json",getUrl:r5,getBody:g$}));var v$=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const b$=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new v$};async function x$(e){var t;b$(e.signal);const n=e.getUrl(e),r=e.getBody(e),a=(t=e.methodOverride)!==null&&t!==void 0?t:m$[e.type],o=await(async()=>{const c=await e.headers();return Symbol.iterator in c?Object.fromEntries(c):c})(),l=(0,hu.default)((0,hu.default)((0,hu.default)({},e.contentTypeHeader&&a!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),o);return d$(e.fetch)(n,{method:a,signal:e.signal,body:r,headers:l})}async function S$(e){const t={},n=await x$(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}qt(Jr(),1);const hE=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function pE(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function a(c){const f=[[]];let d=0;for(;;){const g=c[d];if(!g)break;const b=f[f.length-1];if(g.aborted){var m;(m=g.reject)===null||m===void 0||m.call(g,new Error("Aborted")),d++;continue}if(e.validate(b.concat(g).map(S=>S.key))){b.push(g),d++;continue}if(b.length===0){var p;(p=g.reject)===null||p===void 0||p.call(g,new Error("Input is too big for a single dispatch")),d++;continue}f.push([])}return f}function o(){const c=a(t);r();for(const f of c){if(!f.length)continue;const d={items:f};for(const p of f)p.batch=d;e.fetch(d.items.map(p=>p.key)).then(async p=>{await Promise.all(p.map(async(b,w)=>{const S=d.items[w];try{var A;const T=await Promise.resolve(b);(A=S.resolve)===null||A===void 0||A.call(S,T)}catch(T){var _;(_=S.reject)===null||_===void 0||_.call(S,T)}S.batch=null,S.reject=null,S.resolve=null}));for(const b of d.items){var g;(g=b.reject)===null||g===void 0||g.call(b,new Error("Missing result")),b.batch=null}}).catch(p=>{for(const b of d.items){var g;(g=b.reject)===null||g===void 0||g.call(b,p),b.batch=null}})}}function l(c){var f;const d={aborted:!1,key:c,batch:null,resolve:hE,reject:hE},m=new Promise((p,g)=>{var b;d.reject=g,d.resolve=p,(b=t)!==null&&b!==void 0||(t=[]),t.push(d)});return(f=n)!==null&&f!==void 0||(n=setTimeout(o)),m}return{load:l}}function w$(...e){const t=new AbortController,n=e.length;let r=0;const a=()=>{++r===n&&t.abort()};for(const o of e)o?.aborted?a():o?.addEventListener("abort",a,{once:!0});return t.signal}var nh=qt(Jr(),1);function A$(e){var t,n;const r=h$(e),a=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,o=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const l=m=>({validate(p){if(a===1/0&&o===1/0)return!0;if(p.length>o)return!1;const g=p.map(S=>S.path).join(","),b=p.map(S=>S.input);return r5((0,nh.default)((0,nh.default)({},r),{},{type:m,path:g,inputs:b,signal:null})).length<=a},async fetch(p){const g=p.map(T=>T.path).join(","),b=p.map(T=>T.input),w=w$(...p.map(T=>T.signal)),S=await y$((0,nh.default)((0,nh.default)({},r),{},{path:g,inputs:b,type:m,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:p}):e.headers:{}},signal:w}));return(Array.isArray(S.json)?S.json:p.map(()=>S.json)).map(T=>({meta:S.meta,json:T}))}}),c=pE(l("query")),f=pE(l("mutation")),d={query:c,mutation:f};return({op:m})=>Kp(p=>{/* istanbul ignore if -- @preserve */if(m.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const b=d[m.type].load(m);let w;return b.then(S=>{w=S;const A=BI(S.json,r.transformer.output);if(!A.ok){p.error(hl.from(A.error,{meta:S.meta}));return}p.next({context:S.meta,result:A.result}),p.complete()}).catch(S=>{p.error(hl.from(S,{meta:w?.meta}))}),()=>{}})}}qt(Jr(),1);const a5=(e,...t)=>typeof e=="function"?e(...t):e;
17qt(Jo(),1);function O$(){let e,t;return{promise:new Promise((r,a)=>{e=r,t=a}),resolve:e,reject:t}}async function _$(e){const t=await a5(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function j$(e){const t={method:"connectionParams",data:await a5(e)};return JSON.stringify(t)}qt(Jo(),1);var Eo=qt(Jo(),1);function E$(e){const{promise:t,resolve:n,reject:r}=O$();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function C$(e,{intervalMs:t,pongTimeoutMs:n}){let r,a;function o(){r=setTimeout(()=>{e.send("PING"),a=setTimeout(()=>{e.close()},n)},t)}function l(){clearTimeout(r),o()}function c(){clearTimeout(a),l()}e.addEventListener("open",o),e.addEventListener("message",({data:f})=>{clearTimeout(r),o(),f==="PONG"&&c()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(a)})}var T$=class D1{constructor(t){var n;if((0,Eo.default)(this,"id",++D1.connectCount),(0,Eo.default)(this,"WebSocketPonyfill",void 0),(0,Eo.default)(this,"urlOptions",void 0),(0,Eo.default)(this,"keepAliveOpts",void 0),(0,Eo.default)(this,"wsObservable",o$(null)),(0,Eo.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++D1.connectCount;const n=_$(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:a}){a==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&C$(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await E$(r),t.urlOptions.connectionParams&&r.send(await j$(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,Eo.default)(T$,"connectCount",0);qt(Jo(),1);qt(Jr(),1);var iv=qt(Jo(),1),mE=qt(Jr(),1),Yp=class{constructor(e){(0,iv.default)(this,"links",void 0),(0,iv.default)(this,"runtime",void 0),(0,iv.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return s$({links:this.links,op:(0,mE.default)((0,mE.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(i$())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await $I(n)).result.data}catch(n){throw hl.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(a){switch(a.result.type){case"state":{var o;(o=n.onConnectionStateChange)===null||o===void 0||o.call(n,a.result);break}case"started":{var l;(l=n.onStarted)===null||l===void 0||l.call(n,{context:a.context});break}case"stopped":{var c;(c=n.onStopped)===null||c===void 0||c.call(n);break}case"data":case void 0:{var f;(f=n.onData)===null||f===void 0||f.call(n,a.result.data);break}}},error(a){var o;(o=n.onError)===null||o===void 0||o.call(n,a)},complete(){var a;(a=n.onComplete)===null||a===void 0||a.call(n)}})}};const i5=Symbol.for("trpc_untypedClient"),P$={query:"query",mutate:"mutation",subscribe:"subscription"},M$=e=>P$[e];function o5(e){const t=Gp(({path:n,args:r})=>{const a=[...n],o=M$(a.pop()),l=a.join(".");return e[o](l,...r)});return Tw(n=>n===i5?e:t[n])}function D$(e){const t=new Yp(e);return o5(t)}function Mw(e){return e[i5]}qt(Jr(),1);qt(Jr(),1);var N$=va({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var o,l,c,f=2;for(typeof Symbol<"u"&&(l=Symbol.asyncIterator,c=Symbol.iterator);f--;){if(l&&(o=a[l])!=null)return o.call(a);if(c&&(o=a[c])!=null)return new r(o.call(a));l="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function o(l){if(Object(l)!==l)return Promise.reject(new TypeError(l+" is not an object."));var c=l.done;return Promise.resolve(l.value).then(function(f){return{value:f,done:c}})}return r=function(c){this.s=c,this.n=c.next},r.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(c){var f=this.s.return;return f===void 0?Promise.resolve({value:c,done:!0}):o(f.apply(this.s,arguments))},throw:function(c){var f=this.s.return;return f===void 0?Promise.reject(c):o(f.apply(this.s,arguments))}},new r(a)}
17t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});qt(N$(),1);qt(Jr(),1);var R$=va({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(c,f){var d=Error();return d.name="SuppressedError",d.error=c,d.suppressed=f,d},a={},o=[];function l(c,f){if(f!=null){if(Object(f)!==f)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(c)var d=f[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(d===void 0&&(d=f[Symbol.dispose||Symbol.for("Symbol.dispose")],c))var m=d;if(typeof d!="function")throw new TypeError("Object is not disposable.");m&&(d=function(){try{m.call(f)}catch(g){return Promise.reject(g)}}),o.push({v:f,d,a:c})}else c&&o.push({d:f,a:c});return f}return{e:a,u:l.bind(null,!1),a:l.bind(null,!0),d:function(){var f,d=this.e,m=0;function p(){for(;f=o.pop();)try{if(!f.a&&m===1)return m=0,o.push(f),Promise.resolve().then(p);if(f.d){var b=f.d.call(f.v);if(f.a)return m|=2,Promise.resolve(b).then(p,g)}else m|=1}catch(w){return g(w)}if(m===1)return d!==a?Promise.reject(d):Promise.resolve();if(d!==a)throw d}function g(b){return d=d!==a?new r(b,d):b,p()}return p()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),s5=va({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,a){this.v=r,this.k=a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),k$=va({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=s5();function r(a){return new n(a,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),z$=va({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=s5();function r(o){return function(){return new a(o.apply(this,arguments))}}function a(o){var l,c;function f(m,p){try{var g=o[m](p),b=g.value,w=b instanceof n;Promise.resolve(w?b.v:b).then(function(S){if(w){var A=m==="return"?"return":"next";if(!b.k||S.done)return f(A,S);S=o[A](S).value}d(g.done?"return":"normal",S)},function(S){f("throw",S)})}catch(S){d("throw",S)}}function d(m,p){switch(m){case"return":l.resolve({value:p,done:!0});break;case"throw":l.reject(p);break;default:l.resolve({value:p,done:!1})}(l=l.next)?f(l.key,l.arg):c=null}this._invoke=function(m,p){return new Promise(function(g,b){var w={key:m,arg:p,resolve:g,reject:b,next:null};c?c=c.next=w:(l=c=w,f(m,p))})},typeof o.return!="function"&&(this.return=void 0)}a.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(o){return this._invoke("next",o)},a.prototype.throw=function(o){return this._invoke("throw",o)},a.prototype.return=function(o){return this._invoke("return",o)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});qt(R$(),1);qt(k$(),1);qt(z$(),1);qt(Jr(),1);function B$(e){return Gp(({path:t,args:n})=>{var r;const a=[...t],o=a.pop();if(o==="useMutation")return e[o](a,...n);if(o==="_def")return{path:a};const[l,...c]=n,f=(r=c[0])!==null&&r!==void 0?r:{};return e[o](a,l,f)})}var ov;const I$=["client","ssrContext","ssrState","abortOnUnmount"],$$=(ov=D.createContext)===null||ov===void 0?void 0:ov.call(Dk,null),L$=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function q$(e){return Gp(t=>{const n=[...t.path],r=n.pop(),a=[...t.args],o=a.shift(),l=L$(r),c=sa(n,o,l);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,c,a[0]),queryOptions:()=>e.queryOptions(n,c,...a),fetch:()=>e.fetchQuery(c,...a),fetchInfinite:()=>e.fetchInfiniteQuery(c,a[0]),prefetch:()=>e.prefetchQuery(c,...a),prefetchInfinite:()=>e.prefetchInfiniteQuery(c,a[0]),ensureData:()=>e.ensureQueryData(c,...a),invalidate:()=>e.invalidateQueries(c,...a),reset:()=>e.resetQueries(c,...a),refetch:()=>e.refetchQueries(c,...a),cancel:()=>e.cancelQuery(c,...a),setData:()=>{e.setQueryData(c,a[0],a[1])},setQueriesData:()=>e.setQueriesData(c,a[0],a[1],a[2]),setInfiniteData:()=>{e.setInfiniteQueryData(c,a[0],a[1])},getData:()=>e.getQueryData(c),getInfiniteData:()=>e.getInfiniteQueryData(c),setMutationDefaults:()=>e.setMutationDefaults(_h(n),o),getMutationDefaults:()=>e.getMutationDefaults(_h(n)),isMutating:()=>e.isMutating({mutationKey:_h(n)})}[r]()})}function F$(e){const t=o5(e.client),n=q$(e);return Tw(r=>{const a=r;return a==="client"?t:I$.includes(a)?e[a]:n[r]})}var U$=Zo(Of(),1);function gE(e){const t=e instanceof Yp?e:Mw(e);return Gp(n=>{const r=n.path,a=r.join("."),[o,l]=n.args;return(0,U$.default)({queryKey:sa(r,o,"query"),queryFn:()=>t.query(a,o,l?.trpc)},l)})}var sv=Zo(Of(),1);function Mn(e,t,n){var r;const a=e[0];let o=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var l;o=(0,sv.default)((0,sv.default)((0,sv.default)({},(l=o)!==null&&l!==void 0?l:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[a.join("."),o,t?.trpc]}var H$=Zi({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var o,l,c,f=2;for(typeof Symbol<"u"&&(l=Symbol.asyncIterator,c=Symbol.iterator);f--;){if(l&&(o=a[l])!=null)return o.call(a);if(c&&(o=a[c])!=null)return new r(o.call(a));l="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function o(l){if(Object(l)!==l)return Promise.reject(new TypeError(l+" is not an object."));var c=l.done;return Promise.resolve(l.value).then(function(f){return{value:f,done:c}})}return r=function(c){this.s=c,this.n=c.next},r.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(c){var f=this.s.return;return f===void 0?Promise.resolve({value:c,done:!0}):o(f.apply(this.s,arguments))},throw:function(c){var f=this.s.return;return f===void 0?Promise.reject(c):o(f.apply(this.s,arguments))}},new r(a)}
17t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),W$=Zo(H$(),1);function N1(e){return{path:e.path.join(".")}}function Zc(e){const t=N1(e);return D.useMemo(()=>t,[t])}async function l5(e,t,n){const a=t.getQueryCache().build(t,{queryKey:n});a.setState({data:[],status:"success"});const o=[];var l=!1,c=!1,f;try{for(var d=(0,W$.default)(e),m;l=!(m=await d.next()).done;l=!1){const p=m.value;o.push(p),a.setState({data:[...o]})}}catch(p){c=!0,f=p}finally{try{l&&d.return!=null&&await d.return()}finally{if(c)throw f}}return o}var et=Zo(Of(),1);function V$(e){const{client:t,queryClient:n}=e,r=t instanceof Yp?t:Mw(t);return{infiniteQueryOptions:(a,o,l)=>{var c,f;const d=((c=o[1])===null||c===void 0?void 0:c.input)===sr,m=async p=>{var g;const b=(0,et.default)((0,et.default)({},l),{},{trpc:(0,et.default)((0,et.default)({},l?.trpc),!(l==null||(g=l.trpc)===null||g===void 0)&&g.abortOnUnmount?{signal:p.signal}:{signal:null})});return await r.query(...Mn(o,b,{direction:p.direction,pageParam:p.pageParam}))};return Object.assign((0,et.default)((0,et.default)({},l),{},{initialData:l?.initialData,queryKey:o,queryFn:d?sr:m,initialPageParam:(f=l?.initialCursor)!==null&&f!==void 0?f:null}),{trpc:N1({path:a})})},queryOptions:(a,o,l)=>{var c;const f=((c=o[1])===null||c===void 0?void 0:c.input)===sr,d=async m=>{var p;const g=(0,et.default)((0,et.default)({},l),{},{trpc:(0,et.default)((0,et.default)({},l?.trpc),!(l==null||(p=l.trpc)===null||p===void 0)&&p.abortOnUnmount?{signal:m.signal}:{signal:null})}),b=await r.query(...Mn(o,g));return Uk(b)?l5(b,n,o):b};return Object.assign((0,et.default)((0,et.default)({},l),{},{initialData:l?.initialData,queryKey:o,queryFn:f?sr:d}),{trpc:N1({path:a})})},fetchQuery:(a,o)=>n.fetchQuery((0,et.default)((0,et.default)({},o),{},{queryKey:a,queryFn:()=>r.query(...Mn(a,o))})),fetchInfiniteQuery:(a,o)=>{var l;return n.fetchInfiniteQuery((0,et.default)((0,et.default)({},o),{},{queryKey:a,queryFn:({pageParam:c,direction:f})=>r.query(...Mn(a,o,{pageParam:c,direction:f})),initialPageParam:(l=o?.initialCursor)!==null&&l!==void 0?l:null}))},prefetchQuery:(a,o)=>n.prefetchQuery((0,et.default)((0,et.default)({},o),{},{queryKey:a,queryFn:()=>r.query(...Mn(a,o))})),prefetchInfiniteQuery:(a,o)=>{var l;return n.prefetchInfiniteQuery((0,et.default)((0,et.default)({},o),{},{queryKey:a,queryFn:({pageParam:c,direction:f})=>r.query(...Mn(a,o,{pageParam:c,direction:f})),initialPageParam:(l=o?.initialCursor)!==null&&l!==void 0?l:null}))},ensureQueryData:(a,o)=>n.ensureQueryData((0,et.default)((0,et.default)({},o),{},{queryKey:a,queryFn:()=>r.query(...Mn(a,o))})),invalidateQueries:(a,o,l)=>n.invalidateQueries((0,et.default)((0,et.default)({},o),{},{queryKey:a}),l),resetQueries:(a,o,l)=>n.resetQueries((0,et.default)((0,et.default)({},o),{},{queryKey:a}),l),refetchQueries:(a,o,l)=>n.refetchQueries((0,et.default)((0,et.default)({},o),{},{queryKey:a}),l),cancelQuery:(a,o)=>n.cancelQueries({queryKey:a},o),setQueryData:(a,o,l)=>n.setQueryData(a,o,l),setQueriesData:(a,o,l,c)=>n.setQueriesData((0,et.default)((0,et.default)({},o),{},{queryKey:a}),l,c),getQueryData:a=>n.getQueryData(a),setInfiniteQueryData:(a,o,l)=>n.setQueryData(a,o,l),getInfiniteQueryData:a=>n.getQueryData(a),setMutationDefaults:(a,o)=>{const l=a[0],c=f=>r.mutation(...Mn([l,{input:f}],e));return n.setMutationDefaults(a,typeof o=="function"?o({canonicalMutationFn:c}):o)},getMutationDefaults:a=>n.getMutationDefaults(a),isMutating:a=>n.isMutating((0,et.default)((0,et.default)({},a),{},{exact:!0}))}}var ge=Zo(Of());const yE=(e,t)=>new Proxy(e,{get(r,a){return t(a),r[a]}});function G$(e){var t,n;const r=(t=void 0)!==null&&t!==void 0?t:O=>O.originalFn(),a=(n=void 0)!==null&&n!==void 0?n:$$,o=D$,l=O=>{var C;const{abortOnUnmount:j=!1,queryClient:N,ssrContext:B}=O,[q,I]=D.useState((C=O.ssrState)!==null&&C!==void 0?C:!1),L=O.client instanceof Yp?O.client:Mw(O.client),W=D.useMemo(()=>V$({client:L,queryClient:N}),[L,N]),K=D.useMemo(()=>(0,ge.default)({abortOnUnmount:j,queryClient:N,client:L,ssrContext:B??null,ssrState:q},W),[j,L,W,N,B,q]);return D.useEffect(()=>{I(U=>U?"mounted":!1)},[]),y.jsx(a.Provider,{value:K,children:O.children})};function c(){const O=D.useContext(a);if(!O)throw new Error("Unable to find tRPC Context. Did you forget to wrap your Ap
17p inside `withTRPC` HoC?");return O}function f(O,C){var j;const{queryClient:N,ssrState:B}=c();return B&&B!=="mounted"&&((j=N.getQueryCache().find({queryKey:O}))===null||j===void 0?void 0:j.state.status)==="error"?(0,ge.default)({retryOnMount:!1},C):C}function d(O,C,j){var N,B,q,I,L;const W=c(),{abortOnUnmount:K,client:U,ssrState:R,queryClient:F,prefetchQuery:H}=W,J=sa(O,C,"query"),ae=F.getQueryDefaults(J),$=C===sr;typeof window>"u"&&R==="prepass"&&(j==null||(N=j.trpc)===null||N===void 0?void 0:N.ssr)!==!1&&((B=j?.enabled)!==null&&B!==void 0?B:ae?.enabled)!==!1&&!$&&!F.getQueryCache().find({queryKey:J})&&H(J,j);const V=f(J,(0,ge.default)((0,ge.default)({},ae),j)),Y=(q=(I=j==null||(L=j.trpc)===null||L===void 0?void 0:L.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&q!==void 0?q:K,Z=xI((0,ge.default)((0,ge.default)({},V),{},{queryKey:J,queryFn:$?C:async ce=>{const he=(0,ge.default)((0,ge.default)({},V),{},{trpc:(0,ge.default)((0,ge.default)({},V?.trpc),Y?{signal:ce.signal}:{signal:null})}),me=await U.query(...Mn(J,he));return Uk(me)?l5(me,F,J):me}}),F);return Z.trpc=Zc({path:O}),Z}function m(O,C,j){var N,B,q;const I=c(),L=sa(O,C,"query"),W=C===sr,K=(N=(B=j==null||(q=j.trpc)===null||q===void 0?void 0:q.abortOnUnmount)!==null&&B!==void 0?B:void 0)!==null&&N!==void 0?N:I.abortOnUnmount;OI((0,ge.default)((0,ge.default)({},j),{},{queryKey:L,queryFn:W?C:U=>{const R={trpc:(0,ge.default)((0,ge.default)({},j?.trpc),K?{signal:U.signal}:{})};return I.client.query(...Mn(L,R))}}))}function p(O,C,j){var N,B,q;const I=c(),L=sa(O,C,"query"),W=(N=(B=j==null||(q=j.trpc)===null||q===void 0?void 0:q.abortOnUnmount)!==null&&B!==void 0?B:void 0)!==null&&N!==void 0?N:I.abortOnUnmount,K=SI((0,ge.default)((0,ge.default)({},j),{},{queryKey:L,queryFn:U=>{const R=(0,ge.default)((0,ge.default)({},j),{},{trpc:(0,ge.default)((0,ge.default)({},j?.trpc),W?{signal:U.signal}:{signal:null})});return I.client.query(...Mn(L,R))}}),I.queryClient);return K.trpc=Zc({path:O}),[K.data,K]}function g(O,C){const{client:j,queryClient:N}=c(),B=_h(O),q=N.defaultMutationOptions(N.getMutationDefaults(B)),I=jI((0,ge.default)((0,ge.default)({},C),{},{mutationKey:B,mutationFn:L=>
17j.mutation(...Mn([O,{input:L}],C)),onSuccess(...L){var W,K;return r({originalFn:()=>{var R,F,H;return(R=C==null||(F=C.onSuccess)===null||F===void 0?void 0:F.call(C,...L))!==null&&R!==void 0?R:q==null||(H=q.onSuccess)===null||H===void 0?void 0:H.call(q,...L)},queryClient:N,meta:(W=(K=C?.meta)!==null&&K!==void 0?K:q?.meta)!==null&&W!==void 0?W:{}})}}),N);return I.trpc=Zc({path:O}),I}const b={data:void 0,error:null,status:"idle"},w={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function S(O,C,j){var N;const B=(N=j?.enabled)!==null&&N!==void 0?N:C!==sr,q=Ki(sa(O,C,"any")),{client:I}=c(),L=D.useRef(j);D.useEffect(()=>{L.current=j});const[W]=D.useState(new Set([])),K=D.useCallback($=>{W.add($)},[W]),U=D.useRef(null),R=D.useCallback($=>{const V=H.current,Y=H.current=$(V);let Z=!1;for(const ce of W)if(V[ce]!==Y[ce]){Z=!0;break}Z&&ae(yE(Y,K))},[K,W]),F=D.useCallback(()=>{var $;if(($=U.current)===null||$===void 0||$.unsubscribe(),!B){R(()=>(0,ge.default)((0,ge.default)({},b),{},{reset:F}));return}R(()=>(0,ge.default)((0,ge.default)({},w),{},{reset:F}));const V=I.subscription(O.join("."),C??void 0,{onStarted:()=>{var Y,Z;(Y=(Z=L.current).onStarted)===null||Y===void 0||Y.call(Z),R(ce=>(0,ge.default)((0,ge.default)({},ce),{},{status:"pending",error:null}))},onData:Y=>{var Z,ce;(Z=(ce=L.current).onData)===null||Z===void 0||Z.call(ce,Y),R(he=>(0,ge.default)((0,ge.default)({},he),{},{status:"pending",data:Y,error:null}))},onError:Y=>{var Z,ce;(Z=(ce=L.current).onError)===null||Z===void 0||Z.call(ce,Y),R(he=>(0,ge.default)((0,ge.default)({},he),{},{status:"error",error:Y}))},onConnectionStateChange:Y=>{R(Z=>{switch(Y.state){case"idle":return(0,ge.default)((0,ge.default)({},Z),{},{status:Y.state,error:null,data:void 0});case"connecting":return(0,ge.default)((0,ge.default)({},Z),{},{error:Y.error,status:Y.state});case"pending":return Z}})},onComplete:()=>{var Y,Z;(Y=(Z=L.current).onComplete)===null||Y===void 0||Y.call(Z),R(ce=>(0,ge.default)((0,ge.default)({},ce),{},{status:"idle",error:null,data:void 0}))}});U.current=V},[I,q,B,R]);D.useEffect(()=>(F(),()=>{var $;($=U.current)===null||$===void 0||$.unsubscribe()}),[F]);const H=D.useRef(B?(0,ge.default)((0,ge.default)({},w),{},{reset:F}):(0,ge.default)((0,ge.default)({},b),{},{reset:F})),[J,ae]=D.useState(yE(H.current,K));return J}function A(O,C,j){var N,B,q,I,L;const{client:W,ssrState:K,prefetchInfiniteQuery:U,queryClient:R,abortOnUnmount:F}=c(),H=sa(O,C,"infinite"),J=R.getQueryDefaults(H),ae=C===sr;typeof window>"u"&&K==="prepass"&&(j==null||(N=j.trpc)===null||N===void 0?void 0:N.ssr)!==!1&&((B=j?.enabled)!==null&&B!==void 0?B:J?.enabled)!==!1&&!ae&&!R.getQueryCache().find({queryKey:H})&&U(H,(0,ge.default)((0,ge.default)({},J),j));const $=f(H,(0,ge.default)((0,ge.default)({},J),j)),V=(q=j==null||(I=j.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&q!==void 0?q:F,Y=EI((0,ge.default)((0,ge.default)({},$),{},{initialPageParam:(L=j.initialCursor)!==null&&L!==void 0?L:null,persister:j.persister,queryKey:H,queryFn:ae?C:Z=>{var ce;const he=(0,ge.default)((0,ge.default)({},$),{},{trpc:(0,ge.default)((0,ge.default)({},$?.trpc),V?{signal:Z.signal}:{signal:null})});return W.query(...Mn(H,he,{pageParam:(ce=Z.pageParam)!==null&&ce!==void 0?ce:j.initialCursor,direction:Z.direction}))}}),R);return Y.trpc=Zc({path:O}),Y}function _(O,C,j){var N,B,q;const I=c(),L=sa(O,C,"infinite"),W=I.queryClient.getQueryDefaults(L),K=C===sr,U=f(L,(0,ge.default)((0,ge.default)({},W),j)),R=(N=j==null||(B=j.trpc)===null||B===void 0?void 0:B.abortOnUnmount)!==null&&N!==void 0?N:I.abortOnUnmount;_I((0,ge.default)((0,ge.default)({},j),{},{initialPageParam:(q=j.initialCursor)!==null&&q!==void 0?q:null,queryKey:L,queryFn:K?C:F=>{var H;const J=(0,ge.default)((0,ge.default)({},U),{},{trpc:(0,ge.default)((0,ge.default)({},U?.trpc),R?{signal:F.signal}:{})});return I.client.query(...Mn(L,J,{pageParam:(H=F.pageParam)!==null&&H!==void 0?H:j.initialCursor,direction:F.direction}))}}))}function T(O,C,j){var N,B,q;const I=c(),L=sa(O,C,"infinite"),W=I.queryClient.getQueryDefaults(L),K=f(L,(0,ge.default)((0,ge.default)({},W),j)),U=(N=j==null||(B=j.trpc)===null||B===void 0?void 0:B.abortOnUnmount)!==null&&N!==void 0?N:I.abortOnUnmount,R=wI((0,ge.default)((0,ge.default)({},j),{},{initialPageParam:(q=j.initialCursor)!==null&&q!==void 0?q:null,queryKey:L,queryFn:F=>{var H;const J=(0,ge.default)((0,ge.default)({},K),{},{trpc:(0,ge.default)((0,ge.default)({},K?.trpc),U?{signal:F.signal}:{})});return I.client.query(...Mn(L,J,{pageParam:(H=F.pageParam)!==null&&H!==void 0?H:j.initialCursor,direction:F.direction}))}}),I.queryClient);return R.trpc=Zc({path:O}),[R.data,R]}return{Provider:l,createClient:o,useContext:c,useUtils:c,useQuery:d,usePrefetchQuery:m,useSuspenseQuery:p,useQueries:(O,C)=>{const{ssrState:j,queryClient:N,prefetchQuery:B,client:q}=c(),I=gE(q),L=O(I);if(typeof window>"u"&&j==="prepass")for(const K of L){var W;const U=K;((W=U.trpc)===null||W===void 0?void 0:W.ssr)!==!1&&!N.getQueryCache().find({queryKey:U.queryKey})&&B(U.queryKey,U)}return Fk({queries:L.map(K=>(0,ge.default)((0,ge.default)({},K),{},{queryKey:K.queryKey})),combine:C?.combine},N)},useSuspenseQueries:O=>{const{queryClient:C,client:j}=c(),N=gE(j),B=O(N),q=AI({queries:B.map(I=>(0,ge.default)((0,ge.default)({},I),{},{queryFn:I.queryFn,queryKey:I.queryKey}))},C);return[q.map(I=>I.data),q]},useMutation:g,useSubscription:S,useInfiniteQuery:A,usePrefetchInfiniteQuery:_,useSuspenseInfiniteQuery:T}}function K$(e){const t=B$(e);return Tw(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return D.useMemo(()=>F$(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function Y$(e){const t=G$();return K$(t)}const je=Y$(),Q$="Please login (10001)";var lv={exports:{}},Jc={},cv={exports:{}},uv={};/**
18 * @license React
19 * scheduler.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var vE;
vendor: 8,529 bytes, lines 25-41
25function X$(){return vE||(vE=1,(function(e){function t(R,F){var H=R.length;R.push(F);e:for(;0<H;){var J=H-1>>>1,ae=R[J];if(0<a(ae,F))R[J]=F,R[H]=ae,H=J;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var F=R[0],H=R.pop();if(H!==F){R[0]=H;e:for(var J=0,ae=R.length,$=ae>>>1;J<$;){var V=2*(J+1)-1,Y=R[V],Z=V+1,ce=R[Z];if(0>a(Y,H))Z<ae&&0>a(ce,Y)?(R[J]=ce,R[Z]=H,J=Z):(R[J]=Y,R[V]=H,J=V);else if(Z<ae&&0>a(ce,H))R[J]=ce,R[Z]=H,J=Z;else break e}}return F}function a(R,F){var H=R.sortIndex-F.sortIndex;return H!==0?H:R.id-F.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],d=[],m=1,p=null,g=3,b=!1,w=!1,S=!1,A=!1,_=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function P(R){for(var F=n(d);F!==null;){if(F.callback===null)r(d);else if(F.startTime<=R)r(d),F.sortIndex=F.expirationTime,t(f,F);else break;F=n(d)}}function O(R){if(S=!1,P(R),!w)if(n(f)!==null)w=!0,C||(C=!0,L());else{var F=n(d);F!==null&&U(O,F.startTime-R)}}var C=!1,j=-1,N=5,B=-1;function q(){return A?!0:!(e.unstable_now()-B<N)}function I(){if(A=!1,C){var R=e.unstable_now();B=R;var F=!0;try{e:{w=!1,S&&(S=!1,T(j),j=-1),b=!0;var H=g;try{t:{for(P(R),p=n(f);p!==null&&!(p.expirationTime>R&&q());){var J=p.callback;if(typeof J=="function"){p.callback=null,g=p.priorityLevel;var ae=J(p.expirationTime<=R);if(R=e.unstable_now(),typeof ae=="function"){p.callback=ae,P(R),F=!0;break t}p===n(f)&&r(f),P(R)}else r(f);p=n(f)}if(p!==null)F=!0;else{var $=n(d);$!==null&&U(O,$.startTime-R),F=!1}}break e}finally{p=null,g=H,b=!1}F=void 0}}finally{F?L():C=!1}}}var L;if(typeof E=="function")L=function(){E(I)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,K=W.port2;W.port1.onmessage=I,L=function(){K.postMessage(null)}}else L=function(){_(I,0)};function U(R,F){j=_(function(){R(e.unstable_now())},F)}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(R){R.callback=null},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(R){switch(g){case 1:case 2:case 3:var F=3;break;default:F=g}var H=g;g=F;try{return R()}finally{g=H}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(R,F){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var H=g;g=R;try{return F()}finally{g=H}},e.unstable_scheduleCallback=function(R,F,H){var J=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?J+H:J):H=J,R){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=H+ae,R={id:m++,callback:F,priorityLevel:R,startTime:H,expirationTime:ae,sortIndex:-1},H>J?(R.sortIndex=H,t(d,R),n(f)===null&&R===n(d)&&(S?(T(j),j=-1):S=!0,U(O,H-J))):(R.sortIndex=ae,t(f,R),w||b||(w=!0,C||(C=!0,L()))),R},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(R){var F=g;return function(){var H=g;g=F;try{return R.apply(this,arguments)}finally{g=H}}}})(uv)),uv}var bE;function Z$(){return bE||(bE=1,cv.exports=X$()),cv.exports}var fv={exports:{}},On={};/**
26 * @license React
27 * react-dom.production.js
28 *
29 * Copyright (c) Meta Platforms, Inc. and 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 xE;function J$(){if(xE)return On;xE=1;var e=Hp();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(f,d,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:f,containerInfo:d,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return On.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,On.createPortal=function(f,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return o(f,d,null,m)},On.flushSync=function(f){var d=l.T,m=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=d,r.p=m,r.d.f()}},On.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(f,d))},On.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},On.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var m=d.as,p=c(m,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,b=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:b}):m==="script"&&r.d.X(f,{crossOrigin:p,integrity:g,fetchPriority:b,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},On.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=c(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(f)},On.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,p=c(m,d.crossOrigin);r.d.L(f,m,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},On.preloadModule=function(f,d){if(typeof f=="string")if(d){var m=c(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},On.requestFormReset=function(f){r.d.r(f)},On.unstable_batchedUpdates=function(f,d){return f(d)},On.useFormState=function(f,d,m){return l.H.useFormState(f,d,m)},On.useFormStatus=function(){return l.H.useHostTransitionStatus()},On.version="19.2.1",On}var SE;function c5(){if(SE)return fv.exports;SE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),fv.exports=J$(),fv.exports}/**
34 * @license React
35 * react-dom-client.production.js
36 *
37 * Copyright (c) Meta Platforms, Inc. and affiliates.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE file in the root directory of this source tree.
41 */var wE;function eL(){if(wE)return Jc;wE=1;var e=Z$(),t=Hp(),n=c5();function r(i){var s="https://react.dev/errors/"+i;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)s+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function o(i){var s=i,u=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(u=s.return),i=s.return;while(i)}return s.tag===3?u:null}function l(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}
vendor: 14,289 bytes, lines 41-48
41function c(i){if(i.tag===31){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function f(i){if(o(i)!==i)throw Error(r(188))}function d(i){var s=i.alternate;if(!s){if(s=o(i),s===null)throw Error(r(188));return s!==i?null:i}for(var u=i,h=s;;){var v=u.return;if(v===null)break;var x=v.alternate;if(x===null){if(h=v.return,h!==null){u=h;continue}break}if(v.child===x.child){for(x=v.child;x;){if(x===u)return f(v),i;if(x===h)return f(v),s;x=x.sibling}throw Error(r(188))}if(u.return!==h.return)u=v,h=x;else{for(var M=!1,k=v.child;k;){if(k===u){M=!0,u=v,h=x;break}if(k===h){M=!0,h=v,u=x;break}k=k.sibling}if(!M){for(k=x.child;k;){if(k===u){M=!0,u=x,h=v;break}if(k===h){M=!0,h=x,u=v;break}k=k.sibling}if(!M)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:s}function m(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=m(i),s!==null)return s;i=i.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),E=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function L(i){return i===null||typeof i!="object"?null:(i=I&&i[I]||i["@@iterator"],typeof i=="function"?i:null)}var W=Symbol.for("react.client.reference");function K(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===W?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case S:return"Fragment";case _:return"Profiler";case A:return"StrictMode";case O:return"Suspense";case C:return"SuspenseList";case B:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case w:return"Portal";case E:return i.displayName||"Context";case T:return(i._context.displayName||"Context")+".Consumer";case P:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case j:return s=i.displayName||null,s!==null?s:K(i.type)||"Memo";case N:s=i._payload,i=i._init;try{return K(i(s))}catch{}}return null}var U=Array.isArray,R=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},J=[],ae=-1;function $(i){return{current:i}}function V(i){0>ae||(i.current=J[ae],J[ae]=null,ae--)}function Y(i,s){ae++,J[ae]=i.current,i.current=s}var Z=$(null),ce=$(null),he=$(null),me=$(null);function ye(i,s){switch(Y(he,s),Y(ce,i),Y(Z,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?Sj(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=Sj(s),i=wj(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}V(Z),Y(Z,i)}function ue(){V(Z),V(ce),V(he)}function pe(i){i.memoizedState!==null&&Y(me,i);var s=Z.current,u=wj(s,i.type);s!==u&&(Y(ce,i),Y(Z,u))}function we(i){ce.current===i&&(V(Z),V(ce)),me.current===i&&(V(me),Gc._currentValue=H)}var oe,$e;function Ee(i){if(oe===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);oe=s&&s[1]||"",$e=-1<u.stack.indexOf(`
42    at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
43`+oe+i+$e}var Qe=!1;function Ke(i,s){if(!i||Qe)return"";Qe=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(s){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(re){var ne=re}Reflect.construct(i,[],fe)}else{try{fe.call()}catch(re){ne=re}i.call(fe.prototype)}}else{try{throw Error()}catch(re){ne=re}(fe=i())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(re){if(re&&ne&&typeof re.stack=="string")return[re.stack,ne.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=h.DetermineComponentFrameRoot(),M=x[0],k=x[1];if(M&&k){var G=M.split(`
44`),te=k.split(`
45`);for(v=h=0;h<G.length&&!G[h].includes("DetermineComponentFrameRoot");)h++;for(;v<te.length&&!te[v].includes("DetermineComponentFrameRoot");)v++;if(h===G.length||v===te.length)for(h=G.length-1,v=te.length-1;1<=h&&0<=v&&G[h]!==te[v];)v--;for(;1<=h&&0<=v;h--,v--)if(G[h]!==te[v]){if(h!==1||v!==1)do if(h--,v--,0>v||G[h]!==te[v]){var ie=`
46`+G[h].replace(" at new "," at ");return i.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",i.displayName)),ie}while(1<=h&&0<=v);break}}}finally{Qe=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?Ee(u):""}function St(i,s){switch(i.tag){case 26:case 27:case 5:return Ee(i.type);case 16:return Ee("Lazy");case 13:return i.child!==s&&s!==null?Ee("Suspense Fallback"):Ee("Suspense");case 19:return Ee("SuspenseList");case 0:case 15:return Ke(i.type,!1);case 11:return Ke(i.type.render,!1);case 1:return Ke(i.type,!0);case 31:return Ee("Activity");default:return""}}function hn(i){try{var s="",u=null;do s+=St(i,u),u=i,i=i.return;while(i);return s}catch(h){return`
47Error generating stack: `+h.message+`
48`+h.stack}}var jt=Object.prototype.hasOwnProperty,Kt=e.unstable_scheduleCallback,on=e.unstable_cancelCallback,ft=e.unstable_shouldYield,Cn=e.unstable_requestPaint,Bt=e.unstable_now,li=e.unstable_getCurrentPriorityLevel,wa=e.unstable_ImmediatePriority,Br=e.unstable_UserBlockingPriority,kn=e.unstable_NormalPriority,Ir=e.unstable_LowPriority,dr=e.unstable_IdlePriority,Gn=e.log,$r=e.unstable_setDisableYieldValue,Aa=null,pn=null;function Tn(i){if(typeof Gn=="function"&&$r(i),pn&&typeof pn.setStrictMode=="function")try{pn.setStrictMode(Aa,i)}catch{}}var Yt=Math.clz32?Math.clz32:hr,sc=Math.log,ci=Math.LN2;function hr(i){return i>>>=0,i===0?32:31-(sc(i)/ci|0)|0}var ui=256,fi=262144,Et=4194304;function Ct(i){var s=i&42;if(s!==0)return s;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Oe(i,s,u){var h=i.pendingLanes;if(h===0)return 0;var v=0,x=i.suspendedLanes,M=i.pingedLanes;i=i.warmLanes;var k=h&134217727;return k!==0?(h=k&~x,h!==0?v=Ct(h):(M&=k,M!==0?v=Ct(M):u||(u=k&~i,u!==0&&(v=Ct(u))))):(k=h&~x,k!==0?v=Ct(k):M!==0?v=Ct(M):u||(u=h&~i,u!==0&&(v=Ct(u)))),v===0?0:s!==0&&s!==v&&(s&x)===0&&(x=v&-v,u=s&-s,x>=u||x===32&&(u&4194048)!==0)?s:v}function Ye(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function nt(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function at(){var i=Et;return Et<<=1,(Et&62914560)===0&&(Et=4194304),i}function Qt(i){for(var s=[],u=0;31>u;u++)s.push(i);return s}function it(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function Xe(i,s,u,h,v,x){var M=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var k=i.entanglements,G=i.expirationTimes,te=i.hiddenUpdates;for(u=M&~u;0<u;){var ie=31-Yt(u),fe=1<<ie;k[ie]=0,G[ie]=-1;var ne=te[ie];if(ne!==null)for(te[ie]=null,ie=0;ie<ne.length;ie++){var re=ne[ie];re!==null&&(re.lane&=-536870913)}u&=~fe}h!==0&&An(i,h,0),x!==0&&v===0&&i.tag!==0&&(i.suspendedLanes|=x&~(M&~s))}function An(i,s,u){i.pendingLanes|=s,i.suspendedLanes&=~s;var h=31-Yt(s);i.entangledLanes|=s,i.entanglements[h]=i.entanglements[h]|1073741824|u&261930}function wt(i,s){var u=i.entangledLanes|=s;for(i=i.entanglements;u;){var h=31-Yt(u),v=1<<h;v&s|i[h]&s&&(i[h]|=s),u&=~v}}function Tt(i,s){var u=s&-s;return u=(u&42)!==0?1:pr(u),(u&(i.suspendedLanes|s))!==0?0:u}function pr(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function mn(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function mr(){var i=F.p;return i!==0?i:(i=window.event,i===void 0?32:Wj(i.type))}function di(i,s){var u=F.p;try{return F.p=i,s()}finally{F.p=u}}var gr=Math.random().toString(36).slice(2),gn="__reactFiber$"+gr,zn="__reactProps$"+gr,cs="__reactContainer$"+gr,Gm="__reactEvents$"+gr,M4="__reactListeners$"+gr,D4="__reactHandles$"+gr,lO="__reactResources$"+gr,lc="__reactMarker$"+gr;function Km(i){delete i[gn],delete i[zn],delete i[Gm],delete i[M4],delete i[D4]}function us(i){var s=i[gn];if(s)return s;for(var u=i.parentNode;u;){if(s=u[cs]||u[gn]){if(u=s.alternate,s.child!==null||u!==null&&u.child!==null)for(i=Tj(i);i!==null;){if(u=i[gn])return u;i=Tj(i)}return s}i=u,u=i.parentNode}return null}function fs(i){if(i=i[gn]||i[cs]){var s=i.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return i}return null}function cc(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}function ds(i){var s=i[lO];return s||(s=i[lO]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function sn(i){i[lc]=!0}var cO=new Set,uO={};function io(i,s){hs(i,s),hs(i+"Capture",s)}function hs(i,s){for(uO[i]=s,i=0;i<s.length;i++)cO.add(s[i])}var N4=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fO={},dO={};function R4(i){return jt.call(dO,i)?!0:jt.call(fO,i)?!1:N4.test(i)?dO[i]=!0:(fO[i]=!0,!1)}function Lf(i,s,u){if(R4(s))if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var h=s.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+u)}}function qf(i,s,u){if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+u)}}function Oa(i,s,u,h){if(h===null)i.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(s,u,""+h)}}function yr(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function hO(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function k4(i,s,u){var h=Object.getOwnPropertyDescriptor(i.constructor.prototype,s);if(!i.hasOwnProperty(s)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var v=h.get,x=h.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return v.call(this)},set:function(M){u=""+M,x.call(this,M)}}),Object.defineProperty(i,s,{enumerable:h.enumerable}),{getValue:function(){return u},setValue:function(M){u=""+M},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function Ym(i){if(!i._valueTracker){var s=hO(i)?"checked":"value";i._valueTracker=k4(i,s,""+i[s])}}function pO(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var u=s.getValue(),h="";return i&&(h=hO(i)?i.checked?"true":"false":i.value),i=h,i!==u?(s.setValue(i),!0):!1}function Ff(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var z4=/[\n"\\]/g;function vr(i){return i.replace(z4,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Qm(i,s,u,h,v,x,M,k){i.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?i.type=M:i.removeAttribute("type"),s!=null?M==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+yr(s)):i.value!==""+yr(s)&&(i.value=""+yr(s)):M!=="submit"&&M!=="reset"||i.removeAttribute("value"),s!=null?Xm(i,M,yr(s)):u!=null?Xm(i,M,yr(u)):h!=null&&i.removeAttribute("value"),v==null&&x!=null&&(i.defaultChecked=!!x),v!=null&&(i.checked=v&&typeof v!="function"&&typeof v!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?i.name=""+yr(k):i.removeAttribute("name")}function mO(i,s,u,h,v,x,M,k){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(i.type=x),s!=null||u!=null){if(!(x!=="submit"&&x!=="reset"||s!=null)){Ym(i);return}u=u!=null?""+yr(u):"",s=s!=null?""+yr(s):u,k||s===i.value||(i.value=s),i.defaultValue=s}h=h??v,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=k?i.checked:!!h,i.defaultChecked=!!h,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(i.name=M),Ym(i)}function Xm(i,s,u){s==="number"&&Ff(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function ps(i,s,u,h){if(i=i.options,s){s={};for(var v=0;v<u.length;v++)s["$"+u[v]]=!0;for(u=0;
vendor: 4,872 bytes, line 48
48u<i.length;u++)v=s.hasOwnProperty("$"+i[u].value),i[u].selected!==v&&(i[u].selected=v),v&&h&&(i[u].defaultSelected=!0)}else{for(u=""+yr(u),s=null,v=0;v<i.length;v++){if(i[v].value===u){i[v].selected=!0,h&&(i[v].defaultSelected=!0);return}s!==null||i[v].disabled||(s=i[v])}s!==null&&(s.selected=!0)}}function gO(i,s,u){if(s!=null&&(s=""+yr(s),s!==i.value&&(i.value=s),u==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=u!=null?""+yr(u):""}function yO(i,s,u,h){if(s==null){if(h!=null){if(u!=null)throw Error(r(92));if(U(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),s=u}u=yr(s),i.defaultValue=u,h=i.textContent,h===u&&h!==""&&h!==null&&(i.value=h),Ym(i)}function ms(i,s){if(s){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=s;return}}i.textContent=s}var B4=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function vO(i,s,u){var h=s.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":h?i.setProperty(s,u):typeof u!="number"||u===0||B4.has(s)?s==="float"?i.cssFloat=u:i[s]=(""+u).trim():i[s]=u+"px"}function bO(i,s,u){if(s!=null&&typeof s!="object")throw Error(r(62));if(i=i.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||s!=null&&s.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var v in s)h=s[v],s.hasOwnProperty(v)&&u[v]!==h&&vO(i,v,h)}else for(var x in s)s.hasOwnProperty(x)&&vO(i,x,s[x])}function Zm(i){if(i.indexOf("-")===-1)return!1;switch(i){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 I4=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
48-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$4=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Uf(i){return $4.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function _a(){}var Jm=null;function eg(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var gs=null,ys=null;function xO(i){var s=fs(i);if(s&&(i=s.stateNode)){var u=i[zn]||null;e:switch(i=s.stateNode,s.type){case"input":if(Qm(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),s=u.name,u.type==="radio"&&s!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+vr(""+s)+'"][type="radio"]'),s=0;s<u.length;s++){var h=u[s];if(h!==i&&h.form===i.form){var v=h[zn]||null;if(!v)throw Error(r(90));Qm(h,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(s=0;s<u.length;s++)h=u[s],h.form===i.form&&pO(h)}break e;case"textarea":gO(i,u.value,u.defaultValue);break e;case"select":s=u.value,s!=null&&ps(i,!!u.multiple,s,!1)}}}var tg=!1;function SO(i,s,u){if(tg)return i(s,u);tg=!0;try{var h=i(s);return h}finally{if(tg=!1,(gs!==null||ys!==null)&&(Pd(),gs&&(s=gs,i=ys,ys=gs=null,xO(s),i)))for(s=0;s<i.length;s++)xO(i[s])}}function uc(i,s){var u=i.stateNode;if(u===null)return null;var h=u[zn]||null;if(h===null)return null;u=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,s,typeof u));return u}var ja=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ng=!1;if(ja)try{var fc={};Object.defineProperty(fc,"passive",{get:function(){ng=!0}}),window.addEventListener("test",fc,fc),window.removeEventListener("test",fc,fc)}catch{ng=!1}var hi=null,rg=null,Hf=null;function wO(){if(Hf)return Hf;var i,s=rg,u=s.length,h,v="value"in hi?hi.value:hi.textContent,x=v.length;for(i=0;i<u&&s[i]===v[i];i++);var M=u-i;for(h=1;h<=M&&s[u-h]===v[x-h];h++);return Hf=v.slice(i,1<h?1-h:void 0)}function Wf(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Vf(){return!0}function AO(){return!1}function Bn(i){function s(u,h,v,x,M){this._reactName=u,this._targetInst=v,this.type=h,this.nativeEvent=x,this.target=M,this.currentTarget=null;for(var k in i)i.hasOwnProperty(k)&&(u=i[k],this[k]=u?u(x):x[k]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Vf:AO,this.isPropagationStopped=AO,this}return p(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Vf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Vf)},persist:function(){},isPersistent:Vf}),s}var oo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gf=Bn(oo),dc=p({},oo,{view:0,detail:0}),L4=Bn(dc),ag,ig,hc,Kf=p({},dc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sg,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==hc&&(hc&&i.type==="mousemove"?(ag=i.screenX-hc.screenX,ig=i.screenY-hc.screenY):ig=ag=0,hc=i),ag)},movementY:function(i){return"movementY"in i?i.movementY:ig}}),OO=Bn(Kf),q4=p({},Kf,{dataTransfer:0}),F4=Bn(q4),U4=p({},dc,{relatedTarget:0}),og=Bn(U4),H4=p({},oo,{animationName:0,elapsedTime:0,pseudoElement:0}),W4=Bn(H4),V4=p({},oo,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),G4=Bn(V4),K4=p({},oo,{data:0}),_O=Bn(K4),Y4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Q4={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"},X4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Z4(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=X4[i])?!!s[i]:!1}function sg(){return Z4}var J4=p({},dc,{key:function(i){if(i.key){var s=Y4[i.key]||i.key;if(s!=="Unidentified")return s}
vendor: 4,180 bytes, line 48
48return i.type==="keypress"?(i=Wf(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Q4[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sg,charCode:function(i){return i.type==="keypress"?Wf(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Wf(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),e7=Bn(J4),t7=p({},Kf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jO=Bn(t7),n7=p({},dc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sg}),r7=Bn(n7),a7=p({},oo,{propertyName:0,elapsedTime:0,pseudoElement:0}),i7=Bn(a7),o7=p({},Kf,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),s7=Bn(o7),l7=p({},oo,{newState:0,oldState:0}),c7=Bn(l7),u7=[9,13,27,32],lg=ja&&"CompositionEvent"in window,pc=null;ja&&"documentMode"in document&&(pc=document.documentMode);var f7=ja&&"TextEvent"in window&&!pc,EO=ja&&(!lg||pc&&8<pc&&11>=pc),CO=" ",TO=!1;function PO(i,s){switch(i){case"keyup":return u7.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function MO(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var vs=!1;function d7(i,s){switch(i){case"compositionend":return MO(s);case"keypress":return s.which!==32?null:(TO=!0,CO);case"textInput":return i=s.data,i===CO&&TO?null:i;default:return null}}function h7(i,s){if(vs)return i==="compositionend"||!lg&&PO(i,s)?(i=wO(),Hf=rg=hi=null,vs=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return EO&&s.locale!=="ko"?null:s.data;default:return null}}var p7={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 DO(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!p7[i.type]:s==="textarea"}function NO(i,s,u,h){gs?ys?ys.push(h):ys=[h]:gs=h,s=Bd(s,"onChange"),0<s.length&&(u=new Gf("onChange","change",null,u,h),i.push({event:u,listeners:s}))}var mc=null,gc=null;function m7(i){mj(i,0)}function Yf(i){var s=cc(i);if(pO(s))return i}function RO(i,s){if(i==="change")return s}var kO=!1;if(ja){var cg;if(ja){var ug="oninput"in document;if(!ug){var zO=document.createElement("div");zO.setAttribute("oninput","return;"),ug=typeof zO.oninput=="function"}cg=ug}else cg=!1;kO=cg&&(!document.documentMode||9<document.documentMode)}function BO(){mc&&(mc.detachEvent("onpropertychange",IO),gc=mc=null)}function IO(i){if(i.propertyName==="value"&&Yf(gc)){var s=[];NO(s,gc,i,eg(i)),SO(m7,s)}}function g7(i,s,u){i==="focusin"?(BO(),mc=s,gc=u,mc.attachEvent("onpropertychange",IO)):i==="focusout"&&BO()}function y7(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Yf(gc)}function v7(i,s){if(i==="click")return Yf(s)}function b7(i,s){if(i==="input"||i==="change")return Yf(s)}function x7(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Kn=typeof Object.is=="function"?Object.is:x7;function yc(i,s){if(Kn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var u=Object.keys(i),h=Object.keys(s);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var v=u[h];if(!jt.call(s,v)||!Kn(i[v],s[v]))return!1}return!0}function $O(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function LO(i,s){var u=$O(i);i=0;for(var h;u;){if(u.nodeType===3){if(h=i+u.textContent.length,i<=s&&h>=s)return{node:u,offset:s-i};i=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=$O(u)}}function qO(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?qO(i,s.parentNode):"contains"in i?i.contains(s):i.
vendor: 23,395 bytes, line 48
48compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function FO(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=Ff(i.document);s instanceof i.HTMLIFrameElement;){try{var u=typeof s.contentWindow.location.href=="string"}catch{u=!1}if(u)i=s.contentWindow;else break;s=Ff(i.document)}return s}function fg(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}var S7=ja&&"documentMode"in document&&11>=document.documentMode,bs=null,dg=null,vc=null,hg=!1;function UO(i,s,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;hg||bs==null||bs!==Ff(h)||(h=bs,"selectionStart"in h&&fg(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),vc&&yc(vc,h)||(vc=h,h=Bd(dg,"onSelect"),0<h.length&&(s=new Gf("onSelect","select",null,s,u),i.push({event:s,listeners:h}),s.target=bs)))}function so(i,s){var u={};return u[i.toLowerCase()]=s.toLowerCase(),u["Webkit"+i]="webkit"+s,u["Moz"+i]="moz"+s,u}var xs={animationend:so("Animation","AnimationEnd"),animationiteration:so("Animation","AnimationIteration"),animationstart:so("Animation","AnimationStart"),transitionrun:so("Transition","TransitionRun"),transitionstart:so("Transition","TransitionStart"),transitioncancel:so("Transition","TransitionCancel"),transitionend:so("Transition","TransitionEnd")},pg={},HO={};ja&&(HO=document.createElement("div").style,"AnimationEvent"in window||(delete xs.animationend.animation,delete xs.animationiteration.animation,delete xs.animationstart.animation),"TransitionEvent"in window||delete xs.transitionend.transition);function lo(i){if(pg[i])return pg[i];if(!xs[i])return i;var s=xs[i],u;for(u in s)if(s.hasOwnProperty(u)&&u in HO)return pg[i]=s[u];return i}var WO=lo("animationend"),VO=lo("animationiteration"),GO=lo("animationstart"),w7=lo("transitionrun"),A7=lo("transitionstart"),O7=lo("transitioncancel"),KO=lo("transitionend"),YO=new Map,mg="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");mg.push("scrollEnd");function Lr(i,s){YO.set(i,s),io(s,[i])}var Qf=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},br=[],Ss=0,gg=0;function Xf(){for(var i=Ss,s=gg=Ss=0;s<i;){var u=br[s];br[s++]=null;var h=br[s];br[s++]=null;var v=br[s];br[s++]=null;var x=br[s];if(br[s++]=null,h!==null&&v!==null){var M=h.pending;M===null?v.next=v:(v.next=M.next,M.next=v),h.pending=v}x!==0&&QO(u,v,x)}}function Zf(i,s,u,h){br[Ss++]=i,br[Ss++]=s,br[Ss++]=u,br[Ss++]=h,gg|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function yg(i,s,u,h){return Zf(i,s,u,h),Jf(i)}function co(i,s){return Zf(i,null,null,s),Jf(i)}function QO(i,s,u){i.lanes|=u;var h=i.alternate;h!==null&&(h.lanes|=u);for(var v=!1,x=i.return;x!==null;)x.childLanes|=u,h=x.alternate,h!==null&&(h.childLanes|=u),x.tag===22&&(i=x.stateNode,i===null||i._visibility&1||(v=!0)),i=x,x=x.return;return i.tag===3?(x=i.stateNode,v&&s!==null&&(v=31-Yt(u),i=x.hiddenUpdates,h=i[v],h===null?i[v]=[s]:h.push(s),s.lane=u|536870912),x):null}function Jf(i){if(50<Lc)throw Lc=0,jy=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var ws={};function _7(i,s,u,h){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yn(i,s,u,h){return new _7(i,s,u,h)}function vg(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Ea(i,s){var u=i.alternate;return u===null?(u=Yn(i.tag,s,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=s,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,s=i.dependencies,u.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function XO(i,s){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,s=u.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function ed(i,s,u,h,v,x){var M=0;if(h=i,typeof i=="function")vg(i)&&(M=1);else if(typeof i=="string")M=PB(i,u,Z.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case B:return i=Yn(31,u,s,v),i.elementType=B,i.lanes=x,i;case S:return uo(u.children,v,x,s);case A:M=8,v|=24;break;case _:return i=Yn(12,u,s,v|2),i.elementType=_,i.lanes=x,i;case O:return i=Yn(13,u,s,v),i.elementType=O,i.lanes=x,i;case C:return i=Yn(19,u,s,v),i.elementType=C,i.lanes=x,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case E:M=10;break e;case T:M=9;break e;case P:M=11;break e;case j:M=14;break e;case N:M=16,h=null;break e}M=29,u=Error(r(130,i===null?"null":typeof i,"")),h=null}return s=Yn(M,u,s,v),s.elementType=i,s.type=h,s.lanes=x,s}function uo(i,s,u,h){return i=Yn(7,i,h,s),i.lanes=u,i}function bg(i,s,u){return i=Yn(6,i,null,s),i.lanes=u,i}function ZO(i){var s=Yn(18,null,null,0);return s.stateNode=i,s}function xg(i,s,u){return s=Yn(4,i.children!==null?i.children:[],i.key,s),s.lanes=u,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}var JO=new WeakMap;function xr(i,s){if(typeof i=="object"&&i!==null){var u=JO.get(i);return u!==void 0?u:(s={value:i,source:s,stack:hn(s)},JO.set(i,s),s)}return{value:i,source:s,stack:hn(s)}}var As=[],Os=0,td=null,bc=0,Sr=[],wr=0,pi=null,ta=1,na="";function Ca(i,s){As[Os++]=bc,As[Os++]=td,td=i,bc=s}function e2(i,s,u){Sr[wr++]=ta,Sr[wr++]=na,Sr[wr++]=pi,pi=i;var h=ta;i=na;var v=32-Yt(h)-1;h&=~(1<<v),u+=1;var x=32-Yt(s)+v;if(30<x){var M=v-v%5;x=(h&(1<<M)-1).toString(32),h>>=M,v-=M,ta=1<<32-Yt(s)+v|u<<v|h,na=x+i}else ta=1<<x|u<<v|h,na=i}function Sg(i){i.return!==null&&(Ca(i,1),e2(i,1,0))}function wg(i){for(;i===td;)td=As[--Os],As[Os]=null,bc=As[--Os],As[Os]=null;for(;i===pi;)pi=Sr[--wr],Sr[wr]=null,na=Sr[--wr],Sr[wr]=null,ta=Sr[--wr],Sr[wr]=null}function t2(i,s){Sr[wr++]=ta,Sr[wr++]=na,Sr[wr++]=pi,ta=s.id,na=s.overflow,pi=i}var yn=null,At=null,Ve=!1,mi=null,Ar=!1,Ag=Error(r(519));function gi(i){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xc(xr(s,i)),Ag}function n2(i){var s=i.stateNode,u=i.type,h=i.memoizedProps;switch(s[gn]=i,s[zn]=h,u){case"dialog":Fe("cancel",s),Fe("close",s);break;case"iframe":case"object":case"embed":Fe("load",s);break;case"video":case"audio":for(u=0;u<Fc.length;u++)Fe(Fc[u],s);break;case"source":Fe("error",s);break;case"img":case"image":case"link":Fe("error",s),Fe("load",s);break;case"details":Fe("toggle",s);break;case"input":Fe("invalid",s),mO(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":Fe("invalid",s);break;case"textarea":Fe("invalid",s),yO(s,h.value,h.defaultValue,h.children)}u=h.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||s.textContent===""+u||h.suppressHydrationWarning===!0||bj(s.textContent,u)?(h.popover!=null&&(Fe("beforetoggle",s),Fe("toggle",s)),h.onScroll!=null&&Fe("scroll",s),h.onScrollEnd!=null&&Fe("scrollend",s),h.onClick!=null&&(s.onclick=_a),s=!0):s=!1,s||gi(i,!0)}function r2(i){for(yn=i.return;yn;)switch(yn.tag){case 5:case 31:case 13:Ar=!1;return;case 27:case 3:Ar=!0;return;default:yn=yn.return}}function _s(i){if(i!==yn)return!1;if(!Ve)return r2(i),Ve=!0,!1;var s=i.tag,u;if((u=s!==3&&s!==27)&&((u=s===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||qy(i.type,i.memoizedProps)),u=!u),u&&At&&gi(i),r2(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));At=Cj(i)}else if(s===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));At=Cj(i)}else s===27?(s=At,Pi(i.type)?(i=Vy,Vy=null,At=i):At=s):At=yn?_r(i.stateNode.nextSibling):null;return!0}function fo(){At=yn=null,Ve=!1}function Og(){var i=mi;return i!==null&&(qn===null?qn=i:qn.push.apply(qn,i),mi=null),i}function xc(i){mi===null?mi=[i]:mi.push(i)}var _g=$(null),ho=null,Ta=null;function yi(i,s,u){Y(_g,s._currentValue),s._currentValue=u}function Pa(i){i._currentValue=_g.current,V(_g)}function jg(i,s,u){for(;i!==null;){var h=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),i===u)break;i=i.return}}function Eg(i,s,u,h){var v=i.child;for(v!==null&&(v.return=i);v!==null;){var x=v.dependencies;if(x!==null){var M=v.child;x=x.firstContext;e:for(;x!==null;){var k=x;x=v;for(var G=0;G<s.length;G++)if(k.context===s[G]){x.lanes|=u,k=x.alternate,k!==null&&(k.lanes|=u),jg(x.return,u,i),h||(M=null);break e}x=k.next}}else if(v.tag===18){if(M=v.return,M===null)throw Error(r(341));M.lanes|=u,x=M.alternate,x!==null&&(x.lanes|=u),jg(M,u,i),M=null}else M=v.child;if(M!==null)M.return=v;else for(M=v;M!==null;){if(M===i){M=null;break}if(v=M.sibling,v!==null){v.return=M.return,M=v;break}M=M.return}v=M}}function js(i,s,u,h){i=null;for(var v=s,x=!1;v!==null;){if(!x){if((v.flags&524288)!==0)x=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var M=v.alternate;if(M===null)throw Error(r(387));if(M=M.memoizedProps,M!==null){var k=v.type;Kn(v.pendingProps.value,M.value)||(i!==null?i.push(k):i=[k])}}else if(v===me.current){if(M=v.alternate,M===null)throw Error(r(387));M.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(i!==null?i.push(Gc):i=[Gc])}v=v.return}i!==null&&Eg(s,i,u,h),s.flags|=262144}function nd(i){for(i=i.firstContext;i!==null;){if(!Kn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function po(i){ho=i,Ta=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function vn(i){return a2(ho,i)}function rd(i,s){return ho===null&&po(i),a2(i,s)}function a2(i,s){var u=s._currentValue;if(s={context:s,memoizedValue:u,next:null},Ta===null){if(i===null)throw Error(r(308));Ta=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else Ta=Ta.next=s;return u}var j7=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(u,h){i.push(h)}};this.abort=function(){s.aborted=!0,i.forEach(function(u){return u()})}},E7=e.unstable_scheduleCallback,C7=e.unstable_NormalPriority,Ft={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cg(){return{controller:new j7,data:new Map,refCount:0}}function Sc(i){i.refCount--,i.refCount===0&&E7(C7,function(){i.controller.abort()})}var wc=null,Tg=0,Es=0,Cs=null;function T7(i,s){if(wc===null){var u=wc=[];Tg=0,Es=Dy(),Cs={status:"pending",value:void 0,then:function(h){u.push(h)}}}return Tg++,s.then(i2,i2),s}function i2(){if(--Tg===0&&wc!==null){Cs!==null&&(Cs.status="fulfilled");var i=wc;wc=null,Es=0,Cs=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function P7(i,s){var u=[],h={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return i.then(function(){h.status="fulfilled",h.value=s;for(var v=0;v<u.length;v++)(0,u[v])(s)},function(v){for(h.status="rejected",h.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),h}var o2=R.S;R.S=function(i,s){U_=Bt(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&T7(i,s),o2!==null&&o2(i,s)};var mo=$(null);function Pg(){var i=mo.current;return i!==null?i:gt.pooledCache}function ad(i,s){s===null?Y(mo,mo.current):Y(mo,s.pool)}function s2(){var i=Pg();return i===null?null:{parent:Ft._currentValue,pool:i}}var Ts=Error(r(460)),Mg=Error(r(474)),id=Error(r(542)),od={then:function(){}};function l2(i){return i=i.status,i==="fulfilled"||i==="rejected"}function c2(i,s,u){switch(u=i[u],u===void 0?i.push(s):u!==s&&(s.then(_a,_a),s=u),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,f2(i),i;default:if(typeof s.status=="string")s.then(_a,_a);else{if(i=gt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(h){if(s.status==="pending"){var v=s;v.status="fulfilled",v.value=h}},function(h){if(s.status==="pending"){var v=s;v.status="rejected",v.reason=h}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,f2(i),i}throw yo=s,Ts}}function go(i){try{var s=i._init;return s(i._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(yo=u,Ts):u}}var yo=null;function u2(){if(yo===null)throw Error(r(459));var i=yo;return yo=null,i}function f2(i){if(i===Ts||i===id)throw Error(r(483))}var Ps=null,Ac=0;function sd(i){var s=Ac;return Ac+=1,Ps===null&&(Ps=[]),c2(Ps,i,s)}function Oc(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function ld(i,s){throw s.$$typeof===g?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function d2(i){function s(X,Q){if(i){var ee=X.deletions;ee===null?(X.deletions=[Q],X.flags|=16):ee.push(Q)}}function u(X,Q){if(!i)return null;for(;Q!==null;)s(X,Q),Q=Q.sibling;return null}function h(X){for(var Q=new Map;X!==null;)X.key!==null?Q.set(X.key,X):Q.set(X.index,X),X=X.sibling;return Q}function v(X,Q){return X=Ea(X,Q),X.index=0,X.sibling=null,X}function x(X,Q,ee){return X.index=ee,i?(ee=X.alternate,ee!==null?(ee=ee.index,ee<Q?(X.flags|=67108866,Q):ee):(X.flags|=67108866,Q)):(X.flags|=1048576,Q)}function M(X){return i&&X.alternate===null&&(X.flags|=67108866),X}function k(X,Q,ee,le){return Q===null||Q.tag!==6?(Q=bg(ee,X.mode,le),Q.return=X,Q):(Q=v(Q,ee),Q.return=X,Q)}function G(X,Q,ee,le){var Ce=ee.type;return Ce===S?ie(X,Q,ee.props.children,le,ee.key):Q!==null&&(Q.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===N&&go(Ce)===Q.type)?(Q=v(Q,ee.props),Oc(Q,ee),Q.return=X,Q):(Q=ed(ee.type,ee.key,ee.props,null,X.mode,le),Oc(Q,ee),Q.return=X,Q)}function te(X,Q,ee,le){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==ee.containerInfo||Q.stateNode.implementation!==ee.implementation?(Q=xg(ee,X.mode,le),Q.return=X,Q):(Q=v(Q,ee.children||[]),Q.return=X,Q)}function ie(X,Q,ee,le,Ce){return Q===null||Q.tag!==7?(Q=uo(ee,X.mode,le,Ce),Q.return=X,Q):(Q=v(Q,ee),Q.return=X,Q)}function fe(X,Q,ee){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Q=bg(""+Q,X.mode,ee),Q.return=X,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case b:return ee=ed(Q.type,Q.key,Q.props,null,X.mode,ee),Oc(ee,Q),ee.return=X,ee;case w:return Q=xg(Q,X.mode,ee),Q.return=X,Q;case N:return Q=go(Q),fe(X,Q,ee)}if(U(Q)||L(Q))return Q=uo(Q,X.mode,ee,null),Q.return=X,Q;if(typeof Q.then=="function")return fe(X,sd(Q),ee);if(Q.$$typeof===E)return fe(X,rd(X,Q),ee);ld(X,Q)}return null}function ne(X,Q,ee,le){var Ce=Q!==null?Q.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return Ce!==null?null:k(X,Q,""+ee,le);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case b:return ee.key===Ce?G(X,Q,ee,le):null;case w:return ee.key===Ce?te(X,Q,ee,le):null;case N:return ee=go(ee),ne(X,Q,ee,le)}if(U(ee)||L(ee))return Ce!==null?null:ie(X,Q,ee,le,null);if(typeof ee.then=="function")return ne(X,Q,sd(ee),le);if(ee.$$typeof===E)return ne(X,Q,rd(X,ee),le);ld(X,ee)}return null}function re(X,Q,ee,le,Ce){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return X=X.get(ee)||null,k(Q,X,""+le,Ce);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case b:return X=X.get(le.key===null?ee:le.key)||null,G(Q,X,le,Ce);case w:return X=X.get(le.key===null?ee:le.key)||null,te(Q,X,le,Ce);case N:return le=go(le),re(X,Q,ee,le,Ce)}if(U(le)||L(le))return X=X.get(ee)||null,ie(Q,X,le,Ce,null);if(typeof le.then=="function")return re(X,Q,ee,sd(le),Ce);if(le.$$typeof===E)return re(X,Q,ee,rd(Q,le),Ce);ld(Q,le)}return null}function be(X,Q,ee,le){for(var Ce=null,Ze=null,Ae=Q,Be=Q=0,We=null;Ae!==null&&Be<ee.length;Be++){Ae.index>Be?(We=Ae,Ae=null):We=Ae.sibling;var Je=ne(X,Ae,ee[Be],le);if(Je===null){Ae===null&&(Ae=We);break}i&&Ae&&Je.alternate===null&&s(X,Ae),Q=x(Je,Q,Be),Ze===null?Ce=Je:Ze.sibling=Je,Ze=Je,Ae=We}if(Be===ee.length)return u(X,Ae),Ve&&Ca(X,Be),Ce;if(Ae===null){for(;Be<ee.length;Be++)Ae=fe(X,ee[Be],le),Ae!==null&&(Q=x(Ae,Q,Be),Ze===null?Ce=Ae:Ze.sibling=Ae,Ze=Ae);return Ve&&Ca(X,Be),Ce}for(Ae=h(Ae);Be<ee.length;Be++)We=re(Ae,X,Be,ee[Be],le),We!==null&&(i&&We.alternate!==null&&Ae.delete(We.key===null?Be:We.key),Q=x(We,Q,Be),Ze===null?Ce=We:Ze.sibling=We,Ze=We);return i&&Ae.forEach(function(ki){return s(X,ki)}),Ve&&Ca(X,Be),Ce}function Te(X,Q,ee,le){if(ee==null)throw Error(r(151));for(var Ce=null,Ze=null,Ae=Q,Be=Q=0,We=null,Je=ee.next();Ae!==null&&!Je.done;Be++,Je=ee.next()){Ae.index>Be?(We=Ae,Ae=null):We=Ae.sibling;var ki=ne(X,Ae,Je.value,le);if(ki===null){Ae===null&&(Ae=We);break}i&&Ae&&ki.alternate===null&&s(X,Ae),Q=x(ki,Q,Be),Ze===null?Ce=ki:Ze.sibling=ki,Ze=ki,Ae=We}if(Je.done)return u(X,Ae),Ve&&Ca(X,Be),Ce;if(Ae===null){for(;!Je.done;Be++,Je=ee.next())Je=fe(X,Je.value,le),Je!==null&&(Q=x(Je,Q,Be),Ze===null?Ce=Je:Ze.sibling=Je,Ze=Je);return Ve&&Ca(X,Be),Ce}for(Ae=h(Ae);!Je.done;Be++,Je=ee.next())Je=re(Ae,X,Be,Je.value,le),Je!==null&&(i&&Je.alternate!==null&&Ae.delete(Je.key===null?Be:Je.key),Q=x(Je,Q,Be),Ze===null?Ce=Je:Ze.sibling=Je,Ze=Je);return i&&Ae.forEach(function(qB){return s(X,qB)}),Ve&&Ca(X,Be),Ce}function pt(X,Q,ee,le){if(typeof ee=="object"&&ee!==null&&ee.type===S&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case b:e:{for(var Ce=ee.key;Q!==null;){if(Q.key===Ce){if(Ce=ee.type,Ce===S){if(Q.tag===7){u(X,Q.sibling),le=v(Q,ee.props.children),le.return=X,X=le;break e}}else if(Q.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===N&&go(Ce)===Q.type){u(X,Q.sibling),le=v(Q,ee.props),Oc(le,ee),le.return=X,X=le;break e}u(X,Q);break}else s(X,Q);Q=Q.sibling}ee.type===S?(le=uo(ee.props.children,X.mode,le,ee.key),le.return=X,X=le):(le=ed(ee.type,ee.key,ee.props,null,X.mode,le),Oc(le,ee),le.return=X,X=le)}return M(X);case w:e:{for(Ce=ee.key;Q!==null;){if(Q.key===Ce)if(Q.tag===4&&Q.stateNode.containerInfo===ee.containerInfo&&Q.stateNode.implementation===ee.implementation){u(X,Q.sibling),le=v(Q,ee.children||[]),le.return=X,X=le;break e}else{u(X,Q);break}else s(X,Q);Q=Q.sibling}le=xg(ee,X.mode,le),le.return=X,X=le}return M(X);case N:return ee=go(ee),pt(X,Q,ee,le)}if(U(ee))return be(X,Q,ee,le);if(L(ee)){if(Ce=L(ee),typeof Ce!="function")throw Error(r(150));return ee=Ce.call(ee),Te(X,Q,ee,le)}if(typeof ee.then=="function")return pt(X,Q,sd(ee),le);if(ee.$$typeof===E)return pt(X,Q,rd(X,ee),le);ld(X,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint"?(ee=""+ee,Q!==null&&Q.tag===6?(u(X,Q.sibling),le=v(Q,ee),le.return=X,X=le):(u(X,Q),le=bg(ee,X.mode,le),le.return=X,X=le),M(X)):u(X,Q)}return function(X,Q,ee,le){try{Ac=0;var Ce=pt(X,Q,ee,le);return Ps=null,Ce}catch(Ae){if(Ae===Ts||Ae===id)throw Ae;var Ze=Yn(29,Ae,null,X.mode);return Ze.lanes=le,Ze.return=X,Ze}finally{}}}var vo=d2(!0),h2=d2(!1),vi=!1;function Dg(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ng(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function bi(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function xi(i,s,u){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(rt&2)!==0){var v=h.pending;return v===null?s.next=s:(s.next=v.next,v.next=s),h.pending=s,s=Jf(i),QO(i,null,u),s}return Zf(i,h,s,u),Jf(i)}function _c(i,s,u){if(s=s.updateQueue,s!==null&&(s=s.shared,(u&4194048)!==0)){var h=s.lanes;h&=i.pendingLanes,u|=h,s.lanes=u,wt(i,u)}}function Rg(i,s){var u=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var v=null,x=null;if(u=u.firstBaseUpdate,u!==null){do{var M={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};x===null?v=x=M:x=x.next=M,u=u.next}while(u!==null);x===null?v=x=s:x=x.next=s}else v=x=s;u={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:h.shared,callbacks:h.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=s:i.next=s,u.lastBaseUpdate=s}var kg=!1;function jc(){if(kg){var i=Cs;if(i!==null)throw i}}function Ec(i,s,u,h){kg=!1;var v=i.updateQueue;vi=!1;var x=v.firstBaseUpdate,M=v.lastBaseUpdate,k=v.shared.pending;if(k!==null){v.shared.pending=null;var G=k,te=G.next;G.next=null,M===null?x=te:M.next=te,M=G;var ie=i.alternate;ie!==null&&(ie=ie.updateQueue,k=ie.lastBaseUpdate,k!==M&&(k===null?ie.firstBaseUpdate=te:k.next=te,ie.lastBaseUpdate=G))}if(x!==null){var fe=v.baseState;M=0,ie=te=G=null,k=x;do{var ne=k.lane&-536870913,re=ne!==k.lane;if(re?(He&ne)===ne:(h&ne)===ne){ne!==0&&ne===Es&&(kg=!0),ie!==null&&(ie=ie.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var be=i,Te=k;ne=s;var pt=u;switch(Te.tag){case 1:if(be=Te.payload,typeof be=="function"){fe=be.call(pt,fe,ne);break e}fe=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=Te.payload,ne=typeof be=="function"?be.call(pt,fe,ne):be,ne==null)break e;fe=p({},fe,ne);break e;case 2:vi=!0}}ne=k.callback,ne!==null&&(i.flags|=64,re&&(i.flags|=8192),re=v.callbacks,re===null?v.callbacks=[ne]:re.push(ne))}else re={lane:ne,tag:k.tag,payload:k.payload,callback:k.callback,next:null},ie===null?(te=ie=re,G=fe):ie=ie.next=re,M|=ne;if(k=k.next,k===null){if(k=v.shared.pending,k===null)break;re=k,k=re.next,re.next=null,v.lastBaseUpdate=re,v.shared.pending=null}}while(!0);ie===null&&(G=fe),v.baseState=G,v.firstBaseUpdate=te,v.lastBaseUpdate=ie,x===null&&(v.shared.lanes=0),_i|=M,i.lanes=M,i.memoizedState=fe}}
vendor: 4,429 bytes, line 48
48function p2(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function m2(i,s){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)p2(u[i],s)}var Ms=$(null),cd=$(0);function g2(i,s){i=$a,Y(cd,i),Y(Ms,s),$a=i|s.baseLanes}function zg(){Y(cd,$a),Y(Ms,Ms.current)}function Bg(){$a=cd.current,V(Ms),V(cd)}var Qn=$(null),Or=null;function Si(i){var s=i.alternate;Y(It,It.current&1),Y(Qn,i),Or===null&&(s===null||Ms.current!==null||s.memoizedState!==null)&&(Or=i)}function Ig(i){Y(It,It.current),Y(Qn,i),Or===null&&(Or=i)}function y2(i){i.tag===22?(Y(It,It.current),Y(Qn,i),Or===null&&(Or=i)):wi()}function wi(){Y(It,It.current),Y(Qn,Qn.current)}function Xn(i){V(Qn),Or===i&&(Or=null),V(It)}var It=$(0);function ud(i){for(var s=i;s!==null;){if(s.tag===13){var u=s.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Hy(u)||Wy(u)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Ma=0,ke=null,dt=null,Ut=null,fd=!1,Ds=!1,bo=!1,dd=0,Cc=0,Ns=null,M7=0;function Dt(){throw Error(r(321))}function $g(i,s){if(s===null)return!1;for(var u=0;u<s.length&&u<i.length;u++)if(!Kn(i[u],s[u]))return!1;return!0}function Lg(i,s,u,h,v,x){return Ma=x,ke=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,R.H=i===null||i.memoizedState===null?e_:ty,bo=!1,x=u(h,v),bo=!1,Ds&&(x=b2(s,u,h,v)),v2(i),x}function v2(i){R.H=Mc;var s=dt!==null&&dt.next!==null;if(Ma=0,Ut=dt=ke=null,fd=!1,Cc=0,Ns=null,s)throw Error(r(300));i===null||Ht||(i=i.dependencies,i!==null&&nd(i)&&(Ht=!0))}function b2(i,s,u,h){ke=i;var v=0;do{if(Ds&&(Ns=null),Cc=0,Ds=!1,25<=v)throw Error(r(301));if(v+=1,Ut=dt=null,i.updateQueue!=null){var x=i.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}R.H=t_,x=s(u,h)}while(Ds);return x}function D7(){var i=R.H,s=i.useState()[0];return s=typeof s.then=="function"?Tc(s):s,i=i.useState()[0],(dt!==null?dt.memoizedState:null)!==i&&(ke.flags|=1024),s}function qg(){var i=dd!==0;return dd=0,i}function Fg(i,s,u){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~u}function Ug(i){if(fd){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}fd=!1}Ma=0,Ut=dt=ke=null,Ds=!1,Cc=dd=0,Ns=null}function Pn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?ke.memoizedState=Ut=i:Ut=Ut.next=i,Ut}function $t(){if(dt===null){var i=ke.alternate;i=i!==null?i.memoizedState:null}else i=dt.next;var s=Ut===null?ke.memoizedState:Ut.next;if(s!==null)Ut=s,dt=i;else{if(i===null)throw ke.alternate===null?Error(r(467)):Error(r(310));dt=i,i={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},Ut===null?ke.memoizedState=Ut=i:Ut=Ut.next=i}return Ut}function hd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tc(i){var s=Cc;return Cc+=1,Ns===null&&(Ns=[]),i=c2(Ns,i,s),s=ke,(Ut===null?s.memoizedState:Ut.next)===null&&(s=s.alternate,R.H=s===null||s.memoizedState===null?e_:ty),i}function pd(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Tc(i);if(i.$$typeof===E)return vn(i)}throw Error(r(438,String(i)))}function Hg(i){var s=null,u=ke.updateQueue;if(u!==null&&(s=u.memoCache),s==null){var h=ke.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(v){return v.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),u===null&&(u=hd(),ke.updateQueue=u),u.memoCache=s,u=s.data[s.index],u===void 0)for(u=s.data[s.index]=Array(i),h=0;h<i;h++)u[h]=q;return s.index++,u}function Da(i,s){return typeof s=="function"?s(i):s}function md(i){var s=$t();return Wg(s,dt,i)}function Wg(i,s,u){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var v=i.baseQueue,x=h.pending;if(x!==null){if(v!==null){var M=v.next;v.next=x.next,x.next=M}s.baseQueue=v=x,h.pending=null}if(x=i.baseState,v===null)i.memoizedState=x;else{s=v.next;var k=M=null,G=null,te=s,ie=!1;do{var fe=te.lane&-536870913;if(fe!==te.lane?(He&fe)===fe:(Ma&fe)===fe){var ne=te.revertLane;
vendor: 15,949 bytes, line 48
48if(ne===0)G!==null&&(G=G.next={lane:0,revertLane:0,gesture:null,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null}),fe===Es&&(ie=!0);else if((Ma&ne)===ne){te=te.next,ne===Es&&(ie=!0);continue}else fe={lane:0,revertLane:te.revertLane,gesture:null,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},G===null?(k=G=fe,M=x):G=G.next=fe,ke.lanes|=ne,_i|=ne;fe=te.action,bo&&u(x,fe),x=te.hasEagerState?te.eagerState:u(x,fe)}else ne={lane:fe,revertLane:te.revertLane,gesture:te.gesture,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},G===null?(k=G=ne,M=x):G=G.next=ne,ke.lanes|=fe,_i|=fe;te=te.next}while(te!==null&&te!==s);if(G===null?M=x:G.next=k,!Kn(x,i.memoizedState)&&(Ht=!0,ie&&(u=Cs,u!==null)))throw u;i.memoizedState=x,i.baseState=M,i.baseQueue=G,h.lastRenderedState=x}return v===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function Vg(i){var s=$t(),u=s.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var h=u.dispatch,v=u.pending,x=s.memoizedState;if(v!==null){u.pending=null;var M=v=v.next;do x=i(x,M.action),M=M.next;while(M!==v);Kn(x,s.memoizedState)||(Ht=!0),s.memoizedState=x,s.baseQueue===null&&(s.baseState=x),u.lastRenderedState=x}return[x,h]}function x2(i,s,u){var h=ke,v=$t(),x=Ve;if(x){if(u===void 0)throw Error(r(407));u=u()}else u=s();var M=!Kn((dt||v).memoizedState,u);if(M&&(v.memoizedState=u,Ht=!0),v=v.queue,Yg(A2.bind(null,h,v,i),[i]),v.getSnapshot!==s||M||Ut!==null&&Ut.memoizedState.tag&1){if(h.flags|=2048,Rs(9,{destroy:void 0},w2.bind(null,h,v,u,s),null),gt===null)throw Error(r(349));x||(Ma&127)!==0||S2(h,s,u)}return u}function S2(i,s,u){i.flags|=16384,i={getSnapshot:s,value:u},s=ke.updateQueue,s===null?(s=hd(),ke.updateQueue=s,s.stores=[i]):(u=s.stores,u===null?s.stores=[i]:u.push(i))}function w2(i,s,u,h){s.value=u,s.getSnapshot=h,O2(s)&&_2(i)}function A2(i,s,u){return u(function(){O2(s)&&_2(i)})}function O2(i){var s=i.getSnapshot;i=i.value;try{var u=s();return!Kn(i,u)}catch{return!0}}function _2(i){var s=co(i,2);s!==null&&Fn(s,i,2)}function Gg(i){var s=Pn();if(typeof i=="function"){var u=i;if(i=u(),bo){Tn(!0);try{u()}finally{Tn(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:i},s}function j2(i,s,u,h){return i.baseState=u,Wg(i,dt,typeof h=="function"?h:Da)}function N7(i,s,u,h,v){if(vd(i))throw Error(r(485));if(i=s.action,i!==null){var x={payload:v,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){x.listeners.push(M)}};R.T!==null?u(!0):x.isTransition=!1,h(x),u=s.pending,u===null?(x.next=s.pending=x,E2(s,x)):(x.next=u.next,s.pending=u.next=x)}}function E2(i,s){var u=s.action,h=s.payload,v=i.state;if(s.isTransition){var x=R.T,M={};R.T=M;try{var k=u(v,h),G=R.S;G!==null&&G(M,k),C2(i,s,k)}catch(te){Kg(i,s,te)}finally{x!==null&&M.types!==null&&(x.types=M.types),R.T=x}}else try{x=u(v,h),C2(i,s,x)}catch(te){Kg(i,s,te)}}function C2(i,s,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){T2(i,s,h)},function(h){return Kg(i,s,h)}):T2(i,s,u)}function T2(i,s,u){s.status="fulfilled",s.value=u,P2(s),i.state=u,s=i.pending,s!==null&&(u=s.next,u===s?i.pending=null:(u=u.next,s.next=u,E2(i,u)))}function Kg(i,s,u){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do s.status="rejected",s.reason=u,P2(s),s=s.next;while(s!==h)}i.action=null}function P2(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function M2(i,s){return s}function D2(i,s){if(Ve){var u=gt.formState;if(u!==null){e:{var h=ke;if(Ve){if(At){t:{for(var v=At,x=Ar;v.nodeType!==8;){if(!x){v=null;break t}if(v=_r(v.nextSibling),v===null){v=null;break t}}x=v.data,v=x==="F!"||x==="F"?v:null}if(v){At=_r(v.nextSibling),h=v.data==="F!";break e}}gi(h)}h=!1}h&&(s=u[0])}}return u=Pn(),u.memoizedState=u.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:M2,lastRenderedState:s},u.queue=h,u=X2.bind(null,ke,h),h.dispatch=u,h=Gg(!1),x=ey.bind(null,ke,!1,h.queue),h=Pn(),v={state:s,dispatch:null,action:i,pending:null},h.queue=v,u=N7.bind(null,ke,v,x,u),v.dispatch=u,h.memoizedState=i,[s,u,!1]}function N2(i){var s=$t();return R2(s,dt,i)}function R2(i,s,u){if(s=Wg(i,s,M2)[0],i=md(Da)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var h=Tc(s)}catch(M){throw M===Ts?id:M}else h=s;s=$t();var v=s.queue,x=v.dispatch;return u!==s.memoizedState&&(ke.flags|=2048,Rs(9,{destroy:void 0},R7.bind(null,v,u),null)),[h,x,i]}function R7(i,s){i.action=s}function k2(i){var s=$t(),u=dt;if(u!==null)return R2(s,u,i);$t(),s=s.memoizedState,u=$t();var h=u.queue.dispatch;return u.memoizedState=i,[s,h,!1]}function Rs(i,s,u,h){return i={tag:i,create:u,deps:h,inst:s,next:null},s=ke.updateQueue,s===null&&(s=hd(),ke.updateQueue=s),u=s.lastEffect,u===null?s.lastEffect=i.next=i:(h=u.next,u.next=i,i.next=h,s.lastEffect=i),i}function z2(){return $t().memoizedState}function gd(i,s,u,h){var v=Pn();ke.flags|=i,v.memoizedState=Rs(1|s,{destroy:void 0},u,h===void 0?null:h)}function yd(i,s,u,h){var v=$t();h=h===void 0?null:h;var x=v.memoizedState.inst;dt!==null&&h!==null&&$g(h,dt.memoizedState.deps)?v.memoizedState=Rs(s,x,u,h):(ke.flags|=i,v.memoizedState=Rs(1|s,x,u,h))}function B2(i,s){gd(8390656,8,i,s)}function Yg(i,s){yd(2048,8,i,s)}function k7(i){ke.flags|=4;var s=ke.updateQueue;if(s===null)s=hd(),ke.updateQueue=s,s.events=[i];else{var u=s.events;u===null?s.events=[i]:u.push(i)}}function I2(i){var s=$t().memoizedState;return k7({ref:s,nextImpl:i}),function(){if((rt&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function $2(i,s){return yd(4,2,i,s)}function L2(i,s){return yd(4,4,i,s)}function q2(i,s){if(typeof s=="function"){i=i();var u=s(i);return function(){typeof u=="function"?u():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function F2(i,s,u){u=u!=null?u.concat([i]):null,yd(4,4,q2.bind(null,s,i),u)}function Qg(){}function U2(i,s){var u=$t();s=s===void 0?null:s;var h=u.memoizedState;return s!==null&&$g(s,h[1])?h[0]:(u.memoizedState=[i,s],i)}function H2(i,s){var u=$t();s=s===void 0?null:s;var h=u.memoizedState;if(s!==null&&$g(s,h[1]))return h[0];if(h=i(),bo){Tn(!0);try{i()}finally{Tn(!1)}}return u.memoizedState=[h,s],h}function Xg(i,s,u){return u===void 0||(Ma&1073741824)!==0&&(He&261930)===0?i.memoizedState=s:(i.memoizedState=u,i=W_(),ke.lanes|=i,_i|=i,u)}function W2(i,s,u,h){return Kn(u,s)?u:Ms.current!==null?(i=Xg(i,u,h),Kn(i,s)||(Ht=!0),i):(Ma&42)===0||(Ma&1073741824)!==0&&(He&261930)===0?(Ht=!0,i.memoizedState=u):(i=W_(),ke.lanes|=i,_i|=i,s)}function V2(i,s,u,h,v){var x=F.p;F.p=x!==0&&8>x?x:8;var M=R.T,k={};R.T=k,ey(i,!1,s,u);try{var G=v(),te=R.S;if(te!==null&&te(k,G),G!==null&&typeof G=="object"&&typeof G.then=="function"){var ie=P7(G,h);Pc(i,s,ie,er(i))}else Pc(i,s,h,er(i))}catch(fe){Pc(i,s,{then:function(){},status:"rejected",reason:fe},er())}finally{F.p=x,M!==null&&k.types!==null&&(M.types=k.types),R.T=M}}function z7(){}function Zg(i,s,u,h){if(i.tag!==5)throw Error(r(476));var v=G2(i).queue;V2(i,v,s,H,u===null?z7:function(){return K2(i),u(h)})}function G2(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:H},next:null};var u={};return s.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:u},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function K2(i){var s=G2(i);s.next===null&&(s=i.alternate.memoizedState),Pc(i,s.next.queue,{},er())}function Jg(){return vn(Gc)}function Y2(){return $t().memoizedState}function Q2(){return $t().memoizedState}function B7(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var u=er();i=bi(u);var h=xi(s,i,u);h!==null&&(Fn(h,s,u),_c(h,s,u)),s={cache:Cg()},i.payload=s;return}s=s.return}}function I7(i,s,u){var h=er();u={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},vd(i)?Z2(s,u):(u=yg(i,s,u,h),u!==null&&(Fn(u,i,h),J2(u,s,h)))}function X2(i,s,u){var h=er();Pc(i,s,u,h)}function Pc(i,s,u,h){var v={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(vd(i))Z2(s,v);else{var x=i.alternate;if(i.lanes===0&&(x===null||x.lanes===0)&&(x=s.lastRenderedReducer,x!==null))try{var M=s.lastRenderedState,k=x(M,u);if(v.hasEagerState=!0,v.eagerState=k,Kn(k,M))return Zf(i,s,v,0),gt===null&&Xf(),!1}catch{}finally{}if(u=yg(i,s,v,h),u!==null)return Fn(u,i,h),J2(u,s,h),!0}return!1}function ey(i,s,u,h){if(h={lane:2,revertLane:Dy(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},vd(i)){if(s)throw Error(r(479))}else s=yg(i,u,h,2),s!==null&&Fn(s,i,2)}function vd(i){var s=i.alternate;return i===ke||s!==null&&s===ke}function Z2(i,s){Ds=fd=!0;var u=i.pending;u===null?s.next=s:(s.next=u.next,u.next=s),i.pending=s}function J2(i,s,u){if((u&4194048)!==0){var h=s.lanes;h&=i.pendingLanes,u|=h,s.lanes=u,wt(i,u)}}var Mc={readContext:vn,use:pd,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useLayoutEffect:Dt,useInsertionEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useSyncExternalStore:Dt,useId:Dt,useHostTransitionStatus:Dt,useFormState:Dt,useActionState:Dt,useOptimistic:Dt,useMemoCache:Dt,useCacheRefresh:Dt};Mc.useEffectEvent=Dt;var e_={readContext:vn,use:pd,useCallback:function(i,s){return Pn().memoizedState=[i,s===void 0?null:s],i},useContext:vn,useEffect:B2,useImperativeHandle:function(i,s,u){u=u!=null?u.concat([i]):null,gd(4194308,4,q2.bind(null,s,i),u)},useLayoutEffect:function(i,s){return gd(4194308,4,i,s)},useInsertionEffect:function(i,s){gd(4,2,i,s)},useMemo:function(i,s){var u=Pn();s=s===void 0?null:s;var h=i();if(bo){Tn(!0);try{i()}finally{Tn(!1)}}return u.memoizedState=[h,s],h},useReducer:function(i,s,u){var h=Pn();if(u!==void 0){var v=u(s);if(bo){Tn(!0);try{u(s)}finally{Tn(!1)}}}else v=s;return h.memoizedState=h.baseState=v,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:v},h.queue=i,i=i.dispatch=I7.bind(null,ke,i),[h.memoizedState,i]},useRef:function(i){var s=Pn();return i={current:i},s.memoizedState=i},useState:function(i){i=Gg(i);var s=i.queue,u=X2.bind(null,ke,s);return s.dispatch=u,[i.memoizedState,u]},useDebugValue:Qg,useDeferredValue:function(i,s){var u=Pn();return Xg(u,i,s)},useTransition:function(){var i=Gg(!1);return i=V2.bind(null,ke,i.queue,!0,!1),Pn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,u){var h=ke,v=Pn();if(Ve){if(u===void 0)throw Error(r(407));u=u()}else{if(u=s(),gt===null)throw Error(r(349));(He&127)!==0||S2(h,s,u)}v.memoizedState=u;var x={value:u,getSnapshot:s};return v.queue=x,B2(A2.bind(null,h,x,i),[i]),h.flags|=2048,Rs(9,{destroy:void 0},w2.bind(null,h,x,u,s),null),u},useId:function(){var i=Pn(),s=gt.identifierPrefix;if(Ve){var u=na,h=ta;u=(h&~(1<<32-Yt(h)-1)).toString(32)+u,s="_"+s+"R_"+u,u=dd++,0<u&&(s+="H"+u.toString(32)),s+="_"}else u=M7++,s="_"+s+"r_"+u.toString(32)+"_";return i.memoizedState=s},useHostTransitionStatus:Jg,useFormState:D2,useActionState:D2,useOptimistic:function(i){var s=Pn();s.memoizedState=s.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=u,s=ey.bind(null,ke,!0,u),u.dispatch=s,[i,s]},useMemoCache:Hg,useCacheRefresh:function(){return Pn().memoizedState=B7.bind(null,ke)},useEffectEvent:function(i){var s=Pn(),u={impl:i};return s.memoizedState=u,function(){if((rt&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},ty={readContext:vn,use:pd,useCallback:U2,useContext:vn,useEffect:Yg,useImperativeHandle:F2,useInsertionEffect:$2,useLayoutEffect:L2,useMemo:H2,useReducer:md,useRef:z2,useState:function(){return md(Da)},useDebugValue:Qg,useDeferredValue:function(i,s){var u=$t();return W2(u,dt.memoizedState,i,s)},useTransition:function(){var i=md(Da)[0],s=$t().memoizedState;return[typeof i=="boolean"?i:Tc(i),s]},useSyncExternalStore:x2,useId:Y2,useHostTransitionStatus:Jg,useFormState:N2,useActionState:N2,useOptimistic:function(i,s){var u=$t();return j2(u,dt,i,s)},useMemoCache:Hg,useCacheRefresh:Q2};ty.useEffectEvent=I2;var t_={readContext:vn,use:pd,useCallback:U2,useContext:vn,useEffect:Yg,useImperativeHandle:F2,useInsertionEffect:$2,useLayoutEffect:L2,useMemo:H2,useReducer:Vg,useRef:z2,useState:function(){return Vg(Da)},useDebugValue:Qg,useDeferredValue:function(i,s){var u=$t();return dt===null?Xg(u,i,s):W2(u,dt.memoizedState,i,s)},useTransition:function(){var i=Vg(Da)[0],s=$t().memoizedState;return[typeof i=="boolean"?i:Tc(i),s]},useSyncExternalStore:x2,useId:Y2,useHostTransitionStatus:Jg,useFormState:k2,useActionState:k2,useOptimistic:function(i,s){var u=$t();return dt!==null?j2(u,dt,i,s):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:Hg,useCacheRefresh:Q2};t_.useEffectEvent=I2;function ny(i,s,u,h){s=i.memoizedState,u=u(h,s),u=u==null?s:p({},s,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var ry={enqueueSetState:function(i,s,u){i=i._reactInternals;var h=er(),v=bi(h);v.payload=s,u!=null&&(v.callback=u),s=xi(i,v,h),s!==null&&(Fn(s,i,h),_c(s,i,h))},enqueueReplaceState:function(i,s,u){i=i._reactInternals;var h=er(),v=bi(h);v.tag=1,v.payload=s,u!=null&&(v.callback=u),s=xi(i,v,h),s!==null&&(Fn(s,i,h),_c(s,i,h))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var u=er(),h=bi(u);h.tag=2,s!=null&&(h.callback=s),s=xi(i,h,u),s!==null&&(Fn(s,i,u),_c(s,i,u))}};function n_(i,s,u,h,v,x,M){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,x,M):s.prototype&&s.prototype.isPureReactComponent?!yc(u,h)||!yc(v,x):!0}function r_(i,s,u,h){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(u,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(u,h),s.state!==i&&ry.enqueueReplaceState(s,s.state,null)}function xo(i,s){var u=s;if("ref"in s){u={};for(var h in s)h!=="ref"&&(u[h]=s[h])}if(i=i.defaultProps){u===s&&(u=p({},u));for(var v in i)u[v]===void 0&&(u[v]=i[v])}return u}function a_(i){Qf(i)}function i_(i){console.error(i)}function o_(i){Qf(i)}function bd(i,s){try{var u=i.onUncaughtError;u(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function s_(i,s,u){try{var h=i.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function ay(i,s,u){return u=bi(u),u.tag=3,u.payload={element:null},u.callback=function(){bd(i,s)},u}function l_(i){return i=bi(i),i.tag=3,i}function c_(i,s,u,h){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var x=h.value;i.payload=function(){return v(x)},i.callback=function(){s_(s,u,h)}}var M=u.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(i.callback=function(){s_(s,u,h),typeof v!="function"&&(ji===null?ji=new Set([this]):ji.add(this));var k=h.stack;this.componentDidCatch(h.value,{componentStack:k!==null?k:""})})}function $7(i,s,u,h,v){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=u.alternate,s!==null&&js(s,u,v,!0),u=Qn.current,u!==null){switch(u.tag){case 31:case 13:return Or===null?Md():u.alternate===null&&Nt===0&&(Nt=3),u.flags&=-257,u.flags|=65536,u.lanes=v,h===od?u.flags|=16384:(s=u.updateQueue,s===null?u.updateQueue=new Set([h]):s.add(h),Ty(i,h,v)),!1;case 22:return u.flags|=65536,h===od?u.flags|=16384:(s=u.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},u.updateQueue=s):(u=s.retryQueue,u===null?s.retryQueue=new Set([h]):u.add(h)),Ty(i,h,v)),!1}throw Error(r(435,u.tag))}return Ty(i,h,v),Md(),!1}if(Ve)return s=Qn.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=v,h!==Ag&&(i=Error(r(422),{cause:h}),xc(xr(i,u)))):(h!==Ag&&(s=Error(r(423),{cause:h}
vendor: 20,464 bytes, line 48
48),xc(xr(s,u))),i=i.current.alternate,i.flags|=65536,v&=-v,i.lanes|=v,h=xr(h,u),v=ay(i.stateNode,h,v),Rg(i,v),Nt!==4&&(Nt=2)),!1;var x=Error(r(520),{cause:h});if(x=xr(x,u),$c===null?$c=[x]:$c.push(x),Nt!==4&&(Nt=2),s===null)return!0;h=xr(h,u),u=s;do{switch(u.tag){case 3:return u.flags|=65536,i=v&-v,u.lanes|=i,i=ay(u.stateNode,h,i),Rg(u,i),!1;case 1:if(s=u.type,x=u.stateNode,(u.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(ji===null||!ji.has(x))))return u.flags|=65536,v&=-v,u.lanes|=v,v=l_(v),c_(v,i,u,h),Rg(u,v),!1}u=u.return}while(u!==null);return!1}var iy=Error(r(461)),Ht=!1;function bn(i,s,u,h){s.child=i===null?h2(s,null,u,h):vo(s,i.child,u,h)}function u_(i,s,u,h,v){u=u.render;var x=s.ref;if("ref"in h){var M={};for(var k in h)k!=="ref"&&(M[k]=h[k])}else M=h;return po(s),h=Lg(i,s,u,M,x,v),k=qg(),i!==null&&!Ht?(Fg(i,s,v),Na(i,s,v)):(Ve&&k&&Sg(s),s.flags|=1,bn(i,s,h,v),s.child)}function f_(i,s,u,h,v){if(i===null){var x=u.type;return typeof x=="function"&&!vg(x)&&x.defaultProps===void 0&&u.compare===null?(s.tag=15,s.type=x,d_(i,s,x,h,v)):(i=ed(u.type,null,h,s,s.mode,v),i.ref=s.ref,i.return=s,s.child=i)}if(x=i.child,!hy(i,v)){var M=x.memoizedProps;if(u=u.compare,u=u!==null?u:yc,u(M,h)&&i.ref===s.ref)return Na(i,s,v)}return s.flags|=1,i=Ea(x,h),i.ref=s.ref,i.return=s,s.child=i}function d_(i,s,u,h,v){if(i!==null){var x=i.memoizedProps;if(yc(x,h)&&i.ref===s.ref)if(Ht=!1,s.pendingProps=h=x,hy(i,v))(i.flags&131072)!==0&&(Ht=!0);else return s.lanes=i.lanes,Na(i,s,v)}return oy(i,s,u,h,v)}function h_(i,s,u,h){var v=h.children,x=i!==null?i.memoizedState:null;if(i===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((s.flags&128)!==0){if(x=x!==null?x.baseLanes|u:u,i!==null){for(h=s.child=i.child,v=0;h!==null;)v=v|h.lanes|h.childLanes,h=h.sibling;h=v&~x}else h=0,s.child=null;return p_(i,s,x,u,h)}if((u&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&ad(s,x!==null?x.cachePool:null),x!==null?g2(s,x):zg(),y2(s);else return h=s.lanes=536870912,p_(i,s,x!==null?x.baseLanes|u:u,u,h)}else x!==null?(ad(s,x.cachePool),g2(s,x),wi(),s.memoizedState=null):(i!==null&&ad(s,null),zg(),wi());return bn(i,s,v,u),s.child}function Dc(i,s){return i!==null&&i.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function p_(i,s,u,h,v){var x=Pg();return x=x===null?null:{parent:Ft._currentValue,pool:x},s.memoizedState={baseLanes:u,cachePool:x},i!==null&&ad(s,null),zg(),y2(s),i!==null&&js(i,s,h,!0),s.childLanes=v,null}function xd(i,s){return s=wd({mode:s.mode,children:s.children},i.mode),s.ref=i.ref,i.child=s,s.return=i,s}function m_(i,s,u){return vo(s,i.child,null,u),i=xd(s,s.pendingProps),i.flags|=2,Xn(s),s.memoizedState=null,i}function L7(i,s,u){var h=s.pendingProps,v=(s.flags&128)!==0;if(s.flags&=-129,i===null){if(Ve){if(h.mode==="hidden")return i=xd(s,h),s.lanes=536870912,Dc(null,i);if(Ig(s),(i=At)?(i=Ej(i,Ar),i=i!==null&&i.data==="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:pi!==null?{id:ta,overflow:na}:null,retryLane:536870912,hydrationErrors:null},u=ZO(i),u.return=s,s.child=u,yn=s,At=null)):i=null,i===null)throw gi(s);return s.lanes=536870912,null}return xd(s,h)}var x=i.memoizedState;if(x!==null){var M=x.dehydrated;if(Ig(s),v)if(s.flags&256)s.flags&=-257,s=m_(i,s,u);else if(s.memoizedState!==null)s.child=i.child,s.flags|=128,s=null;else throw Error(r(558));else if(Ht||js(i,s,u,!1),v=(u&i.childLanes)!==0,Ht||v){if(h=gt,h!==null&&(M=Tt(h,u),M!==0&&M!==x.retryLane))throw x.retryLane=M,co(i,M),Fn(h,i,M),iy;Md(),s=m_(i,s,u)}else i=x.treeContext,At=_r(M.nextSibling),yn=s,Ve=!0,mi=null,Ar=!1,i!==null&&t2(s,i),s=xd(s,h),s.flags|=4096;return s}return i=Ea(i.child,{mode:h.mode,children:h.children}),i.ref=s.ref,s.child=i,i.return=s,i}function Sd(i,s){var u=s.ref;if(u===null)i!==null&&i.ref!==null&&(s.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(s.flags|=4194816)}}function oy(i,s,u,h,v){return po(s),u=Lg(i,s,u,h,void 0,v),h=qg(),i!==null&&!Ht?(Fg(i,s,v),Na(i,s,v)):(Ve&&h&&Sg(s),s.flags|=1,bn(i,s,u,v),s.child)}function g_(i,s,u,h,v,x){return po(s),s.updateQueue=null,u=b2(s,h,u,v),v2(i),h=qg(),i!==null&&!Ht?(Fg(i,s,x),Na(i,s,x)):(Ve&&h&&Sg(s),s.flags|=1,bn(i,s,u,x),s.child)}function y_(i,s,u,h,v){if(po(s),s.stateNode===null){var x=ws,M=u.contextType;typeof M=="object"&&M!==null&&(x=vn(M)),x=new u(h,x),s.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=ry,s.stateNode=x,x._reactInternals=s,x=s.stateNode,x.props=h,x.state=s.memoizedState,x.refs={},Dg(s),M=u.contextType,x.context=typeof M=="object"&&M!==null?vn(M):ws,x.state=s.memoizedState,M=u.getDerivedStateFromProps,typeof M=="function"&&(ny(s,u,M,h),x.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(M=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),M!==x.state&&ry.enqueueReplaceState(x,x.state,null),Ec(s,h,x,v),jc(),x.state=s.memoizedState),typeof x.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(i===null){x=s.stateNode;var k=s.memoizedProps,G=xo(u,k);x.props=G;var te=x.context,ie=u.contextType;M=ws,typeof ie=="object"&&ie!==null&&(M=vn(ie));var fe=u.getDerivedStateFromProps;ie=typeof fe=="function"||typeof x.getSnapshotBeforeUpdate=="function",k=s.pendingProps!==k,ie||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(k||te!==M)&&r_(s,x,h,M),vi=!1;var ne=s.memoizedState;x.state=ne,Ec(s,h,x,v),jc(),te=s.memoizedState,k||ne!==te||vi?(typeof fe=="function"&&(ny(s,u,fe,h),te=s.memoizedState),(G=vi||n_(s,u,G,h,ne,te,M))?(ie||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(s.flags|=4194308)):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=te),x.props=h,x.state=te,x.context=M,h=G):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{x=s.stateNode,Ng(i,s),M=s.memoizedProps,ie=xo(u,M),x.props=ie,fe=s.pendingProps,ne=x.context,te=u.contextType,G=ws,typeof te=="object"&&te!==null&&(G=vn(te)),k=u.getDerivedStateFromProps,(te=typeof k=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(M!==fe||ne!==G)&&r_(s,x,h,G),vi=!1,ne=s.memoizedState,x.state=ne,Ec(s,h,x,v),jc();var re=s.memoizedState;M!==fe||ne!==re||vi||i!==null&&i.dependencies!==null&&nd(i.dependencies)?(typeof k=="function"&&(ny(s,u,k,h),re=s.memoizedState),(ie=vi||n_(s,u,ie,h,ne,re,G)||i!==null&&i.dependencies!==null&&nd(i.dependencies))?(te||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(h,re,G),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(h,re,G)),typeof x.componentDidUpdate=="function"&&(s.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof x.componentDidUpdate!="function"||M===i.memoizedProps&&ne===i.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||M===i.memoizedProps&&ne===i.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=re),x.props=h,x.state=re,x.context=G,h=ie):(typeof x.componentDidUpdate!="function"||M===i.memoizedProps&&ne===i.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||M===i.memoizedProps&&ne===i.memoizedState||(s.flags|=1024),h=!1)}return x=h,Sd(i,s),h=(s.flags&128)!==0,x||h?(x=s.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:x.render(),s.flags|=1,i!==null&&h?(s.child=vo(s,i.child,null,v),s.child=vo(s,null,u,v)):bn(i,s,u,v),s.memoizedState=x.state,i=s.child):i=Na(i,s,v),i}function v_(i,s,u,h){return fo(),s.flags|=256,bn(i,s,u,h),s.child}var sy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ly(i){return{baseLanes:i,cachePool:s2()}}function cy(i,s,u){return i=i!==null?i.childLanes&~u:0,s&&(i|=Jn),i}function b_(i,s,u){var h=s.pendingProps,v=!1,x=(s.flags&128)!==0,M;if((M=x)||(M=i!==null&&i.memoizedState===null?!1:(It.current&2)!==0),M&&(v=!0,s.flags&=-129),M=(s.flags&32)!==0,s.flags&=-33,i===null){if(Ve){if(v?Si(s):wi(),(i=At)?(i=Ej(i,Ar),i=i!==null&&i.data!=="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:pi!==null?{id:ta,overflow:na}:null,retryLane:536870912,hydrationErrors:null},u=ZO(i),u.return=s,s.child=u,yn=s,At=null)):i=null,i===null)throw gi(s);return Wy(i)?s.lanes=32:s.lanes=536870912,null}var k=h.children;return h=h.fallback,v?(wi(),v=s.mode,k=wd({mode:"hidden",children:k},v),h=uo(h,v,u,null),k.return=s,h.return=s,k.sibling=h,s.child=k,h=s.child,h.memoizedState=ly(u),h.childLanes=cy(i,M,u),s.memoizedState=sy,Dc(null,h)):(Si(s),uy(s,k))}var G=i.memoizedState;if(G!==null&&(k=G.dehydrated,k!==null)){if(x)s.flags&256?(Si(s),s.flags&=-257,s=fy(i,s,u)):s.memoizedState!==null?(wi(),s.child=i.child,s.flags|=128,s=null):(wi(),k=h.fallback,v=s.mode,h=wd({mode:"visible",children:h.children},v),k=uo(k,v,u,null),k.flags|=2,h.return=s,k.return=s,h.sibling=k,s.child=h,vo(s,i.child,null,u),h=s.child,h.memoizedState=ly(u),h.childLanes=cy(i,M,u),s.memoizedState=sy,s=Dc(null,h));else if(Si(s),Wy(k)){if(M=k.nextSibling&&k.nextSibling.dataset,M)var te=M.dgst;M=te,h=Error(r(419)),h.stack="",h.digest=M,xc({value:h,source:null,stack:null}),s=fy(i,s,u)}else if(Ht||js(i,s,u,!1),M=(u&i.childLanes)!==0,Ht||M){if(M=gt,M!==null&&(h=Tt(M,u),h!==0&&h!==G.retryLane))throw G.retryLane=h,co(i,h),Fn(M,i,h),iy;Hy(k)||Md(),s=fy(i,s,u)}else Hy(k)?(s.flags|=192,s.child=i.child,s=null):(i=G.treeContext,At=_r(k.nextSibling),yn=s,Ve=!0,mi=null,Ar=!1,i!==null&&t2(s,i),s=uy(s,h.children),s.flags|=4096);return s}return v?(wi(),k=h.fallback,v=s.mode,G=i.child,te=G.sibling,h=Ea(G,{mode:"hidden",children:h.children}),h.subtreeFlags=G.subtreeFlags&65011712,te!==null?k=Ea(te,k):(k=uo(k,v,u,null),k.flags|=2),k.return=s,h.return=s,h.sibling=k,s.child=h,Dc(null,h),h=s.child,k=i.child.memoizedState,k===null?k=ly(u):(v=k.cachePool,v!==null?(G=Ft._currentValue,v=v.parent!==G?{parent:G,pool:G}:v):v=s2(),k={baseLanes:k.baseLanes|u,cachePool:v}),h.memoizedState=k,h.childLanes=cy(i,M,u),s.memoizedState=sy,Dc(i.child,h)):(Si(s),u=i.child,i=u.sibling,u=Ea(u,{mode:"visible",children:h.children}),u.return=s,u.sibling=null,i!==null&&(M=s.deletions,M===null?(s.deletions=[i],s.flags|=16):M.push(i)),s.child=u,s.memoizedState=null,u)}function uy(i,s){return s=wd({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function wd(i,s){return i=Yn(22,i,null,s),i.lanes=0,i}function fy(i,s,u){return vo(s,i.child,null,u),i=uy(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function x_(i,s,u){i.lanes|=s;var h=i.alternate;h!==null&&(h.lanes|=s),jg(i.return,s,u)}function dy(i,s,u,h,v,x){var M=i.memoizedState;M===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:v,treeForkCount:x}:(M.isBackwards=s,M.rendering=null,M.renderingStartTime=0,M.last=h,M.tail=u,M.tailMode=v,M.treeForkCount=x)}function S_(i,s,u){var h=s.pendingProps,v=h.revealOrder,x=h.tail;h=h.children;var M=It.current,k=(M&2)!==0;if(k?(M=M&1|2,s.flags|=128):M&=1,Y(It,M),bn(i,s,h,u),h=Ve?bc:0,!k&&i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&x_(i,u,s);else if(i.tag===19)x_(i,u,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(v){case"forwards":for(u=s.child,v=null;u!==null;)i=u.alternate,i!==null&&ud(i)===null&&(v=u),u=u.sibling;u=v,u===null?(v=s.child,s.child=null):(v=u.sibling,u.sibling=null),dy(s,!1,v,u,x,h);break;case"backwards":case"unstable_legacy-backwards":for(u=null,v=s.child,s.child=null;v!==null;){if(i=v.alternate,i!==null&&ud(i)===null){s.child=v;break}i=v.sibling,v.sibling=u,u=v,v=i}dy(s,!0,u,null,x,h);break;case"together":dy(s,!1,null,null,void 0,h);break;default:s.memoizedState=null}return s.child}function Na(i,s,u){if(i!==null&&(s.dependencies=i.dependencies),_i|=s.lanes,(u&s.childLanes)===0)if(i!==null){if(js(i,s,u,!1),(u&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,u=Ea(i,i.pendingProps),s.child=u,u.return=s;i.sibling!==null;)i=i.sibling,u=u.sibling=Ea(i,i.pendingProps),u.return=s;u.sibling=null}return s.child}function hy(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&nd(i)))}function q7(i,s,u){switch(s.tag){case 3:ye(s,s.stateNode.containerInfo),yi(s,Ft,i.memoizedState.cache),fo();break;case 27:case 5:pe(s);break;case 4:ye(s,s.stateNode.containerInfo);break;case 10:yi(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,Ig(s),null;break;case 13:var h=s.memoizedState;if(h!==null)return h.dehydrated!==null?(Si(s),s.flags|=128,null):(u&s.child.childLanes)!==0?b_(i,s,u):(Si(s),i=Na(i,s,u),i!==null?i.sibling:null);Si(s);break;case 19:var v=(i.flags&128)!==0;if(h=(u&s.childLanes)!==0,h||(js(i,s,u,!1),h=(u&s.childLanes)!==0),v){if(h)return S_(i,s,u);s.flags|=128}if(v=s.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Y(It,It.current),h)break;return null;case 22:return s.lanes=0,h_(i,s,u,s.pendingProps);case 24:yi(s,Ft,i.memoizedState.cache)}return Na(i,s,u)}function w_(i,s,u){if(i!==null)if(i.memoizedProps!==s.pendingProps)Ht=!0;else{if(!hy(i,u)&&(s.flags&128)===0)return Ht=!1,q7(i,s,u);Ht=(i.flags&131072)!==0}else Ht=!1,Ve&&(s.flags&1048576)!==0&&e2(s,bc,s.index);switch(s.lanes=0,s.tag){case 16:e:{var h=s.pendingProps;if(i=go(s.elementType),s.type=i,typeof i=="function")vg(i)?(h=xo(i,h),s.tag=1,s=y_(null,s,i,h,u)):(s.tag=0,s=oy(null,s,i,h,u));else{if(i!=null){var v=i.$$typeof;if(v===P){s.tag=11,s=u_(null,s,i,h,u);break e}else if(v===j){s.tag=14,s=f_(null,s,i,h,u);break e}}throw s=K(i)||i,Error(r(306,s,""))}}return s;case 0:return oy(i,s,s.type,s.pendingProps,u);case 1:return h=s.type,v=xo(h,s.pendingProps),y_(i,s,h,v,u);case 3:e:{if(ye(s,s.stateNode.containerInfo),i===null)throw Error(r(387));h=s.pendingProps;var x=s.memoizedState;v=x.element,Ng(i,s),Ec(s,h,null,u);var M=s.memoizedState;if(h=M.cache,yi(s,Ft,h),h!==x.cache&&Eg(s,[Ft],u,!0),jc(),h=M.element,x.isDehydrated)if(x={element:h,isDehydrated:!1,cache:M.cache},s.updateQueue.baseState=x,s.memoizedState=x,s.flags&256){s=v_(i,s,h,u);break e}else if(h!==v){v=xr(Error(r(424)),s),xc(v),s=v_(i,s,h,u);break e}else{switch(i=s.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(At=_r(i.firstChild),yn=s,Ve=!0,mi=null,Ar=!0,u=h2(s,null,h,u),s.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(fo(),h===v){s=Na(i,s,u);break e}bn(i,s,h,u)}s=s.child}return s;case 26:return Sd(i,s),i===null?(u=Nj(s.type,null,s.pendingProps,null))?s.memoizedState=u:Ve||(u=s.type,i=s.pendingProps,h=Id(he.current).createElement(u),h[gn]=s,h[zn]=i,xn(h,u,i),sn(h),s.stateNode=h):s.memoizedState=Nj(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return pe(s),i===null&&Ve&&(h=s.stateNode=Pj(s.type,s.pendingProps,he.current),yn=s,Ar=!0,v=At,Pi(s.type)?(Vy=v,At=_r(h.firstChild)):At=v),bn(i,s,s.pendingProps.children,u),Sd(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&Ve&&((v=h=At)&&(h=yB(h,s.type,s.pendingProps,Ar),h!==null?(s.stateNode=h,yn=s,At=_r(h.firstChild),Ar=!1,v=!0):v=!1),v||gi(s)),pe(s),v=s.type,x=s.pendingProps,M=i!==null?i.memoizedProps:null,h=x.children,qy(v,x)?h=null:M!==null&&qy(v,M)&&(s.flags|=32),s.memoizedState!==null&&(v=Lg(i,s,D7,null,null,u),Gc._currentValue=v),Sd(i,s),bn(i,s,h,u),s.child;case 6:return i===null&&Ve&&((i=u=At)&&(u=vB(u,s.pendingProps,Ar),u!==null?(s.stateNode=u,yn=s,At=null,i=!0):i=!1),i||gi(s)),null;case 13:return b_(i,s,u);case 4:return ye(s,s.stateNode.containerInfo),h=s.pendingProps,i===null?s.child=vo(s,null,h,u):bn(i,s,h,u),s.child;case 11:return u_(i,s,s.type,s.pendingProps,u);case 7:return bn(i,s,s.pendingProps,u),s.child;case 8:return bn(i,s,s.pendingProps.children,u),s.child;case 12:return bn(i,s,s.pendingProps.children,u),s.child;case 10:return h=s.pendingProps,yi(s,s.type,h.value),bn(i,s,h.children,u),s.child;case 9:return v=s.type._context,h=s.pendingProps.children,po(s),v=vn(v),h=h(v),s.flags|=1,bn(i,s,h,u),s.child;case 14:return f_(i,s,s.type,s.pendingProps,u);case 15:return d_(i,s,s.type,s.pendingProps,u);case 19:return S_(i,s,u);case 31:return L7(i,s,u);case 22:return h_(i,s,u,s.pendingProps);case 24:return po(s),h=vn(Ft),i===null?(v=Pg(),v===null&&(v=gt,x=Cg(),v.pooledCache=x,x.refCount++,x!==null&&(v.pooledCacheLanes|=u),v=x),s.memoizedState={parent:h,cache:v},Dg(s),yi(s,Ft,v)):((i.lanes&u)!==0&&(Ng(i,s),Ec(s,null,null,u),jc()),v=i.memoizedState,x=s.memoizedState,v.parent!==h?(v={parent:h,cache:h},s.memoizedState=v,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=v),yi(s,Ft,h)):(h=x.cache,yi(s,Ft,h),h!==v.cache&&Eg(s,[Ft],u,!0))),bn(i,s,s.pendingProps.children,u),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function Ra(i){i.flags|=4}function py(i,s,u,h,v){if((s=(i.mode&32)!==0)&&(s=!1),s){if(i.flags|=16777216,(v&335544128)===v)if(i.stateNode.complete)i.flags|=8192;else if(Y_())i.flags|=8192;else throw yo=od,Mg}else i.flags&=-16777217}function A_(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Ij(s))if(Y_())i.flags|=8192;else throw yo=od,Mg}function Ad(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?at():536870912,i.lanes|=s,Is|=s)}function Nc(i,s){if(!Ve)switch(i.tailMode){case"hidden":s=i.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function Ot(i){var s=i.alternate!==null&&i.alternate.child===i.child,u=0,h=0;if(s)for(var v=i.child;v!==null;)u|=v.lanes|v.childLanes,h|=v.subtreeFlags&65011712,h|=v.flags&65011712,v.return=i,v=v.sibling;else for(v=i.child;v!==null;)u|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=i,v=v.sibling;return i.subtreeFlags|=h,i.childLanes=u,s}function F7(i,s,u){var h=s.pendingProps;switch(wg(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(s),null;case 1:return Ot(s),null;case 3:return u=s.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),Pa(Ft),ue(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(_s(s)?Ra(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Og())),Ot(s),null;case 26:var v=s.type,x=s.memoizedState;return i===null?(Ra(s),x!==null?(Ot(s),A_(s,x)):(Ot(s),py(s,v,null,h,u))):x?x!==i.memoizedState?(Ra(s),Ot(s),A_(s,x)):(Ot(s),s.flags&=-16777217):(i=i.memoizedProps,i!==h&&Ra(s),Ot(s),py(s,v,i,h,u)),null;case 27:if(we(s),u=he.current,v=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==h&&Ra(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return Ot(s),null}i=Z.current,_s(s)?n2(s):(i=Pj(v,h,u),s.stateNode=i,Ra(s))}return Ot(s),null;case 5:if(we(s),v=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==h&&Ra(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return Ot(s),null}if(x=Z.current,_s(s))n2(s);else{var M=Id(he.current);switch(x){case 1:x=M.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:x=M.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":x=M.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":x=M.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":x=M.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;
vendor: 23,516 bytes, line 48
48case"select":x=typeof h.is=="string"?M.createElement("select",{is:h.is}):M.createElement("select"),h.multiple?x.multiple=!0:h.size&&(x.size=h.size);break;default:x=typeof h.is=="string"?M.createElement(v,{is:h.is}):M.createElement(v)}}x[gn]=s,x[zn]=h;e:for(M=s.child;M!==null;){if(M.tag===5||M.tag===6)x.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===s)break e;for(;M.sibling===null;){if(M.return===null||M.return===s)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}s.stateNode=x;e:switch(xn(x,v,h),v){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&Ra(s)}}return Ot(s),py(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,u),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==h&&Ra(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(r(166));if(i=he.current,_s(s)){if(i=s.stateNode,u=s.memoizedProps,h=null,v=yn,v!==null)switch(v.tag){case 27:case 5:h=v.memoizedProps}i[gn]=s,i=!!(i.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||bj(i.nodeValue,u)),i||gi(s,!0)}else i=Id(i).createTextNode(h),i[gn]=s,s.stateNode=i}return Ot(s),null;case 31:if(u=s.memoizedState,i===null||i.memoizedState!==null){if(h=_s(s),u!==null){if(i===null){if(!h)throw Error(r(318));if(i=s.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[gn]=s}else fo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Ot(s),i=!1}else u=Og(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),i=!0;if(!i)return s.flags&256?(Xn(s),s):(Xn(s),null);if((s.flags&128)!==0)throw Error(r(558))}return Ot(s),null;case 13:if(h=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(v=_s(s),h!==null&&h.dehydrated!==null){if(i===null){if(!v)throw Error(r(318));if(v=s.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[gn]=s}else fo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Ot(s),v=!1}else v=Og(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=v),v=!0;if(!v)return s.flags&256?(Xn(s),s):(Xn(s),null)}return Xn(s),(s.flags&128)!==0?(s.lanes=u,s):(u=h!==null,i=i!==null&&i.memoizedState!==null,u&&(h=s.child,v=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(v=h.alternate.memoizedState.cachePool.pool),x=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(x=h.memoizedState.cachePool.pool),x!==v&&(h.flags|=2048)),u!==i&&u&&(s.child.flags|=8192),Ad(s,s.updateQueue),Ot(s),null);case 4:return ue(),i===null&&zy(s.stateNode.containerInfo),Ot(s),null;case 10:return Pa(s.type),Ot(s),null;case 19:if(V(It),h=s.memoizedState,h===null)return Ot(s),null;if(v=(s.flags&128)!==0,x=h.rendering,x===null)if(v)Nc(h,!1);else{if(Nt!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(x=ud(i),x!==null){for(s.flags|=128,Nc(h,!1),i=x.updateQueue,s.updateQueue=i,Ad(s,i),s.subtreeFlags=0,i=u,u=s.child;u!==null;)XO(u,i),u=u.sibling;return Y(It,It.current&1|2),Ve&&Ca(s,h.treeForkCount),s.child}i=i.sibling}h.tail!==null&&Bt()>Cd&&(s.flags|=128,v=!0,Nc(h,!1),s.lanes=4194304)}else{if(!v)if(i=ud(x),i!==null){if(s.flags|=128,v=!0,i=i.updateQueue,s.updateQueue=i,Ad(s,i),Nc(h,!0),h.tail===null&&h.tailMode==="hidden"&&!x.alternate&&!Ve)return Ot(s),null}else 2*Bt()-h.renderingStartTime>Cd&&u!==536870912&&(s.flags|=128,v=!0,Nc(h,!1),s.lanes=4194304);h.isBackwards?(x.sibling=s.child,s.child=x):(i=h.last,i!==null?i.sibling=x:s.child=x,h.last=x)}return h.tail!==null?(i=h.tail,h.rendering=i,h.tail=i.sibling,h.renderingStartTime=Bt(),i.sibling=null,u=It.current,Y(It,v?u&1|2:u&1),Ve&&Ca(s,h.treeForkCount),i):(Ot(s),null);case 22:case 23:return Xn(s),Bg(),h=s.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(u&536870912)!==0&&(s.flags&128)===0&&(Ot(s),s.subtreeFlags&6&&(s.flags|=8192)):Ot(s),u=s.updateQueue,u!==null&&Ad(s,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==u&&(s.flags|=2048),i!==null&&V(mo),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),Pa(Ft),Ot(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function U7(i,s){switch(wg(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Pa(Ft),ue(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return we(s),null;case 31:if(s.memoizedState!==null){if(Xn(s),s.alternate===null)throw Error(r(340));fo()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 13:if(Xn(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));fo()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return V(It),null;case 4:return ue(),null;case 10:return Pa(s.type),null;case 22:case 23:return Xn(s),Bg(),i!==null&&V(mo),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return Pa(Ft),null;case 25:return null;default:return null}}function O_(i,s){switch(wg(s),s.tag){case 3:Pa(Ft),ue();break;case 26:case 27:case 5:we(s);break;case 4:ue();break;case 31:s.memoizedState!==null&&Xn(s);break;case 13:Xn(s);break;case 19:V(It);break;case 10:Pa(s.type);break;case 22:case 23:Xn(s),Bg(),i!==null&&V(mo);break;case 24:Pa(Ft)}}function Rc(i,s){try{var u=s.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var v=h.next;u=v;do{if((u.tag&i)===i){h=void 0;var x=u.create,M=u.inst;h=x(),M.destroy=h}u=u.next}while(u!==v)}}catch(k){ut(s,s.return,k)}}function Ai(i,s,u){try{var h=s.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var x=v.next;h=x;do{if((h.tag&i)===i){var M=h.inst,k=M.destroy;if(k!==void 0){M.destroy=void 0,v=s;var G=u,te=k;try{te()}catch(ie){ut(v,G,ie)}}}h=h.next}while(h!==x)}}catch(ie){ut(s,s.return,ie)}}function __(i){var s=i.updateQueue;if(s!==null){var u=i.stateNode;try{m2(s,u)}catch(h){ut(i,i.return,h)}}}function j_(i,s,u){u.props=xo(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(h){ut(i,s,h)}}function kc(i,s){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof u=="function"?i.refCleanup=u(h):u.current=h}}catch(v){ut(i,s,v)}}function ra(i,s){var u=i.ref,h=i.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(v){ut(i,s,v)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){ut(i,s,v)}else u.current=null}function E_(i){var s=i.type,u=i.memoizedProps,h=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":u.autoFocus&&h.focus();break e;case"img":u.src?h.src=u.src:u.srcSet&&(h.srcset=u.srcSet)}}catch(v){ut(i,i.return,v)}}function my(i,s,u){try{var h=i.stateNode;fB(h,i.type,u,s),h[zn]=s}catch(v){ut(i,i.return,v)}}function C_(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Pi(i.type)||i.tag===4}function gy(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||C_(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Pi(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function yy(i,s,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,s):(s=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,s.appendChild(i),u=u._reactRootContainer,u!=null||s.onclick!==null||(s.onclick=_a));else if(h!==4&&(h===27&&Pi(i.type)&&(u=i.stateNode,s=null),i=i.child,i!==null))for(yy(i,s,u),i=i.sibling;i!==null;)yy(i,s,u),i=i.sibling}function Od(i,s,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?u.insertBefore(i,s):u.appendChild(i);else if(h!==4&&(h===27&&Pi(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(Od(i,s,u),i=i.sibling;i!==null;)Od(i,s,u),i=i.sibling}function T_(i){var s=i.stateNode,u=i.memoizedProps;try{for(var h=i.type,v=s.attributes;v.length;)s.removeAttributeNode(v[0]);xn(s,h,u),s[gn]=i,s[zn]=u}catch(x){ut(i,i.return,x)}}var ka=!1,Wt=!1,vy=!1,P_=typeof WeakSet=="function"?WeakSet:Set,ln=null;function H7(i,s){if(i=i.containerInfo,$y=Wd,i=FO(i),fg(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var v=h.anchorOffset,x=h.focusNode;h=h.focusOffset;try{u.nodeType,x.nodeType}catch{u=null;break e}var M=0,k=-1,G=-1,te=0,ie=0,fe=i,ne=null;t:for(;;){for(var re;fe!==u||v!==0&&fe.nodeType!==3||(k=M+v),fe!==x||h!==0&&fe.nodeType!==3||(G=M+h),fe.nodeType===3&&(M+=fe.nodeValue.length),(re=fe.firstChild)!==null;)ne=fe,fe=re;for(;;){if(fe===i)break t;if(ne===u&&++te===v&&(k=M),ne===x&&++ie===h&&(G=M),(re=fe.nextSibling)!==null)break;fe=ne,ne=fe.parentNode}fe=re}u=k===-1||G===-1?null:{start:k,end:G}}else u=null}u=u||{start:0,end:0}}else u=null;for(Ly={focusedElem:i,selectionRange:u},Wd=!1,ln=s;ln!==null;)if(s=ln,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,ln=i;else for(;ln!==null;){switch(s=ln,x=s.alternate,i=s.flags,s.tag){case 0:if((i&4)!==0&&(i=s.updateQueue,i=i!==null?i.events:null,i!==null))for(u=0;u<i.length;u++)v=i[u],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&x!==null){i=void 0,u=s,v=x.memoizedProps,x=x.memoizedState,h=u.stateNode;try{var be=xo(u.type,v);i=h.getSnapshotBeforeUpdate(be,x),h.__reactInternalSnapshotBeforeUpdate=i}catch(Te){ut(u,u.return,Te)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,u=i.nodeType,u===9)Uy(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Uy(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=s.sibling,i!==null){i.return=s.return,ln=i;break}ln=s.return}}function M_(i,s,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:Ba(i,u),h&4&&Rc(5,u);break;case 1:if(Ba(i,u),h&4)if(i=u.stateNode,s===null)try{i.componentDidMount()}catch(M){ut(u,u.return,M)}else{var v=xo(u.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(v,s,i.__reactInternalSnapshotBeforeUpdate)}catch(M){ut(u,u.return,M)}}h&64&&__(u),h&512&&kc(u,u.return);break;case 3:if(Ba(i,u),h&64&&(i=u.updateQueue,i!==null)){if(s=null,u.child!==null)switch(u.child.tag){case 27:case 5:s=u.child.stateNode;break;case 1:s=u.child.stateNode}try{m2(i,s)}catch(M){ut(u,u.return,M)}}break;case 27:s===null&&h&4&&T_(u);case 26:case 5:Ba(i,u),s===null&&h&4&&E_(u),h&512&&kc(u,u.return);break;case 12:Ba(i,u);break;case 31:Ba(i,u),h&4&&R_(i,u);break;case 13:Ba(i,u),h&4&&k_(i,u),h&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=J7.bind(null,u),bB(i,u))));break;case 22:if(h=u.memoizedState!==null||ka,!h){s=s!==null&&s.memoizedState!==null||Wt,v=ka;var x=Wt;ka=h,(Wt=s)&&!x?Ia(i,u,(u.subtreeFlags&8772)!==0):Ba(i,u),ka=v,Wt=x}break;case 30:break;default:Ba(i,u)}}function D_(i){var s=i.alternate;s!==null&&(i.alternate=null,D_(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&Km(s)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Pt=null,In=!1;function za(i,s,u){for(u=u.child;u!==null;)N_(i,s,u),u=u.sibling}function N_(i,s,u){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(Aa,u)}catch{}switch(u.tag){case 26:Wt||ra(u,s),za(i,s,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Wt||ra(u,s);var h=Pt,v=In;Pi(u.type)&&(Pt=u.stateNode,In=!1),za(i,s,u),Hc(u.stateNode),Pt=h,In=v;break;case 5:Wt||ra(u,s);case 6:if(h=Pt,v=In,Pt=null,za(i,s,u),Pt=h,In=v,Pt!==null)if(In)try{(Pt.nodeType===9?Pt.body:Pt.nodeName==="HTML"?Pt.ownerDocument.body:Pt).removeChild(u.stateNode)}catch(x){ut(u,s,x)}else try{Pt.removeChild(u.stateNode)}catch(x){ut(u,s,x)}break;case 18:Pt!==null&&(In?(i=Pt,_j(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),Vs(i)):_j(Pt,u.stateNode));break;case 4:h=Pt,v=In,Pt=u.stateNode.containerInfo,In=!0,za(i,s,u),Pt=h,In=v;break;case 0:case 11:case 14:case 15:Ai(2,u,s),Wt||Ai(4,u,s),za(i,s,u);break;case 1:Wt||(ra(u,s),h=u.stateNode,typeof h.componentWillUnmount=="function"&&j_(u,s,h)),za(i,s,u);break;case 21:za(i,s,u);break;case 22:Wt=(h=Wt)||u.memoizedState!==null,za(i,s,u),Wt=h;break;default:za(i,s,u)}}function R_(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{Vs(i)}catch(u){ut(s,s.return,u)}}}function k_(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Vs(i)}catch(u){ut(s,s.return,u)}}function W7(i){switch(i.tag){case 31:case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new P_),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new P_),s;default:throw Error(r(435,i.tag))}}function _d(i,s){var u=W7(i);s.forEach(function(h){if(!u.has(h)){u.add(h);var v=eB.bind(null,i,h);h.then(v,v)}})}function $n(i,s){var u=s.deletions;if(u!==null)for(var h=0;h<u.length;h++){var v=u[h],x=i,M=s,k=M;e:for(;k!==null;){switch(k.tag){case 27:if(Pi(k.type)){Pt=k.stateNode,In=!1;break e}break;case 5:Pt=k.stateNode,In=!1;break e;case 3:case 4:Pt=k.stateNode.containerInfo,In=!0;break e}k=k.return}if(Pt===null)throw Error(r(160));N_(x,M,v),Pt=null,In=!1,x=v.alternate,x!==null&&(x.return=null),v.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)z_(s,i),s=s.sibling}var qr=null;function z_(i,s){var u=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:$n(s,i),Ln(i),h&4&&(Ai(3,i,i.return),Rc(3,i),Ai(5,i,i.return));break;case 1:$n(s,i),Ln(i),h&512&&(Wt||u===null||ra(u,u.return)),h&64&&ka&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var v=qr;if($n(s,i),Ln(i),h&512&&(Wt||u===null||ra(u,u.return)),h&4){var x=u!==null?u.memoizedState:null;if(h=i.memoizedState,u===null)if(h===null)if(i.stateNode===null){e:{h=i.type,u=i.memoizedProps,v=v.ownerDocument||v;t:switch(h){case"title":x=v.getElementsByTagName("title")[0],(!x||x[lc]||x[gn]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=v.createElement(h),v.head.insertBefore(x,v.querySelector("head > title"))),xn(x,h,u),x[gn]=i,sn(x),h=x;break e;case"link":var M=zj("link","href",v).get(h+(u.href||""));if(M){for(var k=0;k<M.length;k++)if(x=M[k],x.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&x.getAttribute("rel")===(u.rel==null?null:u.rel)&&x.getAttribute("title")===(u.title==null?null:u.title)&&x.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){M.splice(k,1);break t}}x=v.createElement(h),xn(x,h,u),v.head.appendChild(x);break;case"meta":if(M=zj("meta","content",v).get(h+(u.content||""))){for(k=0;k<M.length;k++)if(x=M[k],x.getAttribute("content")===(u.content==null?null:""+u.content)&&x.getAttribute("name")===(u.name==null?null:u.name)&&x.getAttribute("property")===(u.property==null?null:u.property)&&x.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&x.getAttribute("charset")===(u.charSet==null?null:u.charSet)){M.splice(k,1);break t}}x=v.createElement(h),xn(x,h,u),v.head.appendChild(x);break;default:throw Error(r(468,h))}x[gn]=i,sn(x),h=x}i.stateNode=h}else Bj(v,i.type,i.stateNode);else i.stateNode=kj(v,h,i.memoizedProps);else x!==h?(x===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):x.count--,h===null?Bj(v,i.type,i.stateNode):kj(v,h,i.memoizedProps)):h===null&&i.stateNode!==null&&my(i,i.memoizedProps,u.memoizedProps)}break;case 27:$n(s,i),Ln(i),h&512&&(Wt||u===null||ra(u,u.return)),u!==null&&h&4&&my(i,i.memoizedProps,u.memoizedProps);break;case 5:if($n(s,i),Ln(i),h&512&&(Wt||u===null||ra(u,u.return)),i.flags&32){v=i.stateNode;try{ms(v,"")}catch(be){ut(i,i.return,be)}}h&4&&i.stateNode!=null&&(v=i.memoizedProps,my(i,v,u!==null?u.memoizedProps:v)),h&1024&&(vy=!0);break;case 6:if($n(s,i),Ln(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,u=i.stateNode;try{u.nodeValue=h}catch(be){ut(i,i.return,be)}}break;case 3:if(qd=null,v=qr,qr=$d(s.containerInfo),$n(s,i),qr=v,Ln(i),h&4&&u!==null&&u.memoizedState.isDehydrated)try{Vs(s.containerInfo)}catch(be){ut(i,i.return,be)}vy&&(vy=!1,B_(i));break;case 4:h=qr,qr=$d(i.stateNode.containerInfo),$n(s,i),Ln(i),qr=h;break;case 12:$n(s,i),Ln(i);break;case 31:$n(s,i),Ln(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,_d(i,h)));break;case 13:$n(s,i),Ln(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Ed=Bt()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,_d(i,h)));break;case 22:v=i.memoizedState!==null;var G=u!==null&&u.memoizedState!==null,te=ka,ie=Wt;if(ka=te||v,Wt=ie||G,$n(s,i),Wt=ie,ka=te,Ln(i),h&8192)e:for(s=i.stateNode,s._visibility=v?s._visibility&-2:s._visibility|1,v&&(u===null||G||ka||Wt||So(i)),u=null,s=i;;){if(s.tag===5||s.tag===26){if(u===null){G=u=s;try{if(x=G.stateNode,v)M=x.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none";else{k=G.stateNode;var fe=G.memoizedProps.style,ne=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;k.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(be){ut(G,G.return,be)}}}else if(s.tag===6){if(u===null){G=s;try{G.stateNode.nodeValue=v?"":G.memoizedProps}catch(be){ut(G,G.return,be)}}}else if(s.tag===18){if(u===null){G=s;try{var re=G.stateNode;v?jj(re,!0):jj(G.stateNode,!1)}catch(be){ut(G,G.return,be)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;u===s&&(u=null),s=s.return}u===s&&(u=null),s.sibling.return=s.return,s=s.sibling}h&4&&(h=i.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,_d(i,u))));break;case 19:$n(s,i),Ln(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,_d(i,h)));break;case 30:break;case 21:break;default:$n(s,i),Ln(i)}}function Ln(i){var s=i.flags;if(s&2){try{for(var u,h=i.return;h!==null;){if(C_(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var v=u.stateNode,x=gy(i);Od(i,x,v);break;case 5:var M=u.stateNode;u.flags&32&&(ms(M,""),u.flags&=-33);var k=gy(i);Od(i,k,M);break;case 3:case 4:var G=u.stateNode.containerInfo,te=gy(i);yy(i,te,G);break;default:throw Error(r(161))}}catch(ie){ut(i,i.return,ie)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function B_(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;B_(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function Ba(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)M_(i,s.alternate,s),s=s.sibling}function So(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:Ai(4,s,s.return),So(s);break;case 1:ra(s,s.return);var u=s.stateNode;typeof u.componentWillUnmount=="function"&&j_(s,s.return,u),So(s);break;case 27:Hc(s.stateNode);case 26:case 5:ra(s,s.return),So(s);break;case 22:s.memoizedState===null&&So(s);break;case 30:So(s);break;default:So(s)}i=i.sibling}}function Ia(i,s,u){for(u=u&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var h=s.alternate,v=i,x=s,M=x.flags;switch(x.tag){case 0:case 11:case 15:Ia(v,x,u),Rc(4,x);break;case 1:if(Ia(v,x,u),h=x,v=h.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(te){ut(h,h.return,te)}if(h=x,v=h.updateQueue,v!==null){var k=h.stateNode;try{var G=v.shared.hiddenCallbacks;if(G!==null)for(v.shared.hiddenCallbacks=null,v=0;v<G.length;v++)p2(G[v],k)}catch(te){ut(h,h.return,te)}}u&&M&64&&__(x),kc(x,x.return);break;case 27:T_(x);case 26:case 5:Ia(v,x,u),u&&h===null&&M&4&&E_(x),kc(x,x.return);break;case 12:Ia(v,x,u);break;case 31:Ia(v,x,u),u&&M&4&&R_(v,x);break;case 13:Ia(v,x,u),u&&M&4&&k_(v,x);break;case 22:x.memoizedState===null&&Ia(v,x,u),kc(x,x.return);break;case 30:break;default:Ia(v,x,u)}s=s.sibling}}function by(i,s){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&Sc(u))}function xy(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Sc(i))}function Fr(i,s,u,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)I_(i,s,u,h),s=s.sibling}function I_(i,s,u,h){var v=s.flags;switch(s.tag){case 0:case 11:case 15:Fr(i,s,u,h),v&2048&&Rc(9,s);break;case 1:Fr(i,s,u,h);break;case 3:Fr(i,s,u,h),v&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Sc(i)));break;case 12:if(v&2048){Fr(i,s,u,h),i=s.stateNode;try{var x=s.memoizedProps,M=x.id,k=x.onPostCommit;typeof k=="function"&&k(M,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(G){ut(s,s.return,G)}}else Fr(i,s,u,h);break;case 31:Fr(i,s,u,h);break;case 13:Fr(i,s,u,h);break;case 23:break;case 22:x=s.stateNode,M=s.alternate,s.memoizedState!==null?x._visibility&2?Fr(i,s,u,h):zc(i,s):x._visibility&2?Fr(i,s,u,h):(x._visibility|=2,ks(i,s,u,h,(s.subtreeFlags&10256)!==0||!1)),v&2048&&by(M,s);break;case 24:Fr(i,s,u,h),v&2048&&xy(s.alternate,s);break;default:Fr(i,s,u,h)}}function ks(i,s,u,h,v){for(v=v&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var x=i,M=s,k=u,G=h,te=M.flags;switch(M.tag){case 0:case 11:case 15:ks(x,M,k,G,v),Rc(8,M);break;case 23:break;case 22:var ie=M.stateNode;M.memoizedState!==null?ie._visibility&2?ks(x,M,k,G,v):zc(x,M):(ie._visibility|=2,ks(x,M,k,G,v)),v&&te&2048&&by(M.alternate,M);break;case 24:ks(x,M,k,G,v),v&&te&2048&&xy(M.alternate,M);break;default:ks(x,M,k,G,v)}s=s.sibling}}function zc(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var u=i,h=s,v=h.flags;switch(h.tag){case 22:zc(u,h),v&2048&&by(h.alternate,h);break;case 24:zc(u,h),v&2048&&xy(h.alternate,h);break;default:zc(u,h)}s=s.sibling}}var Bc=8192;function zs(i,s,u){if(i.subtreeFlags&Bc)for(i=i.child;i!==null;)$_(i,s,u),i=i.sibling}function $_(i,s,u){switch(i.tag){case 26:zs(i,s,u),i.flags&Bc&&i.memoizedState!==null&&MB(u,qr,i.memoizedState,i.memoizedProps);break;case 5:zs(i,s,u);break;case 3:case 4:var h=qr;qr=$d(i.stateNode.containerInfo),zs(i,s,u),qr=h;break;case 22:i.memoizedState===null&&(h=i.alternate,h!==null&&h.memoizedState!==null?(h=Bc,Bc=16777216,zs(i,s,u),Bc=h):zs(i,s,u));break;default:zs(i,s,u)}}function L_(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function Ic(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var h=s[u];ln=h,F_(h,i)}L_(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)q_(i),i=i.sibling}function q_(i){switch(i.tag){case 0:case 11:case 15:Ic(i),i.flags&2048&&Ai(9,i,i.return);break;case 3:Ic(i);break;case 12:Ic(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&2&&(i.return===null||i.return.tag!==13)?(s._visibility&=-3,jd(i)):Ic(i);break;default:Ic(i)}}
vendor: 4,160 bytes, line 48
48function jd(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var h=s[u];ln=h,F_(h,i)}L_(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:Ai(8,s,s.return),jd(s);break;case 22:u=s.stateNode,u._visibility&2&&(u._visibility&=-3,jd(s));break;default:jd(s)}i=i.sibling}}function F_(i,s){for(;ln!==null;){var u=ln;switch(u.tag){case 0:case 11:case 15:Ai(8,u,s);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var h=u.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Sc(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,ln=h;else e:for(u=i;ln!==null;){h=ln;var v=h.sibling,x=h.return;if(D_(h),h===u){ln=null;break e}if(v!==null){v.return=x,ln=v;break e}ln=x}}}var V7={getCacheForType:function(i){var s=vn(Ft),u=s.data.get(i);return u===void 0&&(u=i(),s.data.set(i,u)),u},cacheSignal:function(){return vn(Ft).controller.signal}},G7=typeof WeakMap=="function"?WeakMap:Map,rt=0,gt=null,qe=null,He=0,ct=0,Zn=null,Oi=!1,Bs=!1,Sy=!1,$a=0,Nt=0,_i=0,wo=0,wy=0,Jn=0,Is=0,$c=null,qn=null,Ay=!1,Ed=0,U_=0,Cd=1/0,Td=null,ji=null,Xt=0,Ei=null,$s=null,La=0,Oy=0,_y=null,H_=null,Lc=0,jy=null;function er(){return(rt&2)!==0&&He!==0?He&-He:R.T!==null?Dy():mr()}function W_(){if(Jn===0)if((He&536870912)===0||Ve){var i=fi;fi<<=1,(fi&3932160)===0&&(fi=262144),Jn=i}else Jn=536870912;return i=Qn.current,i!==null&&(i.flags|=32),Jn}function Fn(i,s,u){(i===gt&&(ct===2||ct===9)||i.cancelPendingCommit!==null)&&(Ls(i,0),Ci(i,He,Jn,!1)),it(i,u),((rt&2)===0||i!==gt)&&(i===gt&&((rt&2)===0&&(wo|=u),Nt===4&&Ci(i,He,Jn,!1)),aa(i))}function V_(i,s,u){if((rt&6)!==0)throw Error(r(327));var h=!u&&(s&127)===0&&(s&i.expiredLanes)===0||Ye(i,s),v=h?Q7(i,s):Cy(i,s,!0),x=h;do{if(v===0){Bs&&!h&&Ci(i,s,0,!1);break}else{if(u=i.current.alternate,x&&!K7(u)){v=Cy(i,s,!1),x=!1;continue}if(v===2){if(x=s,i.errorRecoveryDisabledLanes&x)var M=0;else M=i.pendingLanes&-536870913,M=M!==0?M:M&536870912?536870912:0;if(M!==0){s=M;e:{var k=i;v=$c;var G=k.current.memoizedState.isDehydrated;if(G&&(Ls(k,M).flags|=256),M=Cy(k,M,!1),M!==2){if(Sy&&!G){k.errorRecoveryDisabledLanes|=x,wo|=x,v=4;break e}x=qn,qn=v,x!==null&&(qn===null?qn=x:qn.push.apply(qn,x))}v=M}if(x=!1,v!==2)continue}}if(v===1){Ls(i,0),Ci(i,s,0,!0);break}e:{switch(h=i,x=v,x){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Ci(h,s,Jn,!Oi);break e;case 2:qn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(v=Ed+300-Bt(),10<v)){if(Ci(h,s,Jn,!Oi),Oe(h,0,!0)!==0)break e;La=s,h.timeoutHandle=Aj(G_.bind(null,h,u,qn,Td,Ay,s,Jn,wo,Is,Oi,x,"Throttled",-0,0),v);break e}G_(h,u,qn,Td,Ay,s,Jn,wo,Is,Oi,x,null,-0,0)}}break}while(!0);aa(i)}function G_(i,s,u,h,v,x,M,k,G,te,ie,fe,ne,re){if(i.timeoutHandle=-1,fe=s.subtreeFlags,fe&8192||(fe&16785408)===16785408){fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_a},$_(s,x,fe);var be=(x&62914560)===x?Ed-Bt():(x&4194048)===x?U_-Bt():0;if(be=DB(fe,be),be!==null){La=x,i.cancelPendingCommit=be(tj.bind(null,i,s,x,u,h,v,M,k,G,ie,fe,null,ne,re)),Ci(i,x,M,!te);return}}tj(i,s,x,u,h,v,M,k,G)}function K7(i){for(var s=i;;){var u=s.tag;if((u===0||u===11||u===15)&&s.flags&16384&&(u=s.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var h=0;h<u.length;h++){var v=u[h],x=v.getSnapshot;v=v.value;try{if(!Kn(x(),v))return!1}catch{return!1}}if(u=s.child,s.subtreeFlags&16384&&u!==null)u.return=s,s=u;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ci(i,s,u,h){s&=~wy,s&=~wo,i.suspendedLanes|=s,i.pingedLanes&=~s,h&&(i.warmLanes|=s),h=i.expirationTimes;for(var v=s;0<v;){var x=31-Yt(v),M=1<<x;h[x]=-1,v&=~M}u!==0&&An(i,u,s)}function Pd(){return(rt&6)===0?(qc(0),!1):!0}function Ey(){if(qe!==null){if(ct===0)var i=qe.return;else i=qe,Ta=ho=null,Ug(i),Ps=null,Ac=0,i=qe;for(;i!==null;)O_(i.alternate,i),i=i.return;qe=null}}function Ls(i,s){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,pB(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),La=0,Ey(),gt
vendor: 4,713 bytes, line 48
48=i,qe=u=Ea(i.current,null),He=s,ct=0,Zn=null,Oi=!1,Bs=Ye(i,s),Sy=!1,Is=Jn=wy=wo=_i=Nt=0,qn=$c=null,Ay=!1,(s&8)!==0&&(s|=s&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=s;0<h;){var v=31-Yt(h),x=1<<v;s|=i[v],h&=~x}return $a=s,Xf(),u}function K_(i,s){ke=null,R.H=Mc,s===Ts||s===id?(s=u2(),ct=3):s===Mg?(s=u2(),ct=4):ct=s===iy?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Zn=s,qe===null&&(Nt=1,bd(i,xr(s,i.current)))}function Y_(){var i=Qn.current;return i===null?!0:(He&4194048)===He?Or===null:(He&62914560)===He||(He&536870912)!==0?i===Or:!1}function Q_(){var i=R.H;return R.H=Mc,i===null?Mc:i}function X_(){var i=R.A;return R.A=V7,i}function Md(){Nt=4,Oi||(He&4194048)!==He&&Qn.current!==null||(Bs=!0),(_i&134217727)===0&&(wo&134217727)===0||gt===null||Ci(gt,He,Jn,!1)}function Cy(i,s,u){var h=rt;rt|=2;var v=Q_(),x=X_();(gt!==i||He!==s)&&(Td=null,Ls(i,s)),s=!1;var M=Nt;e:do try{if(ct!==0&&qe!==null){var k=qe,G=Zn;switch(ct){case 8:Ey(),M=6;break e;case 3:case 2:case 9:case 6:Qn.current===null&&(s=!0);var te=ct;if(ct=0,Zn=null,qs(i,k,G,te),u&&Bs){M=0;break e}break;default:te=ct,ct=0,Zn=null,qs(i,k,G,te)}}Y7(),M=Nt;break}catch(ie){K_(i,ie)}while(!0);return s&&i.shellSuspendCounter++,Ta=ho=null,rt=h,R.H=v,R.A=x,qe===null&&(gt=null,He=0,Xf()),M}function Y7(){for(;qe!==null;)Z_(qe)}function Q7(i,s){var u=rt;rt|=2;var h=Q_(),v=X_();gt!==i||He!==s?(Td=null,Cd=Bt()+500,Ls(i,s)):Bs=Ye(i,s);e:do try{if(ct!==0&&qe!==null){s=qe;var x=Zn;t:switch(ct){case 1:ct=0,Zn=null,qs(i,s,x,1);break;case 2:case 9:if(l2(x)){ct=0,Zn=null,J_(s);break}s=function(){ct!==2&&ct!==9||gt!==i||(ct=7),aa(i)},x.then(s,s);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:l2(x)?(ct=0,Zn=null,J_(s)):(ct=0,Zn=null,qs(i,s,x,7));break;case 5:var M=null;switch(qe.tag){case 26:M=qe.memoizedState;case 5:case 27:var k=qe;if(M?Ij(M):k.stateNode.complete){ct=0,Zn=null;var G=k.sibling;if(G!==null)qe=G;else{var te=k.return;te!==null?(qe=te,Dd(te)):qe=null}break t}}ct=0,Zn=null,qs(i,s,x,5);break;case 6:ct=0,Zn=null,qs(i,s,x,6);break;case 8:Ey(),Nt=6;break e;default:throw Error(r(462))}}X7();break}catch(ie){K_(i,ie)}while(!0);return Ta=ho=null,R.H=h,R.A=v,rt=u,qe!==null?0:(gt=null,He=0,Xf(),Nt)}function X7(){for(;qe!==null&&!ft();)Z_(qe)}function Z_(i){var s=w_(i.alternate,i,$a);i.memoizedProps=i.pendingProps,s===null?Dd(i):qe=s}function J_(i){var s=i,u=s.alternate;switch(s.tag){case 15:case 0:s=g_(u,s,s.pendingProps,s.type,void 0,He);break;case 11:s=g_(u,s,s.pendingProps,s.type.render,s.ref,He);break;case 5:Ug(s);default:O_(u,s),s=qe=XO(s,$a),s=w_(u,s,$a)}i.memoizedProps=i.pendingProps,s===null?Dd(i):qe=s}function qs(i,s,u,h){Ta=ho=null,Ug(s),Ps=null,Ac=0;var v=s.return;try{if($7(i,v,s,u,He)){Nt=1,bd(i,xr(u,i.current)),qe=null;return}}catch(x){if(v!==null)throw qe=v,x;Nt=1,bd(i,xr(u,i.current)),qe=null;return}s.flags&32768?(Ve||h===1?i=!0:Bs||(He&536870912)!==0?i=!1:(Oi=i=!0,(h===2||h===9||h===3||h===6)&&(h=Qn.current,h!==null&&h.tag===13&&(h.flags|=16384))),ej(s,i)):Dd(s)}function Dd(i){var s=i;do{if((s.flags&32768)!==0){ej(s,Oi);return}i=s.return;var u=F7(s.alternate,s,$a);if(u!==null){qe=u;return}if(s=s.sibling,s!==null){qe=s;return}qe=s=i}while(s!==null);Nt===0&&(Nt=5)}function ej(i,s){do{var u=U7(i.alternate,i);if(u!==null){u.flags&=32767,qe=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!s&&(i=i.sibling,i!==null)){qe=i;return}qe=i=u}while(i!==null);Nt=6,qe=null}function tj(i,s,u,h,v,x,M,k,G){i.cancelPendingCommit=null;do Nd();while(Xt!==0);if((rt&6)!==0)throw Error(r(327));if(s!==null){if(s===i.current)throw Error(r(177));if(x=s.lanes|s.childLanes,x|=gg,Xe(i,u,x,M,k,G),i===gt&&(qe=gt=null,He=0),$s=s,Ei=i,La=u,Oy=x,_y=v,H_=h,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,tB(kn,function(){return oj(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||h){h=R.T,R.T=null,v=F.p,F.p=2,M=rt,rt|=4;try{H7(i,s,u)}finally{rt=M,F.p=v,R.T=h}}Xt=1,nj(),rj(),aj()}}function nj(){if(Xt===1){Xt=0;var i=Ei,s=$s,u=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||u){u=R.T,R.T=null;var h=F.p;F.p=2;var v=rt;rt|=4;try{z_(s,i);var x=Ly,M=FO(i.containerInfo),k=x.focusedElem,G=x.selectionRange;if(M!==k&&k&&k.ownerDocument&&qO(k.ownerDocument.documentElement,k)){if(G!==null&&fg(k)){var te=G.start,ie=G.end;if(ie===void 0&&(ie=te),"selectionStart"in k)k.selectionStart=te,k.selectionEnd=Math.min(ie,k.value.length);else{var fe=k.ownerDocument||document,ne=fe&&fe.defaultView||window;if(ne.getSelection){var re=ne.getSelection(),be=k.textContent.length,Te=Math.min(G.start,be),pt=G.end===void 0?Te:Math.min(G.end,be);!re.extend&&Te>pt&&(M=pt,pt=Te,Te=M);
vendor: 17,175 bytes, lines 48-49
48var X=LO(k,Te),Q=LO(k,pt);if(X&&Q&&(re.rangeCount!==1||re.anchorNode!==X.node||re.anchorOffset!==X.offset||re.focusNode!==Q.node||re.focusOffset!==Q.offset)){var ee=fe.createRange();ee.setStart(X.node,X.offset),re.removeAllRanges(),Te>pt?(re.addRange(ee),re.extend(Q.node,Q.offset)):(ee.setEnd(Q.node,Q.offset),re.addRange(ee))}}}}for(fe=[],re=k;re=re.parentNode;)re.nodeType===1&&fe.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<fe.length;k++){var le=fe[k];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}Wd=!!$y,Ly=$y=null}finally{rt=v,F.p=h,R.T=u}}i.current=s,Xt=2}}function rj(){if(Xt===2){Xt=0;var i=Ei,s=$s,u=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||u){u=R.T,R.T=null;var h=F.p;F.p=2;var v=rt;rt|=4;try{M_(i,s.alternate,s)}finally{rt=v,F.p=h,R.T=u}}Xt=3}}function aj(){if(Xt===4||Xt===3){Xt=0,Cn();var i=Ei,s=$s,u=La,h=H_;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Xt=5:(Xt=0,$s=Ei=null,ij(i,i.pendingLanes));var v=i.pendingLanes;if(v===0&&(ji=null),mn(u),s=s.stateNode,pn&&typeof pn.onCommitFiberRoot=="function")try{pn.onCommitFiberRoot(Aa,s,void 0,(s.current.flags&128)===128)}catch{}if(h!==null){s=R.T,v=F.p,F.p=2,R.T=null;try{for(var x=i.onRecoverableError,M=0;M<h.length;M++){var k=h[M];x(k.value,{componentStack:k.stack})}}finally{R.T=s,F.p=v}}(La&3)!==0&&Nd(),aa(i),v=i.pendingLanes,(u&261930)!==0&&(v&42)!==0?i===jy?Lc++:(Lc=0,jy=i):Lc=0,qc(0)}}function ij(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,Sc(s)))}function Nd(){return nj(),rj(),aj(),oj()}function oj(){if(Xt!==5)return!1;var i=Ei,s=Oy;Oy=0;var u=mn(La),h=R.T,v=F.p;try{F.p=32>u?32:u,R.T=null,u=_y,_y=null;var x=Ei,M=La;if(Xt=0,$s=Ei=null,La=0,(rt&6)!==0)throw Error(r(331));var k=rt;if(rt|=4,q_(x.current),I_(x,x.current,M,u),rt=k,qc(0,!1),pn&&typeof pn.onPostCommitFiberRoot=="function")try{pn.onPostCommitFiberRoot(Aa,x)}catch{}return!0}finally{F.p=v,R.T=h,ij(i,s)}}function sj(i,s,u){s=xr(u,s),s=ay(i.stateNode,s,2),i=xi(i,s,2),i!==null&&(it(i,2),aa(i))}function ut(i,s,u){if(i.tag===3)sj(i,i,u);else for(;s!==null;){if(s.tag===3){sj(s,i,u);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(ji===null||!ji.has(h))){i=xr(u,i),u=l_(2),h=xi(s,u,2),h!==null&&(c_(u,h,s,i),it(h,2),aa(h));break}}s=s.return}}function Ty(i,s,u){var h=i.pingCache;if(h===null){h=i.pingCache=new G7;var v=new Set;h.set(s,v)}else v=h.get(s),v===void 0&&(v=new Set,h.set(s,v));v.has(u)||(Sy=!0,v.add(u),i=Z7.bind(null,i,s,u),s.then(i,i))}function Z7(i,s,u){var h=i.pingCache;h!==null&&h.delete(s),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,gt===i&&(He&u)===u&&(Nt===4||Nt===3&&(He&62914560)===He&&300>Bt()-Ed?(rt&2)===0&&Ls(i,0):wy|=u,Is===He&&(Is=0)),aa(i)}function lj(i,s){s===0&&(s=at()),i=co(i,s),i!==null&&(it(i,s),aa(i))}function J7(i){var s=i.memoizedState,u=0;s!==null&&(u=s.retryLane),lj(i,u)}function eB(i,s){var u=0;switch(i.tag){case 31:case 13:var h=i.stateNode,v=i.memoizedState;v!==null&&(u=v.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(s),lj(i,u)}function tB(i,s){return Kt(i,s)}var Rd=null,Fs=null,Py=!1,kd=!1,My=!1,Ti=0;function aa(i){i!==Fs&&i.next===null&&(Fs===null?Rd=Fs=i:Fs=Fs.next=i),kd=!0,Py||(Py=!0,rB())}function qc(i,s){if(!My&&kd){My=!0;do for(var u=!1,h=Rd;h!==null;){if(i!==0){var v=h.pendingLanes;if(v===0)var x=0;else{var M=h.suspendedLanes,k=h.pingedLanes;x=(1<<31-Yt(42|i)+1)-1,x&=v&~(M&~k),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(u=!0,dj(h,x))}else x=He,x=Oe(h,h===gt?x:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(x&3)===0||Ye(h,x)||(u=!0,dj(h,x));h=h.next}while(u);My=!1}}function nB(){cj()}function cj(){kd=Py=!1;var i=0;Ti!==0&&hB()&&(i=Ti);for(var s=Bt(),u=null,h=Rd;h!==null;){var v=h.next,x=uj(h,s);x===0?(h.next=null,u===null?Rd=v:u.next=v,v===null&&(Fs=u)):(u=h,(i!==0||(x&3)!==0)&&(kd=!0)),h=v}Xt!==0&&Xt!==5||qc(i),Ti!==0&&(Ti=0)}function uj(i,s){for(var u=i.suspendedLanes,h=i.pingedLanes,v=i.expirationTimes,x=i.pendingLanes&-62914561;0<x;){var M=31-Yt(x),k=1<<M,G=v[M];G===-1?((k&u)===0||(k&h)!==0)&&(v[M]=nt(k,s)):G<=s&&(i.expiredLanes|=k),x&=~k}if(s=gt,u=He,u=Oe(i,i===s?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,u===0||i===s&&(ct===2||ct===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&on(h),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||Ye(i,u)){if(s=u&-u,s===i.callbackPriority)return s;switch(h!==null&&on(h),mn(u)){case 2:case 8:u=Br;break;case 32:u=kn;break;case 268435456:u=dr;break;default:u=kn}return h=fj.bind(null,i),u=Kt(u,h),i.callbackPriority=s,i.callbackNode=u,s}return h!==null&&h!==null&&on(h),i.callbackPriority=2,i.callbackNode=null,2}function fj(i,s){if(Xt!==0&&Xt!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(Nd()&&i.callbackNode!==u)return null;var h=He;return h=Oe(i,i===gt?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(V_(i,h,s),uj(i,Bt()),i.callbackNode!=null&&i.callbackNode===u?fj.bind(null,i):null)}function dj(i,s){if(Nd())return null;V_(i,s,!0)}function rB(){mB(function(){(rt&6)!==0?Kt(wa,nB):cj()})}function Dy(){if(Ti===0){var i=Es;i===0&&(i=ui,ui<<=1,(ui&261888)===0&&(ui=256)),Ti=i}return Ti}function hj(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Uf(""+i)}function pj(i,s){var u=s.ownerDocument.createElement("input");return u.name=s.name,u.value=s.value,i.id&&u.setAttribute("form",i.id),s.parentNode.insertBefore(u,s),i=new FormData(i),u.parentNode.removeChild(u),i}function aB(i,s,u,h,v){if(s==="submit"&&u&&u.stateNode===v){var x=hj((v[zn]||null).action),M=h.submitter;M&&(s=(s=M[zn]||null)?hj(s.formAction):M.getAttribute("formAction"),s!==null&&(x=s,M=null));var k=new Gf("action","action",null,h,v);i.push({event:k,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Ti!==0){var G=M?pj(v,M):new FormData(v);Zg(u,{pending:!0,data:G,method:v.method,action:x},null,G)}}else typeof x=="function"&&(k.preventDefault(),G=M?pj(v,M):new FormData(v),Zg(u,{pending:!0,data:G,method:v.method,action:x},x,G))},currentTarget:v}]})}}for(var Ny=0;Ny<mg.length;Ny++){var Ry=mg[Ny],iB=Ry.toLowerCase(),oB=Ry[0].toUpperCase()+Ry.slice(1);Lr(iB,"on"+oB)}Lr(WO,"onAnimationEnd"),Lr(VO,"onAnimationIteration"),Lr(GO,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(w7,"onTransitionRun"),Lr(A7,"onTransitionStart"),Lr(O7,"onTransitionCancel"),Lr(KO,"onTransitionEnd"),hs("onMouseEnter",["mouseout","mouseover"]),hs("onMouseLeave",["mouseout","mouseover"]),hs("onPointerEnter",["pointerout","pointerover"]),hs("onPointerLeave",["pointerout","pointerover"]),io("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),io("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),io("onBeforeInput",["compositionend","keypress","textInput","paste"]),io("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),io("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),io("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),sB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fc));function mj(i,s){s=(s&4)!==0;for(var u=0;u<i.length;u++){var h=i[u],v=h.event;h=h.listeners;e:{var x=void 0;if(s)for(var M=h.length-1;0<=M;M--){var k=h[M],G=k.instance,te=k.currentTarget;if(k=k.listener,G!==x&&v.isPropagationStopped())break e;x=k,v.currentTarget=te;try{x(v)}catch(ie){Qf(ie)}v.currentTarget=null,x=G}else for(M=0;M<h.length;M++){if(k=h[M],G=k.instance,te=k.currentTarget,k=k.listener,G!==x&&v.isPropagationStopped())break e;x=k,v.currentTarget=te;try{x(v)}catch(ie){Qf(ie)}v.currentTarget=null,x=G}}}}function Fe(i,s){var u=s[Gm];u===void 0&&(u=s[Gm]=new Set);var h=i+"__bubble";u.has(h)||(gj(s,i,2,!1),u.add(h))}function ky(i,s,u){var h=0;s&&(h|=4),gj(u,i,h,s)}var zd="_reactListening"+Math.random().toString(36).slice(2);function zy(i){if(!i[zd]){i[zd]=!0,cO.forEach(function(u){u!=="selectionchange"&&(sB.has(u)||ky(u,!1,i),ky(u,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[zd]||(s[zd]=!0,ky("selectionchange",!1,s))}}function gj(i,s,u,h){switch(Wj(s)){case 2:var v=kB;break;case 8:v=zB;break;default:v=Xy}u=v.bind(null,s,u,i),v=void 0,!ng||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(v=!0),h?v!==void 0?i.addEventListener(s,u,{capture:!0,passive:v}):i.addEventListener(s,u,!0):v!==void 0?i.addEventListener(s,u,{passive:v}):i.addEventListener(s,u,!1)}function By(i,s,u,h,v){var x=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var M=h.tag;if(M===3||M===4){var k=h.stateNode.containerInfo;if(k===v)break;if(M===4)for(M=h.return;M!==null;){var G=M.tag;if((G===3||G===4)&&M.stateNode.containerInfo===v)return;M=M.return}for(;k!==null;){if(M=us(k),M===null)return;if(G=M.tag,G===5||G===6||G===26||G===27){h=x=M;continue e}k=k.parentNode}}h=h.return}SO(function(){var te=x,ie=eg(u),fe=[];e:{var ne=YO.get(i);if(ne!==void 0){var re=Gf,be=i;switch(i){case"keypress":if(Wf(u)===0)break e;case"keydown":case"keyup":re=e7;break;case"focusin":be="focus",re=og;break;case"focusout":be="blur",re=og;break;case"beforeblur":case"afterblur":re=og;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=OO;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=F4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=r7;break;case WO:case VO:case GO:re=W4;break;case KO:re=i7;break;case"scroll":case"scrollend":re=L4;break;case"wheel":re=s7;break;case"copy":case"cut":case"paste":re=G4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=jO;break;case"toggle":case"beforetoggle":re=c7}var Te=(s&4)!==0,pt=!Te&&(i==="scroll"||i==="scrollend"),X=Te?ne!==null?ne+"Capture":null:ne;Te=[];for(var Q=te,ee;Q!==null;){var le=Q;if(ee=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||ee===null||X===null||(le=uc(Q,X),le!=null&&Te.push(Uc(Q,le,ee))),pt)break;Q=Q.return}0<Te.length&&(ne=new re(ne,be,null,u,ie),fe.push({event:ne,listeners:Te}))}}if((s&7)===0){e:{if(ne=i==="mouseover"||i==="pointerover",re=i==="mouseout"||i==="pointerout",ne&&u!==Jm&&(be=u.relatedTarget||u.fromElement)&&(us(be)||be[cs]))break e;if((re||ne)&&(ne=ie.window===ie?ie:(ne=ie.ownerDocument)?ne.defaultView||ne.parentWindow:window,re?(be=u.relatedTarget||u.toElement,re=te,be=be?us(be):null,be!==null&&(pt=o(be),Te=be.tag,be!==pt||Te!==5&&Te!==27&&Te!==6)&&(be=null)):(re=null,be=te),re!==be)){if(Te=OO,le="onMouseLeave",X="onMouseEnter",Q="mouse",(i==="pointerout"||i==="pointerover")&&(Te=jO,le="onPointerLeave",X="onPointerEnter",Q="pointer"),pt=re==null?ne:cc(re),ee=be==null?ne:cc(be),ne=new Te(le,Q+"leave",re,u,ie),ne.target=pt,ne.relatedTarget=ee,le=null,us(ie)===te&&(Te=new Te(X,Q+"enter",be,u,ie),Te.target=ee,Te.relatedTarget=pt,le=Te),pt=le,re&&be)t:{for(Te=lB,X=re,Q=be,ee=0,le=X;le;le=Te(le))ee++;le=0;for(var Ce=Q;Ce;Ce=Te(Ce))le++;for(;0<ee-le;)X=Te(X),ee--;for(;0<le-ee;)Q=Te(Q),le--;for(;ee--;){if(X===Q||Q!==null&&X===Q.alternate){Te=X;break t}X=Te(X),Q=Te(Q)}Te=null}else Te=null;re!==null&&yj(fe,ne,re,Te,!1),be!==null&&pt!==null&&yj(fe,pt,be,Te,!0)}}e:{if(ne=te?cc(te):window,re=ne.nodeName&&ne.nodeName.toLowerCase(),re==="select"||re==="input"&&ne.type==="file")var Ze=RO;else if(DO(ne))if(kO)Ze=b7;else{Ze=y7;var Ae=g7}else re=ne.nodeName,!re||re.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?te&&Zm(te.elementType)&&(Ze=RO):Ze=v7;if(Ze&&(Ze=Ze(i,te))){NO(fe,Ze,u,ie);break e}Ae&&Ae(i,ne,te),i==="focusout"&&te&&ne.type==="number"&&te.memoizedProps.value!=null&&Xm(ne,"number",ne.value)}switch(Ae=te?cc(te):window,i){case"focusin":(DO(Ae)||Ae.contentEditable==="true")&&(bs=Ae,dg=te,vc=null);break;case"focusout":vc=dg=bs=null;break;case"mousedown":hg=!0;break;case"contextmenu":case"mouseup":case"dragend":hg=!1,UO(fe,u,ie);break;case"selectionchange":if(S7)break;case"keydown":case"keyup":UO(fe,u,ie)}var Be;if(lg)e:{switch(i){case"compositionstart":var We="onCompositionStart";break e;case"compositionend":We="onCompositionEnd";break e;case"compositionupdate":We="onCompositionUpdate";break e}We=void 0}else vs?PO(i,u)&&(We="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(We="onCompositionStart");We&&(EO&&u.locale!=="ko"&&(vs||We!=="onCompositionStart"?We==="onCompositionEnd"&&vs&&(Be=wO()):(hi=ie,rg="value"in hi?hi.value:hi.textContent,vs=!0)),Ae=Bd(te,We),0<Ae.length&&(We=new _O(We,i,null,u,ie),fe.push({event:We,listeners:Ae}),Be?We.data=Be:(Be=MO(u),Be!==null&&(We.data=Be)))),(Be=f7?d7(i,u):h7(i,u))&&(We=Bd(te,"onBeforeInput"),0<We.length&&(Ae=new _O("onBeforeInput","beforeinput",null,u,ie),fe.push({event:Ae,listeners:We}),Ae.data=Be)),aB(fe,i,te,u,ie)}mj(fe,s)})}function Uc(i,s,u){return{instance:i,listener:s,currentTarget:u}}function Bd(i,s){for(var u=s+"Capture",h=[];i!==null;){var v=i,x=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||x===null||(v=uc(i,u),v!=null&&h.unshift(Uc(i,v,x)),v=uc(i,s),v!=null&&h.push(Uc(i,v,x))),i.tag===3)return h;i=i.return}return[]}function lB(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function yj(i,s,u,h,v){for(var x=s._reactName,M=[];u!==null&&u!==h;){var k=u,G=k.alternate,te=k.stateNode;if(k=k.tag,G!==null&&G===h)break;k!==5&&k!==26&&k!==27||te===null||(G=te,v?(te=uc(u,x),te!=null&&M.unshift(Uc(u,te,G))):v||(te=uc(u,x),te!=null&&M.push(Uc(u,te,G)))),u=u.return}M.length!==0&&i.push({event:s,listeners:M})}var cB=/\r\n?/g,uB=/\u0000|\uFFFD/g;function vj(i){return(typeof i=="string"?i:""+i).replace(cB,`
49`).replace(uB,"")}function bj(i,s){return s=vj(s),vj(i)===s}function ht(i,s,u,h,v,x){switch(u){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||ms(i,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&ms(i,""+h);break;case"className":qf(i,"class",h);break;case"tabIndex":qf(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":qf(i,u,h);break;case"style":bO(i,h,x);break;case"data":if(s!=="object"){qf(i,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||u!=="href")){i.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=Uf(""+h),i.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof x=="function"&&(u==="formAction"?(s!=="input"&&ht(i,s,"name",v.name,v,null),ht(i,s,"formEncType",v.formEncType,v,null),ht(i,s,"formMethod",v.formMethod,v,null),ht(i,s,"formTarget",v.formTarget,v,null)):(ht(i,s,"encType",v.encType,v,null),ht(i,s,"method",v.method,v,null),ht(i,s,"target",v.target,v,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=Uf(""+h),i.setAttribute(u,h);break;case"onClick":h!=null&&(i.onclick=_a);break;case"onScroll":h!=null&&Fe("scroll",i);break;case"onScrollEnd":h!=null&&Fe("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}u=Uf(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""+h):i.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":h===!0?i.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,h):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(u,h):i.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(u):i.setAttribute(u,h);break;case"popover":Fe("beforetoggle",i),Fe("toggle",i),Lf(i,"popover",h);break;case"xlinkActuate":Oa(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Oa(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Oa(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Oa(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Oa(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Oa(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Oa(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Oa(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Oa(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Lf(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=I4.get(u)||u,Lf(i,u,h))}}function Iy(i,s,u,h,v,x){switch(u){case"style":bO(i,h,x);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof h=="string"?ms(i,h):(typeof h=="number"||typeof h=="bigint")&&ms(i,""+h);break;case"onScroll":h!=null&&Fe("scroll",i);break;case"onScrollEnd":h!=null&&Fe("scrollend",i);break;case"onClick":h!=null&&(i.onclick=_a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!uO.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),s=u.slice(2,v?u.length-7:void 0),x=i[zn]||null,x=x!=null?x[u]:null,typeof x=="function"&&i.removeEventListener(s,x,v),typeof h=="function")){typeof x!="function"&&x!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(s,h,v);break e}u in i?i[u]=h:h===!0?i.setAttribute(u,""):Lf(i,u,h)}}}function xn(i,s,u){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Fe("error",i),Fe("load",i);var h=!1,v=!1,x;for(x in u)if(u.hasOwnProperty(x)){var M=u[x];if(M!=null)switch(x){case"src":h=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:ht(i,s,x,M,u,null)}}v&&ht(i,s,"srcSet",u.srcSet,u,null),h&&ht(i,s,"src",u.src,u,null);return;case"input":Fe("invalid",i);var k=x=M=v=null,G=null,te=null;for(h in u)if(u.hasOwnProperty(h)){var ie=u[h];if(ie!=null)switch(h){case"name":v=ie;break;case"type":M=ie;break;case"checked":G=ie;break;case"defaultChecked":te=ie;break;case"value":x=ie;break;case"defaultValue":k=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(137,s));break;default:ht(i,s,h,ie,u,null)}}mO(i,x,k,G,te,M,v,!1);return;case"select":Fe("invalid",i),h=M=x=null;for(v in u)if(u.hasOwnProperty(v)&&(k=u[v],k!=null))switch(v){case"value":x=k;break;case"defaultValue":M=k;break;case"multiple":h=k;default:ht(i,s,v,k,u,null)}s=x,u=M,i.multiple=!!h,s!=null?ps(i,!!h,s,!1):u!=null&&ps(i,!!h,u,!0);return;case"textarea":Fe("invalid",i),x=v=h=null;for(M in u)if(u.hasOwnProperty(M)&&(k=u[M],k!=null))switch(M){case"value":h=k;break;case"defaultValue":v=k;break;case"children":x=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:ht(i,s,M,k,u,null)}yO(i,h,v,x);return;case"option":for(G in u)if(u.hasOwnProperty(G)&&(h=u[G],h!=null))switch(G){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:ht(i,s,G,h,u,null)}return;case"dialog":Fe("beforetoggle",i),Fe("toggle",i),Fe("cancel",i),Fe("close",i);break;case"iframe":case"object":Fe("load",i);break;case"video":case"audio":for(h=0;h<Fc.length;h++)Fe(Fc[h],i);break;case"image":Fe("error",i),Fe("load",i);break;case"details":Fe("toggle",i);break;case"embed":case"source":case"link":Fe("error",i),Fe("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(te in u)if(u.hasOwnProperty(te)&&(h=u[te],h!=null))switch(te){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:ht(i,s,te,h,u,null)}return;default:if(Zm(s)){for(ie in u)u.hasOwnProperty(ie)&&(h=u[ie],h!==void 0&&Iy(i,s,ie,h,u,void 0));return}}for(k in u)u.hasOwnProperty(k)&&(h=u[k],h!=null&&ht(i,s,k,h,u,null))}function fB(i,s,u,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,x=null,M=null,k=null,G=null,te=null,ie=null;for(re in u){var fe=u[re];if(u.hasOwnProperty(re)&&fe!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":G=fe;default:h.hasOwnProperty(re)||ht(i,s,re,null,h,fe)}}for(var ne in h){var re=h[ne];if(fe=u[ne],h.hasOwnProperty(ne)&&(re!=null||fe!=null))switch(ne){case"type":x=re;break;case"name":v=re;break;case"checked":te=re;break;case"defaultChecked":ie=re;break;case"value":M=re;break;case"defaultValue":k=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,s));break;default:re!==fe&&ht(i,s,ne,re,h,fe)}}Qm(i,M,k,G,te,ie,x,v);return;case"select":re=M=k=ne=null;for(x in u)if(G=u[x],u.hasOwnProperty(x)&&G!=null)switch(x){case"value":break;case"multiple":re=G;default:h.hasOwnProperty(x)||ht(i,s,x,null,h,G)}for(v in h)if(x=h[v],G=u[v],h.hasOwnProperty(v)&&(x!=null||G!=null))switch(v){case"value":ne=x;break;case"defaultValue":k=x;break;case"multiple":M=x;default:x!==G&&ht(i,s,v,x,h,G)}s=k,u=M,h=re,ne!=null?ps(i,!!u,ne,!1):!!h!=!!u&&(s!=null?ps(i,!!u,s,!0):ps(i,!!u,u?[]:"",!1));return;case"textarea":re=ne=null;for(k in u)if(v=u[k],u.hasOwnProperty(k)&&v!=null&&!h.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:ht(i,s,k,null,h,v)}for(M in h)if(v=h[M],x=u[M],h.hasOwnProperty(M)&&(v!=null||x!=null))switch(M){case"value":ne=v;break;case"defaultValue":re=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==x&&ht(i,s,M,v,h,x)}gO(i,ne,re);return;case"option":for(var be in u)if(ne=u[be],u.hasOwnProperty(be)&&ne!=null&&!h.hasOwnProperty(be))switch(be){case"selected":i.selected=!1;break;default:ht(i,s,be,null,h,ne)}for(G in h)if(ne=h[G],re=u[G],h.hasOwnProperty(G)&&ne!==re&&(ne!=null||re!=null))switch(G){case"selected":i.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:ht(i,s,G,ne,h,re)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Te in u)ne=u[Te],u.hasOwnProperty(Te)&&ne!=null&&!h.hasOwnProperty(Te)&&ht(i,s,Te,null,h,ne);for(te in h)if(ne=h[te],re=u[te],h.hasOwnProperty(te)&&ne!==re&&(ne!=null||re!=null))switch(te){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,s));break;default:ht(i,s,te,ne,h,re)}return;default:if(Zm(s)){for(var pt in u)ne=u[pt],u.hasOwnProperty(pt)&&ne!==void 0&&!h.hasOwnProperty(pt)&&Iy(i,s,pt,void 0,h,ne);for(ie in h)ne=h[ie],re=u[ie],!h.hasOwnProperty(ie)||ne===re||ne===void 0&&re===void 0||Iy(i,s,ie,ne,h,re);return}}for(var X in u)ne=u[X],u.hasOwnProperty(X)&&ne!=null&&!h.hasOwnProperty(X)&&ht(i,s,X,null,h,ne);for(fe in h)ne=h[fe],re=u[fe],!h.hasOwnProperty(fe)||ne===re||ne==null&&re==null||ht(i,s,fe,ne,h,re)}function xj(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dB(){if(typeof performance.getEntriesByType=="function"){for(var i=0,s=0,u=performance.getEntriesByType("resource"),h=0;h<u.length;h++){var v=u[h],x=v.transferSize,M=v.initiatorType,k=v.duration;if(x&&k&&xj(M)){for(M=0,k=v.responseEnd,h+=1;h<u.length;h++){var G=u[h],te=G.startTime;if(te>k)break;var ie=G.transferSize,fe=G.initiatorType;ie&&xj(fe)&&(G=G.responseEnd,M+=ie*(G<k?1:(k-te)/(G-te)))}if(--h,s+=8*(x+M)/(v.duration/1e3),i++,10<i)break}}if(0<i)return s/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var $y=null,Ly=null;function Id(i){return i.nodeType===9?i:i.ownerDocument}function Sj(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wj(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function qy(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Fy=null;function hB(){var i=window.event;return i&&i.type==="popstate"?i===Fy?!1:(Fy=i,!0):(Fy=null,!1)}var Aj=typeof setTimeout=="function"?setTimeout:void 0,pB=typeof clearTimeout=="function"?clearTimeout:void 0,Oj=typeof Promise=="function"?Promise:void 0,mB=typeof queueMicrotask=="function"?queueMicrotask:typeof Oj<"u"?function(i){return Oj.resolve(null).then(i).catch(gB)}:Aj;function gB(i){setTimeout(function(){throw i})}function Pi(i){return i==="head"}function _j(i,s){var u=s,h=0;do{var v=u.nextSibling;if(i.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"||u==="/&"){if(h===0){i.removeChild(v),Vs(s);return}h--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")h++;else if(u==="html")Hc(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,Hc(u);for(var x=u.firstChild;x;){var M=x.nextSibling,k=x.nodeName;x[lc]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&x.rel.toLowerCase()==="stylesheet"||u.removeChild(x),x=M}}else u==="body"&&Hc(i.ownerDocument.body);u=v}while(u);Vs(s)}function jj(i,s){var u=i;i=0;do{var h=u.nextSibling;if(u.nodeType===1?s?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(s?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),h&&h.nodeType===8)if(u=h.data,u==="/$"){if(i===0)break;i--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||i++;u=h}while(u)}function Uy(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var u=s;switch(s=s.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Uy(u),Km(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function yB(i,s,u,h){for(;i.nodeType===1;){var v=u;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[lc])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(x=i.getAttribute("rel"),x==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(x!==v.rel||i.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||i.getAttribute("title")!==(v.title==null?null:v.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(x=i.getAttribute("src"),(x!==(v.src==null?null:v.src)||i.getAttribute("type")!==(v.type==null?null:v.type)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&x&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var x=v.name==null?null:""+v.name;if(v.type==="hidden"&&i.getAttribute("name")===x)return i}else return i;if(i=_r(i.nextSibling),i===null)break}return null}function vB(i,s,u){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=_r(i.nextSibling),i===null))return null;return i}function Ej(i,s){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!s||(i=_r(i.nextSibling),i===null))return null;return i}function Hy(i){return i.data==="$?"||i.data==="$~"}function Wy(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function bB(i,s){var u=i.ownerDocument;if(i.data==="$~")i._reactRetry=s;else if(i.data!=="$?"||u.readyState!=="loading")s();else{var h=function(){s(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function _r(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;
vendor: 12,031 bytes, line 49
49if(s==="/$"||s==="/&")return null}}return i}var Vy=null;function Cj(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(s===0)return _r(i.nextSibling);s--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||s++}i=i.nextSibling}return null}function Tj(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(s===0)return i;s--}else u!=="/$"&&u!=="/&"||s++}i=i.previousSibling}return null}function Pj(i,s,u){switch(s=Id(u),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Hc(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);Km(i)}var jr=new Map,Mj=new Set;function $d(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var qa=F.d;F.d={f:xB,r:SB,D:wB,C:AB,L:OB,m:_B,X:EB,S:jB,M:CB};function xB(){var i=qa.f(),s=Pd();return i||s}function SB(i){var s=fs(i);s!==null&&s.tag===5&&s.type==="form"?K2(s):qa.r(i)}var Us=typeof document>"u"?null:document;function Dj(i,s,u){var h=Us;if(h&&typeof s=="string"&&s){var v=vr(s);v='link[rel="'+i+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),Mj.has(v)||(Mj.add(v),i={rel:i,crossOrigin:u,href:s},h.querySelector(v)===null&&(s=h.createElement("link"),xn(s,"link",i),sn(s),h.head.appendChild(s)))}}function wB(i){qa.D(i),Dj("dns-prefetch",i,null)}function AB(i,s){qa.C(i,s),Dj("preconnect",i,s)}function OB(i,s,u){qa.L(i,s,u);var h=Us;if(h&&i&&s){var v='link[rel="preload"][as="'+vr(s)+'"]';s==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+vr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+vr(u.imageSizes)+'"]')):v+='[href="'+vr(i)+'"]';var x=v;switch(s){case"style":x=Hs(i);break;case"script":x=Ws(i)}jr.has(x)||(i=p({rel:"preload",href:s==="image"&&u&&u.imageSrcSet?void 0:i,as:s},u),jr.set(x,i),h.querySelector(v)!==null||s==="style"&&h.querySelector(Wc(x))||s==="script"&&h.querySelector(Vc(x))||(s=h.createElement("link"),xn(s,"link",i),sn(s),h.head.appendChild(s)))}}function _B(i,s){qa.m(i,s);var u=Us;if(u&&i){var h=s&&typeof s.as=="string"?s.as:"script",v='link[rel="modulepreload"][as="'+vr(h)+'"][href="'+vr(i)+'"]',x=v;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=Ws(i)}if(!jr.has(x)&&(i=p({rel:"modulepreload",href:i},s),jr.set(x,i),u.querySelector(v)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Vc(x)))return}h=u.createElement("link"),xn(h,"link",i),sn(h),u.head.appendChild(h)}}}function jB(i,s,u){qa.S(i,s,u);var h=Us;if(h&&i){var v=ds(h).hoistableStyles,x=Hs(i);s=s||"default";var M=v.get(x);if(!M){var k={loading:0,preload:null};if(M=h.querySelector(Wc(x)))k.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":s},u),(u=jr.get(x))&&Gy(i,u);var G=M=h.createElement("link");sn(G),xn(G,"link",i),G._p=new Promise(function(te,ie){G.onload=te,G.onerror=ie}),G.addEventListener("load",function(){k.loading|=1}),G.addEventListener("error",function(){k.loading|=2}),k.loading|=4,Ld(M,s,h)}M={type:"stylesheet",instance:M,count:1,state:k},v.set(x,M)}}}function EB(i,s){qa.X(i,s);var u=Us;if(u&&i){var h=ds(u).hoistableScripts,v=Ws(i),x=h.get(v);x||(x=u.querySelector(Vc(v)),x||(i=p({src:i,async:!0},s),(s=jr.get(v))&&Ky(i,s),x=u.createElement("script"),sn(x),xn(x,"link",i),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},h.set(v,x))}}function CB(i,s){qa.M(i,s);var u=Us;if(u&&i){var h=ds(u).hoistableScripts,v=Ws(i),x=h.get(v);x||(x=u.querySelector(Vc(v)),x||(i=p({src:i,async:!0,type:"module"},s),(s=jr.get(v))&&Ky(i,s),x=u.createElement("script"),sn(x),xn(x,"link",i),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},h.set(v,x))}}function Nj(i,s,u,h){var v=(v=he.current)?$d(v):null;if(!v)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(s=Hs(u.href),u=ds(v).hoistableStyles,h=u.get(s),h||(h={type:"style",instance:null,count:0,state:null},u.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=Hs(u.href);var x=ds(v).hoistableStyles,M=x.get(i);if(M||(v=v.ownerDocument||v,M={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(i,M),(x=v.querySelector(Wc(i)))&&!x._p&&(M.instance=x,M.state.loading=5),jr.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},jr.set(i,u),x||TB(v,i,u,M.state))),s&&h===null)throw Error(r(528,""));return M}if(s&&h!==null)throw Error(r(529,""));return null;case"script":return s=u.async,u=u.src,typeof u=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Ws(u),u=ds(v).hoistableScripts,h=u.get(s),h||(h={type:"script",instance:null,count:0,state:null},u.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Hs(i){return'href="'+vr(i)+'"'}function Wc(i){return'link[rel="stylesheet"]['+i+"]"}function Rj(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function TB(i,s,u,h){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=i.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),xn(s,"link",u),sn(s),i.head.appendChild(s))}function Ws(i){return'[src="'+vr(i)+'"]'}function Vc(i){return"script[async]"+i}function kj(i,s,u){if(s.count++,s.instance===null)switch(s.type){case"style":var h=i.querySelector('style[data-href~="'+vr(u.href)+'"]');if(h)return s.instance=h,sn(h),h;var v=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),sn(h),xn(h,"style",v),Ld(h,u.precedence,i),s.instance=h;case"stylesheet":v=Hs(u.href);var x=i.querySelector(Wc(v));if(x)return s.state.loading|=4,s.instance=x,sn(x),x;h=Rj(u),(v=jr.get(v))&&Gy(h,v),x=(i.ownerDocument||i).createElement("link"),sn(x);var M=x;return M._p=new Promise(function(k,G){M.onload=k,M.onerror=G}),xn(x,"link",h),s.state.loading|=4,Ld(x,u.precedence,i),s.instance=x;case"script":return x=Ws(u.src),(v=i.querySelector(Vc(x)))?(s.instance=v,sn(v),v):(h=u,(v=jr.get(x))&&(h=p({},u),Ky(h,v)),i=i.ownerDocument||i,v=i.createElement("script"),sn(v),xn(v,"link",h),i.head.appendChild(v),s.instance=v);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(h=s.instance,s.state.loading|=4,Ld(h,u.precedence,i));return s.instance}function Ld(i,s,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=h.length?h[h.length-1]:null,x=v,M=0;M<h.length;M++){var k=h[M];if(k.dataset.precedence===s)x=k;else if(x!==v)break}x?x.parentNode.insertBefore(i,x.nextSibling):(s=u.nodeType===9?u.head:u,s.insertBefore(i,s.firstChild))}function Gy(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function Ky(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var qd=null;function zj(i,s,u){if(qd===null){var h=new Map,v=qd=new Map;v.set(u,h)}else v=qd,h=v.get(u),h||(h=new Map,v.set(u,h));if(h.has(i))return h;for(h.set(i,null),u=u.getElementsByTagName(i),v=0;v<u.length;v++){var x=u[v];if(!(x[lc]||x[gn]||i==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var M=x.getAttribute(s)||"";M=i+M;var k=h.get(M);k?k.push(x):h.set(M,[x])}}return h}function Bj(i,s,u){i=i.ownerDocument||i,i.head.insertBefore(u,s==="title"?i.querySelector("head > title"):null)}function PB(i,s,u){if(u===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return i=s.disabled,typeof s.precedence=="string"&&i==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function Ij(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function MB(i,s,u,h){if(u.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var v=Hs(h.href),x=s.querySelector(Wc(v));if(x){s=x._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=Fd.bind(i),s.then(i,i)),u.state.loading|=4,u.instance=x,sn(x);return}x=s.ownerDocument||s,h=Rj(h),(v=jr.get(v))&&Gy(h,v),x=x.createElement("link"),sn(x);var M=x;M._p=new Promise(function(k,G){M.onload=k,M.onerror=G}),xn(x,"link",h),u.instance=x}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,s),(s=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=Fd.bind(i),s.addEventListener("load",u),s.addEventListener("error",u))}}var Yy=0;function DB(i,s){return i.stylesheets&&i.count===0&&Hd(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var h=setTimeout(function(){if(i.stylesheets&&Hd(i,i.stylesheets),i.unsuspend){var x=i.unsuspend;i.unsuspend=null,x()}},6e4+s);0<i.imgBytes&&Yy===0&&(Yy=62500*dB());var v=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&Hd(i,i.stylesheets),i.unsuspend)){var x=i.unsuspend;i.unsuspend=null,x()}},(i.imgBytes>Yy?50:800)+s);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(h),clearTimeout(v)}}:null}function Fd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Hd(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Ud=null;function Hd(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Ud=new Map,s.forEach(NB,i),Ud=null,Fd.call(i))}function NB(i,s){if(!(s.state.loading&4)){var u=Ud.get(i);if(u)var h=u.get(null);else{u=new Map,Ud.set(i,u);for(var v=i.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<v.length;x++){var M=v[x];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(u.set(M.dataset.precedence,M),h=M)}h&&u.set(null,h)}v=s.instance,M=v.getAttribute("data-precedence"),x=u.get(M)||h,x===h&&u.set(null,v),u.set(M,v),this.count++,h=Fd.bind(this),v.addEventListener("load",h),v.addEventListener("error",h),x?x.parentNode.insertBefore(v,x.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(v,i.firstChild)),s.state.loading|=4}}var Gc={$$typeof:E,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function RB(i,s,u,h,v,x,M,k,G){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qt(0),this.hiddenUpdates=Qt(null),this.identifierPrefix=h,this.onUncaughtError=v,this.onCaughtError=x,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=G,this.incompleteTransitions=new Map}function $j(i,s,u,h,v,x,M,k,G,te,ie,fe){return i=new RB(i,s,u,M,G,te,ie,fe,k),s=1,x===!0&&(s|=24),x=Yn(3,null,null,s),i.current=x,x.stateNode=i,s=Cg(),s.refCount++,i.pooledCache=s,s.refCount++,x.memoizedState={element:h,isDehydrated:u,cac
vendor: 10,793 bytes, line 49
49he:s},Dg(x),i}function Lj(i){return i?(i=ws,i):ws}function qj(i,s,u,h,v,x){v=Lj(v),h.context===null?h.context=v:h.pendingContext=v,h=bi(s),h.payload={element:u},x=x===void 0?null:x,x!==null&&(h.callback=x),u=xi(i,h,s),u!==null&&(Fn(u,i,s),_c(u,i,s))}function Fj(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<s?u:s}}function Qy(i,s){Fj(i,s),(i=i.alternate)&&Fj(i,s)}function Uj(i){if(i.tag===13||i.tag===31){var s=co(i,67108864);s!==null&&Fn(s,i,67108864),Qy(i,67108864)}}function Hj(i){if(i.tag===13||i.tag===31){var s=er();s=pr(s);var u=co(i,s);u!==null&&Fn(u,i,s),Qy(i,s)}}var Wd=!0;function kB(i,s,u,h){var v=R.T;R.T=null;var x=F.p;try{F.p=2,Xy(i,s,u,h)}finally{F.p=x,R.T=v}}function zB(i,s,u,h){var v=R.T;R.T=null;var x=F.p;try{F.p=8,Xy(i,s,u,h)}finally{F.p=x,R.T=v}}function Xy(i,s,u,h){if(Wd){var v=Zy(h);if(v===null)By(i,s,h,Vd,u),Vj(i,h);else if(IB(v,i,s,u,h))h.stopPropagation();else if(Vj(i,h),s&4&&-1<BB.indexOf(i)){for(;v!==null;){var x=fs(v);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var M=Ct(x.pendingLanes);if(M!==0){var k=x;for(k.pendingLanes|=2,k.entangledLanes|=2;M;){var G=1<<31-Yt(M);k.entanglements[1]|=G,M&=~G}aa(x),(rt&6)===0&&(Cd=Bt()+500,qc(0))}}break;case 31:case 13:k=co(x,2),k!==null&&Fn(k,x,2),Pd(),Qy(x,2)}if(x=Zy(h),x===null&&By(i,s,h,Vd,u),x===v)break;v=x}v!==null&&h.stopPropagation()}else By(i,s,h,null,u)}}function Zy(i){return i=eg(i),Jy(i)}var Vd=null;function Jy(i){if(Vd=null,i=us(i),i!==null){var s=o(i);if(s===null)i=null;else{var u=s.tag;if(u===13){if(i=l(s),i!==null)return i;i=null}else if(u===31){if(i=c(s),i!==null)return i;i=null}else if(u===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return Vd=i,null}function Wj(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(li()){case wa:return 2;case Br:return 8;case kn:case Ir:return 32;case dr:return 268435456;default:return 32}default:return 32}}var ev=!1,Mi=null,Di=null,Ni=null,Kc=new Map,Yc=new Map,Ri=[],BB="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Vj(i,s){switch(i){case"focusin":case"focusout":Mi=null;break;case"dragenter":case"dragleave":Di=null;break;case"mouseover":case"mouseout":Ni=null;break;case"pointerover":case"pointerout":Kc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yc.delete(s.pointerId)}}function Qc(i,s,u,h,v,x){return i===null||i.nativeEvent!==x?(i={blockedOn:s,domEventName:u,eventSystemFlags:h,nativeEvent:x,targetContainers:[v]},s!==null&&(s=fs(s),s!==null&&Uj(s)),i):(i.eventSystemFlags|=h,s=i.targetContainers,v!==null&&s.indexOf(v)===-1&&s.push(v),i)}function IB(i,s,u,h,v){switch(s){case"focusin":return Mi=Qc(Mi,i,s,u,h,v),!0;case"dragenter":return Di=Qc(Di,i,s,u,h,v),!0;case"mouseover":return Ni=Qc(Ni,i,s,u,h,v),!0;case"pointerover":var x=v.pointerId;return Kc.set(x,Qc(Kc.get(x)||null,i,s,u,h,v)),!0;case"gotpointercapture":return x=v.pointerId,Yc.set(x,Qc(Yc.get(x)||null,i,s,u,h,v)),!0}return!1}function Gj(i){var s=us(i.target);if(s!==null){var u=o(s);if(u!==null){if(s=u.tag,s===13){if(s=l(u),s!==null){i.blockedOn=s,di(i.priority,function(){Hj(u)});return}}else if(s===31){if(s=c(u),s!==null){i.blockedOn=s,di(i.priority,function(){Hj(u)});return}}else if(s===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Gd(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var u=Zy(i.nativeEvent);if(u===null){u=i.nativeEvent;var h=new u.constructor(u.type,u);Jm=h,u.target.dispatchEvent(h),Jm=null}else return s=fs(u),s!==null&&Uj(s),i.blockedOn=u,!1;s.shift()}return!0}function Kj(i,s,u){Gd(i)&&u.delete(s)}function $B(){ev=!1,Mi!==null&&Gd(Mi)&&(Mi=null),Di!==null&&Gd(Di)&&(Di=null),Ni!==null&&Gd(Ni)&&(Ni=null),Kc.forEach(Kj),Yc.forEach(Kj)}function Kd(i,s){i.blockedOn===s&&(i.blockedOn=null,ev||(ev=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,$B)))}var Yd=null;function Yj(i){Yd!==i&&(Yd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Yd===i&&(Yd=null);for(var s=0;s<i.length;s+=3){var u=i[s],h=i[s+1],v=i[s+2];if(typeof h!="function"){if(Jy(h||u)===null)continue;break}var x=fs(u);x!==null&&(i.splice(s,3),s-=3,Zg(x,{pending:!0,data:v,method:u.method,action:h},h,v))}}))}function Vs(i){function s(G){return Kd(G,i)}Mi!==null&&Kd(Mi,i),Di!==null&&Kd(Di,i),Ni!==null&&Kd(Ni,i),Kc.forEach(s),Yc.forEach(s);for(var u=0;u<Ri.length;u++){var h=Ri[u];h.blockedOn===i&&(h.blockedOn=null)}for(;0<Ri.length&&(u=Ri[0],u.blockedOn===null);)Gj(u),u.blockedOn===null&&Ri.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var v=u[h],x=u[h+1],M=v[zn]||null;if(typeof x=="function")M||Yj(u);else if(M){var k=null;if(x&&x.hasAttribute("formAction")){if(v=x,M=x[zn]||null)k=M.formAction;else if(Jy(v)!==null)continue}else k=M.action;typeof k=="function"?u[h+1]=k:(u.splice(h,3),h-=3),Yj(u)}}}function Qj(){function i(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(M){return v=M})},focusReset:"manual",scroll:"manual"})}function s(){v!==null&&(v(),v=null),h||setTimeout(u,20)}function u(){if(!h&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,v=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(u,100),function(){h=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),v!==null&&(v(),v=null)}}}function tv(i){this._internalRoot=i}Qd.prototype.render=tv.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var u=s.current,h=er();qj(u,h,i,s,null,null)},Qd.prototype.unmount=tv.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;qj(i.current,2,null,i,null,null),Pd(),s[cs]=null}};function Qd(i){this._internalRoot=i}Qd.prototype.unstable_scheduleHydration=function(i){if(i){var s=mr();i={blockedOn:null,target:i,priority:s};for(var u=0;u<Ri.length&&s!==0&&s<Ri[u].priority;u++);Ri.splice(u,0,i),u===0&&Gj(i)}};var Xj=t.version;if(Xj!=="19.2.1")throw Error(r(527,Xj,"19.2.1"));F.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(s),i=i!==null?m(i):null,i=i===null?null:i.stateNode,i};var LB={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xd.isDisabled&&Xd.supportsFiber)try{Aa=Xd.inject(LB),pn=Xd}catch{}}return Jc.createRoot=function(i,s){if(!a(i))throw Error(r(299));var u=!1,h="",v=a_,x=i_,M=o_;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(v=s.onUncaughtError),s.onCaughtError!==void 0&&(x=s.onCaughtError),s.onRecoverableError!==void 0&&(M=s.onRecoverableError)),s=$j(i,1,!1,null,null,u,h,null,v,x,M,Qj),i[cs]=s.current,zy(i),new tv(s)},Jc.hydrateRoot=function(i,s,u){if(!a(i))throw Error(r(299));var h=!1,v="",x=a_,M=i_,k=o_,G=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(x=u.onUncaughtError),u.onCaughtError!==void 0&&(M=u.onCaughtError),u.onRecoverableError!==void 0&&(k=u.onRecoverableError),u.formState!==void 0&&(G=u.formState)),s=$j(i,1,!0,s,u??null,h,v,G,x,M,k,Qj),s.context=Lj(null),u=s.current,h=er(),h=pr(h),v=bi(h),v.callback=null,xi(u,v,h),u=h,s.current.lanes=u,it(s,u),aa(s),i[cs]=s.current,zy(i),new Qd(s)},Jc.version="19.2.1",Jc}var AE;function tL(){if(AE)return lv.exports;AE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),lv.exports=eL(),lv.exports}var nL=tL(),rL=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,n){this.keyToValue.set(t,n),this.valueToKey.set(n,t)},e.prototype.getByKey=function(t){return this.keyToValue.get(t)},e.prototype.getByValue=function(t){return this.valueToKey.get(t)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e})(),u5=(function(){function e(t){this.generateIdentifier=t,this.kv=new rL}return e.prototype.register=function(t,n){this.kv.getByValue(t)||(n||(n=this.generateIdentifier(t)),this.kv.set(n,t))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(t){return this.kv.getByValue(t)},e.prototype.getValue=function(t){return this.kv.getByKey(t)},e})(),aL=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}
49t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),iL=(function(e){aL(t,e);function t(){var n=e.call(this,function(r){return r.name})||this;return n.classToAllowedProps=new Map,n}return t.prototype.register=function(n,r){typeof r=="object"?(r.allowProps&&this.classToAllowedProps.set(n,r.allowProps),e.prototype.register.call(this,n,r.identifier)):e.prototype.register.call(this,n,r)},t.prototype.getAllowedProps=function(n){return this.classToAllowedProps.get(n)},t})(u5),oL=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o};function sL(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function lL(e,t){var n=sL(e);if("find"in n)return n.find(t);for(var r=n,a=0;a<r.length;a++){var o=r[a];if(t(o))return o}}function pl(e,t){Object.entries(e).forEach(function(n){var r=oL(n,2),a=r[0],o=r[1];return t(o,a)})}function Eh(e,t){return e.indexOf(t)!==-1}function OE(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var cL=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return lL(this.transfomers,function(n){return n.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),uL=function(e){return Object.prototype.toString.call(e).slice(8,-1)},f5=function(e){return typeof e>"u"},fL=function(e){return e===null},Cu=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},R1=function(e){return Cu(e)&&Object.keys(e).length===0},Yi=function(e){return Array.isArray(e)},dL=function(e){return typeof e=="string"},hL=function(e){return typeof e=="number"&&!isNaN(e)},pL=function(e){return typeof e=="boolean"},mL=function(e){return e instanceof RegExp},Tu=function(e){return e instanceof Map},Pu=function(e){return e instanceof Set},d5=function(e){return uL(e)==="Symbol"},gL=function(e){return e instanceof Date&&!isNaN(e.valueOf())},yL=function(e){return e instanceof Error},_E=function(e){return typeof e=="number"&&isNaN(e)},vL=function(e){return pL(e)||fL(e)||f5(e)||hL(e)||dL(e)||d5(e)},bL=function(e){return typeof e=="bigint"},xL=function(e){return e===1/0||e===-1/0},SL=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},wL=function(e){return e instanceof URL},h5=function(e){return e.replace(/\./g,"\\.")},dv=function(e){return e.map(String).map(h5).join(".")},pu=function(e){for(var t=[],n="",r=0;r<e.length;r++){var a=e.charAt(r),o=a==="\\"&&e.charAt(r+1)===".";if(o){n+=".",r++;continue}var l=a===".";if(l){t.push(n),n="";continue}n+=a}var c=n;return t.push(c),t},k1=function(){return k1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},k1.apply(this,arguments)},z1=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},B1=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};function ia(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var p5=[ia(f5,"undefined",function(){return null},function(){}),ia(bL,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),ia(gL,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),ia(yL,"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(r){n[r]=e[r]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(r){n[r]=e[r]}),n}),ia(mL,"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}
49),ia(Pu,"set",function(e){return B1([],z1(e.values()))},function(e){return new Set(e)}),ia(Tu,"map",function(e){return B1([],z1(e.entries()))},function(e){return new Map(e)}),ia(function(e){return _E(e)||xL(e)},"number",function(e){return _E(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),ia(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),ia(wL,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function Qp(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var m5=Qp(function(e,t){if(d5(e)){var n=!!t.symbolRegistry.getIdentifier(e);return n}return!1},function(e,t){var n=t.symbolRegistry.getIdentifier(e);return["symbol",n]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),AL=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),g5=Qp(SL,function(e){return["typed-array",e.constructor.name]},function(e){return B1([],z1(e))},function(e,t){var n=AL[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function y5(e,t){if(e?.constructor){var n=!!t.classRegistry.getIdentifier(e.constructor);return n}return!1}var v5=Qp(y5,function(e,t){var n=t.classRegistry.getIdentifier(e.constructor);return["class",n]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return k1({},e);var r={};return n.forEach(function(a){r[a]=e[a]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),b5=Qp(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return["custom",n.name]},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return n.serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),OL=[v5,m5,b5,g5],jE=function(e,t){var n=OE(OL,function(a){return a.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=OE(p5,function(a){return a.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation}},x5={};p5.forEach(function(e){x5[e.annotation]=e});var _L=function(e,t,n){if(Yi(t))switch(t[0]){case"symbol":return m5.untransform(e,t,n);case"class":return v5.untransform(e,t,n);case"custom":return b5.untransform(e,t,n);case"typed-array":return g5.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{var r=x5[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},el=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function S5(e){if(Eh(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Eh(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Eh(e,"constructor"))throw new Error("constructor is not allowed as a property")}var jL=function(e,t){S5(t);for(var n=0;n<t.length;n++){var r=t[n];if(Pu(e))e=el(e,+r);else if(Tu(e)){var a=+r,o=+t[++n]==0?"key":"value",l=el(e,a);switch(o){case"key":e=l;break;case"value":e=e.get(l);break}}else e=e[r]}return e},I1=function(e,t,n){if(S5(t),t.length===0)return n(e);for(var r=e,a=0;a<t.length-1;a++){var o=t[a];if(Yi(r)){var l=+o;r=r[l]}else if(Cu(r))r=r[o];else if(Pu(r)){var c=+o;r=el(r,c)}else if(Tu(r)){var f=a===t.length-2;if(f)break;var c=+o,d=+t[++a]==0?"key":"value",m=el(r,c);switch(d){case"key":r=m;break;case"value":r=r.get(m);break}}}var p=t[t.length-1];if(Yi(r)?r[+p]=n(r[+p]):Cu(r)&&(r[p]=n(r[p])),Pu(r)){var g=el(r,+p),b=n(g);g!==b&&(r.delete(g),r.add(b))}if(Tu(r)){var c=+t[t.length-2],w=el(r,c),d=+p==0?"key":"value";switch(d){case"key":{var S=n(w);r.set(S,r.get(w)),S!==w&&r.delete(w);break}case"value":{r.set(w,n(r.get(w)));break}}}return e},Va=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},qi=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};
49function $1(e,t,n){if(n===void 0&&(n=[]),!!e){if(!Yi(e)){pl(e,function(l,c){return $1(l,t,qi(qi([],Va(n)),Va(pu(c))))});return}var r=Va(e,2),a=r[0],o=r[1];o&&pl(o,function(l,c){$1(l,t,qi(qi([],Va(n)),Va(pu(c))))}),t(a,n)}}function EL(e,t,n){return $1(t,function(r,a){e=I1(e,a,function(o){return _L(o,r,n)})}),e}function CL(e,t){function n(l,c){var f=jL(e,pu(c));l.map(pu).forEach(function(d){e=I1(e,d,function(){return f})})}if(Yi(t)){var r=Va(t,2),a=r[0],o=r[1];a.forEach(function(l){e=I1(e,pu(l),function(){return e})}),o&&pl(o,n)}else pl(t,n);return e}var TL=function(e,t){return Cu(e)||Yi(e)||Tu(e)||Pu(e)||y5(e,t)};function PL(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}function ML(e,t){var n={},r=void 0;return e.forEach(function(a){if(!(a.length<=1)){t||(a=a.map(function(f){return f.map(String)}).sort(function(f,d){return f.length-d.length}));var o=Va(a),l=o[0],c=o.slice(1);l.length===0?r=c.map(dv):n[dv(l)]=c.map(dv)}}),r?R1(n)?[r]:[r,n]:R1(n)?void 0:n}var w5=function(e,t,n,r,a,o,l){var c;a===void 0&&(a=[]),o===void 0&&(o=[]),l===void 0&&(l=new Map);var f=vL(e);if(!f){PL(e,a,t);var d=l.get(e);if(d)return r?{transformedValue:null}:d}if(!TL(e,n)){var m=jE(e,n),p=m?{transformedValue:m.value,annotations:[m.type]}:{transformedValue:e};return f||l.set(e,p),p}if(Eh(o,e))return{transformedValue:null};var g=jE(e,n),b=(c=g?.value)!==null&&c!==void 0?c:e,w=Yi(b)?[]:{},S={};pl(b,function(_,T){var E=w5(_,t,n,r,qi(qi([],Va(a)),[T]),qi(qi([],Va(o)),[e]),l);w[T]=E.transformedValue,Yi(E.annotations)?S[T]=E.annotations:Cu(E.annotations)&&pl(E.annotations,function(P,O){S[h5(T)+"."+O]=P})});var A=R1(S)?{transformedValue:w,annotations:g?[g.type]:void 0}:{transformedValue:w,annotations:g?[g.type,S]:S};return f||l.set(e,A),A};function A5(e){return Object.prototype.toString.call(e).slice(8,-1)}function EE(e){return A5(e)==="Array"}function DL(e){if(A5(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function NL(e,t,n,r,a){const o={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";o==="enumerable"&&(e[t]=n),a&&o==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function L1(e,t={}){if(EE(e))return e.map(a=>L1(a,t));if(!DL(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((a,o)=>{if(EE(t.props)&&!t.props.includes(o))return a;const l=e[o],c=L1(l,t);return NL(a,o,c,e,t.nonenumerable),a},{})}var Po=function(){return Po=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Po.apply(this,arguments)},RL=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},kL=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e},ri=(function(){function e(t){var n=t===void 0?{}:t,r=n.dedupe,a=r===void 0?!1:r;this.classRegistry=new iL,this.symbolRegistry=new u5(function(o){var l;return(l=o.description)!==null&&l!==void 0?l:""}),this.customTransformerRegistry=new cL,this.allowedErrorProps=[],this.dedupe=a}return e.prototype.serialize=function(t){var n=new Map,r=w5(t,n,this,this.dedupe),a={json:r.transformedValue};r.annotations&&(a.meta=Po(Po({},a.meta),{values:r.annotations}));var o=ML(n,this.dedupe);return o&&(a.meta=Po(Po({},a.meta),{referentialEqualities:o})),a},e.prototype.deserialize=function(t){var n=t.json,r=t.meta,a=L1(n);return r?.values&&(a=EL(a,r.values,this)),r?.referentialEqualities&&(a=CL(a,r.referentialEqualities)),a},e.prototype.stringify=function(t){return JSON.stringify(this.serialize(t))},e.prototype.parse=function(t){return this.deserialize(JSON.parse(t))},e.prototype.registerClass=function(t,n){this.classRegistry.register(t,n)},e.prototype.registerSymbol=function(t,n){this.symbolRegistry.register(t,n)},e.prototype.registerCustom=function(t,n){this.customTransformerRegistry.register(Po({name:n},t))},e.prototype.allowErrorProps=function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];
vendor: 4,383 bytes, line 49
49(t=this.allowedErrorProps).push.apply(t,kL([],RL(n)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e})();ri.serialize;ri.deserialize;ri.stringify;ri.parse;ri.registerClass;ri.registerCustom;ri.registerSymbol;ri.allowErrorProps;var zL=(e,t,n,r,a,o,l,c)=>{let f=document.documentElement,d=["light","dark"];function m(b){(Array.isArray(e)?e:[e]).forEach(w=>{let S=w==="class",A=S&&o?a.map(_=>o[_]||_):a;S?(f.classList.remove(...A),f.classList.add(o&&o[b]?o[b]:b)):f.setAttribute(w,b)}),p(b)}function p(b){c&&d.includes(b)&&(f.style.colorScheme=b)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)m(r);else try{let b=localStorage.getItem(t)||n,w=l&&b==="system"?g():b;m(w)}catch{}},BL=D.createContext(void 0),IL={setTheme:e=>{},themes:[]},$L=()=>{var e;return(e=D.useContext(BL))!=null?e:IL};D.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultTheme:o,value:l,themes:c,nonce:f,scriptProps:d})=>{let m=JSON.stringify([n,t,o,e,c,l,r,a]).slice(1,-1);return D.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${zL.toString()})(${m})`}})});var Fi=c5();const LL=lt(Fi);function qL(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const FL=e=>{switch(e){case"success":return WL;case"info":return GL;case"warning":return VL;case"error":return KL;default:return null}},UL=Array(12).fill(0),HL=({visible:e,className:t})=>z.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},z.createElement("div",{className:"sonner-spinner"},UL.map((n,r)=>z.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),WL=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.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"})),VL=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},z.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"})),GL=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.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"})),KL=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.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"})),YL=z.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"},z.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),z.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),QL=()=>{const[e,t]=z.useState(document.hidden);return z.useEffect(()=>{const n=()=>{t(document.hidden)};
vendor: 3,892 bytes, line 49
49return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let q1=1;class XL{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,o=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:q1++,l=this.toasts.find(f=>f.id===o),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),l?this.toasts=this.toasts.map(f=>f.id===o?(this.publish({...f,...t,id:o,title:r}),{...f,...t,id:o,dismissible:c,title:r}):f):this.addToast({title:r,...a,dismissible:c,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let o=r!==void 0,l;const c=a.then(async d=>{if(l=["resolve",d],z.isValidElement(d))o=!1,this.create({id:r,type:"default",message:d});else if(JL(d)&&!d.ok){o=!1;const p=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,g=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,w=typeof p=="object"&&!z.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:g,...w})}else if(d instanceof Error){o=!1;const p=typeof n.error=="function"?await n.error(d):n.error,g=typeof n.description=="function"?await n.description(d):n.description,w=typeof p=="object"&&!z.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:g,...w})}else if(n.success!==void 0){o=!1;const p=typeof n.success=="function"?await n.success(d):n.success,g=typeof n.description=="function"?await n.description(d):n.description,w=typeof p=="object"&&!z.isValidElement(p)?p:{message:p};this.create({id:r,type:"success",description:g,...w})}}).catch(async d=>{if(l=["reject",d],n.error!==void 0){o=!1;const m=typeof n.error=="function"?await n.error(d):n.error,p=typeof n.description=="function"?await n.description(d):n.description,b=typeof m=="object"&&!z.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:p,...b})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((d,m)=>c.then(()=>l[0]==="reject"?m(l[1]):d(l[1])).catch(m));return typeof r!="string"&&typeof r!="number"?{unwrap:f}:Object.assign(r,{unwrap:f})},this.custom=(t,n)=>{const r=n?.id||q1++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Un=new XL,ZL=(e,t)=>{const n=t?.id||q1++;return Un.addToast({title:e,...t,id:n}),n},JL=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",eq=ZL,tq=()=>Un.toasts,nq=()=>Un.getActiveToasts(),ze=Object.assign(eq,{success:Un.success,info:Un.info,warning:Un.warning,error:Un.error,custom:Un.custom,message:Un.message,promise:Un.promise,dismiss:Un.dismiss,loading:Un.loading},{getHistory:tq,getToasts:nq});qL
vendor: 4,787 bytes, line 49
49("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
vendor: 10,086 bytes, line 49
49left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function 
vendor: 544 bytes, line 49
49rh(e){return e.label!==void 0}const rq=3,aq="24px",iq="16px",CE=4e3,oq=356,sq=14,lq=45,cq=200;function oa(...e){return e.filter(Boolean).join(" ")}function uq(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const fq=e=>{var t,n,r,a,o,l,c,f,d;const{invert:m,toast:p,unstyled:g,interacting:b,setHeights:w,visibleToasts:S,heights:A,index:_,toasts:T,expanded:E,removeToast:P,defaultRichColors:O,closeButton:C,style:j,cancelButtonStyle:N,actionButtonStyle:B,className:q="",descriptionClassName:I="",duration:L,position:W,gap:K,exp
vendor: 19,454 bytes, line 49
49andByDefault:U,classNames:R,icons:F,closeButtonAriaLabel:H="Close toast"}=e,[J,ae]=z.useState(null),[$,V]=z.useState(null),[Y,Z]=z.useState(!1),[ce,he]=z.useState(!1),[me,ye]=z.useState(!1),[ue,pe]=z.useState(!1),[we,oe]=z.useState(!1),[$e,Ee]=z.useState(0),[Qe,Ke]=z.useState(0),St=z.useRef(p.duration||L||CE),hn=z.useRef(null),jt=z.useRef(null),Kt=_===0,on=_+1<=S,ft=p.type,Cn=p.dismissible!==!1,Bt=p.className||"",li=p.descriptionClassName||"",wa=z.useMemo(()=>A.findIndex(Oe=>Oe.toastId===p.id)||0,[A,p.id]),Br=z.useMemo(()=>{var Oe;return(Oe=p.closeButton)!=null?Oe:C},[p.closeButton,C]),kn=z.useMemo(()=>p.duration||L||CE,[p.duration,L]),Ir=z.useRef(0),dr=z.useRef(0),Gn=z.useRef(0),$r=z.useRef(null),[Aa,pn]=W.split("-"),Tn=z.useMemo(()=>A.reduce((Oe,Ye,nt)=>nt>=wa?Oe:Oe+Ye.height,0),[A,wa]),Yt=QL(),sc=p.invert||m,ci=ft==="loading";dr.current=z.useMemo(()=>wa*K+Tn,[wa,Tn]),z.useEffect(()=>{St.current=kn},[kn]),z.useEffect(()=>{Z(!0)},[]),z.useEffect(()=>{const Oe=jt.current;if(Oe){const Ye=Oe.getBoundingClientRect().height;return Ke(Ye),w(nt=>[{toastId:p.id,height:Ye,position:p.position},...nt]),()=>w(nt=>nt.filter(at=>at.toastId!==p.id))}},[w,p.id]),z.useLayoutEffect(()=>{if(!Y)return;const Oe=jt.current,Ye=Oe.style.height;Oe.style.height="auto";const nt=Oe.getBoundingClientRect().height;Oe.style.height=Ye,Ke(nt),w(at=>at.find(it=>it.toastId===p.id)?at.map(it=>it.toastId===p.id?{...it,height:nt}:it):[{toastId:p.id,height:nt,position:p.position},...at])},[Y,p.title,p.description,w,p.id,p.jsx,p.action,p.cancel]);const hr=z.useCallback(()=>{he(!0),Ee(dr.current),w(Oe=>Oe.filter(Ye=>Ye.toastId!==p.id)),setTimeout(()=>{P(p)},cq)},[p,P,w,dr]);z.useEffect(()=>{if(p.promise&&ft==="loading"||p.duration===1/0||p.type==="loading")return;let Oe;return E||b||Yt?(()=>{if(Gn.current<Ir.current){const at=new Date().getTime()-Ir.current;St.current=St.current-at}Gn.current=new Date().getTime()})():(()=>{St.current!==1/0&&(Ir.current=new Date().getTime(),Oe=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),hr()},St.current))})(),()=>clearTimeout(Oe)},[E,b,p,ft,Yt,hr]),z.useEffect(()=>{p.delete&&(hr(),p.onDismiss==null||p.onDismiss.call(p,p))},[hr,p.delete]);function ui(){var Oe;if(F?.loading){var Ye;return z.createElement("div",{className:oa(R?.loader,p==null||(Ye=p.classNames)==null?void 0:Ye.loader,"sonner-loader"),"data-visible":ft==="loading"},F.loading)}return z.createElement(HL,{className:oa(R?.loader,p==null||(Oe=p.classNames)==null?void 0:Oe.loader),visible:ft==="loading"})}const fi=p.icon||F?.[ft]||FL(ft);var Et,Ct;return z.createElement("li",{tabIndex:0,ref:jt,className:oa(q,Bt,R?.toast,p==null||(t=p.classNames)==null?void 0:t.toast,R?.default,R?.[ft],p==null||(n=p.classNames)==null?void 0:n[ft]),"data-sonner-toast":"","data-rich-colors":(Et=p.richColors)!=null?Et:O,"data-styled":!(p.jsx||p.unstyled||g),"data-mounted":Y,"data-promise":!!p.promise,"data-swiped":we,"data-removed":ce,"data-visible":on,"data-y-position":Aa,"data-x-position":pn,"data-index":_,"data-front":Kt,"data-swiping":me,"data-dismissible":Cn,"data-type":ft,"data-invert":sc,"data-swipe-out":ue,"data-swipe-direction":$,"data-expanded":!!(E||U&&Y),"data-testid":p.testId,style:{"--index":_,"--toasts-before":_,"--z-index":T.length-_,"--offset":`${ce?$e:dr.current}px`,"--initial-height":U?"auto":`${Qe}px`,...j,...p.style},onDragEnd:()=>{ye(!1),ae(null),$r.current=null},onPointerDown:Oe=>{Oe.button!==2&&(ci||!Cn||(hn.current=new Date,Ee(dr.current),Oe.target.setPointerCapture(Oe.pointerId),Oe.target.tagName!=="BUTTON"&&(ye(!0),$r.current={x:Oe.clientX,y:Oe.clientY})))},onPointerUp:()=>{var Oe,Ye,nt;if(ue||!Cn)return;$r.current=null;const at=Number(((Oe=jt.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Qt=Number(((Ye=jt.current)==null?void 0:Ye.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),it=new Date().getTime()-((nt=hn.current)==null?void 0:nt.getTime()),Xe=J==="x"?at:Qt,An=Math.abs(Xe)/it;if(Math.abs(Xe)>=lq||An>.11){Ee(dr.current),p.onDismiss==null||p.onDismiss.call(p,p),V(J==="x"?at>0?"right":"left":Qt>0?"down":"up"),hr(),pe(!0);return}else{var wt,Tt;(wt=jt.current)==null||wt.style.setProperty("--swipe-amount-x","0px"),(Tt=jt.current)==null||Tt.style.setProperty("--swipe-amount-y","0px")}oe(!1),ye(!1),ae(null)},onPointerMove:Oe=>{var Ye,nt,at;if(!$r.current||!Cn||((Ye=window.getSelection())==null?void 0:Ye.toString().length)>0)return;const it=Oe.clientY-$r.current.y,Xe=Oe.clientX-$r.current.x;var An;const wt=(An=e.swipeDirections)!=null?An:uq(W);!J&&(Math.abs(Xe)>1||Math.abs(it)>1)&&ae(Math.abs(Xe)>Math.abs(it)?"x":"y");let Tt={x:0,y:0};const pr=mn=>1/(1.5+Math.abs(mn)/20);if(J==="y"){if(wt.includes("top")||wt.includes("bottom"))if(wt.includes("top")&&it<0||wt.includes("bottom")&&it>0)Tt.y=it;else{const mn=it*pr(it);Tt.y=Math.abs(mn)<Math.abs(it)?mn:it}}else if(J==="x"&&(wt.includes("left")||wt.includes("right")))if(wt.includes("left")&&Xe<0||wt.includes("right")&&Xe>0)Tt.x=Xe;else{const mn=Xe*pr(Xe);Tt.x=Math.abs(mn)<Math.abs(Xe)?mn:Xe}(Math.abs(Tt.x)>0||Math.abs(Tt.y)>0)&&oe(!0),(nt=jt.current)==null||nt.style.setProperty("--swipe-amount-x",`${Tt.x}px`),(at=jt.current)==null||at.style.setProperty("--swipe-amount-y",`${Tt.y}px`)}},Br&&!p.jsx&&ft!=="loading"?z.createElement("button",{"aria-label":H,"data-disabled":ci,"data-close-button":!0,onClick:ci||!Cn?()=>{}:()=>{hr(),p.onDismiss==null||p.onDismiss.call(p,p)},className:oa(R?.closeButton,p==null||(r=p.classNames)==null?void 0:r.closeButton)},(Ct=F?.close)!=null?Ct:YL):null,(ft||p.icon||p.promise)&&p.icon!==null&&(F?.[ft]!==null||p.icon)?z.createElement("div",{"data-icon":"",className:oa(R?.icon,p==null||(a=p.classNames)==null?void 0:a.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||ui():null,p.type!=="loading"?fi:null):null,z.createElement("div",{"data-content":"",className:oa(R?.content,p==null||(o=p.classNames)==null?void 0:o.content)},z.createElement("div",{"data-title":"",className:oa(R?.title,p==null||(l=p.classNames)==null?void 0:l.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?z.createElement("div",{"data-description":"",className:oa(I,li,R?.description,p==null||(c=p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),z.isValidElement(p.cancel)?p.cancel:p.cancel&&rh(p.cancel)?z.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||N,onClick:Oe=>{rh(p.cancel)&&Cn&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Oe),hr())},className:oa(R?.cancelButton,p==null||(f=p.classNames)==null?void 0:f.cancelButton)},p.cancel.label):null,z.isValidElement(p.action)?p.action:p.action&&rh(p.action)?z.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||B,onClick:Oe=>{rh(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,Oe),!Oe.defaultPrevented&&hr())},className:oa(R?.actionButton,p==null||(d=p.classNames)==null?void 0:d.actionButton)},p.action.label):null)};function TE(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function dq(e,t){const n={};return[e,t].forEach((r,a)=>{const o=a===1,l=o?"--mobile-offset":"--offset",c=o?iq:aq;function f(d){["top","right","bottom","left"].forEach(m=>{n[`${l}-${m}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?f(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${l}-${d}`]=c:n[`${l}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):f(c)}),n}const hq=z.forwardRef(function(t,n){const{id:r,invert:a,position:o="bottom-right",hotkey:l=["altKey","KeyT"],expand:c,closeButton:f,className:d,offset:m,mobileOffset:p,theme:g="light",richColors:b,duration:w,style:S,visibleToasts:A=rq,toastOptions:_,dir:T=TE(),gap:E=sq,icons:P,containerAriaLabel:O="Notifications"}=t,[C,j]=z.useState([]),N=z.useMemo(()=>r?C.filter(Y=>Y.toasterId===r):C.filter(Y=>!Y.toasterId),[C,r]),B=z.useMemo(()=>Array.from(new Set([o].concat(N.filter(Y=>Y.position).map(Y=>Y.position)))),[N,o]),[q,I]=z.useState([]),[L,W]=z.useState(!1),[K,U]=z.useState(!1),[R,F]=z.useState(g!=="system"?g:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=z.useRef(null),J=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),ae=z.useRef(null),$=z.useRef(!1),V=z.useCallback(Y=>{j(Z=>{var ce;return(ce=Z.find(he=>he.id===Y.id))!=null&&ce.delete||Un.dismiss(Y.id),Z.filter(({id:he})=>he!==Y.id)})},[]);return z.useEffect(()=>Un.subscribe(Y=>{if(Y.dismiss){requestAnimationFrame(()=>{j(Z=>Z.map(ce=>ce.id===Y.id?{...ce,delete:!0}:ce))});return}setTimeout(()=>{LL.flushSync(()=>{j(Z=>{const ce=Z.findIndex(he=>he.id===Y.id);return ce!==-1?[...Z.slice(0,ce),{...Z[ce],...Y},...Z.slice(ce+1)]:[Y,...Z]})})})}),[C]),z.useEffect(()=>{if(g!=="system"){F(g);return}if(g==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;const Y=window.matchMedia("(prefers-color-scheme: dark)");try{Y.addEventListener("change",({matches:Z})=>{F(Z?"dark":"light")})}catch{Y.addListener(({matches:ce})=>{try{F(ce?"dark":"light")}catch(he){console.error(he)}})}},[g]),z.useEffect(()=>{C.length<=1&&W(!1)},[C]),z.useEffect(()=>{const Y=Z=>{var ce;if(l.every(ye=>Z[ye]||Z.code===ye)){var me;W(!0),(me=H.current)==null||me.focus()}Z.code==="Escape"&&(document.activeElement===H.current||(ce=H.current)!=null&&ce.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[l]),z.useEffect(()=>{if(H.current)return()=>{ae.current&&(ae.current.focus({preventScroll:!0}),ae.current=null,$.current=!1)}},[H.current]),z.createElement("section",{ref:n,"aria-label":`${O} ${J}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},B.map((Y,Z)=>{var ce;const[he,me]=Y.split("-");return N.length?z.createElement("ol",{key:Y,dir:T==="auto"?TE():T,tabIndex:-1,ref:H,className:d,"data-sonner-toaster":!0,"data-sonner-theme":R,"data-y-position":he,"data-x-position":me,style:{"--front-toast-height":`${((ce=q[0])==null?void 0:ce.height)||0}px`,"--width":`${oq}px`,"--gap":`${E}px`,...S,...dq(m,p)},onBlur:ye=>{$.current&&!ye.currentTarget.contains(ye.relatedTarget)&&($.current=!1,ae.current&&(ae.current.focus({preventScroll:!0}),ae.current=null))},onFocus:ye=>{ye.target instanceof HTMLElement&&ye.target.dataset.dismissible==="false"||$.current||($.current=!0,ae.current=ye.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{K||W(!1)},onDragEnd:()=>W(!1),onPointerDown:ye=>{ye.target instanceof HTMLElement&&ye.target.dataset.dismissible==="false"||U(!0)},onPointerUp:()=>U(!1)},N.filter(ye=>!ye.position&&Z===0||ye.position===Y).map((ye,ue)=>{var pe,we;return z.createElement(fq,{key:ye.id,icons:P,index:ue,toast:ye,defaultRichColors:b,duration:(pe=_?.duration)!=null?pe:w,className:_?.className,descriptionClassName:_?.descriptionClassName,invert:a,visibleToasts:A,closeButton:(we=_?.closeButton)!=null?we:f,interacting:K,position:Y,style:_?.style,unstyled:_?.unstyled,classNames:_?.classNames,cancelButtonStyle:_?.cancelButtonStyle,actionButtonStyle:_?.actionButtonStyle,closeButtonAriaLabel:_?.closeButtonAriaLabel,removeToast:V,toasts:N.filter(oe=>oe.position==ye.position),heights:q.filter(oe=>oe.position==ye.position),setHeights:I,expandByDefault:c,gap:E,expanded:L,swipeDirections:t.swipeDirections})})):null}))}),pq=({...e})=>{const{theme:t="system"}=$L();return y.jsx(hq,{"data-loc":"client/src/components/ui/sonner.tsx:8",theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function Wa(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function PE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function O5(...e){return t=>{let n=!1;const r=e.map(a=>{const o=PE(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<r.length;a++){const o=r[a];typeof o=="function"?o():PE(e[a],null)}}}}function es(...e){return D.useCallback(O5(...e),e)}function _5(e,t=[]){let n=[];function r(o,l){const c=D.createContext(l),f=n.length;n=[...n,l];const d=p=>{const{scope:g,children:b,...w}=p,S=g?.[e]?.[f]||c,A=D.useMemo(()=>w,Object.values(w));return y.jsx(S.Provider,{value:A,children:b})};d.displayName=o+"Provider";function m(p,g){const b=g?.[e]?.[f]||c,w=D.useContext(b);if(w)return w;if(l!==void 0)return l;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[d,m]}const a=()=>{const o=n.map(l=>D.createContext(l));return function(c){const f=c?.[e]||o;return D.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return a.scopeName=e,[r,mq(a,...t)]}function mq(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const l=r.reduce((c,{useScope:f,scopeName:d})=>{const p=f(o)[`__scope${d}`];return{...c,...p}},{});return D.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function j5(e){const t=yq(e),n=D.forwardRef((r,a)=>{const{children:o,...l}=r,c=D.Children.toArray(o),f=c.find(bq);if(f){const d=f.props.children,m=c.map(p=>p===f?D.Children.count(d)>1?D.Children.only(null):D.isValidElement(d)?d.props.children:null:p);return y.jsx(t,{...l,ref:a,children:D.isValidElement(d)?D.cloneElement(d,void 0,m):null})}return y.jsx(t,{...l,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}var gq=j5("Slot");function yq(e){const t=D.forwardRef((n,r)=>{const{children:a,...o}=n;if(D.isValidElement(a)){const l=Sq(a),c=xq(o,a.props);return a.type!==D.Fragment&&(c.ref=r?O5(r,l):l),D.cloneElement(a,c)}return D.Children.count(a)>1?D.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var E5=Symbol("radix.slottable");function vq(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=E5,t}function bq(e){return D.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===E5}function xq(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...c)=>{const f=o(...c);return a(...c),f}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function Sq(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ts=wq.reduce((e,t)=>{const n=j5(`Primitive.${t}`),r=D.forwardRef((a,o)=>{const{asChild:l,...c}=a,f=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(f,{...c,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Aq(e,t){e&&Fi.flushSync(()=>e.dispatchEvent(t))}function Xp(e){const t=D.useRef(e);return D.useEffect(()=>{t.current=e}),D.useMemo(()=>(...n)=>t.current?.(...n),[])}function Oq(e,t=globalThis?.document){const n=Xp(e);D.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var _q="DismissableLayer",F1="dismissableLayer.update",jq="dismissableLayer.pointerDownOutside",Eq="dismissableLayer.focusOutside",ME,C5=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),T5=D.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:l,onDismiss:c,...f}=e,d=D.useContext(C5),[m,p]=D.useState(null),g=m?.ownerDocument??globalThis?.document,[,b]=D.useState({}),w=es(t,j=>p(j)),S=Array.from(d.layers),[A]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),_=S.indexOf(A),T=m?S.indexOf(m):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,P=T>=_,O=Pq(j=>{const N=j.target,B=[...d.branches].some(q=>q.contains(N));!P||B||(a?.(j),l?.(j),j.defaultPrevented||c?.())},g),C=Mq(j=>{const N=j.target;[...d.branches].some(q=>q.contains(N))||(o?.(j),l?.(j),j.defaultPrevented||c?.())},g);return Oq(j=>{T===d.layers.size-1&&(r?.(j),!j.defaultPrevented&&c&&(j.preventDefault(),c()))},g),D.useEffect(()=>{if(m)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(ME=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),DE(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=ME)}},[m,g,n,d]),D.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),DE())},[m,d]),D.useEffect(()=>{const j=()=>b({});return document.addEventListener(F1,j),()=>document.removeEventListener(F1,j)},[]),y.jsx(ts.div,{...f,ref:w,style:{pointerEvents:E?P?"auto":"none":void 0,...e.style},onFocusCapture:Wa(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Wa(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Wa(e.onPointerDownCapture,O.onPointerDownCapture)})});T5.displayName=_q;var Cq="DismissableLayerBranch",Tq=D.forwardRef((e,t)=>{const n=D.useContext(C5),r=D.useRef(null),a=es(t,r);return D.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),y.jsx(ts.div,{...e,ref:a})});Tq.displayName=Cq;function Pq(e,t=globalThis?.document){const n=Xp(e),r=D.useRef(!1),a=D.useRef(()=>{});return D.useEffect(()=>{const o=c=>{if(c.target&&!r.current){let f=function(){P5(jq,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=f,t.addEventListener("click",a.current,{once:!0})):f()}else t.removeEventListener("click",a.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Mq(e,t=globalThis?.document){const n=Xp(e),r=D.useRef(!1);return D.useEffect(()=>{const a=o=>{o.target&&!r.current&&P5(Eq,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function DE(){const e=new CustomEvent(F1);document.dispatchEvent(e)}function P5(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Aq(a,o):a.dispatchEvent(o)}var Mu=globalThis?.document?D.useLayoutEffect:()=>{};const Dq=["top","right","bottom","left"],Qi=Math.min,or=Math.max,kh=Math.round,ah=Math.floor,fa=e=>({x:e,y:e}),Nq={left:"right",right:"left",bottom:"top",top:"bottom"},Rq={start:"end",end:"start"};function U1(e,t,n){return or(e,Qi(t,n))}function Za(e,t){return typeof e=="function"?e(t):e}function Ja(e){return e.split("-")[0]}function Ul(e){return e.split("-")[1]}function Dw(e){return e==="x"?"y":"x"}function Nw(e){return e==="y"?"height":"width"}
vendor: 15,760 bytes, line 49
49const kq=new Set(["top","bottom"]);function la(e){return kq.has(Ja(e))?"y":"x"}function Rw(e){return Dw(la(e))}function zq(e,t,n){n===void 0&&(n=!1);const r=Ul(e),a=Rw(e),o=Nw(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=zh(l)),[l,zh(l)]}function Bq(e){const t=zh(e);return[H1(e),t,H1(t)]}function H1(e){return e.replace(/start|end/g,t=>Rq[t])}const NE=["left","right"],RE=["right","left"],Iq=["top","bottom"],$q=["bottom","top"];function Lq(e,t,n){switch(e){case"top":case"bottom":return n?t?RE:NE:t?NE:RE;case"left":case"right":return t?Iq:$q;default:return[]}}function qq(e,t,n,r){const a=Ul(e);let o=Lq(Ja(e),n==="start",r);return a&&(o=o.map(l=>l+"-"+a),t&&(o=o.concat(o.map(H1)))),o}function zh(e){return e.replace(/left|right|bottom|top/g,t=>Nq[t])}function Fq(e){return{top:0,right:0,bottom:0,left:0,...e}}function M5(e){return typeof e!="number"?Fq(e):{top:e,right:e,bottom:e,left:e}}function Bh(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function kE(e,t,n){let{reference:r,floating:a}=e;const o=la(t),l=Rw(t),c=Nw(l),f=Ja(t),d=o==="y",m=r.x+r.width/2-a.width/2,p=r.y+r.height/2-a.height/2,g=r[c]/2-a[c]/2;let b;switch(f){case"top":b={x:m,y:r.y-a.height};break;case"bottom":b={x:m,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:p};break;case"left":b={x:r.x-a.width,y:p};break;default:b={x:r.x,y:r.y}}switch(Ul(t)){case"start":b[l]-=g*(n&&d?-1:1);break;case"end":b[l]+=g*(n&&d?-1:1);break}return b}const Uq=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:l}=n,c=o.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:p}=kE(d,r,f),g=r,b={},w=0;for(let S=0;S<c.length;S++){const{name:A,fn:_}=c[S],{x:T,y:E,data:P,reset:O}=await _({x:m,y:p,initialPlacement:r,placement:g,strategy:a,middlewareData:b,rects:d,platform:l,elements:{reference:e,floating:t}});m=T??m,p=E??p,b={...b,[A]:{...b[A],...P}},O&&w<=50&&(w++,typeof O=="object"&&(O.placement&&(g=O.placement),O.rects&&(d=O.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):O.rects),{x:m,y:p}=kE(d,g,f)),S=-1)}return{x:m,y:p,placement:g,strategy:a,middlewareData:b}};async function Du(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:o,rects:l,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:g=!1,padding:b=0}=Za(t,e),w=M5(b),A=c[g?p==="floating"?"reference":"floating":p],_=Bh(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(A)))==null||n?A:A.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:m,strategy:f})),T=p==="floating"?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),P=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},O=Bh(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:T,offsetParent:E,strategy:f}):T);return{top:(_.top-O.top+w.top)/P.y,bottom:(O.bottom-_.bottom+w.bottom)/P.y,left:(_.left-O.left+w.left)/P.x,right:(O.right-_.right+w.right)/P.x}}const Hq=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:l,elements:c,middlewareData:f}=t,{element:d,padding:m=0}=Za(e,t)||{};if(d==null)return{};const p=M5(m),g={x:n,y:r},b=Rw(a),w=Nw(b),S=await l.getDimensions(d),A=b==="y",_=A?"top":"left",T=A?"bottom":"right",E=A?"clientHeight":"clientWidth",P=o.reference[w]+o.reference[b]-g[b]-o.floating[w],O=g[b]-o.reference[b],C=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let j=C?C[E]:0;(!j||!await(l.isElement==null?void 0:l.isElement(C)))&&(j=c.floating[E]||o.floating[w]);const N=P/2-O/2,B=j/2-S[w]/2-1,q=Qi(p[_],B),I=Qi(p[T],B),L=q,W=j-S[w]-I,K=j/2-S[w]/2+N,U=U1(L,K,W),R=!f.arrow&&Ul(a)!=null&&K!==U&&o.reference[w]/2-(K<L?q:I)-S[w]/2<0,F=R?K<L?K-L:K-W:0;return{[b]:g[b]+F,data:{[b]:U,centerOffset:K-U-F,...R&&{alignmentOffset:F}},reset:R}}}),Wq=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:l,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:S=!0,...A}=Za(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const _=Ja(a),T=la(c),E=Ja(c)===c,P=await(f.isRTL==null?void 0:f.isRTL(d.floating)),O=g||(E||!S?[zh(c)]:Bq(c)),C=w!=="none";!g&&C&&O.push(...qq(c,S,w,P));const j=[c,...O],N=await Du(t,A),B=[];let q=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&B.push(N[_]),p){const K=zq(a,l,P);B.push(N[K[0]],N[K[1]])}if(q=[...q,{placement:a,overflows:B}],!B.every(K=>K<=0)){var I,L;const K=(((I=o.flip)==null?void 0:I.index)||0)+1,U=j[K];if(U&&(!(p==="alignment"?T!==la(U):!1)||q.every(H=>la(H.placement)===T?H.overflows[0]>0:!0)))return{data:{index:K,overflows:q},reset:{placement:U}};let R=(L=q.filter(F=>F.overflows[0]<=0).sort((F,H)=>F.overflows[1]-H.overflows[1])[0])==null?void 0:L.placement;if(!R)switch(b){case"bestFit":{var W;const F=(W=q.filter(H=>{if(C){const J=la(H.placement);return J===T||J==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(J=>J>0).reduce((J,ae)=>J+ae,0)]).sort((H,J)=>H[1]-J[1])[0])==null?void 0:W[0];F&&(R=F);break}case"initialPlacement":R=c;break}if(a!==R)return{reset:{placement:R}}}return{}}}};function zE(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function BE(e){return Dq.some(t=>e[t]>=0)}const Vq=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=Za(e,t);switch(r){case"referenceHidden":{const o=await Du(t,{...a,elementContext:"reference"}),l=zE(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:BE(l)}}}case"escaped":{const o=await Du(t,{...a,altBoundary:!0}),l=zE(o,n.floating);return{data:{escapedOffsets:l,escaped:BE(l)}}}default:return{}}}}},D5=new Set(["left","top"]);async function Gq(e,t){const{placement:n,platform:r,elements:a}=e,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=Ja(n),c=Ul(n),f=la(n)==="y",d=D5.has(l)?-1:1,m=o&&f?-1:1,p=Za(t,e);let{mainAxis:g,crossAxis:b,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof w=="number"&&(b=c==="end"?w*-1:w),f?{x:b*m,y:g*d}:{x:g*d,y:b*m}}const Kq=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:l,middlewareData:c}=t,f=await Gq(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:a+f.x,y:o+f.y,data:{...f,placement:l}}}}},Yq=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:c={fn:A=>{let{x:_,y:T}=A;return{x:_,y:T}}},...f}=Za(e,t),d={x:n,y:r},m=await Du(t,f),p=la(Ja(a)),g=Dw(p);let b=d[g],w=d[p];if(o){const A=g==="y"?"top":"left",_=g==="y"?"bottom":"right",T=b+m[A],E=b-m[_];b=U1(T,b,E)}if(l){const A=p==="y"?"top":"left",_=p==="y"?"bottom":"right",T=w+m[A],E=w-m[_];w=U1(T,w,E)}const S=c.fn({...t,[g]:b,[p]:w});return{...S,data:{x:S.x-n,y:S.y-r,enabled:{[g]:o,[p]:l}}}}}},Qq=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:l}=t,{offset:c=0,mainAxis:f=!0,crossAxis:d=!0}=Za(e,t),m={x:n,y:r},p=la(a),g=Dw(p);let b=m[g],w=m[p];const S=Za(c,t),A=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(f){const E=g==="y"?"height":"width",P=o.reference[g]-o.floating[E]+A.mainAxis,O=o.reference[g]+o.reference[E]-A.mainAxis;b<P?b=P:b>O&&(b=O)}if(d){var _,T;const E=g==="y"?"width":"height",P=D5.has(Ja(a)),O=o.reference[p]-o.floating[E]+(P&&((_=l.offset)==null?void 0:_[p])||0)+(P?0:A.crossAxis),C=o.reference[p]+o.reference[E]+(P?0:((T=l.offset)==null?void 0:T[p])||0)-(P?A.crossAxis:0);w<O?w=O:w>C&&(w=C)}return{[g]:b,[p]:w}}}},Xq=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:l,elements:c}=t,{apply:f=()=>{},...d}=Za(e,t),m=await Du(t,d),p=Ja(a),g=Ul(a),b=la(a)==="y",{width:w,height:S}=o.floating;let A,_;p==="top"||p==="bottom"?(A=p,_=g===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(_=p,A=g==="end"?"top":"bottom");const T=S-m.top-m.bottom,E=w-m.left-m.right,P=Qi(S-m[A],T),O=Qi(w-m[_],E),C=!t.middlewareData.shift;let j=P,N=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=T),C&&!g){const q=or(m.left,0),I=or(m.right,0),L=or(m.top,0),W=or(m.bottom,0);b?N=w-2*(q!==0||I!==0?q+I:or(m.left,m.right)):j=S-2*(L!==0||W!==0?L+W:or(m.top,m.bottom))}await f({...t,availableWidth:N,availableHeight:j});const B=await l.getDimensions(c.floating);return w!==B.width||S!==B.height?{reset:{rects:!0}}:{}}}};function Zp(){return typeof window<"u"}function Hl(e){return N5(e)?(e.nodeName||"").toLowerCase():"#document"}function cr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ba(e){var t;return(t=(N5(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function N5(e){return Zp()?e instanceof Node||e instanceof cr(e).Node:!1}function Kr(e){return Zp()?e instanceof Element||e instanceof cr(e).Element:!1}function ma(e){return Zp()?e instanceof HTMLElement||e instanceof cr(e).HTMLElement:!1}function IE(e){return!Zp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof cr(e).ShadowRoot}const Zq=new Set(["inline","contents"]);function _f(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Yr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Zq.has(a)}const Jq=new Set(["table","td","th"]);function e9(e){return Jq.has(Hl(e))}const t9=[":popover-open",":modal"];function Jp(e){return t9.some(t=>{try{return e.matches(t)}catch{return!1}})}const n9=["transform","translate","scale","rotate","perspective"],r9=["transform","translate","scale","rotate","perspective","filter"],a9=["paint","layout","strict","content"];function kw(e){const t=zw(),n=Kr(e)?Yr(e):e;return n9.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||r9.some(r=>(n.willChange||"").includes(r))||a9.some(r=>(n.contain||"").includes(r))}function i9(e){let t=Xi(e);for(;ma(t)&&!ml(t);){if(kw(t))return t;if(Jp(t))return null;t=Xi(t)}return null}function zw(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const o9=new Set(["html","body","#document"]);function ml(e){return o9.has(Hl(e))}function Yr(e){return cr(e).getComputedStyle(e)}function em(e){return Kr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xi(e){if(Hl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||IE(e)&&e.host||ba(e);return IE(t)?t.host:t}function R5(e){const t=Xi(e);return ml(t)?e.ownerDocument?e.ownerDocument.body:e.body:ma(t)&&_f(t)?t:R5(t)}function Nu(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=R5(e),o=a===((r=e.ownerDocument)==null?void 0:r.body),l=cr(a);if(o){const c=W1(l);return t.concat(l,l.visualViewport||[],_f(a)?a:[],c&&n?Nu(c):[])}return t.concat(a,Nu(a,[],n))}function W1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function k5(e){const t=Yr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=ma(e),o=a?e.offsetWidth:n,l=a?e.offsetHeight:r,c=kh(n)!==o||kh(r)!==l;return c&&(n=o,r=l),{width:n,height:r,$:c}}function Bw(e){return Kr(e)?e:e.contextElement}function sl(e){const t=Bw(e);if(!ma(t))return fa(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=k5(t);let l=(o?kh(n.width):n.width)/r,c=(o?kh(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const s9=fa(0);function z5(e){const t=cr(e);return!zw()||!t.visualViewport?s9:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function l9(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==cr(e)?!1:t}function Uo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=Bw(e);let l=fa(1);t&&(r?Kr(r)&&(l=sl(r)):l=sl(e));const c=l9(o,n,r)?z5(o):fa(0);let f=(a.left+c.x)/l.x,d=(a.top+c.y)/l.y,m=a.width/l.x,p=a.height/l.y;if(o){const g=cr(o),b=r&&Kr(r)?cr(r):r;let w=g,S=W1(w);for(;S&&r&&b!==w;){const A=sl(S),_=S.getBoundingClientRect(),T=Yr(S),E=_.left+(S.clientLeft+parseFloat(T.paddingLeft))*A.x,P=_.top+(S.clientTop+parseFloat(T.paddingTop))*A.y;f*=A.x,d*=A.y,m*=A.x,p*=A.y,f+=E,d+=P,w=cr(S),S=W1(w)}}return Bh({width:m,height:p,x:f,y:d})}function tm(e,t){const n=em(e).scrollLeft;return t?t.left+n:Uo(ba(e)).left+n}function B5(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-tm(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function c9(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=a==="fixed",l=ba(r),c=t?Jp(t.floating):!1;if(r===l||c&&o)return n;let f={scrollLeft:0,scrollTop:0},d=fa(1);const m=fa(0),p=ma(r);if((p||!p&&!o)&&((Hl(r)!=="body"||_f(l))&&(f=em(r)),ma(r))){const b=Uo(r);d=sl(r),m.x=b.x+r.clientLeft,m.y=b.y+r.clientTop}const g=l&&!p&&!o?B5(l,f):fa(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+m.x+g.x,y:n.y*d.y-f.scrollTop*d.y+m.y+g.y}}function u9(e){return Array.from(e.getClientRects())}function f9(e){const t=ba(e),n=em(e),r=e.ownerDocument.body,a=or(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=or(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+tm(e);const c=-n.scrollTop;return Yr(r).direction==="rtl"&&(l+=or(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:l,y:c}}const $E=25;function d9(e,t){const n=cr(e),r=ba(e),a=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,c=0,f=0;if(a){o=a.width,l=a.height;const m=zw();(!m||m&&t==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}const d=tm(r);if(d<=0){const m=r.ownerDocument,p=m.body,g=getComputedStyle(p),b=m.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-p.clientWidth-b);w<=$E&&(o-=w)}else d<=$E&&(o+=d);return{width:o,height:l,x:c,y:f}}const h9=new Set(["absolute","fixed"]);function p9(e,t){const n=Uo(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=ma(e)?sl(e):fa(1),l=e.clientWidth*o.x,c=e.clientHeight*o.y,f=a*o.x,d=r*o.y;return{width:l,height:c,x:f,y:d}}function LE(e,t,n){let r;if(t==="viewport")r=d9(e,n);else if(t==="document")r=f9(ba(e));else if(Kr(t))r=p9(t,n);else{const a=z5(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Bh(r)}function I5(e,t){const n=Xi(e);return n===t||!Kr(n)||ml(n)?!1:Yr(n).position==="fixed"||I5(n,t)}function m9(e,t){const n=t.get(e);if(n)return n;let r=Nu(e,[],!1).filter(c=>Kr(c)&&Hl(c)!=="body"),a=null;const o=Yr(e).position==="fixed";let l=o?Xi(e):e;for(;Kr(l)&&!ml(l);){const c=Yr(l),f=kw(l);!f&&c.position==="fixed"&&(a=null),(o?!f&&!a:!f&&c.position==="static"&&!!a&&h9.has(a.position)||_f(l)&&!f&&I5(e,l))?r=r.filter(m=>m!==l):a=c,l=Xi(l)}return t.set(e,r),r}function g9(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Jp(t)?[]:m9(t,this._c):[].concat(n),r],c=l[0],f=l.reduce((d,m)=>{const p=LE(t,m,a);return d.top=or(p.top,d.top),d.right=Qi(p.right,d.right),d.bottom=Qi(p.bottom,d.bottom),d.left
vendor: 4,454 bytes, line 49
49=or(p.left,d.left),d},LE(t,c,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function y9(e){const{width:t,height:n}=k5(e);return{width:t,height:n}}function v9(e,t,n){const r=ma(t),a=ba(t),o=n==="fixed",l=Uo(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const f=fa(0);function d(){f.x=tm(a)}if(r||!r&&!o)if((Hl(t)!=="body"||_f(a))&&(c=em(t)),r){const b=Uo(t,!0,o,t);f.x=b.x+t.clientLeft,f.y=b.y+t.clientTop}else a&&d();o&&!r&&a&&d();const m=a&&!r&&!o?B5(a,c):fa(0),p=l.left+c.scrollLeft-f.x-m.x,g=l.top+c.scrollTop-f.y-m.y;return{x:p,y:g,width:l.width,height:l.height}}function hv(e){return Yr(e).position==="static"}function qE(e,t){if(!ma(e)||Yr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ba(e)===n&&(n=n.ownerDocument.body),n}function $5(e,t){const n=cr(e);if(Jp(e))return n;if(!ma(e)){let a=Xi(e);for(;a&&!ml(a);){if(Kr(a)&&!hv(a))return a;a=Xi(a)}return n}let r=qE(e,t);for(;r&&e9(r)&&hv(r);)r=qE(r,t);return r&&ml(r)&&hv(r)&&!kw(r)?n:r||i9(e)||n}const b9=async function(e){const t=this.getOffsetParent||$5,n=this.getDimensions,r=await n(e.floating);return{reference:v9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function x9(e){return Yr(e).direction==="rtl"}const S9={convertOffsetParentRelativeRectToViewportRelativeRect:c9,getDocumentElement:ba,getClippingRect:g9,getOffsetParent:$5,getElementRects:b9,getClientRects:u9,getDimensions:y9,getScale:sl,isElement:Kr,isRTL:x9};function L5(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function w9(e,t){let n=null,r;const a=ba(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),o();const d=e.getBoundingClientRect(),{left:m,top:p,width:g,height:b}=d;if(c||t(),!g||!b)return;const w=ah(p),S=ah(a.clientWidth-(m+g)),A=ah(a.clientHeight-(p+b)),_=ah(m),E={rootMargin:-w+"px "+-S+"px "+-A+"px "+-_+"px",threshold:or(0,Qi(1,f))||1};let P=!0;function O(C){const j=C[0].intersectionRatio;if(j!==f){if(!P)return l();j?l(!1,j):r=setTimeout(()=>{l(!1,1e-7)},1e3)}j===1&&!L5(d,e.getBoundingClientRect())&&l(),P=!1}try{n=new IntersectionObserver(O,{...E,root:a.ownerDocument})}catch{n=new IntersectionObserver(O,E)}n.observe(e)}return l(!0),o}function A9(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=Bw(e),m=a||o?[...d?Nu(d):[],...Nu(t)]:[];m.forEach(_=>{a&&_.addEventListener("scroll",n,{passive:!0}),o&&_.addEventListener("resize",n)});const p=d&&c?w9(d,n):null;let g=-1,b=null;l&&(b=new ResizeObserver(_=>{let[T]=_;T&&T.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var E;(E=b)==null||E.observe(t)})),n()}),d&&!f&&b.observe(d),b.observe(t));let w,S=f?Uo(e):null;f&&A();function A(){const _=Uo(e);S&&!L5(S,_)&&n(),S=_,w=requestAnimationFrame(A)}return n(),()=>{var _;m.forEach(T=>{a&&T.removeEventListener("scroll",n),o&&T.removeEventListener("resize",n)}),p?.(),(_=b)==null||_.disconnect(),b=null,f&&cancelAnimationFrame(w)}}const O9=Kq,_9=Yq,j9=Wq,E9=Xq,C9=Vq,FE=Hq,T9=Qq,P9=(e,t,n)=>{const r=new Map,a={platform:S9,...n},o={...a.platform,_c:r};return Uq(e,t,{...a,platform:o})};var M9=typeof document<"u",D9=function(){},Ch=M9?D.useLayoutEffect:D9;function Ih(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ih(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const o=a[r];if(!(o==="_owner"&&e.$$typeof)&&!Ih(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function q5(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function UE(e,t){const n=q5(e);return Math.round(t*n)/n}function pv(e){const t=D.useRef(e);return Ch(()=>{t.current=e}),t}function N9(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:l}={},transform:c=!0,whileElementsMounted:f,open:d}=e,[m,p]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,b]=D.useState(r);Ih(g,r)||b(r);
vendor: 5,220 bytes, line 49
49const[w,S]=D.useState(null),[A,_]=D.useState(null),T=D.useCallback(H=>{H!==C.current&&(C.current=H,S(H))},[]),E=D.useCallback(H=>{H!==j.current&&(j.current=H,_(H))},[]),P=o||w,O=l||A,C=D.useRef(null),j=D.useRef(null),N=D.useRef(m),B=f!=null,q=pv(f),I=pv(a),L=pv(d),W=D.useCallback(()=>{if(!C.current||!j.current)return;const H={placement:t,strategy:n,middleware:g};I.current&&(H.platform=I.current),P9(C.current,j.current,H).then(J=>{const ae={...J,isPositioned:L.current!==!1};K.current&&!Ih(N.current,ae)&&(N.current=ae,Fi.flushSync(()=>{p(ae)}))})},[g,t,n,I,L]);Ch(()=>{d===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(H=>({...H,isPositioned:!1})))},[d]);const K=D.useRef(!1);Ch(()=>(K.current=!0,()=>{K.current=!1}),[]),Ch(()=>{if(P&&(C.current=P),O&&(j.current=O),P&&O){if(q.current)return q.current(P,O,W);W()}},[P,O,W,q,B]);const U=D.useMemo(()=>({reference:C,floating:j,setReference:T,setFloating:E}),[T,E]),R=D.useMemo(()=>({reference:P,floating:O}),[P,O]),F=D.useMemo(()=>{const H={position:n,left:0,top:0};if(!R.floating)return H;const J=UE(R.floating,m.x),ae=UE(R.floating,m.y);return c?{...H,transform:"translate("+J+"px, "+ae+"px)",...q5(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:J,top:ae}},[n,c,R.floating,m.x,m.y]);return D.useMemo(()=>({...m,update:W,refs:U,elements:R,floatingStyles:F}),[m,W,U,R,F])}const R9=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?FE({element:r.current,padding:a}).fn(n):{}:r?FE({element:r,padding:a}).fn(n):{}}}},k9=(e,t)=>({...O9(e),options:[e,t]}),z9=(e,t)=>({..._9(e),options:[e,t]}),B9=(e,t)=>({...T9(e),options:[e,t]}),I9=(e,t)=>({...j9(e),options:[e,t]}),$9=(e,t)=>({...E9(e),options:[e,t]}),L9=(e,t)=>({...C9(e),options:[e,t]}),q9=(e,t)=>({...R9(e),options:[e,t]});var F9="Arrow",F5=D.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return y.jsx(ts.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});F5.displayName=F9;var U9=F5;function H9(e){const[t,n]=D.useState(void 0);return Mu(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let l,c;if("borderBoxSize"in o){const f=o.borderBoxSize,d=Array.isArray(f)?f[0]:f;l=d.inlineSize,c=d.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var U5="Popper",[H5,W5]=_5(U5),[pue,V5]=H5(U5),G5="PopperAnchor",K5=D.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=V5(G5,n),l=D.useRef(null),c=es(t,l),f=D.useRef(null);return D.useEffect(()=>{const d=f.current;f.current=r?.current||l.current,d!==f.current&&o.onAnchorChange(f.current)}),r?null:y.jsx(ts.div,{...a,ref:c})});K5.displayName=G5;var Iw="PopperContent",[W9,V9]=H5(Iw),Y5=D.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:o="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:m=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:b="optimized",onPlaced:w,...S}=e,A=V5(Iw,n),[_,T]=D.useState(null),E=es(t,me=>T(me)),[P,O]=D.useState(null),C=H9(P),j=C?.width??0,N=C?.height??0,B=r+(o!=="center"?"-"+o:""),q=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},I=Array.isArray(d)?d:[d],L=I.length>0,W={padding:q,boundary:I.filter(K9),altBoundary:L},{refs:K,floatingStyles:U,placement:R,isPositioned:F,middlewareData:H}=N9({strategy:"fixed",placement:B,whileElementsMounted:(...me)=>A9(...me,{animationFrame:b==="always"}),elements:{reference:A.anchor},middleware:[k9({mainAxis:a+N,alignmentAxis:l}),f&&z9({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?B9():void 0,...W}),f&&I9({...W}),$9({...W,apply:({elements:me,rects:ye,availableWidth:ue,availableHeight:pe})=>{const{width:we,height:oe}=ye.reference,$e=me.floating.style;$e.setProperty("--radix-popper-available-width",`${ue}px`),$e.setProperty("--radix-popper-available-height",`${pe}px`),$e.setProperty("--radix-popper-anchor-width",`${we}px`),$e.setProperty("--radix-popper-anchor-height",`${oe}px`)}}),P&&q9({element:P,padding:c}),Y9({arrowWidth:j,arrowHeight:N}),g&&L9({strategy:"referenceHidden",...W})]}),[J,ae]=Z5(R),$=Xp(w);Mu(()=>{F&&$?.()},[F,$]);const V=H.arrow?.x,Y=H.arrow?.y,Z=H.arrow?.centerOffset!==0,[ce,he]=D.useState();return Mu(()=>{_&&he(window.getComputedStyle(_).zIndex)},[_]),y.jsx("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:F?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(W9,{scope:n,placedSide:J,onArrowChange:O,arrowX:V,arrowY:Y,shouldHideArrow:Z,children:y.jsx(ts.div,{"data-side":J,"data-align":ae,...S,ref:E,style:{...S.style,animation:F?void 0:"none"}})})})});Y5.displayName=Iw;var Q5="PopperArrow",G9={top:"bottom",right:"left",bottom:"top",left:"r
49ight"},X5=D.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,o=V9(Q5,r),l=G9[o.placedSide];return y.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:y.jsx(U9,{...a,ref:n,style:{...a.style,display:"block"}})})});X5.displayName=Q5;function K9(e){return e!==null}var Y9=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:a}=t,l=a.arrow?.centerOffset!==0,c=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[d,m]=Z5(n),p={start:"0%",center:"50%",end:"100%"}[m],g=(a.arrow?.x??0)+c/2,b=(a.arrow?.y??0)+f/2;let w="",S="";return d==="bottom"?(w=l?p:`${g}px`,S=`${-f}px`):d==="top"?(w=l?p:`${g}px`,S=`${r.floating.height+f}px`):d==="right"?(w=`${-f}px`,S=l?p:`${b}px`):d==="left"&&(w=`${r.floating.width+f}px`,S=l?p:`${b}px`),{data:{x:w,y:S}}}});function Z5(e){const[t,n="center"]=e.split("-");return[t,n]}var Q9=K5,X9=Y5,Z9=X5;function J9(e,t){return D.useReducer((n,r)=>t[n][r]??n,e)}var J5=e=>{const{present:t,children:n}=e,r=eF(t),a=typeof n=="function"?n({present:r.isPresent}):D.Children.only(n),o=es(r.ref,tF(a));return typeof n=="function"||r.isPresent?D.cloneElement(a,{ref:o}):null};J5.displayName="Presence";function eF(e){const[t,n]=D.useState(),r=D.useRef(null),a=D.useRef(e),o=D.useRef("none"),l=e?"mounted":"unmounted",[c,f]=J9(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect(()=>{const d=ih(r.current);o.current=c==="mounted"?d:"none"},[c]),Mu(()=>{const d=r.current,m=a.current;if(m!==e){const g=o.current,b=ih(d);e?f("MOUNT"):b==="none"||d?.display==="none"?f("UNMOUNT"):f(m&&g!==b?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,f]),Mu(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,p=b=>{const S=ih(r.current).includes(CSS.escape(b.animationName));if(b.target===t&&S&&(f("ANIMATION_END"),!a.current)){const A=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=A)})}},g=b=>{b.target===t&&(o.current=ih(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:D.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function ih(e){return e?.animationName||"none"}function tF(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var nF=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),rF="VisuallyHidden",e3=D.forwardRef((e,t)=>y.jsx(ts.span,{...e,ref:t,style:{...nF,...e.style}}));e3.displayName=rF;var aF=e3,[nm]=_5("Tooltip",[W5]),$w=W5(),t3="TooltipProvider",iF=700,HE="tooltip.open",[oF,n3]=nm(t3),r3=e=>{const{__scopeTooltip:t,delayDuration:n=iF,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:o}=e,l=D.useRef(!0),c=D.useRef(!1),f=D.useRef(0);return D.useEffect(()=>{const d=f.current;return()=>window.clearTimeout(d)},[]),y.jsx(oF,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:D.useCallback(()=>{window.clearTimeout(f.current),l.current=!1},[]),onClose:D.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:D.useCallback(d=>{c.current=d},[]),disableHoverableContent:a,children:o})};r3.displayName=t3;var a3="Tooltip",[mue,rm]=nm(a3),V1="TooltipTrigger",sF=D.forwardRef((e,t)=>
vendor: 12,905 bytes, line 49
49{const{__scopeTooltip:n,...r}=e,a=rm(V1,n),o=n3(V1,n),l=$w(n),c=D.useRef(null),f=es(t,c,a.onTriggerChange),d=D.useRef(!1),m=D.useRef(!1),p=D.useCallback(()=>d.current=!1,[]);return D.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),y.jsx(Q9,{asChild:!0,...l,children:y.jsx(ts.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:f,onPointerMove:Wa(e.onPointerMove,g=>{g.pointerType!=="touch"&&!m.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),m.current=!0)}),onPointerLeave:Wa(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:Wa(e.onPointerDown,()=>{a.open&&a.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Wa(e.onFocus,()=>{d.current||a.onOpen()}),onBlur:Wa(e.onBlur,a.onClose),onClick:Wa(e.onClick,a.onClose)})})});sF.displayName=V1;var lF="TooltipPortal",[gue,cF]=nm(lF,{forceMount:void 0}),gl="TooltipContent",uF=D.forwardRef((e,t)=>{const n=cF(gl,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...o}=e,l=rm(gl,e.__scopeTooltip);return y.jsx(J5,{present:r||l.open,children:l.disableHoverableContent?y.jsx(i3,{side:a,...o,ref:t}):y.jsx(fF,{side:a,...o,ref:t})})}),fF=D.forwardRef((e,t)=>{const n=rm(gl,e.__scopeTooltip),r=n3(gl,e.__scopeTooltip),a=D.useRef(null),o=es(t,a),[l,c]=D.useState(null),{trigger:f,onClose:d}=n,m=a.current,{onPointerInTransitChange:p}=r,g=D.useCallback(()=>{c(null),p(!1)},[p]),b=D.useCallback((w,S)=>{const A=w.currentTarget,_={x:w.clientX,y:w.clientY},T=gF(_,A.getBoundingClientRect()),E=yF(_,T),P=vF(S.getBoundingClientRect()),O=xF([...E,...P]);c(O),p(!0)},[p]);return D.useEffect(()=>()=>g(),[g]),D.useEffect(()=>{if(f&&m){const w=A=>b(A,m),S=A=>b(A,f);return f.addEventListener("pointerleave",w),m.addEventListener("pointerleave",S),()=>{f.removeEventListener("pointerleave",w),m.removeEventListener("pointerleave",S)}}},[f,m,b,g]),D.useEffect(()=>{if(l){const w=S=>{const A=S.target,_={x:S.clientX,y:S.clientY},T=f?.contains(A)||m?.contains(A),E=!bF(_,l);T?g():E&&(g(),d())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[f,m,l,d,g]),y.jsx(i3,{...e,ref:o})}),[dF,hF]=nm(a3,{isInside:!1}),pF=vq("TooltipContent"),i3=D.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:l,...c}=e,f=rm(gl,n),d=$w(n),{onClose:m}=f;return D.useEffect(()=>(document.addEventListener(HE,m),()=>document.removeEventListener(HE,m)),[m]),D.useEffect(()=>{if(f.trigger){const p=g=>{g.target?.contains(f.trigger)&&m()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[f.trigger,m]),y.jsx(T5,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:p=>p.preventDefault(),onDismiss:m,children:y.jsxs(X9,{"data-state":f.stateAttribute,...d,...c,ref:t,style:{...c.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:[y.jsx(pF,{children:r}),y.jsx(dF,{scope:n,isInside:!0,children:y.jsx(aF,{id:f.contentId,role:"tooltip",children:a||r})})]})})});uF.displayName=gl;var o3="TooltipArrow",mF=D.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=$w(n);return hF(o3,n).isInside?null:y.jsx(Z9,{...a,...r,ref:t})});mF.displayName=o3;function gF(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,a,o)){case o:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function yF(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function vF(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function bF(e,t){const{x:n,y:r}=e;let a=!1;for(let o=0,l=t.length-1;o<t.length;l=o++){const c=t[o],f=t[l],d=c.x,m=c.y,p=f.x,g=f.y;m>r!=g>r&&n<(p-d)*(r-m)/(g-m)+d&&(a=!a)}return a}function xF(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),SF(t)}function SF(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const o=t[t.length-1],l=t[t.length-2];if((o.x-l.x)*(a.y-l.y)>=(o.y-l.y)*(a.x-l.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const o=n[n.length-1],l=n[n.length-2];if((o.x-l.x)*(a.y-l.y)>=(o.y-l.y)*(a.x-l.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var wF=r3;function s3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=s3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ne(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=s3(e))&&(r&&(r+=" "),r+=t);return r}const Lw="-",AF=e=>{const t=_F(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const c=l.split(Lw);return c[0]===""&&c.length!==1&&c.shift(),l3(c,t)||OF(l)},getConflictingClassGroupIds:(l,c)=>{const f=n[l]||[];return c&&r[l]?[...f,...r[l]]:f}}},l3=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?l3(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(Lw);return t.validators.find(({validator:l})=>l(o))?.classGroupId},WE=/^\[(.+)\]$/,OF=e=>{if(WE.test(e)){const t=WE.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},_F=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)G1(n[a],r,a,t);return r},G1=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:VE(t,a);o.classGroupId=n;return}if(typeof a=="function"){if(jF(a)){G1(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([o,l])=>{G1(l,VE(t,o),n,r)})})},VE=(e,t)=>{let n=e;return t.split(Lw).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},jF=e=>e.isThemeGetter,EF=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(o,l)=>{n.set(o,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let l=n.get(o);if(l!==void 0)return l;if((l=r.get(o))!==void 0)return a(o,l),l},set(o,l){n.has(o)?n.set(o,l):a(o,l)}}},K1="!",Y1=":",CF=Y1.length,TF=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const o=[];let l=0,c=0,f=0,d;for(let w=0;w<a.length;w++){let S=a[w];if(l===0&&c===0){if(S===Y1){o.push(a.slice(f,w)),f=w+CF;continue}if(S==="/"){d=w;continue}}S==="["?l++:S==="]"?l--:S==="("?c++:S===")"&&c--}const m=o.length===0?a:a.substring(f),p=PF(m),g=p!==m,b=d&&d>f?d-f:void 0;return{modifiers:o,hasImportantModifier:g,baseClassName:p,maybePostfixModifierPosition:b}};if(t){const a=t+Y1,o=r;r=l=>l.startsWith(a)?o(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=o=>n({className:o,parseClassName:a})}return r},PF=e=>e.endsWith(K1)?e.substring(0,e.length-1):e.startsWith(K1)?e.substring(1):e,MF=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const a=[];let o=[];return r.forEach(l=>{l[0]==="["||t[l]?(a.push(...o.sort(),l),o=[]):o.push(l)}),a.push(...o.sort()),a}},DF=e=>({cache:EF(e.cacheSize),parseClassName:TF(e),sortModifiers:MF(e),...AF(e)}),NF=/\s+/,RF=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:o}=t,l=[],c=e.trim().split(NF);let f="";for(let d=c.length-1;d>=0;d-=1){const m=c[d],{isExternal:p,modifiers:g,hasImportantModifier:b,baseClassName:w,maybePostfixModifierPosition:S}=n(m);if(p){f=m+(f.length>0?" "+f:f);continue}let A=!!S,_=r(A?w.substring(0,S):w);if(!_){if(!A){f=m+(f.length>0?" "+f:f);continue}if(_=r(w),!_){f=m+(f.length>0?" "+f:f);continue}A=!1}const T=o(g).join(":"),E=b?T+K1:T,P=E+_;if(l.includes(P))continue;l.push(P);const O=a(_,A);for(let C=0;C<O.length;++C){const j=O[C];l.push(E+j)}f=m+(f.length>0?" "+f:f)}return f};function kF(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=c3(t))&&(r&&(r+=" "),r+=n);return r}const c3=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=c3(e[r]))&&(n&&(n+=" "),n+=t);return n};function zF(e,...t){let n,r,a,o=l;function l(f){const d=t.reduce((m,p)=>p(m),e());return n=DF(d),r=n.cache.get,a=n.cache.set,o=c,c(f)}function c(f){const d=r(f);if(d)return d;const m=RF(f,n);return a(f,m),m}return function(){return o(kF.apply(null,arguments))}}const Zt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},u3=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,f3=/^\((?:(\w[\w-]*):)?(.+)\)$/i,BF=/^\d+\/\d+$/,IF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$F=/\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$/,LF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,FF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ks=e=>BF.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),zi=e=>!!e&&Number.isInteger(Number(e)),mv=e=>e.endsWith("%")&&Le(e.slice(0,-1)),Fa=e=>IF.test(e),UF=()=>!0,HF=e=>$F.test(e)&&!LF.test(e),d3=()=>!1,WF=e=>qF.test(e),VF=e=>FF.test(e),GF=e=>!xe(e)&&!Se(e),KF=e=>Wl(e,m3,d3),xe=e=>u3.test(e),Ao=e=>Wl(e,g3,HF),gv=e=>Wl(e,JF,Le),GE=e=>Wl(e,h3,d3),YF=e=>Wl(e,p3,VF),oh=e=>Wl(e,y3,WF),Se=e=>f3.test(e),eu=e=>Vl(e,g3),QF=e=>Vl(e,eU),KE=e=>Vl(e,h3),XF=e=>Vl(e,m3),ZF=e=>Vl(e,p3),sh=e=>Vl(e,y3,!0),Wl=(e,t,n)=>{const r=u3.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Vl=(e,t,n=!1)=>{const r=f3.exec(e);return r?r[1]?t(r[1]):n:!1},h3=e=>e==="position"||e==="percentage",p3=e=>e==="image"||e==="url",m3=e=>e==="length"||e==="size"||e==="bg-size",g3=e=>e==="length",JF=e=>e==="number",eU=e=>e==="family-name",y3=e=>e==="shadow",tU=()=>{const e=Zt("color"),t=Zt("font"),n=Zt("text"),r=Zt("font-weight"),a=Zt("tracking"),o=Zt("leading"),l=Zt("breakpoint"),c=Zt("container"),f=Zt("spacing"),d=Zt("radius"),m=Zt("shadow"),p=Zt("inset-shadow"),g=Zt("text-shadow"),b=Zt("drop-shadow"),w=Zt("blur"),S=Zt("perspective"),A=Zt("aspect"),_=Zt("ease"),T=Zt("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...P(),Se,xe],C=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],N=()=>[Se,xe,f],B=()=>[Ks,"full","auto",...N()],q=()=>[zi,"none","subgrid",Se,xe],I=()=>["auto",{span:["full",zi,Se,xe]},zi,Se,xe],L=()=>[zi,"auto",Se,xe],W=()=>["auto","min","max","fr",Se,xe],K=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...N()],F=()=>[Ks,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],H=()=>[e,Se,xe],J=()=>[...P(),KE,GE,{position:[Se,xe]}],ae=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",XF,KF,{size:[Se,xe]}],V=()=>[mv,eu,Ao],Y=()=>["","none","full",d,Se,xe],Z=()=>["",Le,eu,Ao],ce=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>[Le,mv,KE,GE],ye=()=>["","none",w,Se,xe],ue=()=>["none",Le,Se,xe],pe=()=>["none",Le,Se,xe],we=()=>[Le,Se,xe],oe=()=>[Ks,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Fa],breakpoint:[Fa],color:[UF],container:[Fa],"drop-shadow":[Fa],ease:["in","out","in-out"],font:[GF],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Fa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Fa],shadow:[Fa],spacing:["px",Le],text:[Fa],"text-shadow":[Fa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ks,xe,Se,A]}
vendor: 12,846 bytes, line 49
49],container:["container"],columns:[{columns:[Le,xe,Se,c]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[zi,"auto",Se,xe]}],basis:[{basis:[Ks,"full","auto",c,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,Ks,"auto","initial","none",xe]}],grow:[{grow:["",Le,Se,xe]}],shrink:[{shrink:["",Le,Se,xe]}],order:[{order:[zi,"first","last","none",Se,xe]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[c,"screen",...F()]}],"min-w":[{"min-w":[c,"screen","none",...F()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",n,eu,Ao]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Se,gv]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mv,xe]}],"font-family":[{font:[QF,xe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Se,xe]}],"line-clamp":[{"line-clamp":[Le,"none",Se,gv]}],leading:[{leading:[o,...N()]}],"list-image":[{"list-image":["none",Se,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Se,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",Se,Ao]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[Le,"auto",Se,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se,xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Se,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:J()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},zi,Se,xe],radial:["",Se,xe],conic:[zi,Se,xe]},ZF,YF]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ce(),"hidden","none"]}],"divide-style":[{divide:[...ce(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,Se,xe]}],"outline-w":[{outline:["",Le,eu,Ao]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",m,sh,oh]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",p,sh,oh]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[Le,Ao]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",g,sh,oh]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[Le,Se,xe]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[Se,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:J()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Se,xe]}],filter:[{filter:["","none",Se,xe]}],blur:[{blur:ye()}],brightness:[{brightness:[Le,Se,xe]}],contrast:[{contrast:[Le,Se,xe]}],"drop-shadow":[{"drop-shadow":["","none",b,sh,oh]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",Le,Se,xe]}],"hue-rotate":[{"hue-rotate":[Le,Se,xe]}],invert:[{invert:["",Le,Se,xe]}],saturate:[{saturate:[Le,Se,xe]}],sepia:[{sepia:["",Le,Se,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",Se,xe]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[Le,Se,xe]}],"backdrop-contrast":[{"backdrop-contrast":[Le,Se,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,Se,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,Se,xe]}],"backdrop-invert":[{"backdrop-invert":["",Le,Se,xe]}],"backdrop-opacity":[{"backdrop-opacity":[Le,Se,xe]}],"backdrop-saturate":[{"backdrop-saturate":[Le,Se,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,Se,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Se,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",Se,xe]}],ease:[{ease:["linear","initial",_,Se,xe]}],delay:[{delay:[Le,Se,xe]}],animate:[{animate:["none",T,Se,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,Se,xe]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":["scale-3d"],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[Se,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}
vendor: 6,750 bytes, line 49
49],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Se,xe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Se,xe]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[Le,eu,Ao,gv]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},nU=zF(tU);function Ui(...e){return nU(Ne(e))}function rU({delayDuration:e=0,...t}){return y.jsx(wF,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:e,...t})}const YE=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,QE=Ne,aU=(e,t)=>n=>{var r;if(t?.variants==null)return QE(e,n?.class,n?.className);const{variants:a,defaultVariants:o}=t,l=Object.keys(a).map(d=>{const m=n?.[d],p=o?.[d];if(m===null)return null;const g=YE(m)||YE(p);return a[d][g]}),c=n&&Object.entries(n).reduce((d,m)=>{let[p,g]=m;return g===void 0||(d[p]=g),d},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,m)=>{let{class:p,className:g,...b}=m;return Object.entries(b).every(w=>{let[S,A]=w;return Array.isArray(A)?A.includes({...o,...c}[S]):{...o,...c}[S]===A})?[...d,p,g]:d},[]);return QE(e,l,f,n?.class,n?.className)},iU=aU("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-transparent shadow-xs hover:bg-accent dark:bg-transparent dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function oU({className:e,variant:t,size:n,asChild:r=!1,...a}){const o=r?gq:"button";return y.jsx(o,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:Ui(iU({variant:t,size:n,className:e})),...a}
vendor: 8,157 bytes, lines 49-158
49)}function sU({className:e,...t}){return y.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:Ui("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function lU({className:e,...t}){return y.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:66","data-slot":"card-content",className:Ui("px-6",e),...t})}/**
50 * @license lucide-react v0.453.0 - ISC
51 *
52 * This source code is licensed under the ISC license.
53 * See the LICENSE file in the root directory of this source tree.
54 */const cU=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),v3=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
55 * @license lucide-react v0.453.0 - ISC
56 *
57 * This source code is licensed under the ISC license.
58 * See the LICENSE file in the root directory of this source tree.
59 */var uU={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"};/**
60 * @license lucide-react v0.453.0 - ISC
61 *
62 * This source code is licensed under the ISC license.
63 * See the LICENSE file in the root directory of this source tree.
64 */const fU=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:l,...c},f)=>D.createElement("svg",{ref:f,...uU,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:v3("lucide",a),...c},[...l.map(([d,m])=>D.createElement(d,m)),...Array.isArray(o)?o:[o]]));/**
65 * @license lucide-react v0.453.0 - ISC
66 *
67 * This source code is licensed under the ISC license.
68 * See the LICENSE file in the root directory of this source tree.
69 */const Ie=(e,t)=>{const n=D.forwardRef(({className:r,...a},o)=>D.createElement(fU,{ref:o,iconNode:t,className:v3(`lucide-${cU(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
70 * @license lucide-react v0.453.0 - ISC
71 *
72 * This source code is licensed under the ISC license.
73 * See the LICENSE file in the root directory of this source tree.
74 */const wn=Ie("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
75 * @license lucide-react v0.453.0 - ISC
76 *
77 * This source code is licensed under the ISC license.
78 * See the LICENSE file in the root directory of this source tree.
79 */const Gl=Ie("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
80 * @license lucide-react v0.453.0 - ISC
81 *
82 * This source code is licensed under the ISC license.
83 * See the LICENSE file in the root directory of this source tree.
84 */const jf=Ie("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
85 * @license lucide-react v0.453.0 - ISC
86 *
87 * This source code is licensed under the ISC license.
88 * See the LICENSE file in the root directory of this source tree.
89 */const dU=Ie("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
90 * @license lucide-react v0.453.0 - ISC
91 *
92 * This source code is licensed under the ISC license.
93 * See the LICENSE file in the root directory of this source tree.
94 */const qw=Ie("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
95 * @license lucide-react v0.453.0 - ISC
96 *
97 * This source code is licensed under the ISC license.
98 * See the LICENSE file in the root directory of this source tree.
99 */const hU=Ie("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
100 * @license lucide-react v0.453.0 - ISC
101 *
102 * This source code is licensed under the ISC license.
103 * See the LICENSE file in the root directory of this source tree.
104 */const b3=Ie("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
105 * @license lucide-react v0.453.0 - ISC
106 *
107 * This source code is licensed under the ISC license.
108 * See the LICENSE file in the root directory of this source tree.
109 */const Ru=Ie("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
110 * @license lucide-react v0.453.0 - ISC
111 *
112 * This source code is licensed under the ISC license.
113 * See the LICENSE file in the root directory of this source tree.
114 */const Fw=Ie("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
115 * @license lucide-react v0.453.0 - ISC
116 *
117 * This source code is licensed under the ISC license.
118 * See the LICENSE file in the root directory of this source tree.
119 */const Uw=Ie("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
120 * @license lucide-react v0.453.0 - ISC
121 *
122 * This source code is licensed under the ISC license.
123 * See the LICENSE file in the root directory of this source tree.
124 */const pU=Ie("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
125 * @license lucide-react v0.453.0 - ISC
126 *
127 * This source code is licensed under the ISC license.
128 * See the LICENSE file in the root directory of this source tree.
129 */const x3=Ie("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
130 * @license lucide-react v0.453.0 - ISC
131 *
132 * This source code is licensed under the ISC license.
133 * See the LICENSE file in the root directory of this source tree.
134 */const mU=Ie("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
135 * @license lucide-react v0.453.0 - ISC
136 *
137 * This source code is licensed under the ISC license.
138 * See the LICENSE file in the root directory of this source tree.
139 */const gU=Ie("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
140 * @license lucide-react v0.453.0 - ISC
141 *
142 * This source code is licensed under the ISC license.
143 * See the LICENSE file in the root directory of this source tree.
144 */const yU=Ie("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
145 * @license lucide-react v0.453.0 - ISC
146 *
147 * This source code is licensed under the ISC license.
148 * See the LICENSE file in the root directory of this source tree.
149 */const XE=Ie("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
150 * @license lucide-react v0.453.0 - ISC
151 *
152 * This source code is licensed under the ISC license.
153 * See the LICENSE file in the root directory of this source tree.
154 */const tl=Ie("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
155 * @license lucide-react v0.453.0 - ISC
156 *
157 * This source code is licensed under the ISC license.
158 * See the LICENSE file in the root directory of this source tree.
159 */const vU=Ie("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
160 * @license lucide-react v0.453.0 - ISC
161 *
162 * This source code is licensed under the ISC license.
163 * See the LICENSE file in the root directory of this source tree.
164 */const S3=Ie("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/**
165 * @license lucide-react v0.453.0 - ISC
166 *
167 * This source code is licensed under the ISC license.
168 * See the LICENSE file in the root directory of this source tree.
169 */const bU=Ie("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
170 * @license lucide-react v0.453.0 - ISC
171 *
172 * This source code is licensed under the ISC license.
173 * See the LICENSE file in the root directory of this source tree.
174 */const w3=Ie("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
175 * @license lucide-react v0.453.0 - ISC
176 *
177 * This source code is licensed under the ISC license.
178 * See the LICENSE file in the root directory of this source tree.
179 */const am=Ie("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
180 * @license lucide-react v0.453.0 - ISC
181 *
182 * This source code is licensed under the ISC license.
183 * See the LICENSE file in the root directory of this source tree.
184 */const lh=Ie("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
185 * @license lucide-react v0.453.0 - ISC
186 *
187 * This source code is licensed under the ISC license.
188 * See the LICENSE file in the root directory of this source tree.
189 */const xU=Ie("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
190 * @license lucide-react v0.453.0 - ISC
191 *
192 * This source code is licensed under the ISC license.
193 * See the LICENSE file in the root directory of this source tree.
194 */const $h=Ie("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
195 * @license lucide-react v0.453.0 - ISC
196 *
197 * This source code is licensed under the ISC license.
198 * See the LICENSE file in the root directory of this source tree.
199 */const SU=Ie("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
200 * @license lucide-react v0.453.0 - ISC
201 *
202 * This source code is licensed under the ISC license.
203 * See the LICENSE file in the root directory of this source tree.
204 */const wU=Ie("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
205 * @license lucide-react v0.453.0 - ISC
206 *
207 * This source code is licensed under the ISC license.
208 * See the LICENSE file in the root directory of this source tree.
209 */const mu=Ie("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"}]]);/**
210 * @license lucide-react v0.453.0 - ISC
211 *
212 * This source code is licensed under the ISC license.
213 * See the LICENSE file in the root directory of this source tree.
214 */const AU=Ie("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
215 * @license lucide-react v0.453.0 - ISC
216 *
217 * This source code is licensed under the ISC license.
218 * See the LICENSE file in the root directory of this source tree.
219 */const OU=Ie("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
220 * @license lucide-react v0.453.0 - ISC
221 *
222 * This source code is licensed under the ISC license.
223 * See the LICENSE file in the root directory of this source tree.
224 */const Hw=Ie("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
225 * @license lucide-react v0.453.0 - ISC
226 *
227 * This source code is licensed under the ISC license.
228 * See the LICENSE file in the root directory of this source tree.
229 */const _U=Ie("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
230 * @license lucide-react v0.453.0 - ISC
231 *
232 * This source code is licensed under the ISC license.
233 * See the LICENSE file in the root directory of this source tree.
234 */const Th=Ie("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
235 * @license lucide-react v0.453.0 - ISC
236 *
237 * This source code is licensed under the ISC license.
238 * See the LICENSE file in the root directory of this source tree.
239 */const Kl=Ie("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
240 * @license lucide-react v0.453.0 - ISC
241 *
242 * This source code is licensed under the ISC license.
243 * See the LICENSE file in the root directory of this source tree.
244 */const ZE=Ie("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
245 * @license lucide-react v0.453.0 - ISC
246 *
247 * This source code is licensed under the ISC license.
248 * See the LICENSE file in the root directory of this source tree.
249 */const jU=Ie("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
250 * @license lucide-react v0.453.0 - ISC
251 *
252 * This source code is licensed under the ISC license.
253 * See the LICENSE file in the root directory of this source tree.
254 */const Qr=Ie("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"}]]);/**
255 * @license lucide-react v0.453.0 - ISC
256 *
257 * This source code is licensed under the ISC license.
258 * See the LICENSE file in the root directory of this source tree.
259 */const EU=Ie("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
260 * @license lucide-react v0.453.0 - ISC
261 *
262 * This source code is licensed under the ISC license.
263 * See the LICENSE file in the root directory of this source tree.
264 */const Ww=Ie("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
265 * @license lucide-react v0.453.0 - ISC
266 *
267 * This source code is licensed under the ISC license.
268 * See the LICENSE file in the root directory of this source tree.
269 */const CU=Ie("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function TU(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,a,o,l=[],c="",f=e.split("/");for(f[0]||f.shift();a=f.shift();)n=a[0],n==="*"?(l.push(n),c+=a[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=a.indexOf("?",1),o=a.indexOf(".",1),l.push(a.substring(1,~r?r:~o?o:a.length)),c+=~r&&!~o?"(?:/([^/]+?))?":"/([^/]+?)",~o&&(c+=(~r?"?":"")+"\\"+a.substring(o))):c+="/"+a;return{keys:l,pattern:new RegExp("^"+c+(t?"(?=$|/)":"/?$"),"i")}}var yv={exports:{}},vv={};/**
270 * @license React
271 * use-sync-external-store-shim.production.js
272 *
273 * Copyright (c) Meta Platforms, Inc. and affiliates.
274 *
275 * This source code is licensed under the MIT license found in the
276 * LICENSE file in the root directory of this source tree.
277 */var JE;function PU(){if(JE)return vv;JE=1;var e=Hp();function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function c(p,g){var b=g(),w=r({inst:{value:b,getSnapshot:g}}),S=w[0].inst,A=w[1];return o(function(){S.value=b,S.getSnapshot=g,f(S)&&A({inst:S})},[p,b,g]),a(function(){return f(S)&&A({inst:S}),p(function(){f(S)&&A({inst:S})})},[p]),l(b),b}function f(p){var g=p.getSnapshot;p=p.value;try{var b=g();return!n(p,b)}catch{return!0}}function d(p,g){return g()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return vv.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,vv}var eC;
277function MU(){return eC||(eC=1,yv.exports=PU()),yv.exports}var DU=MU();const NU=Dk.useInsertionEffect,RU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kU=RU?D.useLayoutEffect:D.useEffect,zU=NU||kU,A3=e=>{const t=D.useRef([e,(...n)=>t[0](...n)]).current;return zU(()=>{t[0]=e}),t[1]},BU="popstate",Vw="pushState",Gw="replaceState",IU="hashchange",tC=[BU,Vw,Gw,IU],$U=e=>{for(const t of tC)addEventListener(t,e);return()=>{for(const t of tC)removeEventListener(t,e)}},O3=(e,t)=>DU.useSyncExternalStore($U,e,t),LU=()=>location.search,qU=({ssrSearch:e=""}={})=>O3(LU,()=>e),nC=()=>location.pathname,FU=({ssrPath:e}={})=>O3(nC,e?()=>e:nC),UU=(e,{replace:t=!1,state:n=null}={})=>history[t?Gw:Vw](n,"",e),HU=(e={})=>[FU(e),UU],rC=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[rC]>"u"){for(const e of[Vw,Gw]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,rC,{value:!0})}const WU=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",_3=(e="")=>e==="/"?"":e,VU=(e,t)=>e[0]==="~"?e.slice(1):_3(t)+e,GU=(e="",t)=>WU(aC(_3(e)),aC(t)),aC=e=>{try{return decodeURI(e)}catch{return e}},j3={hook:HU,searchHook:qU,parser:TU,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},E3=D.createContext(j3),Ef=()=>D.useContext(E3),C3={},T3=D.createContext(C3),P3=()=>D.useContext(T3),im=e=>{const[t,n]=e.hook(e);return[GU(e.base,t),A3((r,a)=>n(VU(r,e.base),a))]},M3=()=>im(Ef()),D3=(e,t,n,r)=>{const{pattern:a,keys:o}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),l=a.exec(n)||[],[c,...f]=l;return c!==void 0?[!0,(()=>{const d=o!==!1?Object.fromEntries(o.map((p,g)=>[p,f[g]])):l.groups;let m={...f};return d&&Object.assign(m,d),m})(),...r?[c]:[]]:[!1,null]},KU=({children:e,...t})=>{const n=Ef(),r=t.hook?j3:n;let a=r;const[o,l]=t.ssrPath?.split("?")??[];l&&(t.ssrSearch=l,t.ssrPath=o),t.hrefs=t.hrefs??t.hook?.hrefs;let c=D.useRef({}),f=c.current,d=f;for(let m in r){const p=m==="base"?r[m]+(t[m]||""):t[m]||r[m];f===d&&p!==d[m]&&(c.current=d={...d}),d[m]=p,(p!==r[m]||p!==a[m])&&(a=d)}return D.createElement(E3.Provider,{value:a,children:e})},iC=({children:e,component:t},n)=>t?D.createElement(t,{params:n}):typeof e=="function"?e(n):e,YU=e=>{let t=D.useRef(C3);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([r,a])=>a!==n[r])?e:n},tr=({path:e,nest:t,match:n,...r})=>{const a=Ef(),[o]=im(a),[l,c,f]=n??D3(a.parser,e,o,t),d=YU({...P3(),...c});if(!l)return null;const m=f?D.createElement(KU,{base:f},iC(r,d)):iC(r,d);return D.createElement(T3.Provider,{value:d,children:m})},kt=D.forwardRef((e,t)=>{const n=Ef(),[r,a]=im(n),{to:o="",href:l=o,onClick:c,asChild:f,children:d,className:m,replace:p,state:g,...b}=e,w=A3(A=>{A.ctrlKey||A.metaKey||A.altKey||A.shiftKey||A.button!==0||(c?.(A),A.defaultPrevented||(A.preventDefault(),a(l,e)))}),S=n.hrefs(l[0]==="~"?l.slice(1):n.base+l,n);return f&&D.isValidElement(d)?D.cloneElement(d,{onClick:w,href:S}):D.createElement("a",{...b,onClick:w,href:S,className:m?.call?m(r===l):m,children:d,ref:t})}),Q1=e=>Array.isArray(e)?e.flatMap(t=>Q1(t&&t.type===D.Fragment?t.props.children:t)):[e],QU=({children:e,location:t})=>{const n=Ef(),[r]=im(n);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),Q1(e).forEach(o=>{if(D.isValidElement(o)&&o.props.path){const l=o.props.path;window.__WOUTER_ROUTES__.includes(l)||window.__WOUTER_ROUTES__.push(l)}}));for(const a of Q1(e)){let o=0;if(D.isValidElement(a)&&(o=D3(n.parser,a.props.path,t||r,a.props.nest))[0])return D.cloneElement(a,{match:o})}return null};function oC(){const[,e]=M3(),t=()=>{e("/")};return y.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:14",className:"min-h-screen w-full flex items-center justify-center bg-gradient-to-br from-slate-50 to-slate-100",children:y.jsx(sU,{"data-loc":"client/src/pages/NotFound.tsx:15",className:"w-full max-w-lg mx-4 shadow-lg border-0 bg-white/80 backdrop-blur-sm",children:y.jsxs(lU,{"data-loc":"client/src/pages/NotFound.tsx:16",className:"pt-8 pb-8 text-center",children:[y.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:17",className:"flex justify-center mb-6",children:y.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:18",className:"relative",children:[y.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:19",className:"absolute inset-0 bg-red-100 rounded-full animate-pulse"}),y.jsx(dU,{"data-loc":"client/src/pages/NotFound.tsx:20",className:"relative h-16 w-16 text-red-500"})]})}),y.jsx("h1",{"data-loc":"client/src/pages/NotFound.tsx:24",className:"text-4xl font-bold text-slate-900 mb-2",children:"404"}),y.jsx("h2",{"data-loc":"client/src/pages/NotFound.tsx:26",className:"text-xl font-semibold text-slate-700 mb-4",children:"Page Not Found"}),y.jsxs("p",{"data-loc":"client/src/pages/NotFound.tsx:30",className:"text-slate-600 mb-8 leading-relaxed",children:["Sorry, the page you are looking for doesn't exist.",y.jsx("br",{"data-loc":"client/src/pages/NotFound.tsx:32"}),"It may have been moved or deleted."]}),y.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:36",id:"not-found-button-group",className:"flex flex-col sm:flex-row gap-3 justify-center",children:y.jsxs(oU,{"data-loc":"client/src/pages/NotFound.tsx:40",onClick:t,className:"bg-blue-600 hover:bg-blue-700 text-white px-6 py-2.5 rounded-lg transition-all duration-200 shadow-md hover:shadow-lg",children:[y.jsx(yU,{"data-loc":"client/src/pages/NotFound.tsx:44",className:"w-4 h-4 mr-2"}),"Go Home"]})})]})})})}class XU extends D.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?y.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:y.jsxs("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[y.jsx(Kl,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"}),y.jsx("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."}),y.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:y.jsx("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),y.jsxs("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:Ui("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[y.jsx(xU,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}const ZU=D.createContext(void 0);function JU({children:e,defaultTheme:t="light",switchable:n=!1}){const[r,a]=D.useState(()=>n&&localStorage.getItem("theme")||t);D.useEffect(()=>{const l=document.documentElement;
277r==="dark"?l.classList.add("dark"):l.classList.remove("dark"),n&&localStorage.setItem("theme",r)},[r,n]);const o=n?()=>{a(l=>l==="light"?"dark":"light")}:void 0;return y.jsx(ZU.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:52",value:{theme:r,toggleTheme:o,switchable:n},children:e})}const om=()=>{const e="https://manus.im",t="Dev93Ss4GWHWWnSTYyaKYr",n=`${window.location.origin}/api/oauth/callback`,r=btoa(n),a=new URL(`${e}/app-auth`);return a.searchParams.set("appId",t),a.searchParams.set("redirectUri",n),a.searchParams.set("state",r),a.searchParams.set("type","signIn"),a.toString()};function kr(e){const{redirectOnUnauthenticated:t=!1,redirectPath:n=om()}={},r=je.useUtils(),a=je.auth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),o=je.auth.logout.useMutation({onSuccess:()=>{r.auth.me.setData(void 0,null)}}),l=D.useCallback(async()=>{try{await o.mutateAsync()}catch(f){if(f instanceof hl&&f.data?.code==="UNAUTHORIZED")return;throw f}finally{r.auth.me.setData(void 0,null),await r.auth.me.invalidate()}},[o,r]),c=D.useMemo(()=>(localStorage.setItem("manus-runtime-user-info",JSON.stringify(a.data)),{user:a.data??null,loading:a.isLoading||o.isPending,error:a.error??o.error??null,isAuthenticated:!!a.data}),[a.data,a.error,a.isLoading,o.error,o.isPending]);return D.useEffect(()=>{t&&(a.isLoading||o.isPending||c.user||typeof window>"u"||window.location.pathname!==n&&(window.location.href=n))},[t,n,o.isPending,a.isLoading,c.user]),{...c,refresh:()=>a.refetch(),logout:l}}const eH=[{label:"Overview",items:[{href:"/",label:"Dashboard",icon:vU,color:"#E3000B"},{href:"/collection",label:"My Collection",icon:wn,color:"#006CB7"}]},{label:"Catalogue",items:[{href:"/sets",label:"Sets",icon:tl,color:"#00A650"},{href:"/minifigs",label:"Minifigures",icon:Qr,color:"#F47920"},{href:"/parts",label:"Parts Inventory",icon:Ru,color:"#7C3AED"},{href:"/search",label:"Search",icon:$h,color:"#006CB7"}]},{label:"Tools",items:[{href:"/alerts",label:"Missing Parts",icon:Kl,color:"#E3000B"},{href:"/suggestions",label:"Build Suggestions",icon:mu,color:"#F5A800"},{href:"/import",label:"Import",icon:Uw,color:"#00A650"},{href:"/settings",label:"Settings",icon:SU,color:"#6B7280"}]}];function tH({children:e}){const[t]=M3(),{user:n,isAuthenticated:r,logout:a}=kr(),[o,l]=D.useState(!1);return y.jsxs("div",{"data-loc":"client/src/components/BrickLayout.tsx:58",className:"flex min-h-screen",style:{background:"#F0F2F5"},children:[y.jsxs("aside",{"data-loc":"client/src/components/BrickLayout.tsx:60",className:Ui("lego-sidebar flex flex-col shrink-0 transition-all duration-200",o?"w-16":"w-60"),style:{position:"sticky",top:0,height:"100vh",overflowY:"auto"},children:[y.jsxs("div",{"data-loc":"client/src/components/BrickLayout.tsx:68",className:"lego-sidebar-logo",children:[y.jsx("div",{"data-loc":"client/src/components/BrickLayout.tsx:69",className:"lego-logo-mark",children:"BV"}
277),!o&&y.jsxs("div",{"data-loc":"client/src/components/BrickLayout.tsx:71",children:[y.jsx("div",{"data-loc":"client/src/components/BrickLayout.tsx:72",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1rem",color:"#1A1A2E",lineHeight:1.1},children:"Brick Vault"}),y.jsx("div",{"data-loc":"client/src/components/BrickLayout.tsx:75",style:{fontSize:"0.65rem",fontWeight:700,color:"#9CA3AF",textTransform:"uppercase",letterSpacing:"0.08em"},children:"LEGO Manager"})]})]}),y.jsx("nav",{"data-loc":"client/src/components/BrickLayout.tsx:83",className:"flex-1 overflow-y-auto py-3",children:eH.map(c=>y.jsxs("div",{"data-loc":"client/src/components/BrickLayout.tsx:85",children:[!o&&y.jsx("div",{"data-loc":"client/src/components/BrickLayout.tsx:87",className:"lego-nav-section",children:c.label}),c.items.map(f=>{const d=f.icon,m=t===f.href||f.href!=="/"&&t.startsWith(f.href);return y.jsx(kt,{"data-loc":"client/src/components/BrickLayout.tsx:95",href:f.href,children:y.jsxs("div",{"data-loc":"client/src/components/BrickLayout.tsx:96",className:Ui("lego-nav-item",m&&"active",o&&"justify-center px-0 mx-2"),style:m?{background:`${f.color}15`,color:f.color}:{},title:o?f.label:void 0,children:[y.jsx(d,{"data-loc":"client/src/components/BrickLayout.tsx:101",size:18,className:"shrink-0",style:{color:m?f.color:void 0}}),!o&&y.jsx("span",{"data-loc":"client/src/components/BrickLayout.tsx:106",children:f.label})]})},f.href)})]},c.label))}),y.jsxs("div",{"data-loc":"client/src/components/BrickLayout.tsx:116",style:{borderTop:"2px solid #E8EAED"},children:[r?y.jsxs("div",{"data-loc":"client/src/components/BrickLayout.tsx:118",className:Ui("flex items-center gap-2 p-3",o&&"justify-center"),children:[y.jsx("div",{"data-loc":"client/src/components/BrickLayout.tsx:119",style:{width:34,height:34,borderRadius:"50%",background:"linear-gradient(135deg, #006CB7, #004a8a)",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.85rem",flexShrink:0},children:n?.name?.[0]?.toUpperCase()??y.jsx(jU,{"data-loc":"client/src/components/BrickLayout.tsx:135",size:14})}),!o&&y.jsxs(y.Fragment,{children:[y.jsx("div",{"data-loc":"client/src/components/BrickLayout.tsx:139",className:"flex-1 min-w-0",children:y.jsx("div",{"data-loc":"client/src/components/BrickLayout.tsx:140",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.8rem",color:"#1A1A2E"},className:"truncate",children:n?.name??"Collector"})}),y.jsx("button",{"data-loc":"client/src/components/BrickLayout.tsx:144",onClick:()=>a(),className:"transition-colors",style:{color:"#9CA3AF"},title:"Sign Out",onMouseEnter:c=>c.currentTarget.style.color="#E3000B",onMouseLeave:c=>c.currentTarget.style.color="#9CA3AF",children:y.jsx(bU,{"data-loc":"client/src/components/BrickLayout.tsx:152",size:16})})]})]}):y.jsxs("a",{"data-loc":"client/src/components/BrickLayout.tsx:158",href:om(),className:Ui("flex items-center gap-2 p-3 transition-colors",o&&"justify-center"),style:{color:"#6B7280",fontFamily:"Nunito, sans-serif",fontWeight:700,fontSize:"0.85rem"},children:[y.jsx(S3,{"data-loc":"client/src/components/BrickLayout.tsx:163",size:18}),!o&&"Sign In"]}),y.jsx("button",{"data-loc":"client/src/components/BrickLayout.tsx:167",onClick:()=>l(c=>!c),className:"w-full flex items-center justify-center py-2 transition-colors",style:{borderTop:"1px solid #E8EAED",color:"#9CA3AF"},onMouseEnter:c=>c.currentTarget.style.color="#1A1A2E",onMouseLeave:c=>c.currentTarget.style.color="#9CA3AF",children:o?y.jsx(jf,{"data-loc":"client/src/components/BrickLayout.tsx:174",size:16}):y.jsx(Gl,{"data-loc":"client/src/components/BrickLayout.tsx:174",size:16})})]})]}),y.jsx("main",{"data-loc":"client/src/components/BrickLayout.tsx:180",className:"flex-1 min-w-0 overflow-y-auto",children:e})]})}var bv,sC;function Wn(){if(sC)return bv;sC=1;var e=Array.isArray;return bv=e,bv}var xv,lC;function N3(){if(lC)return xv;lC=1;var e=typeof Zd=="object"&&Zd&&Zd.Object===Object&&Zd;return xv=e,xv}var Sv,cC;function xa(){if(cC)return Sv;cC=1;var e=N3(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Sv=n,Sv}var wv,uC;function Cf(){if(uC)return wv;uC=1;var e=xa(),t=e.Symbol;return wv=t,wv}var Av,fC;function nH(){if(fC)return Av;fC=1;var e=Cf(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function o(l){var c=n.call(l,a),f=l[a];try{l[a]=void 0;var d=!0}catch{}var m=r.call(l);return d&&(c?l[a]=f:delete l[a]),m}return Av=o,Av}var Ov,dC;function rH(){if(dC)return Ov;dC=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Ov=n,Ov}var _v,hC;function ai(){if(hC)return _v;hC=1;
vendor: 1,266 bytes, line 277
277var e=Cf(),t=nH(),n=rH(),r="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function l(c){return c==null?c===void 0?a:r:o&&o in Object(c)?t(c):n(c)}return _v=l,_v}var jv,pC;function ii(){if(pC)return jv;pC=1;function e(t){return t!=null&&typeof t=="object"}return jv=e,jv}var Ev,mC;function Yl(){if(mC)return Ev;mC=1;var e=ai(),t=ii(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return Ev=r,Ev}var Cv,gC;function Kw(){if(gC)return Cv;gC=1;var e=Wn(),t=Yl(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function a(o,l){if(e(o))return!1;var c=typeof o;return c=="number"||c=="symbol"||c=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||l!=null&&o in Object(l)}return Cv=a,Cv}var Tv,yC;function Ji(){if(yC)return Tv;yC=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Tv=e,Tv}var Pv,vC;function Yw(){if(vC)return Pv;vC=1;var e=ai(),t=Ji(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function l(c){if(!t(c))return!1;var f=e(c);return f==r||f==a||f==n||f==o}return Pv=l,Pv}var Mv,bC;function aH(){if(bC)return Mv;bC=1;var e=xa(),t=e["__core-js_shared__"];return Mv=t,Mv}var Dv,xC;function iH(){if(xC)return Dv;xC=1;
vendor: 4,950 bytes, line 277
277var e=aH(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return Dv=n,Dv}var Nv,SC;function R3(){if(SC)return Nv;SC=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return Nv=n,Nv}var Rv,wC;function oH(){if(wC)return Rv;wC=1;var e=Yw(),t=iH(),n=Ji(),r=R3(),a=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,d=c.hasOwnProperty,m=RegExp("^"+f.call(d).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(g){if(!n(g)||t(g))return!1;var b=e(g)?m:o;return b.test(r(g))}return Rv=p,Rv}var kv,AC;function sH(){if(AC)return kv;AC=1;function e(t,n){return t?.[n]}return kv=e,kv}var zv,OC;function ns(){if(OC)return zv;OC=1;var e=oH(),t=sH();function n(r,a){var o=t(r,a);return e(o)?o:void 0}return zv=n,zv}var Bv,_C;function sm(){if(_C)return Bv;_C=1;var e=ns(),t=e(Object,"create");return Bv=t,Bv}var Iv,jC;function lH(){if(jC)return Iv;jC=1;var e=sm();function t(){this.__data__=e?e(null):{},this.size=0}return Iv=t,Iv}var $v,EC;function cH(){if(EC)return $v;EC=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return $v=e,$v}var Lv,CC;function uH(){if(CC)return Lv;CC=1;var e=sm(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(o){var l=this.__data__;if(e){var c=l[o];return c===t?void 0:c}return r.call(l,o)?l[o]:void 0}return Lv=a,Lv}var qv,TC;function fH(){if(TC)return qv;TC=1;var e=sm(),t=Object.prototype,n=t.hasOwnProperty;function r(a){var o=this.__data__;return e?o[a]!==void 0:n.call(o,a)}return qv=r,qv}var Fv,PC;function dH(){if(PC)return Fv;PC=1;var e=sm(),t="__lodash_hash_undefined__";function n(r,a){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&a===void 0?t:a,this}return Fv=n,Fv}var Uv,MC;function hH(){if(MC)return Uv;MC=1;var e=lH(),t=cH(),n=uH(),r=fH(),a=dH();function o(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,Uv=o,Uv}var Hv,DC;function pH(){if(DC)return Hv;DC=1;function e(){this.__data__=[],this.size=0}return Hv=e,Hv}var Wv,NC;function Qw(){if(NC)return Wv;NC=1;function e(t,n){return t===n||t!==t&&n!==n}return Wv=e,Wv}var Vv,RC;function lm(){if(RC)return Vv;RC=1;var e=Qw();function t(n,r){for(var a=n.length;a--;)if(e(n[a][0],r))return a;return-1}return Vv=t,Vv}var Gv,kC;function mH(){if(kC)return Gv;kC=1;var e=lm(),t=Array.prototype,n=t.splice;function r(a){var o=this.__data__,l=e(o,a);if(l<0)return!1;var c=o.length-1;return l==c?o.pop():n.call(o,l,1),--this.size,!0}return Gv=r,Gv}var Kv,zC;function gH(){if(zC)return Kv;zC=1;var e=lm();function t(n){var r=this.__data__,a=e(r,n);return a<0?void 0:r[a][1]}return Kv=t,Kv}var Yv,BC;function yH(){if(BC)return Yv;BC=1;var e=lm();function t(n){return e(this.__data__,n)>-1}return Yv=t,Yv}var Qv,IC;function vH(){if(IC)return Qv;IC=1;var e=lm();function t(n,r){var a=this.__data__,o=e(a,n);return o<0?(++this.size,a.push([n,r])):a[o][1]=r,this}return Qv=t,Qv}var Xv,$C;function cm(){if($C)return Xv;$C=1;var e=pH(),t=mH(),n=gH(),r=yH(),a=vH();function o(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,Xv=o,Xv}var Zv,LC;function Xw(){if(LC)return Zv;LC=1;var e=ns(),t=xa(),n=e(t,"Map");return Zv=n,Zv}var Jv,qC;function bH(){if(qC)return Jv;qC=1;var e=hH(),t=cm(),n=Xw();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Jv=r,Jv}var e0,FC;function xH(){if(FC)return e0;FC=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return e0=e,e0}var t0,UC;function um(){if(UC)return t0;UC=1;var e=xH();function t(n,r){var a=n.__data__;return e(r)?a[typeof r=="string"?"string":"hash"]:a.map}return t0=t,t0}var n0,HC;function SH(){if(HC)return n0;HC=1;var e=um();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return n0=t,n0}var r0,WC;function wH(){if(WC)return r0;WC=1;var e=um();function t(n){return e(this,n).get(n)}return r0=t,r0}var a0,VC;function AH(){if(VC)return a0;VC=1;var e=um();function t(n){return e(this,n).has(n)}return a0=t,a0}var i0,GC;function OH(){if(GC)return i0;GC=1;var e=um();function t(n,r){var a=e(this,n),o=a.size;return a.set(n,r),this.size+=a.size==o?0:1,this}return i0=t,i0}var o0,KC;function Zw(){if(KC)return o0;KC=1;var e=bH(),t=SH(),n=wH(),r=AH(),a=OH();function o(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,o0=o,o0}var s0,YC;
vendor: 10,785 bytes, lines 277-285
277function k3(){if(YC)return s0;YC=1;var e=Zw(),t="Expected a function";function n(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var o=function(){var l=arguments,c=a?a.apply(this,l):l[0],f=o.cache;if(f.has(c))return f.get(c);var d=r.apply(this,l);return o.cache=f.set(c,d)||f,d};return o.cache=new(n.Cache||e),o}return n.Cache=e,s0=n,s0}var l0,QC;function _H(){if(QC)return l0;QC=1;var e=k3(),t=500;function n(r){var a=e(r,function(l){return o.size===t&&o.clear(),l}),o=a.cache;return a}return l0=n,l0}var c0,XC;function jH(){if(XC)return c0;XC=1;var e=_H(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(a){var o=[];return a.charCodeAt(0)===46&&o.push(""),a.replace(t,function(l,c,f,d){o.push(f?d.replace(n,"$1"):c||l)}),o});return c0=r,c0}var u0,ZC;function Jw(){if(ZC)return u0;ZC=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,o=Array(a);++r<a;)o[r]=n(t[r],r,t);return o}return u0=e,u0}var f0,JC;function EH(){if(JC)return f0;JC=1;var e=Cf(),t=Jw(),n=Wn(),r=Yl(),a=e?e.prototype:void 0,o=a?a.toString:void 0;function l(c){if(typeof c=="string")return c;if(n(c))return t(c,l)+"";if(r(c))return o?o.call(c):"";var f=c+"";return f=="0"&&1/c==-1/0?"-0":f}return f0=l,f0}var d0,eT;function z3(){if(eT)return d0;eT=1;var e=EH();function t(n){return n==null?"":e(n)}return d0=t,d0}var h0,tT;function B3(){if(tT)return h0;tT=1;var e=Wn(),t=Kw(),n=jH(),r=z3();function a(o,l){return e(o)?o:t(o,l)?[o]:n(r(o))}return h0=a,h0}var p0,nT;function fm(){if(nT)return p0;nT=1;var e=Yl();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return p0=t,p0}var m0,rT;function eA(){if(rT)return m0;rT=1;var e=B3(),t=fm();function n(r,a){a=e(a,r);for(var o=0,l=a.length;r!=null&&o<l;)r=r[t(a[o++])];return o&&o==l?r:void 0}return m0=n,m0}var g0,aT;function I3(){if(aT)return g0;aT=1;var e=eA();function t(n,r,a){var o=n==null?void 0:e(n,r);return o===void 0?a:o}return g0=t,g0}var CH=I3();const ur=lt(CH);var y0,iT;function TH(){if(iT)return y0;iT=1;function e(t){return t==null}return y0=e,y0}var PH=TH();const De=lt(PH);var v0,oT;function MH(){if(oT)return v0;oT=1;var e=ai(),t=Wn(),n=ii(),r="[object String]";function a(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==r}return v0=a,v0}var DH=MH();const Ho=lt(DH);var NH=Yw();const Me=lt(NH);var RH=Ji();const Ql=lt(RH);var b0={exports:{}},ot={};/**
278 * @license React
279 * react-is.production.min.js
280 *
281 * Copyright (c) Facebook, Inc. and its affiliates.
282 *
283 * This source code is licensed under the MIT license found in the
284 * LICENSE file in the root directory of this source tree.
285 */var sT;function kH(){if(sT)return ot;sT=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),w;w=Symbol.for("react.module.reference");function S(A){if(typeof A=="object"&&A!==null){var _=A.$$typeof;switch(_){case e:switch(A=A.type,A){case n:case a:case r:case d:case m:return A;default:switch(A=A&&A.$$typeof,A){case c:case l:case f:case g:case p:case o:return A;default:return _}}case t:return _}}}return ot.ContextConsumer=l,ot.ContextProvider=o,ot.Element=e,ot.ForwardRef=f,ot.Fragment=n,ot.Lazy=g,ot.Memo=p,ot.Portal=t,ot.Profiler=a,ot.StrictMode=r,ot.Suspense=d,ot.SuspenseList=m,ot.isAsyncMode=function(){return!1},ot.isConcurrentMode=function(){return!1},ot.isContextConsumer=function(A){return S(A)===l},ot.isContextProvider=function(A){return S(A)===o},ot.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===e},ot.isForwardRef=function(A){return S(A)===f},ot.isFragment=function(A){return S(A)===n},ot.isLazy=function(A){return S(A)===g},ot.isMemo=function(A){return S(A)===p},ot.isPortal=function(A){return S(A)===t},ot.isProfiler=function(A){return S(A)===a},ot.isStrictMode=function(A){return S(A)===r},ot.isSuspense=function(A){return S(A)===d},ot.isSuspenseList=function(A){return S(A)===m},ot.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===n||A===a||A===r||A===d||A===m||A===b||typeof A=="object"&&A!==null&&(A.$$typeof===g||A.$$typeof===p||A.$$typeof===o||A.$$typeof===l||A.$$typeof===f||A.$$typeof===w||A.getModuleId!==void 0)},ot.typeOf=S,ot}var lT;function zH(){return lT||(lT=1,b0.exports=kH()),b0.exports}var BH=zH(),x0,cT;function $3(){if(cT)return x0;cT=1;var e=ai(),t=ii(),n="[object Number]";function r(a){return typeof a=="number"||t(a)&&e(a)==n}return x0=r,x0}var S0,uT;function IH(){if(uT)return S0;uT=1;var e=$3();function t(n){return e(n)&&n!=+n}return S0=t,S0}var $H=IH();const Xl=lt($H);var LH=$3();const qH=lt(LH);var Dn=function(t){return t===0?0:t>0?1:-1},No=function(t){return Ho(t)&&t.indexOf("%")===t.length-1},de=function(t){return qH(t)&&!Xl(t)},FH=function(t){return De(t)},rn=function(t){return de(t)||Ho(t)},UH=0,rs=function(t){var n=++UH;return"".concat(t||"").concat(n)},Nn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!de(t)&&!Ho(t))return r;var o;if(No(t)){var l=t.indexOf("%");o=n*parseFloat(t.slice(0,l))/100}else o=+t;return Xl(o)&&(o=r),a&&o>n&&(o=n),o},Li=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},HH=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a<n;a++)if(!r[t[a]])r[t[a]]=!0;else return!0;return!1},nn=function(t,n){return de(t)&&de(n)?function(r){return t+r*(n-t)}:function(){return n}};function Lh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):ur(r,t))===n})}var WH=function(t,n){return de(t)&&de(n)?t-n:Ho(t)&&Ho(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function ll(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function X1(e){"@babel/helpers - typeof";return X1=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},X1(e)}var VH=["viewBox","children"],GH=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],fT=["points","pathLength"],w0={svg:VH,polygon:fT,polyline:fT},tA=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
285ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],qh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(D.isValidElement(t)&&(r=t.props),!Ql(r))return null;var a={};return Object.keys(r).forEach(function(o){tA.includes(o)&&(a[o]=n||function(l){return r[o](r,l)})}),a},KH=function(t,n,r){return function(a){return t(n,r,a),null}},Wo=function(t,n,r){if(!Ql(t)||X1(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(o){var l=t[o];tA.includes(o)&&typeof l=="function"&&(a||(a={}),a[o]=KH(l,n,r))}),a},YH=["children"],QH=["children"];function dT(e,t){if(e==null)return{};var n=XH(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function XH(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Z1(e){"@babel/helpers - typeof";return Z1=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},Z1(e)}var hT={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"}
vendor: 4,375 bytes, line 285
285,Qa=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},pT=null,A0=null,nA=function e(t){if(t===pT&&Array.isArray(A0))return A0;var n=[];return D.Children.forEach(t,function(r){De(r)||(BH.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),A0=n,pT=t,n};function fr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Qa(a)}):r=[Qa(t)],nA(e).forEach(function(a){var o=ur(a,"type.displayName")||ur(a,"type.name");r.indexOf(o)!==-1&&n.push(a)}),n}function ar(e,t){var n=fr(e,t);return n&&n[0]}var mT=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!de(r)||r<=0||!de(a)||a<=0)},ZH=["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"],JH=function(t){return t&&t.type&&Ho(t.type)&&ZH.indexOf(t.type)>=0},L3=function(t){return t&&Z1(t)==="object"&&"clipDot"in t},eW=function(t,n,r,a){var o,l=(o=w0?.[a])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!Me(t)&&(a&&l.includes(n)||GH.includes(n))||r&&tA.includes(n)},_e=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(D.isValidElement(t)&&(a=t.props),!Ql(a))return null;var o={};return Object.keys(a).forEach(function(l){var c;eW((c=a)===null||c===void 0?void 0:c[l],l,n,r)&&(o[l]=a[l])}),o},J1=function e(t,n){if(t===n)return!0;var r=D.Children.count(t);if(r!==D.Children.count(n))return!1;if(r===0)return!0;if(r===1)return gT(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var o=t[a],l=n[a];if(Array.isArray(o)||Array.isArray(l)){if(!e(o,l))return!1}else if(!gT(o,l))return!1}return!0},gT=function(t,n){if(De(t)&&De(n))return!0;if(!De(t)&&!De(n)){var r=t.props||{},a=r.children,o=dT(r,YH),l=n.props||{},c=l.children,f=dT(l,QH);return a&&c?ll(o,f)&&J1(a,c):!a&&!c?ll(o,f):!1}return!1},yT=function(t,n){var r=[],a={};return nA(t).forEach(function(o,l){if(JH(o))r.push(o);else if(o){var c=Qa(o.type),f=n[c]||{},d=f.handler,m=f.once;if(d&&(!m||!a[c])){var p=d(o,c,l);r.push(p),a[c]=!0}}}),r},tW=function(t){var n=t&&t.type;return n&&hT[n]?hT[n]:null},nW=function(t,n){return nA(n).indexOf(t)},rW=["children","width","height","viewBox","className","style","title","desc"];function eS(){return eS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eS.apply(this,arguments)}function aW(e,t){if(e==null)return{};var n=iW(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iW(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function tS(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,o=e.className,l=e.style,c=e.title,f=e.desc,d=aW(e,rW),m=a||{width:n,height:r,x:0,y:0},p=Ne("recharts-surface",o);return z.createElement("svg",eS({},_e(d,!0,"svg"),{className:p,width:n,height:r,style:l,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height)}),z.createElement("title",null,c),z.createElement("desc",null,f),t)}var oW=["children","className"];function nS(){return nS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nS.apply(this,arguments)}function sW(e,t){if(e==null)return{};var n=lW(e,t),r,a;
285if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lW(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Ue=z.forwardRef(function(e,t){var n=e.children,r=e.className,a=sW(e,oW),o=Ne("recharts-layer",r);return z.createElement("g",nS({className:o},_e(a,!0),{ref:t}),n)}),Gr=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),o=2;o<r;o++)a[o-2]=arguments[o]},O0,vT;function cW(){if(vT)return O0;vT=1;function e(t,n,r){var a=-1,o=t.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(o);++a<o;)l[a]=t[a+n];return l}return O0=e,O0}var _0,bT;function uW(){if(bT)return _0;bT=1;var e=cW();function t(n,r,a){var o=n.length;return a=a===void 0?o:a,!r&&a>=o?n:e(n,r,a)}return _0=t,_0}var j0,xT;function q3(){if(xT)return j0;xT=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,o="\\ufe0e\\ufe0f",l="\\u200d",c=RegExp("["+l+e+a+o+"]");function f(d){return c.test(d)}return j0=f,j0}var E0,ST;function fW(){if(ST)return E0;ST=1;function e(t){return t.split("")}return E0=e,E0}var C0,wT;function dW(){if(wT)return C0;wT=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,o="\\ufe0e\\ufe0f",l="["+e+"]",c="["+a+"]",f="\\ud83c[\\udffb-\\udfff]",d="(?:"+c+"|"+f+")",m="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",w=d+"?",S="["+o+"]?",A="(?:"+b+"(?:"+[m,p,g].join("|")+")"+S+w+")*",_=S+w+A,T="(?:"+[m+c+"?",c,p,g,l].join("|")+")",E=RegExp(f+"(?="+f+")|"+T+_,"g");function P(O){return O.match(E)||[]}return C0=P,C0}var T0,AT;function hW(){if(AT)return T0;AT=1;var e=fW(),t=q3(),n=dW();function r(a){return t(a)?n(a):e(a)}return T0=r,T0}var P0,OT;function pW(){if(OT)return P0;OT=1;var e=uW(),t=q3(),n=hW(),r=z3();function a(o){return function(l){l=r(l);var c=t(l)?n(l):void 0,f=c?c[0]:l.charAt(0),d=c?e(c,1).join(""):l.slice(1);return f[o]()+d}}return P0=a,P0}var M0,_T;function mW(){if(_T)return M0;_T=1;var e=pW(),t=e("toUpperCase");return M0=t,M0}var gW=mW();const dm=lt(gW);function bt(e){return function(){return e}}const F3=Math.cos,Fh=Math.sin,ea=Math.sqrt,Uh=Math.PI,hm=2*Uh,rS=Math.PI,aS=2*rS,Co=1e-6,yW=aS-Co;function U3(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function vW(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return U3;const n=10**t;return function(r){this._+=r[0];for(let a=1,o=r.length;a<o;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class bW{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?U3:vW(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,o,l){this._append`C${+t},${+n},${+r},${+a},${this._x1=+o},${this._y1=+l}`}arcTo(t,n,r,a,o){if(t=+t,n=+n,r=+r,a=+a,o=+o,o<0)throw new Error(`negative radius: ${o}`);let l=this._x1,c=this._y1,f=r-t,d=a-n,m=l-t,p=c-n,g=m*m+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>Co)if(!(Math.abs(p*f-d*m)>Co)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let b=r-l,w=a-c,S=f*f+d*d,A=b*b+w*w,_=Math.sqrt(S),T=Math.sqrt(g),E=o*Math.tan((rS-Math.acos((S+g-A)/(2*_*T)))/2),P=E/T,O=E/_;Math.abs(P-1)>Co&&this._append`L${t+P*m},${n+P*p}`,this._append`A${o},${o},0,0,${+(p*b>m*w)},${this._x1=t+O*f},${this._y1=n+O*d}`}}arc(t,n,r,a,o,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(a),f=r*Math.sin(a),d=t+c,m=n+f,p=1^l,g=l?a-o:o-a;this._x1===null?this._append`M${d},${m}`:(Math.abs(this._x1-d)>Co||Math.abs(this._y1-m)>Co)&&this._append`L${d},${m}`,r&&(g<0&&(g=g%aS+aS),g>yW?this._append`A${r},${r},0,1,${p}
285,${t-c},${n-f}A${r},${r},0,1,${p},${this._x1=d},${this._y1=m}`:g>Co&&this._append`A${r},${r},0,${+(g>=rS)},${p},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function rA(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new bW(t)}function aA(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function H3(e){this._context=e}H3.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 pm(e){return new H3(e)}function W3(e){return e[0]}function V3(e){return e[1]}function G3(e,t){var n=bt(!0),r=null,a=pm,o=null,l=rA(c);e=typeof e=="function"?e:e===void 0?W3:bt(e),t=typeof t=="function"?t:t===void 0?V3:bt(t);function c(f){var d,m=(f=aA(f)).length,p,g=!1,b;for(r==null&&(o=a(b=l())),d=0;d<=m;++d)!(d<m&&n(p=f[d],d,f))===g&&((g=!g)?o.lineStart():o.lineEnd()),g&&o.point(+e(p,d,f),+t(p,d,f));if(b)return o=null,b+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:bt(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:bt(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:bt(!!f),c):n},c.curve=function(f){return arguments.length?(a=f,r!=null&&(o=a(r)),c):a},c.context=function(f){return arguments.length?(f==null?r=o=null:o=a(r=f),c):r},c}function ch(e,t,n){var r=null,a=bt(!0),o=null,l=pm,c=null,f=rA(d);e=typeof e=="function"?e:e===void 0?W3:bt(+e),t=typeof t=="function"?t:bt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?V3:bt(+n);function d(p){var g,b,w,S=(p=aA(p)).length,A,_=!1,T,E=new Array(S),P=new Array(S);for(o==null&&(c=l(T=f())),g=0;g<=S;++g){if(!(g<S&&a(A=p[g],g,p))===_)if(_=!_)b=g,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),w=g-1;w>=b;--w)c.point(E[w],P[w]);c.lineEnd(),c.areaEnd()}_&&(E[g]=+e(A,g,p),P[g]=+t(A,g,p),c.point(r?+r(A,g,p):E[g],n?+n(A,g,p):P[g]))}if(T)return c=null,T+""||null}function m(){return G3().defined(a).curve(l).context(o)}return d.x=function(p){return arguments.length?(e=typeof p=="function"?p:bt(+p),r=null,d):e},d.x0=function(p){return arguments.length?(e=typeof p=="function"?p:bt(+p),d):e},d.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:bt(+p),d):r},d.y=function(p){return arguments.length?(t=typeof p=="function"?p:bt(+p),n=null,d):t},d.y0=function(p){return arguments.length?(t=typeof p=="function"?p:bt(+p),d):t},d.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:bt(+p),d):n},d.lineX0=d.lineY0=function(){return m().x(e).y(t)},d.lineY1=function(){return m().x(e).y(n)},d.lineX1=function(){return m().x(r).y(t)},d.defined=function(p){return arguments.length?(a=typeof p=="function"?p:bt(!!p),d):a},d.curve=function(p){return arguments.length?(l=p,o!=null&&(c=l(o)),d):l},d.context=function(p){return arguments.length?(p==null?o=c=null:c=l(o=p),d):o},d}class K3{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function xW(e){return new K3(e,!0)}function SW(e){return new K3(e,!1)}const iA={draw(e,t){const n=ea(t/Uh);e.moveTo(n,0),e.arc(0,0,n,0,hm)}},wW={draw(e,t){const n=ea(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Y3=ea(1/3),AW=Y3*2,OW={draw(e,t){const n=ea(t/AW),r=n*Y3;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},_W={draw(e,t){const n=ea(t),r=-n/2;e.rect(r,r,n,n)}},jW=.8908130915292852,Q3=Fh(Uh/10)/Fh(7*Uh/10),EW=Fh(hm/10)*Q3,CW=-F3(hm/10)*Q3,TW={draw(e,t){const n=ea(t*jW),r=EW*n,a=CW*n;e.moveTo(0,-n),e.lineTo(r,a);for(let o=1;o<5;++o){const l=hm*o/5,c=F3(l),f=Fh(l);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*a,f*r+c*a)}e.closePath()}},D0=ea(3),PW={draw(e,t){const n=-ea(t/(D0*3));e.moveTo(0,n*2),e.lineTo(-D0*n,-n),e.lineTo(D0*n,-n),e.closePath()}},Er=-.5,Cr=ea(3)/2,iS=1/ea(12),MW=(iS/2+1)*3,DW={draw(e,t){const n=ea(t/MW),r=n/2,a=n*iS,o=r,l=n*iS+n,c=-o,f=l;e.moveTo(r,a),e.lineTo(o,l),e.lineTo(c,f),e.lineTo(Er*r-Cr*a,Cr*r+Er*a),e.lineTo(Er*o-Cr*l,Cr*o+Er*l),e.lineTo(Er*c-Cr*f,Cr*c+Er*f),e.lineTo(Er*r+Cr*a,Er*a-Cr*r),e.lineTo(Er*o+Cr*l,Er*l-Cr*o),e.lineTo(Er*c+Cr*f,Er*f-Cr*c),e.closePath()}};function NW(e,t){let n=null,r=rA(a);e=typeof e=="function"?e:bt(e||iA),t=typeof t=="function"?t:bt(t===void 0?64:+t);function a(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return a.type=function(o){return arguments.length?(e=typeof o=="function"?o:bt(o),a):e},a.size=function(o){return arguments.length?(t=typeof o=="function"?o:bt(+o),a):t},a.context=function(o){return arguments.length?(n=o??null,a):n},a}function Hh(){}function Wh(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function X3(e){this._context=e}X3.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:Wh(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:Wh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function RW(e){return new X3(e)}function Z3(e){this._context=e}Z3.prototype={areaStart:Hh,areaEnd:Hh,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:Wh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kW(e){return new Z3(e)}function J3(e){this._context=e}J3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Wh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zW(e){return new J3(e)}function e8(e){this._context=e}e8.prototype={areaStart:Hh,areaEnd:Hh,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 BW(e){return new e8(e)}function jT(e){return e<0?-1:1}function ET(e,t,n){var r=e._x1-e._x0,a=t-e._x1,o=(e._y1-e._y0)/(r||a<0&&-0),l=(n-e._y1)/(a||r<0&&-0),c=(o*a+l*r)/(r+a);return(jT(o)+jT(l))*Math.min(Math.abs(o),Math.abs(l),.5*Math.abs(c))||0}function CT(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function N0(e,t,n){var r=e._x0,a=e._y0,o=e._x1,l=e._y1,c=(o-r)/3;e._context.bezierCurveTo(r+c,a+c*t,o-c,l-c*n,o,l)}function Vh(e){this._context=e}Vh.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:N0(this,this._t0,CT(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,N0(this,CT(this,n=ET(this,e,t)),n);break;default:N0(this,this._t0,n=ET(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function t8(e){this._context=new n8(e)}(t8.prototype=Object.create(Vh.prototype)).point=function(e,t){Vh.prototype.point.call(this,t,e)};function n8(e){this._context=e}n8.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,o){this._context.bezierCurveTo(t,e,r,n,o,a)}};function IW(e){return new Vh(e)}function $W(e){return new t8(e)}function r8(e){this._context=e}r8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=TT(e),a=TT(t),o=0,l=1;l<n;++o,++l)this._context.bezierCurveTo(r[0][o],a[0][o],r[1][o],a[1][o],e[l],t[l]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function TT(e){var t,n=e.length-1,r,a=new Array(n),o=new Array(n),l=new Array(n);for(a[0]=0,o[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,o[t]=4,l[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,o[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/o[t-1],o[t]-=r,l[t]-=r*l[t-1];for(a[n-1]=l[n-1]/o[n-1],t=n-2;t>=0;--t)a[t]=(l[t]-a[t+1])/o[t];for(o[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-a[t+1];return[a,o]}function LW(e){return new r8(e)}function mm(e,t){this._context=e,this._t=t}mm.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: 16,276 bytes, lines 285-288
285default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function qW(e){return new mm(e,.5)}function FW(e){return new mm(e,0)}function UW(e){return new mm(e,1)}function yl(e,t){if((l=e.length)>1)for(var n=1,r,a,o=e[t[0]],l,c=o.length;n<l;++n)for(a=o,o=e[t[n]],r=0;r<c;++r)o[r][1]+=o[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function oS(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function HW(e,t){return e[t]}function WW(e){const t=[];return t.key=e,t}function VW(){var e=bt([]),t=oS,n=yl,r=HW;function a(o){var l=Array.from(e.apply(this,arguments),WW),c,f=l.length,d=-1,m;for(const p of o)for(c=0,++d;c<f;++c)(l[c][d]=[0,+r(p,l[c].key,d,o)]).data=p;for(c=0,m=aA(t(l));c<f;++c)l[m[c]].index=c;return n(l,m),l}return a.keys=function(o){return arguments.length?(e=typeof o=="function"?o:bt(Array.from(o)),a):e},a.value=function(o){return arguments.length?(r=typeof o=="function"?o:bt(+o),a):r},a.order=function(o){return arguments.length?(t=o==null?oS:typeof o=="function"?o:bt(Array.from(o)),a):t},a.offset=function(o){return arguments.length?(n=o??yl,a):n},a}function GW(e,t){if((r=e.length)>0){for(var n,r,a=0,o=e[0].length,l;a<o;++a){for(l=n=0;n<r;++n)l+=e[n][a][1]||0;if(l)for(n=0;n<r;++n)e[n][a][1]/=l}yl(e,t)}}function KW(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,o=r.length;n<o;++n){for(var l=0,c=0;l<a;++l)c+=e[l][n][1]||0;r[n][1]+=r[n][0]=-c/2}yl(e,t)}}function YW(e,t){if(!(!((l=e.length)>0)||!((o=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,o,l;r<o;++r){for(var c=0,f=0,d=0;c<l;++c){for(var m=e[t[c]],p=m[r][1]||0,g=m[r-1][1]||0,b=(p-g)/2,w=0;w<c;++w){var S=e[t[w]],A=S[r][1]||0,_=S[r-1][1]||0;b+=A-_}f+=p,d+=b*p}a[r-1][1]+=a[r-1][0]=n,f&&(n-=d/f)}a[r-1][1]+=a[r-1][0]=n,yl(e,t)}}function ku(e){"@babel/helpers - typeof";return ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ku(e)}var QW=["type","size","sizeType"];function sS(){return sS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sS.apply(this,arguments)}function PT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function MT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PT(Object(n),!0).forEach(function(r){XW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XW(e,t,n){return t=ZW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZW(e){var t=JW(e,"string");return ku(t)=="symbol"?t:t+""}function JW(e,t){if(ku(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ku(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eV(e,t){if(e==null)return{};var n=tV(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tV(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var a8={symbolCircle:iA,symbolCross:wW,symbolDiamond:OW,symbolSquare:_W,symbolStar:TW,symbolTriangle:PW,symbolWye:DW},nV=Math.PI/180,rV=function(t){var n="symbol".concat(dm(t));return a8[n]||iA},aV=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*nV;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),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}},iV=function(t,n){a8["symbol".concat(dm(t))]=n},oA=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,o=a===void 0?64:a,l=t.sizeType,c=l===void 0?"area":l,f=eV(t,QW),d=MT(MT({},f),{},{type:r,size:o,sizeType:c}),m=function(){var A=rV(r),_=NW().type(A).size(aV(o,c,r));return _()},p=d.className,g=d.cx,b=d.cy,w=_e(d,!0);return g===+g&&b===+b&&o===+o?z.createElement("path",sS({},w,{className:Ne("recharts-symbols",p),transform:"translate(".concat(g,", ").concat(b,")"),d:m()})):null};oA.registerSymbol=iV;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 lS(){return lS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lS.apply(this,arguments)}function DT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function oV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DT(Object(n),!0).forEach(function(r){zu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o8(r.key),r)}}function cV(e,t,n){return t&&lV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uV(e,t,n){return t=Gh(t),fV(e,i8()?Reflect.construct(t,n||[],Gh(e).constructor):t.apply(e,n))}function fV(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 dV(e)}function dV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i8=function(){return!!e})()}function Gh(e){return Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gh(e)}function hV(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&&cS(e,t)}function cS(e,t){return cS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},cS(e,t)}function zu(e,t,n){return t=o8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o8(e){var t=pV(e,"string");return vl(t)=="symbol"?t:t+""}function pV(e,t){if(vl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Tr=32,sA=(function(e){function t(){return sV(this,t),uV(this,t,arguments)}return hV(t,e),cV(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,o=Tr/2,l=Tr/6,c=Tr/3,f=r.inactive?a:r.color;if(r.type==="plainline")return z.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Tr,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return z.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(o,"h").concat(c,`
286            A`).concat(l,",").concat(l,",0,1,1,").concat(2*c,",").concat(o,`
287            H`).concat(Tr,"M").concat(2*c,",").concat(o,`
288            A`).concat(l,",").concat(l,",0,1,1,").concat(c,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return z.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(Tr/8,"h").concat(Tr,"v").concat(Tr*3/4,"h").concat(-Tr,"z"),className:"recharts-legend-icon"});if(z.isValidElement(r.legendIcon)){var d=oV({},r);return delete d.legendIcon,z.cloneElement(r.legendIcon,d)}return z.createElement(oA,{fill:f,cx:o,cy:o,size:Tr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,o=a.payload,l=a.iconSize,c=a.layout,f=a.formatter,d=a.inactiveColor,m={x:0,y:0,width:Tr,height:Tr},p={display:c==="horizontal"?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(b,w){var S=b.formatter||f,A=Ne(zu(zu({"recharts-legend-item":!0},"legend-item-".concat(w),!0),"inactive",b.inactive));if(b.type==="none")return null;var _=Me(b.value)?null:b.value;Gr(!Me(b.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 T=b.inactive?d:b.color;return z.createElement("li",lS({className:A,style:p,key:"legend-item-".concat(w)},Wo(r.props,b,w)),z.createElement(tS,{width:l,height:l,viewBox:m,style:g},r.renderIcon(b)),z.createElement("span",{className:"recharts-legend-item-text",style:{color:T}},S?S(_,b,w):_))})}},{key:"render",value:function(){var r=this.props,a=r.payload,o=r.layout,l=r.align;if(!a||!a.length)return null;var c={padding:0,margin:0,textAlign:o==="horizontal"?l:"left"};return z.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(D.PureComponent);zu(sA,"displayName","Legend");zu(sA,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var R0,NT;function mV(){if(NT)return R0;NT=1;var e=cm();function t(){this.__data__=new e,this.size=0}return R0=t,R0}var k0,RT;function gV(){if(RT)return k0;RT=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return k0=e,k0}var z0,kT;function yV(){if(kT)return z0;kT=1;function e(t){return this.__data__.get(t)}return z0=e,z0}var B0,zT;function vV(){if(zT)return B0;zT=1;function e(t){return this.__data__.has(t)}return B0=e,B0}var I0,BT;function bV(){if(BT)return I0;BT=1;var e=cm(),t=Xw(),n=Zw(),r=200;function a(o,l){var c=this.__data__;if(c instanceof e){var f=c.__data__;if(!t||f.length<r-1)return f.push([o,l]),this.size=++c.size,this;c=this.__data__=new n(f)}return c.set(o,l),this.size=c.size,this}return I0=a,I0}var $0,IT;function s8(){if(IT)return $0;IT=1;var e=cm(),t=mV(),n=gV(),r=yV(),a=vV(),o=bV();function l(c){var f=this.__data__=new e(c);this.size=f.size}return l.prototype.clear=t,l.prototype.delete=n,l.prototype.get=r,l.prototype.has=a,l.prototype.set=o,$0=l,$0}var L0,$T;function xV(){if($T)return L0;$T=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return L0=t,L0}var q0,LT;function SV(){if(LT)return q0;LT=1;function e(t){return this.__data__.has(t)}return q0=e,q0}var F0,qT;function l8(){if(qT)return F0;qT=1;var e=Zw(),t=xV(),n=SV();function r(a){var o=-1,l=a==null?0:a.length;for(this.__data__=new e;++o<l;)this.add(a[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,F0=r,F0}var U0,FT;function c8(){if(FT)return U0;FT=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(t[r],r,t))return!0;return!1}return U0=e,U0}var H0,UT;function u8(){if(UT)return H0;UT=1;function e(t,n){return t.has(n)}return H0=e,H0}var W0,HT;function f8(){if(HT)return W0;HT=1;var e=l8(),t=c8(),n=u8(),r=1,a=2;function o(l,c,f,d,m,p){var g=f&r,b=l.length,w=c.length;if(b!=w&&!(g&&w>b))return!1;var S=p.get(l),A=p.get(c);if(S&&A)return S==c&&A==l;var _=-1,T=!0,E=f&a?new e:void 0;for(p.set(l,c),p.set(c,l);++_<b;){var P=l[_],O=c[_];if(d)var C=g?d(O,P,_,c,l,p):d(P,O,_,l,c,p);if(C!==void 0){if(C)continue;T=!1;break}if(E){if(!t(c,function(j,N){if(!n(E,N)&&(P===j||m(P,j,f,d,p)))return E.push(N)})){T=!1;break}}else if(!(P===O||m(P,O,f,d,p))){T=!1;break}}return p.delete(l),p.delete(c),T}return W0=o,W0}var V0,WT;function wV(){if(WT)return V0;WT=1;var e=xa(),t=e.Uint8Array;return V0=t,V0}var G0,VT;function AV(){if(VT)return G0;VT=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a,o){r[++n]=[o,a]}),r}return G0=e,G0}var K0,GT;function lA(){if(GT)return K0;GT=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a){r[++n]=a}),r}return K0=e,K0}var Y0,KT;function OV(){if(KT)return Y0;KT=1;var e=Cf(),t=wV(),n=Qw(),r=f8(),a=AV(),o=lA(),l=1,c=2,f="[object Boolean]",d="[object Date]",m="[object Error]",p="[object Map]",g="[object Number]",b="[object RegExp]",w="[object Set]",S="[object String]",A="[object Symbol]",_="[object ArrayBuffer]",T="[object DataView]",E=e?e.prototype:void 0,P=E?E.valueOf:void 0;function O(C,j,N,B,q,I,L){switch(N){case T:if(C.byteLength!=j.byteLength||C.byteOffset!=j.byteOffset)return!1;C=C.buffer,j=j.buffer;case _:return!(C.byteLength!=j.byteLength||!I(new t(C),new t(j)));case f:case d:case g:return n(+C,+j);case m:return C.name==j.name&&C.message==j.message;case b:case S:return C==j+"";case p:var W=a;case w:var K=B&l;if(W||(W=o),C.size!=j.size&&!K)return!1;var U=L.get(C);if(U)return U==j;B|=c,L.set(C,j);var R=r(W(C),W(j),B,q,I,L);return L.delete(C),R;case A:if(P)return P.call(C)==P.call(j)}return!1}return Y0=O,Y0}var Q0,YT;function d8(){if(YT)return Q0;YT=1;function e(t,n){for(var r=-1,a=n.length,o=t.length;++r<a;)t[o+r]=n[r];return t}return Q0=e,Q0}var X0,QT;function _V(){if(QT)return X0;QT=1;var e=d8(),t=Wn();function n(r,a,o){var l=a(r);return t(r)?l:e(l,o(r))}return X0=n,X0}var Z0,XT;function jV(){if(XT)return Z0;XT=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,o=0,l=[];++r<a;){var c=t[r];n(c,r,t)&&(l[o++]=c)}return l}return Z0=e,Z0}var J0,ZT;function EV(){if(ZT)return J0;ZT=1;function e(){return[]}return J0=e,J0}var eb,JT;function CV(){if(JT)return eb;JT=1;var e=jV(),t=EV(),n=Object.prototype,r=n.propertyIsEnumerable,a=Object.getOwnPropertySymbols,o=a?function(l){return l==null?[]:(l=Object(l),e(a(l),function(c){return r.call(l,c)}))}:t;return eb=o,eb}var tb,eP;function TV(){if(eP)return tb;eP=1;function e(t,n){for(var r=-1,a=Array(t);++r<t;)a[r]=n(r);return a}return tb=e,tb}var nb,tP;function PV(){if(tP)return nb;tP=1;var e=ai(),t=ii(),n="[object Arguments]";function r(a){return t(a)&&e(a)==n}return nb=r,nb}var rb,nP;function cA(){if(nP)return rb;nP=1;var e=PV(),t=ii(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(l){return t(l)&&r.call(l,"callee")&&!a.call(l,"callee")};return rb=o,rb}var uu={exports:{}},ab,rP;function MV(){if(rP)return ab;rP=1;function e(){return!1}return ab=e,ab}uu.exports;var aP;function h8(){return aP||(aP=1,(function(e,t){var n=xa(),r=MV(),a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===a,c=l?n.Buffer:void 0,f=c?c.isBuffer:void 0,d=f||r;e.exports=d})(uu,uu.exports)),uu.exports}var ib,iP;function uA(){if(iP)return ib;iP=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,a){var o=typeof r;return a=a??e,!!a&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<a}return ib=n,ib}var ob,oP;function fA(){if(oP)return ob;oP=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return ob=t,ob}var sb,sP;function DV(){if(sP)return sb;sP=1;var e=ai(),t=fA(),n=ii(),r="[object Arguments]",a="[object Array]",o="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",m="[object Number]",p="[object Object]",g="[object RegExp]",b="[object Set]",w="[object String]",S="[object WeakMap]",A="[object ArrayBuffer]",_="[object DataView]",T="[object Float32Array]",E="[object Float64Array
288]",P="[object Int8Array]",O="[object Int16Array]",C="[object Int32Array]",j="[object Uint8Array]",N="[object Uint8ClampedArray]",B="[object Uint16Array]",q="[object Uint32Array]",I={};I[T]=I[E]=I[P]=I[O]=I[C]=I[j]=I[N]=I[B]=I[q]=!0,I[r]=I[a]=I[A]=I[o]=I[_]=I[l]=I[c]=I[f]=I[d]=I[m]=I[p]=I[g]=I[b]=I[w]=I[S]=!1;function L(W){return n(W)&&t(W.length)&&!!I[e(W)]}return sb=L,sb}var lb,lP;function p8(){if(lP)return lb;lP=1;function e(t){return function(n){return t(n)}}return lb=e,lb}var fu={exports:{}};fu.exports;var cP;function NV(){return cP||(cP=1,(function(e,t){var n=N3(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,l=o&&n.process,c=(function(){try{var f=a&&a.require&&a.require("util").types;return f||l&&l.binding&&l.binding("util")}catch{}})();e.exports=c})(fu,fu.exports)),fu.exports}var cb,uP;function m8(){if(uP)return cb;uP=1;var e=DV(),t=p8(),n=NV(),r=n&&n.isTypedArray,a=r?t(r):e;return cb=a,cb}var ub,fP;function RV(){if(fP)return ub;fP=1;var e=TV(),t=cA(),n=Wn(),r=h8(),a=uA(),o=m8(),l=Object.prototype,c=l.hasOwnProperty;function f(d,m){var p=n(d),g=!p&&t(d),b=!p&&!g&&r(d),w=!p&&!g&&!b&&o(d),S=p||g||b||w,A=S?e(d.length,String):[],_=A.length;for(var T in d)(m||c.call(d,T))&&!(S&&(T=="length"||b&&(T=="offset"||T=="parent")||w&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||a(T,_)))&&A.push(T);return A}return ub=f,ub}var fb,dP;function kV(){if(dP)return fb;dP=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return fb=t,fb}var db,hP;function g8(){if(hP)return db;hP=1;function e(t,n){return function(r){return t(n(r))}}return db=e,db}var hb,pP;function zV(){if(pP)return hb;pP=1;var e=g8(),t=e(Object.keys,Object);return hb=t,hb}var pb,mP;function BV(){if(mP)return pb;mP=1;var e=kV(),t=zV(),n=Object.prototype,r=n.hasOwnProperty;function a(o){if(!e(o))return t(o);var l=[];for(var c in Object(o))r.call(o,c)&&c!="constructor"&&l.push(c);return l}return pb=a,pb}var mb,gP;function Tf(){if(gP)return mb;gP=1;var e=Yw(),t=fA();function n(r){return r!=null&&t(r.length)&&!e(r)}return mb=n,mb}var gb,yP;function gm(){if(yP)return gb;yP=1;var e=RV(),t=BV(),n=Tf();function r(a){return n(a)?e(a):t(a)}return gb=r,gb}var yb,vP;function IV(){if(vP)return yb;vP=1;var e=_V(),t=CV(),n=gm();function r(a){return e(a,n,t)}return yb=r,yb}var vb,bP;function $V(){if(bP)return vb;bP=1;var e=IV(),t=1,n=Object.prototype,r=n.hasOwnProperty;function a(o,l,c,f,d,m){var p=c&t,g=e(o),b=g.length,w=e(l),S=w.length;if(b!=S&&!p)return!1;for(var A=b;A--;){var _=g[A];if(!(p?_ in l:r.call(l,_)))return!1}var T=m.get(o),E=m.get(l);if(T&&E)return T==l&&E==o;var P=!0;m.set(o,l),m.set(l,o);for(var O=p;++A<b;){_=g[A];var C=o[_],j=l[_];if(f)var N=p?f(j,C,_,l,o,m):f(C,j,_,o,l,m);if(!(N===void 0?C===j||d(C,j,c,f,m):N)){P=!1;break}O||(O=_=="constructor")}if(P&&!O){var B=o.constructor,q=l.constructor;B!=q&&"constructor"in o&&"constructor"in l&&!(typeof B=="function"&&B instanceof B&&typeof q=="function"&&q instanceof q)&&(P=!1)}return m.delete(o),m.delete(l),P}return vb=a,vb}var bb,xP;function LV(){if(xP)return bb;xP=1;var e=ns(),t=xa(),n=e(t,"DataView");return bb=n,bb}var xb,SP;function qV(){if(SP)return xb;SP=1;var e=ns(),t=xa(),n=e(t,"Promise");return xb=n,xb}var Sb,wP;function y8(){if(wP)return Sb;wP=1;var e=ns(),t=xa(),n=e(t,"Set");return Sb=n,Sb}var wb,AP;function FV(){if(AP)return wb;AP=1;var e=ns(),t=xa(),n=e(t,"WeakMap");return wb=n,wb}var Ab,OP;function UV(){if(OP)return Ab;OP=1;var e=LV(),t=Xw(),n=qV(),r=y8(),a=FV(),o=ai(),l=R3(),c="[object Map]",f="[object Object]",d="[object Promise]",m="[object Set]",p="[object WeakMap]",g="[object DataView]",b=l(e),w=l(t),S=l(n),A=l(r),_=l(a),T=o;return(e&&T(new e(new ArrayBuffer(1)))!=g||t&&T(new t)!=c||n&&T(n.resolve())!=d||r&&T(new r)!=m||a&&T(new a)!=p)&&(T=function(E){var P=o(E),O=P==f?E.constructor:void 0,C=O?l(O):"";if(C)switch(C){case b:return g;case w:return c;case S:return d;case A:return m;case _:return p}return P}),Ab=T,Ab}var Ob,_P;function HV(){if(_P)return Ob;_P=1;var e=s8(),t=f8(),n=OV(),r=$V(),a=UV(),o=Wn(),l=h8(),c=m8(),f=1,d="[object Arguments]",m="[object Array]",p="[object Object]",g=Object.prototype,b=g.hasOwnProperty;function w(S,A,_,T,E,P){var O=o(S),C=o(A),j=O?m:a(S),N=C?m:a(A);j=j==d?p:j,N=N==d?p:N;var B=j==p,q=N==p,I=j==N;if(I&&l(S)){if(!l(A))return!1;O=!0,B=!1}if(I&&!B)return P||(P=new e),O||c(S)?t(S,A,_,T,E,P):n(S,A,j,_,T,
vendor: 1,576 bytes, line 288
288E,P);if(!(_&f)){var L=B&&b.call(S,"__wrapped__"),W=q&&b.call(A,"__wrapped__");if(L||W){var K=L?S.value():S,U=W?A.value():A;return P||(P=new e),E(K,U,_,T,P)}}return I?(P||(P=new e),r(S,A,_,T,E,P)):!1}return Ob=w,Ob}var _b,jP;function dA(){if(jP)return _b;jP=1;var e=HV(),t=ii();function n(r,a,o,l,c){return r===a?!0:r==null||a==null||!t(r)&&!t(a)?r!==r&&a!==a:e(r,a,o,l,n,c)}return _b=n,_b}var jb,EP;function WV(){if(EP)return jb;EP=1;var e=s8(),t=dA(),n=1,r=2;function a(o,l,c,f){var d=c.length,m=d,p=!f;if(o==null)return!m;for(o=Object(o);d--;){var g=c[d];if(p&&g[2]?g[1]!==o[g[0]]:!(g[0]in o))return!1}for(;++d<m;){g=c[d];var b=g[0],w=o[b],S=g[1];if(p&&g[2]){if(w===void 0&&!(b in o))return!1}else{var A=new e;if(f)var _=f(w,S,b,o,l,A);if(!(_===void 0?t(S,w,n|r,f,A):_))return!1}}return!0}return jb=a,jb}var Eb,CP;function v8(){if(CP)return Eb;CP=1;var e=Ji();function t(n){return n===n&&!e(n)}return Eb=t,Eb}var Cb,TP;function VV(){if(TP)return Cb;TP=1;var e=v8(),t=gm();function n(r){for(var a=t(r),o=a.length;o--;){var l=a[o],c=r[l];a[o]=[l,c,e(c)]}return a}return Cb=n,Cb}var Tb,PP;function b8(){if(PP)return Tb;PP=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return Tb=e,Tb}var Pb,MP;function GV(){if(MP)return Pb;MP=1;var e=WV(),t=VV(),n=b8();function r(a){var o=t(a);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(l){return l===a||e(l,a,o)}}return Pb=r,Pb}var Mb,DP;function KV(){if(DP)return Mb;DP=1;function e(t,n){return t!=null&&n in Object(t)}return Mb=e,Mb}var Db,NP;function YV(){if(NP)return Db;NP=1;
vendor: 45,429 bytes, lines 288-296
288var e=B3(),t=cA(),n=Wn(),r=uA(),a=fA(),o=fm();function l(c,f,d){f=e(f,c);for(var m=-1,p=f.length,g=!1;++m<p;){var b=o(f[m]);if(!(g=c!=null&&d(c,b)))break;c=c[b]}return g||++m!=p?g:(p=c==null?0:c.length,!!p&&a(p)&&r(b,p)&&(n(c)||t(c)))}return Db=l,Db}var Nb,RP;function QV(){if(RP)return Nb;RP=1;var e=KV(),t=YV();function n(r,a){return r!=null&&t(r,a,e)}return Nb=n,Nb}var Rb,kP;function XV(){if(kP)return Rb;kP=1;var e=dA(),t=I3(),n=QV(),r=Kw(),a=v8(),o=b8(),l=fm(),c=1,f=2;function d(m,p){return r(m)&&a(p)?o(l(m),p):function(g){var b=t(g,m);return b===void 0&&b===p?n(g,m):e(p,b,c|f)}}return Rb=d,Rb}var kb,zP;function Zl(){if(zP)return kb;zP=1;function e(t){return t}return kb=e,kb}var zb,BP;function ZV(){if(BP)return zb;BP=1;function e(t){return function(n){return n?.[t]}}return zb=e,zb}var Bb,IP;function JV(){if(IP)return Bb;IP=1;var e=eA();function t(n){return function(r){return e(r,n)}}return Bb=t,Bb}var Ib,$P;function eG(){if($P)return Ib;$P=1;var e=ZV(),t=JV(),n=Kw(),r=fm();function a(o){return n(o)?e(r(o)):t(o)}return Ib=a,Ib}var $b,LP;function Sa(){if(LP)return $b;LP=1;var e=GV(),t=XV(),n=Zl(),r=Wn(),a=eG();function o(l){return typeof l=="function"?l:l==null?n:typeof l=="object"?r(l)?t(l[0],l[1]):e(l):a(l)}return $b=o,$b}var Lb,qP;function x8(){if(qP)return Lb;qP=1;function e(t,n,r,a){for(var o=t.length,l=r+(a?1:-1);a?l--:++l<o;)if(n(t[l],l,t))return l;return-1}return Lb=e,Lb}var qb,FP;function tG(){if(FP)return qb;FP=1;function e(t){return t!==t}return qb=e,qb}var Fb,UP;function nG(){if(UP)return Fb;UP=1;function e(t,n,r){for(var a=r-1,o=t.length;++a<o;)if(t[a]===n)return a;return-1}return Fb=e,Fb}var Ub,HP;function rG(){if(HP)return Ub;HP=1;var e=x8(),t=tG(),n=nG();function r(a,o,l){return o===o?n(a,o,l):e(a,t,l)}return Ub=r,Ub}var Hb,WP;function aG(){if(WP)return Hb;WP=1;var e=rG();function t(n,r){var a=n==null?0:n.length;return!!a&&e(n,r,0)>-1}return Hb=t,Hb}var Wb,VP;function iG(){if(VP)return Wb;VP=1;function e(t,n,r){for(var a=-1,o=t==null?0:t.length;++a<o;)if(r(n,t[a]))return!0;return!1}return Wb=e,Wb}var Vb,GP;function oG(){if(GP)return Vb;GP=1;function e(){}return Vb=e,Vb}var Gb,KP;function sG(){if(KP)return Gb;KP=1;var e=y8(),t=oG(),n=lA(),r=1/0,a=e&&1/n(new e([,-0]))[1]==r?function(o){return new e(o)}:t;return Gb=a,Gb}var Kb,YP;function lG(){if(YP)return Kb;YP=1;var e=l8(),t=aG(),n=iG(),r=u8(),a=sG(),o=lA(),l=200;function c(f,d,m){var p=-1,g=t,b=f.length,w=!0,S=[],A=S;if(m)w=!1,g=n;else if(b>=l){var _=d?null:a(f);if(_)return o(_);w=!1,g=r,A=new e}else A=d?[]:S;e:for(;++p<b;){var T=f[p],E=d?d(T):T;if(T=m||T!==0?T:0,w&&E===E){for(var P=A.length;P--;)if(A[P]===E)continue e;d&&A.push(E),S.push(T)}else g(A,E,m)||(A!==S&&A.push(E),S.push(T))}return S}return Kb=c,Kb}var Yb,QP;function cG(){if(QP)return Yb;QP=1;var e=Sa(),t=lG();function n(r,a){return r&&r.length?t(r,e(a,2)):[]}return Yb=n,Yb}var uG=cG();const XP=lt(uG);function S8(e,t,n){return t===!0?XP(e,n):Me(t)?XP(e,t):e}function bl(e){"@babel/helpers - typeof";return bl=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},bl(e)}var fG=["ref"];function ZP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ua(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZP(Object(n),!0).forEach(function(r){ym(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A8(r.key),r)}}function hG(e,t,n){return t&&JP(e.prototype,t),n&&JP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pG(e,t,n){return t=Kh(t),mG(e,w8()?Reflect.construct(t,n||[],Kh(e).constructor):t.apply(e,n))}function mG(e,t){if(t&&(bl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gG(e)}function gG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w8=function(){return!!e})()}function Kh(e){return Kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kh(e)}function yG(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&&uS(e,t)}function uS(e,t){return uS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},uS(e,t)}function ym(e,t,n){return t=A8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A8(e){var t=vG(e,"string");return bl(t)=="symbol"?t:t+""}function vG(e,t){if(bl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function bG(e,t){if(e==null)return{};var n=xG(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function SG(e){return e.value}function wG(e,t){if(z.isValidElement(e))return z.cloneElement(e,t);if(typeof e=="function")return z.createElement(e,t);t.ref;var n=bG(t,fG);return z.createElement(sA,n)}var eM=1,cl=(function(e){function t(){var n;dG(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=pG(this,t,[].concat(a)),ym(n,"lastBoundingBox",{width:-1,height:-1}),n}return yG(t,e),hG(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>eM||Math.abs(a.height-this.lastBoundingBox.height)>eM)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,r&&r(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ua({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,o=a.layout,l=a.align,c=a.verticalAlign,f=a.margin,d=a.chartWidth,m=a.chartHeight,p,g;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(l==="center"&&o==="vertical"){var b=this.getBBoxSnapshot();p={left:((d||0)-b.width)/2}}else p=l==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(c==="middle"){var w=this.getBBoxSnapshot();g={top:((m||0)-w.height)/2}}else g=c==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Ua(Ua({},p),g)}},{key:"render",value:function(){var r=this,a=this.props,o=a.content,l=a.width,c=a.height,f=a.wrapperStyle,d=a.payloadUniqBy,m=a.payload,p=Ua(Ua({position:"absolute",width:l||"auto",height:c||"auto"},this.getDefaultPosition(f)),f);return z.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(b){r.wrapperNode=b}},wG(o,Ua(Ua({},this.props),{},{payload:S8(m,d,SG)})))}}],[{key:"getWithHeight",value:function(r,a){var o=Ua(Ua({},this.defaultProps),r.props),l=o.layout;return l==="vertical"&&de(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||a}:null}}])})(D.PureComponent);ym(cl,"displayName","Legend");ym(cl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Qb,tM;function AG(){if(tM)return Qb;tM=1;var e=Cf(),t=cA(),n=Wn(),r=e?e.isConcatSpreadable:void 0;function a(o){return n(o)||t(o)||!!(r&&o&&o[r])}return Qb=a,Qb}var Xb,nM;function O8(){if(nM)return Xb;nM=1;var e=d8(),t=AG();function n(r,a,o,l,c){var f=-1,d=r.length;for(o||(o=t),c||(c=[]);++f<d;){var m=r[f];a>0&&o(m)?a>1?n(m,a-1,o,l,c):e(c,m):l||(c[c.length]=m)}return c}return Xb=n,Xb}var Zb,rM;function OG(){if(rM)return Zb;rM=1;function e(t){return function(n,r,a){for(var o=-1,l=Object(n),c=a(n),f=c.length;f--;){var d=c[t?f:++o];if(r(l[d],d,l)===!1)break}return n}}return Zb=e,Zb}var Jb,aM;function _G(){if(aM)return Jb;aM=1;var e=OG(),t=e();return Jb=t,Jb}var ex,iM;function _8(){if(iM)return ex;iM=1;var e=_G(),t=gm();function n(r,a){return r&&e(r,a,t)}return ex=n,ex}var tx,oM;function jG(){if(oM)return tx;oM=1;var e=Tf();function t(n,r){return function(a,o){if(a==null)return a;if(!e(a))return n(a,o);for(var l=a.length,c=r?l:-1,f=Object(a);(r?c--:++c<l)&&o(f[c],c,f)!==!1;);return a}}return tx=t,tx}var nx,sM;function hA(){if(sM)return nx;sM=1;var e=_8(),t=jG(),n=t(e);return nx=n,nx}var rx,lM;function j8(){if(lM)return rx;lM=1;var e=hA(),t=Tf();function n(r,a){var o=-1,l=t(r)?Array(r.length):[];return e(r,function(c,f,d){l[++o]=a(c,f,d)}),l}return rx=n,rx}var ax,cM;function EG(){if(cM)return ax;cM=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return ax=e,ax}var ix,uM;function CG(){if(uM)return ix;uM=1;var e=Yl();function t(n,r){if(n!==r){var a=n!==void 0,o=n===null,l=n===n,c=e(n),f=r!==void 0,d=r===null,m=r===r,p=e(r);if(!d&&!p&&!c&&n>r||c&&f&&m&&!d&&!p||o&&f&&m||!a&&m||!l)return 1;if(!o&&!c&&!p&&n<r||p&&a&&l&&!o&&!c||d&&a&&l||!f&&l||!m)return-1}return 0}return ix=t,ix}var ox,fM;function TG(){if(fM)return ox;fM=1;var e=CG();function t(n,r,a){for(var o=-1,l=n.criteria,c=r.criteria,f=l.length,d=a.length;++o<f;){var m=e(l[o],c[o]);if(m){if(o>=d)return m;var p=a[o];return m*(p=="desc"?-1:1)}}return n.index-r.index}return ox=t,ox}var sx,dM;function PG(){if(dM)return sx;dM=1;var e=Jw(),t=eA(),n=Sa(),r=j8(),a=EG(),o=p8(),l=TG(),c=Zl(),f=Wn();function d(m,p,g){p.length?p=e(p,function(S){return f(S)?function(A){return t(A,S.length===1?S[0]:S)}:S}):p=[c];var b=-1;p=e(p,o(n));var w=r(m,function(S,A,_){var T=e(p,function(E){return E(S)});return{criteria:T,index:++b,value:S}});return a(w,function(S,A){return l(S,A,g)})}return sx=d,sx}var lx,hM;function MG(){if(hM)return lx;hM=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return lx=e,lx}var cx,pM;function DG(){if(pM)return cx;pM=1;var e=MG(),t=Math.max;function n(r,a,o){return a=t(a===void 0?r.length-1:a,0),function(){for(var l=arguments,c=-1,f=t(l.length-a,0),d=Array(f);++c<f;)d[c]=l[a+c];c=-1;for(var m=Array(a+1);++c<a;)m[c]=l[c];return m[a]=o(d),e(r,this,m)}}return cx=n,cx}var ux,mM;function NG(){if(mM)return ux;mM=1;function e(t){return function(){return t}}return ux=e,ux}var fx,gM;function E8(){if(gM)return fx;gM=1;var e=ns(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return fx=t,fx}var dx,yM;function RG(){if(yM)return dx;yM=1;var e=NG(),t=E8(),n=Zl(),r=t?function(a,o){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return dx=r,dx}var hx,vM;function kG(){if(vM)return hx;vM=1;var e=800,t=16,n=Date.now;function r(a){var o=0,l=0;return function(){var c=n(),f=t-(c-l);if(l=c,f>0){if(++o>=e)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}return hx=r,hx}var px,bM;function zG(){if(bM)return px;bM=1;var e=RG(),t=kG(),n=t(e);return px=n,px}var mx,xM;function BG(){if(xM)return mx;xM=1;var e=Zl(),t=DG(),n=zG();function r(a,o){return n(t(a,o,e),a+"")}return mx=r,mx}var gx,SM;function vm(){if(SM)return gx;SM=1;var e=Qw(),t=Tf(),n=uA(),r=Ji();function a(o,l,c){if(!r(c))return!1;var f=typeof l;return(f=="number"?t(c)&&n(l,c.length):f=="string"&&l in c)?e(c[l],o):!1}return gx=a,gx}var yx,wM;function IG(){if(wM)return yx;wM=1;var e=O8(),t=PG(),n=BG(),r=vm(),a=n(function(o,l){if(o==null)return[];var c=l.length;return c>1&&r(o,l[0],l[1])?l=[]:c>2&&r(l[0],l[1],l[2])&&(l=[l[0]]),t(o,e(l,1),[])});return yx=a,yx}var $G=IG();const pA=lt($G);function Bu(e){"@babel/helpers - typeof";return Bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bu(e)}function fS(){return fS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fS.apply(this,arguments)}function LG(e,t){return HG(e)||UG(e,t)||FG(e,t)||qG()}function qG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
289In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FG(e,t){if(e){if(typeof e=="string")return AM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AM(e,t)}}function AM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function UG(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function HG(e){if(Array.isArray(e))return e}function OM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function vx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OM(Object(n),!0).forEach(function(r){WG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WG(e,t,n){return t=VG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VG(e){var t=GG(e,"string");return Bu(t)=="symbol"?t:t+""}function GG(e,t){if(Bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KG(e){return Array.isArray(e)&&rn(e[0])&&rn(e[1])?e.join(" ~ "):e}var YG=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,o=a===void 0?{}:a,l=t.itemStyle,c=l===void 0?{}:l,f=t.labelStyle,d=f===void 0?{}:f,m=t.payload,p=t.formatter,g=t.itemSorter,b=t.wrapperClassName,w=t.labelClassName,S=t.label,A=t.labelFormatter,_=t.accessibilityLayer,T=_===void 0?!1:_,E=function(){if(m&&m.length){var L={padding:0,margin:0},W=(g?pA(m,g):m).map(function(K,U){if(K.type==="none")return null;var R=vx({display:"block",paddingTop:4,paddingBottom:4,color:K.color||"#000"},c),F=K.formatter||p||KG,H=K.value,J=K.name,ae=H,$=J;if(F&&ae!=null&&$!=null){var V=F(H,J,K,U,m);if(Array.isArray(V)){var Y=LG(V,2);ae=Y[0],$=Y[1]}else ae=V}return z.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(U),style:R},rn($)?z.createElement("span",{className:"recharts-tooltip-item-name"},$):null,rn($)?z.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,z.createElement("span",{className:"recharts-tooltip-item-value"},ae),z.createElement("span",{className:"recharts-tooltip-item-unit"},K.unit||""))});return z.createElement("ul",{className:"recharts-tooltip-item-list",style:L},W)}return null},P=vx({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),O=vx({margin:0},d),C=!De(S),j=C?S:"",N=Ne("recharts-default-tooltip",b),B=Ne("recharts-tooltip-label",w);C&&A&&m!==void 0&&m!==null&&(j=A(S,m));var q=T?{role:"status","aria-live":"assertive"}:{};return z.createElement("div",fS({className:N,style:P},q),z.createElement("p",{className:B,style:O},z.isValidElement(j)?j:"".concat(j)),E())};function Iu(e){"@babel/helpers - typeof";return Iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iu(e)}function uh(e,t,n){return t=QG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QG(e){var t=XG(e,"string");return Iu(t)=="symbol"?t:t+""}function XG(e,t){if(Iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tu="recharts-tooltip-wrapper",ZG={visibility:"hidden"};function JG(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ne(tu,uh(uh(uh(uh({},"".concat(tu,"-right"),de(n)&&t&&de(t.x)&&n>=t.x),"".concat(tu,"-left"),de(n)&&t&&de(t.x)&&n<t.x),"".concat(tu,"-bottom"),de(r)&&t&&de(t.y)&&r>=t.y),"".concat(tu,"-top"),de(r)&&t&&de(t.y)&&r<t.y))}function _M(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,o=e.position,l=e.reverseDirection,c=e.tooltipDimension,f=e.viewBox,d=e.viewBoxDimension;if(o&&de(o[r]))return o[r];var m=n[r]-c-a,p=n[r]+a;if(t[r])return l[r]?m:p;if(l[r]){var g=m,b=f[r];return g<b?Math.max(p,f[r]):Math.max(m,f[r])}var w=p+c,S=f[r]+d;return w>S?Math.max(m,f[r]):Math.max(p,f[r])}function eK(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function tK(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,o=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,f=e.viewBox,d,m,p;return l.height>0&&l.width>0&&n?(m=_M({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),p=_M({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),d=eK({translateX:m,translateY:p,useTranslate3d:c})):d=ZG,{cssProperties:d,cssClasses:JG({translateX:m,translateY:p,coordinate:n})}}function xl(e){"@babel/helpers - typeof";return xl=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},xl(e)}function jM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function EM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jM(Object(n),!0).forEach(function(r){hS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,T8(r.key),r)}}function aK(e,t,n){return t&&rK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iK(e,t,n){return t=Yh(t),oK(e,C8()?Reflect.construct(t,n||[],Yh(e).constructor):t.apply(e,n))}function oK(e,t){if(t&&(xl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sK(e)}function sK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C8=function(){return!!e})()}function Yh(e){return Yh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yh(e)}function lK(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&&dS(e,t)}function dS(e,t){return dS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},dS(e,t)}function hS(e,t,n){return t=T8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T8(e){var t=cK(e,"string");return xl(t)=="symbol"?t:t+""}function cK(e,t){if(xl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var CM=1,uK=(function(e){function t(){var n;nK(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=iK(this,t,[].concat(a)),hS(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),hS(n,"handleKeyDown",function(l){if(l.key==="Escape"){var c,f,d,m;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(c=(f=n.props.coordinate)===null||f===void 0?void 0:f.x)!==null&&c!==void 0?c:0,y:(d=(m=n.props.coordinate)===null||m===void 0?void 0:m.y)!==null&&d!==void 0?d:0}})}}),n}return lK(t,e),aK(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>CM||Math.abs(r.height-this.state.lastBoundingBox.height)>CM)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,a=this.props,o=a.active,l=a.allowEscapeViewBox,c=a.animationDuration,f=a.animationEasing,d=a.children,m=a.coordinate,p=a.hasPayload,g=a.isAnimationActive,b=a.offset,w=a.position,S=a.reverseDirection,A=a.useTranslate3d,_=a.viewBox,T=a.wrapperStyle,E=tK({allowEscapeViewBox:l,coordinate:m,offsetTopLeft:b,position:w,reverseDirection:S,tooltipBox:this.state.lastBoundingBox,useTranslate3d:A,viewBox:_}),P=E.cssClasses,O=E.cssProperties,C=EM(EM({transition:g&&o?"transform ".concat(c,"ms ").concat(f):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&p?"visible":"hidden",position:"absolute",top:0,left:0},T);return z.createElement("div",{tabIndex:-1,className:P,style:C,ref:function(N){r.wrapperNode=N}},d)}}])})(D.PureComponent),fK=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},eo={isSsr:fK()};function Sl(e){"@babel/helpers - typeof";return Sl=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},Sl(e)}function TM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function PM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TM(Object(n),!0).forEach(function(r){mA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M8(r.key),r)}}function pK(e,t,n){return t&&hK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mK(e,t,n){return t=Qh(t),gK(e,P8()?Reflect.construct(t,n||[],Qh(e).constructor):t.apply(e,n))}function gK(e,t){if(t&&(Sl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yK(e)}function yK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P8=function(){return!!e})()}function Qh(e){return Qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qh(e)}function vK(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&&pS(e,t)}function pS(e,t){return pS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},pS(e,t)}function mA(e,t,n){return t=M8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M8(e){var t=bK(e,"string");return Sl(t)=="symbol"?t:t+""}function bK(e,t){if(Sl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function xK(e){return e.dataKey}function SK(e,t){return z.isValidElement(e)?z.cloneElement(e,t):typeof e=="function"?z.createElement(e,t):z.createElement(YG,t)}var ir=(function(e){function t(){return dK(this,t),mK(this,t,arguments)}return vK(t,e),pK(t,[{key:"render",value:function(){var r=this,a=this.props,o=a.active,l=a.allowEscapeViewBox,c=a.animationDuration,f=a.animationEasing,d=a.content,m=a.coordinate,p=a.filterNull,g=a.isAnimationActive,b=a.offset,w=a.payload,S=a.payloadUniqBy,A=a.position,_=a.reverseDirection,T=a.useTranslate3d,E=a.viewBox,P=a.wrapperStyle,O=w??[];p&&O.length&&(O=S8(w.filter(function(j){return j.value!=null&&(j.hide!==!0||r.props.includeHidden)}),S,xK));var C=O.length>0;return z.createElement(uK,{allowEscapeViewBox:l,animationDuration:c,animationEasing:f,isAnimationActive:g,active:o,coordinate:m,hasPayload:C,offset:b,position:A,reverseDirection:_,useTranslate3d:T,viewBox:E,wrapperStyle:P},SK(d,PM(PM({},this.props),{},{payload:O})))}}])})(D.PureComponent);mA(ir,"displayName","Tooltip");mA(ir,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!eo.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 bx,MM;function wK(){if(MM)return bx;MM=1;var e=xa(),t=function(){return e.Date.now()};return bx=t,bx}var xx,DM;function AK(){if(DM)return xx;DM=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return xx=t,xx}var Sx,NM;function OK(){if(NM)return Sx;NM=1;var e=AK(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Sx=n,Sx}var wx,RM;function D8(){if(RM)return wx;RM=1;var e=OK(),t=Ji(),n=Yl(),r=NaN,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;function f(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var m=typeof d.valueOf=="function"?d.valueOf():d;d=t(m)?m+"":m}if(typeof d!="string")return d===0?d:+d;d=e(d);var p=o.test(d);return p||l.test(d)?c(d.slice(2),p?2:8):a.test(d)?r:+d}return wx=f,wx}var Ax,kM;function _K(){if(kM)return Ax;kM=1;var e=Ji(),t=wK(),n=D8(),r="Expected a function",a=Math.max,o=Math.min;function l(c,f,d){var m,p,g,b,w,S,A=0,_=!1,T=!1,E=!0;if(typeof c!="function")throw new TypeError(r);f=n(f)||0,e(d)&&(_=!!d.leading,T="maxWait"in d,g=T?a(n(d.maxWait)||0,f):g,E="trailing"in d?!!d.trailing:E);function P(W){var K=m,U=p;return m=p=void 0,A=W,b=c.apply(U,K),b}function O(W){return A=W,w=setTimeout(N,f),_?P(W):b}function C(W){var K=W-S,U=W-A,R=f-K;return T?o(R,g-U):R}function j(W){var K=W-S,U=W-A;return S===void 0||K>=f||K<0||T&&U>=g}function N(){var W=t();if(j(W))return B(W);w=setTimeout(N,C(W))}function B(W){return w=void 0,E&&m?P(W):(m=p=void 0,b)}function q(){w!==void 0&&clearTimeout(w),A=0,m=S=p=w=void 0}function I(){return w===void 0?b:B(t())}function L(){var W=t(),K=j(W);if(m=arguments,p=this,S=W,K){if(w===void 0)return O(S);if(T)return clearTimeout(w),w=setTimeout(N,f),P(S)}return w===void 0&&(w=setTimeout(N,f)),b}return L.cancel=q,L.flush=I,L}return Ax=l,Ax}var Ox,zM;function jK(){if(zM)return Ox;zM=1;var e=_K(),t=Ji(),n="Expected a function";function r(a,o,l){var c=!0,f=!0;if(typeof a!="function")throw new TypeError(n);return t(l)&&(c="leading"in l?!!l.leading:c,f="trailing"in l?!!l.trailing:f),e(a,o,{leading:c,maxWait:o,trailing:f})}return Ox=r,Ox}var EK=jK();const N8=lt(EK);function $u(e){"@babel/helpers - typeof";return $u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$u(e)}function BM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function fh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BM(Object(n),!0).forEach(function(r){CK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CK(e,t,n){return t=TK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TK(e){var t=PK(e,"string");return $u(t)=="symbol"?t:t+""}function PK(e,t){if($u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MK(e,t){return kK(e)||RK(e,t)||NK(e,t)||DK()}function DK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
290In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NK(e,t){if(e){if(typeof e=="string")return IM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IM(e,t)}}function IM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function RK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function kK(e){if(Array.isArray(e))return e}var bm=D.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,o=e.width,l=o===void 0?"100%":o,c=e.height,f=c===void 0?"100%":c,d=e.minWidth,m=d===void 0?0:d,p=e.minHeight,g=e.maxHeight,b=e.children,w=e.debounce,S=w===void 0?0:w,A=e.id,_=e.className,T=e.onResize,E=e.style,P=E===void 0?{}:E,O=D.useRef(null),C=D.useRef();C.current=T,D.useImperativeHandle(t,function(){return Object.defineProperty(O.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),O.current},configurable:!0})});var j=D.useState({containerWidth:a.width,containerHeight:a.height}),N=MK(j,2),B=N[0],q=N[1],I=D.useCallback(function(W,K){q(function(U){var R=Math.round(W),F=Math.round(K);return U.containerWidth===R&&U.containerHeight===F?U:{containerWidth:R,containerHeight:F}})},[]);D.useEffect(function(){var W=function(J){var ae,$=J[0].contentRect,V=$.width,Y=$.height;I(V,Y),(ae=C.current)===null||ae===void 0||ae.call(C,V,Y)};S>0&&(W=N8(W,S,{trailing:!0,leading:!1}));var K=new ResizeObserver(W),U=O.current.getBoundingClientRect(),R=U.width,F=U.height;return I(R,F),K.observe(O.current),function(){K.disconnect()}},[I,S]);var L=D.useMemo(function(){var W=B.containerWidth,K=B.containerHeight;if(W<0||K<0)return null;Gr(No(l)||No(f),`The width(%s) and height(%s) are both fixed numbers,
291       maybe you don't need to use a ResponsiveContainer.`,l,f),Gr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var U=No(l)?W:l,R=No(f)?K:f;n&&n>0&&(U?R=U/n:R&&(U=R*n),g&&R>g&&(R=g)),Gr(U>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0,
292       please check the style of container, or the props width(%s) and height(%s),
293       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
294       height and width.`,U,R,l,f,m,p,n);var F=!Array.isArray(b)&&Qa(b.type).endsWith("Chart");return z.Children.map(b,function(H){return z.isValidElement(H)?D.cloneElement(H,fh({width:U,height:R},F?{style:fh({height:"100%",width:"100%",maxHeight:R,maxWidth:U},H.props.style)}:{})):H})},[n,b,f,g,p,m,B,l]);return z.createElement("div",{id:A?"".concat(A):void 0,className:Ne("recharts-responsive-container",_),style:fh(fh({},P),{},{width:l,height:f,minWidth:m,minHeight:p,maxHeight:g}),ref:O},L)}),xm=function(t){return null};xm.displayName="Cell";function Lu(e){"@babel/helpers - typeof";return Lu=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},Lu(e)}function $M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function mS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$M(Object(n),!0).forEach(function(r){zK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zK(e,t,n){return t=BK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BK(e){var t=IK(e,"string");return Lu(t)=="symbol"?t:t+""}function IK(e,t){if(Lu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ys={widthCache:{},cacheCount:0},$K=2e3,LK={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},LM="recharts_measurement_span";function qK(e){var t=mS({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var gu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||eo.isSsr)return{width:0,height:0};var r=qK(n),a=JSON.stringify({text:t,copyStyle:r});if(Ys.widthCache[a])return Ys.widthCache[a];try{var o=document.getElementById(LM);o||(o=document.createElement("span"),o.setAttribute("id",LM),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var l=mS(mS({},LK),r);Object.assign(o.style,l),o.textContent="".concat(t);var c=o.getBoundingClientRect(),f={width:c.width,height:c.height};return Ys.widthCache[a]=f,++Ys.cacheCount>$K&&(Ys.cacheCount=0,Ys.widthCache={}),f}catch{return{width:0,height:0}}},FK=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function qu(e){"@babel/helpers - typeof";return qu=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},qu(e)}function Xh(e,t){return VK(e)||WK(e,t)||HK(e,t)||UK()}function UK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
295In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HK(e,t){if(e){if(typeof e=="string")return qM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qM(e,t)}}function qM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function VK(e){if(Array.isArray(e))return e}function GK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YK(r.key),r)}}function KK(e,t,n){return t&&FM(e.prototype,t),n&&FM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function YK(e){var t=QK(e,"string");return qu(t)=="symbol"?t:t+""}function QK(e,t){if(qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var UM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,HM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,XK=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,ZK=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,R8={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},JK=Object.keys(R8),nl="NaN";function eY(e,t){return e*R8[t]}var dh=(function(){function e(t,n){GK(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!XK.test(n)&&(this.num=NaN,this.unit=""),JK.includes(n)&&(this.num=eY(t,n),this.unit="px")}return KK(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,a=(r=ZK.exec(n))!==null&&r!==void 0?r:[],o=Xh(a,3),l=o[1],c=o[2];return new e(parseFloat(l),c??"")}}])})();function k8(e){if(e.includes(nl))return nl;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=UM.exec(t))!==null&&n!==void 0?n:[],a=Xh(r,4),o=a[1],l=a[2],c=a[3],f=dh.parse(o??""),d=dh.parse(c??""),m=l==="*"?f.multiply(d):f.divide(d);if(m.isNaN())return nl;t=t.replace(UM,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,g=(p=HM.exec(t))!==null&&p!==void 0?p:[],b=Xh(g,4),w=b[1],S=b[2],A=b[3],_=dh.parse(w??""),T=dh.parse(A??""),E=S==="+"?_.add(T):_.subtract(T);if(E.isNaN())return nl;t=t.replace(HM,E.toString())}return t}var WM=/\(([^()]*)\)/;function tY(e){for(var t=e;t.includes("(");){var n=WM.exec(t),r=Xh(n,2),a=r[1];t=t.replace(WM,k8(a))}return t}function nY(e){var t=e.replace(/\s+/g,"");return t=tY(t),t=k8(t),t}function rY(e){try{return nY(e)}catch{return nl}}function _x(e){var t=rY(e.slice(5,-1));return t===nl?"":t}var aY=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],iY=["dx","dy","angle","className","breakAll"];function gS(){return gS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gS.apply(this,arguments)}function VM(e,t){if(e==null)return{};var n=oY(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function GM(e,t){return uY(e)||cY(e,t)||lY(e,t)||sY()}function sY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
296In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lY(e,t){if(e){if(typeof e=="string")return KM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KM(e,t)}}function KM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function uY(e){if(Array.isArray(e))return e}var z8=/[ \f\n\r\t\v\u2028\u2029]+/,B8=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var o=[];De(n)||(r?o=n.toString().split(""):o=n.toString().split(z8));var l=o.map(function(f){return{word:f,width:gu(f,a).width}}),c=r?0:gu(" ",a).width;return{wordsWithComputedWidth:l,spaceWidth:c}}catch{return null}},fY=function(t,n,r,a,o){var l=t.maxLines,c=t.children,f=t.style,d=t.breakAll,m=de(l),p=c,g=function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return U.reduce(function(R,F){var H=F.word,J=F.width,ae=R[R.length-1];if(ae&&(a==null||o||ae.width+J+r<Number(a)))ae.words.push(H),ae.width+=J+r;else{var $={words:[H],width:J};R.push($)}return R},[])},b=g(n),w=function(U){return U.reduce(function(R,F){return R.width>F.width?R:F})};if(!m)return b;for(var S="…",A=function(U){var R=p.slice(0,U),F=B8({breakAll:d,style:f,children:R+S}).wordsWithComputedWidth,H=g(F),J=H.length>l||w(H).width>Number(a);return[J,H]},_=0,T=p.length-1,E=0,P;_<=T&&E<=p.length-1;){var O=Math.floor((_+T)/2),C=O-1,j=A(C),N=GM(j,2),B=N[0],q=N[1],I=A(O),L=GM(I,1),W=L[0];if(!B&&!W&&(_=O+1),B&&W&&(T=O-1),!B&&W){P=q;break}E++}return P||b},YM=function(t){var n=De(t)?[]:t.toString().split(z8);return[{words:n}]},dY=function(t){var n=t.width,r=t.scaleToFit,a=t.children,o=t.style,l=t.breakAll,c=t.maxLines;if((n||r)&&!eo.isSsr){var f,d,m=B8({breakAll:l,children:a,style:o});
296if(m){var p=m.wordsWithComputedWidth,g=m.spaceWidth;f=p,d=g}else return YM(a);return fY({breakAll:l,children:a,maxLines:c,style:o},f,d,n,r)}return YM(a)},QM="#808080",Vo=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,o=a===void 0?0:a,l=t.lineHeight,c=l===void 0?"1em":l,f=t.capHeight,d=f===void 0?"0.71em":f,m=t.scaleToFit,p=m===void 0?!1:m,g=t.textAnchor,b=g===void 0?"start":g,w=t.verticalAnchor,S=w===void 0?"end":w,A=t.fill,_=A===void 0?QM:A,T=VM(t,aY),E=D.useMemo(function(){return dY({breakAll:T.breakAll,children:T.children,maxLines:T.maxLines,scaleToFit:p,style:T.style,width:T.width})},[T.breakAll,T.children,T.maxLines,p,T.style,T.width]),P=T.dx,O=T.dy,C=T.angle,j=T.className,N=T.breakAll,B=VM(T,iY);if(!rn(r)||!rn(o))return null;var q=r+(de(P)?P:0),I=o+(de(O)?O:0),L;switch(S){case"start":L=_x("calc(".concat(d,")"));break;case"middle":L=_x("calc(".concat((E.length-1)/2," * -").concat(c," + (").concat(d," / 2))"));break;default:L=_x("calc(".concat(E.length-1," * -").concat(c,")"));break}var W=[];if(p){var K=E[0].width,U=T.width;W.push("scale(".concat((de(U)?U/K:1)/K,")"))}return C&&W.push("rotate(".concat(C,", ").concat(q,", ").concat(I,")")),W.length&&(B.transform=W.join(" ")),z.createElement("text",gS({},_e(B,!0),{x:q,y:I,className:Ne("recharts-text",j),textAnchor:b,fill:_.includes("url")?QM:_}),E.map(function(R,F){var H=R.words.join(N?"":" ");return z.createElement("tspan",{x:q,dy:F===0?L:c,key:"".concat(H,"-").concat(F)},H)}))};function Gi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function hY(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gA(e){let t,n,r;e.length!==2?(t=Gi,n=(c,f)=>Gi(e(c),f),r=(c,f)=>e(c)-f):(t=e===Gi||e===hY?e:pY,n=e,r=e);function a(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const p=d+m>>>1;n(c[p],f)<0?d=p+1:m=p}while(d<m)}return d}function o(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const p=d+m>>>1;n(c[p],f)<=0?d=p+1:m=p}while(d<m)}return d}function l(c,f,d=0,m=c.length){const p=a(c,f,d,m-1);return p>d&&r(c[p-1],f)>-r(c[p],f)?p-1:p}return{left:a,center:l,right:o}}function pY(){return 0}function I8(e){return e===null?NaN:+e}function*mY(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const gY=gA(Gi),Pf=gY.right;gA(I8).center;class XM extends Map{constructor(t,n=bY){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(ZM(this,t))}has(t){return super.has(ZM(this,t))}set(t,n){return super.set(yY(this,t),n)}delete(t){return super.delete(vY(this,t))}}function ZM({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function yY({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function vY({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function bY(e){return e!==null&&typeof e=="object"?e.valueOf():e}function xY(e=Gi){if(e===Gi)return $8;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function $8(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const SY=Math.sqrt(50),wY=Math.sqrt(10),AY=Math.sqrt(2);function Zh(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),o=r/Math.pow(10,a),l=o>=SY?10:o>=wY?5:o>=AY?2:1;let c,f,d;return a<0?(d=Math.pow(10,-a)/l,c=Math.round(e*d),f=Math.round(t*d),c/d<e&&++c,f/d>t&&--f,d=-d):(d=Math.pow(10,a)*l,c=Math.round(e/d),f=Math.round(t/d),c*d<e&&++c,f*d>t&&--f),f<c&&.5<=n&&n<2?Zh(e,t,n*2):[c,f,d]}function yS(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,o,l]=r?Zh(t,e,n):Zh(e,t,n);if(!(o>=a))return[];const c=o-a+1,f=new Array(c);if(r)if(l<0)for(let d=0;d<c;++d)f[d]=(o-d)/-l;else for(let d=0;d<c;++d)f[d]=(o-d)*l;else if(l<0)for(let d=0;d<c;++d)f[d]=(a+d)/-l;else for(let d=0;d<c;++d)f[d]=(a+d)*l;return f}function vS(e,t,n){return t=+t,e=+e,n=+n,Zh(e,t,n)[2]}function bS(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?vS(t,e,n):vS(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function JM(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function eD(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function L8(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?$8:xY(a);r>n;){if(r-n>600){const f=r-n+1,d=t-n+1,m=Math.log(f),p=.5*Math.exp(2*m/3),g=.5*Math.sqrt(m*p*(f-p)/f)*(d-f/2<0?-1:1),b=Math.max(n,Math.floor(t-d*p/f+g)),w=Math.min(r,Math.floor(t+(f-d)*p/f+g));L8(e,t,b,w,a)}const o=e[t];let l=n,c=r;for(nu(e,n,t),a(e[r],o)>0&&nu(e,n,r);l<c;){for(nu(e,l,c),++l,--c;a(e[l],o)<0;)++l;for(;a(e[c],o)>0;)--c}a(e[n],o)===0?nu(e,n,c):(++c,nu(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function nu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function OY(e,t,n){if(e=Float64Array.from(mY(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return eD(e);if(t>=1)return JM(e);var r,a=(r-1)*t,o=Math.floor(a),l=JM(L8(e,o).subarray(0,o+1)),c=eD(e.subarray(o+1));return l+(c-l)*(a-o)}}function _Y(e,t,n=I8){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,o=Math.floor(a),l=+n(e[o],o,e),c=+n(e[o+1],o+1,e);return l+(c-l)*(a-o)}}function jY(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(a);++r<a;)o[r]=e+r*n;return o}function zr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function oi(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}
vendor: 8,548 bytes, line 296
296const xS=Symbol("implicit");function yA(){var e=new XM,t=[],n=[],r=xS;function a(o){let l=e.get(o);if(l===void 0){if(r!==xS)return r;e.set(o,l=t.push(o)-1)}return n[l%n.length]}return a.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new XM;for(const l of o)e.has(l)||e.set(l,t.push(l)-1);return a},a.range=function(o){return arguments.length?(n=Array.from(o),a):n.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return yA(t,n).unknown(r)},zr.apply(a,arguments),a}function Fu(){var e=yA().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,o,l,c=!1,f=0,d=0,m=.5;delete e.unknown;function p(){var g=t().length,b=a<r,w=b?a:r,S=b?r:a;o=(S-w)/Math.max(1,g-f+d*2),c&&(o=Math.floor(o)),w+=(S-w-o*(g-f))*m,l=o*(1-f),c&&(w=Math.round(w),l=Math.round(l));var A=jY(g).map(function(_){return w+o*_});return n(b?A.reverse():A)}return e.domain=function(g){return arguments.length?(t(g),p()):t()},e.range=function(g){return arguments.length?([r,a]=g,r=+r,a=+a,p()):[r,a]},e.rangeRound=function(g){return[r,a]=g,r=+r,a=+a,c=!0,p()},e.bandwidth=function(){return l},e.step=function(){return o},e.round=function(g){return arguments.length?(c=!!g,p()):c},e.padding=function(g){return arguments.length?(f=Math.min(1,d=+g),p()):f},e.paddingInner=function(g){return arguments.length?(f=Math.min(1,g),p()):f},e.paddingOuter=function(g){return arguments.length?(d=+g,p()):d},e.align=function(g){return arguments.length?(m=Math.max(0,Math.min(1,g)),p()):m},e.copy=function(){return Fu(t(),[r,a]).round(c).paddingInner(f).paddingOuter(d).align(m)},zr.apply(p(),arguments)}function q8(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return q8(t())},e}function yu(){return q8(Fu.apply(null,arguments).paddingInner(1))}function vA(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function F8(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Mf(){}var Uu=.7,Jh=1/Uu,ul="\\s*([+-]?\\d+)\\s*",Hu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",da="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",EY=/^#([0-9a-f]{3,8})$/,CY=new RegExp(`^rgb\\(${ul},${ul},${ul}\\)$`),TY=new RegExp(`^rgb\\(${da},${da},${da}\\)$`),PY=new RegExp(`^rgba\\(${ul},${ul},${ul},${Hu}\\)$`),MY=new RegExp(`^rgba\\(${da},${da},${da},${Hu}\\)$`),DY=new RegExp(`^hsl\\(${Hu},${da},${da}\\)$`),NY=new RegExp(`^hsla\\(${Hu},${da},${da},${Hu}\\)$`),tD={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};vA(Mf,Wu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:nD,formatHex:nD,formatHex8:RY,formatHsl:kY,formatRgb:rD,toString:rD});function nD(){return this.rgb().formatHex()}function RY(){return this.rgb().formatHex8()}function kY(){return U8(this).formatHsl()}function rD(){return this.rgb().formatRgb()}function Wu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=EY.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?aD(t):n===3?new Hn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?hh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?hh(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=CY.exec(e))?new Hn(t[1],t[2],t[3],1):(t=TY.exec(e))?new Hn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=PY.exec(e))?hh(t[1],t[2],t[3],t[4]):(t=MY.exec(e))?hh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=DY.exec(e))?sD(t[1],t[2]/100,t[3]/100,1):(t=NY.exec(e))?sD(t[1],t[2]/100,t[3]/100,t[4]):tD.hasOwnProperty(e)?aD(tD[e]):e==="transparent"?new Hn(NaN,NaN,NaN,0):null}function aD(e){return new Hn(e>>16&255,e>>8&255,e&255,1)}function hh(e,t,n,r){return r<=0&&(e=t=n=NaN),new Hn(e,t,n,r)}function zY(e){return e instanceof Mf||(e=Wu(e)),e?(e=e.rgb(),new Hn(e.r,e.g,e.b,e.opacity)):new Hn}function SS(e,t,n,r){return arguments.length===1?zY(e):new Hn(e,t,n,r??1)}function Hn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}vA(Hn,SS,F8(Mf,{brighter(e){return e=e==null?Jh:Math.pow(Jh,e),new Hn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Uu:Math.pow(Uu,e),new Hn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Hn(Io(this.r),Io(this.g),Io(this.b),ep(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:iD,formatHex:iD,formatHex8:BY,formatRgb:oD,toString:oD}));function iD(){return`#${Ro(this.r)}${Ro(this.g)}${Ro(this.b)}`}function BY(){return`#${Ro(this.r)}${Ro(this.g)}${Ro(this.b)}${Ro((isNaN(this.opacity)?1:this.opacity)*255)}`}function oD(){const e=ep(this.opacity);return`${e===1?"rgb(":"rgba("}${Io(this.r)}, ${Io(this.g)}, ${Io(this.b)}${e===1?")":`, ${e})`}`}function ep(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Io(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ro(e){return e=Io(e),(e<16?"0":"")+e.toString(16)}function sD(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Vr(e,t,n,r)}function U8(e){if(e instanceof Vr)return new Vr(e.h,e.s,e.l,e.opacity);if(e instanceof Mf||(e=Wu(e)),!e)return new Vr;if(e instanceof Vr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),l=NaN,c=o-a,f=(o+a)/2;return c?(t===o?l=(n-r)/c+(n<r)*6:n===o?l=(r-t)/c+2:l=(t-n)/c+4,c/=f<.5?o+a:2-o-a,l*=60):c=f>0&&f<1?0:l,new Vr(l,c,f,e.opacity)}function IY(e,t,n,r){return arguments.length===1?U8(e):new Vr(e,t,n,r??1)}function Vr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}vA(Vr,IY,F8(Mf,{brighter(e){return e=e==null?Jh:Math.pow(Jh,e),new Vr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Uu:Math.pow(Uu,e),new Vr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Hn(jx(e>=240?e-240:e+120,a,r),jx(e,a,r),jx(e<120?e+240:e-120,a,r),this.opacity)}
vendor: 4,625 bytes, line 296
296,clamp(){return new Vr(lD(this.h),ph(this.s),ph(this.l),ep(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=ep(this.opacity);return`${e===1?"hsl(":"hsla("}${lD(this.h)}, ${ph(this.s)*100}%, ${ph(this.l)*100}%${e===1?")":`, ${e})`}`}}));function lD(e){return e=(e||0)%360,e<0?e+360:e}function ph(e){return Math.max(0,Math.min(1,e||0))}function jx(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const bA=e=>()=>e;function $Y(e,t){return function(n){return e+n*t}}function LY(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function qY(e){return(e=+e)==1?H8:function(t,n){return n-t?LY(t,n,e):bA(isNaN(t)?n:t)}}function H8(e,t){var n=t-e;return n?$Y(e,n):bA(isNaN(e)?t:e)}const cD=(function e(t){var n=qY(t);function r(a,o){var l=n((a=SS(a)).r,(o=SS(o)).r),c=n(a.g,o.g),f=n(a.b,o.b),d=H8(a.opacity,o.opacity);return function(m){return a.r=l(m),a.g=c(m),a.b=f(m),a.opacity=d(m),a+""}}return r.gamma=e,r})(1);function FY(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(o){for(a=0;a<n;++a)r[a]=e[a]*(1-o)+t[a]*o;return r}}function UY(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function HY(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),o=new Array(n),l;for(l=0;l<r;++l)a[l]=Jl(e[l],t[l]);for(;l<n;++l)o[l]=t[l];return function(c){for(l=0;l<r;++l)o[l]=a[l](c);return o}}function WY(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function tp(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function VY(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=Jl(e[a],t[a]):r[a]=t[a];return function(o){for(a in n)r[a]=n[a](o);return r}}var wS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ex=new RegExp(wS.source,"g");function GY(e){return function(){return e}}function KY(e){return function(t){return e(t)+""}}function YY(e,t){var n=wS.lastIndex=Ex.lastIndex=0,r,a,o,l=-1,c=[],f=[];for(e=e+"",t=t+"";(r=wS.exec(e))&&(a=Ex.exec(t));)(o=a.index)>n&&(o=t.slice(n,o),c[l]?c[l]+=o:c[++l]=o),(r=r[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,f.push({i:l,x:tp(r,a)})),n=Ex.lastIndex;return n<t.length&&(o=t.slice(n),c[l]?c[l]+=o:c[++l]=o),c.length<2?f[0]?KY(f[0].x):GY(t):(t=f.length,function(d){for(var m=0,p;m<t;++m)c[(p=f[m]).i]=p.x(d);return c.join("")})}function Jl(e,t){var n=typeof t,r;return t==null||n==="boolean"?bA(t):(n==="number"?tp:n==="string"?(r=Wu(t))?(t=r,cD):YY:t instanceof Wu?cD:t instanceof Date?WY:UY(t)?FY:Array.isArray(t)?HY:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?VY:tp)(e,t)}function xA(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function QY(e,t){t===void 0&&(t=e,e=Jl);for(var n=0,r=t.length-1,a=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(a,a=t[++n]);return function(l){var c=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return o[c](l-c)}}function XY(e){return function(){return e}}function np(e){return+e}var uD=[0,1];function Rn(e){return e}function AS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:XY(isNaN(t)?NaN:.5)}function ZY(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function JY(e,t,n){var r=e[0],a=e[1],o=t[0],l=t[1];return a<r?(r=AS(a,r),o=n(l,o)):(r=AS(r,a),o=n(o,l)),function(c){return o(r(c))}}function eQ(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),o=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)a[l]=AS(e[l],e[l+1]),o[l]=n(t[l],t[l+1]);return function(c){var f=Pf(e,c,1,r)-1;return o[f](a[f](c))}}function Df(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Sm(){var e=uD,t=uD,n=Jl,r,a,o,l=Rn,c,f,d;function m(){var g=Math.min(e.length,t.length);return l!==Rn&&(l=ZY(e[0],e[g-1])),c=g>2?eQ:JY,f=d=null,p}function p(g){return g==null||isNaN(g=+g)?o:(f||(f=c(e.map(r),t,n)))(r(l(g)))}return p.invert=function(g){return l(a((d||(d=c(t,e.map(r),tp)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,np),m()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),m()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),n=xA,m()},p.clamp=function(g){return arguments.length?(l=g?!0:Rn,m()):l!==Rn},p.interpolate=function(g){return arguments.length?(n=g,m()):n},p.unknown=function(g){return arguments.length?(o=g,p):o},function(g,b){return r=g,a=b,m()}}function SA(){return Sm()(Rn,Rn)}
vendor: 4,129 bytes, line 296
296function tQ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function rp(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function wl(e){return e=rp(Math.abs(e)),e?e[1]:NaN}function nQ(e,t){return function(n,r){for(var a=n.length,o=[],l=0,c=e[0],f=0;a>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),o.push(n.substring(a-=c,a+c)),!((f+=c+1)>r));)c=e[l=(l+1)%e.length];return o.reverse().join(t)}}function rQ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var aQ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Vu(e){if(!(t=aQ.exec(e)))throw new Error("invalid format: "+e);var t;return new wA({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]})}Vu.prototype=wA.prototype;function wA(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+""}wA.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 iQ(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var W8;function oQ(e,t){var n=rp(e,t);if(!n)return e+"";var r=n[0],a=n[1],o=a-(W8=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,l=r.length;return o===l?r:o>l?r+new Array(o-l+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+rp(e,Math.max(0,t+o-1))[0]}function fD(e,t){var n=rp(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const dD={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:tQ,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)=>fD(e*100,t),r:fD,s:oQ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function hD(e){return e}var pD=Array.prototype.map,mD=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function sQ(e){var t=e.grouping===void 0||e.thousands===void 0?hD:nQ(pD.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?hD:rQ(pD.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function d(p){p=Vu(p);var g=p.fill,b=p.align,w=p.sign,S=p.symbol,A=p.zero,_=p.width,T=p.comma,E=p.precision,P=p.trim,O=p.type;O==="n"?(T=!0,O="g"):dD[O]||(E===void 0&&(E=12),P=!0,O="g"),(A||g==="0"&&b==="=")&&(A=!0,g="0",b="=");var C=S==="$"?n:S==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",j=S==="$"?r:/[%p]/.test(O)?l:"",N=dD[O],B=/[defgprs%]/.test(O);E=E===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function q(I){var L=C,W=j,K,U,R;if(O==="c")W=N(I)+W,I="";else{I=+I;var F=I<0||1/I<0;if(I=isNaN(I)?f:N(Math.abs(I),E),P&&(I=iQ(I)),F&&+I==0&&w!=="+"&&(F=!1),L=(F?w==="("?w:c:w==="-"||w==="("?"":w)+L,W=(O==="s"?mD[8+W8/3]:"")+W+(F&&w==="("?")":""),B){for(K=-1,U=I.length;++K<U;)if(R=I.charCodeAt(K),48>R||R>57){W=(R===46?a+I.slice(K+1):I.slice(K))+W,I=I.slice(0,K);break}}}T&&!A&&(I=t(I,1/0));var H=L.length+I.length+W.length,J=H<_?new Array(_-H+1).join(g):"";switch(T&&A&&(I=t(J+I,J.length?_-W.length:1/0),J=""),b){case"<":I=L+I+W+J;break;case"=":I=L+J+I+W;break;case"^":I=J.slice(0,H=J.length>>
2961)+L+I+W+J.slice(H);break;default:I=J+L+I+W;break}return o(I)}return q.toString=function(){return p+""},q}function m(p,g){var b=d((p=Vu(p),p.type="f",p)),w=Math.max(-8,Math.min(8,Math.floor(wl(g)/3)))*3,S=Math.pow(10,-w),A=mD[8+w/3];return function(_){return b(S*_)+A}}return{format:d,formatPrefix:m}}var mh,AA,V8;lQ({thousands:",",grouping:[3],currency:["$",""]});function lQ(e){return mh=sQ(e),AA=mh.format,V8=mh.formatPrefix,mh}function cQ(e){return Math.max(0,-wl(Math.abs(e)))}function uQ(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wl(t)/3)))*3-wl(Math.abs(e)))}function fQ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,wl(t)-wl(e))+1}function G8(e,t,n,r){var a=bS(e,t,n),o;switch(r=Vu(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=uQ(a,l))&&(r.precision=o),V8(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=fQ(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=cQ(a))&&(r.precision=o-(r.type==="%")*2);break}}return AA(r)}function to(e){var t=e.domain;return e.ticks=function(n){var r=t();return yS(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return G8(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,o=r.length-1,l=r[a],c=r[o],f,d,m=10;for(c<l&&(d=l,l=c,c=d,d=a,a=o,o=d);m-- >0;){if(d=vS(l,c,n),d===f)return r[a]=l,r[o]=c,t(r);if(d>0)l=Math.floor(l/d)*d,c=Math.ceil(c/d)*d;else if(d<0)l=Math.ceil(l*d)/d,c=Math.floor(c*d)/d;else break;f=d}return e},e}function ap(){var e=SA();return e.copy=function(){return Df(e,ap())},zr.apply(e,arguments),to(e)}function K8(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,np),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return K8(e).unknown(t)},e=arguments.length?Array.from(e,np):[0,1],to(n)}function Y8(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],o=e[r],l;return o<a&&(l=n,n=r,r=l,l=a,a=o,o=l),e[n]=t.floor(a),e[r]=t.ceil(o),e}function gD(e){return Math.log(e)}function yD(e){return Math.exp(e)}function dQ(e){return-Math.log(-e)}function hQ(e){return-Math.exp(-e)}function pQ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function mQ(e){return e===10?pQ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function gQ(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function vD(e){return(t,n)=>-e(-t,n)}function OA(e){const t=e(gD,yD),n=t.domain;let r=10,a,o;function l(){return a=gQ(r),o=mQ(r),n()[0]<0?(a=vD(a),o=vD(o),e(dQ,hQ)):e(gD,yD),t}return t.base=function(c){return arguments.length?(r=+c,l()):r},t.domain=function(c){return arguments.length?(n(c),l()):n()},t.ticks=c=>{const f=n();let d=f[0],m=f[f.length-1];const p=m<d;p&&([d,m]=[m,d]);let g=a(d),b=a(m),w,S;const A=c==null?10:+c;let _=[];if(!(r%1)&&b-g<A){if(g=Math.floor(g),b=Math.ceil(b),d>0){for(;g<=b;++g)for(w=1;w<r;++w)if(S=g<0?w/o(-g):w*o(g),!(S<d)){if(S>m)break;_.push(S)}}else for(;g<=b;++g)for(w=r-1;w>=1;--w)if(S=g>0?w/o(-g):w*o(g),!(S<d)){if(S>m)break;_.push(S)}_.length*2<A&&(_=yS(d,m,A))}else _=yS(g,b,Math.min(b-g,A)).map(o);return p?_.reverse():_},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=Vu(f)).precision==null&&(f.trim=!0),f=AA(f)),c===1/0)return f;const d=Math.max(1,r*c/t.ticks().length);return m=>{let p=m/o(Math.round(a(m)));return p*r<r-.5&&(p*=r),p<=d?f(m):""}},t.nice=()=>n(Y8(n(),{floor:c=>o(Math.floor(a(c))),ceil:c=>o(Math.ceil(a(c)))})),t}function Q8(){const e=OA(Sm()).domain([1,10]);return e.copy=()=>Df(e,Q8()).base(e.base()),zr.apply(e,arguments),e}function bD(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function xD(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function _A(e){var t=1,n=e(bD(t),xD(t));return n.constant=function(r){return arguments.length?e(bD(t=+r),xD(t)):t},to(n)}function X8(){var e=_A(Sm());return e.copy=function(){return Df(e,X8()).constant(e.constant())},zr.apply(e,arguments)}function SD(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function yQ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function vQ(e){return e<0?-e*e:e*e}function jA(e){var t=e(Rn,Rn),n=1;function r(){return n===1?e(Rn,Rn):n===.5?e(yQ,vQ):e(SD(n),SD(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},to(t)}function EA(){var e=jA(Sm());return e.copy=function(){return Df(e,EA()).exponent(e.exponent())},zr.apply(e,arguments),e}function bQ(){return EA.apply(null,arguments).exponent(.5)}function wD(e){return Math.sign(e)*e*e}function xQ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Z8(){var e=SA(),t=[0,1],n=!1,r;function a(o){var l=xQ(e(o));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(o){return e.invert(wD(o))},a.domain=function(o){return arguments.length?(e.domain(o),a):e.domain()},a.range=function(o){return arguments.length?(e.range((t=Array.from(o,np)).map(wD)),a):t.slice()},a.rangeRound=function(o){return a.range(o).round(!0)},a.round=function(o){return arguments.length?(n=!!o,a):n},a.clamp=function(o){return arguments.length?(e.clamp(o),a):e.clamp()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return Z8(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},zr.apply(a,arguments),to(a)}function J8(){var e=[],t=[],n=[],r;function a(){var l=0,c=Math.max(1,t.length);for(n=new Array(c-1);++l<c;)n[l-1]=_Y(e,l/c);return o}function o(l){return l==null||isNaN(l=+l)?r:t[Pf(n,l)]}return o.invertExtent=function(l){var c=t.indexOf(l);
296return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},o.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let c of l)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(Gi),a()},o.range=function(l){return arguments.length?(t=Array.from(l),a()):t.slice()},o.unknown=function(l){return arguments.length?(r=l,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return J8().domain(e).range(t).unknown(r)},zr.apply(o,arguments)}function ez(){var e=0,t=1,n=1,r=[.5],a=[0,1],o;function l(f){return f!=null&&f<=f?a[Pf(r,f,0,n)]:o}function c(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return l}return l.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,c()):[e,t]},l.range=function(f){return arguments.length?(n=(a=Array.from(f)).length-1,c()):a.slice()},l.invertExtent=function(f){var d=a.indexOf(f);return d<0?[NaN,NaN]:d<1?[e,r[0]]:d>=n?[r[n-1],t]:[r[d-1],r[d]]},l.unknown=function(f){return arguments.length&&(o=f),l},l.thresholds=function(){return r.slice()},l.copy=function(){return ez().domain([e,t]).range(a).unknown(o)},zr.apply(to(l),arguments)}function tz(){var e=[.5],t=[0,1],n,r=1;function a(o){return o!=null&&o<=o?t[Pf(e,o,0,r)]:n}return a.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(o){var l=t.indexOf(o);return[e[l-1],e[l]]},a.unknown=function(o){return arguments.length?(n=o,a):n},a.copy=function(){return tz().domain(e).range(t).unknown(n)},zr.apply(a,arguments)}const Cx=new Date,Tx=new Date;function an(e,t,n,r){function a(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=o=>(e(o=new Date(+o)),o),a.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),a.round=o=>{const l=a(o),c=a.ceil(o);return o-l<c-o?l:c},a.offset=(o,l)=>(t(o=new Date(+o),l==null?1:Math.floor(l)),o),a.range=(o,l,c)=>{const f=[];if(o=a.ceil(o),c=c==null?1:Math.floor(c),!(o<l)||!(c>0))return f;let d;do f.push(d=new Date(+o)),t(o,c),e(o);while(d<o&&o<l);return f},a.filter=o=>an(l=>{if(l>=l)for(;e(l),!o(l);)l.setTime(l-1)},(l,c)=>{if(l>=l)if(c<0)for(;++c<=0;)for(;t(l,-1),!o(l););else for(;--c>=0;)for(;t(l,1),!o(l););}),n&&(a.count=(o,l)=>(Cx.setTime(+o),Tx.setTime(+l),e(Cx),e(Tx),Math.floor(n(Cx,Tx))),a.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(r?l=>r(l)%o===0:l=>a.count(0,l)%o===0):a)),a}const ip=an(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ip.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?an(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ip);ip.range;const Ga=1e3,Nr=Ga*60,Ka=Nr*60,ei=Ka*24,CA=ei*7,AD=ei*30,Px=ei*365,ko=an(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ga)},(e,t)=>(t-e)/Ga,e=>e.getUTCSeconds());ko.range;const TA=an(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ga)},(e,t)=>{e.setTime(+e+t*Nr)},(e,t)=>(t-e)/Nr,e=>e.getMinutes());TA.range;const PA=an(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Nr)},(e,t)=>(t-e)/Nr,e=>e.getUTCMinutes());PA.range;const MA=an(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ga-e.getMinutes()*Nr)},(e,t)=>{e.setTime(+e+t*Ka)},(e,t)=>(t-e)/Ka,e=>e.getHours());MA.range;const DA=an(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ka)},(e,t)=>(t-e)/Ka,e=>e.getUTCHours());DA.range;const Nf=an(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Nr)/ei,e=>e.getDate()-1);Nf.range;const wm=an(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ei,e=>e.getUTCDate()-1);wm.range;const nz=an(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ei,e=>Math.floor(e/ei));nz.range;function as(e){return an(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Nr)/CA)}const Am=as(0),op=as(1),SQ=as(2),wQ=as(3),Al=as(4),AQ=as(5),OQ=as(6);Am.range;op.range;SQ.range;wQ.range;Al.range;AQ.range;OQ.range;function is(e){return an(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/CA)}const Om=is(0),sp=is(1),_Q=is(2),jQ=is(3),Ol=is(4),EQ=is(5),CQ=is(6);Om.range;sp.range;_Q.range;jQ.range;Ol.range;EQ.range;CQ.range;const NA=an(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());NA.range;const RA=an(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());RA.range;const ti=an(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());ti.every=e=>
vendor: 3,676 bytes, line 296
296!isFinite(e=Math.floor(e))||!(e>0)?null:an(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ti.range;const ni=an(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());ni.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:an(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});ni.range;function rz(e,t,n,r,a,o){const l=[[ko,1,Ga],[ko,5,5*Ga],[ko,15,15*Ga],[ko,30,30*Ga],[o,1,Nr],[o,5,5*Nr],[o,15,15*Nr],[o,30,30*Nr],[a,1,Ka],[a,3,3*Ka],[a,6,6*Ka],[a,12,12*Ka],[r,1,ei],[r,2,2*ei],[n,1,CA],[t,1,AD],[t,3,3*AD],[e,1,Px]];function c(d,m,p){const g=m<d;g&&([d,m]=[m,d]);const b=p&&typeof p.range=="function"?p:f(d,m,p),w=b?b.range(d,+m+1):[];return g?w.reverse():w}function f(d,m,p){const g=Math.abs(m-d)/p,b=gA(([,,A])=>A).right(l,g);if(b===l.length)return e.every(bS(d/Px,m/Px,p));if(b===0)return ip.every(Math.max(bS(d,m,p),1));const[w,S]=l[g/l[b-1][2]<l[b][2]/g?b-1:b];return w.every(S)}return[c,f]}const[TQ,PQ]=rz(ni,RA,Om,nz,DA,PA),[MQ,DQ]=rz(ti,NA,Am,Nf,MA,TA);function Mx(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 Dx(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 ru(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function NQ(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,o=e.days,l=e.shortDays,c=e.months,f=e.shortMonths,d=au(a),m=iu(a),p=au(o),g=iu(o),b=au(l),w=iu(l),S=au(c),A=iu(c),_=au(f),T=iu(f),E={a:F,A:H,b:J,B:ae,c:null,d:TD,e:TD,f:nX,g:dX,G:pX,H:JQ,I:eX,j:tX,L:az,m:rX,M:aX,p:$,q:V,Q:DD,s:ND,S:iX,u:oX,U:sX,V:lX,w:cX,W:uX,x:null,X:null,y:fX,Y:hX,Z:mX,"%":MD},P={a:Y,A:Z,b:ce,B:he,c:null,d:PD,e:PD,f:bX,g:TX,G:MX,H:gX,I:yX,j:vX,L:oz,m:xX,M:SX,p:me,q:ye,Q:DD,s:ND,S:wX,u:AX,U:OX,V:_X,w:jX,W:EX,x:null,X:null,y:CX,Y:PX,Z:DX,"%":MD},O={a:q,A:I,b:L,B:W,c:K,d:ED,e:ED,f:YQ,g:jD,G:_D,H:CD,I:CD,j:WQ,L:KQ,m:HQ,M:VQ,p:B,q:UQ,Q:XQ,s:ZQ,S:GQ,u:IQ,U:$Q,V:LQ,w:BQ,W:qQ,x:U,X:R,y:jD,Y:_D,Z:FQ,"%":QQ};E.x=C(n,E),E.X=C(r,E),E.c=C(t,E),P.x=C(n,P),P.X=C(r,P),P.c=C(t,P);function C(ue,pe){return function(we){var oe=[],$e=-1,Ee=0,Qe=ue.length,Ke,St,hn;for(we instanceof Date||(we=new Date(+we));++$e<Qe;)ue.charCodeAt($e)===37&&(oe.push(ue.slice(Ee,$e)),(St=OD[Ke=ue.charAt(++$e)])!=null?Ke=ue.charAt(++$e):St=Ke==="e"?" ":"0",(hn=pe[Ke])&&(Ke=hn(we,St)),oe.push(Ke),Ee=$e+1);return oe.push(ue.slice(Ee,$e)),oe.join("")}}function j(ue,pe){return function(we){var oe=ru(1900,void 0,1),$e=N(oe,ue,we+="",0),Ee,Qe;if($e!=we.length)return null;if("Q"in oe)return new Date(oe.Q);if("s"in oe)return new Date(oe.s*1e3+("L"in oe?oe.L:0));if(pe&&!("Z"in oe)&&(oe.Z=0),"p"in oe&&(oe.H=oe.H%12+oe.p*12),oe.m===void 0&&(oe.m="q"in oe?oe.q:0),"V"in oe){if(oe.V<1||oe.V>53)return null;"w"in oe||(oe.w=1),"Z"in oe?(Ee=Dx(ru(oe.y,0,1)),Qe=Ee.getUTCDay(),Ee=Qe>4||Qe===0?sp.ceil(Ee):sp(Ee),Ee=wm.offset(Ee,(oe.V-1)*7),oe.y=Ee.getUTCFullYear(),oe.m=Ee.getUTCMonth(),oe.d=Ee.getUTCDate()+(oe.w+6)%7):(Ee=Mx(ru(oe.y,0,1)),Qe=Ee.getDay(),Ee=Qe>4||Qe===0?op.ceil(Ee):op(Ee),Ee=Nf.offset(Ee,(oe.V-1)*7),oe.y=Ee.getFullYear(),oe.m=Ee.getMonth(),oe.d=Ee.getDate()+(oe.w+6)%7)}else("W"in oe||"U"in oe)&&("w"in oe||(oe.w="u"in oe?oe.u%7:"W"in oe?1:0),Qe="Z"in oe?Dx(ru(oe.y,0,1)).getUTCDay():Mx(ru(oe.y,0,1)).getDay(),oe.m=0,oe.d="W"in oe?(oe.w+6)%7+oe.W*7-(Qe+5)%7:oe.w+oe.U*7-(Qe+6)%7);
vendor: 4,755 bytes, line 296
296return"Z"in oe?(oe.H+=oe.Z/100|0,oe.M+=oe.Z%100,Dx(oe)):Mx(oe)}}function N(ue,pe,we,oe){for(var $e=0,Ee=pe.length,Qe=we.length,Ke,St;$e<Ee;){if(oe>=Qe)return-1;if(Ke=pe.charCodeAt($e++),Ke===37){if(Ke=pe.charAt($e++),St=O[Ke in OD?pe.charAt($e++):Ke],!St||(oe=St(ue,we,oe))<0)return-1}else if(Ke!=we.charCodeAt(oe++))return-1}return oe}function B(ue,pe,we){var oe=d.exec(pe.slice(we));return oe?(ue.p=m.get(oe[0].toLowerCase()),we+oe[0].length):-1}function q(ue,pe,we){var oe=b.exec(pe.slice(we));return oe?(ue.w=w.get(oe[0].toLowerCase()),we+oe[0].length):-1}function I(ue,pe,we){var oe=p.exec(pe.slice(we));return oe?(ue.w=g.get(oe[0].toLowerCase()),we+oe[0].length):-1}function L(ue,pe,we){var oe=_.exec(pe.slice(we));return oe?(ue.m=T.get(oe[0].toLowerCase()),we+oe[0].length):-1}function W(ue,pe,we){var oe=S.exec(pe.slice(we));return oe?(ue.m=A.get(oe[0].toLowerCase()),we+oe[0].length):-1}function K(ue,pe,we){return N(ue,t,pe,we)}function U(ue,pe,we){return N(ue,n,pe,we)}function R(ue,pe,we){return N(ue,r,pe,we)}function F(ue){return l[ue.getDay()]}function H(ue){return o[ue.getDay()]}function J(ue){return f[ue.getMonth()]}function ae(ue){return c[ue.getMonth()]}function $(ue){return a[+(ue.getHours()>=12)]}function V(ue){return 1+~~(ue.getMonth()/3)}function Y(ue){return l[ue.getUTCDay()]}function Z(ue){return o[ue.getUTCDay()]}function ce(ue){return f[ue.getUTCMonth()]}function he(ue){return c[ue.getUTCMonth()]}function me(ue){return a[+(ue.getUTCHours()>=12)]}function ye(ue){return 1+~~(ue.getUTCMonth()/3)}return{format:function(ue){var pe=C(ue+="",E);return pe.toString=function(){return ue},pe},parse:function(ue){var pe=j(ue+="",!1);return pe.toString=function(){return ue},pe},utcFormat:function(ue){var pe=C(ue+="",P);return pe.toString=function(){return ue},pe},utcParse:function(ue){var pe=j(ue+="",!0);return pe.toString=function(){return ue},pe}}}var OD={"-":"",_:" ",0:"0"},dn=/^\s*\d+/,RQ=/^%/,kQ=/[\\^$*+?|[\]().{}]/g;function tt(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function zQ(e){return e.replace(kQ,"\\$&")}function au(e){return new RegExp("^(?:"+e.map(zQ).join("|")+")","i")}function iu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function BQ(e,t,n){var r=dn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function IQ(e,t,n){var r=dn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function $Q(e,t,n){var r=dn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function LQ(e,t,n){var r=dn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function qQ(e,t,n){var r=dn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function _D(e,t,n){var r=dn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function jD(e,t,n){var r=dn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function FQ(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function UQ(e,t,n){var r=dn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function HQ(e,t,n){var r=dn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ED(e,t,n){var r=dn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function WQ(e,t,n){var r=dn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function CD(e,t,n){var r=dn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function VQ(e,t,n){var r=dn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function GQ(e,t,n){var r=dn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function KQ(e,t,n){var r=dn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function YQ(e,t,n){var r=dn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function QQ(e,t,n){var r=RQ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function XQ(e,t,n){var r=dn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ZQ(e,t,n){var r=dn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function TD(e,t){return tt(e.getDate(),t,2)}function JQ(e,t){return tt(e.getHours(),t,2)}function eX(e,t){return tt(e.getHours()%12||12,t,2)}function tX(e,t){return tt(1+Nf.count(ti(e),e),t,3)}function az(e,t){return tt(e.getMilliseconds(),t,3)}function nX(e,t){return az(e,t)+"000"}function rX(e,t){return tt(e.getMonth()+1,t,2)}function aX(e,t){return tt(e.getMinutes(),t,2)}function iX(e,t){return tt(e.getSeconds(),t,2)}function oX(e){var t=e.getDay();return t===0?7:t}function sX(e,t){return tt(Am.count(ti(e)-1,e),t,2)}function iz(e){var t=e.getDay();return t>=4||t===0?Al(e):Al.ceil(e)}function lX(e,t){return e=iz(e),tt(Al.count(ti(e),e)+(ti(e).getDay()===4),t,2)}function cX(e){return e.getDay()}
296function uX(e,t){return tt(op.count(ti(e)-1,e),t,2)}function fX(e,t){return tt(e.getFullYear()%100,t,2)}function dX(e,t){return e=iz(e),tt(e.getFullYear()%100,t,2)}function hX(e,t){return tt(e.getFullYear()%1e4,t,4)}function pX(e,t){var n=e.getDay();return e=n>=4||n===0?Al(e):Al.ceil(e),tt(e.getFullYear()%1e4,t,4)}function mX(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+tt(t/60|0,"0",2)+tt(t%60,"0",2)}function PD(e,t){return tt(e.getUTCDate(),t,2)}function gX(e,t){return tt(e.getUTCHours(),t,2)}function yX(e,t){return tt(e.getUTCHours()%12||12,t,2)}function vX(e,t){return tt(1+wm.count(ni(e),e),t,3)}function oz(e,t){return tt(e.getUTCMilliseconds(),t,3)}function bX(e,t){return oz(e,t)+"000"}function xX(e,t){return tt(e.getUTCMonth()+1,t,2)}function SX(e,t){return tt(e.getUTCMinutes(),t,2)}function wX(e,t){return tt(e.getUTCSeconds(),t,2)}function AX(e){var t=e.getUTCDay();return t===0?7:t}function OX(e,t){return tt(Om.count(ni(e)-1,e),t,2)}function sz(e){var t=e.getUTCDay();return t>=4||t===0?Ol(e):Ol.ceil(e)}function _X(e,t){return e=sz(e),tt(Ol.count(ni(e),e)+(ni(e).getUTCDay()===4),t,2)}function jX(e){return e.getUTCDay()}function EX(e,t){return tt(sp.count(ni(e)-1,e),t,2)}function CX(e,t){return tt(e.getUTCFullYear()%100,t,2)}function TX(e,t){return e=sz(e),tt(e.getUTCFullYear()%100,t,2)}function PX(e,t){return tt(e.getUTCFullYear()%1e4,t,4)}function MX(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ol(e):Ol.ceil(e),tt(e.getUTCFullYear()%1e4,t,4)}function DX(){return"+0000"}function MD(){return"%"}function DD(e){return+e}function ND(e){return Math.floor(+e/1e3)}var Qs,lz,cz;NX({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 NX(e){return Qs=NQ(e),lz=Qs.format,Qs.parse,cz=Qs.utcFormat,Qs.utcParse,Qs}function RX(e){return new Date(e)}function kX(e){return e instanceof Date?+e:+new Date(+e)}function kA(e,t,n,r,a,o,l,c,f,d){var m=SA(),p=m.invert,g=m.domain,b=d(".%L"),w=d(":%S"),S=d("%I:%M"),A=d("%I %p"),_=d("%a %d"),T=d("%b %d"),E=d("%B"),P=d("%Y");function O(C){return(f(C)<C?b:c(C)<C?w:l(C)<C?S:o(C)<C?A:r(C)<C?a(C)<C?_:T:n(C)<C?E:P)(C)}return m.invert=function(C){return new Date(p(C))},m.domain=function(C){return arguments.length?g(Array.from(C,kX)):g().map(RX)},m.ticks=function(C){var j=g();return e(j[0],j[j.length-1],C??10)},m.tickFormat=function(C,j){return j==null?O:d(j)},m.nice=function(C){var j=g();return(!C||typeof C.range!="function")&&(C=t(j[0],j[j.length-1],C??10)),C?g(Y8(j,C)):m},m.copy=function(){return Df(m,kA(e,t,n,r,a,o,l,c,f,d))},m}function zX(){return zr.apply(kA(MQ,DQ,ti,NA,Am,Nf,MA,TA,ko,lz).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function BX(){return zr.apply(kA(TQ,PQ,ni,RA,Om,wm,DA,PA,ko,cz).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function _m(){var e=0,t=1,n,r,a,o,l=Rn,c=!1,f;function d(p){return p==null||isNaN(p=+p)?f:l(a===0?.5:(p=(o(p)-n)*a,c?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,t]=p,n=o(e=+e),r=o(t=+t),a=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(p){return arguments.length?(c=!!p,d):c},d.interpolator=function(p){return arguments.length?(l=p,d):l};function m(p){return function(g){var b,w;return arguments.length?([b,w]=g,l=p(b,w),d):[l(0),l(1)]}}return d.range=m(Jl),d.rangeRound=m(xA),d.unknown=function(p){return arguments.length?(f=p,d):f},function(p){return o=p,n=p(e),r=p(t),a=n===r?0:1/(r-n),d}}function no(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function uz(){var e=to(_m()(Rn));return e.copy=function(){return no(e,uz())},oi.apply(e,arguments)}function fz(){var e=OA(_m()).domain([1,10]);return e.copy=function(){return no(e,fz()).base(e.base())},oi.apply(e,arguments)}function dz(){var e=_A(_m());return e.copy=function(){return no(e,dz()).constant(e.constant())},oi.apply(e,arguments)}function zA(){var e=jA(_m());return e.copy=function(){return no(e,zA()).exponent(e.exponent())},oi.apply(e,arguments)}function IX(){return zA.apply(null,arguments).exponent(.5)}function hz(){var e=[],t=Rn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Pf(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Gi),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,o)=>OY(e,o/r))},n.copy=function(){return hz(t).domain(e)},oi.apply(n,arguments)}function jm(){var e=0,t=.5,n=1,r=1,a,o,l,c,f,d=Rn,m,p=!1,g;function b(S){return isNaN(S=+S)?g:(S=.5+((S=+m(S))-o)*(r*S<r*o?c:f),d(p?Math.max(0,Math.min(1,S)):S))}b.domain=function(S){return arguments.length?([e,t,n]=S,a=m(e=+e),o=m(t=+t),l=m(n=+n),c=a===o?0:.5/(o-a),f=o===l?0:.5/(l-o),r=o<a?-1:1,b):[e,t,n]},b.clamp=function(S){return arguments.length?(p=!!S,b):p},b.interpolator=function(S){return arguments.length?(d=S,b):d};
vendor: 69,102 bytes, lines 296-323
296function w(S){return function(A){var _,T,E;return arguments.length?([_,T,E]=A,d=QY(S,[_,T,E]),b):[d(0),d(.5),d(1)]}}return b.range=w(Jl),b.rangeRound=w(xA),b.unknown=function(S){return arguments.length?(g=S,b):g},function(S){return m=S,a=S(e),o=S(t),l=S(n),c=a===o?0:.5/(o-a),f=o===l?0:.5/(l-o),r=o<a?-1:1,b}}function pz(){var e=to(jm()(Rn));return e.copy=function(){return no(e,pz())},oi.apply(e,arguments)}function mz(){var e=OA(jm()).domain([.1,1,10]);return e.copy=function(){return no(e,mz()).base(e.base())},oi.apply(e,arguments)}function gz(){var e=_A(jm());return e.copy=function(){return no(e,gz()).constant(e.constant())},oi.apply(e,arguments)}function BA(){var e=jA(jm());return e.copy=function(){return no(e,BA()).exponent(e.exponent())},oi.apply(e,arguments)}function $X(){return BA.apply(null,arguments).exponent(.5)}const RD=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Fu,scaleDiverging:pz,scaleDivergingLog:mz,scaleDivergingPow:BA,scaleDivergingSqrt:$X,scaleDivergingSymlog:gz,scaleIdentity:K8,scaleImplicit:xS,scaleLinear:ap,scaleLog:Q8,scaleOrdinal:yA,scalePoint:yu,scalePow:EA,scaleQuantile:J8,scaleQuantize:ez,scaleRadial:Z8,scaleSequential:uz,scaleSequentialLog:fz,scaleSequentialPow:zA,scaleSequentialQuantile:hz,scaleSequentialSqrt:IX,scaleSequentialSymlog:dz,scaleSqrt:bQ,scaleSymlog:X8,scaleThreshold:tz,scaleTime:zX,scaleUtc:BX,tickFormat:G8},Symbol.toStringTag,{value:"Module"}));var Nx,kD;function Em(){if(kD)return Nx;kD=1;var e=Yl();function t(n,r,a){for(var o=-1,l=n.length;++o<l;){var c=n[o],f=r(c);if(f!=null&&(d===void 0?f===f&&!e(f):a(f,d)))var d=f,m=c}return m}return Nx=t,Nx}var Rx,zD;function yz(){if(zD)return Rx;zD=1;function e(t,n){return t>n}return Rx=e,Rx}var kx,BD;function LX(){if(BD)return kx;BD=1;var e=Em(),t=yz(),n=Zl();function r(a){return a&&a.length?e(a,n,t):void 0}return kx=r,kx}var qX=LX();const Hi=lt(qX);var zx,ID;function vz(){if(ID)return zx;ID=1;function e(t,n){return t<n}return zx=e,zx}var Bx,$D;function FX(){if($D)return Bx;$D=1;var e=Em(),t=vz(),n=Zl();function r(a){return a&&a.length?e(a,n,t):void 0}return Bx=r,Bx}var UX=FX();const Cm=lt(UX);var Ix,LD;function HX(){if(LD)return Ix;LD=1;var e=Jw(),t=Sa(),n=j8(),r=Wn();function a(o,l){var c=r(o)?e:n;return c(o,t(l,3))}return Ix=a,Ix}var $x,qD;function WX(){if(qD)return $x;qD=1;var e=O8(),t=HX();function n(r,a){return e(t(r,a),1)}return $x=n,$x}var VX=WX();const GX=lt(VX);var Lx,FD;function KX(){if(FD)return Lx;FD=1;var e=dA();function t(n,r){return e(n,r)}return Lx=t,Lx}var YX=KX();const Go=lt(YX);var ec=1e9,QX={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},$A,Mt=!0,Rr="[DecimalError] ",$o=Rr+"Invalid argument: ",IA=Rr+"Exponent out of range: ",tc=Math.floor,To=Math.pow,XX=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,lr,cn=1e7,_t=7,bz=9007199254740991,lp=tc(bz/_t),ve={};ve.absoluteValue=ve.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ve.comparedTo=ve.cmp=function(e){var t,n,r,a,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===a?0:r>a^o.s<0?1:-1};ve.decimalPlaces=ve.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*_t;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ve.dividedBy=ve.div=function(e){return Xa(this,new this.constructor(e))};ve.dividedToIntegerBy=ve.idiv=function(e){var t=this,n=t.constructor;return yt(Xa(t,new n(e),0,1),n.precision)};ve.equals=ve.eq=function(e){return!this.cmp(e)};ve.exponent=function(){return Gt(this)};ve.greaterThan=ve.gt=function(e){return this.cmp(e)>0};ve.greaterThanOrEqualTo=ve.gte=function(e){return this.cmp(e)>=0};ve.isInteger=ve.isint=function(){return this.e>this.d.length-2};ve.isNegative=ve.isneg=function(){return this.s<0};ve.isPositive=ve.ispos=function(){return this.s>0};ve.isZero=function(){return this.s===0};ve.lessThan=ve.lt=function(e){return this.cmp(e)<0};ve.lessThanOrEqualTo=ve.lte=function(e){return this.cmp(e)<1};ve.logarithm=ve.log=function(e){var t,n=this,r=n.constructor,a=r.precision,o=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(lr))throw Error(Rr+"NaN");if(n.s<1)throw Error(Rr+(n.s?"NaN":"-Infinity"));return n.eq(lr)?new r(0):(Mt=!1,t=Xa(Gu(n,o),Gu(e,o),o),Mt=!0,yt(t,a))};ve.minus=ve.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?wz(t,e):xz(t,(e.s=-e.s,e))};ve.modulo=ve.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Rr+"NaN");return n.s?(Mt=!1,t=Xa(n,e,0,1).times(e),Mt=!0,n.minus(t)):yt(new r(n),a)};ve.naturalExponential=ve.exp=function(){return Sz(this)};ve.naturalLogarithm=ve.ln=function(){return Gu(this)};ve.negated=ve.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ve.plus=ve.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?xz(t,e):wz(t,(e.s=-e.s,e))};ve.precision=ve.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error($o+e);if(t=Gt(a)+1,r=a.d.length-1,n=r*_t+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};ve.squareRoot=ve.sqrt=function(){var e,t,n,r,a,o,l,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error(Rr+"NaN")}for(e=Gt(c),Mt=!1,a=Math.sqrt(+c),a==0||a==1/0?(t=ca(c.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=tc((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new f(t)):r=new f(a.toString()),n=f.precision,a=l=n+3;;)if(o=r,r=o.plus(Xa(c,o,l+2)).times(.5),ca(o.d).slice(0,l)===(t=ca(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),a==l&&t=="4999"){if(yt(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if(t!="9999")break;l+=4}return Mt=!0,yt(r,n)};ve.times=ve.mul=function(e){var t,n,r,a,o,l,c,f,d,m=this,p=m.constructor,g=m.d,b=(e=new p(e)).d;if(!m.s||!e.s)return new p(0);for(e.s*=m.s,n=m.e+e.e,f=g.length,d=b.length,f<d&&(o=g,g=b,b=o,l=f,f=d,d=l),o=[],l=f+d,r=l;r--;)o.push(0);for(r=d;--r>=0;){for(t=0,a=f+r;a>r;)c=o[a]+b[r]*g[a-r-1]+t,o[a--]=c%cn|0,t=c/cn|0;o[a]=(o[a]+t)%cn|0}for(;!o[--l];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Mt?yt(e,p.precision):e};ve.toDecimalPlaces=ve.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(ga(e,0,ec),t===void 0?t=r.rounding:ga(t,0,8),yt(n,e+Gt(n)+1,t))};ve.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=Ko(r,!0):(ga(e,0,ec),t===void 0?t=a.rounding:ga(t,0,8),r=yt(new a(r),e+1,t),n=Ko(r,!0,e+1)),n};ve.toFixed=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?Ko(a):(ga(e,0,ec),t===void 0?t=o.rounding:ga(t,0,8),r=yt(new o(a),e+Gt(a)+1,t),n=Ko(r.abs(),!1,e+Gt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};ve.toInteger=ve.toint=function(){var e=this,t=e.constructor;return yt(new t(e),Gt(e)+1,t.rounding)};ve.toNumber=function(){return+this};ve.toPower=ve.pow=function(e){var t,n,r,a,o,l,c=this,f=c.constructor,d=12,m=+(e=new f(e));if(!e.s)return new f(lr);if(c=new f(c),!c.s){if(e.s<1)throw Error(Rr+"Infinity");return c}if(c.eq(lr))return c;if(r=f.precision,e.eq(lr))return yt(c,r);if(t=e.e,n=e.d.length-1,l=t>=n,o=c.s,l){if((n=m<0?-m:m)<=bz){for(a=new f(lr),t=Math.ceil(r/_t+4),Mt=!1;n%2&&(a=a.times(c),HD(a.d,t)),n=tc(n/2),n!==0;)c=c.times(c),HD(c.d,t);return Mt=!0,e.s<0?new f(lr).div(a):yt(a,r)}}else if(o<0)throw Error(Rr+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,Mt=!1,a=e.times(Gu(c,r+d)),Mt=!0,a=Sz(a),a.s=o,a};ve.toPrecision=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?(n=Gt(a),r=Ko(a,n<=o.toExpNeg||n>=o.toExpPos)):(ga(e,1,ec),t===void 0?t=o.rounding:ga(t,0,8),a=yt(new o(a),e,t),n=Gt(a),r=Ko(a,e<=n||n<=o.toExpNeg,e)),r};ve.toSignificantDigits=ve.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(ga(e,1,ec),t===void 0?t=r.rounding:ga(t,0,8)),yt(new r(n),e,t)};ve.toString=ve.valueOf=ve.val=ve.toJSON=ve[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Gt(e),n=e.constructor;return Ko(e,t<=n.toExpNeg||t>=n.toExpPos)};function xz(e,t){var n,r,a,o,l,c,f,d,m=e.constructor,p=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),Mt?yt(t,p):t;if(f=e.d,d=t.d,l=e.e,a=t.e,f=f.slice(),o=l-a,o){for(o<0?(r=f,o=-o,c=d.length):(r=d,a=l,c=f.length),l=Math.ceil(p/_t),c=l>c?l+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=f.length,o=d.length,c-o<0&&(o=c,r=d,d=f,f=r),n=0;o;)n=(f[--o]=f[o]+d[o]+n)/cn|0,f[o]%=cn;for(n&&(f.unshift(n),++a),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=a,Mt?yt(t,p):t}function ga(e,t,n){if(e!==~~e||e<t||e>n)throw Error($o+e)}function ca(e){var t,n,r,a=e.length-1,o="",l=e[0];if(a>0){for(o+=l,t=1;t<a;t++)r=e[t]+"",n=_t-r.length,n&&(o+=Ii(n)),o+=r;l=e[t],r=l+"",n=_t-r.length,n&&(o+=Ii(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return o+l}var Xa=(function(){function e(r,a){var o,l=0,c=r.length;for(r=r.slice();c--;)o=r[c]*a+l,r[c]=o%cn|0,l=o/cn|0;return l&&r.unshift(l),r}function t(r,a,o,l){var c,f;if(o!=l)f=o>l?1:-1;else for(c=f=0;c<o;c++)if(r[c]!=a[c]){f=r[c]>a[c]?1:-1;break}return f}function n(r,a,o){for(var l=0;o--;)r[o]-=l,l=r[o]<a[o]?1:0,r[o]=l*cn+r[o]-a[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,o,l){var c,f,d,m,p,g,b,w,S,A,_,T,E,P,O,C,j,N,B=r.constructor,q=r.s==a.s?1:-1,I=r.d,L=a.d;if(!r.s)return new B(r);if(!a.s)throw Error(Rr+"Division by zero");for(f=r.e-a.e,j=L.length,O=I.length,b=new B(q),w=b.d=[],d=0;L[d]==(I[d]||0);)++d;if(L[d]>(I[d]||0)&&--f,o==null?T=o=B.precision:l?T=o+(Gt(r)-Gt(a))+1:T=o,T<0)return new B(0);if(T=T/_t+2|0,d=0,j==1)for(m=0,L=L[0],T++;(d<O||m)&&T--;d++)E=m*cn+(I[d]||0),w[d]=E/L|0,m=E%L|0;else{for(m=cn/(L[0]+1)|0,m>1&&(L=e(L,m),I=e(I,m),j=L.length,O=I.length),P=j,S=I.slice(0,j),A=S.length;A<j;)S[A++]=0;N=L.slice(),N.unshift(0),C=L[0],L[1]>=cn/2&&++C;do m=0,c=t(L,S,j,A),c<0?(_=S[0],j!=A&&(_=_*cn+(S[1]||0)),m=_/C|0,m>1?(m>=cn&&(m=cn-1),p=e(L,m),g=p.length,A=S.length,c=t(p,S,g,A),c==1&&(m--,n(p,j<g?N:L,g))):(m==0&&(c=m=1),p=L.slice()),g=p.length,g<A&&p.unshift(0),n(S,p,A),c==-1&&(A=S.length,c=t(L,S,j,A),c<1&&(m++,n(S,j<A?N:L,A))),A=S.length):c===0&&(m++,S=[0]),w[d++]=m,c&&S[0]?S[A++]=I[P]||0:(S=[I[P]],A=1);while((P++<O||S[0]!==void 0)&&T--)}return w[0]||w.shift(),b.e=f,yt(b,l?o+Gt(b)+1:o)}})();function Sz(e,t){var n,r,a,o,l,c,f=0,d=0,m=e.constructor,p=m.precision;if(Gt(e)>16)throw Error(IA+Gt(e));if(!e.s)return new m(lr);for(Mt=!1,c=p,l=new m(.03125);e.abs().gte(.1);)e=e.times(l),d+=5;for(r=Math.log(To(2,d))/Math.LN10*2+5|0,c+=r,n=a=o=new m(lr),m.precision=c;;){if(a=yt(a.times(e),c),n=n.times(++f),l=o.plus(Xa(a,n,c)),ca(l.d).slice(0,c)===ca(o.d).slice(0,c)){for(;d--;)o=yt(o.times(o),c);return m.precision=p,t==null?(Mt=!0,yt(o,p)):o}o=l}}function Gt(e){for(var t=e.e*_t,n=e.d[0];n>=10;n/=10)t++;return t}function qx(e,t,n){if(t>e.LN10.sd())throw Mt=!0,n&&(e.precision=n),Error(Rr+"LN10 precision limit exceeded");return yt(new e(e.LN10),t)}function Ii(e){for(var t="";e--;)t+="0";return t}function Gu(e,t){var n,r,a,o,l,c,f,d,m,p=1,g=10,b=e,w=b.d,S=b.constructor,A=S.precision;if(b.s<1)throw Error(Rr+(b.s?"NaN":"-Infinity"));if(b.eq(lr))return new S(0);if(t==null?(Mt=!1,d=A):d=t,b.eq(10))return t==null&&(Mt=!0),qx(S,d);if(d+=g,S.precision=d,n=ca(w),r=n.charAt(0),o=Gt(b),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)b=b.times(e),n=ca(b.d),r=n.charAt(0),p++;o=Gt(b),r>1?(b=new S("0."+n),o++):b=new S(r+"."+n.slice(1))}else return f=qx(S,d+2,A).times(o+""),b=Gu(new S(r+"."+n.slice(1)),d-g).plus(f),S.precision=A,t==null?(Mt=!0,yt(b,A)):b;for(c=l=b=Xa(b.minus(lr),b.plus(lr),d),m=yt(b.times(b),d),a=3;;){if(l=yt(l.times(m),d),f=c.plus(Xa(l,new S(a),d)),ca(f.d).slice(0,d)===ca(c.d).slice(0,d))return c=c.times(2),o!==0&&(c=c.plus(qx(S,d+2,A).times(o+""))),c=Xa(c,new S(p),d),S.precision=A,t==null?(Mt=!0,yt(c,A)):c;c=f,a+=2}}function UD(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=tc(n/_t),e.d=[],r=(n+1)%_t,n<0&&(r+=_t),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=_t;r<a;)e.d.push(+t.slice(r,r+=_t));t=t.slice(r),r=_t-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),Mt&&(e.e>lp||e.e<-lp))throw Error(IA+n)}else e.s=0,e.e=0,e.d=[0];return e}function yt(e,t,n){var r,a,o,l,c,f,d,m,p=e.d;for(l=1,o=p[0];o>=10;o/=10)l++;if(r=t-l,r<0)r+=_t,a=t,d=p[m=0];else{if(m=Math.ceil((r+1)/_t),o=p.length,m>=o)return e;for(d=o=p[m],l=1;o>=10;o/=10)l++;r%=_t,a=r-_t+l}if(n!==void 0&&(o=To(10,l-a-1),c=d/o%10|0,f=t<0||p[m+1]!==void 0||d%o,f=n<4?(c||f)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||f||n==6&&(r>0?a>0?d/To(10,l-a):0:p[m-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return f?(o=Gt(e),p.length=1,t=t-o-1,p[0]=To(10,(_t-t%_t)%_t),e.e=tc(-t/_t)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=m,o=1,m--):(p.length=m+1,o=To(10,_t-r),p[m]=a>0?(d/To(10,l-a)%To(10,a)|0)*o:0),f)for(;;)if(m==0){(p[0]+=o)==cn&&(p[0]=1,++e.e);break}else{if(p[m]+=o,p[m]!=cn)break;p[m--]=0,o=1}for(r=p.length;p[--r]===0;)p.pop();if(Mt&&(e.e>lp||e.e<-lp))throw Error(IA+Gt(e));return e}function wz(e,t){var n,r,a,o,l,c,f,d,m,p,g=e.constructor,b=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),Mt?yt(t,b):t;if(f=e.d,p=t.d,r=t.e,d=e.e,f=f.slice(),l=d-r,l){for(m=l<0,m?(n=f,l=-l,c=p.length):(n=p,r=d,c=f.length),a=Math.max(Math.ceil(b/_t),c)+2,l>a&&(l=a,n.length=1),n.reverse(),a=l;a--;)n.push(0);n.reverse()}else{for(a=f.length,c=p.length,m=a<c,m&&(c=a),a=0;a<c;a++)if(f[a]!=p[a]){m=f[a]<p[a];break}l=0}for(m&&(n=f,f=p,p=n,t.s=-t.s),c=f.length,a=p.length-c;a>0;--a)f[c++]=0;for(a=p.length;a>l;){if(f[--a]<p[a]){for(o=a;o&&f[--o]===0;)f[o]=cn-1;--f[o],f[a]+=cn}f[a]-=p[a]}for(;f[--c]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,Mt?yt(t,b):t):new g(0)}function Ko(e,t,n){var r,a=Gt(e),o=ca(e.d),l=o.length;return t?(n&&(r=n-l)>0?o=o.charAt(0)+"."+o.slice(1)+Ii(r):l>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(a<0?"e":"e+")+a):a<0?(o="0."+Ii(-a-1)+o,n&&(r=n-l)>0&&(o+=Ii(r))):a>=l?(o+=Ii(a+1-l),n&&(r=n-a-1)>0&&(o=o+"."+Ii(r))):((r=a+1)<l&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-l)>0&&(a+1===l&&(o+="."),o+=Ii(r))),e.s<0?"-"+o:o}function HD(e,t){if(e.length>t)return e.length=t,!0}function Az(e){var t,n,r;function a(o){var l=this;if(!(l instanceof a))return new a(o);if(l.constructor=a,o instanceof a){l.s=o.s,l.e=o.e,l.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error($o+o);if(o>0)l.s=1;else if(o<0)o=-o,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(o===~~o&&o<1e7){l.e=0,l.d=[o];return}return UD(l,o.toString())}else if(typeof o!="string")throw Error($o+o);if(o.charCodeAt(0)===45?(o=o.slice(1),l.s=-1):l.s=1,XX.test(o))UD(l,o);else throw Error($o+o)}if(a.prototype=ve,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=Az,a.config=a.set=ZX,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return a.config(e),a}function ZX(e){if(!e||typeof e!="object")throw Error(Rr+"Object expected");var t,n,r,a=["precision",1,ec,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((r=e[n=a[t]])!==void 0)if(tc(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error($o+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error($o+n+": "+r);return this}var $A=Az(QX);lr=new $A(1);const mt=$A;function JX(e){return rZ(e)||nZ(e)||tZ(e)||eZ()}function eZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
297In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tZ(e,t){if(e){if(typeof e=="string")return OS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OS(e,t)}}function nZ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function rZ(e){if(Array.isArray(e))return OS(e)}function OS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var aZ=function(t){return t},Oz={},_z=function(t){return t===Oz},WD=function(t){return function n(){return arguments.length===0||arguments.length===1&&_z(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},iZ=function e(t,n){return t===1?n:WD(function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var l=a.filter(function(c){return c!==Oz}).length;return l>=t?n.apply(void 0,a):e(t-l,WD(function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var m=a.map(function(p){return _z(p)?f.shift():p});return n.apply(void 0,JX(m).concat(f))}))})},Tm=function(t){return iZ(t.length,t)},_S=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},oZ=Tm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),sZ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return aZ;var a=n.reverse(),o=a[0],l=a.slice(1);return function(){return l.reduce(function(c,f){return f(c)},o.apply(void 0,arguments))}},jS=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},jz=function(t){var n=null,r=null;return function(){for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return n&&o.every(function(c,f){return c===n[f]})||(n=o,r=t.apply(void 0,o)),r}};function lZ(e){var t;return e===0?t=1:t=Math.floor(new mt(e).abs().log(10).toNumber())+1,t}function cZ(e,t,n){for(var r=new mt(e),a=0,o=[];r.lt(t)&&a<1e5;)o.push(r.toNumber()),r=r.add(n),a++;return o}var uZ=Tm(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),fZ=Tm(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),dZ=Tm(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Pm={rangeStep:cZ,getDigitCount:lZ,interpolateNumber:uZ,uninterpolateNumber:fZ,uninterpolateTruncation:dZ};function ES(e){return mZ(e)||pZ(e)||Ez(e)||hZ()}function hZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
298In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pZ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function mZ(e){if(Array.isArray(e))return CS(e)}function Ku(e,t){return vZ(e)||yZ(e,t)||Ez(e,t)||gZ()}function gZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
299In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ez(e,t){if(e){if(typeof e=="string")return CS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CS(e,t)}}function CS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yZ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,o=void 0;try{for(var l=e[Symbol.iterator](),c;!(r=(c=l.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(f){a=!0,o=f}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw o}}return n}}function vZ(e){if(Array.isArray(e))return e}function Cz(e){var t=Ku(e,2),n=t[0],r=t[1],a=n,o=r;return n>r&&(a=r,o=n),[a,o]}function Tz(e,t,n){if(e.lte(0))return new mt(0);var r=Pm.getDigitCount(e.toNumber()),a=new mt(10).pow(r),o=e.div(a),l=r!==1?.05:.1,c=new mt(Math.ceil(o.div(l).toNumber())).add(n).mul(l),f=c.mul(a);return t?f:new mt(Math.ceil(f))}function bZ(e,t,n){var r=1,a=new mt(e);if(!a.isint()&&n){var o=Math.abs(e);o<1?(r=new mt(10).pow(Pm.getDigitCount(e)-1),a=new mt(Math.floor(a.div(r).toNumber())).mul(r)):o>1&&(a=new mt(Math.floor(e)))}else e===0?a=new mt(Math.floor((t-1)/2)):n||(a=new mt(Math.floor(e)));var l=Math.floor((t-1)/2),c=sZ(oZ(function(f){return a.add(new mt(f-l).mul(r)).toNumber()}),_S);return c(0,t)}function Pz(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new mt(0),tickMin:new mt(0),tickMax:new mt(0)};var o=Tz(new mt(t).sub(e).div(n-1),r,a),l;e<=0&&t>=0?l=new mt(0):(l=new mt(e).add(t).div(2),l=l.sub(new mt(l).mod(o)));var c=Math.ceil(l.sub(e).div(o).toNumber()),f=Math.ceil(new mt(t).sub(l).div(o).toNumber()),d=c+f+1;return d>n?Pz(e,t,n,r,a+1):(d<n&&(f=t>0?f+(n-d):f,c=t>0?c:c+(n-d)),{step:o,tickMin:l.sub(new mt(c).mul(o)),tickMax:l.add(new mt(f).mul(o))})}function xZ(e){var t=Ku(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Math.max(a,2),c=Cz([n,r]),f=Ku(c,2),d=f[0],m=f[1];if(d===-1/0||m===1/0){var p=m===1/0?[d].concat(ES(_S(0,a-1).map(function(){return 1/0}))):[].concat(ES(_S(0,a-1).map(function(){return-1/0})),[m]);return n>r?jS(p):p}if(d===m)return bZ(d,a,o);var g=Pz(d,m,l,o),b=g.step,w=g.tickMin,S=g.tickMax,A=Pm.rangeStep(w,S.add(new mt(.1).mul(b)),b);return n>r?jS(A):A}function SZ(e,t){var n=Ku(e,2),r=n[0],a=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Cz([r,a]),c=Ku(l,2),f=c[0],d=c[1];if(f===-1/0||d===1/0)return[r,a];if(f===d)return[f];var m=Math.max(t,2),p=Tz(new mt(d).sub(f).div(m-1),o,0),g=[].concat(ES(Pm.rangeStep(new mt(f),new mt(d).sub(new mt(.99).mul(p)),p)),[d]);return r>a?jS(g):g}var wZ=jz(xZ),AZ=jz(SZ),OZ="Invariant failed";function Yo(e,t){throw new Error(OZ)}var _Z=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function _l(e){"@babel/helpers - typeof";return _l=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},_l(e)}function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cp.apply(this,arguments)}function jZ(e,t){return PZ(e)||TZ(e,t)||CZ(e,t)||EZ()}function EZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
300In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CZ(e,t){if(e){if(typeof e=="string")return VD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VD(e,t)}}function VD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function TZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function PZ(e){if(Array.isArray(e))return e}function MZ(e,t){if(e==null)return{};var n=DZ(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DZ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function NZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RZ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nz(r.key),r)}}function kZ(e,t,n){return t&&RZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zZ(e,t,n){return t=up(t),BZ(e,Mz()?Reflect.construct(t,n||[],up(e).constructor):t.apply(e,n))}function BZ(e,t){if(t&&(_l(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IZ(e)}function IZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Mz=function(){return!!e})()}function up(e){return up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},up(e)}function $Z(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&&TS(e,t)}function TS(e,t){return TS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},TS(e,t)}function Dz(e,t,n){return t=Nz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nz(e){var t=LZ(e,"string");return _l(t)=="symbol"?t:t+""}function LZ(e,t){if(_l(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_l(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Rf=(function(e){function t(){return NZ(this,t),zZ(this,t,arguments)}return $Z(t,e),kZ(t,[{key:"render",value:function(){var r=this.props,a=r.offset,o=r.layout,l=r.width,c=r.dataKey,f=r.data,d=r.dataPointFormatter,m=r.xAxis,p=r.yAxis,g=MZ(r,_Z),b=_e(g,!1);this.props.direction==="x"&&m.type!=="number"&&Yo();var w=f.map(function(S){var A=d(S,c),_=A.x,T=A.y,E=A.value,P=A.errorVal;if(!P)return null;var O=[],C,j;if(Array.isArray(P)){var N=jZ(P,2);C=N[0],j=N[1]}else C=j=P;if(o==="vertical"){var B=m.scale,q=T+a,I=q+l,L=q-l,W=B(E-C),K=B(E+j);O.push({x1:K,y1:I,x2:K,y2:L}),O.push({x1:W,y1:q,x2:K,y2:q}),O.push({x1:W,y1:I,x2:W,y2:L})}else if(o==="horizontal"){var U=p.scale,R=_+a,F=R-l,H=R+l,J=U(E-C),ae=U(E+j);O.push({x1:F,y1:ae,x2:H,y2:ae}),O.push({x1:R,y1:J,x2:R,y2:ae}),O.push({x1:F,y1:J,x2:H,y2:J})}return z.createElement(Ue,cp({className:"recharts-errorBar",key:"bar-".concat(O.map(function($){return"".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))},b),O.map(function($){return z.createElement("line",cp({},$,{key:"line-".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))}))});return z.createElement(Ue,{className:"recharts-errorBars"},w)}}])})(z.Component);Dz(Rf,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Dz(Rf,"displayName","ErrorBar");function Yu(e){"@babel/helpers - typeof";return Yu=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},Yu(e)}function GD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Oo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GD(Object(n),!0).forEach(function(r){qZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qZ(e,t,n){return t=FZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FZ(e){var t=UZ(e,"string");return Yu(t)=="symbol"?t:t+""}function UZ(e,t){if(Yu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rz=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,o=t.legendContent,l=ar(n,cl);if(!l)return null;var c=cl.defaultProps,f=c!==void 0?Oo(Oo({},c),l.props):{},d;return l.props&&l.props.payload?d=l.props&&l.props.payload:o==="children"?d=(r||[]).reduce(function(m,p){var g=p.item,b=p.props,w=b.sectors||b.data||[];return m.concat(w.map(function(S){return{type:l.props.iconType||g.props.legendType,value:S.name,color:S.fill,payload:S}}))},[]):d=(r||[]).map(function(m){var p=m.item,g=p.type.defaultProps,b=g!==void 0?Oo(Oo({},g),p.props):{},w=b.dataKey,S=b.name,A=b.legendType,_=b.hide;return{inactive:_,dataKey:w,type:f.iconType||A||"square",color:LA(p),value:S||w,payload:b}}),Oo(Oo(Oo({},f),cl.getWithHeight(l,a)),{},{payload:d,item:l})};function Qu(e){"@babel/helpers - typeof";return Qu=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},Qu(e)}function KD(e){return GZ(e)||VZ(e)||WZ(e)||HZ()}function HZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
301In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WZ(e,t){if(e){if(typeof e=="string")return PS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PS(e,t)}}function VZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GZ(e){if(Array.isArray(e))return PS(e)}function PS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YD(Object(n),!0).forEach(function(r){fl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fl(e,t,n){return t=KZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KZ(e){var t=YZ(e,"string");return Qu(t)=="symbol"?t:t+""}function YZ(e,t){if(Qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lt(e,t,n){return De(e)||De(t)?n:rn(t)?ur(e,t,n):Me(t)?t(e):n}function vu(e,t,n,r){var a=GX(e,function(c){return Lt(c,t)});if(n==="number"){var o=a.filter(function(c){return de(c)||parseFloat(c)});return o.length?[Cm(o),Hi(o)]:[1/0,-1/0]}var l=r?a.filter(function(c){return!De(c)}):a;return l.map(function(c){return rn(c)||c instanceof Date?c:""})}var QZ=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,l=-1,c=(n=r?.length)!==null&&n!==void 0?n:0;if(c<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var f=o.range,d=0;d<c;d++){var m=d>0?a[d-1].coordinate:a[c-1].coordinate,p=a[d].coordinate,g=d>=c-1?a[0].coordinate:a[d+1].coordinate,b=void 0;if(Dn(p-m)!==Dn(g-p)){var w=[];if(Dn(g-p)===Dn(f[1]-f[0])){b=g;var S=p+f[1]-f[0];w[0]=Math.min(S,(S+m)/2),w[1]=Math.max(S,(S+m)/2)}else{b=m;var A=g+f[1]-f[0];w[0]=Math.min(p,(A+p)/2),w[1]=Math.max(p,(A+p)/2)}var _=[Math.min(p,(b+p)/2),Math.max(p,(b+p)/2)];if(t>_[0]&&t<=_[1]||t>=w[0]&&t<=w[1]){l=a[d].index;break}}else{var T=Math.min(m,g),E=Math.max(m,g);if(t>(T+p)/2&&t<=(E+p)/2){l=a[d].index;break}}}else for(var P=0;P<c;P++)if(P===0&&t<=(r[P].coordinate+r[P+1].coordinate)/2||P>0&&P<c-1&&t>(r[P].coordinate+r[P-1].coordinate)/2&&t<=(r[P].coordinate+r[P+1].coordinate)/2||P===c-1&&t>(r[P].coordinate+r[P-1].coordinate)/2){l=r[P].index;break}return l},LA=function(t){var n,r=t,a=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Rt(Rt({},t.type.defaultProps),t.props):t.props,l=o.stroke,c=o.fill,f;switch(a){case"Line":f=l;break;case"Area":case"Radar":f=l&&l!=="none"?l:c;break;default:f=c;break}return f},XZ=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,o=a===void 0?{}:a;if(!o)return{};for(var l={},c=Object.keys(o),f=0,d=c.length;f<d;f++)for(var m=o[c[f]].stackGroups,p=Object.keys(m),g=0,b=p.length;g<b;g++){var w=m[p[g]],S=w.items,A=w.cateAxisId,_=S.filter(function(j){return Qa(j.type).indexOf("Bar")>=0});if(_&&_.length){var T=_[0].type.defaultProps,E=T!==void 0?Rt(Rt({},T),_[0].props):_[0].props,P=E.barSize,O=E[A];l[O]||(l[O]=[]);var C=De(P)?n:P;l[O].push({item:_[0],stackList:_.slice(1),barSize:De(C)?void 0:Nn(C,r,0)})}}return l},ZZ=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,o=t.sizeList,l=o===void 0?[]:o,c=t.maxBarSize,f=l.length;if(f<1)return null;var d=Nn(n,a,0,!0),m,p=[];if(l[0].barSize===+l[0].barSize){var g=!1,b=a/f,w=l.reduce(function(P,O){return P+O.barSize||0},0);w+=(f-1)*d,w>=a&&(w-=(f-1)*d,d=0),w>=a&&b>0&&(g=!0,b*=.9,w=f*b);var S=(a-w)/2>>0,A={offset:S-d,size:0};m=l.reduce(function(P,O){var C={item:O.item,position:{offset:A.offset+A.size+d,size:g?b:O.barSize}},j=[].concat(KD(P),[C]);return A=j[j.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(N){j.push({item:N,position:A})}),j},p)}else{var _=Nn(r,a,0,!0);a-2*_-(f-1)*d<=0&&(d=0);var T=(a-2*_-(f-1)*d)/f;T>1&&(T>>=0);var E=c===+c?Math.min(T,c):T;m=l.reduce(function(P,O,C){var j=[].concat(KD(P),[{item:O.item,position:{offset:_+(T+d)*C+(T-E)/2,size:E}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(N){j.push({item:N,position:j[j.length-1].position})}),j},p)}return m},JZ=function(t,n,r,a){var o=r.children,l=r.width,c=r.margin,f=l-(c.left||0)-(c.right||0),d=Rz({children:o,legendWidth:f});if(d){var m=a||{},p=m.width,g=m.height,b=d.align,w=d.verticalAlign,S=d.layout;if((S==="vertical"||S==="horizontal"&&w==="middle")&&b!=="center"&&de(t[b]))return Rt(Rt({},t),{},fl({},b,t[b]+(p||0)));if((S==="horizontal"||S==="vertical"&&b==="center")&&w!=="middle"&&de(t[w]))return Rt(Rt({},t),{},fl({},w,t[w]+(g||0)))}return t},eJ=function(t,n,r){return De(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},kz=function(t,n,r,a,o){var l=n.props.children,c=fr(l,Rf).filter(function(d){return eJ(a,o,d.props.direction)});if(c&&c.length){var f=c.map(function(d){return d.props.dataKey});return t.reduce(function(d,m){var p=Lt(m,r);if(De(p))return d;var g=Array.isArray(p)?[Cm(p),Hi(p)]:[p,p],b=f.reduce(function(w,S){var A=Lt(m,S,0),_=g[0]-Math.abs(Array.isArray(A)?A[0]:A),T=g[1]+Math.abs(Array.isArray(A)?A[1]:A);return[Math.min(_,w[0]),Math.max(T,w[1])]},[1/0,-1/0]);return[Math.min(b[0],d[0]),Math.max(b[1],d[1])]},[1/0,-1/0])}return null},tJ=function(t,n,r,a,o){var l=n.map(function(c){return kz(t,c,r,o,a)}).filter(function(c){return!De(c)});return l&&l.length?l.reduce(function(c,f){return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]):null},zz=function(t,n,r,a,o){var l=n.map(function(f){var d=f.props.dataKey;return r==="number"&&d&&kz(t,f,d,a)||vu(t,d,r,o)});if(r==="number")return l.reduce(function(f,d){return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);var c={};return l.reduce(function(f,d){for(var m=0,p=d.length;m<p;m++)c[d[m]]||(c[d[m]]=!0,f.push(d[m]));return f},[])},Bz=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},Iz=function(t,n,r,a){if(a)return t.map(function(f){return f.coordinate});var o,l,c=t.map(function(f){return f.coordinate===n&&(o=!0),f.coordinate===r&&(l=!0),f.coordinate});return o||c.push(n),l||c.push(r),c},Ya=function(t,n,r){if(!t)return null;var a=t.scale,o=t.duplicateDomain,l=t.type,c=t.range,f=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,d=(n||r)&&l==="category"&&a.bandwidth?a.bandwidth()/f:0;if(d=t.axisType==="angleAxis"&&c?.length>=2?Dn(c[0]-c[1])*2*d:d,n&&(t.ticks||t.niceTicks)){var m=(t.ticks||t.niceTicks).map(function(p){var g=o?o.indexOf(p):p;return{coordinate:a(g)+d,value:p,offset:d}});return m.filter(function(p){return!Xl(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,g){return{coordinate:a(p)+d,value:p,index:g,offset:d}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(p){return{coordinate:a(p)+d,value:p,offset:d}}):a.domain().map(function(p,g){return{coordinate:a(p)+d,value:o?o[p]:p,index:g,offset:d}})},Fx=new WeakMap,gh=function(t,n){if(typeof n!="function")return t;Fx.has(t)||Fx.set(t,new WeakMap);var r=Fx.get(t);if(r.has(n))return r.get(n);var a=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,a),a},$z=function(t,n,r){var a=t.scale,o=t.type,l=t.layout,c=t.axisType;if(a==="auto")return l==="radial"&&c==="radiusAxis"?{scale:Fu(),realScaleType:"band"}:l==="radial"&&c==="angleAxis"?{scale:ap(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:yu(),realScaleType:"point"}:o==="category"?{scale:Fu(),realScaleType:"band"}:{scale:ap(),realScaleType:"linear"};if(Ho(a)){var f="scale".concat(dm(a));return{scale:(RD[f]||yu)(),realScaleType:RD[f]?f:"point"}}return Me(a)?{scale:a}:{scale:yu(),realScaleType:"point"}},QD=1e-4,Lz=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),o=Math.min(a[0],a[1])-QD,l=Math.max(a[0],a[1])+QD,c=t(n[0]),f=t(n[r-1]);(c<o||c>l||f<o||f>l)&&t.domain([n[0],n[r-1]])}},nJ=function(t,n){if(!t)return null;for(var r=0,a=t.length;r<a;r++)if(t[r].item===n)return t[r].position;return null},rJ=function(t,n){if(!n||n.length!==2||!de(n[0])||!de(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),o=[t[0],t[1]];return(!de(t[0])||t[0]<r)&&(o[0]=r),(!de(t[1])||t[1]>a)&&(o[1]=a),o[0]>a&&(o[0]=a),o[1]<r&&(o[1]=r),o},aJ=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var o=0,l=0,c=0;c<n;++c){var f=Xl(t[c][r][1])?t[c][r][0]:t[c][r][1];f>=0?(t[c][r][0]=o,t[c][r][1]=o+f,o=t[c][r][1]):(t[c][r][0]=l,t[c][r][1]=l+f,l=t[c][r][1])}},iJ=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var o=0,l=0;l<n;++l){var c=Xl(t[l][r][1])?t[l][r][0]:t[l][r][1];c>=0?(t[l][r][0]=o,t[l][r][1]=o+c,o=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},oJ={sign:aJ,expand:GW,none:yl,silhouette:KW,wiggle:YW,positive:iJ},sJ=function(t,n,r){var a=n.map(function(c){return c.props.dataKey}),o=oJ[r],l=VW().keys(a).value(function(c,f){return+Lt(c,f,0)}).order(oS).offset(o);return l(t)},lJ=function(t,n,r,a,o,l){if(!t)return null;var c=l?n.reverse():n,f={},d=c.reduce(function(p,g){var b,w=(b=g.type)!==null&&b!==void 0&&b.defaultProps?Rt(Rt({},g.type.defaultProps),g.props):g.props,S=w.stackId,A=w.hide;if(A)return p;var _=w[r],T=p[_]||{hasStack:!1,stackGroups:{}};if(rn(S)){var E=T.stackGroups[S]||{numericAxisId:r,cateAxisId:a,items:[]};E.items.push(g),T.hasStack=!0,T.stackGroups[S]=E}else T.stackGroups[rs("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[g]};return Rt(Rt({},p),{},fl({},_,T))},f),m={};return Object.keys(d).reduce(function(p,g){var b=d[g];if(b.hasStack){var w={};b.stackGroups=Object.keys(b.stackGroups).reduce(function(S,A){var _=b.stackGroups[A];return Rt(Rt({},S),{},fl({},A,{numericAxisId:r,cateAxisId:a,items:_.items,stackedData:sJ(t,_.items,o)}))},w)}return Rt(Rt({},p),{},fl({},g,b))},m)},qz=function(t,n){var r=n.realScaleType,a=n.type,o=n.tickCount,l=n.originalDomain,c=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(o&&a==="number"&&l&&(l[0]==="auto"||l[1]==="auto")){var d=t.domain();if(!d.length)return null;var m=wZ(d,o,c);return t.domain([Cm(m),Hi(m)]),{niceTicks:m}}if(o&&a==="number"){var p=t.domain(),g=AZ(p,o,c);return{niceTicks:g}}return null};function fp(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,o=e.index,l=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!De(a[t.dataKey])){var c=Lh(n,"value",a[t.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var f=Lt(a,De(l)?t.dataKey:l);return De(f)?null:t.scale(f)}var XD=function(t){var n=t.axis,r=t.ticks,a=t.offset,o=t.bandSize,l=t.entry,c=t.index;if(n.type==="category")return r[c]?r[c].coordinate+a:null;var f=Lt(l,n.dataKey,n.domain[c]);return De(f)?null:n.scale(f)-o/2+a},cJ=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return a<=0&&o>=0?0:o<0?o:a}return r[0]},uJ=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Rt(Rt({},t.type.defaultProps),t.props):t.props,o=a.stackId;if(rn(o)){var l=n[o];if(l){var c=l.items.indexOf(t);return c>=0?l.stackedData[c]:null}}return null},fJ=function(t){return t.reduce(function(n,r){return[Cm(r.concat([n[0]]).filter(de)),Hi(r.concat([n[1]]).filter(de))]},[1/0,-1/0])},Fz=function(t,n,r){return Object.keys(t).reduce(function(a,o){var l=t[o],c=l.stackedData,f=c.reduce(function(d,m){var p=fJ(m.slice(n,r+1));return[Math.min(d[0],p[0]),Math.max(d[1],p[1])]},[1/0,-1/0]);return[Math.min(f[0],a[0]),Math.max(f[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},ZD=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,JD=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,MS=function(t,n,r){if(Me(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(de(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(ZD.test(t[0])){var o=+ZD.exec(t[0])[1];a[0]=n[0]-o}else Me(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(de(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(JD.test(t[1])){var l=+JD.exec(t[1])[1];a[1]=n[1]+l}else Me(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},dp=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!r||a>0)return a}if(t&&n&&n.length>=2){for(var o=pA(n,function(p){return p.coordinate}),l=1/0,c=1,f=o.length;c<f;c++){var d=o[c],m=o[c-1];l=Math.min((d.coordinate||0)-(m.coordinate||0),l)}return l===1/0?0:l}return r?void 0:0},eN=function(t,n,r){return!t||!t.length||Go(t,ur(r,"type.defaultProps.domain"))?n:t},Uz=function(t,n){var r=t.type.defaultProps?Rt(Rt({},t.type.defaultProps),t.props):t.props,a=r.dataKey,o=r.name,l=r.unit,c=r.formatter,f=r.tooltipType,d=r.chartType,m=r.hide;return Rt(Rt({},_e(t,!1)),{},{dataKey:a,unit:l,formatter:c,name:o||a,color:LA(t),value:Lt(n,a),type:f,payload:n,chartType:d,hide:m})};function Xu(e){"@babel/helpers - typeof";return Xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xu(e)}function tN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ha(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tN(Object(n),!0).forEach(function(r){Hz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hz(e,t,n){return t=dJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dJ(e){var t=hJ(e,"string");return Xu(t)=="symbol"?t:t+""}function hJ(e,t){if(Xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pJ(e,t){return vJ(e)||yJ(e,t)||gJ(e,t)||mJ()}function mJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
302In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gJ(e,t){if(e){if(typeof e=="string")return nN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nN(e,t)}}function nN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function vJ(e){if(Array.isArray(e))return e}var hp=Math.PI/180,bJ=function(t){return t*180/Math.PI},xt=function(t,n,r,a){return{x:t+Math.cos(-hp*a)*r,y:n+Math.sin(-hp*a)*r}},Wz=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},xJ=function(t,n,r,a,o){var l=t.width,c=t.height,f=t.startAngle,d=t.endAngle,m=Nn(t.cx,l,l/2),p=Nn(t.cy,c,c/2),g=Wz(l,c,r),b=Nn(t.innerRadius,g,0),w=Nn(t.outerRadius,g,g*.8),S=Object.keys(n);return S.reduce(function(A,_){var T=n[_],E=T.domain,P=T.reversed,O;if(De(T.range))a==="angleAxis"?O=[f,d]:a==="radiusAxis"&&(O=[b,w]),P&&(O=[O[1],O[0]]);else{O=T.range;var C=O,j=pJ(C,2);f=j[0],d=j[1]}var N=$z(T,o),B=N.realScaleType,q=N.scale;q.domain(E).range(O),Lz(q);var I=qz(q,Ha(Ha({},T),{},{realScaleType:B})),L=Ha(Ha(Ha({},T),I),{},{range:O,radius:w,realScaleType:B,scale:q,cx:m,cy:p,innerRadius:b,outerRadius:w,startAngle:f,endAngle:d});return Ha(Ha({},A),{},Hz({},_,L))},{})},SJ=function(t,n){var r=t.x,a=t.y,o=n.x,l=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(a-l,2))},wJ=function(t,n){var r=t.x,a=t.y,o=n.cx,l=n.cy,c=SJ({x:r,y:a},{x:o,y:l});if(c<=0)return{radius:c};var f=(r-o)/c,d=Math.acos(f);return a>l&&(d=2*Math.PI-d),{radius:c,angle:bJ(d),angleInRadian:d}},AJ=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),o=Math.floor(r/360),l=Math.min(a,o);return{startAngle:n-l*360,endAngle:r-l*360}},OJ=function(t,n){var r=n.startAngle,a=n.endAngle,o=Math.floor(r/360),l=Math.floor(a/360),c=Math.min(o,l);return t+c*360},rN=function(t,n){var r=t.x,a=t.y,o=wJ({x:r,y:a},n),l=o.radius,c=o.angle,f=n.innerRadius,d=n.outerRadius;if(l<f||l>d)return!1;if(l===0)return!0;var m=AJ(n),p=m.startAngle,g=m.endAngle,b=c,w;if(p<=g){for(;b>g;)b-=360;for(;b<p;)b+=360;w=b>=p&&b<=g}else{for(;b>p;)b-=360;for(;b<g;)b+=360;w=b>=g&&b<=p}return w?Ha(Ha({},n),{},{radius:l,angle:OJ(b,n)}):null},Vz=function(t){return!D.isValidElement(t)&&!Me(t)&&typeof t!="boolean"?t.className:""};function Zu(e){"@babel/helpers - typeof";return Zu=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},Zu(e)}var _J=["offset"];function jJ(e){return PJ(e)||TJ(e)||CJ(e)||EJ()}function EJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
303In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CJ(e,t){if(e){if(typeof e=="string")return DS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DS(e,t)}}function TJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PJ(e){if(Array.isArray(e))return DS(e)}function DS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MJ(e,t){if(e==null)return{};var n=DJ(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DJ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function aN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function en(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aN(Object(n),!0).forEach(function(r){NJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NJ(e,t,n){return t=RJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RJ(e){var t=kJ(e,"string");return Zu(t)=="symbol"?t:t+""}function kJ(e,t){if(Zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ju(){return Ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ju.apply(this,arguments)}var zJ=function(t){var n=t.value,r=t.formatter,a=De(t.children)?n:t.children;return Me(r)?r(a):a},BJ=function(t,n){var r=Dn(n-t),a=Math.min(Math.abs(n-t),360);return r*a},IJ=function(t,n,r){var a=t.position,o=t.viewBox,l=t.offset,c=t.className,f=o,d=f.cx,m=f.cy,p=f.innerRadius,g=f.outerRadius,b=f.startAngle,w=f.endAngle,S=f.clockWise,A=(p+g)/2,_=BJ(b,w),T=_>=0?1:-1,E,P;a==="insideStart"?(E=b+T*l,P=S):a==="insideEnd"?(E=w-T*l,P=!S):a==="end"&&(E=w+T*l,P=S),P=_<=0?P:!P;var O=xt(d,m,A,E),C=xt(d,m,A,E+(P?1:-1)*359),j="M".concat(O.x,",").concat(O.y,`
304    A`).concat(A,",").concat(A,",0,1,").concat(P?0:1,`,
305    `).concat(C.x,",").concat(C.y),N=De(t.id)?rs("recharts-radial-line-"):t.id;return z.createElement("text",Ju({},r,{dominantBaseline:"central",className:Ne("recharts-radial-bar-label",c)}),z.createElement("defs",null,z.createElement("path",{id:N,d:j})),z.createElement("textPath",{xlinkHref:"#".concat(N)},n))},$J=function(t){var n=t.viewBox,r=t.offset,a=t.position,o=n,l=o.cx,c=o.cy,f=o.innerRadius,d=o.outerRadius,m=o.startAngle,p=o.endAngle,g=(m+p)/2;if(a==="outside"){var b=xt(l,c,d+r,g),w=b.x,S=b.y;return{x:w,y:S,textAnchor:w>=l?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"end"};var A=(f+d)/2,_=xt(l,c,A,g),T=_.x,E=_.y;return{x:T,y:E,textAnchor:"middle",verticalAnchor:"middle"}},LJ=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,o=t.position,l=n,c=l.x,f=l.y,d=l.width,m=l.height,p=m>=0?1:-1,g=p*a,b=p>0?"end":"start",w=p>0?"start":"end",S=d>=0?1:-1,A=S*a,_=S>0?"end":"start",T=S>0?"start":"end";if(o==="top"){var E={x:c+d/2,y:f-p*a,textAnchor:"middle",verticalAnchor:b};return en(en({},E),r?{height:Math.max(f-r.y,0),width:d}:{})}if(o==="bottom"){var P={x:c+d/2,y:f+m+g,textAnchor:"middle",verticalAnchor:w};return en(en({},P),r?{height:Math.max(r.y+r.height-(f+m),0),width:d}:{})}if(o==="left"){var O={x:c-A,y:f+m/2,textAnchor:_,verticalAnchor:"middle"};return en(en({},O),r?{width:Math.max(O.x-r.x,0),height:m}:{})}if(o==="right"){var C={x:c+d+A,y:f+m/2,textAnchor:T,verticalAnchor:"middle"};return en(en({},C),r?{width:Math.max(r.x+r.width-C.x,0),height:m}:{})}var j=r?{width:d,height:m}:{};return o==="insideLeft"?en({x:c+A,y:f+m/2,textAnchor:T,verticalAnchor:"middle"},j):o==="insideRight"?en({x:c+d-A,y:f+m/2,textAnchor:_,verticalAnchor:"middle"},j):o==="insideTop"?en({x:c+d/2,y:f+g,textAnchor:"middle",verticalAnchor:w},j):o==="insideBottom"?en({x:c+d/2,y:f+m-g,textAnchor:"middle",verticalAnchor:b},j):o==="insideTopLeft"?en({x:c+A,y:f+g,textAnchor:T,verticalAnchor:w},j):o==="insideTopRight"?en({x:c+d-A,y:f+g,textAnchor:_,verticalAnchor:w},j):o==="insideBottomLeft"?en({x:c+A,y:f+m-g,textAnchor:T,verticalAnchor:b},j):o==="insideBottomRight"?en({x:c+d-A,y:f+m-g,textAnchor:_,verticalAnchor:b},j):Ql(o)&&(de(o.x)||No(o.x))&&(de(o.y)||No(o.y))?en({x:c+Nn(o.x,d),y:f+Nn(o.y,m),textAnchor:"end",verticalAnchor:"end"},j):en({x:c+d/2,y:f+m/2,textAnchor:"middle",verticalAnchor:"middle"},j)},qJ=function(t){return"cx"in t&&de(t.cx)};function fn(e){var t=e.offset,n=t===void 0?5:t,r=MJ(e,_J),a=en({offset:n},r),o=a.viewBox,l=a.position,c=a.value,f=a.children,d=a.content,m=a.className,p=m===void 0?"":m,g=a.textBreakAll;if(!o||De(c)&&De(f)&&!D.isValidElement(d)&&!Me(d))return null;if(D.isValidElement(d))return D.cloneElement(d,a);var b;if(Me(d)){if(b=D.createElement(d,a),D.isValidElement(b))return b}else b=zJ(a);var w=qJ(o),S=_e(a,!0);if(w&&(l==="insideStart"||l==="insideEnd"||l==="end"))return IJ(a,b,S);var A=w?$J(a):LJ(a);return z.createElement(Vo,Ju({className:Ne("recharts-label",p)},S,A,{breakAll:g}),b)}fn.displayName="Label";var Gz=function(t){var n=t.cx,r=t.cy,a=t.angle,o=t.startAngle,l=t.endAngle,c=t.r,f=t.radius,d=t.innerRadius,m=t.outerRadius,p=t.x,g=t.y,b=t.top,w=t.left,S=t.width,A=t.height,_=t.clockWise,T=t.labelViewBox;if(T)return T;if(de(S)&&de(A)){if(de(p)&&de(g))return{x:p,y:g,width:S,height:A};if(de(b)&&de(w))return{x:b,y:w,width:S,height:A}}return de(p)&&de(g)?{x:p,y:g,width:0,height:0}:de(n)&&de(r)?{cx:n,cy:r,startAngle:o||a||0,endAngle:l||a||0,innerRadius:d||0,outerRadius:m||f||c||0,clockWise:_}:t.viewBox?t.viewBox:{}},FJ=function(t,n){return t?t===!0?z.createElement(fn,{key:"label-implicit",viewBox:n}):rn(t)?z.createElement(fn,{key:"label-implicit",viewBox:n,value:t}):D.isValidElement(t)?t.type===fn?D.cloneElement(t,{key:"label-implicit",viewBox:n}):z.createElement(fn,{key:"label-implicit",content:t,viewBox:n}):Me(t)?z.createElement(fn,{key:"label-implicit",content:t,viewBox:n}):Ql(t)?z.createElement(fn,Ju({viewBox:n},t,{key:"label-implicit"})):null:null},UJ=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var a=t.children,o=Gz(t),l=fr(a,fn).map(function(f,d){return D.cloneElement(f,{viewBox:n||o,key:"label-".concat(d)})});if(!r)return l;var c=FJ(t.label,n||o);return[c].concat(jJ(l))};fn.parseViewBox=Gz;fn.renderCallByParent=UJ;var Ux,iN;function HJ(){if(iN)return Ux;iN=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Ux=e,Ux}var WJ=HJ();const VJ=lt(WJ);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)}var GJ=["valueAccessor"],KJ=["data","dataKey","clockWise","id","textBreakAll"];function YJ(e){return JJ(e)||ZJ(e)||XJ(e)||QJ()}function QJ(){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 XJ(e,t){if(e){if(typeof e=="string")return NS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NS(e,t)}}function ZJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JJ(e){if(Array.isArray(e))return NS(e)}function NS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pp(){return pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pp.apply(this,arguments)}function oN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oN(Object(n),!0).forEach(function(r){eee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eee(e,t,n){return t=tee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tee(e){var t=nee(e,"string");return ef(t)=="symbol"?t:t+""}function nee(e,t){if(ef(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ef(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lN(e,t){if(e==null)return{};var n=ree(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ree(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var aee=function(t){return Array.isArray(t.value)?VJ(t.value):t.value};function ha(e){var t=e.valueAccessor,n=t===void 0?aee:t,r=lN(e,GJ),a=r.data,o=r.dataKey,l=r.clockWise,c=r.id,f=r.textBreakAll,d=lN(r,KJ);return!a||!a.length?null:z.createElement(Ue,{className:"recharts-label-list"},a.map(function(m,p){var g=De(o)?n(m,p):Lt(m&&m.payload,o),b=De(c)?{}:{id:"".concat(c,"-").concat(p)};return z.createElement(fn,pp({},_e(m,!0),d,b,{parentViewBox:m.parentViewBox,value:g,textBreakAll:f,viewBox:fn.parseViewBox(De(l)?m:sN(sN({},m),{},{clockWise:l})),key:"label-".concat(p),index:p}))}))}ha.displayName="LabelList";function iee(e,t){return e?e===!0?z.createElement(ha,{key:"labelList-implicit",data:t}):z.isValidElement(e)||Me(e)?z.createElement(ha,{key:"labelList-implicit",data:t,content:e}):Ql(e)?z.createElement(ha,pp({data:t},e,{key:"labelList-implicit"})):null:null}function oee(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,a=fr(r,ha).map(function(l,c){return D.cloneElement(l,{data:t,key:"labelList-".concat(c)})});if(!n)return a;var o=iee(e.label,t);return[o].concat(YJ(a))}ha.renderCallByParent=oee;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 RS(){return RS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RS.apply(this,arguments)}function cN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function uN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cN(Object(n),!0).forEach(function(r){see(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function see(e,t,n){return t=lee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lee(e){var t=cee(e,"string");return tf(t)=="symbol"?t:t+""}function cee(e,t){if(tf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uee=function(t,n){var r=Dn(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},yh=function(t){var n=t.cx,r=t.cy,a=t.radius,o=t.angle,l=t.sign,c=t.isExternal,f=t.cornerRadius,d=t.cornerIsExternal,m=f*(c?1:-1)+a,p=Math.asin(f/m)/hp,g=d?o:o+l*p,b=xt(n,r,m,g),w=xt(n,r,a,g),S=d?o-l*p:o,A=xt(n,r,m*Math.cos(p*hp),S);return{center:b,circleTangency:w,lineTangency:A,theta:p}},Kz=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,l=t.startAngle,c=t.endAngle,f=uee(l,c),d=l+f,m=xt(n,r,o,l),p=xt(n,r,o,d),g="M ".concat(m.x,",").concat(m.y,`
307    A `).concat(o,",").concat(o,`,0,
308    `).concat(+(Math.abs(f)>180),",").concat(+(l>d),`,
309    `).concat(p.x,",").concat(p.y,`
310  `);if(a>0){var b=xt(n,r,a,l),w=xt(n,r,a,d);g+="L ".concat(w.x,",").concat(w.y,`
311            A `).concat(a,",").concat(a,`,0,
312            `).concat(+(Math.abs(f)>180),",").concat(+(l<=d),`,
313            `).concat(b.x,",").concat(b.y," Z")}else g+="L ".concat(n,",").concat(r," Z");return g},fee=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,l=t.cornerRadius,c=t.forceCornerRadius,f=t.cornerIsExternal,d=t.startAngle,m=t.endAngle,p=Dn(m-d),g=yh({cx:n,cy:r,radius:o,angle:d,sign:p,cornerRadius:l,cornerIsExternal:f}),b=g.circleTangency,w=g.lineTangency,S=g.theta,A=yh({cx:n,cy:r,radius:o,angle:m,sign:-p,cornerRadius:l,cornerIsExternal:f}),_=A.circleTangency,T=A.lineTangency,E=A.theta,P=f?Math.abs(d-m):Math.abs(d-m)-S-E;if(P<0)return c?"M ".concat(w.x,",").concat(w.y,`
314        a`).concat(l,",").concat(l,",0,0,1,").concat(l*2,`,0
315        a`).concat(l,",").concat(l,",0,0,1,").concat(-l*2,`,0
316      `):Kz({cx:n,cy:r,innerRadius:a,outerRadius:o,startAngle:d,endAngle:m});var O="M ".concat(w.x,",").concat(w.y,`
317    A`).concat(l,",").concat(l,",0,0,").concat(+(p<0),",").concat(b.x,",").concat(b.y,`
318    A`).concat(o,",").concat(o,",0,").concat(+(P>180),",").concat(+(p<0),",").concat(_.x,",").concat(_.y,`
319    A`).concat(l,",").concat(l,",0,0,").concat(+(p<0),",").concat(T.x,",").concat(T.y,`
320  `);if(a>0){var C=yh({cx:n,cy:r,radius:a,angle:d,sign:p,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),j=C.circleTangency,N=C.lineTangency,B=C.theta,q=yh({cx:n,cy:r,radius:a,angle:m,sign:-p,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),I=q.circleTangency,L=q.lineTangency,W=q.theta,K=f?Math.abs(d-m):Math.abs(d-m)-B-W;if(K<0&&l===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat(L.x,",").concat(L.y,`
321      A`).concat(l,",").concat(l,",0,0,").concat(+(p<0),",").concat(I.x,",").concat(I.y,`
322      A`).concat(a,",").concat(a,",0,").concat(+(K>180),",").concat(+(p>0),",").concat(j.x,",").concat(j.y,`
323      A`).concat(l,",").concat(l,",0,0,").concat(+(p<0),",").concat(N.x,",").concat(N.y,"Z")}else O+="L".concat(n,",").concat(r,"Z");return O},dee={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Yz=function(t){var n=uN(uN({},dee),t),r=n.cx,a=n.cy,o=n.innerRadius,l=n.outerRadius,c=n.cornerRadius,f=n.forceCornerRadius,d=n.cornerIsExternal,m=n.startAngle,p=n.endAngle,g=n.className;if(l<o||m===p)return null;var b=Ne("recharts-sector",g),w=l-o,S=Nn(c,w,0,!0),A;return S>0&&Math.abs(m-p)<360?A=fee({cx:r,cy:a,innerRadius:o,outerRadius:l,cornerRadius:Math.min(S,w/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:m,endAngle:p}):A=Kz({cx:r,cy:a,innerRadius:o,outerRadius:l,startAngle:m,endAngle:p}),z.createElement("path",RS({},_e(n,!0),{className:b,d:A,role:"img"}))};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 kS(){return kS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kS.apply(this,arguments)}function fN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function dN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fN(Object(n),!0).forEach(function(r){hee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hee(e,t,n){return t=pee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pee(e){var t=mee(e,"string");return nf(t)=="symbol"?t:t+""}function mee(e,t){if(nf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hN={curveBasisClosed:kW,curveBasisOpen:zW,curveBasis:RW,curveBumpX:xW,curveBumpY:SW,curveLinearClosed:BW,curveLinear:pm,curveMonotoneX:IW,curveMonotoneY:$W,curveNatural:LW,curveStep:qW,curveStepAfter:UW,curveStepBefore:FW},vh=function(t){return t.x===+t.x&&t.y===+t.y},ou=function(t){return t.x},su=function(t){return t.y},gee=function(t,n){if(Me(t))return t;var r="curve".concat(dm(t));return(r==="curveMonotone"||r==="curveBump")&&n?hN["".concat(r).concat(n==="vertical"?"Y":"X")]:hN[r]||pm},yee=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,o=a===void 0?[]:a,l=t.baseLine,c=t.layout,f=t.connectNulls,d=f===void 0?!1:f,m=gee(r,c),p=d?o.filter(function(S){return vh(S)}):o,g;if(Array.isArray(l)){var b=d?l.filter(function(S){return vh(S)}):l,w=p.map(function(S,A){return dN(dN({},S),{},{base:b[A]})});return c==="vertical"?g=ch().y(su).x1(ou).x0(function(S){return S.base.x}):g=ch().x(ou).y1(su).y0(function(S){return S.base.y}),g.defined(vh).curve(m),g(w)}return c==="vertical"&&de(l)?g=ch().y(su).x1(ou).x0(l):de(l)?g=ch().x(ou).y1(su).y0(l):g=G3().x(ou).y(su),g.defined(vh).curve(m),g(p)},Lo=function(t){var n=t.className,r=t.points,a=t.path,o=t.pathRef;if((!r||!r.length)&&!a)return null;var l=r&&r.length?yee(t):a;return D.createElement("path",kS({},_e(t,!1),qh(t),{className:Ne("recharts-curve",n),d:l,ref:o}))},Hx={exports:{}},Wx,pN;function vee(){if(pN)return Wx;pN=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Wx=e,Wx}var Vx,mN;function bee(){if(mN)return Vx;mN=1;var e=vee();function t(){}function n(){}return n.resetWarningCache=t,Vx=function(){function r(l,c,f,d,m,p){if(p!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Vx}var gN;function xee(){return gN||(gN=1,Hx.exports=bee()()),Hx.exports}var See=xee();const st=lt(See);var wee=Object.getOwnPropertyNames,Aee=Object.getOwnPropertySymbols,Oee=Object.prototype.hasOwnProperty;function yN(e,t){return function(r,a,o){return e(r,a,o)&&t(r,a,o)}}function bh(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);var o=a.cache,l=o.get(n),c=o.get(r);if(l&&c)return l===r&&c===n;o.set(n,r),o.set(r,n);var f=e(n,r,a);return o.delete(n),o.delete(r),f}}function _ee(e){return e?.[Symbol.toStringTag]}function vN(e){return wee(e).concat(Aee(e))}var jee=Object.hasOwn||(function(e,t){return Oee.call(e,t)});function os(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var Eee="__v",Cee="__o",Tee="_owner",bN=Object.getOwnPropertyDescriptor,xN=Object.keys;function Pee(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Mee(e,t){return os(e.getTime(),t.getTime())}function Dee(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Nee(e,t){return e===t}function SN(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var a=new Array(r),o=e.entries(),l,c,f=0;(l=o.next())&&!l.done;){for(var d=t.entries(),m=!1,p=0;(c=d.next())&&!c.done;
323){if(a[p]){p++;continue}var g=l.value,b=c.value;if(n.equals(g[0],b[0],f,p,e,t,n)&&n.equals(g[1],b[1],g[0],b[0],e,t,n)){m=a[p]=!0;break}p++}if(!m)return!1;f++}return!0}var Ree=os;function kee(e,t,n){var r=xN(e),a=r.length;if(xN(t).length!==a)return!1;for(;a-- >0;)if(!Qz(e,t,n,r[a]))return!1;return!0}function lu(e,t,n){var r=vN(e),a=r.length;if(vN(t).length!==a)return!1;for(var o,l,c;a-- >0;)if(o=r[a],!Qz(e,t,n,o)||(l=bN(e,o),c=bN(t,o),(l||c)&&(!l||!c||l.configurable!==c.configurable||l.enumerable!==c.enumerable||l.writable!==c.writable)))return!1;return!0}function zee(e,t){return os(e.valueOf(),t.valueOf())}function Bee(e,t){return e.source===t.source&&e.flags===t.flags}function wN(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var a=new Array(r),o=e.values(),l,c;(l=o.next())&&!l.done;){for(var f=t.values(),d=!1,m=0;(c=f.next())&&!c.done;){if(!a[m]&&n.equals(l.value,c.value,l.value,c.value,e,t,n)){d=a[m]=!0;break}m++}if(!d)return!1}return!0}function Iee(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function $ee(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Qz(e,t,n,r){return(r===Tee||r===Cee||r===Eee)&&(e.$$typeof||t.$$typeof)?!0:jee(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var Lee="[object Arguments]",qee="[object Boolean]",Fee="[object Date]",Uee="[object Error]",Hee="[object Map]",Wee="[object Number]",Vee="[object Object]",Gee="[object RegExp]",Kee="[object Set]",Yee="[object String]",Qee="[object URL]",Xee=Array.isArray,AN=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,ON=Object.assign,Zee=Object.prototype.toString.call.bind(Object.prototype.toString);function Jee(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,a=e.areFunctionsEqual,o=e.areMapsEqual,l=e.areNumbersEqual,c=e.areObjectsEqual,f=e.arePrimitiveWrappersEqual,d=e.areRegExpsEqual,m=e.areSetsEqual,p=e.areTypedArraysEqual,g=e.areUrlsEqual,b=e.unknownTagComparators;return function(S,A,_){if(S===A)return!0;if(S==null||A==null)return!1;var T=typeof S;if(T!==typeof A)return!1;if(T!=="object")return T==="number"?l(S,A,_):T==="function"?a(S,A,_):!1;var E=S.constructor;if(E!==A.constructor)return!1;if(E===Object)return c(S,A,_);if(Xee(S))return t(S,A,_);if(AN!=null&&AN(S))return p(S,A,_);if(E===Date)return n(S,A,_);if(E===RegExp)return d(S,A,_);if(E===Map)return o(S,A,_);if(E===Set)return m(S,A,_);var P=Zee(S);if(P===Fee)return n(S,A,_);if(P===Gee)return d(S,A,_);if(P===Hee)return o(S,A,_);if(P===Kee)return m(S,A,_);if(P===Vee)return typeof S.then!="function"&&typeof A.then!="function"&&c(S,A,_);if(P===Qee)return g(S,A,_);if(P===Uee)return r(S,A,_);if(P===Lee)return c(S,A,_);if(P===qee||P===Wee||P===Yee)return f(S,A,_);if(b){var O=b[P];if(!O){var C=_ee(S);C&&(O=b[C])}if(O)return O(S,A,_)}return!1}}function ete(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,a={areArraysEqual:r?lu:Pee,areDatesEqual:Mee,areErrorsEqual:Dee,areFunctionsEqual:Nee,areMapsEqual:r?yN(SN,lu):SN,areNumbersEqual:Ree,areObjectsEqual:r?lu:kee,arePrimitiveWrappersEqual:zee,areRegExpsEqual:Bee,areSetsEqual:r?yN(wN,lu):wN,areTypedArraysEqual:r?lu:Iee,areUrlsEqual:$ee,unknownTagComparators:void 0};if(n&&(a=ON({},a,n(a))),t){var o=bh(a.areArraysEqual),l=bh(a.areMapsEqual),c=bh(a.areObjectsEqual),f=bh(a.areSetsEqual);a=ON({},a,{areArraysEqual:o,areMapsEqual:l,areObjectsEqual:c,areSetsEqual:f})}return a}function tte(e){return function(t,n,r,a,o,l,c){return e(t,n,c)}}function nte(e){var t=e.circular,n=e.comparator,r=e.createState,a=e.equals,o=e.strict;if(r)return function(f,d){var m=r(),p=m.cache,g=p===void 0?t?new WeakMap:void 0:p,b=m.meta;return n(f,d,{cache:g,equals:a,meta:b,strict:o})};if(t)return function(f,d){return n(f,d,{cache:new WeakMap,equals:a,meta:void 0,strict:o})};var l={cache:void 0,equals:a,meta:void 0,strict:o};return function(f,d){return n(f,d,l)}}var rte=ro();ro({strict:!0});ro({circular:!0});ro({circular:!0,strict:!0});ro({createInternalComparator:function(){return os}});ro({strict:!0,createInternalComparator:function(){return os}});ro({circular:!0,createInternalComparator:function(){return os}});ro({circular:!0,createInternalComparator:function(){return os},strict:!0});function ro(e){e===void 0&&(e={});
vendor: 200,324 bytes, lines 323-349
323var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,a=e.createState,o=e.strict,l=o===void 0?!1:o,c=ete(e),f=Jee(c),d=r?r(f):tte(f);return nte({circular:n,comparator:f,createState:a,equals:d,strict:l})}function ate(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function _N(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(o){n<0&&(n=o),o-n>t?(e(o),n=-1):ate(a)};requestAnimationFrame(r)}function zS(e){"@babel/helpers - typeof";return zS=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},zS(e)}function ite(e){return cte(e)||lte(e)||ste(e)||ote()}function ote(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
324In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ste(e,t){if(e){if(typeof e=="string")return jN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jN(e,t)}}function jN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cte(e){if(Array.isArray(e))return e}function ute(){var e={},t=function(){return null},n=!1,r=function a(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var l=o,c=ite(l),f=c[0],d=c.slice(1);if(typeof f=="number"){_N(a.bind(null,d),f);return}a(f),_N(a.bind(null,d));return}zS(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function rf(e){"@babel/helpers - typeof";return rf=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},rf(e)}function EN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function CN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EN(Object(n),!0).forEach(function(r){Xz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xz(e,t,n){return t=fte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fte(e){var t=dte(e,"string");return rf(t)==="symbol"?t:String(t)}function dte(e,t){if(rf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hte=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(o){return a.includes(o)})})},pte=function(t){return t},mte=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},bu=function(t,n){return Object.keys(n).reduce(function(r,a){return CN(CN({},r),{},Xz({},a,t(a,n[a])))},{})},TN=function(t,n,r){return t.map(function(a){return"".concat(mte(a)," ").concat(n,"ms ").concat(r)}).join(",")};function gte(e,t){return bte(e)||vte(e,t)||Zz(e,t)||yte()}function yte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
325In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vte(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function bte(e){if(Array.isArray(e))return e}function xte(e){return Ate(e)||wte(e)||Zz(e)||Ste()}function Ste(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
326In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zz(e,t){if(e){if(typeof e=="string")return BS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BS(e,t)}}function wte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ate(e){if(Array.isArray(e))return BS(e)}function BS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mp=1e-4,Jz=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},e6=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},PN=function(t,n){return function(r){var a=Jz(t,n);return e6(a,r)}},Ote=function(t,n){return function(r){var a=Jz(t,n),o=[].concat(xte(a.map(function(l,c){return l*c}).slice(1)),[0]);return e6(o,r)}},MN=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],o=n[1],l=n[2],c=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,o=0,l=1,c=1;break;case"ease":a=.25,o=.1,l=.25,c=1;break;case"ease-in":a=.42,o=0,l=1,c=1;break;case"ease-out":a=.42,o=0,l=.58,c=1;break;case"ease-in-out":a=0,o=0,l=.58,c=1;break;default:{var f=n[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var d=f[1].split(")")[0].split(",").map(function(A){return parseFloat(A)}),m=gte(d,4);a=m[0],o=m[1],l=m[2],c=m[3]}}}var p=PN(a,l),g=PN(o,c),b=Ote(a,l),w=function(_){return _>1?1:_<0?0:_},S=function(_){for(var T=_>1?1:_,E=T,P=0;P<8;++P){var O=p(E)-T,C=b(E);if(Math.abs(O-T)<mp||C<mp)return g(E);E=w(E-O/C)}return g(E)};return S.isStepper=!1,S},_te=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,o=a===void 0?8:a,l=t.dt,c=l===void 0?17:l,f=function(m,p,g){var b=-(m-p)*r,w=g*o,S=g+(b-w)*c/1e3,A=g*c/1e3+m;return Math.abs(A-p)<mp&&Math.abs(S)<mp?[p,0]:[A,S]};return f.isStepper=!0,f.dt=c,f},jte=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return MN(a);case"spring":return _te();default:if(a.split("(")[0]==="cubic-bezier")return MN(a)}return typeof a=="function"?a:null};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 DN(e){return Tte(e)||Cte(e)||t6(e)||Ete()}function Ete(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
327In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tte(e){if(Array.isArray(e))return $S(e)}function NN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NN(Object(n),!0).forEach(function(r){IS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IS(e,t,n){return t=Pte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pte(e){var t=Mte(e,"string");return af(t)==="symbol"?t:String(t)}function Mte(e,t){if(af(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(af(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dte(e,t){return kte(e)||Rte(e,t)||t6(e,t)||Nte()}function Nte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
328In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t6(e,t){if(e){if(typeof e=="string")return $S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $S(e,t)}}function $S(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rte(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function kte(e){if(Array.isArray(e))return e}var gp=function(t,n,r){return t+(n-t)*r},LS=function(t){var n=t.from,r=t.to;return n!==r},zte=function e(t,n,r){var a=bu(function(o,l){if(LS(l)){var c=t(l.from,l.to,l.velocity),f=Dte(c,2),d=f[0],m=f[1];return Sn(Sn({},l),{},{from:d,velocity:m})}return l},n);return r<1?bu(function(o,l){return LS(l)?Sn(Sn({},l),{},{velocity:gp(l.velocity,a[o].velocity,r),from:gp(l.from,a[o].from,r)}):l},n):e(t,a,r-1)};const Bte=(function(e,t,n,r,a){var o=hte(e,t),l=o.reduce(function(A,_){return Sn(Sn({},A),{},IS({},_,[e[_],t[_]]))},{}),c=o.reduce(function(A,_){return Sn(Sn({},A),{},IS({},_,{from:e[_],velocity:0,to:t[_]}))},{}),f=-1,d,m,p=function(){return null},g=function(){return bu(function(_,T){return T.from},c)},b=function(){return!Object.values(c).filter(LS).length},w=function(_){d||(d=_);var T=_-d,E=T/n.dt;c=zte(n,c,E),a(Sn(Sn(Sn({},e),t),g())),d=_,b()||(f=requestAnimationFrame(p))},S=function(_){m||(m=_);var T=(_-m)/r,E=bu(function(O,C){return gp.apply(void 0,DN(C).concat([n(T)]))},l);if(a(Sn(Sn(Sn({},e),t),E)),T<1)f=requestAnimationFrame(p);else{var P=bu(function(O,C){return gp.apply(void 0,DN(C).concat([n(1)]))},l);a(Sn(Sn(Sn({},e),t),P))}};return p=n.isStepper?w:S,function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(f)}}});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)}var Ite=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function $te(e,t){if(e==null)return{};var n=Lte(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lte(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Gx(e){return Hte(e)||Ute(e)||Fte(e)||qte()}function qte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
329In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fte(e,t){if(e){if(typeof e=="string")return qS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qS(e,t)}}function Ute(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hte(e){if(Array.isArray(e))return qS(e)}function qS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function RN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RN(Object(n),!0).forEach(function(r){du(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function du(e,t,n){return t=n6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vte(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n6(r.key),r)}}function Gte(e,t,n){return t&&Vte(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function n6(e){var t=Kte(e,"string");return jl(t)==="symbol"?t:String(t)}function Kte(e,t){if(jl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yte(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&&FS(e,t)}function FS(e,t){return FS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},FS(e,t)}function Qte(e){var t=Xte();return function(){var r=yp(e),a;if(t){var o=yp(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return US(this,a)}}function US(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 HS(e)}function HS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xte(){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 yp(e){return yp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yp(e)}var Xr=(function(e){Yte(n,e);var t=Qte(n);function n(r,a){var o;Wte(this,n),o=t.call(this,r,a);var l=o.props,c=l.isActive,f=l.attributeName,d=l.from,m=l.to,p=l.steps,g=l.children,b=l.duration;if(o.handleStyleChange=o.handleStyleChange.bind(HS(o)),o.changeStyle=o.changeStyle.bind(HS(o)),!c||b<=0)return o.state={style:{}},typeof g=="function"&&(o.state={style:m}),US(o);if(p&&p.length)o.state={style:p[0].style};else if(d){if(typeof g=="function")return o.state={style:d},US(o);o.state={style:f?du({},f,d):d}}else o.state={style:{}};return o}return Gte(n,[{key:"componentDidMount",value:function(){var a=this.props,o=a.isActive,l=a.canBegin;this.mounted=!0,!(!o||!l)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var o=this.props,l=o.isActive,c=o.canBegin,f=o.attributeName,d=o.shouldReAnimate,m=o.to,p=o.from,g=this.state.style;if(c){if(!l){var b={style:f?du({},f,m):m};this.state&&g&&(f&&g[f]!==m||!f&&g!==m)&&this.setState(b);return}if(!(rte(a.to,m)&&a.canBegin&&a.isActive)){var w=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var S=w||d?p:a.to;if(this.state&&g){var A={style:f?du({},f,S):S};(f&&g[f]!==S||!f&&g!==S)&&this.setState(A)}this.runAnimation(Ur(Ur({},this.props),{},{from:S,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var o=this,l=a.from,c=a.to,f=a.duration,d=a.easing,m=a.begin,p=a.onAnimationEnd,g=a.onAnimationStart,b=Bte(l,c,jte(d),f,this.changeStyle),w=function(){o.stopJSAnimation=b()};this.manager.start([g,m,w,f,p])}},{key:"runStepAnimation",value:function(a){var o=this,l=a.steps,c=a.begin,f=a.onAnimationStart,d=l[0],m=d.style,p=d.duration,g=p===void 0?0:p,b=function(S,A,_){if(_===0)return S;var T=A.duration,E=A.easing,P=E===void 0?"ease":E,O=A.style,C=A.properties,j=A.onAnimationEnd,N=_>0?l[_-1]:A,B=C||Object.keys(O);if(typeof P=="function"||P==="spring")return[].concat(Gx(S),[o.runJSAnimation.bind(o,{from:N.style,to:O,duration:T,easing:P}),T]);var q=TN(B,T,P),I=Ur(Ur(Ur({},N.style),O),{},{transition:q});return[].concat(Gx(S),[I,T,j]).filter(pte)};return this.manager.start([f].concat(Gx(l.reduce(b,[m,Math.max(g,c)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=ute());var o=a.begin,l=a.duration,c=a.attributeName,f=a.to,d=a.easing,m=a.onAnimationStart,p=a.onAnimationEnd,g=a.steps,b=a.children,w=this.manager;if(this.unSubscribe=w.subscribe(this.handleStyleChange),typeof d=="function"||typeof b=="function"||d==="spring"){this.runJSAnimation(a);return}if(g.length>1){this.runStepAnimation(a);return}var S=c?du({},c,f):f,A=TN(Object.keys(S),l,d);w.start([m,o,Ur(Ur({},S),{},{transition:A}),l,p])}},{key:"render",value:function(){var a=this.props,o=a.children;a.begin;var l=a.duration;a.attributeName,a.easing;var c=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var f=$te(a,Ite),d=D.Children.count(o),m=this.state.style;if(typeof o=="function")return o(m);if(!c||d===0||l<=0)return o;var p=function(b){var w=b.props,S=w.style,A=S===void 0?{}:S,_=w.className,T=D.cloneElement(b,Ur(Ur({},f),{},{style:Ur(Ur({},A),m),className:_}));return T};return d===1?p(D.Children.only(o)):z.createElement("div",null,D.Children.map(o,function(g){return p(g)}))}}]),n})(D.PureComponent);Xr.displayName="Animate";Xr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Xr.propTypes={from:st.oneOfType([st.object,st.string]),to:st.oneOfType([st.object,st.string]),attributeName:st.string,duration:st.number,begin:st.number,easing:st.oneOfType([st.string,st.func]),steps:st.arrayOf(st.shape({duration:st.number.isRequired,style:st.object.isRequired,easing:st.oneOfType([st.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),st.func]),properties:st.arrayOf("string"),onAnimationEnd:st.func})),children:st.oneOfType([st.node,st.func]),isActive:st.bool,canBegin:st.bool,onAnimationEnd:st.func,shouldReAnimate:st.bool,onAnimationStart:st.func,onAnimationReStart:st.func};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 vp(){return vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vp.apply(this,arguments)}function Zte(e,t){return nne(e)||tne(e,t)||ene(e,t)||Jte()}function Jte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
330In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ene(e,t){if(e){if(typeof e=="string")return kN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kN(e,t)}}function kN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function nne(e){if(Array.isArray(e))return e}function zN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function BN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zN(Object(n),!0).forEach(function(r){rne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rne(e,t,n){return t=ane(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ane(e){var t=ine(e,"string");return of(t)=="symbol"?t:t+""}function ine(e,t){if(of(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(of(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var IN=function(t,n,r,a,o){var l=Math.min(Math.abs(r)/2,Math.abs(a)/2),c=a>=0?1:-1,f=r>=0?1:-1,d=a>=0&&r>=0||a<0&&r<0?1:0,m;if(l>0&&o instanceof Array){for(var p=[0,0,0,0],g=0,b=4;g<b;g++)p[g]=o[g]>l?l:o[g];m="M".concat(t,",").concat(n+c*p[0]),p[0]>0&&(m+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(d,",").concat(t+f*p[0],",").concat(n)),m+="L ".concat(t+r-f*p[1],",").concat(n),p[1]>0&&(m+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(d,`,
331        `).concat(t+r,",").concat(n+c*p[1])),m+="L ".concat(t+r,",").concat(n+a-c*p[2]),p[2]>0&&(m+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(d,`,
332        `).concat(t+r-f*p[2],",").concat(n+a)),m+="L ".concat(t+f*p[3],",").concat(n+a),p[3]>0&&(m+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(d,`,
333        `).concat(t,",").concat(n+a-c*p[3])),m+="Z"}else if(l>0&&o===+o&&o>0){var w=Math.min(l,o);m="M ".concat(t,",").concat(n+c*w,`
334            A `).concat(w,",").concat(w,",0,0,").concat(d,",").concat(t+f*w,",").concat(n,`
335            L `).concat(t+r-f*w,",").concat(n,`
336            A `).concat(w,",").concat(w,",0,0,").concat(d,",").concat(t+r,",").concat(n+c*w,`
337            L `).concat(t+r,",").concat(n+a-c*w,`
338            A `).concat(w,",").concat(w,",0,0,").concat(d,",").concat(t+r-f*w,",").concat(n+a,`
339            L `).concat(t+f*w,",").concat(n+a,`
340            A `).concat(w,",").concat(w,",0,0,").concat(d,",").concat(t,",").concat(n+a-c*w," Z")}else m="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return m},one=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,o=n.x,l=n.y,c=n.width,f=n.height;if(Math.abs(c)>0&&Math.abs(f)>0){var d=Math.min(o,o+c),m=Math.max(o,o+c),p=Math.min(l,l+f),g=Math.max(l,l+f);return r>=d&&r<=m&&a>=p&&a<=g}return!1},sne={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qA=function(t){var n=BN(BN({},sne),t),r=D.useRef(),a=D.useState(-1),o=Zte(a,2),l=o[0],c=o[1];D.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var P=r.current.getTotalLength();P&&c(P)}catch{}},[]);var f=n.x,d=n.y,m=n.width,p=n.height,g=n.radius,b=n.className,w=n.animationEasing,S=n.animationDuration,A=n.animationBegin,_=n.isAnimationActive,T=n.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||p!==+p||m===0||p===0)return null;var E=Ne("recharts-rectangle",b);return T?z.createElement(Xr,{canBegin:l>0,from:{width:m,height:p,x:f,y:d},to:{width:m,height:p,x:f,y:d},duration:S,animationEasing:w,isActive:T},function(P){var O=P.width,C=P.height,j=P.x,N=P.y;return z.createElement(Xr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:A,duration:S,isActive:_,easing:w},z.createElement("path",vp({},_e(n,!0),{className:E,d:IN(j,N,O,C,g),ref:r})))}):z.createElement("path",vp({},_e(n,!0),{className:E,d:IN(f,d,m,p,g)}))},lne=["points","className","baseLinePoints","connectNulls"];function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rl.apply(this,arguments)}function cne(e,t){if(e==null)return{};var n=une(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function une(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function $N(e){return pne(e)||hne(e)||dne(e)||fne()}function fne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
341In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dne(e,t){if(e){if(typeof e=="string")return WS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WS(e,t)}}function hne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pne(e){if(Array.isArray(e))return WS(e)}function WS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var LN=function(t){return t&&t.x===+t.x&&t.y===+t.y},mne=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){LN(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),LN(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},xu=function(t,n){var r=mne(t);n&&(r=[r.reduce(function(o,l){return[].concat($N(o),$N(l))},[])]);var a=r.map(function(o){return o.reduce(function(l,c,f){return"".concat(l).concat(f===0?"M":"L").concat(c.x,",").concat(c.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},gne=function(t,n,r){var a=xu(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(xu(n.reverse(),r).slice(1))},yne=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,o=t.connectNulls,l=cne(t,lne);if(!n||!n.length)return null;var c=Ne("recharts-polygon",r);if(a&&a.length){var f=l.stroke&&l.stroke!=="none",d=gne(n,a,o);return z.createElement("g",{className:c},z.createElement("path",rl({},_e(l,!0),{fill:d.slice(-1)==="Z"?l.fill:"none",stroke:"none",d})),f?z.createElement("path",rl({},_e(l,!0),{fill:"none",d:xu(n,o)})):null,f?z.createElement("path",rl({},_e(l,!0),{fill:"none",d:xu(a,o)})):null)}var m=xu(n,o);return z.createElement("path",rl({},_e(l,!0),{fill:m.slice(-1)==="Z"?l.fill:"none",className:c,d:m}))};function VS(){return VS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VS.apply(this,arguments)}var kf=function(t){var n=t.cx,r=t.cy,a=t.r,o=t.className,l=Ne("recharts-dot",o);return n===+n&&r===+r&&a===+a?D.createElement("circle",VS({},_e(t,!1),qh(t),{className:l,cx:n,cy:r,r:a})):null};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)}var vne=["x","y","top","left","width","height","className"];function GS(){return GS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GS.apply(this,arguments)}function qN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qN(Object(n),!0).forEach(function(r){xne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xne(e,t,n){return t=Sne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sne(e){var t=wne(e,"string");return sf(t)=="symbol"?t:t+""}function wne(e,t){if(sf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ane(e,t){if(e==null)return{};var n=One(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function One(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var _ne=function(t,n,r,a,o,l){return"M".concat(t,",").concat(o,"v").concat(a,"M").concat(l,",").concat(n,"h").concat(r)},jne=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,o=a===void 0?0:a,l=t.top,c=l===void 0?0:l,f=t.left,d=f===void 0?0:f,m=t.width,p=m===void 0?0:m,g=t.height,b=g===void 0?0:g,w=t.className,S=Ane(t,vne),A=bne({x:r,y:o,top:c,left:d,width:p,height:b},S);return!de(r)||!de(o)||!de(p)||!de(b)||!de(c)||!de(d)?null:z.createElement("path",GS({},_e(A,!0),{className:Ne("recharts-cross",w),d:_ne(r,o,p,b,c,d)}))},Kx,FN;function Ene(){if(FN)return Kx;FN=1;var e=Em(),t=yz(),n=Sa();function r(a,o){return a&&a.length?e(a,n(o,2),t):void 0}return Kx=r,Kx}var Cne=Ene();const Tne=lt(Cne);var Yx,UN;function Pne(){if(UN)return Yx;UN=1;var e=Em(),t=Sa(),n=vz();function r(a,o){return a&&a.length?e(a,t(o,2),n):void 0}return Yx=r,Yx}var Mne=Pne();const Dne=lt(Mne);var Nne=["cx","cy","angle","ticks","axisLine"],Rne=["ticks","tick","angle","tickFormatter","stroke"];function El(e){"@babel/helpers - typeof";return El=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},El(e)}function Su(){return Su=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Su.apply(this,arguments)}function HN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HN(Object(n),!0).forEach(function(r){Mm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WN(e,t){if(e==null)return{};var n=kne(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kne(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function zne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a6(r.key),r)}}function Bne(e,t,n){return t&&VN(e.prototype,t),n&&VN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ine(e,t,n){return t=bp(t),$ne(e,r6()?Reflect.construct(t,n||[],bp(e).constructor):t.apply(e,n))}function $ne(e,t){if(t&&(El(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lne(e)}function Lne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r6=function(){return!!e})()}function bp(e){return bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bp(e)}function qne(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&&KS(e,t)}function KS(e,t){return KS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},KS(e,t)}function Mm(e,t,n){return t=a6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a6(e){var t=Fne(e,"string");return El(t)=="symbol"?t:t+""}function Fne(e,t){if(El(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(El(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Dm=(function(e){function t(){return zne(this,t),Ine(this,t,arguments)}return qne(t,e),Bne(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,o=this.props,l=o.angle,c=o.cx,f=o.cy;return xt(c,f,a,l)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,a;switch(r){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var r=this.props,a=r.cx,o=r.cy,l=r.angle,c=r.ticks,f=Tne(c,function(m){return m.coordinate||0}),d=Dne(c,function(m){return m.coordinate||0});return{cx:a,cy:o,startAngle:l,endAngle:l,innerRadius:d.coordinate||0,outerRadius:f.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,o=r.cy,l=r.angle,c=r.ticks,f=r.axisLine,d=WN(r,Nne),m=c.reduce(function(w,S){return[Math.min(w[0],S.coordinate),Math.max(w[1],S.coordinate)]},[1/0,-1/0]),p=xt(a,o,m[0],l),g=xt(a,o,m[1],l),b=_o(_o(_o({},_e(d,!1)),{},{fill:"none"},_e(f,!1)),{},{x1:p.x,y1:p.y,x2:g.x,y2:g.y});return z.createElement("line",Su({className:"recharts-polar-radius-axis-line"},b))}},{key:"renderTicks",value:function(){var r=this,a=this.props,o=a.ticks,l=a.tick,c=a.angle,f=a.tickFormatter,d=a.stroke,m=WN(a,Rne),p=this.getTickTextAnchor(),g=_e(m,!1),b=_e(l,!1),w=o.map(function(S,A){var _=r.getTickValueCoord(S),T=_o(_o(_o(_o({textAnchor:p,transform:"rotate(".concat(90-c,", ").concat(_.x,", ").concat(_.y,")")},g),{},{stroke:"none",fill:d},b),{},{index:A},_),{},{payload:S});return z.createElement(Ue,Su({className:Ne("recharts-polar-radius-axis-tick",Vz(l)),key:"tick-".concat(S.coordinate)},Wo(r.props,S,A)),t.renderTickItem(l,T,f?f(S.value,A):S.value))});return z.createElement(Ue,{className:"recharts-polar-radius-axis-ticks"},w)}},{key:"render",value:function(){var r=this.props,a=r.ticks,o=r.axisLine,l=r.tick;return!a||!a.length?null:z.createElement(Ue,{className:Ne("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),l&&this.renderTicks(),fn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,o){var l;return z.isValidElement(r)?l=z.cloneElement(r,a):Me(r)?l=r(a):l=z.createElement(Vo,Su({},a,{className:"recharts-polar-radius-axis-tick-value"}),o),l}}])})(D.PureComponent);Mm(Dm,"displayName","PolarRadiusAxis");Mm(Dm,"axisType","radiusAxis");Mm(Dm,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Cl(e){"@babel/helpers - typeof";return Cl=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},Cl(e)}function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mo.apply(this,arguments)}function GN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function jo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GN(Object(n),!0).forEach(function(r){Nm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Une(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o6(r.key),r)}}function Hne(e,t,n){return t&&KN(e.prototype,t),n&&KN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wne(e,t,n){return t=xp(t),Vne(e,i6()?Reflect.construct(t,n||[],xp(e).constructor):t.apply(e,n))}function Vne(e,t){if(t&&(Cl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gne(e)}function Gne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i6=function(){return!!e})()}function xp(e){return xp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xp(e)}function Kne(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&&YS(e,t)}function YS(e,t){return YS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},YS(e,t)}function Nm(e,t,n){return t=o6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o6(e){var t=Yne(e,"string");return Cl(t)=="symbol"?t:t+""}function Yne(e,t){if(Cl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qne=Math.PI/180,YN=1e-5,Rm=(function(e){function t(){return Une(this,t),Wne(this,t,arguments)}return Kne(t,e),Hne(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,o=a.cx,l=a.cy,c=a.radius,f=a.orientation,d=a.tickSize,m=d||8,p=xt(o,l,c,r.coordinate),g=xt(o,l,c+(f==="inner"?-1:1)*m,r.coordinate);return{x1:p.x,y1:p.y,x2:g.x,y2:g.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,o=Math.cos(-r.coordinate*Qne),l;return o>YN?l=a==="outer"?"start":"end":o<-YN?l=a==="outer"?"end":"start":l="middle",l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,o=r.cy,l=r.radius,c=r.axisLine,f=r.axisLineType,d=jo(jo({},_e(this.props,!1)),{},{fill:"none"},_e(c,!1));if(f==="circle")return z.createElement(kf,Mo({className:"recharts-polar-angle-axis-line"},d,{cx:a,cy:o,r:l}));var m=this.props.ticks,p=m.map(function(g){return xt(a,o,l,g.coordinate)});return z.createElement(yne,Mo({className:"recharts-polar-angle-axis-line"},d,{points:p}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,o=a.ticks,l=a.tick,c=a.tickLine,f=a.tickFormatter,d=a.stroke,m=_e(this.props,!1),p=_e(l,!1),g=jo(jo({},m),{},{fill:"none"},_e(c,!1)),b=o.map(function(w,S){var A=r.getTickLineCoord(w),_=r.getTickTextAnchor(w),T=jo(jo(jo({textAnchor:_},m),{},{stroke:"none",fill:d},p),{},{index:S,payload:w,x:A.x2,y:A.y2});return z.createElement(Ue,Mo({className:Ne("recharts-polar-angle-axis-tick",Vz(l)),key:"tick-".concat(w.coordinate)},Wo(r.props,w,S)),c&&z.createElement("line",Mo({className:"recharts-polar-angle-axis-tick-line"},g,A)),l&&t.renderTickItem(l,T,f?f(w.value,S):w.value))});return z.createElement(Ue,{className:"recharts-polar-angle-axis-ticks"},b)}},{key:"render",value:function(){var r=this.props,a=r.ticks,o=r.radius,l=r.axisLine;return o<=0||!a||!a.length?null:z.createElement(Ue,{className:Ne("recharts-polar-angle-axis",this.props.className)},l&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,o){var l;return z.isValidElement(r)?l=z.cloneElement(r,a):Me(r)?l=r(a):l=z.createElement(Vo,Mo({},a,{className:"recharts-polar-angle-axis-tick-value"}),o),l}}])})(D.PureComponent);Nm(Rm,"displayName","PolarAngleAxis");Nm(Rm,"axisType","angleAxis");Nm(Rm,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Qx,QN;function Xne(){if(QN)return Qx;QN=1;var e=g8(),t=e(Object.getPrototypeOf,Object);return Qx=t,Qx}var Xx,XN;function Zne(){if(XN)return Xx;XN=1;var e=ai(),t=Xne(),n=ii(),r="[object Object]",a=Function.prototype,o=Object.prototype,l=a.toString,c=o.hasOwnProperty,f=l.call(Object);function d(m){if(!n(m)||e(m)!=r)return!1;var p=t(m);if(p===null)return!0;var g=c.call(p,"constructor")&&p.constructor;return typeof g=="function"&&g instanceof g&&l.call(g)==f}return Xx=d,Xx}var Jne=Zne();const ere=lt(Jne);var Zx,ZN;function tre(){if(ZN)return Zx;ZN=1;var e=ai(),t=ii(),n="[object Boolean]";function r(a){return a===!0||a===!1||t(a)&&e(a)==n}return Zx=r,Zx}var nre=tre();const rre=lt(nre);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 Sp(){return Sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sp.apply(this,arguments)}function are(e,t){return lre(e)||sre(e,t)||ore(e,t)||ire()}function ire(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
342In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ore(e,t){if(e){if(typeof e=="string")return JN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JN(e,t)}}function JN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function lre(e){if(Array.isArray(e))return e}function eR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function tR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eR(Object(n),!0).forEach(function(r){cre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cre(e,t,n){return t=ure(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ure(e){var t=fre(e,"string");return lf(t)=="symbol"?t:t+""}function fre(e,t){if(lf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nR=function(t,n,r,a,o){var l=r-a,c;return c="M ".concat(t,",").concat(n),c+="L ".concat(t+r,",").concat(n),c+="L ".concat(t+r-l/2,",").concat(n+o),c+="L ".concat(t+r-l/2-a,",").concat(n+o),c+="L ".concat(t,",").concat(n," Z"),c},dre={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},hre=function(t){var n=tR(tR({},dre),t),r=D.useRef(),a=D.useState(-1),o=are(a,2),l=o[0],c=o[1];D.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var E=r.current.getTotalLength();E&&c(E)}catch{}},[]);var f=n.x,d=n.y,m=n.upperWidth,p=n.lowerWidth,g=n.height,b=n.className,w=n.animationEasing,S=n.animationDuration,A=n.animationBegin,_=n.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||p!==+p||g!==+g||m===0&&p===0||g===0)return null;var T=Ne("recharts-trapezoid",b);return _?z.createElement(Xr,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:g,x:f,y:d},to:{upperWidth:m,lowerWidth:p,height:g,x:f,y:d},duration:S,animationEasing:w,isActive:_},function(E){var P=E.upperWidth,O=E.lowerWidth,C=E.height,j=E.x,N=E.y;return z.createElement(Xr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:A,duration:S,easing:w},z.createElement("path",Sp({},_e(n,!0),{className:T,d:nR(j,N,P,O,C),ref:r})))}):z.createElement("g",null,z.createElement("path",Sp({},_e(n,!0),{className:T,d:nR(f,d,m,p,g)})))},pre=["option","shapeType","propTransformer","activeClassName","isActive"];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 mre(e,t){if(e==null)return{};var n=gre(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gre(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rR(Object(n),!0).forEach(function(r){yre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yre(e,t,n){return t=vre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vre(e){var t=bre(e,"string");return cf(t)=="symbol"?t:t+""}function bre(e,t){if(cf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xre(e,t){return wp(wp({},t),e)}function Sre(e,t){return e==="symbols"}function aR(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return z.createElement(qA,n);case"trapezoid":return z.createElement(hre,n);case"sector":return z.createElement(Yz,n);case"symbols":if(Sre(t))return z.createElement(oA,n);break;default:return null}}function wre(e){return D.isValidElement(e)?e.props:e}function s6(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?xre:r,o=e.activeClassName,l=o===void 0?"recharts-active-shape":o,c=e.isActive,f=mre(e,pre),d;if(D.isValidElement(t))d=D.cloneElement(t,wp(wp({},f),wre(t)));else if(Me(t))d=t(f);else if(ere(t)&&!rre(t)){var m=a(t,f);d=z.createElement(aR,{shapeType:n,elementProps:m})}else{var p=f;d=z.createElement(aR,{shapeType:n,elementProps:p})}return c?z.createElement(Ue,{className:l},d):d}function km(e,t){return t!=null&&"trapezoids"in e.props}function zm(e,t){return t!=null&&"sectors"in e.props}function uf(e,t){return t!=null&&"points"in e.props}function Are(e,t){var n,r,a=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return a&&o}function Ore(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function _re(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function jre(e,t){var n;return km(e,t)?n=Are:zm(e,t)?n=Ore:uf(e,t)&&(n=_re),n}function Ere(e,t){var n;return km(e,t)?n="trapezoids":zm(e,t)?n="sectors":uf(e,t)&&(n="points"),n}function Cre(e,t){if(km(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(zm(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return uf(e,t)?t.payload:{}}function Tre(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=Ere(n,t),o=Cre(n,t),l=r.filter(function(f,d){var m=Go(o,f),p=n.props[a].filter(function(w){var S=jre(n,t);return S(w,t)}),g=n.props[a].indexOf(p[p.length-1]),b=d===g;return m&&b}),c=r.indexOf(l[l.length-1]);return c}var Ph;function Tl(e){"@babel/helpers - typeof";return Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tl(e)}function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},al.apply(this,arguments)}function iR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iR(Object(n),!0).forEach(function(r){Dr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c6(r.key),r)}}function Mre(e,t,n){return t&&oR(e.prototype,t),n&&oR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dre(e,t,n){return t=Ap(t),Nre(e,l6()?Reflect.construct(t,n||[],Ap(e).constructor):t.apply(e,n))}function Nre(e,t){if(t&&(Tl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rre(e)}function Rre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l6=function(){return!!e})()}function Ap(e){return Ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ap(e)}function kre(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&&QS(e,t)}function QS(e,t){return QS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},QS(e,t)}function Dr(e,t,n){return t=c6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c6(e){var t=zre(e,"string");return Tl(t)=="symbol"?t:t+""}function zre(e,t){if(Tl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var si=(function(e){function t(n){var r;return Pre(this,t),r=Dre(this,t,[n]),Dr(r,"pieRef",null),Dr(r,"sectorRefs",[]),Dr(r,"id",rs("recharts-pie-")),Dr(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Me(a)&&a()}),Dr(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Me(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return kre(t,e),Mre(t,[{key:"isActiveIndex",value:function(r){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(r)!==-1:r===a}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var o=this.props,l=o.label,c=o.labelLine,f=o.dataKey,d=o.valueKey,m=_e(this.props,!1),p=_e(l,!1),g=_e(c,!1),b=l&&l.offsetRadius||20,w=r.map(function(S,A){var _=(S.startAngle+S.endAngle)/2,T=xt(S.cx,S.cy,S.outerRadius+b,_),E=vt(vt(vt(vt({},m),S),{},{stroke:"none"},p),{},{index:A,textAnchor:t.getTextAnchor(T.x,S.cx)},T),P=vt(vt(vt(vt({},m),S),{},{fill:"none",stroke:S.fill},g),{},{index:A,points:[xt(S.cx,S.cy,S.outerRadius,_),T]}),O=f;return De(f)&&De(d)?O="value":De(f)&&(O=d),z.createElement(Ue,{key:"label-".concat(S.startAngle,"-").concat(S.endAngle,"-").concat(S.midAngle,"-").concat(A)},c&&t.renderLabelLineItem(c,P,"line"),t.renderLabelItem(l,E,Lt(S,O)))});return z.createElement(Ue,{className:"recharts-pie-labels"},w)}},{key:"renderSectorsStatically",value:function(r){var a=this,o=this.props,l=o.activeShape,c=o.blendStroke,f=o.inactiveShape;return r.map(function(d,m){if(d?.startAngle===0&&d?.endAngle===0&&r.length!==1)return null;var p=a.isActiveIndex(m),g=f&&a.hasActiveIndex()?f:null,b=p?l:g,w=vt(vt({},d),{},{stroke:c?d.fill:d.stroke,tabIndex:-1});return z.createElement(Ue,al({ref:function(A){A&&!a.sectorRefs.includes(A)&&a.sectorRefs.push(A)},tabIndex:-1,className:"recharts-pie-sector"},Wo(a.props,d,m),{key:"sector-".concat(d?.startAngle,"-").concat(d?.endAngle,"-").concat(d.midAngle,"-").concat(m)}),z.createElement(s6,al({option:b,isActive:p,shapeType:"sector"},w)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,o=a.sectors,l=a.isAnimationActive,c=a.animationBegin,f=a.animationDuration,d=a.animationEasing,m=a.animationId,p=this.state,g=p.prevSectors,b=p.prevIsAnimationActive;return z.createElement(Xr,{begin:c,duration:f,isActive:l,easing:d,from:{t:0},to:{t:1},key:"pie-".concat(m,"-").concat(b),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(w){var S=w.t,A=[],_=o&&o[0],T=_.startAngle;return o.forEach(function(E,P){var O=g&&g[P],C=P>0?ur(E,"paddingAngle",0):0;if(O){var j=nn(O.endAngle-O.startAngle,E.endAngle-E.startAngle),N=vt(vt({},E),{},{startAngle:T+C,endAngle:T+j(S)+C});A.push(N),T=N.endAngle}else{var B=E.endAngle,q=E.startAngle,I=nn(0,B-q),L=I(S),W=vt(vt({},E),{},{startAngle:T+C,endAngle:T+L+C});A.push(W),T=W.endAngle}}),z.createElement(Ue,null,r.renderSectorsStatically(A))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var l=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[l].focus(),a.setState({sectorToFocus:l});break}case"ArrowRight":{var c=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[c].focus(),a.setState({sectorToFocus:c});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,a=r.sectors,o=r.isAnimationActive,l=this.state.prevSectors;return o&&a&&a.length&&(!l||!Go(l,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,a=this.props,o=a.hide,l=a.sectors,c=a.className,f=a.label,d=a.cx,m=a.cy,p=a.innerRadius,g=a.outerRadius,b=a.isAnimationActive,w=this.state.isAnimationFinished;if(o||!l||!l.length||!de(d)||!de(m)||!de(p)||!de(g))return null;var S=Ne("recharts-pie",c);return z.createElement(Ue,{tabIndex:this.props.rootTabIndex,className:S,ref:function(_){r.pieRef=_}},this.renderSectors(),f&&this.renderLabels(l),fn.renderCallByParent(this.props,null,!1),(!b||w)&&ha.renderCallByParent(this.props,l,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return a.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:r.sectors!==a.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,a){return r>a?"start":r<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,a,o){if(z.isValidElement(r))return z.cloneElement(r,a);if(Me(r))return r(a);var l=Ne("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return z.createElement(Lo,al({},a,{key:o,type:"linear",className:l}))}},{key:"renderLabelItem",value:function(r,a,o){if(z.isValidElement(r))return z.cloneElement(r,a);var l=o;if(Me(r)&&(l=r(a),z.isValidElement(l)))return l;var c=Ne("recharts-pie-label-text",typeof r!="boolean"&&!Me(r)?r.className:"");return z.createElement(Vo,al({},a,{alignmentBaseline:"middle",className:c}),l)}}])})(D.PureComponent);Ph=si;Dr(si,"displayName","Pie");Dr(si,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!eo.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Dr(si,"parseDeltaAngle",function(e,t){var n=Dn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Dr(si,"getRealPieData",function(e){var t=e.data,n=e.children,r=_e(e,!1),a=fr(n,xm);return t&&t.length?t.map(function(o,l){return vt(vt(vt({payload:o},r),o),a&&a[l]&&a[l].props)}):a&&a.length?a.map(function(o){return vt(vt({},r),o.props)}):[]});Dr(si,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,o=t.height,l=Wz(a,o),c=r+Nn(e.cx,a,a/2),f=n+Nn(e.cy,o,o/2),d=Nn(e.innerRadius,l,0),m=Nn(e.outerRadius,l,l*.8),p=e.maxRadius||Math.sqrt(a*a+o*o)/2;return{cx:c,cy:f,innerRadius:d,outerRadius:m,maxRadius:p}});Dr(si,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?vt(vt({},t.type.defaultProps),t.props):t.props,a=Ph.getRealPieData(r);if(!a||!a.length)return null;var o=r.cornerRadius,l=r.startAngle,c=r.endAngle,f=r.paddingAngle,d=r.dataKey,m=r.nameKey,p=r.valueKey,g=r.tooltipType,b=Math.abs(r.minAngle),w=Ph.parseCoordinateOfPie(r,n),S=Ph.parseDeltaAngle(l,c),A=Math.abs(S),_=d;De(d)&&De(p)?(Gr(!1,`Use "dataKey" to specify the value of pie,
343      the props "valueKey" will be deprecated in 1.1.0`),_="value"):De(d)&&(Gr(!1,`Use "dataKey" to specify the value of pie,
344      the props "valueKey" will be deprecated in 1.1.0`),_=p);var T=a.filter(function(N){return Lt(N,_,0)!==0}).length,E=(A>=360?T:T-1)*f,P=A-T*b-E,O=a.reduce(function(N,B){var q=Lt(B,_,0);return N+(de(q)?q:0)},0),C;if(O>0){var j;C=a.map(function(N,B){var q=Lt(N,_,0),I=Lt(N,m,B),L=(de(q)?q:0)/O,W;B?W=j.endAngle+Dn(S)*f*(q!==0?1:0):W=l;var K=W+Dn(S)*((q!==0?b:0)+L*P),U=(W+K)/2,R=(w.innerRadius+w.outerRadius)/2,F=[{name:I,value:q,payload:N,dataKey:_,type:g}],H=xt(w.cx,w.cy,R,U);return j=vt(vt(vt({percent:L,cornerRadius:o,name:I,tooltipPayload:F,midAngle:U,middleRadius:R,tooltipPosition:H},N),w),{},{value:Lt(N,_),startAngle:W,endAngle:K,payload:N,paddingAngle:Dn(S)*f}),j})}return vt(vt({},w),{},{sectors:C,data:a})});var Jx,sR;function Bre(){if(sR)return Jx;sR=1;var e=Math.ceil,t=Math.max;function n(r,a,o,l){for(var c=-1,f=t(e((a-r)/(o||1)),0),d=Array(f);f--;)d[l?f:++c]=r,r+=o;return d}return Jx=n,Jx}var e1,lR;function u6(){if(lR)return e1;lR=1;var e=D8(),t=1/0,n=17976931348623157e292;function r(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var o=a<0?-1:1;return o*n}return a===a?a:0}return e1=r,e1}var t1,cR;function Ire(){if(cR)return t1;cR=1;var e=Bre(),t=vm(),n=u6();function r(a){return function(o,l,c){return c&&typeof c!="number"&&t(o,l,c)&&(l=c=void 0),o=n(o),l===void 0?(l=o,o=0):l=n(l),c=c===void 0?o<l?1:-1:n(c),e(o,l,c,a)}}return t1=r,t1}var n1,uR;function $re(){if(uR)return n1;uR=1;var e=Ire(),t=e();return n1=t,n1}var Lre=$re();const Op=lt(Lre);function ff(e){"@babel/helpers - typeof";return ff=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},ff(e)}function fR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function dR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fR(Object(n),!0).forEach(function(r){f6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f6(e,t,n){return t=qre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qre(e){var t=Fre(e,"string");return ff(t)=="symbol"?t:t+""}function Fre(e,t){if(ff(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ff(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ure=["Webkit","Moz","O","ms"],Hre=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),a=Ure.reduce(function(o,l){return dR(dR({},o),{},f6({},l+r,n))},{});return a[t]=n,a};function Pl(e){"@babel/helpers - typeof";return Pl=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},Pl(e)}function _p(){return _p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_p.apply(this,arguments)}function hR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function r1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hR(Object(n),!0).forEach(function(r){rr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h6(r.key),r)}}function Vre(e,t,n){return t&&pR(e.prototype,t),n&&pR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gre(e,t,n){return t=jp(t),Kre(e,d6()?Reflect.construct(t,n||[],jp(e).constructor):t.apply(e,n))}function Kre(e,t){if(t&&(Pl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yre(e)}function Yre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d6=function(){return!!e})()}function jp(e){return jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jp(e)}function Qre(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&&XS(e,t)}function XS(e,t){return XS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},XS(e,t)}function rr(e,t,n){return t=h6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h6(e){var t=Xre(e,"string");return Pl(t)=="symbol"?t:t+""}function Xre(e,t){if(Pl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Zre=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,o=t.x,l=t.width,c=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,d=yu().domain(Op(0,f)).range([o,o+l-c]),m=d.domain().map(function(p){return d(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(r),endX:d(a),scale:d,scaleValues:m}},mR=function(t){return t.changedTouches&&!!t.changedTouches.length},Ml=(function(e){function t(n){var r;return Wre(this,t),r=Gre(this,t,[n]),rr(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),rr(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),rr(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,o=a.endIndex,l=a.onDragEnd,c=a.startIndex;l?.({endIndex:o,startIndex:c})}),r.detachDragEndListener()}),rr(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),rr(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),rr(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),rr(r,"handleSlideDragStart",function(a){var o=mR(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Qre(t,e),Vre(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,o=r.endX,l=this.state.scaleValues,c=this.props,f=c.gap,d=c.data,m=d.length-1,p=Math.min(a,o),g=Math.max(a,o),b=t.getIndexInRange(l,p),w=t.getIndexInRange(l,g);return{startIndex:b-b%f,endIndex:w===m?m:w-w%f}}},{key:"getTextOfTick",value:function(r){var a=this.props,o=a.data,l=a.tickFormatter,c=a.dataKey,f=Lt(o[r],c,r);return Me(l)?l(f,r):f}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var a=this.state,o=a.slideMoveStartX,l=a.startX,c=a.endX,f=this.props,d=f.x,m=f.width,p=f.travellerWidth,g=f.startIndex,b=f.endIndex,w=f.onChange,S=r.pageX-o;S>0?S=Math.min(S,d+m-p-c,d+m-p-l):S<0&&(S=Math.max(S,d-l,d-c));var A=this.getIndex({startX:l+S,endX:c+S});(A.startIndex!==g||A.endIndex!==b)&&w&&w(A),this.setState({startX:l+S,endX:c+S,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var o=mR(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,o=a.brushMoveStartX,l=a.movingTravellerId,c=a.endX,f=a.startX,d=this.state[l],m=this.props,p=m.x,g=m.width,b=m.travellerWidth,w=m.onChange,S=m.gap,A=m.data,_={startX:this.state.startX,endX:this.state.endX},T=r.pageX-o;T>0?T=Math.min(T,p+g-b-d):T<0&&(T=Math.max(T,p-d)),_[l]=d+T;var E=this.getIndex(_),P=E.startIndex,O=E.endIndex,C=function(){var N=A.length-1;return l==="startX"&&(c>f?P%S===0:O%S===0)||c<f&&O===N||l==="endX"&&(c>f?O%S===0:P%S===0)||c>f&&O===N};this.setState(rr(rr({},l,d+T),"brushMoveStartX",r.pageX),function(){w&&C()&&w(E)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var o=this,l=this.state,c=l.scaleValues,f=l.startX,d=l.endX,m=this.state[a],p=c.indexOf(m);if(p!==-1){var g=p+r;if(!(g===-1||g>=c.length)){var b=c[g];a==="startX"&&b>=d||a==="endX"&&b<=f||this.setState(rr({},a,b),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,o=r.y,l=r.width,c=r.height,f=r.fill,d=r.stroke;return z.createElement("rect",{stroke:d,fill:f,x:a,y:o,width:l,height:c})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,o=r.y,l=r.width,c=r.height,f=r.data,d=r.children,m=r.padding,p=D.Children.only(d);return p?z.cloneElement(p,{x:a,y:o,width:l,height:c,margin:m,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,a){var o,l,c=this,f=this.props,d=f.y,m=f.travellerWidth,p=f.height,g=f.traveller,b=f.ariaLabel,w=f.data,S=f.startIndex,A=f.endIndex,_=Math.max(r,this.props.x),T=r1(r1({},_e(this.props,!1)),{},{x:_,y:d,width:m,height:p}),E=b||"Min value: ".concat((o=w[S])===null||o===void 0?void 0:o.name,", Max value: ").concat((l=w[A])===null||l===void 0?void 0:l.name);return z.createElement(Ue,{tabIndex:0,role:"slider","aria-label":E,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(O){["ArrowLeft","ArrowRight"].includes(O.key)&&(O.preventDefault(),O.stopPropagation(),c.handleTravellerMoveKeyboard(O.key==="ArrowRight"?1:-1,a))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(g,T))}},{key:"renderSlide",value:function(r,a){var o=this.props,l=o.y,c=o.height,f=o.stroke,d=o.travellerWidth,m=Math.min(r,a)+d,p=Math.max(Math.abs(a-r)-d,0);return z.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:f,fillOpacity:.2,x:m,y:l,width:p,height:c})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,o=r.endIndex,l=r.y,c=r.height,f=r.travellerWidth,d=r.stroke,m=this.state,p=m.startX,g=m.endX,b=5,w={pointerEvents:"none",fill:d};return z.createElement(Ue,{className:"recharts-brush-texts"},z.createElement(Vo,_p({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,g)-b,y:l+c/2},w),this.getTextOfTick(a)),z.createElement(Vo,_p({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,g)+f+b,y:l+c/2},w),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,a=r.data,o=r.className,l=r.children,c=r.x,f=r.y,d=r.width,m=r.height,p=r.alwaysShowText,g=this.state,b=g.startX,w=g.endX,S=g.isTextActive,A=g.isSlideMoving,_=g.isTravellerMoving,T=g.isTravellerFocused;if(!a||!a.length||!de(c)||!de(f)||!de(d)||!de(m)||d<=0||m<=0)return null;var E=Ne("recharts-brush",o),P=z.Children.count(l)===1,O=Hre("userSelect","none");return z.createElement(Ue,{className:E,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),P&&this.renderPanorama(),this.renderSlide(b,w),this.renderTravellerLayer(b,"startX"),this.renderTravellerLayer(w,"endX"),(S||A||_||T||p)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,o=r.y,l=r.width,c=r.height,f=r.stroke,d=Math.floor(o+c/2)-1;return z.createElement(z.Fragment,null,z.createElement("rect",{x:a,y:o,width:l,height:c,fill:f,stroke:"none"}),z.createElement("line",{x1:a+1,y1:d,x2:a+l-1,y2:d,fill:"none",stroke:"#fff"}),z.createElement("line",{x1:a+1,y1:d+2,x2:a+l-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var o;return z.isValidElement(r)?o=z.cloneElement(r,a):Me(r)?o=r(a):o=t.renderDefaultTraveller(a),o}},{key:"getDerivedStateFromProps",value:function(r,a){var o=r.data,l=r.width,c=r.x,f=r.travellerWidth,d=r.updateId,m=r.startIndex,p=r.endIndex;if(o!==a.prevData||d!==a.prevUpdateId)return r1({prevData:o,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:l},o&&o.length?Zre({data:o,width:l,x:c,travellerWidth:f,startIndex:m,endIndex:p}):{scale:null,scaleValues:null});if(a.scale&&(l!==a.prevWidth||c!==a.prevX||f!==a.prevTravellerWidth)){a.scale.range([c,c+l-f]);var g=a.scale.domain().map(function(b){return a.scale(b)});return{prevData:o,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:l,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:g}}return null}},{key:"getIndexInRange",value:function(r,a){for(var o=r.length,l=0,c=o-1;c-l>1;){var f=Math.floor((l+c)/2);r[f]>a?c=f:l=f}return a>=r[c]?c:l}}])})(D.PureComponent);rr(Ml,"displayName","Brush");rr(Ml,"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 a1,gR;function Jre(){if(gR)return a1;gR=1;var e=hA();function t(n,r){var a;return e(n,function(o,l,c){return a=r(o,l,c),!a}),!!a}return a1=t,a1}var i1,yR;function eae(){if(yR)return i1;yR=1;var e=c8(),t=Sa(),n=Jre(),r=Wn(),a=vm();function o(l,c,f){var d=r(l)?e:n;return f&&a(l,c,f)&&(c=void 0),d(l,t(c,3))}return i1=o,i1}var tae=eae();const nae=lt(tae);var pa=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},o1,vR;function rae(){if(vR)return o1;vR=1;var e=E8();function t(n,r,a){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[r]=a}return o1=t,o1}var s1,bR;function aae(){if(bR)return s1;bR=1;var e=rae(),t=_8(),n=Sa();function r(a,o){var l={};return o=n(o,3),t(a,function(c,f,d){e(l,f,o(c,f,d))}),l}return s1=r,s1}var iae=aae();const oae=lt(iae);var l1,xR;function sae(){if(xR)return l1;xR=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(!n(t[r],r,t))return!1;return!0}return l1=e,l1}var c1,SR;function lae(){if(SR)return c1;SR=1;var e=hA();function t(n,r){var a=!0;return e(n,function(o,l,c){return a=!!r(o,l,c),a}),a}return c1=t,c1}var u1,wR;function cae(){if(wR)return u1;wR=1;var e=sae(),t=lae(),n=Sa(),r=Wn(),a=vm();function o(l,c,f){var d=r(l)?e:t;return f&&a(l,c,f)&&(c=void 0),d(l,n(c,3))}return u1=o,u1}var uae=cae();const p6=lt(uae);var fae=["x","y"];function df(e){"@babel/helpers - typeof";return df=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},df(e)}function ZS(){return ZS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZS.apply(this,arguments)}function AR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AR(Object(n),!0).forEach(function(r){dae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dae(e,t,n){return t=hae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hae(e){var t=pae(e,"string");return df(t)=="symbol"?t:t+""}function pae(e,t){if(df(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(df(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mae(e,t){if(e==null)return{};var n=gae(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function yae(e,t){var n=e.x,r=e.y,a=mae(e,fae),o="".concat(n),l=parseInt(o,10),c="".concat(r),f=parseInt(c,10),d="".concat(t.height||a.height),m=parseInt(d,10),p="".concat(t.width||a.width),g=parseInt(p,10);return cu(cu(cu(cu(cu({},t),a),l?{x:l}:{}),f?{y:f}:{}),{},{height:m,width:g,name:t.name,radius:t.radius})}function OR(e){return z.createElement(s6,ZS({shapeType:"rectangle",propTransformer:yae,activeClassName:"recharts-active-bar"},e))}var vae=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,a){if(typeof t=="number")return t;var o=de(r)||FH(r);return o?t(r,a):(o||Yo(),n)}},bae=["value","background"],m6;function Dl(e){"@babel/helpers - typeof";return Dl=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},Dl(e)}function xae(e,t){if(e==null)return{};var n=Sae(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ep(){return Ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ep.apply(this,arguments)}function _R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_R(Object(n),!0).forEach(function(r){Wi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_R(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y6(r.key),r)}}function Aae(e,t,n){return t&&jR(e.prototype,t),n&&jR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oae(e,t,n){return t=Cp(t),_ae(e,g6()?Reflect.construct(t,n||[],Cp(e).constructor):t.apply(e,n))}function _ae(e,t){if(t&&(Dl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jae(e)}function jae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g6=function(){return!!e})()}function Cp(e){return Cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cp(e)}function Eae(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&&JS(e,t)}function JS(e,t){return JS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},JS(e,t)}function Wi(e,t,n){return t=y6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y6(e){var t=Cae(e,"string");return Dl(t)=="symbol"?t:t+""}function Cae(e,t){if(Dl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zf=(function(e){function t(){var n;wae(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=Oae(this,t,[].concat(a)),Wi(n,"state",{isAnimationFinished:!1}),Wi(n,"id",rs("recharts-bar-")),Wi(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),l&&l()}),Wi(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),l&&l()}),n}return Eae(t,e),Aae(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,o=this.props,l=o.shape,c=o.dataKey,f=o.activeIndex,d=o.activeBar,m=_e(this.props,!1);return r&&r.map(function(p,g){var b=g===f,w=b?d:l,S=Vt(Vt(Vt({},m),p),{},{isActive:b,option:w,index:g,dataKey:c,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return z.createElement(Ue,Ep({className:"recharts-bar-rectangle"},Wo(a.props,p,g),{key:"rectangle-".concat(p?.x,"-").concat(p?.y,"-").concat(p?.value,"-").concat(g)}),z.createElement(OR,S))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,o=a.data,l=a.layout,c=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,m=a.animationEasing,p=a.animationId,g=this.state.prevData;return z.createElement(Xr,{begin:f,duration:d,isActive:c,easing:m,from:{t:0},to:{t:1},key:"bar-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var w=b.t,S=o.map(function(A,_){var T=g&&g[_];if(T){var E=nn(T.x,A.x),P=nn(T.y,A.y),O=nn(T.width,A.width),C=nn(T.height,A.height);return Vt(Vt({},A),{},{x:E(w),y:P(w),width:O(w),height:C(w)})}if(l==="horizontal"){var j=nn(0,A.height),N=j(w);return Vt(Vt({},A),{},{y:A.y+A.height-N,height:N})}var B=nn(0,A.width),q=B(w);return Vt(Vt({},A),{},{width:q})});return z.createElement(Ue,null,r.renderRectanglesStatically(S))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,o=r.isAnimationActive,l=this.state.prevData;return o&&a&&a.length&&(!l||!Go(l,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,o=a.data,l=a.dataKey,c=a.activeIndex,f=_e(this.props.background,!1);return o.map(function(d,m){d.value;var p=d.background,g=xae(d,bae);if(!p)return null;var b=Vt(Vt(Vt(Vt(Vt({},g),{},{fill:"#eee"},p),f),Wo(r.props,d,m)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:l,index:m,className:"recharts-bar-background-rectangle"});return z.createElement(OR,Ep({key:"background-bar-".concat(m),option:r.props.background,isActive:m===c},b))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,l=o.data,c=o.xAxis,f=o.yAxis,d=o.layout,m=o.children,p=fr(m,Rf);if(!p)return null;var g=d==="vertical"?l[0].height/2:l[0].width/2,b=function(A,_){var T=Array.isArray(A.value)?A.value[1]:A.value;return{x:A.x,y:A.y,value:T,errorVal:Lt(A,_)}},w={clipPath:r?"url(#clipPath-".concat(a,")"):null};return z.createElement(Ue,w,p.map(function(S){return z.cloneElement(S,{key:"error-bar-".concat(a,"-").concat(S.props.dataKey),data:l,xAxis:c,yAxis:f,layout:d,offset:g,dataPointFormatter:b})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,o=r.data,l=r.className,c=r.xAxis,f=r.yAxis,d=r.left,m=r.top,p=r.width,g=r.height,b=r.isAnimationActive,w=r.background,S=r.id;if(a||!o||!o.length)return null;var A=this.state.isAnimationFinished,_=Ne("recharts-bar",l),T=c&&c.allowDataOverflow,E=f&&f.allowDataOverflow,P=T||E,O=De(S)?this.id:S;return z.createElement(Ue,{className:_},T||E?z.createElement("defs",null,z.createElement("clipPath",{id:"clipPath-".concat(O)},z.createElement("rect",{x:T?d:d-p/2,y:E?m:m-g/2,width:T?p:p*2,height:E?g:g*2}))):null,z.createElement(Ue,{className:"recharts-bar-rectangles",clipPath:P?"url(#clipPath-".concat(O,")"):null},w?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(P,O),(!b||A)&&ha.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:a.curData}:r.data!==a.curData?{curData:r.data}:null}}])})(D.PureComponent);m6=zf;Wi(zf,"displayName","Bar");Wi(zf,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!eo.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Wi(zf,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,o=e.xAxis,l=e.yAxis,c=e.xAxisTicks,f=e.yAxisTicks,d=e.stackedData,m=e.dataStartIndex,p=e.displayedData,g=e.offset,b=nJ(r,n);if(!b)return null;var w=t.layout,S=n.type.defaultProps,A=S!==void 0?Vt(Vt({},S),n.props):n.props,_=A.dataKey,T=A.children,E=A.minPointSize,P=w==="horizontal"?l:o,O=d?P.scale.domain():null,C=cJ({numericAxis:P}),j=fr(T,xm),N=p.map(function(B,q){var I,L,W,K,U,R;d?I=rJ(d[m+q],O):(I=Lt(B,_),Array.isArray(I)||(I=[C,I]));var F=vae(E,m6.defaultProps.minPointSize)(I[1],q);if(w==="horizontal"){var H,J=[l.scale(I[0]),l.scale(I[1])],ae=J[0],$=J[1];L=XD({axis:o,ticks:c,bandSize:a,offset:b.offset,entry:B,index:q}),W=(H=$??ae)!==null&&H!==void 0?H:void 0,K=b.size;var V=ae-$;if(U=Number.isNaN(V)?0:V,R={x:L,y:l.y,width:K,height:l.height},Math.abs(F)>0&&Math.abs(U)<Math.abs(F)){var Y=Dn(U||F)*(Math.abs(F)-Math.abs(U));W-=Y,U+=Y}}else{var Z=[o.scale(I[0]),o.scale(I[1])],ce=Z[0],he=Z[1];if(L=ce,W=XD({axis:l,ticks:f,bandSize:a,offset:b.offset,entry:B,index:q}),K=he-ce,U=b.size,R={x:o.x,y:W,width:o.width,height:U},Math.abs(F)>0&&Math.abs(K)<Math.abs(F)){var me=Dn(K||F)*(Math.abs(F)-Math.abs(K));K+=me}}return Vt(Vt(Vt({},B),{},{x:L,y:W,width:K,height:U,value:d?I:I[1],payload:B,background:R},j&&j[q]&&j[q].props),{},{tooltipPayload:[Uz(n,B)],tooltipPosition:{x:L+K/2,y:W+U/2}})});return Vt({data:N,layout:w},g)});function hf(e){"@babel/helpers - typeof";return hf=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},hf(e)}function Tae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ER(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v6(r.key),r)}}function Pae(e,t,n){return t&&ER(e.prototype,t),n&&ER(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function CR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Hr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CR(Object(n),!0).forEach(function(r){Bm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bm(e,t,n){return t=v6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v6(e){var t=Mae(e,"string");return hf(t)=="symbol"?t:t+""}function Mae(e,t){if(hf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var b6=function(t,n,r,a,o){var l=t.width,c=t.height,f=t.layout,d=t.children,m=Object.keys(n),p={left:r.left,leftMirror:r.left,right:l-r.right,rightMirror:l-r.right,top:r.top,topMirror:r.top,bottom:c-r.bottom,bottomMirror:c-r.bottom},g=!!ar(d,zf);return m.reduce(function(b,w){var S=n[w],A=S.orientation,_=S.domain,T=S.padding,E=T===void 0?{}:T,P=S.mirror,O=S.reversed,C="".concat(A).concat(P?"Mirror":""),j,N,B,q,I;if(S.type==="number"&&(S.padding==="gap"||S.padding==="no-gap")){var L=_[1]-_[0],W=1/0,K=S.categoricalDomain.sort(WH);if(K.forEach(function(Z,ce){ce>0&&(W=Math.min((Z||0)-(K[ce-1]||0),W))}),Number.isFinite(W)){var U=W/L,R=S.layout==="vertical"?r.height:r.width;if(S.padding==="gap"&&(j=U*R/2),S.padding==="no-gap"){var F=Nn(t.barCategoryGap,U*R),H=U*R/2;j=H-F-(H-F)/R*F}}}a==="xAxis"?N=[r.left+(E.left||0)+(j||0),r.left+r.width-(E.right||0)-(j||0)]:a==="yAxis"?N=f==="horizontal"?[r.top+r.height-(E.bottom||0),r.top+(E.top||0)]:[r.top+(E.top||0)+(j||0),r.top+r.height-(E.bottom||0)-(j||0)]:N=S.range,O&&(N=[N[1],N[0]]);var J=$z(S,o,g),ae=J.scale,$=J.realScaleType;ae.domain(_).range(N),Lz(ae);var V=qz(ae,Hr(Hr({},S),{},{realScaleType:$}));a==="xAxis"?(I=A==="top"&&!P||A==="bottom"&&P,B=r.left,q=p[C]-I*S.height):a==="yAxis"&&(I=A==="left"&&!P||A==="right"&&P,B=p[C]-I*S.width,q=r.top);var Y=Hr(Hr(Hr({},S),V),{},{realScaleType:$,x:B,y:q,scale:ae,width:a==="xAxis"?r.width:S.width,height:a==="yAxis"?r.height:S.height});return Y.bandSize=dp(Y,V),!S.hide&&a==="xAxis"?p[C]+=(I?-1:1)*Y.height:S.hide||(p[C]+=(I?-1:1)*Y.width),Hr(Hr({},b),{},Bm({},w,Y))},{})},x6=function(t,n){var r=t.x,a=t.y,o=n.x,l=n.y;return{x:Math.min(r,o),y:Math.min(a,l),width:Math.abs(o-r),height:Math.abs(l-a)}},Dae=function(t){var n=t.x1,r=t.y1,a=t.x2,o=t.y2;return x6({x:n,y:r},{x:a,y:o})},S6=(function(){function e(t){Tae(this,e),this.scale=t}return Pae(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(n)+c}default:return this.scale(n)}if(a){var f=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+f}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],o=r[r.length-1];return a<=o?n>=a&&n<=o:n>=o&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])})();Bm(S6,"EPS",1e-4);var FA=function(t){var n=Object.keys(t).reduce(function(r,a){return Hr(Hr({},r),{},Bm({},a,S6.create(t[a])))},{});return Hr(Hr({},n),{},{apply:function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=o.bandAware,c=o.position;return oae(a,function(f,d){return n[d].apply(f,{bandAware:l,position:c})})},isInRange:function(a){return p6(a,function(o,l){return n[l].isInRange(o)})}})};function Nae(e){return(e%180+180)%180}var Rae=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Nae(a),l=o*Math.PI/180,c=Math.atan(r/n),f=l>c&&l<Math.PI-c?r/Math.sin(l):n/Math.cos(l);return Math.abs(f)},f1,TR;function kae(){if(TR)return f1;TR=1;var e=Sa(),t=Tf(),n=gm();function r(a){return function(o,l,c){var f=Object(o);if(!t(o)){var d=e(l,3);o=n(o),l=function(p){return d(f[p],p,f)}}var m=a(o,l,c);return m>-1?f[d?o[m]:m]:void 0}}return f1=r,f1}var d1,PR;function zae(){if(PR)return d1;PR=1;var e=u6();function t(n){var r=e(n),a=r%1;return r===r?a?r-a:r:0}return d1=t,d1}var h1,MR;function Bae(){if(MR)return h1;MR=1;var e=x8(),t=Sa(),n=zae(),r=Math.max;function a(o,l,c){var f=o==null?0:o.length;if(!f)return-1;var d=c==null?0:n(c);return d<0&&(d=r(f+d,0)),e(o,t(l,3),d)}return h1=a,h1}var p1,DR;function Iae(){if(DR)return p1;DR=1;var e=kae(),t=Bae(),n=e(t);return p1=n,p1}var $ae=Iae();const Lae=lt($ae);var qae=k3();const Fae=lt(qae);var Uae=Fae(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("")}),UA=D.createContext(void 0),HA=D.createContext(void 0),w6=D.createContext(void 0),A6=D.createContext({}),O6=D.createContext(void 0),_6=D.createContext(0),j6=D.createContext(0),NR=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,o=n.offset,l=t.clipPathId,c=t.children,f=t.width,d=t.height,m=Uae(o);return z.createElement(UA.Provider,{value:r},z.createElement(HA.Provider,{value:a},z.createElement(A6.Provider,{value:o},z.createElement(w6.Provider,{value:m},z.createElement(O6.Provider,{value:l},z.createElement(_6.Provider,{value:d},z.createElement(j6.Provider,{value:f},c)))))))},Hae=function(){return D.useContext(O6)},E6=function(t){var n=D.useContext(UA);n==null&&Yo();var r=n[t];return r==null&&Yo(),r},Wae=function(){var t=D.useContext(UA);return Li(t)},Vae=function(){var t=D.useContext(HA),n=Lae(t,function(r){return p6(r.domain,Number.isFinite)});return n||Li(t)},C6=function(t){var n=D.useContext(HA);n==null&&Yo();var r=n[t];return r==null&&Yo(),r},Gae=function(){var t=D.useContext(w6);return t},Kae=function(){return D.useContext(A6)},WA=function(){return D.useContext(j6)},VA=function(){return D.useContext(_6)};function Nl(e){"@babel/helpers - typeof";return Nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nl(e)}function Yae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,P6(r.key),r)}}function Xae(e,t,n){return t&&Qae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zae(e,t,n){return t=Tp(t),Jae(e,T6()?Reflect.construct(t,n||[],Tp(e).constructor):t.apply(e,n))}function Jae(e,t){if(t&&(Nl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eie(e)}function eie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(T6=function(){return!!e})()}function Tp(e){return Tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tp(e)}function tie(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(r,a){return r.__proto__=a,r},ew(e,t)}function RR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function kR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RR(Object(n),!0).forEach(function(r){GA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GA(e,t,n){return t=P6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P6(e){var t=nie(e,"string");return Nl(t)=="symbol"?t:t+""}function nie(e,t){if(Nl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function rie(e,t){return sie(e)||oie(e,t)||iie(e,t)||aie()}function aie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
345In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iie(e,t){if(e){if(typeof e=="string")return zR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zR(e,t)}}function zR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function sie(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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tw.apply(this,arguments)}var lie=function(t,n){var r;return z.isValidElement(t)?r=z.cloneElement(t,n):Me(t)?r=t(n):r=z.createElement("line",tw({},n,{className:"recharts-reference-line-line"})),r},cie=function(t,n,r,a,o,l,c,f,d){var m=o.x,p=o.y,g=o.width,b=o.height;if(r){var w=d.y,S=t.y.apply(w,{position:l});if(pa(d,"discard")&&!t.y.isInRange(S))return null;var A=[{x:m+g,y:S},{x:m,y:S}];return f==="left"?A.reverse():A}if(n){var _=d.x,T=t.x.apply(_,{position:l});if(pa(d,"discard")&&!t.x.isInRange(T))return null;var E=[{x:T,y:p+b},{x:T,y:p}];return c==="top"?E.reverse():E}if(a){var P=d.segment,O=P.map(function(C){return t.apply(C,{position:l})});return pa(d,"discard")&&nae(O,function(C){return!t.isInRange(C)})?null:O}return null};function uie(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,o=e.yAxisId,l=e.shape,c=e.className,f=e.alwaysShow,d=Hae(),m=E6(a),p=C6(o),g=Gae();if(!d||!g)return null;Gr(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var b=FA({x:m.scale,y:p.scale}),w=rn(t),S=rn(n),A=r&&r.length===2,_=cie(b,w,S,A,g,e.position,m.orientation,p.orientation,e);if(!_)return null;var T=rie(_,2),E=T[0],P=E.x,O=E.y,C=T[1],j=C.x,N=C.y,B=pa(e,"hidden")?"url(#".concat(d,")"):void 0,q=kR(kR({clipPath:B},_e(e,!0)),{},{x1:P,y1:O,x2:j,y2:N});return z.createElement(Ue,{className:Ne("recharts-reference-line",c)},lie(l,q),fn.renderCallByParent(e,Dae({x1:P,y1:O,x2:j,y2:N})))}var KA=(function(e){function t(){return Yae(this,t),Zae(this,t,arguments)}return tie(t,e),Xae(t,[{key:"render",value:function(){return z.createElement(uie,this.props)}}])})(z.Component);GA(KA,"displayName","ReferenceLine");GA(KA,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function nw(){return nw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nw.apply(this,arguments)}function Rl(e){"@babel/helpers - typeof";return Rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rl(e)}function BR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function IR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BR(Object(n),!0).forEach(function(r){Im(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function die(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D6(r.key),r)}}function hie(e,t,n){return t&&die(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pie(e,t,n){return t=Pp(t),mie(e,M6()?Reflect.construct(t,n||[],Pp(e).constructor):t.apply(e,n))}function mie(e,t){if(t&&(Rl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gie(e)}function gie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M6=function(){return!!e})()}function Pp(e){return Pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pp(e)}function yie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rw(e,t)}function rw(e,t){return rw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},rw(e,t)}function Im(e,t,n){return t=D6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D6(e){var t=vie(e,"string");return Rl(t)=="symbol"?t:t+""}function vie(e,t){if(Rl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bie=function(t){var n=t.x,r=t.y,a=t.xAxis,o=t.yAxis,l=FA({x:a.scale,y:o.scale}),c=l.apply({x:n,y:r},{bandAware:!0});return pa(t,"discard")&&!l.isInRange(c)?null:c},$m=(function(e){function t(){return fie(this,t),pie(this,t,arguments)}return yie(t,e),hie(t,[{key:"render",value:function(){var r=this.props,a=r.x,o=r.y,l=r.r,c=r.alwaysShow,f=r.clipPathId,d=rn(a),m=rn(o);if(Gr(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!m)return null;var p=bie(this.props);if(!p)return null;var g=p.x,b=p.y,w=this.props,S=w.shape,A=w.className,_=pa(this.props,"hidden")?"url(#".concat(f,")"):void 0,T=IR(IR({clipPath:_},_e(this.props,!0)),{},{cx:g,cy:b});return z.createElement(Ue,{className:Ne("recharts-reference-dot",A)},t.renderDot(S,T),fn.renderCallByParent(this.props,{x:g-l,y:b-l,width:2*l,height:2*l}))}}])})(z.Component);Im($m,"displayName","ReferenceDot");Im($m,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Im($m,"renderDot",function(e,t){var n;return z.isValidElement(e)?n=z.cloneElement(e,t):Me(e)?n=e(t):n=z.createElement(kf,nw({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function aw(){return aw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aw.apply(this,arguments)}function 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 $R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function LR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$R(Object(n),!0).forEach(function(r){Lm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$R(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,R6(r.key),r)}}function wie(e,t,n){return t&&Sie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aie(e,t,n){return t=Mp(t),Oie(e,N6()?Reflect.construct(t,n||[],Mp(e).constructor):t.apply(e,n))}function Oie(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 _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 N6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N6=function(){return!!e})()}function Mp(e){return Mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mp(e)}function jie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iw(e,t)}function iw(e,t){return iw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},iw(e,t)}function Lm(e,t,n){return t=R6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R6(e){var t=Eie(e,"string");return kl(t)=="symbol"?t:t+""}function Eie(e,t){if(kl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Cie=function(t,n,r,a,o){var l=o.x1,c=o.x2,f=o.y1,d=o.y2,m=o.xAxis,p=o.yAxis;if(!m||!p)return null;var g=FA({x:m.scale,y:p.scale}),b={x:t?g.x.apply(l,{position:"start"}):g.x.rangeMin,y:r?g.y.apply(f,{position:"start"}):g.y.rangeMin},w={x:n?g.x.apply(c,{position:"end"}):g.x.rangeMax,y:a?g.y.apply(d,{position:"end"}):g.y.rangeMax};return pa(o,"discard")&&(!g.isInRange(b)||!g.isInRange(w))?null:x6(b,w)},qm=(function(e){function t(){return xie(this,t),Aie(this,t,arguments)}return jie(t,e),wie(t,[{key:"render",value:function(){var r=this.props,a=r.x1,o=r.x2,l=r.y1,c=r.y2,f=r.className,d=r.alwaysShow,m=r.clipPathId;Gr(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=rn(a),g=rn(o),b=rn(l),w=rn(c),S=this.props.shape;if(!p&&!g&&!b&&!w&&!S)return null;var A=Cie(p,g,b,w,this.props);if(!A&&!S)return null;var _=pa(this.props,"hidden")?"url(#".concat(m,")"):void 0;return z.createElement(Ue,{className:Ne("recharts-reference-area",f)},t.renderRect(S,LR(LR({clipPath:_},_e(this.props,!0)),A)),fn.renderCallByParent(this.props,A))}}])})(z.Component);Lm(qm,"displayName","ReferenceArea");Lm(qm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Lm(qm,"renderRect",function(e,t){var n;return z.isValidElement(e)?n=z.cloneElement(e,t):Me(e)?n=e(t):n=z.createElement(qA,aw({},t,{className:"recharts-reference-area-rect"})),n});function k6(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],a=0;a<e.length;a+=t)r.push(e[a]);return r}function Tie(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Rae(r,n)}function Pie(e,t,n){var r=n==="width",a=e.x,o=e.y,l=e.width,c=e.height;return t===1?{start:r?a:o,end:r?a+l:o+c}:{start:r?a+l:o+c,end:r?a:o}}function Dp(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-a)<=0}function Mie(e,t){return k6(e,t+1)}function Die(e,t,n,r,a){for(var o=(r||[]).slice(),l=t.start,c=t.end,f=0,d=1,m=l,p=function(){var w=r?.[f];if(w===void 0)return{v:k6(r,d)};var S=f,A,_=function(){return A===void 0&&(A=n(w,S)),A},T=w.coordinate,E=f===0||Dp(e,T,_,m,c);E||(f=0,m=l,d+=1),E&&(m=T+e*(_()/2+a),f+=d)},g;d<=o.length;)if(g=p(),g)return g.v;return[]}function pf(e){"@babel/helpers - typeof";return pf=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},pf(e)}function qR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qR(Object(n),!0).forEach(function(r){Nie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nie(e,t,n){return t=Rie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rie(e){var t=kie(e,"string");return pf(t)=="symbol"?t:t+""}function kie(e,t){if(pf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zie(e,t,n,r,a){for(var o=(r||[]).slice(),l=o.length,c=t.start,f=t.end,d=function(g){var b=o[g],w,S=function(){return w===void 0&&(w=n(b,g)),w};if(g===l-1){var A=e*(b.coordinate+e*S()/2-f);o[g]=b=_n(_n({},b),{},{tickCoord:A>0?b.coordinate-A*e:b.coordinate})}else o[g]=b=_n(_n({},b),{},{tickCoord:b.coordinate});var _=Dp(e,b.tickCoord,S,c,f);_&&(f=b.tickCoord-e*(S()/2+a),o[g]=_n(_n({},b),{},{isShow:!0}))},m=l-1;m>=0;m--)d(m);return o}function Bie(e,t,n,r,a,o){var l=(r||[]).slice(),c=l.length,f=t.start,d=t.end;if(o){var m=r[c-1],p=n(m,c-1),g=e*(m.coordinate+e*p/2-d);l[c-1]=m=_n(_n({},m),{},{tickCoord:g>0?m.coordinate-g*e:m.coordinate});var b=Dp(e,m.tickCoord,function(){return p},f,d);b&&(d=m.tickCoord-e*(p/2+a),l[c-1]=_n(_n({},m),{},{isShow:!0}))}for(var w=o?c-1:c,S=function(T){var E=l[T],P,O=function(){return P===void 0&&(P=n(E,T)),P};if(T===0){var C=e*(E.coordinate-e*O()/2-f);l[T]=E=_n(_n({},E),{},{tickCoord:C<0?E.coordinate-C*e:E.coordinate})}else l[T]=E=_n(_n({},E),{},{tickCoord:E.coordinate});var j=Dp(e,E.tickCoord,O,f,d);j&&(f=E.tickCoord+e*(O()/2+a),l[T]=_n(_n({},E),{},{isShow:!0}))},A=0;A<w;A++)S(A);return l}function YA(e,t,n){var r=e.tick,a=e.ticks,o=e.viewBox,l=e.minTickGap,c=e.orientation,f=e.interval,d=e.tickFormatter,m=e.unit,p=e.angle;if(!a||!a.length||!r)return[];if(de(f)||eo.isSsr)return Mie(a,typeof f=="number"&&de(f)?f:0);var g=[],b=c==="top"||c==="bottom"?"width":"height",w=m&&b==="width"?gu(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},S=function(E,P){var O=Me(d)?d(E.value,P):E.value;return b==="width"?Tie(gu(O,{fontSize:t,letterSpacing:n}),w,p):gu(O,{fontSize:t,letterSpacing:n})[b]},A=a.length>=2?Dn(a[1].coordinate-a[0].coordinate):1,_=Pie(o,A,b);return f==="equidistantPreserveStart"?Die(A,_,S,a,l):(f==="preserveStart"||f==="preserveStartEnd"?g=Bie(A,_,S,a,l,f==="preserveStartEnd"):g=zie(A,_,S,a,l),g.filter(function(T){return T.isShow}))}var Iie=["viewBox"],$ie=["viewBox"],Lie=["ticks"];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 il(){return il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},il.apply(this,arguments)}function FR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FR(Object(n),!0).forEach(function(r){QA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function m1(e,t){if(e==null)return{};var n=qie(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qie(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Fie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,B6(r.key),r)}}function Uie(e,t,n){return t&&UR(e.prototype,t),n&&UR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hie(e,t,n){return t=Np(t),Wie(e,z6()?Reflect.construct(t,n||[],Np(e).constructor):t.apply(e,n))}function Wie(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 Vie(e)}function Vie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z6=function(){return!!e})()}function Np(e){return Np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Np(e)}function Gie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ow(e,t)}function ow(e,t){return ow=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ow(e,t)}function QA(e,t,n){return t=B6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B6(e){var t=Kie(e,"string");return zl(t)=="symbol"?t:t+""}function Kie(e,t){if(zl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nc=(function(e){function t(n){var r;return Fie(this,t),r=Hie(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Gie(t,e),Uie(t,[{key:"shouldComponentUpdate",value:function(r,a){var o=r.viewBox,l=m1(r,Iie),c=this.props,f=c.viewBox,d=m1(c,$ie);return!ll(o,f)||!ll(l,d)||!ll(a,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var a=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var a=this.props,o=a.x,l=a.y,c=a.width,f=a.height,d=a.orientation,m=a.tickSize,p=a.mirror,g=a.tickMargin,b,w,S,A,_,T,E=p?-1:1,P=r.tickSize||m,O=de(r.tickCoord)?r.tickCoord:r.coordinate;switch(d){case"top":b=w=r.coordinate,A=l+ +!p*f,S=A-E*P,T=S-E*g,_=O;break;case"left":S=A=r.coordinate,w=o+ +!p*c,b=w-E*P,_=b-E*g,T=O;break;case"right":S=A=r.coordinate,w=o+ +p*c,b=w+E*P,_=b+E*g,T=O;break;default:b=w=r.coordinate,A=l+ +p*f,S=A+E*P,T=S+E*g,_=O;break}return{line:{x1:b,y1:S,x2:w,y2:A},tick:{x:_,y:T}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,o=r.mirror,l;switch(a){case"left":l=o?"start":"end";break;case"right":l=o?"end":"start";break;default:l="middle";break}return l}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,o=r.mirror,l="end";switch(a){case"left":case"right":l="middle";break;case"top":l=o?"start":"end";break;default:l=o?"end":"start";break}return l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,o=r.y,l=r.width,c=r.height,f=r.orientation,d=r.mirror,m=r.axisLine,p=Jt(Jt(Jt({},_e(this.props,!1)),_e(m,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var g=+(f==="top"&&!d||f==="bottom"&&d);p=Jt(Jt({},p),{},{x1:a,y1:o+g*c,x2:a+l,y2:o+g*c})}else{var b=+(f==="left"&&!d||f==="right"&&d);p=Jt(Jt({},p),{},{x1:a+b*l,y1:o,x2:a+b*l,y2:o+c})}return z.createElement("line",il({},p,{className:Ne("recharts-cartesian-axis-line",ur(m,"className"))}))}},{key:"renderTicks",value:function(r,a,o){var l=this,c=this.props,f=c.tickLine,d=c.stroke,m=c.tick,p=c.tickFormatter,g=c.unit,b=YA(Jt(Jt({},this.props),{},{ticks:r}),a,o),w=this.getTickTextAnchor(),S=this.getTickVerticalAnchor(),A=_e(this.props,!1),_=_e(m,!1),T=Jt(Jt({},A),{},{fill:"none"},_e(f,!1)),E=b.map(function(P,O){var C=l.getTickLineCoord(P),j=C.line,N=C.tick,B=Jt(Jt(Jt(Jt({textAnchor:w,verticalAnchor:S},A),{},{stroke:"none",fill:d},_),N),{},{index:O,payload:P,visibleTicksCount:b.length,tickFormatter:p});return z.createElement(Ue,il({className:"recharts-cartesian-axis-tick",key:"tick-".concat(P.value,"-").concat(P.coordinate,"-").concat(P.tickCoord)},Wo(l.props,P,O)),f&&z.createElement("line",il({},T,j,{className:Ne("recharts-cartesian-axis-tick-line",ur(f,"className"))})),m&&t.renderTickItem(m,B,"".concat(Me(p)?p(P.value,O):P.value).concat(g||"")))});return z.createElement("g",{className:"recharts-cartesian-axis-ticks"},E)}},{key:"render",value:function(){var r=this,a=this.props,o=a.axisLine,l=a.width,c=a.height,f=a.ticksGenerator,d=a.className,m=a.hide;if(m)return null;var p=this.props,g=p.ticks,b=m1(p,Lie),w=g;return Me(f)&&(w=g&&g.length>0?f(this.props):f(b)),l<=0||c<=0||!w||!w.length?null:z.createElement(Ue,{className:Ne("recharts-cartesian-axis",d),ref:function(A){r.layerReference=A}},o&&this.renderAxisLine(),this.renderTicks(w,this.state.fontSize,this.state.letterSpacing),fn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,o){var l,c=Ne(a.className,"recharts-cartesian-axis-tick-value");return z.isValidElement(r)?l=z.cloneElement(r,Jt(Jt({},a),{},{className:c})):Me(r)?l=r(Jt(Jt({},a),{},{className:c})):l=z.createElement(Vo,il({},a,{className:"recharts-cartesian-axis-tick-value"}),o),l}}])})(D.Component);QA(nc,"displayName","CartesianAxis");QA(nc,"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 Yie=["x1","y1","x2","y2","key"],Qie=["offset"];function Qo(e){"@babel/helpers - typeof";return Qo=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},Qo(e)}function HR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HR(Object(n),!0).forEach(function(r){Xie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xie(e,t,n){return t=Zie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zie(e){var t=Jie(e,"string");return Qo(t)=="symbol"?t:t+""}function Jie(e,t){if(Qo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zo(){return zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zo.apply(this,arguments)}function WR(e,t){if(e==null)return{};var n=eoe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eoe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var toe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,a=t.x,o=t.y,l=t.width,c=t.height,f=t.ry;return z.createElement("rect",{x:a,y:o,ry:f,width:l,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function I6(e,t){var n;if(z.isValidElement(e))n=z.cloneElement(e,t);else if(Me(e))n=e(t);else{var r=t.x1,a=t.y1,o=t.x2,l=t.y2,c=t.key,f=WR(t,Yie),d=_e(f,!1);d.offset;var m=WR(d,Qie);n=z.createElement("line",zo({},m,{x1:r,y1:a,x2:o,y2:l,fill:"none",key:c}))}return n}function noe(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,o=e.horizontalPoints;if(!a||!o||!o.length)return null;var l=o.map(function(c,f){var d=En(En({},e),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(f),index:f});return I6(a,d)});return z.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function roe(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,o=e.verticalPoints;if(!a||!o||!o.length)return null;var l=o.map(function(c,f){var d=En(En({},e),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(f),index:f});return I6(a,d)});return z.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function aoe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,o=e.width,l=e.height,c=e.horizontalPoints,f=e.horizontal,d=f===void 0?!0:f;if(!d||!t||!t.length)return null;var m=c.map(function(g){return Math.round(g+a-a)}).sort(function(g,b){return g-b});a!==m[0]&&m.unshift(0);var p=m.map(function(g,b){var w=!m[b+1],S=w?a+l-g:m[b+1]-g;if(S<=0)return null;var A=b%t.length;return z.createElement("rect",{key:"react-".concat(b),y:g,x:r,height:S,width:o,stroke:"none",fill:t[A],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return z.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function ioe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,o=e.x,l=e.y,c=e.width,f=e.height,d=e.verticalPoints;if(!n||!r||!r.length)return null;var m=d.map(function(g){return Math.round(g+o-o)}).sort(function(g,b){return g-b});o!==m[0]&&m.unshift(0);var p=m.map(function(g,b){var w=!m[b+1],S=w?o+c-g:m[b+1]-g;if(S<=0)return null;var A=b%r.length;return z.createElement("rect",{key:"react-".concat(b),x:g,y:l,width:S,height:f,stroke:"none",fill:r[A],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return z.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var ooe=function(t,n){var r=t.xAxis,a=t.width,o=t.height,l=t.offset;return Iz(YA(En(En(En({},nc.defaultProps),r),{},{ticks:Ya(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),l.left,l.left+l.width,n)},soe=function(t,n){var r=t.yAxis,a=t.width,o=t.height,l=t.offset;return Iz(YA(En(En(En({},nc.defaultProps),r),{},{ticks:Ya(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),l.top,l.top+l.height,n)},Xs={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function $6(e){var t,n,r,a,o,l,c=WA(),f=VA(),d=Kae(),m=En(En({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Xs.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Xs.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Xs.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:Xs.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Xs.vertical,verticalFill:(l=e.verticalFill)!==null&&l!==void 0?l:Xs.verticalFill,x:de(e.x)?e.x:d.left,y:de(e.y)?e.y:d.top,width:de(e.width)?e.width:d.width,height:de(e.height)?e.height:d.height}),p=m.x,g=m.y,b=m.width,w=m.height,S=m.syncWithTicks,A=m.horizontalValues,_=m.verticalValues,T=Wae(),E=Vae();if(!de(b)||b<=0||!de(w)||w<=0||!de(p)||p!==+p||!de(g)||g!==+g)return null;var P=m.verticalCoordinatesGenerator||ooe,O=m.horizontalCoordinatesGenerator||soe,C=m.horizontalPoints,j=m.verticalPoints;if((!C||!C.length)&&Me(O)){var N=A&&A.length,B=O({yAxis:E?En(En({},E),{},{ticks:N?A:E.ticks}):void 0,width:c,height:f,offset:d},N?!0:S);Gr(Array.isArray(B),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Qo(B),"]")),Array.isArray(B)&&(C=B)}if((!j||!j.length)&&Me(P)){var q=_&&_.length,I=P({xAxis:T?En(En({},T),{},{ticks:q?_:T.ticks}):void 0,width:c,height:f,offset:d},q?!0:S);Gr(Array.isArray(I),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Qo(I),"]")),Array.isArray(I)&&(j=I)}return z.createElement("g",{className:"recharts-cartesian-grid"},z.createElement(toe,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),z.createElement(noe,zo({},m,{offset:d,horizontalPoints:C,xAxis:T,yAxis:E})),z.createElement(roe,zo({},m,{offset:d,verticalPoints:j,xAxis:T,yAxis:E})),z.createElement(aoe,zo({},m,{horizontalPoints:C})),z.createElement(ioe,zo({},m,{verticalPoints:j})))}$6.displayName="CartesianGrid";var loe=["type","layout","connectNulls","ref"],coe=["key"];function Bl(e){"@babel/helpers - typeof";return Bl=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},Bl(e)}function VR(e,t){if(e==null)return{};var n=uoe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uoe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function wu(){return wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wu.apply(this,arguments)}function GR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GR(Object(n),!0).forEach(function(r){Wr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zs(e){return poe(e)||hoe(e)||doe(e)||foe()}function foe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
346In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function doe(e,t){if(e){if(typeof e=="string")return sw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sw(e,t)}}function hoe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function poe(e){if(Array.isArray(e))return sw(e)}function sw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function moe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,q6(r.key),r)}}function goe(e,t,n){return t&&KR(e.prototype,t),n&&KR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yoe(e,t,n){return t=Rp(t),voe(e,L6()?Reflect.construct(t,n||[],Rp(e).constructor):t.apply(e,n))}function voe(e,t){if(t&&(Bl(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 L6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L6=function(){return!!e})()}function Rp(e){return Rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rp(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&&lw(e,t)}function lw(e,t){return lw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},lw(e,t)}function Wr(e,t,n){return t=q6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q6(e){var t=Soe(e,"string");return Bl(t)=="symbol"?t:t+""}function Soe(e,t){if(Bl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rc=(function(e){function t(){var n;moe(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=yoe(this,t,[].concat(a)),Wr(n,"state",{isAnimationFinished:!0,totalLength:0}),Wr(n,"generateSimpleStrokeDasharray",function(l,c){return"".concat(c,"px ").concat(l-c,"px")}),Wr(n,"getStrokeDasharray",function(l,c,f){var d=f.reduce(function(_,T){return _+T});if(!d)return n.generateSimpleStrokeDasharray(c,l);for(var m=Math.floor(l/d),p=l%d,g=c-l,b=[],w=0,S=0;w<f.length;S+=f[w],++w)if(S+f[w]>p){b=[].concat(Zs(f.slice(0,w)),[p-S]);break}var A=b.length%2===0?[0,g]:[g];return[].concat(Zs(t.repeat(f,m)),Zs(b),A).map(function(_){return"".concat(_,"px")}).join(", ")}),Wr(n,"id",rs("recharts-line-")),Wr(n,"pathRef",function(l){n.mainCurve=l}),Wr(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Wr(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return xoe(t,e),goe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,l=o.points,c=o.xAxis,f=o.yAxis,d=o.layout,m=o.children,p=fr(m,Rf);if(!p)return null;var g=function(S,A){return{x:S.x,y:S.y,value:S.value,errorVal:Lt(S.payload,A)}},b={clipPath:r?"url(#clipPath-".concat(a,")"):null};return z.createElement(Ue,b,p.map(function(w){return z.cloneElement(w,{key:"bar-".concat(w.props.dataKey),data:l,xAxis:c,yAxis:f,layout:d,dataPointFormatter:g})}))}},{key:"renderDots",value:function(r,a,o){var l=this.props.isAnimationActive;if(l&&!this.state.isAnimationFinished)return null;var c=this.props,f=c.dot,d=c.points,m=c.dataKey,p=_e(this.props,!1),g=_e(f,!0),b=d.map(function(S,A){var _=nr(nr(nr({key:"dot-".concat(A),r:3},p),g),{},{index:A,cx:S.x,cy:S.y,value:S.value,dataKey:m,payload:S.payload,points:d});return t.renderDotItem(f,_)}),w={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(o,")"):null};return z.createElement(Ue,wu({className:"recharts-line-dots",key:"dots"},w),b)}},{key:"renderCurveStatically",value:function(r,a,o,l){var c=this.props,f=c.type,d=c.layout,m=c.connectNulls;c.ref;var p=VR(c,loe),g=nr(nr(nr({},_e(p,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(o,")"):null,points:r},l),{},{type:f,layout:d,connectNulls:m});return z.createElement(Lo,wu({},g,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,a){var o=this,l=this.props,c=l.points,f=l.strokeDasharray,d=l.isAnimationActive,m=l.animationBegin,p=l.animationDuration,g=l.animationEasing,b=l.animationId,w=l.animateNewValues,S=l.width,A=l.height,_=this.state,T=_.prevPoints,E=_.totalLength;return z.createElement(Xr,{begin:m,duration:p,isActive:d,easing:g,from:{t:0},to:{t:1},key:"line-".concat(b),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(P){var O=P.t;if(T){var C=T.length/c.length,j=c.map(function(L,W){var K=Math.floor(W*C);if(T[K]){var U=T[K],R=nn(U.x,L.x),F=nn(U.y,L.y);return nr(nr({},L),{},{x:R(O),y:F(O)})}if(w){var H=nn(S*2,L.x),J=nn(A/2,L.y);return nr(nr({},L),{},{x:H(O),y:J(O)})}return nr(nr({},L),{},{x:L.x,y:L.y})});return o.renderCurveStatically(j,r,a)}var N=nn(0,E),B=N(O),q;if(f){var I="".concat(f).split(/[,\s]+/gim).map(function(L){return parseFloat(L)});q=o.getStrokeDasharray(B,E,I)}else q=o.generateSimpleStrokeDasharray(E,B);return o.renderCurveStatically(c,r,a,{strokeDasharray:q})})}},{key:"renderCurve",value:function(r,a){var o=this.props,l=o.points,c=o.isAnimationActive,f=this.state,d=f.prevPoints,m=f.totalLength;return c&&l&&l.length&&(!d&&m>0||!Go(d,l))?this.renderCurveWithAnimation(r,a):this.renderCurveStatically(l,r,a)}},{key:"render",value:function(){var r,a=this.props,o=a.hide,l=a.dot,c=a.points,f=a.className,d=a.xAxis,m=a.yAxis,p=a.top,g=a.left,b=a.width,w=a.height,S=a.isAnimationActive,A=a.id;if(o||!c||!c.length)return null;var _=this.state.isAnimationFinished,T=c.length===1,E=Ne("recharts-line",f),P=d&&d.allowDataOverflow,O=m&&m.allowDataOverflow,C=P||O,j=De(A)?this.id:A,N=(r=_e(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},B=N.r,q=B===void 0?3:B,I=N.strokeWidth,L=I===void 0?2:I,W=L3(l)?l:{},K=W.clipDot,U=K===void 0?!0:K,R=q*2+L;return z.createElement(Ue,{className:E},P||O?z.createElement("defs",null,z.createElement("clipPath",{id:"clipPath-".concat(j)},z.createElement("rect",{x:P?g:g-b/2,y:O?p:p-w/2,width:P?b:b*2,height:O?w:w*2})),!U&&z.createElement("clipPath",{id:"clipPath-dots-".concat(j)},z.createElement("rect",{x:g-R/2,y:p-R/2,width:b+R,height:w+R}))):null,!T&&this.renderCurve(C,j),this.renderErrorBar(C,j),(T||l)&&this.renderDots(C,U,j),(!S||_)&&ha.renderCallByParent(this.props,c))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:a.curPoints}:r.points!==a.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,a){for(var o=r.length%2!==0?[].concat(Zs(r),[0]):r,l=[],c=0;c<a;++c)l=[].concat(Zs(l),Zs(o));return l}},{key:"renderDotItem",value:function(r,a){var o;if(z.isValidElement(r))o=z.cloneElement(r,a);else if(Me(r))o=r(a);else{var l=a.key,c=VR(a,coe),f=Ne("recharts-line-dot",typeof r!="boolean"?r.className:"");o=z.createElement(kf,wu({key:l},c,{className:f}))}return o}}])})(D.PureComponent);Wr(rc,"displayName","Line");Wr(rc,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!eo.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Wr(rc,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,l=e.dataKey,c=e.bandSize,f=e.displayedData,d=e.offset,m=t.layout,p=f.map(function(g,b){var w=Lt(g,l);return m==="horizontal"?{x:fp({axis:n,ticks:a,bandSize:c,entry:g,index:b}),y:De(w)?null:r.scale(w),value:w,payload:g}:{x:De(w)?null:n.scale(w),y:fp({axis:r,ticks:o,bandSize:c,entry:g,index:b}),value:w,payload:g}});return nr({points:p,layout:m},d)});var woe=["layout","type","stroke","connectNulls","isRange","ref"],Aoe=["key"],F6;function Il(e){"@babel/helpers - typeof";return Il=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},Il(e)}function U6(e,t){if(e==null)return{};var n=Ooe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ooe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Bo(){return Bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bo.apply(this,arguments)}function YR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YR(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,W6(r.key),r)}}function joe(e,t,n){return t&&QR(e.prototype,t),n&&QR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eoe(e,t,n){return t=kp(t),Coe(e,H6()?Reflect.construct(t,n||[],kp(e).constructor):t.apply(e,n))}function Coe(e,t){if(t&&(Il(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Toe(e)}function Toe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H6=function(){return!!e})()}function kp(e){return kp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kp(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&&cw(e,t)}function cw(e,t){return cw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},cw(e,t)}function ua(e,t,n){return t=W6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W6(e){var t=Moe(e,"string");return Il(t)=="symbol"?t:t+""}function Moe(e,t){if(Il(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Il(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ao=(function(e){function t(){var n;_oe(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=Eoe(this,t,[].concat(a)),ua(n,"state",{isAnimationFinished:!0}),ua(n,"id",rs("recharts-area-")),ua(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Me(l)&&l()}),ua(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Me(l)&&l()}),n}return Poe(t,e),joe(t,[{key:"renderDots",value:function(r,a,o){var l=this.props.isAnimationActive,c=this.state.isAnimationFinished;if(l&&!c)return null;var f=this.props,d=f.dot,m=f.points,p=f.dataKey,g=_e(this.props,!1),b=_e(d,!0),w=m.map(function(A,_){var T=Bi(Bi(Bi({key:"dot-".concat(_),r:3},g),b),{},{index:_,cx:A.x,cy:A.y,dataKey:p,value:A.value,payload:A.payload,points:m});return t.renderDotItem(d,T)}),S={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(o,")"):null};return z.createElement(Ue,Bo({className:"recharts-area-dots"},S),w)}},{key:"renderHorizontalRect",value:function(r){var a=this.props,o=a.baseLine,l=a.points,c=a.strokeWidth,f=l[0].x,d=l[l.length-1].x,m=r*Math.abs(f-d),p=Hi(l.map(function(g){return g.y||0}));return de(o)&&typeof o=="number"?p=Math.max(o,p):o&&Array.isArray(o)&&o.length&&(p=Math.max(Hi(o.map(function(g){return g.y||0})),p)),de(p)?z.createElement("rect",{x:f<d?f:f-m,y:0,width:m,height:Math.floor(p+(c?parseInt("".concat(c),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var a=this.props,o=a.baseLine,l=a.points,c=a.strokeWidth,f=l[0].y,d=l[l.length-1].y,m=r*Math.abs(f-d),p=Hi(l.map(function(g){return g.x||0}));return de(o)&&typeof o=="number"?p=Math.max(o,p):o&&Array.isArray(o)&&o.length&&(p=Math.max(Hi(o.map(function(g){return g.x||0})),p)),de(p)?z.createElement("rect",{x:0,y:f<d?f:f-m,width:p+(c?parseInt("".concat(c),10):1),height:Math.floor(m)}):null}},{key:"renderClipRect",value:function(r){var a=this.props.layout;return a==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,a,o,l){var c=this.props,f=c.layout,d=c.type,m=c.stroke,p=c.connectNulls,g=c.isRange;c.ref;var b=U6(c,woe);return z.createElement(Ue,{clipPath:o?"url(#clipPath-".concat(l,")"):null},z.createElement(Lo,Bo({},_e(b,!0),{points:r,connectNulls:p,type:d,baseLine:a,layout:f,stroke:"none",className:"recharts-area-area"})),m!=="none"&&z.createElement(Lo,Bo({},_e(this.props,!1),{className:"recharts-area-curve",layout:f,type:d,connectNulls:p,fill:"none",points:r})),m!=="none"&&g&&z.createElement(Lo,Bo({},_e(this.props,!1),{className:"recharts-area-curve",layout:f,type:d,connectNulls:p,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(r,a){var o=this,l=this.props,c=l.points,f=l.baseLine,d=l.isAnimationActive,m=l.animationBegin,p=l.animationDuration,g=l.animationEasing,b=l.animationId,w=this.state,S=w.prevPoints,A=w.prevBaseLine;return z.createElement(Xr,{begin:m,duration:p,isActive:d,easing:g,from:{t:0},to:{t:1},key:"area-".concat(b),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(_){var T=_.t;if(S){var E=S.length/c.length,P=c.map(function(N,B){var q=Math.floor(B*E);if(S[q]){var I=S[q],L=nn(I.x,N.x),W=nn(I.y,N.y);return Bi(Bi({},N),{},{x:L(T),y:W(T)})}return N}),O;if(de(f)&&typeof f=="number"){var C=nn(A,f);O=C(T)}else if(De(f)||Xl(f)){var j=nn(A,0);O=j(T)}else O=f.map(function(N,B){var q=Math.floor(B*E);if(A[q]){var I=A[q],L=nn(I.x,N.x),W=nn(I.y,N.y);return Bi(Bi({},N),{},{x:L(T),y:W(T)})}return N});return o.renderAreaStatically(P,O,r,a)}return z.createElement(Ue,null,z.createElement("defs",null,z.createElement("clipPath",{id:"animationClipPath-".concat(a)},o.renderClipRect(T))),z.createElement(Ue,{clipPath:"url(#animationClipPath-".concat(a,")")},o.renderAreaStatically(c,f,r,a)))})}},{key:"renderArea",value:function(r,a){var o=this.props,l=o.points,c=o.baseLine,f=o.isAnimationActive,d=this.state,m=d.prevPoints,p=d.prevBaseLine,g=d.totalLength;return f&&l&&l.length&&(!m&&g>0||!Go(m,l)||!Go(p,c))?this.renderAreaWithAnimation(r,a):this.renderAreaStatically(l,c,r,a)}},{key:"render",value:function(){var r,a=this.props,o=a.hide,l=a.dot,c=a.points,f=a.className,d=a.top,m=a.left,p=a.xAxis,g=a.yAxis,b=a.width,w=a.height,S=a.isAnimationActive,A=a.id;if(o||!c||!c.length)return null;var _=this.state.isAnimationFinished,T=c.length===1,E=Ne("recharts-area",f),P=p&&p.allowDataOverflow,O=g&&g.allowDataOverflow,C=P||O,j=De(A)?this.id:A,N=(r=_e(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},B=N.r,q=B===void 0?3:B,I=N.strokeWidth,L=I===void 0?2:I,W=L3(l)?l:{},K=W.clipDot,U=K===void 0?!0:K,R=q*2+L;return z.createElement(Ue,{className:E},P||O?z.createElement("defs",null,z.createElement("clipPath",{id:"clipPath-".concat(j)},z.createElement("rect",{x:P?m:m-b/2,y:O?d:d-w/2,width:P?b:b*2,height:O?w:w*2})),!U&&z.createElement("clipPath",{id:"clipPath-dots-".concat(j)},z.createElement("rect",{x:m-R/2,y:d-R/2,width:b+R,height:w+R}))):null,T?null:this.renderArea(C,j),(l||T)&&this.renderDots(C,U,j),(!S||_)&&ha.renderCallByParent(this.props,c))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:a.curPoints,prevBaseLine:a.curBaseLine}:r.points!==a.curPoints||r.baseLine!==a.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])})(D.PureComponent);F6=ao;ua(ao,"displayName","Area");ua(ao,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!eo.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});ua(ao,"getBaseValue",function(e,t,n,r){var a=e.layout,o=e.baseValue,l=t.props.baseValue,c=l??o;if(de(c)&&typeof c=="number")return c;var f=a==="horizontal"?r:n,d=f.scale.domain();if(f.type==="number"){var m=Math.max(d[0],d[1]),p=Math.min(d[0],d[1]);return c==="dataMin"?p:c==="dataMax"||m<0?m:Math.max(Math.min(d[0],d[1]),0)}return c==="dataMin"?d[0]:c==="dataMax"?d[1]:d[0]});ua(ao,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,a=e.yAxis,o=e.xAxisTicks,l=e.yAxisTicks,c=e.bandSize,f=e.dataKey,d=e.stackedData,m=e.dataStartIndex,p=e.displayedData,g=e.offset,b=t.layout,w=d&&d.length,S=F6.getBaseValue(t,n,r,a),A=b==="horizontal",_=!1,T=p.map(function(P,O){var C;w?C=d[m+O]:(C=Lt(P,f),Array.isArray(C)?_=!0:C=[S,C]);var j=C[1]==null||w&&Lt(P,f)==null;return A?{x:fp({axis:r,ticks:o,bandSize:c,entry:P,index:O}),y:j?null:a.scale(C[1]),value:C,payload:P}:{x:j?null:r.scale(C[1]),y:fp({axis:a,ticks:l,bandSize:c,entry:P,index:O}),value:C,payload:P}}),E;return w||_?E=T.map(function(P){var O=Array.isArray(P.value)?P.value[0]:null;return A?{x:P.x,y:O!=null&&P.y!=null?a.scale(O):null}:{x:O!=null?r.scale(O):null,y:P.y}}):E=A?a.scale(S):r.scale(S),Bi({points:T,baseLine:E,layout:b,isRange:_},g)});ua(ao,"renderDotItem",function(e,t){var n;if(z.isValidElement(e))n=z.cloneElement(e,t);else if(Me(e))n=e(t);else{var r=Ne("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,o=U6(t,Aoe);n=z.createElement(kf,Bo({},o,{key:a,className:r}))}return n});function $l(e){"@babel/helpers - typeof";return $l=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},$l(e)}function Doe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Noe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K6(r.key),r)}}function Roe(e,t,n){return t&&Noe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function koe(e,t,n){return t=zp(t),zoe(e,V6()?Reflect.construct(t,n||[],zp(e).constructor):t.apply(e,n))}function zoe(e,t){if(t&&($l(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 V6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V6=function(){return!!e})()}function zp(e){return zp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zp(e)}function Ioe(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(r,a){return r.__proto__=a,r},uw(e,t)}function G6(e,t,n){return t=K6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K6(e){var t=$oe(e,"string");return $l(t)=="symbol"?t:t+""}function $oe(e,t){if($l(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($l(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function fw(){return fw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fw.apply(this,arguments)}function Loe(e){var t=e.xAxisId,n=WA(),r=VA(),a=E6(t);return a==null?null:D.createElement(nc,fw({},a,{className:Ne("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(l){return Ya(l,!0)}}))}var ss=(function(e){function t(){return Doe(this,t),koe(this,t,arguments)}return Ioe(t,e),Roe(t,[{key:"render",value:function(){return D.createElement(Loe,this.props)}}])})(D.Component);G6(ss,"displayName","XAxis");G6(ss,"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 Ll(e){"@babel/helpers - typeof";return Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ll(e)}function qoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Foe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,X6(r.key),r)}}function Uoe(e,t,n){return t&&Foe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hoe(e,t,n){return t=Bp(t),Woe(e,Y6()?Reflect.construct(t,n||[],Bp(e).constructor):t.apply(e,n))}function Woe(e,t){if(t&&(Ll(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Voe(e)}function Voe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y6=function(){return!!e})()}function Bp(e){return Bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bp(e)}function Goe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dw(e,t)}function dw(e,t){return dw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},dw(e,t)}function Q6(e,t,n){return t=X6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X6(e){var t=Koe(e,"string");return Ll(t)=="symbol"?t:t+""}function Koe(e,t){if(Ll(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ll(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function hw(){return hw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hw.apply(this,arguments)}var Yoe=function(t){var n=t.yAxisId,r=WA(),a=VA(),o=C6(n);return o==null?null:D.createElement(nc,hw({},o,{className:Ne("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(c){return Ya(c,!0)}}))},ls=(function(e){function t(){return qoe(this,t),Hoe(this,t,arguments)}return Goe(t,e),Uoe(t,[{key:"render",value:function(){return D.createElement(Yoe,this.props)}}])})(D.Component);Q6(ls,"displayName","YAxis");Q6(ls,"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 XR(e){return Joe(e)||Zoe(e)||Xoe(e)||Qoe()}function Qoe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
347In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xoe(e,t){if(e){if(typeof e=="string")return pw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pw(e,t)}}function Zoe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Joe(e){if(Array.isArray(e))return pw(e)}function pw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mw=function(t,n,r,a,o){var l=fr(t,KA),c=fr(t,$m),f=[].concat(XR(l),XR(c)),d=fr(t,qm),m="".concat(a,"Id"),p=a[0],g=n;if(f.length&&(g=f.reduce(function(S,A){if(A.props[m]===r&&pa(A.props,"extendDomain")&&de(A.props[p])){var _=A.props[p];return[Math.min(S[0],_),Math.max(S[1],_)]}return S},g)),d.length){var b="".concat(p,"1"),w="".concat(p,"2");g=d.reduce(function(S,A){if(A.props[m]===r&&pa(A.props,"extendDomain")&&de(A.props[b])&&de(A.props[w])){var _=A.props[b],T=A.props[w];return[Math.min(S[0],_,T),Math.max(S[1],_,T)]}return S},g)}return o&&o.length&&(g=o.reduce(function(S,A){return de(A)?[Math.min(S[0],A),Math.max(S[1],A)]:S},g)),g},g1={exports:{}},ZR;function ese(){return ZR||(ZR=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(f,d,m){this.fn=f,this.context=d,this.once=m||!1}function o(f,d,m,p,g){if(typeof m!="function")throw new TypeError("The listener must be a function");var b=new a(m,p||f,g),w=n?n+d:d;return f._events[w]?f._events[w].fn?f._events[w]=[f._events[w],b]:f._events[w].push(b):(f._events[w]=b,f._eventsCount++),f}function l(f,d){--f._eventsCount===0?f._events=new r:delete f._events[d]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var d=[],m,p;if(this._eventsCount===0)return d;for(p in m=this._events)t.call(m,p)&&d.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(m)):d},c.prototype.listeners=function(d){var m=n?n+d:d,p=this._events[m];if(!p)return[];if(p.fn)return[p.fn];for(var g=0,b=p.length,w=new Array(b);g<b;g++)w[g]=p[g].fn;return w},c.prototype.listenerCount=function(d){var m=n?n+d:d,p=this._events[m];return p?p.fn?1:p.length:0},c.prototype.emit=function(d,m,p,g,b,w){var S=n?n+d:d;if(!this._events[S])return!1;var A=this._events[S],_=arguments.length,T,E;if(A.fn){switch(A.once&&this.removeListener(d,A.fn,void 0,!0),_){case 1:return A.fn.call(A.context),!0;case 2:return A.fn.call(A.context,m),!0;case 3:return A.fn.call(A.context,m,p),!0;case 4:return A.fn.call(A.context,m,p,g),!0;case 5:return A.fn.call(A.context,m,p,g,b),!0;case 6:return A.fn.call(A.context,m,p,g,b,w),!0}for(E=1,T=new Array(_-1);E<_;E++)T[E-1]=arguments[E];A.fn.apply(A.context,T)}else{var P=A.length,O;for(E=0;E<P;E++)switch(A[E].once&&this.removeListener(d,A[E].fn,void 0,!0),_){case 1:A[E].fn.call(A[E].context);break;case 2:A[E].fn.call(A[E].context,m);break;case 3:A[E].fn.call(A[E].context,m,p);break;case 4:A[E].fn.call(A[E].context,m,p,g);break;default:if(!T)for(O=1,T=new Array(_-1);O<_;O++)T[O-1]=arguments[O];A[E].fn.apply(A[E].context,T)}}return!0},c.prototype.on=function(d,m,p){return o(this,d,m,p,!1)},c.prototype.once=function(d,m,p){return o(this,d,m,p,!0)},c.prototype.removeListener=function(d,m,p,g){var b=n?n+d:d;if(!this._events[b])return this;if(!m)return l(this,b),this;var w=this._events[b];if(w.fn)w.fn===m&&(!g||w.once)&&(!p||w.context===p)&&l(this,b);else{for(var S=0,A=[],_=w.length;S<_;S++)(w[S].fn!==m||g&&!w[S].once||p&&w[S].context!==p)&&A.push(w[S]);A.length?this._events[b]=A.length===1?A[0]:A:l(this,b)}return this},c.prototype.removeAllListeners=function(d){var m;return d?(m=n?n+d:d,this._events[m]&&l(this,m)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c})(g1)),g1.exports}var tse=ese();const nse=lt(tse);var y1=new nse,v1="recharts.syncMouseEvents";function mf(e){"@babel/helpers - typeof";return mf=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},mf(e)}function rse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ase(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Z6(r.key),r)}}function ise(e,t,n){return t&&ase(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function b1(e,t,n){return t=Z6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z6(e){var t=ose(e,"string");return mf(t)=="symbol"?t:t+""}function ose(e,t){if(mf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sse=(function(){function e(){rse(this,e),b1(this,"activeIndex",0),b1(this,"coordinateList",[]),b1(this,"layout","horizontal")}return ise(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,o=a===void 0?null:a,l=n.container,c=l===void 0?null:l,f=n.layout,d=f===void 0?null:f,m=n.offset,p=m===void 0?null:m,g=n.mouseHandlerCallback,b=g===void 0?null:g;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=c??this.container,this.layout=d??this.layout,this.offset=p??this.offset,this.mouseHandlerCallback=b??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),o=a.x,l=a.y,c=a.height,f=this.coordinateList[this.activeIndex].coordinate,d=((n=window)===null||n===void 0?void 0:n.scrollX)||0,m=((r=window)===null||r===void 0?void 0:r.scrollY)||0,p=o+f+d,g=l+this.offset.top+c/2+m;this.mouseHandlerCallback({pageX:p,pageY:g})}}}])})();function lse(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e?.[0],a=e?.[1];if(r&&a&&de(r)&&de(a))return!0}return!1}function cse(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-a,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function J6(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,o=e.endAngle,l=xt(t,n,r,a),c=xt(t,n,r,o);return{points:[l,c],cx:t,cy:n,radius:r,startAngle:a,endAngle:o}}function use(e,t,n){var r,a,o,l;if(e==="horizontal")r=t.x,o=r,a=n.top,l=n.top+n.height;else if(e==="vertical")a=t.y,l=a,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var c=t.cx,f=t.cy,d=t.innerRadius,m=t.outerRadius,p=t.angle,g=xt(c,f,d,p),b=xt(c,f,m,p);r=g.x,a=g.y,o=b.x,l=b.y}else return J6(t);return[{x:r,y:a},{x:o,y:l}]}function gf(e){"@babel/helpers - typeof";return gf=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},gf(e)}function JR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JR(Object(n),!0).forEach(function(r){fse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fse(e,t,n){return t=dse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dse(e){var t=hse(e,"string");return gf(t)=="symbol"?t:t+""}function hse(e,t){if(gf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pse(e){var t,n,r=e.element,a=e.tooltipEventType,o=e.isActive,l=e.activeCoordinate,c=e.activePayload,f=e.offset,d=e.activeTooltipIndex,m=e.tooltipAxisBandSize,p=e.layout,g=e.chartName,b=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!b||!o||!l||g!=="ScatterChart"&&a!=="axis")return null;var w,S=Lo;if(g==="ScatterChart")w=l,S=jne;else if(g==="BarChart")w=cse(p,l,f,m),S=qA;else if(p==="radial"){var A=J6(l),_=A.cx,T=A.cy,E=A.radius,P=A.startAngle,O=A.endAngle;w={cx:_,cy:T,startAngle:P,endAngle:O,innerRadius:E,outerRadius:E},S=Yz}else w={points:use(p,l,f)},S=Lo;var C=xh(xh(xh(xh({stroke:"#ccc",pointerEvents:"none"},f),w),_e(b,!1)),{},{payload:c,payloadIndex:d,className:Ne("recharts-tooltip-cursor",b.className)});return D.isValidElement(b)?D.cloneElement(b,C):D.createElement(S,C)}var mse=["item"],gse=["children","className","width","height","style","compact","title","desc"];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 ol(){return ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ol.apply(this,arguments)}function ek(e,t){return bse(e)||vse(e,t)||t4(e,t)||yse()}function yse(){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 vse(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function bse(e){if(Array.isArray(e))return e}function tk(e,t){if(e==null)return{};var n=xse(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xse(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Sse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n4(r.key),r)}}function Ase(e,t,n){return t&&wse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ose(e,t,n){return t=Ip(t),_se(e,e4()?Reflect.construct(t,n||[],Ip(e).constructor):t.apply(e,n))}function _se(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 jse(e)}function jse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e4=function(){return!!e})()}function Ip(e){return Ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ip(e)}function Ese(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gw(e,t)}function gw(e,t){return gw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},gw(e,t)}function Fl(e){return Pse(e)||Tse(e)||t4(e)||Cse()}function Cse(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
349In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t4(e,t){if(e){if(typeof e=="string")return yw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yw(e,t)}}function Tse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pse(e){if(Array.isArray(e))return yw(e)}function yw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nk(Object(n),!0).forEach(function(r){Pe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pe(e,t,n){return t=n4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n4(e){var t=Mse(e,"string");return ql(t)=="symbol"?t:t+""}function Mse(e,t){if(ql(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ql(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dse={xAxis:["bottom","top"],yAxis:["left","right"]},Nse={width:"100%",height:"100%"},r4={x:0,y:0};function Sh(e){return e}var Rse=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},kse=function(t,n,r,a){var o=n.find(function(m){return m&&m.index===r});if(o){if(t==="horizontal")return{x:o.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:o.coordinate};if(t==="centric"){var l=o.coordinate,c=a.radius;return se(se(se({},a),xt(a.cx,a.cy,c,l)),{},{angle:l,radius:c})}var f=o.coordinate,d=a.angle;return se(se(se({},a),xt(a.cx,a.cy,f,d)),{},{angle:d,radius:f})}return r4},Fm=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,o=n.dataEndIndex,l=(r??[]).reduce(function(c,f){var d=f.props.data;return d&&d.length?[].concat(Fl(c),Fl(d)):c},[]);return l.length>0?l:t&&t.length&&de(a)&&de(o)?t.slice(a,o+1):[]};function a4(e){return e==="number"?[0,"auto"]:void 0}var vw=function(t,n,r,a){var o=t.graphicalItems,l=t.tooltipAxis,c=Fm(n,t);return r<0||!o||!o.length||r>=c.length?null:o.reduce(function(f,d){var m,p=(m=d.props.data)!==null&&m!==void 0?m:n;p&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(p=p.slice(t.dataStartIndex,t.dataEndIndex+1));var g;if(l.dataKey&&!l.allowDuplicatedCategory){var b=p===void 0?c:p;g=Lh(b,l.dataKey,a)}else g=p&&p[r]||c[r];return g?[].concat(Fl(f),[Uz(d,g)]):f},[])},rk=function(t,n,r,a){var o=a||{x:t.chartX,y:t.chartY},l=Rse(o,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,d=t.tooltipTicks,m=QZ(l,c,d,f);if(m>=0&&d){var p=d[m]&&d[m].value,g=vw(t,n,m,p),b=kse(r,c,m,o);return{activeTooltipIndex:m,activeLabel:p,activePayload:g,activeCoordinate:b}}return null},zse=function(t,n){var r=n.axes,a=n.graphicalItems,o=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,p=t.children,g=t.stackOffset,b=Bz(m,o);return r.reduce(function(w,S){var A,_=S.type.defaultProps!==void 0?se(se({},S.type.defaultProps),S.props):S.props,T=_.type,E=_.dataKey,P=_.allowDataOverflow,O=_.allowDuplicatedCategory,C=_.scale,j=_.ticks,N=_.includeHidden,B=_[l];if(w[B])return w;var q=Fm(t.data,{graphicalItems:a.filter(function(V){var Y,Z=l in V.props?V.props[l]:(Y=V.type.defaultProps)===null||Y===void 0?void 0:Y[l];return Z===B}),dataStartIndex:f,dataEndIndex:d}),I=q.length,L,W,K;lse(_.domain,P,T)&&(L=MS(_.domain,null,P),b&&(T==="number"||C!=="auto")&&(K=vu(q,E,"category")));var U=a4(T);if(!L||L.length===0){var R,F=(R=_.domain)!==null&&R!==void 0?R:U;if(E){if(L=vu(q,E,T),T==="category"&&b){var H=HH(L);O&&H?(W=L,L=Op(0,I)):O||(L=eN(F,L,S).reduce(function(V,Y){return V.indexOf(Y)>=0?V:[].concat(Fl(V),[Y])},[]))}else if(T==="category")O?L=L.filter(function(V){return V!==""&&!De(V)}):L=eN(F,L,S).reduce(function(V,Y){return V.indexOf(Y)>=0||Y===""||De(Y)?V:[].concat(Fl(V),[Y])},[]);else if(T==="number"){var J=tJ(q,a.filter(function(V){var Y,Z,ce=l in V.props?V.props[l]:(Y=V.type.defaultProps)===null||Y===void 0?void 0:Y[l],he="hide"in V.props?V.props.hide:(Z=V.type.defaultProps)===null||Z===void 0?void 0:Z.hide;return ce===B&&(N||!he)}),E,o,m);J&&(L=J)}b&&(T==="number"||C!=="auto")&&(K=vu(q,E,"category"))}else b?L=Op(0,I):c&&c[B]&&c[B].hasStack&&T==="number"?L=g==="expand"?[0,1]:Fz(c[B].stackGroups,f,d):L=zz(q,a.filter(function(V){var Y=l in V.props?V.props[l]:V.type.defaultProps[l],Z="hide"in V.props?V.props.hide:V.type.defaultProps.hide;return Y===B&&(N||!Z)}),T,m,!0);if(T==="number")L=mw(p,L,B,o,j),F&&(L=MS(F,L,P));else if(T==="category"&&F){var ae=F,$=L.every(function(V){return ae.indexOf(V)>=0});$&&(L=ae)}}return se(se({},w),{},Pe({},B,se(se({},_),{},{axisType:o,domain:L,categoricalDomain:K,duplicateDomain:W,originalDomain:(A=_.domain)!==null&&A!==void 0?A:U,isCategorical:b,layout:m})))},{})},Bse=function(t,n){var r=n.graphicalItems,a=n.Axis,o=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,p=t.children,g=Fm(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:d}),b=g.length,w=Bz(m,o),S=-1;return r.reduce(function(A,_){var T=_.type.defaultProps!==void 0?se(se({},_.type.defaultProps),_.props):_.props,E=T[l],P=a4("number");if(!A[E]){S++;var O;return w?O=Op(0,b):c&&c[E]&&c[E].hasStack?(O=Fz(c[E].stackGroups,f,d),O=mw(p,O,E,o)):(O=MS(P,zz(g,r.filter(function(C){var j,N,B=l in C.props?C.props[l]:(j=C.type.defaultProps)===null||j===void 0?void 0:j[l],q="hide"in C.props?C.props.hide:(N=C.type.defaultProps)===null||N===void 0?void 0:N.hide;return B===E&&!q}),"number",m),a.defaultProps.allowDataOverflow),O=mw(p,O,E,o)),se(se({},A),{},Pe({},E,se(se({axisType:o},a.defaultProps),{},{hide:!0,orientation:ur(Dse,"".concat(o,".").concat(S%2),null),domain:O,originalDomain:P,isCategorical:w,layout:m})))}return A},{})},Ise=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,o=n.AxisComp,l=n.graphicalItems,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.children,p="".concat(a,"Id"),g=fr(m,o),b={};return g&&g.length?b=zse(t,{axes:g,graphicalItems:l,axisType:a,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:d}):l&&l.length&&(b=Bse(t,{Axis:o,graphicalItems:l,axisType:a,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:d})),b},$se=function(t){var n=Li(t),r=Ya(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:pA(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:dp(n,r)}},ak=function(t){var n=t.children,r=t.defaultShowTooltip,a=ar(n,Ml),o=0,l=0;return t.data&&t.data.length!==0&&(l=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(o=a.props.startIndex),a.props.endIndex>=0&&(l=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:l,activeTooltipIndex:-1,isTooltipActive:!!r}},Lse=function(t){return!t||!t.length?!1:t.some(function(n){var r=Qa(n&&n.type);return r&&r.indexOf("Bar")>=0})},ik=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"}},qse=function(t,n){var r=t.props,a=t.graphicalItems,o=t.xAxisMap,l=o===void 0?{}:o,c=t.yAxisMap,f=c===void 0?{}:c,d=r.width,m=r.height,p=r.children,g=r.margin||{},b=ar(p,Ml),w=ar(p,cl),S=Object.keys(f).reduce(function(O,C){var j=f[C],N=j.orientation;return!j.mirror&&!j.hide?se(se({},O),{},Pe({},N,O[N]+j.width)):O},{left:g.left||0,right:g.right||0}),A=Object.keys(l).reduce(function(O,C){var j=l[C],N=j.orientation;return!j.mirror&&!j.hide?se(se({},O),{},Pe({},N,ur(O,"".concat(N))+j.height)):O},{top:g.top||0,bottom:g.bottom||0}),_=se(se({},A),S),T=_.bottom;b&&(_.bottom+=b.props.height||Ml.defaultProps.height),w&&n&&(_=JZ(_,a,r,n));var E=d-_.left-_.right,P=m-_.top-_.bottom;return se(se({brushBottom:T},_),{},{width:Math.max(E,0),height:Math.max(P,0)})},Fse=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},XA=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,l=t.validateTooltipEventTypes,c=l===void 0?["axis"]:l,f=t.axisComponents,d=t.legendContent,m=t.formatAxisMap,p=t.defaultProps,g=function(_,T){var E=T.graphicalItems,P=T.stackGroups,O=T.offset,C=T.updateId,j=T.dataStartIndex,N=T.dataEndIndex,B=_.barSize,q=_.layout,I=_.barGap,L=_.barCategoryGap,W=_.maxBarSize,K=ik(q),U=K.numericAxisName,R=K.cateAxisName,F=Lse(E),H=[];return E.forEach(function(J,ae){var $=Fm(_.data,{graphicalItems:[J],dataStartIndex:j,dataEndIndex:N}),V=J.type.defaultProps!==void 0?se(se({},J.type.defaultProps),J.props):J.props,Y=V.dataKey,Z=V.maxBarSize,ce=V["".concat(U,"Id")],he=V["".concat(R,"Id")],me={},ye=f.reduce(function(on,ft){var Cn=T["".concat(ft.axisType,"Map")],Bt=V["".concat(ft.axisType,"Id")];Cn&&Cn[Bt]||ft.axisType==="zAxis"||Yo();var li=Cn[Bt];return se(se({},on),{},Pe(Pe({},ft.axisType,li),"".concat(ft.axisType,"Ticks"),Ya(li)))},me),ue=ye[R],pe=ye["".concat(R,"Ticks")],we=P&&P[ce]&&P[ce].hasStack&&uJ(J,P[ce].stackGroups),oe=Qa(J.type).indexOf("Bar")>=0,$e=dp(ue,pe),Ee=[],Qe=F&&XZ({barSize:B,stackGroups:P,totalSize:Fse(ye,R)});if(oe){var Ke,St,hn=De(Z)?W:Z,jt=(Ke=(St=dp(ue,pe,!0))!==null&&St!==void 0?St:hn)!==null&&Ke!==void 0?Ke:0;Ee=ZZ({barGap:I,barCategoryGap:L,bandSize:jt!==$e?jt:$e,sizeList:Qe[he],maxBarSize:hn}),jt!==$e&&(Ee=Ee.map(function(on){return se(se({},on),{},{position:se(se({},on.position),{},{offset:on.position.offset-jt/2})})}))}var Kt=J&&J.type&&J.type.getComposedData;Kt&&H.push({props:se(se({},Kt(se(se({},ye),{},{displayedData:$,props:_,dataKey:Y,item:J,bandSize:$e,barPosition:Ee,offset:O,stackedData:we,layout:q,dataStartIndex:j,dataEndIndex:N}))),{},Pe(Pe(Pe({key:J.key||"item-".concat(ae)},U,ye[U]),R,ye[R]),"animationId",C)),childIndex:nW(J,_.children),item:J})}),H},b=function(_,T){var E=_.props,P=_.dataStartIndex,O=_.dataEndIndex,C=_.updateId;if(!mT({props:E}))return null;var j=E.children,N=E.layout,B=E.stackOffset,q=E.data,I=E.reverseStackOrder,L=ik(N),W=L.numericAxisName,K=L.cateAxisName,U=fr(j,r),R=lJ(q,U,"".concat(W,"Id"),"".concat(K,"Id"),B,I),F=f.reduce(function(V,Y){var Z="".concat(Y.axisType,"Map");return se(se({},V),{},Pe({},Z,Ise(E,se(se({},Y),{},{graphicalItems:U,stackGroups:Y.axisType===W&&R,dataStartIndex:P,dataEndIndex:O}))))},{}),H=qse(se(se({},F),{},{props:E,graphicalItems:U}),T?.legendBBox);Object.keys(F).forEach(function(V){F[V]=m(E,F[V],H,V.replace("Map",""),n)});var J=F["".concat(K,"Map")],ae=$se(J),$=g(E,se(se({},F),{},{dataStartIndex:P,dataEndIndex:O,updateId:C,graphicalItems:U,stackGroups:R,offset:H}));return se(se({formattedGraphicalItems:$,graphicalItems:U,offset:H,stackGroups:R},ae),F)},w=(function(A){function _(T){var E,P,O;return Sse(this,_),O=Ose(this,_,[T]),Pe(O,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Pe(O,"accessibilityManager",new sse),Pe(O,"handleLegendBBoxUpdate",function(C){if(C){var j=O.state,N=j.dataStartIndex,B=j.dataEndIndex,q=j.updateId;O.setState(se({legendBBox:C},b({props:O.props,dataStartIndex:N,dataEndIndex:B,updateId:q},se(se({},O.state),{},{legendBBox:C}))))}}),Pe(O,"handleReceiveSyncEvent",function(C,j,N){if(O.props.syncId===C){if(N===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(j)}}),Pe(O,"handleBrushChange",function(C){var j=C.startIndex,N=C.endIndex;if(j!==O.state.dataStartIndex||N!==O.state.dataEndIndex){var B=O.state.updateId;O.setState(function(){return se({dataStartIndex:j,dataEndIndex:N},b({props:O.props,dataStartIndex:j,dataEndIndex:N,updateId:B},O.state))}),O.triggerSyncEvent({dataStartIndex:j,dataEndIndex:N})}}),Pe(O,"handleMouseEnter",function(C){var j=O.getMouseInfo(C);if(j){var N=se(se({},j),{},{isTooltipActive:!0});O.setState(N),O.triggerSyncEvent(N);var B=O.props.onMouseEnter;Me(B)&&B(N,C)}}),Pe(O,"triggeredAfterMouseMove",function(C){var j=O.getMouseInfo(C),N=j?se(se({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(N),O.triggerSyncEvent(N);var B=O.props.onMouseMove;Me(B)&&B(N,C)}),Pe(O,"handleItemMouseEnter",function(C){O.setState(function(){return{isTooltipActive:!0,activeItem:C,activePayload:C.tooltipPayload,activeCoordinate:C.tooltipPosition||{x:C.cx,y:C.cy}}})}),Pe(O,"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),Pe(O,"handleMouseMove",function(C){C.persist(),O.throttleTriggeredAfterMouseMove(C)}),Pe(O,"handleMouseLeave",function(C){O.throttleTriggeredAfterMouseMove.cancel();var j={isTooltipActive:!1};O.setState(j),O.triggerSyncEvent(j);var N=O.props.onMouseLeave;Me(N)&&N(j,C)}),Pe(O,"handleOuterEvent",function(C){var j=tW(C),N=ur(O.props,"".concat(j));if(j&&Me(N)){var B,q;/.*touch.*/i.test(j)?q=O.getMouseInfo(C.changedTouches[0]):q=O.getMouseInfo(C),N((B=q)!==null&&B!==void 0?B:{},C)}}),Pe(O,"handleClick",function(C){var j=O.getMouseInfo(C);if(j){var N=se(se({},j),{},{isTooltipActive:!0});O.setState(N),O.triggerSyncEvent(N);var B=O.props.onClick;Me(B)&&B(N,C)}}),Pe(O,"handleMouseDown",function(C){var j=O.props.onMouseDown;if(Me(j)){var N=O.getMouseInfo(C);j(N,C)}}),Pe(O,"handleMouseUp",function(C){var j=O.props.onMouseUp;if(Me(j)){var N=O.getMouseInfo(C);j(N,C)}}),Pe(O,"handleTouchMove",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(C.changedTouches[0])}),Pe(O,"handleTouchStart",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&O.handleMouseDown(C.changedTouches[0])}),Pe(O,"handleTouchEnd",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&O.handleMouseUp(C.changedTouches[0])}),Pe(O,"handleDoubleClick",function(C){var j=O.props.onDoubleClick;if(Me(j)){var N=O.getMouseInfo(C);j(N,C)}}),Pe(O,"handleContextMenu",function(C){var j=O.props.onContextMenu;if(Me(j)){var N=O.getMouseInfo(C);j(N,C)}}),Pe(O,"triggerSyncEvent",function(C){O.props.syncId!==void 0&&y1.emit(v1,O.props.syncId,C,O.eventEmitterSymbol)}),Pe(O,"applySyncEvent",function(C){var j=O.props,N=j.layout,B=j.syncMethod,q=O.state.updateId,I=C.dataStartIndex,L=C.dataEndIndex;if(C.dataStartIndex!==void 0||C.dataEndIndex!==void 0)O.setState(se({dataStartIndex:I,dataEndIndex:L},b({props:O.props,dataStartIndex:I,dataEndIndex:L,updateId:q},O.state)));else if(C.activeTooltipIndex!==void 0){var W=C.chartX,K=C.chartY,U=C.activeTooltipIndex,R=O.state,F=R.offset,H=R.tooltipTicks;if(!F)return;if(typeof B=="function")U=B(H,C);else if(B==="value"){U=-1;for(var J=0;J<H.length;J++)if(H[J].value===C.activeLabel){U=J;break}}var ae=se(se({},F),{},{x:F.left,y:F.top}),$=Math.min(W,ae.x+ae.width),V=Math.min(K,ae.y+ae.height),Y=H[U]&&H[U].value,Z=vw(O.state,O.props.data,U),ce=H[U]?{x:N==="horizontal"?H[U].coordinate:$,y:N==="horizontal"?V:H[U].coordinate}:r4;O.setState(se(se({},C),{},{activeLabel:Y,activeCoordinate:ce,activePayload:Z,activeTooltipIndex:U}))}else O.setState(C)}),Pe(O,"renderCursor",function(C){var j,N=O.state,B=N.isTooltipActive,q=N.activeCoordinate,I=N.activePayload,L=N.offset,W=N.activeTooltipIndex,K=N.tooltipAxisBandSize,U=O.getTooltipEventType(),R=(j=C.props.active)!==null&&j!==void 0?j:B,F=O.props.layout,H=C.key||"_recharts-cursor";return z.createElement(pse,{key:H,activeCoordinate:q,activePayload:I,activeTooltipIndex:W,chartName:n,element:C,isActive:R,layout:F,offset:L,tooltipAxisBandSize:K,tooltipEventType:U})}),Pe(O,"renderPolarAxis",function(C,j,N){var B=ur(C,"type.axisType"),q=ur(O.state,"".concat(B,"Map")),I=C.type.defaultProps,L=I!==void 0?se(se({},I),C.props):C.props,W=q&&q[L["".concat(B,"Id")]];return D.cloneElement(C,se(se({},W),{},{className:Ne(B,W.className),key:C.key||"".concat(j,"-").concat(N),ticks:Ya(W,!0)}))}),Pe(O,"renderPolarGrid",function(C){var j=C.props,N=j.radialLines,B=j.polarAngles,q=j.polarRadius,I=O.state,L=I.radiusAxisMap,W=I.angleAxisMap,K=Li(L),U=Li(W),R=U.cx,F=U.cy,H=U.innerRadius,J=U.outerRadius;return D.cloneElement(C,{polarAngles:Array.isArray(B)?B:Ya(U,!0).map(function(ae){return ae.coordinate}),polarRadius:Array.isArray(q)?q:Ya(K,!0).map(function(ae){return ae.coordinate}),cx:R,cy:F,innerRadius:H,outerRadius:J,key:C.key||"polar-grid",radialLines:N})}),Pe(O,"renderLegend",function(){var C=O.state.formattedGraphicalItems,j=O.props,N=j.children,B=j.width,q=j.height,I=O.props.margin||{},L=B-(I.left||0)-(I.right||0),W=Rz({children:N,formattedGraphicalItems:C,legendWidth:L,legendContent:d});if(!W)return null;var K=W.item,U=tk(W,mse);return D.cloneElement(K,se(se({},U),{},{chartWidth:B,chartHeight:q,margin:I,onBBoxUpdate:O.handleLegendBBoxUpdate}))}),Pe(O,"renderTooltip",function(){var C,j=O.props,N=j.children,B=j.accessibilityLayer,q=ar(N,ir);if(!q)return null;var I=O.state,L=I.isTooltipActive,W=I.activeCoordinate,K=I.activePayload,U=I.activeLabel,R=I.offset,F=(C=q.props.active)!==null&&C!==void 0?C:L;return D.cloneElement(q,{viewBox:se(se({},R),{},{x:R.left,y:R.top}),active:F,label:U,payload:F?K:[],coordinate:W,accessibilityLayer:B})}),Pe(O,"renderBrush",function(C){var j=O.props,N=j.margin,B=j.data,q=O.state,I=q.offset,L=q.dataStartIndex,W=q.dataEndIndex,K=q.updateId;return D.cloneElement(C,{key:C.key||"_recharts-brush",onChange:gh(O.handleBrushChange,C.props.onChange),data:B,x:de(C.props.x)?C.props.x:I.left,y:de(C.props.y)?C.props.y:I.top+I.height+I.brushBottom-(N.bottom||0),width:de(C.props.width)?C.props.width:I.width,startIndex:L,endIndex:W,updateId:"brush-".concat(K)})}),Pe(O,"renderReferenceElement",function(C,j,N){if(!C)return null;var B=O,q=B.clipPathId,I=O.state,L=I.xAxisMap,W=I.yAxisMap,K=I.offset,U=C.type.defaultProps||{},R=C.props,F=R.xAxisId,H=F===void 0?U.xAxisId:F,J=R.yAxisId,ae=J===void 0?U.yAxisId:J;return D.cloneElement(C,{key:C.key||"".concat(j,"-").concat(N),xAxis:L[H],yAxis:W[ae],viewBox:{x:K.left,y:K.top,width:K.width,height:K.height},clipPathId:q})}),Pe(O,"renderActivePoints",function(C){var j=C.item,N=C.activePoint,B=C.basePoint,q=C.childIndex,I=C.isRange,L=[],W=j.props.key,K=j.item.type.defaultProps!==void 0?se(se({},j.item.type.defaultProps),j.item.props):j.item.props,U=K.activeDot,R=K.dataKey,F=se(se({index:q,dataKey:R,cx:N.x,cy:N.y,r:4,fill:LA(j.item),strokeWidth:2,stroke:"#fff",payload:N.payload,value:N.value},_e(U,!1)),qh(U));return L.push(_.renderActiveDot(U,F,"".concat(W,"-activePoint-").concat(q))),B?L.push(_.renderActiveDot(U,se(se({},F),{},{cx:B.x,cy:B.y}),"".concat(W,"-basePoint-").concat(q))):I&&L.push(null),L}),Pe(O,"renderGraphicChild",function(C,j,N){var B=O.filterFormatItem(C,j,N);if(!B)return null;var q=O.getTooltipEventType(),I=O.state,L=I.isTooltipActive,W=I.tooltipAxis,K=I.activeTooltipIndex,U=I.activeLabel,R=O.props.children,F=ar(R,ir),H=B.props,J=H.points,ae=H.isRange,$=H.baseLine,V=B.item.type.defaultProps!==void 0?se(se({},B.item.type.defaultProps),B.item.props):B.item.props,Y=V.activeDot,Z=V.hide,ce=V.activeBar,he=V.activeShape,me=!!(!Z&&L&&F&&(Y||ce||he)),ye={};q!=="axis"&&F&&F.props.trigger==="click"?ye={onClick:gh(O.handleItemMouseEnter,C.props.onClick)}:q!=="axis"&&(ye={onMouseLeave:gh(O.handleItemMouseLeave,C.props.onMouseLeave),onMouseEnter:gh(O.handleItemMouseEnter,C.props.onMouseEnter)});var ue=D.cloneElement(C,se(se({},B.props),ye));function pe(ft){return typeof W.dataKey=="function"?W.dataKey(ft.payload):null}if(me)if(K>=0){var we,oe;if(W.dataKey&&!W.allowDuplicatedCategory){var $e=typeof W.dataKey=="function"?pe:"payload.".concat(W.dataKey.toString());we=Lh(J,$e,U),oe=ae&&$&&Lh($,$e,U)}else we=J?.[K],oe=ae&&$&&$[K];if(he||ce){var Ee=C.props.activeIndex!==void 0?C.props.activeIndex:K;return[D.cloneElement(C,se(se(se({},B.props),ye),{},{activeIndex:Ee})),null,null]}if(!De(we))return[ue].concat(Fl(O.renderActivePoints({item:B,activePoint:we,basePoint:oe,childIndex:K,isRange:ae})))}else{var Qe,Ke=(Qe=O.getItemByXY(O.state.activeCoordinate))!==null&&Qe!==void 0?Qe:{graphicalItem:ue},St=Ke.graphicalItem,hn=St.item,jt=hn===void 0?C:hn,Kt=St.childIndex,on=se(se(se({},B.props),ye),{},{activeIndex:Kt});return[D.cloneElement(jt,on),null,null]}return ae?[ue,null,null]:[ue,null]}),Pe(O,"renderCustomized",function(C,j,N){return D.cloneElement(C,se(se({key:"recharts-customized-".concat(N)},O.props),O.state))}),Pe(O,"renderMap",{CartesianGrid:{handler:Sh,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:Sh},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:Sh},YAxis:{handler:Sh},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((E=T.id)!==null&&E!==void 0?E:rs("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=N8(O.triggeredAfterMouseMove,(P=T.throttleDelay)!==null&&P!==void 0?P:1e3/60),O.state={},O}return Ese(_,A),Ase(_,[{key:"componentDidMount",value:function(){var E,P;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var E=this.props,P=E.children,O=E.data,C=E.height,j=E.layout,N=ar(P,ir);if(N){var B=N.props.defaultIndex;if(!(typeof B!="number"||B<0||B>this.state.tooltipTicks.length-1)){var q=this.state.tooltipTicks[B]&&this.state.tooltipTicks[B].value,I=vw(this.state,O,B,q),L=this.state.tooltipTicks[B].coordinate,W=(this.state.offset.top+C)/2,K=j==="horizontal",U=K?{x:L,y:W}:{y:L,x:W},R=this.state.formattedGraphicalItems.find(function(H){var J=H.item;return J.type.name==="Scatter"});R&&(U=se(se({},U),R.props.points[B].tooltipPosition),I=R.props.points[B].tooltipPayload);var F={activeTooltipIndex:B,isTooltipActive:!0,activeLabel:q,activePayload:I,activeCoordinate:U};this.setState(F),this.renderCursor(N),this.accessibilityManager.setIndex(B)}}}},{key:"getSnapshotBeforeUpdate",value:function(E,P){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==P.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==E.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==E.margin){var O,C;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0}})}return null}},{key:"componentDidUpdate",value:function(E){J1([ar(E.children,ir)],[ar(this.props.children,ir)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var E=ar(this.props.children,ir);if(E&&typeof E.props.shared=="boolean"){var P=E.props.shared?"axis":"item";return c.indexOf(P)>=0?P:o}return o}},{key:"getMouseInfo",value:function(E){if(!this.container)return null;var P=this.container,O=P.getBoundingClientRect(),C=FK(O),j={chartX:Math.round(E.pageX-C.left),chartY:Math.round(E.pageY-C.top)},N=O.width/P.offsetWidth||1,B=this.inRange(j.chartX,j.chartY,N);if(!B)return null;var q=this.state,I=q.xAxisMap,L=q.yAxisMap,W=this.getTooltipEventType(),K=rk(this.state,this.props.data,this.props.layout,B);if(W!=="axis"&&I&&L){var U=Li(I).scale,R=Li(L).scale,F=U&&U.invert?U.invert(j.chartX):null,H=R&&R.invert?R.invert(j.chartY):null;return se(se({},j),{},{xValue:F,yValue:H},K)}return K?se(se({},j),K):null}},{key:"inRange",value:function(E,P){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,C=this.props.layout,j=E/O,N=P/O;if(C==="horizontal"||C==="vertical"){var B=this.state.offset,q=j>=B.left&&j<=B.left+B.width&&N>=B.top&&N<=B.top+B.height;return q?{x:j,y:N}:null}var I=this.state,L=I.angleAxisMap,W=I.radiusAxisMap;if(L&&W){var K=Li(L);return rN({x:j,y:N},K)}return null}},{key:"parseEventsOfWrapper",value:function(){var E=this.props.children,P=this.getTooltipEventType(),O=ar(E,ir),C={};O&&P==="axis"&&(O.props.trigger==="click"?C={onClick:this.handleClick}:C={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var j=qh(this.props,this.handleOuterEvent);return se(se({},j),C)}},{key:"addListener",value:function(){y1.on(v1,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){y1.removeListener(v1,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(E,P,O){for(var C=this.state.formattedGraphicalItems,j=0,N=C.length;j<N;j++){var B=C[j];if(B.item===E||B.props.key===E.key||P===Qa(B.item.type)&&O===B.childIndex)return B}return null}},{key:"renderClipPath",value:function(){var E=this.clipPathId,P=this.state.offset,O=P.left,C=P.top,j=P.height,N=P.width;return z.createElement("defs",null,z.createElement("clipPath",{id:E},z.createElement("rect",{x:O,y:C,height:j,width:N})))}},{key:"getXScales",value:function(){var E=this.state.xAxisMap;return E?Object.entries(E).reduce(function(P,O){var C=ek(O,2),j=C[0],N=C[1];return se(se({},P),{},Pe({},j,N.scale))},{}):null}},{key:"getYScales",value:function(){var E=this.state.yAxisMap;return E?Object.entries(E).reduce(function(P,O){var C=ek(O,2),j=C[0],N=C[1];return se(se({},P),{},Pe({},j,N.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(E){var P;return(P=this.state.xAxisMap)===null||P===void 0||(P=P[E])===null||P===void 0?void 0:P.scale}},{key:"getYScaleByAxisId",value:function(E){var P;return(P=this.state.yAxisMap)===null||P===void 0||(P=P[E])===null||P===void 0?void 0:P.scale}},{key:"getItemByXY",value:function(E){var P=this.state,O=P.formattedGraphicalItems,C=P.activeItem;if(O&&O.length)for(var j=0,N=O.length;j<N;j++){var B=O[j],q=B.props,I=B.item,L=I.type.defaultProps!==void 0?se(se({},I.type.defaultProps),I.props):I.props,W=Qa(I.type);if(W==="Bar"){var K=(q.data||[]).find(function(H){return one(E,H)});if(K)return{graphicalItem:B,payload:K}}else if(W==="RadialBar"){var U=(q.data||[]).find(function(H){return rN(E,H)});if(U)return{graphicalItem:B,payload:U}}else if(km(B,C)||zm(B,C)||uf(B,C)){var R=Tre({graphicalItem:B,activeTooltipItem:C,itemData:L.data}),F=L.activeIndex===void 0?R:L.activeIndex;return{graphicalItem:se(se({},B),{},{childIndex:F}),payload:uf(B,C)?L.data[R]:B.props.data[R]}}}return null}},{key:"render",value:function(){var E=this;if(!mT(this))return null;var P=this.props,O=P.children,C=P.className,j=P.width,N=P.height,B=P.style,q=P.compact,I=P.title,L=P.desc,W=tk(P,gse),K=_e(W,!1);if(q)return z.createElement(NR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},z.createElement(tS,ol({},K,{width:j,height:N,title:I,desc:L}),this.renderClipPath(),yT(O,this.renderMap)));if(this.props.accessibilityLayer){var U,R;K.tabIndex=(U=this.props.tabIndex)!==null&&U!==void 0?U:0,K.role=(R=this.props.role)!==null&&R!==void 0?R:"application",K.onKeyDown=function(H){E.accessibilityManager.keyboardEvent(H)},K.onFocus=function(){E.accessibilityManager.focus()}}var F=this.parseEventsOfWrapper();return z.createElement(NR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},z.createElement("div",ol({className:Ne("recharts-wrapper",C),style:se({position:"relative",cursor:"default",width:j,height:N},B)},F,{ref:function(J){E.container=J}}),z.createElement(tS,ol({},K,{width:j,height:N,title:I,desc:L,style:Nse}),this.renderClipPath(),yT(O,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(D.Component);Pe(w,"displayName",n),Pe(w,"defaultProps",se({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),Pe(w,"getDerivedStateFromProps",function(A,_){var T=A.dataKey,E=A.data,P=A.children,O=A.width,C=A.height,j=A.layout,N=A.stackOffset,B=A.margin,q=_.dataStartIndex,I=_.dataEndIndex;if(_.updateId===void 0){var L=ak(A);return se(se(se({},L),{},{updateId:0},b(se(se({props:A},L),{},{updateId:0}),_)),{},{prevDataKey:T,prevData:E,prevWidth:O,prevHeight:C,prevLayout:j,prevStackOffset:N,prevMargin:B,prevChildren:P})}if(T!==_.prevDataKey||E!==_.prevData||O!==_.prevWidth||C!==_.prevHeight||j!==_.prevLayout||N!==_.prevStackOffset||!ll(B,_.prevMargin)){var W=ak(A),K={chartX:_.chartX,chartY:_.chartY,isTooltipActive:_.isTooltipActive},U=se(se({},rk(_,E,j)),{},{updateId:_.updateId+1}),R=se(se(se({},W),K),U);return se(se(se({},R),b(se({props:A},R),_)),{},{prevDataKey:T,prevData:E,prevWidth:O,prevHeight:C,prevLayout:j,prevStackOffset:N,prevMargin:B,prevChildren:P})}if(!J1(P,_.prevChildren)){var F,H,J,ae,$=ar(P,Ml),V=$&&(F=(H=$.props)===null||H===void 0?void 0:H.startIndex)!==null&&F!==void 0?F:q,Y=$&&(J=(ae=$.props)===null||ae===void 0?void 0:ae.endIndex)!==null&&J!==void 0?J:I,Z=V!==q||Y!==I,ce=!De(E),he=ce&&!Z?_.updateId:_.updateId+1;return se(se({updateId:he},b(se(se({props:A},_),{},{updateId:he,dataStartIndex:V,dataEndIndex:Y}),_)),{},{prevChildren:P,dataStartIndex:V,dataEndIndex:Y})}return null}),Pe(w,"renderActiveDot",function(A,_,T){var E;return D.isValidElement(A)?E=D.cloneElement(A,_):Me(A)?E=A(_):E=z.createElement(kf,_),z.createElement(Ue,{className:"recharts-active-dot",key:T},E)});var S=D.forwardRef(function(_,T){return z.createElement(w,ol({},_,{ref:T}))});return S.displayName=w.displayName,S},i4=XA({chartName:"LineChart",GraphicalChild:rc,axisComponents:[{axisType:"xAxis",AxisComp:ss},{axisType:"yAxis",AxisComp:ls}],formatAxisMap:b6}
349),Use=XA({chartName:"PieChart",GraphicalChild:si,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Rm},{axisType:"radiusAxis",AxisComp:Dm}],formatAxisMap:xJ,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Hse=XA({chartName:"AreaChart",GraphicalChild:ao,axisComponents:[{axisType:"xAxis",AxisComp:ss},{axisType:"yAxis",AxisComp:ls}],formatAxisMap:b6});function Js({label:e,value:t,icon:n,colorClass:r,sub:a}){return y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:47",className:`stat-card ${r}`,children:[y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:48",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",marginBottom:"0.75rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:49",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,fontSize:"0.75rem",textTransform:"uppercase",letterSpacing:"0.06em",opacity:.85},children:e}),y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:52",style:{opacity:.7},children:y.jsx(n,{"data-loc":"client/src/pages/Dashboard.tsx:53",size:20})})]}),y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:56",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"2rem",lineHeight:1,marginBottom:"0.25rem"},children:t}),a&&y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:60",style:{fontSize:"0.72rem",opacity:.8,fontWeight:600},children:a})]})}function Wse({item:e}){const t={owned:{bg:"#d1fae5",text:"#065f46"},wanted:{bg:"#dbeafe",text:"#1e40af"},for_sale:{bg:"#fef3c7",text:"#92400e"}},n=e.userSet?.status??"owned",r=t[n]??t.owned;return y.jsx(kt,{"data-loc":"client/src/pages/Dashboard.tsx:75",href:`/sets/${e.userSet?.setNum}`,children:y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:76",style:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.75rem 0",borderBottom:"1px solid #F0F2F5",cursor:"pointer"},onMouseEnter:a=>a.currentTarget.style.background="#F8F9FF",onMouseLeave:a=>a.currentTarget.style.background="transparent",children:[e.set?.imgUrl?y.jsx("img",{"data-loc":"client/src/pages/Dashboard.tsx:81",src:e.set.imgUrl,alt:e.set?.name,style:{width:44,height:44,objectFit:"contain",borderRadius:"0.5rem",background:"#F0F2F5",flexShrink:0}}):y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:83",style:{width:44,height:44,borderRadius:"0.5rem",background:"#F0F2F5",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:y.jsx(wn,{"data-loc":"client/src/pages/Dashboard.tsx:84",size:18,color:"#9CA3AF"})}),y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:87",style:{flex:1,minWidth:0},children:[y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:88",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.875rem",color:"#1A1A2E",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.set?.name??e.userSet?.setNum}),y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:91",style:{fontSize:"0.72rem",color:"#6B7280",fontWeight:600},children:[e.userSet?.setNum," · ",e.set?.year??"—"]})]}),y.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:95",className:"lego-badge",style:{background:r.bg,color:r.text,flexShrink:0},children:n.replace("_"," ")})]})})}const wh=["#E3000B","#006CB7","#00A650","#F5A800","#F47920","#7C3AED","#0891B2","#BE185D","#16A34A","#B45309"];function Vse({data:e}){const t=e.reduce((c,f)=>c+f.count,0),n=[...e].sort((c,f)=>f.count-c.count),r=n.slice(0,9),a=n.slice(9).reduce((c,f)=>c+f.count,0),o=a>0?[...r,{themeName:"Other",count:a}]:r,l=({cx:c,cy:f,midAngle:d,innerRadius:m,outerRadius:p,percent:g})=>{if(g<.04)return null;const b=Math.PI/180,w=m+(p-m)*.55,S=c+w*Math.cos(-d*b),A=f+w*Math.sin(-d*b);return y.jsx("text",{"data-loc":"client/src/pages/Dashboard.tsx:124",x:S,y:A,fill:"white",textAnchor:"middle",dominantBaseline:"central",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:11},children:`${(g*100).toFixed(0)}%`})};return y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:132",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1.5rem",alignItems:"center"},children:[y.jsx(bm,{"data-loc":"client/src/pages/Dashboard.tsx:133",width:"100%",height:260,children:y.jsxs(Use,{"data-loc":"client/src/pages/Dashboard.tsx:134",children:[y.jsx(si,{"data-loc":"client/src/pages/Dashboard.tsx:135",data:o,cx:"50%",cy:"50%",innerRadius:65,outerRadius:110,dataKey:"count",labelLine:!1,label:l,paddingAngle:2,children:o.map((c,f)=>y.jsx(xm,{"data-loc":"client/src/pages/Dashboard.tsx:145",fill:wh[f%wh.length],stroke:"white",strokeWidth:2},f))}),y.jsx(ir,{"data-loc":"client/src/pages/Dashboard.tsx:148",formatter:(c,f)=>[`${c} set${c!==1?"s":""}`,f],contentStyle:{fontFamily:"Nunito, sans-serif",fontWeight:700,borderRadius:"0.75rem",border:"2px s
349olid #E8EAED",boxShadow:"0 4px 12px rgba(0,0,0,0.1)"}})]})}),y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:155",style:{display:"flex",flexDirection:"column",gap:"0.4rem",maxHeight:260,overflowY:"auto"},children:o.map((c,f)=>y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:157",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:158",style:{width:12,height:12,borderRadius:"3px",background:wh[f%wh.length],flexShrink:0}}),y.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:159",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,fontSize:"0.8rem",color:"#1A1A2E",flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:c.themeName}),y.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:162",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.8rem",color:"#6B7280",flexShrink:0},children:[c.count," ",y.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:163",style:{fontSize:"0.7rem",opacity:.7},children:["(",(c.count/t*100).toFixed(0),"%)"]})]})]},c.themeName))})]})}const Gse=({active:e,payload:t,label:n})=>e&&t&&t.length?y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:175",style:{background:"white",border:"2px solid #E8EAED",borderRadius:"0.75rem",padding:"0.75rem 1rem",boxShadow:"0 4px 12px rgba(0,0,0,0.1)"},children:[y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:176",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.75rem",color:"#6B7280",marginBottom:"0.25rem"},children:n}),y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:177",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1.1rem",color:"#006CB7"},children:["$",Number(t[0].value).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})]})]}):null;function Kse(){const{isAuthenticated:e,loading:t}=kr(),{data:n}=je.collection.getDashboard.useQuery(void 0,{enabled:e}),{data:r}=je.collection.getRecentlyAdded.useQuery(void 0,{enabled:e}),{data:a}=je.collection.getPortfolioValue.useQuery(void 0,{enabled:e}),{data:o}=je.collection.getProfitLoss.useQuery(void 0,{enabled:e}),{data:l}=je.collection.getPortfolioTimeline.useQuery(void 0,{enabled:e}),{data:c}=je.collection.getThemeBreakdown.useQuery(void 0,{enabled:e});if(t)return y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:197",style:{padding:"2rem"},children:y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:198",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(180px, 1fr))",gap:"1rem"},children:[...Array(6)].map((p,g)=>y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:200",style:{height:110,borderRadius:"1.25rem",background:"#E8EAED"}},g))})});if(!e)return y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:209",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:"2rem",textAlign:"center",background:"#F0F2F5"},children:[y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:210",style:{width:88,height:88,borderRadius:"50%",background:"linear-gradient(135deg, #E3000B, #c0000a)",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"1.5rem",boxShadow:"0 8px 24px rgba(227,0,11,0.3)"},children:y.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:211",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1.5rem",color:"white"},children:"BV"})}),y.jsx("h1",{"data-loc":"client/src/pages/Dashboard.tsx:213",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"2.5rem",color:"#1A1A2E",margin:"0 0 0.5rem"},children:"Brick Vault"}),y.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:214",style:{color:"#6B7280",marginBottom:"2rem",maxWidth:400,fontWeight:600,lineHeight:1.6},children:"Your personal LEGO collection manager. Track sets, minifigures, parts, and portfolio value."}),y.jsxs("a",{"data-loc":"client/src/pages/Dashboard.tsx:217",href:om(),className:"lego-btn lego-btn-red",style:{fontSize:"1rem",padding:"0.75rem 2rem"},children:[y.jsx(S3,{"data-loc":"client/src/pages/Dashboard.tsx:218",size:18}),"Sign In to Get Started"]})]});const f=a?.total??0,d=o?.profitLoss??0,m=d>=0;return y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:230",style:{padding:"2rem",maxWidth:1400,margin:"0 auto"},className:"fade-in",children:[y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:232",style:{marginBottom:"1.75rem"},children:[y.jsx("h1",{"data-loc":"client/src/pages/Dashboard.tsx:233",className:"page-title",children:"Dashboard"}),y.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:234",style:{color:"#6B7280",fontWeight:600,marginTop:"0.25rem",fontSize:"0.9rem"},children:"Welcome back! Here's your collection at a glance."})]}),y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:240",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(175p
349x, 1fr))",gap:"1rem",marginBottom:"1.75rem"},children:[y.jsx(Js,{"data-loc":"client/src/pages/Dashboard.tsx:241",label:"Total Sets",value:n?.totalSets??0,icon:tl,colorClass:"stat-card-red",sub:`${n?.forSaleSets??0} for sale`}),y.jsx(Js,{"data-loc":"client/src/pages/Dashboard.tsx:242",label:"Minifigures",value:n?.totalMinifigs??0,icon:Qr,colorClass:"stat-card-blue",sub:"in collection"}),y.jsx(Js,{"data-loc":"client/src/pages/Dashboard.tsx:243",label:"Total Parts",value:(n?.totalParts??0).toLocaleString(),icon:Ru,colorClass:"stat-card-green",sub:"across all sets"}),y.jsx(Js,{"data-loc":"client/src/pages/Dashboard.tsx:244",label:"Wanted Sets",value:n?.wantedSets??0,icon:AU,colorClass:"stat-card-yellow",sub:"on wishlist"}),y.jsx(Js,{"data-loc":"client/src/pages/Dashboard.tsx:245",label:"Portfolio Value",value:`$${f.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0})}`,icon:Fw,colorClass:"stat-card-orange",sub:`${a?.setsWithValue??0} sets valued`}),y.jsx(Js,{"data-loc":"client/src/pages/Dashboard.tsx:252",label:"Profit / Loss",value:`${m?"+":""}$${Math.abs(d).toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0})}`,icon:m?Th:_U,colorClass:m?"stat-card-green":"stat-card-red",sub:`${o?.setsTracked??0} sets tracked`})]}),y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:261",style:{display:"grid",gridTemplateColumns:"1fr 320px",gap:"1.5rem",alignItems:"start"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:263",className:"lego-card lego-card-blue",style:{padding:"1.5rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:264",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.25rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:265",children:[y.jsx("h2",{"data-loc":"client/src/pages/Dashboard.tsx:266",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1.1rem",color:"#1A1A2E",margin:0},children:"Portfolio Value Over Time"}),y.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:269",style:{fontSize:"0.78rem",color:"#6B7280",fontWeight:600,margin:"0.2rem 0 0"},children:"Monthly aggregated market value"})]}),y.jsx(Th,{"data-loc":"client/src/pages/Dashboard.tsx:273",size:20,color:"#006CB7"})]}),l&&l.length>1?y.jsx(bm,{"data-loc":"client/src/pages/Dashboard.tsx:276",width:"100%",height:220,children:y.jsxs(Hse,{"data-loc":"client/src/pages/Dashboard.tsx:277",data:l,margin:{top:5,right:5,left:0,bottom:5},children:[y.jsx("defs",{"data-loc":"client/src/pages/Dashboard.tsx:278",children:y.jsxs("linearGradient",{"data-loc":"client/src/pages/Dashboard.tsx:279",id:"portfolioGrad",x1:"0",y1:"0",x2:"0",y2:"1",children:[y.jsx("stop",{"data-loc":"client/src/pages/Dashboard.tsx:280",offset:"5%",stopColor:"#006CB7",stopOpacity:.2}),y.jsx("stop",{"data-loc":"client/src/pages/Dashboard.tsx:281",offset:"95%",stopColor:"#006CB7",stopOpacity:0})]})}),y.jsx($6,{"data-loc":"client/src/pages/Dashboard.tsx:284",strokeDasharray:"3 3",stroke:"#F0F2F5"}),y.jsx(ss,{"data-loc":"client/src/pages/Dashboard.tsx:285",dataKey:"month",tick:{fontFamily:"Nunito, sans-serif",fontSize:11,fontWeight:700,fill:"#9CA3AF"},axisLine:!1,tickLine:!1}),y.jsx(ls,{"data-loc":"client/src/pages/Dashboard.tsx:286",tick:{fontFamily:"Nunito, sans-serif",fontSize:11,fontWeight:700,fill:"#9CA3AF"},axisLine:!1,tickLine:!1,tickFormatter:p=>`$${p>=1e3?`${(p/1e3).toFixed(1)}k`:p}`}),y.jsx(ir,{"data-loc":"client/src/pages/Dashboard.tsx:287",content:y.jsx(Gse,{"data-loc":"client/src/pages/Dashboard.tsx:287"})}),y.jsx(ao,{"data-loc":"client/src/pages/Dashboard.tsx:288",type:"monotone",dataKey:"total",stroke:"#006CB7",strokeWidth:3,fill:"url(#portfolioGrad)",dot:{fill:"#006CB7",r:4,strokeWidth:2,stroke:"white"},activeDot:{r:6,fill:"#006CB7",stroke:"white",strokeWidth:2}})]})}):y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:292",className:"lego-empty",style:{padding:"3rem 1rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:293",className:"lego-empty-icon",children:y.jsx(Th,{"data-loc":"client/src/pages/Dashboard.tsx:293",size:32,color:"#9
349CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:294",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280",margin:0},children:"No price history yet"}),y.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:295",style:{fontSize:"0.78rem",color:"#9CA3AF",marginTop:"0.25rem"},children:"Set market values in My Collection to start tracking"})]})]}),y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:301",className:"lego-card lego-card-red",style:{padding:"1.5rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:302",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1rem"},children:[y.jsx("h2",{"data-loc":"client/src/pages/Dashboard.tsx:303",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1.1rem",color:"#1A1A2E",margin:0},children:"Recently Added"}),y.jsx(b3,{"data-loc":"client/src/pages/Dashboard.tsx:304",size:18,color:"#E3000B"})]}),r&&r.length>0?y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:307",children:[r.map(p=>y.jsx(Wse,{"data-loc":"client/src/pages/Dashboard.tsx:308",item:p},p.userSet?.id)),y.jsx(kt,{"data-loc":"client/src/pages/Dashboard.tsx:309",href:"/collection",children:y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:310",className:"lego-btn lego-btn-outline",style:{marginTop:"1rem",width:"100%",justifyContent:"center"},children:"View All"})})]}):y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:314",className:"lego-empty",style:{padding:"2rem 1rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:315",className:"lego-empty-icon",children:y.jsx(wn,{"data-loc":"client/src/pages/Dashboard.tsx:315",size:28,color:"#9CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:316",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280",margin:0,fontSize:"0.875rem"},children:"No sets yet"}),y.jsx(kt,{"data-loc":"client/src/pages/Dashboard.tsx:317",href:"/search",children:y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:318",className:"lego-btn lego-btn-red",style:{marginTop:"0.75rem",fontSize:"0.8rem"},children:"Add Your First Set"})})]})]})]}),y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:326",style:{marginTop:"1.5rem"},children:y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:327",className:"lego-card lego-card-green",style:{padding:"1.5rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:328",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.25rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:329",children:[y.jsx("h2",{"data-loc":"client/src/pages/Dashboard.tsx:330",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1.1rem",color:"#1A1A2E",margin:0},children:"Collection by Theme"}),y.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:333",style:{fontSize:"0.78rem",color:"#6B7280",fontWeight:600,margin:"0.2rem 0 0"},children:c?`${c.total} owned sets across ${c.themes.length} theme${c.themes.length!==1?"s":""}`:"Owned sets grouped by LEGO theme"})]}),y.jsx(tl,{"data-loc":"client/src/pages/Dashboard.tsx:337",size:20,color:"#00A650"})]}),c&&c.themes.length>0?y.jsx(Vse,{"data-loc":"client/src/pages/Dashboard.tsx:340",data:c.themes}):y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:342",className:"lego-empty",style:{padding:"3rem 1rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:343",className:"lego-empty-icon",children:y.jsx(tl,{"data-loc":"client/src/pages/Dashboard.tsx:343",size:32,color:"#9CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:344",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280",margin:0},children:"No owned sets yet"}),y.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:345",style:{fontSize:"0.78rem",color:"#9CA3AF",marginTop:"0.25rem"},children:"Add sets to your collection to see your theme breakdown"}),y.jsx(kt,{"data-loc":"client/src/pages/Dashboard.tsx:346",href:"/search",children:y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:347",className:"lego-btn lego-btn-green",style:{marginTop:"0.75rem",fontSize:"0.8rem"},children:"Browse Sets"})})]})]})}),y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:355",style:{marginTop:"1.5rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:356",className:"section-label",style:{marginBottom:"0.75rem"}
349,children:"Quick Actions"}),y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:357",style:{display:"flex",gap:"0.75rem",flexWrap:"wrap"},children:[y.jsx(kt,{"data-loc":"client/src/pages/Dashboard.tsx:358",href:"/search",children:y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:358",className:"lego-btn lego-btn-red",children:[y.jsx(tl,{"data-loc":"client/src/pages/Dashboard.tsx:358",size:16}),"Add a Set"]})}),y.jsx(kt,{"data-loc":"client/src/pages/Dashboard.tsx:359",href:"/alerts",children:y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:359",className:"lego-btn lego-btn-blue",children:[y.jsx(Kl,{"data-loc":"client/src/pages/Dashboard.tsx:359",size:16}),"Missing Parts"]})}),y.jsx(kt,{"data-loc":"client/src/pages/Dashboard.tsx:360",href:"/suggestions",children:y.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:360",className:"lego-btn lego-btn-green",children:[y.jsx(mu,{"data-loc":"client/src/pages/Dashboard.tsx:360",size:16}),"Build Suggestions"]})}),y.jsx(kt,{"data-loc":"client/src/pages/Dashboard.tsx:361",href:"/import",children:y.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:361",className:"lego-btn lego-btn-outline",children:"Import Collection"})})]})]})]})}function Yse({set:e}){return y.jsx(kt,{"data-loc":"client/src/pages/Sets.tsx:8",href:`/sets/${e.setNum}`,children:y.jsxs("div",{"data-loc":"client/src/pages/Sets.tsx:9",className:"lego-card",style:{cursor:"pointer",padding:0},children:[y.jsx("div",{"data-loc":"client/src/pages/Sets.tsx:10",style:{aspectRatio:"1",background:"#F0F2F5",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"1.25rem 1.25rem 0 0"},children:e.imgUrl?y.jsx("img",{"data-loc":"client/src/pages/Sets.tsx:12",src:e.imgUrl,alt:e.name,style:{width:"100%",height:"100%",objectFit:"contain",transition:"transform 0.2s ease"},onMouseEnter:t=>t.currentTarget.style.transform="scale(1.05)",onMouseLeave:t=>t.currentTarget.style.transform="scale(1)"}):y.jsx(wn,{"data-loc":"client/src/pages/Sets.tsx:17",size:36,color:"#9CA3AF"})}),y.jsxs("div",{"data-loc":"client/src/pages/Sets.tsx:20",style:{padding:"0.875rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/Sets.tsx:21",style:{fontSize:"0.7rem",fontWeight:700,color:"#9CA3AF",fontFamily:"Nunito, sans-serif",marginBottom:"0.2rem"},children:e.setNum}),y.jsx("div",{"data-loc":"client/src/pages/Sets.tsx:22",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.875rem",color:"#1A1A2E",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name}),y.jsxs("div",{"data-loc":"client/src/pages/Sets.tsx:23",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginTop:"0.5rem"},children:[y.jsx("span",{"data-loc":"client/src/pages/Sets.tsx:24",style:{fontSize:"0.75rem",color:"#6B7280",fontWeight:600},children:e.year??"—"}),y.jsxs("span",{"data-loc":"client/src/pages/Sets.tsx:25",style:{fontSize:"0.75rem",fontWeight:800,color:"#006CB7",fontFamily:"Nunito, sans-serif"},children:[e.numParts?.toLocaleString()??"?"," pcs"]})]})]})]})})}function Qse(){const[e,t]=D.useState(""),[n,r]=D.useState(),[a,o]=D.useState(),[l,c]=D.useState(),[f,d]=D.useState(),[m,p]=D.useState(),[g,b]=D.useState(1),[w,S]=D.useState(!1),{data:A}=je.sets.getThemes.useQuery(),{data:_,isLoading:T}=je.sets.search.useQuery({query:e||void 0,themeId:n,yearMin:a,yearMax:l,partsMin:f,partsMax:m,page:g,pageSize:24},{placeholderData:P=>P}),E=_?Math.ceil(_.total/24):1;return y.jsxs("div",{"data-loc":"client/src/pages/Sets.tsx:54",style:{padding:"2rem",maxWidth:1400,margin:"0 auto"},className:"fade-in",children:[y.jsxs("div",{"data-loc":"client/src/pages/Sets.tsx:56",style:{display:"flex",alignItems:"flex-end",justifyContent:"space-between",marginBottom:"1.5rem",flexWrap:"wrap",gap:"1rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Sets.tsx:57",children:[y.jsx("h1",{"data-loc":"client/src/pages/Sets.tsx:58",className:"page-title",children:"Sets Catalogue"}),_&&y.jsxs("p",{"data-loc":"client/src/pages/Sets.tsx:59",style:{color:"#6B7280",fontWeight:600,fontSize:"0.875rem",marginTop:"0.25rem"}
349,children:[_.total.toLocaleString()," sets in database"]})]}),y.jsxs("div",{"data-loc":"client/src/pages/Sets.tsx:61",style:{display:"flex",gap:"0.75rem",alignItems:"center"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Sets.tsx:62",className:"lego-search",style:{width:280},children:[y.jsx(tl,{"data-loc":"client/src/pages/Sets.tsx:63",size:16,color:"#9CA3AF"}),y.jsx("input",{"data-loc":"client/src/pages/Sets.tsx:64",placeholder:"Search sets…",value:e,onChange:P=>{t(P.target.value),b(1)}}),e&&y.jsx("button",{"data-loc":"client/src/pages/Sets.tsx:69",onClick:()=>{t(""),b(1)},style:{color:"#9CA3AF",background:"none",border:"none",cursor:"pointer"},children:y.jsx(Ww,{"data-loc":"client/src/pages/Sets.tsx:69",size:14})})]}),y.jsxs("button",{"data-loc":"client/src/pages/Sets.tsx:71",className:`lego-btn ${w?"lego-btn-blue":"lego-btn-outline"}`,onClick:()=>S(P=>!P),children:[y.jsx(x3,{"data-loc":"client/src/pages/Sets.tsx:75",size:15}),"Filters"]})]})]}),w&&y.jsxs("div",{"data-loc":"client/src/pages/Sets.tsx:83",className:"lego-card",style:{padding:"1.25rem",marginBottom:"1.5rem",display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(180px, 1fr))",gap:"1rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Sets.tsx:84",children:[y.jsx("label",{"data-loc":"client/src/pages/Sets.tsx:85",className:"section-label",style:{display:"block",marginBottom:"0.4rem"},children:"Theme"}),y.jsxs("select",{"data-loc":"client/src/pages/Sets.tsx:86",className:"lego-input lego-select",value:n??"",onChange:P=>{r(P.target.value?Number(P.target.value):void 0),b(1)},children:[y.jsx("option",{"data-loc":"client/src/pages/Sets.tsx:91",value:"",children:"All Themes"}),A?.map(P=>y.jsx("option",{"data-loc":"client/src/pages/Sets.tsx:92",value:P.id,children:P.name},P.id))]})]}),y.jsxs("div",{"data-loc":"client/src/pages/Sets.tsx:95",children:[y.jsx("label",{"data-loc":"client/src/pages/Sets.tsx:96",className:"section-label",style:{display:"block",marginBottom:"0.4rem"},children:"Year From"}),y.jsx("input",{"data-loc":"client/src/pages/Sets.tsx:97",type:"number",className:"lego-input",placeholder:"e.g. 2020",value:a??"",onChange:P=>{o(P.target.value?Number(P.target.value):void 0),b(1)}})]}),y.jsxs("div",{"data-loc":"client/src/pages/Sets.tsx:99",children:[y.jsx("label",{"data-loc":"client/src/pages/Sets.tsx:100",className:"section-label",style:{display:"block",marginBottom:"0.4rem"},children:"Year To"}),y.jsx("input",{"data-loc":"client/src/pages/Sets.tsx:101",type:"number",className:"lego-input",placeholder:"e.g. 2024",value:l??"",onChange:P=>{c(P.target.value?Number(P.target.value):void 0),b(1)}})]}),y.jsxs("div",{"data-loc":"client/src/pages/Sets.tsx:103",children:[y.jsx("label",{"data-loc":"client/src/pages/Sets.tsx:104",className:"section-label",style:{display:"block",marginBottom:"0.4rem"},children:"Min Parts"}),y.jsx("input",{"data-loc":"client/src/pages/Sets.tsx:105",type:"number",className:"lego-input",placeholder:"e.g. 100",value:f??"",onChange:P=>{d(P.target.value?Number(P.target.value):void 0),b(1)}})]}),y.jsxs("div",{"data-loc":"client/src/pages/Sets.tsx:107",children:[y.jsx("label",{"data-loc":"client/src/pages/Sets.tsx:108",className:"section-label",style:{display:"block",marginBottom:"0.4rem"},children:"Max Parts"}),y.jsx("input",{"data-loc":"client/src/pages/Sets.tsx:109",type:"number",className:"lego-input",placeholder:"e.g. 5000",value:m??"",onChange:P=>{p(P.target.value?Number(P.target.value):void 0),b(1)}})]}),y.jsx("div",{"data-loc":"client/src/pages/Sets.tsx:111",style:{display:"flex",alignItems:"flex-end"},children:y.jsx("button",{"data-loc":"client/src/pages/Sets.tsx:112",className:"lego-btn lego-btn-outline",onClick:()=>{r(void 0),o(void 0),c(void 0),d(void 0),p(void 0),b(1)},children:"Clear Filters"})})]}),T?y.jsx("div",{"data-loc":"client/src/pages/Sets.tsx:121",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(180px, 1fr))",gap:"1rem"},children:[...Array(12)].map((P,O)=>y.jsx("div",{"data-loc":"client/src/pages/Sets.tsx:123",style:{borderRadius:"1.25rem",background:"#E8EAED",height:260}},O))}):_?.items.length===0?y.jsxs("div",{"data-loc":"client/src/pages/Sets.tsx:127",className:"lego-empty",children:[y.jsx("div",{"data-loc":"client/src/pages/Sets.tsx:128",className:"lego-empty-icon",children:y.jsx(wn,{"data-loc":"client/src/pages/Sets.tsx:128",size:32,color:"#9
349CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/Sets.tsx:129",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280"},children:"No sets found"}),y.jsx("p",{"data-loc":"client/src/pages/Sets.tsx:130",style:{fontSize:"0.8rem",color:"#9CA3AF"},children:"Try adjusting your search or filters"})]}):y.jsx("div",{"data-loc":"client/src/pages/Sets.tsx:133",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(180px, 1fr))",gap:"1rem"},children:_?.items.map(P=>y.jsx(Yse,{"data-loc":"client/src/pages/Sets.tsx:134",set:P},P.setNum))}),E>1&&y.jsxs("div",{"data-loc":"client/src/pages/Sets.tsx:140",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"0.75rem",marginTop:"2rem"},children:[y.jsx("button",{"data-loc":"client/src/pages/Sets.tsx:141",className:"lego-btn lego-btn-outline",onClick:()=>b(P=>Math.max(1,P-1)),disabled:g===1,style:{opacity:g===1?.4:1},children:y.jsx(Gl,{"data-loc":"client/src/pages/Sets.tsx:142",size:16})}),y.jsxs("span",{"data-loc":"client/src/pages/Sets.tsx:144",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,color:"#1A1A2E",fontSize:"0.875rem"},children:["Page ",g," of ",E]}),y.jsx("button",{"data-loc":"client/src/pages/Sets.tsx:147",className:"lego-btn lego-btn-outline",onClick:()=>b(P=>Math.min(E,P+1)),disabled:g===E,style:{opacity:g===E?.4:1},children:y.jsx(jf,{"data-loc":"client/src/pages/Sets.tsx:148",size:16})})]})]})}function Xse({history:e}){if(e.length<2)return y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:12",style:{fontSize:"0.78rem",color:"#9CA3AF",fontStyle:"italic",textAlign:"center",padding:"0.5rem"},children:e.length===0?"No price history yet. Save a market value to start tracking.":"Only one data point recorded. Save another value to see a trend."});const t=e.map(m=>({date:new Date(m.recordedAt).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"2-digit"}),price:parseFloat(m.price),currency:m.currency})),n=t.map(m=>m.price),r=Math.min(...n),a=Math.max(...n),o=t[t.length-1],l=t[0],c=o.price-l.price,f=c>=0?"+":"",d=c>=0?"#00A650":"#E3000B";return y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:36",children:[y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:37",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.5rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:38",style:{fontSize:"0.72rem",color:"#9CA3AF",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em"},children:[e.length," data points"]}),y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:39",style:{fontSize:"0.78rem",fontWeight:800,color:d},children:[f,o.currency," ",c.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})," since first entry"]})]}),y.jsx(bm,{"data-loc":"client/src/pages/SetDetail.tsx:43",width:"100%",height:100,children:y.jsxs(i4,{"data-loc":"client/src/pages/SetDetail.tsx:44",data:t,margin:{top:4,right:4,bottom:0,left:0},children:[y.jsx(ss,{"data-loc":"client/src/pages/SetDetail.tsx:45",dataKey:"date",tick:{fontSize:9,fill:"#9CA3AF",fontFamily:"Nunito, sans-serif",fontWeight:700},tickLine:!1,axisLine:!1}),y.jsx(ls,{"data-loc":"client/src/pages/SetDetail.tsx:46",hide:!0,domain:["auto","auto"]}),y.jsx(ir,{"data-loc":"client/src/pages/SetDetail.tsx:47",contentStyle:{background:"white",border:"2px solid #E8EAED",borderRadius:"0.75rem",fontSize:11,fontFamily:"Nunito, sans-serif",boxShadow:"0 4px 12px rgba(0,0,0,0.1)"},labelStyle:{color:"#6B7280",fontWeight:700,fontSize:10},formatter:(m,p,g)=>[`${g.payload.currency} ${m.toFixed(2)}`,"Price"]}),y.jsx(rc,{"data-loc":"client/src/pages/SetDetail.tsx:52",type:"monotone",dataKey:"price",stroke:"#006CB7",strokeWidth:2,dot:{r:3,fill:"#006CB7",strokeWidth:0},activeDot:{r:5}})]})}),y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:55",style:{display:"flex",justifyContent:"space-between",fontSize:"0.72rem",color:"#9CA3AF",marginTop:"0.25rem",fontWeight:700},children:[y.jsxs("span",{"data-loc":"client/src/pages/SetDetail.tsx:56",children:["Low: ",l.currency," ",r.toFixed(2)]}),y.jsxs("span",{"data-loc":"client/src/pages/SetDetail.tsx:57",children:["High: ",l.currency," ",a.toFixed(2)]})]}),y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:59",style:{fontSize:"0.72rem",color:"#9
349CA3AF",marginTop:"0.2rem",fontWeight:700,textAlign:"right"},children:["Last recorded: ",new Date(e[e.length-1].recordedAt).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})]})]})}function Zse({part:e}){const t=e.colorRgb?`#${e.colorRgb}`:"#E8EAED";return y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:69",style:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.625rem 1rem",borderBottom:"1px solid #F0F2F5"},onMouseEnter:n=>n.currentTarget.style.background="#F8F9FF",onMouseLeave:n=>n.currentTarget.style.background="transparent",children:[y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:72",style:{width:14,height:14,flexShrink:0,borderRadius:"0.25rem",border:"1px solid #E8EAED",background:t},title:e.colorName}),e.partImgUrl?y.jsx("img",{"data-loc":"client/src/pages/SetDetail.tsx:74",src:e.partImgUrl,alt:e.partName,style:{width:32,height:32,objectFit:"contain",flexShrink:0}}):y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:76",style:{width:32,height:32,background:"#F0F2F5",borderRadius:"0.375rem",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"},children:y.jsx(wn,{"data-loc":"client/src/pages/SetDetail.tsx:77",size:12,color:"#9CA3AF"})}),y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:80",style:{flex:1,minWidth:0},children:[y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:81",style:{fontFamily:"monospace",fontSize:"0.7rem",color:"#9CA3AF"},children:e.partNum}),y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:82",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.825rem",color:"#1A1A2E",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.partName}),y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:83",style:{fontSize:"0.72rem",color:"#6B7280",fontWeight:600},children:e.colorName})]}),y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:85",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"0.9rem",color:"#E3000B",flexShrink:0},children:["×",e.quantity]}),e.isSpare&&y.jsx("span",{"data-loc":"client/src/pages/SetDetail.tsx:86",className:"lego-badge",style:{background:"#F0F2F5",color:"#6B7280"},children:"spare"})]})}function Jse(){const t=P3().setNum,{isAuthenticated:n}=kr(),[r,a]=D.useState("owned"),[o,l]=D.useState("new"),[c,f]=D.useState(""),[d,m]=D.useState(1),[p,g]=D.useState("parts"),{data:b,isLoading:w}=je.sets.getByNum.useQuery({setNum:t??""},{enabled:!!t}),{data:S}=je.collection.listSets.useQuery({page:1,pageSize:100},{enabled:n}),A=S?.items?.find(j=>j.userSet.setNum===t),_=A?.userSet?.id,{data:T}=je.collection.getPriceHistory.useQuery({userSetId:_},{enabled:n&&!!_}),E=je.collection.addSet.useMutation({onSuccess:()=>ze.success(`Set ${t} added to collection!`),onError:j=>ze.error(j.message)}),P=b?.set,O=b?.inventory,C={};return O?.parts.forEach(j=>{const N=j.catName??"Uncategorised";C[N]||(C[N]=[]),C[N].push(j)}),w?y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:130",style:{padding:"2rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:131",style:{height:32,borderRadius:"0.75rem",background:"#F0F2F5",width:200,marginBottom:"1.5rem"}}),y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:132",style:{display:"grid",gridTemplateColumns:"1fr 2fr",gap:"2rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:133",style:{aspectRatio:"1",borderRadius:"1.25rem",background:"#F0F2F5"}}),y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:134",style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:[...Array(6)].map((j,N)=>y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:135",style:{height:24,borderRadius:"0.5rem",background:"#F0F2F5"}},N))})]})]}):P?y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:156",style:{padding:"2rem",maxWidth:1200,margin:"0 auto"},className:"fade-in",children:[y.jsx(kt,{"data-loc":"client/src/pages/SetDetail.tsx:158",href:"/sets",children:y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:159",style:{display:"inline-flex",alignItems:"center",gap:"0.375rem",fontSize:"0.8rem",fontWeight:700,color:"#6B7280",cursor:"pointer",marginBottom:"1.5rem"},onMouseEnter:j=>j.currentTarget.style.color="#006CB7",onMouseLeave:j=>j.currentTarget.style.color="#6B7280",children:[y.jsx(Gl,{"data-loc":"client/src/pages/SetDetail.tsx:162",size:14}
349)," Sets Catalogue"]})}),y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:166",style:{display:"grid",gridTemplateColumns:"1fr 2fr",gap:"2rem",marginBottom:"2rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:168",className:"lego-card lego-card-blue",style:{display:"flex",alignItems:"center",justifyContent:"center",aspectRatio:"1",padding:"1.5rem"},children:P.imgUrl?y.jsx("img",{"data-loc":"client/src/pages/SetDetail.tsx:170",src:P.imgUrl,alt:P.name,style:{width:"100%",height:"100%",objectFit:"contain"}}):y.jsx(wn,{"data-loc":"client/src/pages/SetDetail.tsx:172",size:64,color:"#9CA3AF"})}),y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:177",children:[y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:178",style:{fontFamily:"monospace",fontSize:"0.78rem",color:"#9CA3AF",marginBottom:"0.25rem"},children:P.setNum}),y.jsx("h1",{"data-loc":"client/src/pages/SetDetail.tsx:179",className:"page-title",style:{marginBottom:"0.5rem"},children:P.name}),P.themeId!=null&&y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:181",style:{display:"inline-flex",alignItems:"center",gap:"0.375rem",marginBottom:"1.25rem"},children:y.jsxs("span",{"data-loc":"client/src/pages/SetDetail.tsx:182",className:"lego-badge",style:{background:"#DBEAFE",color:"#1E40AF"},children:[y.jsx(OU,{"data-loc":"client/src/pages/SetDetail.tsx:182",size:10})," Theme ",P.themeId]})}),y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:187",style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:"0.75rem",marginBottom:"1.25rem"},children:[{label:"Year",value:P.year??"—",color:"#E3000B",bg:"#FEE2E2"},{label:"Parts",value:P.numParts?.toLocaleString()??"—",color:"#006CB7",bg:"#DBEAFE"},{label:"Minifigs",value:O?.minifigs.length??0,color:"#00A650",bg:"#D1FAE5"},{label:"Value",value:A?.userSet?.marketValue!=null?`${A.userSet.marketValueCurrency??"USD"} ${parseFloat(A.userSet.marketValue).toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0})}`:"—",color:"#F59E0B",bg:"#FEF3C7"}].map(({label:j,value:N,color:B,bg:q})=>y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:201",style:{background:q,borderRadius:"0.875rem",padding:"0.875rem",textAlign:"center"},children:[y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:202",style:{fontSize:"0.7rem",fontWeight:700,color:B,textTransform:"uppercase",letterSpacing:"0.06em",marginBottom:"0.25rem"},children:j}),y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:203",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1.4rem",color:"#1A1A2E"},children:N})]},j))}),n&&A&&y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:210",className:"lego-card",style:{padding:"1rem",marginBottom:"1rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:211",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.75rem"},children:[y.jsx(Th,{"data-loc":"client/src/pages/SetDetail.tsx:212",size:14,color:"#006CB7"}),y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:213",style:{fontSize:"0.75rem",fontWeight:800,color:"#1A1A2E",textTransform:"uppercase",letterSpacing:"0.06em"},children:"Price History"})]}),T?y.jsx(Xse,{"data-loc":"client/src/pages/SetDetail.tsx:216",history:T}):y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:218",style:{fontSize:"0.78rem",color:"#9CA3AF",fontStyle:"italic"},children:"Loading history…"})]}),n&&y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:225",className:"lego-card lego-card-green",style:{padding:"1.25rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:226",style:{fontSize:"0.75rem",fontWeight:800,color:"#1A1A2E",textTransform:"uppercase",letterSpacing:"0.06em",marginBottom:"1rem"},children:A?"In Your Collection":"Add to Collection"}),A?y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:230",style:{display:"flex",alignItems:"center",gap:"0.75rem",flexWrap:"wrap"},children:[y.jsxs("span",{"data-loc":"client/src/pages/SetDetail.tsx:231",className:"lego-badge",style:{background:"#D1FAE5",color:"#065F46"},children:["✓ ",A.userSet.status.replace("_"," ")]}),y.jsx("span",{"data-loc":"client/src/pages/SetDetail.tsx:232",className:"lego-badge",style:{background:"#F0F2F5",color:"#6B7280"},children:A.userSet.condition}),y.jsxs("span",{"data-loc":"client/src/pages/SetDetail.tsx:233",className:"lego-badge",style:{background:"#F0F2F5",color:"#6B7280"},children:["×",A.userSet.quantity]}),y.jsx(kt,{"data-loc":"client/src/pages/SetDetail.tsx:234",href:"/collection",children:y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:235",className:"lego-btn lego-btn-outline",style:{fontSize:"0.78rem",padding:"0.3rem 0.75rem"},children:"Manage"})})]}):y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:239",children:[y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:240",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"0.75rem",marginBottom:"0.75rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:241",children:[y.jsx("label",{"data-loc":"client/src/pages/SetDetail.tsx:242",className:"section-label",style:{display:"block",marginBottom:"0.3rem"},children:"Status"}),y.jsxs("select",{"data-loc":"client/src/pages/SetDetail.tsx:243",value:r,onChange:j=>a(j.target.value),className:"lego-input",style:{width:"100%"},children:[y.jsx("option",{"data-loc":"client/src/pages/SetDetail.tsx:244",value:"owned",children:"Owned"}),y.jsx("option",{"data-loc":"client/src/pages/SetDetail.tsx:245",value:"wanted",children:"Wanted"}),y.jsx("option",{"data-loc":"client/src/pages/SetDetail.tsx:246",value:"for_sale",children:"For Sale"})]})]}),y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:249",children:[y.jsx("label",{"data-loc":"client/src/pages/SetDetail.tsx:250",className:"section-label",style:{display:"block",marginBottom:"0.3rem"},children:"Condition"}),y.jsxs("select",{"data-loc":"client/src/pages/SetDetail.tsx:251",value:o,onChange:j=>l(j.target.value),className:"lego-input",style:{width:"100%"},children:[y.jsx("option",{"data-loc":"client/src/pages/SetDetail.tsx:252",value:"new",children:"New"}),y.jsx("option",{"data-loc":"client/src/pages/SetDetail.tsx:253",value:"used",children:"Used"}),y.jsx("option",{"data-loc":"client/src/pages/SetDetail.tsx:254",value:"incomplete",children:"Incomplete"})]})]}),y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:257",children:[y.jsx("label",{"data-loc":"client/src/pages/SetDetail.tsx:258",className:"section-label",style:{display:"block",marginBottom:"0.3rem"},children:"Quantity"}),y.jsx("input",{"data-loc":"client/src/pages/SetDetail.tsx:259",type:"number",min:1,value:d,onChange:j=>m(parseInt(j.target.value)||1),className:"lego-input",style:{width:"100%"}})]}),y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:261",children:[y.jsx("label",{"data-loc":"client/src/pages/SetDetail.tsx:262",className:"section-label",style:{display:"block",marginBottom:"0.3rem"},children:"Notes"}),y.jsx("input",{"data-loc":"client/src/pages/SetDetail.tsx:263",type:"text",value:c,onChange:j=>
349f(j.target.value),placeholder:"Optional…",className:"lego-input",style:{width:"100%"}})]})]}),y.jsxs("button",{"data-loc":"client/src/pages/SetDetail.tsx:266",onClick:()=>E.mutate({setNum:P.setNum,status:r,condition:o,notes:c||void 0,quantity:d}),disabled:E.isPending,className:"lego-btn lego-btn-red",style:{opacity:E.isPending?.5:1},children:[y.jsx(am,{"data-loc":"client/src/pages/SetDetail.tsx:272",size:14}),E.isPending?"Adding…":"Add to Collection"]})]})]})]})]}),y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:283",style:{display:"flex",gap:"0.5rem",marginBottom:"1.25rem"},children:["parts","minifigs"].map(j=>y.jsx("button",{"data-loc":"client/src/pages/SetDetail.tsx:285",onClick:()=>g(j),className:`lego-btn ${p===j?"lego-btn-blue":"lego-btn-outline"}`,children:j==="parts"?`Parts (${O?.parts.length??0})`:`Minifigs (${O?.minifigs.length??0})`},j))}),p==="parts"&&y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:293",children:Object.keys(C).length===0?y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:295",className:"lego-empty",style:{padding:"3rem 1rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:296",className:"lego-empty-icon",children:y.jsx(wn,{"data-loc":"client/src/pages/SetDetail.tsx:296",size:36,color:"#9CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/SetDetail.tsx:297",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280"},children:"No parts data available."}),y.jsx("p",{"data-loc":"client/src/pages/SetDetail.tsx:298",style:{fontSize:"0.78rem",color:"#9CA3AF"},children:"Sync the database in Settings to load inventory data."})]}):Object.entries(C).map(([j,N])=>y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:302",style:{marginBottom:"1.5rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:303",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"0.5rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:304",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"0.875rem",color:"#1A1A2E",textTransform:"uppercase",letterSpacing:"0.04em"},children:j}),y.jsx("span",{"data-loc":"client/src/pages/SetDetail.tsx:305",className:"lego-badge",style:{background:"#F0F2F5",color:"#6B7280"},children:N.length}),y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:306",style:{flex:1,height:1,background:"#F0F2F5"}})]}),y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:308",className:"lego-card",style:{padding:0,overflow:"hidden"},children:N.map((B,q)=>y.jsx(Zse,{"data-loc":"client/src/pages/SetDetail.tsx:310",part:B},`${B.partNum}-${B.colorId}-${q}`))})]},j))}),p==="minifigs"&&y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:320",children:O?.minifigs.length?y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:327",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gap:"1rem"},children:O.minifigs.map(j=>y.jsx(kt,{"data-loc":"client/src/pages/SetDetail.tsx:329",href:"/minifigs",children:y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:330",className:"lego-card",style:{cursor:"pointer",padding:"1rem",textAlign:"center"},onMouseEnter:N=>N.currentTarget.style.transform="translateY(-2px)",onMouseLeave:N=>N.currentTarget.style.transform="none",children:[y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:333",style:{aspectRatio:"1",background:"#F0F2F5",borderRadius:"0.75rem",marginBottom:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:j.figImgUrl?y.jsx("img",{"data-loc":"client/src/pages/SetDetail.tsx:335",src:j.figImgUrl,alt:j.figName,style:{width:"100%",height:"100%",objectFit:"contain"}}):y.jsx(Qr,{"data-loc":"client/src/pages/SetDetail.tsx:337",size:24,color:"#9CA3AF"})}),y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:340",style:{fontFamily:"monospace",fontSize:"0.7rem",color:"#9CA3AF"},children:j.figNum}),y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:341",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.8rem",color:"#1A1A2E",marginTop:"0.2rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:j.figName}),y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:342",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"0.875rem",color:"#E3000B",marginTop:"0.2rem"},children:["×",j.quantity]})]})},j.figNum))}):y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:322",className:"lego-empty",style:{padding:"3rem 1rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:323",className:"lego-empty-icon",children:y.jsx(Qr,{"data-loc":"client/src/pages/SetDetail.tsx:323",size:36,color:"#9
349CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/SetDetail.tsx:324",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280"},children:"No minifigures in this set."})]})})]}):y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:144",style:{padding:"2rem",textAlign:"center"},children:y.jsxs("div",{"data-loc":"client/src/pages/SetDetail.tsx:145",className:"lego-empty",style:{padding:"4rem 1rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:146",className:"lego-empty-icon",children:y.jsx(Kl,{"data-loc":"client/src/pages/SetDetail.tsx:146",size:40,color:"#9CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/SetDetail.tsx:147",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280"},children:"Set not found in local database."}),y.jsx("p",{"data-loc":"client/src/pages/SetDetail.tsx:148",style:{fontSize:"0.78rem",color:"#9CA3AF"},children:"Sync the database in Settings to load set data."}),y.jsx(kt,{"data-loc":"client/src/pages/SetDetail.tsx:149",href:"/sets",children:y.jsx("div",{"data-loc":"client/src/pages/SetDetail.tsx:149",className:"lego-btn lego-btn-blue",style:{marginTop:"0.75rem"},children:"← Back to Sets"})})]})})}function ele({fig:e,onAdd:t,isOwned:n}){const{isAuthenticated:r}=kr();return y.jsxs("div",{"data-loc":"client/src/pages/Minifigs.tsx:10",className:"lego-card",style:{padding:0,position:"relative"},children:[n&&y.jsx("div",{"data-loc":"client/src/pages/Minifigs.tsx:12",className:"lego-badge badge-owned",style:{position:"absolute",top:"0.5rem",right:"0.5rem",zIndex:10,fontSize:"0.65rem"},children:"Owned"}),y.jsx("div",{"data-loc":"client/src/pages/Minifigs.tsx:16",style:{aspectRatio:"1",background:"#F0F2F5",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"1.25rem 1.25rem 0 0"},children:e.imgUrl?y.jsx("img",{"data-loc":"client/src/pages/Minifigs.tsx:18",src:e.imgUrl,alt:e.name,style:{width:"100%",height:"100%",objectFit:"contain"}}):y.jsx(Qr,{"data-loc":"client/src/pages/Minifigs.tsx:20",size:32,color:"#9CA3AF"})}),y.jsxs("div",{"data-loc":"client/src/pages/Minifigs.tsx:23",style:{padding:"0.75rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/Minifigs.tsx:24",style:{fontSize:"0.65rem",fontWeight:700,color:"#9CA3AF",fontFamily:"Nunito, sans-serif"},children:e.figNum}),y.jsx("div",{"data-loc":"client/src/pages/Minifigs.tsx:25",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.8rem",color:"#1A1A2E",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",margin:"0.15rem 0 0.5rem"},children:e.name}),y.jsxs("div",{"data-loc":"client/src/pages/Minifigs.tsx:26",style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[y.jsxs("span",{"data-loc":"client/src/pages/Minifigs.tsx:27",style:{fontSize:"0.7rem",color:"#6B7280",fontWeight:600},children:[e.numParts??0," parts"]}),r&&!n&&y.jsxs("button",{"data-loc":"client/src/pages/Minifigs.tsx:29",onClick:()=>t(e.figNum),className:"lego-btn lego-btn-green",style:{padding:"0.25rem 0.6rem",fontSize:"0.7rem"},children:[y.jsx(am,{"data-loc":"client/src/pages/Minifigs.tsx:34",size:11})," Add"]})]})]})]})}function tle(){const[e,t]=D.useState(""),[n,r]=D.useState(1),{isAuthenticated:a}=kr(),{data:o,isLoading:l}=je.minifigs.search.useQuery({query:e||void 0,page:n,pageSize:24},{placeholderData:p=>p}),{data:c}=je.collection.listMinifigs.useQuery({page:1,pageSize:1e3},{enabled:a}),f=je.collection.addMinifig.useMutation({onSuccess:()=>ze.success("Minifigure added to collection!"),onError:p=>ze.error(p.message)}),d=new Set(c?.items.map(p=>p.userMinifig.figNum)??[]),m=o?Math.ceil(o.total/24):1;return y.jsxs("div",{"data-loc":"client/src/pages/Minifigs.tsx:67",style:{padding:"2rem",maxWidth:1400,margin:"0 auto"},className:"fade-in",children:[y.jsxs("div",{"data-loc":"client/src/pages/Minifigs.tsx:69",style:{display:"flex",alignItems:"flex-end",justifyContent:"space-between",marginBottom:"1.5rem",flexWrap:"wrap",gap:"1rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Minifigs.tsx:70",children:[y.jsx("h1",{"data-loc":"client/src/pages/Minifigs.tsx:71",className:"page-title",children:"Minifigures"}),o&&y.jsxs("p",{"data-loc":"client/src/pages/Minifigs.tsx:72",style:{color:"#6B7280",fontWeight:600,fontSize:"0.875rem",marginTop:"0.25rem"}
349,children:[o.total.toLocaleString()," minifigures in database"]})]}),y.jsxs("div",{"data-loc":"client/src/pages/Minifigs.tsx:74",className:"lego-search",style:{width:300},children:[y.jsx($h,{"data-loc":"client/src/pages/Minifigs.tsx:75",size:16,color:"#9CA3AF"}),y.jsx("input",{"data-loc":"client/src/pages/Minifigs.tsx:76",placeholder:"Search by name or fig number…",value:e,onChange:p=>{t(p.target.value),r(1)}}),e&&y.jsx("button",{"data-loc":"client/src/pages/Minifigs.tsx:81",onClick:()=>{t(""),r(1)},style:{color:"#9CA3AF",background:"none",border:"none",cursor:"pointer"},children:y.jsx(Ww,{"data-loc":"client/src/pages/Minifigs.tsx:81",size:14})})]})]}),l?y.jsx("div",{"data-loc":"client/src/pages/Minifigs.tsx:87",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"1rem"},children:[...Array(24)].map((p,g)=>y.jsx("div",{"data-loc":"client/src/pages/Minifigs.tsx:88",style:{borderRadius:"1.25rem",background:"#E8EAED",height:230}},g))}):o?.items.length===0?y.jsxs("div",{"data-loc":"client/src/pages/Minifigs.tsx:91",className:"lego-empty",children:[y.jsx("div",{"data-loc":"client/src/pages/Minifigs.tsx:92",className:"lego-empty-icon",children:y.jsx(Qr,{"data-loc":"client/src/pages/Minifigs.tsx:92",size:32,color:"#9CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/Minifigs.tsx:93",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280"},children:"No minifigures found"}),y.jsx("p",{"data-loc":"client/src/pages/Minifigs.tsx:94",style:{fontSize:"0.8rem",color:"#9CA3AF"},children:"Sync the database in Settings to load minifigure data"})]}):y.jsx("div",{"data-loc":"client/src/pages/Minifigs.tsx:97",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"1rem"},children:o?.items.map(p=>y.jsx(ele,{"data-loc":"client/src/pages/Minifigs.tsx:99",fig:p,isOwned:d.has(p.figNum),onAdd:g=>f.mutate({figNum:g})},p.figNum))}),m>1&&y.jsxs("div",{"data-loc":"client/src/pages/Minifigs.tsx:111",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"0.75rem",marginTop:"2rem"},children:[y.jsx("button",{"data-loc":"client/src/pages/Minifigs.tsx:112",className:"lego-btn lego-btn-outline",onClick:()=>r(p=>Math.max(1,p-1)),disabled:n===1,style:{opacity:n===1?.4:1},children:y.jsx(Gl,{"data-loc":"client/src/pages/Minifigs.tsx:113",size:16})}),y.jsxs("span",{"data-loc":"client/src/pages/Minifigs.tsx:115",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,color:"#1A1A2E",fontSize:"0.875rem"},children:["Page ",n," of ",m]}),y.jsx("button",{"data-loc":"client/src/pages/Minifigs.tsx:118",className:"lego-btn lego-btn-outline",onClick:()=>r(p=>Math.min(m,p+1)),disabled:n===m,style:{opacity:n===m?.4:1},children:y.jsx(jf,{"data-loc":"client/src/pages/Minifigs.tsx:119",size:16})})]})]})}function nle({item:e}){const{userPart:t,part:n,color:r,catName:a}=e,o=r?.rgb?`#${r.rgb}`:"#9CA3AF";return y.jsxs("div",{"data-loc":"client/src/pages/Parts.tsx:10",style:{display:"flex",alignItems:"center",gap:"1rem",padding:"0.875rem 1.25rem",borderBottom:"1px solid #F0F2F5"},onMouseEnter:l=>l.currentTarget.style.background="#F8F9FF",onMouseLeave:l=>l.currentTarget.style.background="transparent",children:[y.jsx("div",{"data-loc":"client/src/pages/Parts.tsx:14",style:{width:20,height:20,borderRadius:"50%",background:o,border:"2px solid #E8EAED",flexShrink:0},title:r?.name}),n?.imgUrl?y.jsx("img",{"data-loc":"client/src/pages/Parts.tsx:16",src:n.imgUrl,alt:n?.name,style:{width:44,height:44,objectFit:"contain",flexShrink:0,borderRadius:"0.5rem",background:"#F0F2F5"}}):y.jsx("div",{"data-loc":"client/src/pages/Parts.tsx:18",style:{width:44,height:44,background:"#F0F2F5",borderRadius:"0.5rem",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:y.jsx(Ru,{"data-loc":"client/src/pages/Parts.tsx:19",size:16,color:"#9CA3AF"})}),y.jsxs("div",{"data-loc":"client/src/pages/Parts.tsx:22",style:{flex:1,minWidth:0},children:[y.jsx("div",{"data-loc":"client/src/pages/Parts.tsx:23",style:{fontSize:"0.7rem",fontWeight:700,color:"#9CA3AF",fontFamily:"Nunito, sans-serif"},children:t.partNum}),y.jsx("div",{"data-loc":"client/src/pages/Parts.tsx:24",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.875rem",color:"#1A1A2E",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n?.name??t.partNum}),y.jsxs("div",{"data-loc":"client/src/pages/Parts.tsx:25",style:{fontSize:"0.72rem",color:"#6B7280",fontWeight:600,marginTop:"0.1rem"},children:[r?.name??"Unknown"," · ",a??"—"]}
349)]}),y.jsxs("div",{"data-loc":"client/src/pages/Parts.tsx:27",style:{textAlign:"right",flexShrink:0},children:[y.jsxs("div",{"data-loc":"client/src/pages/Parts.tsx:28",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1.5rem",color:"#006CB7",lineHeight:1},children:["×",t.quantity]}),y.jsx("div",{"data-loc":"client/src/pages/Parts.tsx:29",style:{fontSize:"0.7rem",color:"#9CA3AF",fontWeight:600,textTransform:"capitalize"},children:t.condition})]}),t.isRare&&y.jsx("span",{"data-loc":"client/src/pages/Parts.tsx:31",className:"lego-badge badge-rare",style:{flexShrink:0},children:"Rare"})]})}function rle(){const{isAuthenticated:e}=kr(),[t,n]=D.useState(),[r,a]=D.useState(),[o,l]=D.useState(1),[c,f]=D.useState(!1),{data:d}=je.parts.getColors.useQuery(),{data:m}=je.parts.getCategories.useQuery(),{data:p,isLoading:g}=je.collection.listParts.useQuery({colorId:t,catId:r,page:o,pageSize:48},{enabled:e,placeholderData:w=>w}),b=p?Math.ceil(p.total/48):1;return e?y.jsxs("div",{"data-loc":"client/src/pages/Parts.tsx:62",style:{padding:"2rem",maxWidth:1400,margin:"0 auto"},className:"fade-in",children:[y.jsxs("div",{"data-loc":"client/src/pages/Parts.tsx:64",style:{display:"flex",alignItems:"flex-end",justifyContent:"space-between",marginBottom:"1.5rem",flexWrap:"wrap",gap:"1rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Parts.tsx:65",children:[y.jsx("h1",{"data-loc":"client/src/pages/Parts.tsx:66",className:"page-title",children:"Parts Inventory"}),p&&y.jsxs("p",{"data-loc":"client/src/pages/Parts.tsx:67",style:{color:"#6B7280",fontWeight:600,fontSize:"0.875rem",marginTop:"0.25rem"},children:[p.total.toLocaleString()," unique parts across your collection"]})]}),y.jsxs("div",{"data-loc":"client/src/pages/Parts.tsx:69",style:{display:"flex",gap:"0.75rem"},children:[(t||r)&&y.jsxs("button",{"data-loc":"client/src/pages/Parts.tsx:71",className:"lego-btn lego-btn-outline",onClick:()=>{n(void 0),a(void 0),l(1)},children:[y.jsx(Ww,{"data-loc":"client/src/pages/Parts.tsx:72",size:14})," Clear Filters"]}),y.jsxs("button",{"data-loc":"client/src/pages/Parts.tsx:75",className:`lego-btn ${c?"lego-btn-blue":"lego-btn-outline"}`,onClick:()=>f(w=>!w),children:[y.jsx(x3,{"data-loc":"client/src/pages/Parts.tsx:76",size:15})," Filters"]})]})]}),c&&y.jsxs("div",{"data-loc":"client/src/pages/Parts.tsx:83",className:"lego-card",style:{padding:"1.25rem",marginBottom:"1.5rem",display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Parts.tsx:84",children:[y.jsx("label",{"data-loc":"client/src/pages/Parts.tsx:85",className:"section-label",style:{display:"block",marginBottom:"0.4rem"},children:"Color"}),y.jsxs("select",{"data-loc":"client/src/pages/Parts.tsx:86",className:"lego-input lego-select",value:t??"",onChange:w=>{n(w.target.value?parseInt(w.target.value):void 0),l(1)},children:[y.jsx("option",{"data-loc":"client/src/pages/Parts.tsx:87",value:"",children:"All Colors"}),d?.map(w=>y.jsx("option",{"data-loc":"client/src/pages/Parts.tsx:88",value:w.id,children:w.name},w.id))]})]}),y.jsxs("div",{"data-loc":"client/src/pages/Parts.tsx:91",children:[y.jsx("label",{"data-loc":"client/src/pages/Parts.tsx:92",className:"section-label",style:{display:"block",marginBottom:"0.4rem"},children:"Category"}),y.jsxs("select",{"data-loc":"client/src/pages/Parts.tsx:93",className:"lego-input lego-select",value:r??"",onChange:w=>{a(w.target.value?parseInt(w.target.value):void 0),l(1)},children:[y.jsx("option",{"data-loc":"client/src/pages/Parts.tsx:94",value:"",children:"All Categories"}),m?.map(w=>y.jsx("option",{"data-loc":"client/src/pages/Parts.tsx:95",value:w.id,children:w.name},w.id))]})]})]}),g?y.jsx("div",{"data-loc":"client/src/pages/Parts.tsx:103",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:[...Array(12)].map((w,S)=>y.jsx("div",{"data-loc":"client/src/pages/Parts.tsx:104",style:{height:72,borderRadius:"0.75rem",background:"#E8EAED"}},S))}):p?.items.length===0?y.jsxs("div",{"data-loc":"client/src/pages/Parts.tsx:107",className:"lego-empty",children:[y.jsx("div",{"data-loc":"client/src/pages/Parts.tsx:108",className:"lego-empty-icon",children:y.jsx(Ru,{"data-loc":"client/src/pages/Parts.tsx:108",size:36,color:"#9
349CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/Parts.tsx:109",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280"},children:"No parts in inventory"}),y.jsx("p",{"data-loc":"client/src/pages/Parts.tsx:110",style:{fontSize:"0.8rem",color:"#9CA3AF"},children:"Parts are tracked automatically from owned sets after a database sync"})]}):y.jsx("div",{"data-loc":"client/src/pages/Parts.tsx:113",className:"lego-card",style:{padding:0,overflow:"hidden"},children:p?.items.map(w=>y.jsx(nle,{"data-loc":"client/src/pages/Parts.tsx:114",item:w},w.userPart.id))}),b>1&&y.jsxs("div",{"data-loc":"client/src/pages/Parts.tsx:120",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"0.75rem",marginTop:"2rem"},children:[y.jsx("button",{"data-loc":"client/src/pages/Parts.tsx:121",className:"lego-btn lego-btn-outline",onClick:()=>l(w=>Math.max(1,w-1)),disabled:o===1,style:{opacity:o===1?.4:1},children:y.jsx(Gl,{"data-loc":"client/src/pages/Parts.tsx:122",size:16})}),y.jsxs("span",{"data-loc":"client/src/pages/Parts.tsx:124",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,color:"#1A1A2E",fontSize:"0.875rem"},children:["Page ",o," of ",b]}),y.jsx("button",{"data-loc":"client/src/pages/Parts.tsx:127",className:"lego-btn lego-btn-outline",onClick:()=>l(w=>Math.min(b,w+1)),disabled:o===b,style:{opacity:o===b?.4:1},children:y.jsx(jf,{"data-loc":"client/src/pages/Parts.tsx:128",size:16})})]})]}):y.jsxs("div",{"data-loc":"client/src/pages/Parts.tsx:54",className:"lego-empty",style:{minHeight:"60vh"},children:[y.jsx("div",{"data-loc":"client/src/pages/Parts.tsx:55",className:"lego-empty-icon",children:y.jsx(Ru,{"data-loc":"client/src/pages/Parts.tsx:55",size:36,color:"#9CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/Parts.tsx:56",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280"},children:"Sign in to view your parts inventory"})]})}function ale(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return D.useMemo(()=>r=>{t.forEach(a=>a(r))},t)}const Um=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ac(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function ZA(e){return"nodeType"in e}function Vn(e){var t,n;return e?ac(e)?e:ZA(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function JA(e){const{Document:t}=Vn(e);return e instanceof t}function Bf(e){return ac(e)?!1:e instanceof Vn(e).HTMLElement}function o4(e){return e instanceof Vn(e).SVGElement}function ic(e){return e?ac(e)?e.document:ZA(e)?JA(e)?e:Bf(e)||o4(e)?e.ownerDocument:document:document:document}const ya=Um?D.useLayoutEffect:D.useEffect;function eO(e){const t=D.useRef(e);return ya(()=>{t.current=e}),D.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t.current==null?void 0:t.current(...r)},[])}function ile(){const e=D.useRef(null),t=D.useCallback((r,a)=>{e.current=setInterval(r,a)},[]),n=D.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function yf(e,t){t===void 0&&(t=[e]);const n=D.useRef(e);return ya(()=>{n.current!==e&&(n.current=e)},t),n}function If(e,t){const n=D.useRef();return D.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function $p(e){const t=eO(e),n=D.useRef(null),r=D.useCallback(a=>{a!==n.current&&t?.(a,n.current),n.current=a},[]);return[n,r]}function bw(e){const t=D.useRef();return D.useEffect(()=>{t.current=e},[e]),t.current}let x1={};function $f(e,t){return D.useMemo(()=>{if(t)return t;const n=x1[e]==null?0:x1[e]+1;return x1[e]=n,e+"-"+n},[e,t])}function s4(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce((o,l)=>{const c=Object.entries(l);for(const[f,d]of c){const m=o[f];m!=null&&(o[f]=m+e*d)}return o},{...t})}}const dl=s4(1),vf=s4(-1);function ole(e){return"clientX"in e&&"clientY"in e}function tO(e){if(!e)return!1;const{KeyboardEvent:t}=Vn(e.target);return t&&e instanceof t}function sle(e){if(!e)return!1;const{TouchEvent:t}=Vn(e.target);return t&&e instanceof t}function xw(e){if(sle(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return ole(e)?{x:e.clientX,y:e.clientY}:null}const bf=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[bf.Translate.toString(e),bf.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),ok="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function lle(e){return e.matches(ok)?e:e.querySelector(ok)}const cle={display:"none"};function ule(e){let{id:t,value:n}=e;return z.createElement("div",{id:t,style:cle},n)}function fle(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const a={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return z.createElement("div",{id:t,style:a,role:"status","aria-live":r,"aria-atomic":!0},n)}function dle(){const[e,t]=D.useState("");return{announce:D.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const l4=D.createContext(null);function hle(e){const t=D.useContext(l4);D.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}
349function ple(){const[e]=D.useState(()=>new Set),t=D.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[D.useCallback(r=>{let{type:a,event:o}=r;e.forEach(l=>{var c;return(c=l[a])==null?void 0:c.call(l,o)})},[e]),t]}const mle={draggable:`
350    To pick up a draggable item, press the space bar.
351    While dragging, use the arrow keys to move the item.
352    Press space again to drop the item in its new position, or press escape to cancel.
353  `},gle={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function yle(e){let{announcements:t=gle,container:n,hiddenTextDescribedById:r,screenReaderInstructions:a=mle}=e;const{announce:o,announcement:l}=dle(),c=$f("DndLiveRegion"),[f,d]=D.useState(!1);if(D.useEffect(()=>{d(!0)},[]),hle(D.useMemo(()=>({onDragStart(p){let{active:g}=p;o(t.onDragStart({active:g}))},onDragMove(p){let{active:g,over:b}=p;t.onDragMove&&o(t.onDragMove({active:g,over:b}))},onDragOver(p){let{active:g,over:b}=p;o(t.onDragOver({active:g,over:b}))},onDragEnd(p){let{active:g,over:b}=p;o(t.onDragEnd({active:g,over:b}))},onDragCancel(p){let{active:g,over:b}=p;o(t.onDragCancel({active:g,over:b}))}}),[o,t])),!f)return null;const m=z.createElement(z.Fragment,null,z.createElement(ule,{id:r,value:a.draggable}),z.createElement(fle,{id:c,announcement:l}));return n?Fi.createPortal(m,n):m}var tn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(tn||(tn={}));function Lp(){}function sk(e,t){return D.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function vle(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return D.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Zr=Object.freeze({x:0,y:0});function c4(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function u4(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function ble(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function lk(e){let{left:t,top:n,height:r,width:a}=e;return[{x:t,y:n},{x:t+a,y:n},{x:t,y:n+r},{x:t+a,y:n+r}]}function f4(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function ck(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const xle=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=ck(t,t.left,t.top),o=[];for(const l of r){const{id:c}=l,f=n.get(c);if(f){const d=c4(ck(f),a);o.push({id:c,data:{droppableContainer:l,value:d}})}}return o.sort(u4)},Sle=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=lk(t),o=[];for(const l of r){const{id:c}=l,f=n.get(c);if(f){const d=lk(f),m=a.reduce((g,b,w)=>g+c4(d[w],b),0),p=Number((m/4).toFixed(4));o.push({id:c,data:{droppableContainer:l,value:p}})}}return o.sort(u4)};function wle(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),l=a-r,c=o-n;if(r<a&&n<o){const f=t.width*t.height,d=e.width*e.height,m=l*c,p=m/(f+d-m);return Number(p.toFixed(4))}return 0}const Ale=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const o of r){const{id:l}=o,c=n.get(l);if(c){const f=wle(c,t);f>0&&a.push({id:l,data:{droppableContainer:o,value:f}})}}return a.sort(ble)};function Ole(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function d4(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Zr}function _le(e){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];return a.reduce((l,c)=>
353({...l,top:l.top+e*c.y,bottom:l.bottom+e*c.y,left:l.left+e*c.x,right:l.right+e*c.x}),{...n})}}const jle=_le(1);function Ele(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Cle(e,t,n){const r=Ele(t);if(!r)return e;const{scaleX:a,scaleY:o,x:l,y:c}=r,f=e.left-l-(1-a)*parseFloat(n),d=e.top-c-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),m=a?e.width/a:e.width,p=o?e.height/o:e.height;return{width:m,height:p,top:d,right:f+m,bottom:d+p,left:f}}const Tle={ignoreTransform:!1};function oc(e,t){t===void 0&&(t=Tle);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:m}=Vn(e).getComputedStyle(e);d&&(n=Cle(n,d,m))}const{top:r,left:a,width:o,height:l,bottom:c,right:f}=n;return{top:r,left:a,width:o,height:l,bottom:c,right:f}}function uk(e){return oc(e,{ignoreTransform:!0})}function Ple(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Mle(e,t){return t===void 0&&(t=Vn(e).getComputedStyle(e)),t.position==="fixed"}function Dle(e,t){t===void 0&&(t=Vn(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const o=t[a];return typeof o=="string"?n.test(o):!1})}function Hm(e,t){const n=[];function r(a){if(t!=null&&n.length>=t||!a)return n;if(JA(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!Bf(a)||o4(a)||n.includes(a))return n;const o=Vn(e).getComputedStyle(a);return a!==e&&Dle(a,o)&&n.push(a),Mle(a,o)?n:r(a.parentNode)}return e?r(e):n}function h4(e){const[t]=Hm(e,1);return t??null}function S1(e){return!Um||!e?null:ac(e)?e:ZA(e)?JA(e)||e===ic(e).scrollingElement?window:Bf(e)?e:null:null}function p4(e){return ac(e)?e.scrollX:e.scrollLeft}function m4(e){return ac(e)?e.scrollY:e.scrollTop}function Sw(e){return{x:p4(e),y:m4(e)}}var un;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(un||(un={}));function g4(e){return!Um||!e?!1:e===document.scrollingElement}function y4(e){const t={x:0,y:0},n=g4(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,l=e.scrollTop>=r.y,c=e.scrollLeft>=r.x;return{isTop:a,isLeft:o,isBottom:l,isRight:c,maxScroll:r,minScroll:t}}const Nle={x:.2,y:.2};function Rle(e,t,n,r,a){let{top:o,left:l,right:c,bottom:f}=n;r===void 0&&(r=10),a===void 0&&(a=Nle);const{isTop:d,isBottom:m,isLeft:p,isRight:g}=y4(e),b={x:0,y:0},w={x:0,y:0},S={height:t.height*a.y,width:t.width*a.x};return!d&&o<=t.top+S.height?(b.y=un.Backward,w.y=r*Math.abs((t.top+S.height-o)/S.height)):!m&&f>=t.bottom-S.height&&(b.y=un.Forward,w.y=r*Math.abs((t.bottom-S.height-f)/S.height)),!g&&c>=t.right-S.width?(b.x=un.Forward,w.x=r*Math.abs((t.right-S.width-c)/S.width)):!p&&l<=t.left+S.width&&(b.x=un.Backward,w.x=r*Math.abs((t.left+S.width-l)/S.width)),{direction:b,speed:w}}function kle(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:l}=window;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function v4(e){return e.reduce((t,n)=>dl(t,Sw(n)),Zr)}function zle(e){return e.reduce((t,n)=>t+p4(n),0)}function Ble(e){return e.reduce((t,n)=>t+m4(n),0)}function Ile(e,t){if(t===void 0&&(t=oc),!e)return;const{top:n,left:r,bottom:a,right:o}=t(e);h4(e)&&(a<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const $le=[["x",["left","right"],zle],["y",["top","bottom"],Ble]];class nO{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Hm(n),a=v4(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,l,c]of $le)for(const f of l)Object.defineProperty(this,f,{get:()=>{const d=c(r),m=a[o]-d;return this.rect[f]+m},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Au{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>
353{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var a;(a=this.target)==null||a.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Lle(e){const{EventTarget:t}=Vn(e);return e instanceof t?e:ic(e)}function w1(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Mr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Mr||(Mr={}));function fk(e){e.preventDefault()}function qle(e){e.stopPropagation()}var Ge;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ge||(Ge={}));const b4={start:[Ge.Space,Ge.Enter],cancel:[Ge.Esc],end:[Ge.Space,Ge.Enter,Ge.Tab]},Fle=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ge.Right:return{...n,x:n.x+25};case Ge.Left:return{...n,x:n.x-25};case Ge.Down:return{...n,y:n.y+25};case Ge.Up:return{...n,y:n.y-25}}};class rO{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Au(ic(n)),this.windowListeners=new Au(Vn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Mr.Resize,this.handleCancel),this.windowListeners.add(Mr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Mr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Ile(r),n(Zr)}handleKeyDown(t){if(tO(t)){const{active:n,context:r,options:a}=this.props,{keyboardCodes:o=b4,coordinateGetter:l=Fle,scrollBehavior:c="smooth"}=a,{code:f}=t;if(o.end.includes(f)){this.handleEnd(t);return}if(o.cancel.includes(f)){this.handleCancel(t);return}const{collisionRect:d}=r.current,m=d?{x:d.left,y:d.top}:Zr;this.referenceCoordinates||(this.referenceCoordinates=m);const p=l(t,{active:n,context:r.current,currentCoordinates:m});if(p){const g=vf(p,m),b={x:0,y:0},{scrollableAncestors:w}=r.current;for(const S of w){const A=t.code,{isTop:_,isRight:T,isLeft:E,isBottom:P,maxScroll:O,minScroll:C}=y4(S),j=kle(S),N={x:Math.min(A===Ge.Right?j.right-j.width/2:j.right,Math.max(A===Ge.Right?j.left:j.left+j.width/2,p.x)),y:Math.min(A===Ge.Down?j.bottom-j.height/2:j.bottom,Math.max(A===Ge.Down?j.top:j.top+j.height/2,p.y))},B=A===Ge.Right&&!T||A===Ge.Left&&!E,q=A===Ge.Down&&!P||A===Ge.Up&&!_;if(B&&N.x!==p.x){const I=S.scrollLeft+g.x,L=A===Ge.Right&&I<=O.x||A===Ge.Left&&I>=C.x;if(L&&!g.y){S.scrollTo({left:I,behavior:c});return}L?b.x=S.scrollLeft-I:b.x=A===Ge.Right?S.scrollLeft-O.x:S.scrollLeft-C.x,b.x&&S.scrollBy({left:-b.x,behavior:c});break}else if(q&&N.y!==p.y){const I=S.scrollTop+g.y,L=A===Ge.Down&&I<=O.y||A===Ge.Up&&I>=C.y;if(L&&!g.x){S.scrollTo({top:I,behavior:c});return}L?b.y=S.scrollTop-I:b.y=A===Ge.Down?S.scrollTop-O.y:S.scrollTop-C.y,b.y&&S.scrollBy({top:-b.y,behavior:c});break}}this.handleMove(t,dl(vf(p,this.referenceCoordinates),b))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}rO.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=b4,onActivation:a}=t,{active:o}=n;const{code:l}=e.nativeEvent;if(r.start.includes(l)){const c=o.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),a?.({event:e.nativeEvent}),!0)}return!1}}];function dk(e){return!!(e&&"distance"in e)}function hk(e){return!!(e&&"delay"in e)}class aO{constructor(t,n,r){var a;r===void 0&&(r=Lle(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:l}=o;this.props=t,this.events=n,this.document=ic(l),this.documentListeners=new Au(this.document),this.listeners=new Au(r),this.windowListeners=new Au(Vn(l)),this.initialCoordinates=(a=xw(o))!=null?a:Zr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Mr.Resize,this.handleCancel),this.windowListeners.add(Mr.DragStart,fk),this.windowListeners.add(Mr.VisibilityChange,this.handleCancel),this.windowListeners.add(Mr.ContextMenu,fk),this.documentListeners.add(Mr.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(hk(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(dk(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:a}=this.props;a(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Mr.Click,qle,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Mr.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:a,props:o}=this,{onMove:l,options:{activationConstraint:c}}=o;if(!a)return;const f=(n=xw(t))!=null?n:Zr,d=vf(a,f);
353if(!r&&c){if(dk(c)){if(c.tolerance!=null&&w1(d,c.tolerance))return this.handleCancel();if(w1(d,c.distance))return this.handleStart()}if(hk(c)&&w1(d,c.tolerance))return this.handleCancel();this.handlePending(c,d);return}t.cancelable&&t.preventDefault(),l(f)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Ge.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Ule={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class iO extends aO{constructor(t){const{event:n}=t,r=ic(n.target);super(t,Ule,r)}}iO.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const Hle={move:{name:"mousemove"},end:{name:"mouseup"}};var ww;(function(e){e[e.RightClick=2]="RightClick"})(ww||(ww={}));class Wle extends aO{constructor(t){super(t,Hle,ic(t.event.target))}}Wle.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===ww.RightClick?!1:(r?.({event:n}),!0)}}];const A1={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Vle extends aO{constructor(t){super(t,A1)}static setup(){return window.addEventListener(A1.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(A1.move.name,t)};function t(){}}}Vle.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return a.length>1?!1:(r?.({event:n}),!0)}}];var Ou;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ou||(Ou={}));var qp;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(qp||(qp={}));function Gle(e){let{acceleration:t,activator:n=Ou.Pointer,canScroll:r,draggingRect:a,enabled:o,interval:l=5,order:c=qp.TreeOrder,pointerCoordinates:f,scrollableAncestors:d,scrollableAncestorRects:m,delta:p,threshold:g}=e;const b=Yle({delta:p,disabled:!o}),[w,S]=ile(),A=D.useRef({x:0,y:0}),_=D.useRef({x:0,y:0}),T=D.useMemo(()=>{switch(n){case Ou.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case Ou.DraggableRect:return a}},[n,a,f]),E=D.useRef(null),P=D.useCallback(()=>{const C=E.current;if(!C)return;const j=A.current.x*_.current.x,N=A.current.y*_.current.y;C.scrollBy(j,N)},[]),O=D.useMemo(()=>c===qp.TreeOrder?[...d].reverse():d,[c,d]);D.useEffect(()=>{if(!o||!d.length||!T){S();return}for(const C of O){if(r?.(C)===!1)continue;const j=d.indexOf(C),N=m[j];if(!N)continue;const{direction:B,speed:q}=Rle(C,N,T,t,g);for(const I of["x","y"])b[I][B[I]]||(q[I]=0,B[I]=0);if(q.x>0||q.y>0){S(),E.current=C,w(P,l),A.current=q,_.current=B;return}}A.current={x:0,y:0},_.current={x:0,y:0},S()},[t,P,r,S,o,l,JSON.stringify(T),JSON.stringify(b),w,d,O,m,JSON.stringify(g)])}const Kle={x:{[un.Backward]:!1,[un.Forward]:!1},y:{[un.Backward]:!1,[un.Forward]:!1}};function Yle(e){let{delta:t,disabled:n}=e;const r=bw(t);return If(a=>{if(n||!r||!a)return Kle;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[un.Backward]:a.x[un.Backward]||o.x===-1,[un.Forward]:a.x[un.Forward]||o.x===1},y:{[un.Backward]:a.y[un.Backward]||o.y===-1,[un.Forward]:a.y[un.Forward]||o.y===1}}},[n,t,r])}function Qle(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return If(a=>{var o;return t==null?null:(o=r??a)!=null?o:null},[r,t])}function Xle(e,t){return D.useMemo(()=>e.reduce((n,r)=>{const{sensor:a}=r,o=a.activators.map(l=>({eventName:l.eventName,handler:t(l.handler,r)}));return[...n,...o]},[]),[e,t])}var xf;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(xf||(xf={}));var Aw;(function(e){e.Optimized="optimized"})(Aw||(Aw={}));const pk=new Map;function Zle(e,t){let{dragging:n,dependencies:r,config:a}=t;const[o,l]=D.useState(null),{frequency:c,measure:f,strategy:d}=a,m=D.useRef(e),p=A(),g=yf(p),b=D.useCallback(function(_){_===void 0&&(_=[]),!g.current&&l(T=>T===null?_:T.concat(_.filter(E=>!T.includes(E))))},[g]),w=D.useRef(null),S=If(_=>{if(p&&!n)return pk;if(!_||_===pk||m.current!==e||o!=null){const T=new Map;for(let E of e){if(!E)continue;if(o&&o.length>
3530&&!o.includes(E.id)&&E.rect.current){T.set(E.id,E.rect.current);continue}const P=E.node.current,O=P?new nO(f(P),P):null;E.rect.current=O,O&&T.set(E.id,O)}return T}return _},[e,o,n,p,f]);return D.useEffect(()=>{m.current=e},[e]),D.useEffect(()=>{p||b()},[n,p]),D.useEffect(()=>{o&&o.length>0&&l(null)},[JSON.stringify(o)]),D.useEffect(()=>{p||typeof c!="number"||w.current!==null||(w.current=setTimeout(()=>{b(),w.current=null},c))},[c,p,b,...r]),{droppableRects:S,measureDroppableContainers:b,measuringScheduled:o!=null};function A(){switch(d){case xf.Always:return!1;case xf.BeforeDragging:return n;default:return!n}}}function x4(e,t){return If(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Jle(e,t){return x4(e,t)}function ece(e){let{callback:t,disabled:n}=e;const r=eO(t),a=D.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return D.useEffect(()=>()=>a?.disconnect(),[a]),a}function Wm(e){let{callback:t,disabled:n}=e;const r=eO(t),a=D.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return D.useEffect(()=>()=>a?.disconnect(),[a]),a}function tce(e){return new nO(oc(e),e)}function mk(e,t,n){t===void 0&&(t=tce);const[r,a]=D.useState(null);function o(){a(f=>{if(!e)return null;if(e.isConnected===!1){var d;return(d=f??n)!=null?d:null}const m=t(e);return JSON.stringify(f)===JSON.stringify(m)?f:m})}const l=ece({callback(f){if(e)for(const d of f){const{type:m,target:p}=d;if(m==="childList"&&p instanceof HTMLElement&&p.contains(e)){o();break}}}}),c=Wm({callback:o});return ya(()=>{o(),e?(c?.observe(e),l?.observe(document.body,{childList:!0,subtree:!0})):(c?.disconnect(),l?.disconnect())},[e]),r}function nce(e){const t=x4(e);return d4(e,t)}const gk=[];function rce(e){const t=D.useRef(e),n=If(r=>e?r&&r!==gk&&e&&t.current&&e.parentNode===t.current.parentNode?r:Hm(e):gk,[e]);return D.useEffect(()=>{t.current=e},[e]),n}function ace(e){const[t,n]=D.useState(null),r=D.useRef(e),a=D.useCallback(o=>{const l=S1(o.target);l&&n(c=>c?(c.set(l,Sw(l)),new Map(c)):null)},[]);return D.useEffect(()=>{const o=r.current;if(e!==o){l(o);const c=e.map(f=>{const d=S1(f);return d?(d.addEventListener("scroll",a,{passive:!0}),[d,Sw(d)]):null}).filter(f=>f!=null);n(c.length?new Map(c):null),r.current=e}return()=>{l(e),l(o)};
353function l(c){c.forEach(f=>{const d=S1(f);d?.removeEventListener("scroll",a)})}},[a,e]),D.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,l)=>dl(o,l),Zr):v4(e):Zr,[e,t])}function yk(e,t){t===void 0&&(t=[]);const n=D.useRef(null);return D.useEffect(()=>{n.current=null},t),D.useEffect(()=>{const r=e!==Zr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?vf(e,n.current):Zr}function ice(e){D.useEffect(()=>{if(!Um)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function oce(e,t){return D.useMemo(()=>e.reduce((n,r)=>{let{eventName:a,handler:o}=r;return n[a]=l=>{o(l,t)},n},{}),[e,t])}function S4(e){return D.useMemo(()=>e?Ple(e):null,[e])}const vk=[];function sce(e,t){t===void 0&&(t=oc);const[n]=e,r=S4(n?Vn(n):null),[a,o]=D.useState(vk);function l(){o(()=>e.length?e.map(f=>g4(f)?r:new nO(t(f),f)):vk)}const c=Wm({callback:l});return ya(()=>{c?.disconnect(),l(),e.forEach(f=>c?.observe(f))},[e]),a}function lce(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Bf(t)?t:e}function cce(e){let{measure:t}=e;const[n,r]=D.useState(null),a=D.useCallback(d=>{for(const{target:m}of d)if(Bf(m)){r(p=>{const g=t(m);return p?{...p,width:g.width,height:g.height}:g});break}},[t]),o=Wm({callback:a}),l=D.useCallback(d=>{const m=lce(d);o?.disconnect(),m&&o?.observe(m),r(m?t(m):null)},[t,o]),[c,f]=$p(l);return D.useMemo(()=>({nodeRef:c,rect:n,setRef:f}),[n,c,f])}const uce=[{sensor:iO,options:{}},{sensor:rO,options:{}}],fce={current:{}},Mh={draggable:{measure:uk},droppable:{measure:uk,strategy:xf.WhileDragging,frequency:Aw.Optimized},dragOverlay:{measure:oc}};class _u extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const dce={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new _u,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Lp},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Mh,measureDroppableContainers:Lp,windowRect:null,measuringScheduled:!1},hce={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Lp,draggableNodes:new Map,over:null,measureDroppableContainers:Lp},Vm=D.createContext(hce),w4=D.createContext(dce);function pce(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new _u}}}function mce(e,t){switch(t.type){case tn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case tn.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case tn.DragEnd:case tn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case tn.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new _u(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case tn.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const l=new _u(e.droppable.containers);return l.set(n,{...o,disabled:a}),{...e,droppable:{...e.droppable,containers:l}}}case tn.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const o=new _u(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function gce(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:a}=D.useContext(Vm),o=bw(r),l=bw(n?.id);return D.useEffect(()=>{if(!t&&!r&&o&&l!=null){if(!tO(o)||document.activeElement===o.target)return;const c=a.get(l);if(!c)return;const{activatorNode:f,node:d}=c;if(!f.current&&!d.current)return;requestAnimationFrame(()=>{for(const m of[f.current,d.current]){if(!m)continue;const p=lle(m);if(p){p.focus();break}}})}},[r,t,a,l,o]),null}function yce(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((a,o)=>o({transform:a,...r}),n):n}function vce(e){return D.useMemo(()=>({draggable:{...Mh.draggable,...e?.draggable},droppable:{...Mh.droppable,...e?.droppable},dragOverlay:{...Mh.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function bce(e){let{activeNode:t,measure:n,initialRect:r,config:a=!0}=e;const o=D.useRef(!1),{x:l,y:c}=typeof a=="boolean"?{x:a,y:a}:a;ya(()=>
353{if(!l&&!c||!t){o.current=!1;return}if(o.current||!r)return;const d=t?.node.current;if(!d||d.isConnected===!1)return;const m=n(d),p=d4(m,r);if(l||(p.x=0),c||(p.y=0),o.current=!0,Math.abs(p.x)>0||Math.abs(p.y)>0){const g=h4(d);g&&g.scrollBy({top:p.y,left:p.x})}},[t,l,c,r,n])}const A4=D.createContext({...Zr,scaleX:1,scaleY:1});var $i;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})($i||($i={}));const xce=D.memo(function(t){var n,r,a,o;let{id:l,accessibility:c,autoScroll:f=!0,children:d,sensors:m=uce,collisionDetection:p=Ale,measuring:g,modifiers:b,...w}=t;const S=D.useReducer(mce,void 0,pce),[A,_]=S,[T,E]=ple(),[P,O]=D.useState($i.Uninitialized),C=P===$i.Initialized,{draggable:{active:j,nodes:N,translate:B},droppable:{containers:q}}=A,I=j!=null?N.get(j):null,L=D.useRef({initial:null,translated:null}),W=D.useMemo(()=>{var Et;return j!=null?{id:j,data:(Et=I?.data)!=null?Et:fce,rect:L}:null},[j,I]),K=D.useRef(null),[U,R]=D.useState(null),[F,H]=D.useState(null),J=yf(w,Object.values(w)),ae=$f("DndDescribedBy",l),$=D.useMemo(()=>q.getEnabled(),[q]),V=vce(g),{droppableRects:Y,measureDroppableContainers:Z,measuringScheduled:ce}=Zle($,{dragging:C,dependencies:[B.x,B.y],config:V.droppable}),he=Qle(N,j),me=D.useMemo(()=>F?xw(F):null,[F]),ye=fi(),ue=Jle(he,V.draggable.measure);bce({activeNode:j!=null?N.get(j):null,config:ye.layoutShiftCompensation,initialRect:ue,measure:V.draggable.measure});const pe=mk(he,V.draggable.measure,ue),we=mk(he?he.parentElement:null),oe=D.useRef({activatorEvent:null,active:null,activeNode:he,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:N,draggingNode:null,draggingNodeRect:null,droppableContainers:q,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),$e=q.getNodeFor((n=oe.current.over)==null?void 0:n.id),Ee=cce({measure:V.dragOverlay.measure}),Qe=(r=Ee.nodeRef.current)!=null?r:he,Ke=C?(a=Ee.rect)!=null?a:pe:null,St=!!(Ee.nodeRef.current&&Ee.rect),hn=nce(St?null:pe),jt=S4(Qe?Vn(Qe):null),Kt=rce(C?$e??he:null),on=sce(Kt),ft=yce(b,{transform:{x:B.x-hn.x,y:B.y-hn.y,scaleX:1,scaleY:1},activatorEvent:F,active:W,activeNodeRect:pe,containerNodeRect:we,draggingNodeRect:Ke,over:oe.current.over,overlayNodeRect:Ee.rect,scrollableAncestors:Kt,scrollableAncestorRects:on,windowRect:jt}),Cn=me?dl(me,B):null,Bt=ace(Kt),li=yk(Bt),wa=yk(Bt,[pe]),Br=dl(ft,li),kn=Ke?jle(Ke,ft):null,Ir=W&&kn?p({active:W,collisionRect:kn,droppableRects:Y,droppableContainers:$,pointerCoordinates:Cn}):null,dr=f4(Ir,"id"),[Gn,$r]=D.useState(null),Aa=St?ft:dl(ft,wa),pn=Ole(Aa,(o=Gn?.rect)!=null?o:null,pe),Tn=D.useRef(null),Yt=D.useCallback((Et,Ct)=>{let{sensor:Oe,options:Ye}=Ct;if(K.current==null)return;const nt=N.get(K.current);if(!nt)return;const at=Et.nativeEvent,Qt=new Oe({active:K.current,activeNode:nt,event:at,options:Ye,context:oe,onAbort(Xe){if(!N.get(Xe))return;const{onDragAbort:wt}=J.current,Tt={id:Xe};wt?.(Tt),T({type:"onDragAbort",event:Tt})},onPending(Xe,An,wt,Tt){if(!N.get(Xe))return;const{onDragPending:mn}=J.current,mr={id:Xe,constraint:An,initialCoordinates:wt,offset:Tt};mn?.(mr),T({type:"onDragPending",event:mr})},onStart(Xe){const An=K.current;if(An==null)return;const wt=N.get(An);if(!wt)return;const{onDragStart:Tt}=J.current,pr={activatorEvent:at,active:{id:An,data:wt.data,rect:L}};Fi.unstable_batchedUpdates(()=>{Tt?.(pr),O($i.Initializing),_({type:tn.DragStart,initialCoordinates:Xe,active:An}),T({type:"onDragStart",event:pr}),R(Tn.current),H(at)})},onMove(Xe){_({type:tn.DragMove,coordinates:Xe})},onEnd:it(tn.DragEnd),onCancel:it(tn.DragCancel)});Tn.current=Qt;function it(Xe){return async function(){const{active:wt,collisions:Tt,over:pr,scrollAdjustedTranslate:mn}=oe.current;let mr=null;if(wt&&mn){const{cancelDrop:di}=J.current;mr={activatorEvent:at,active:wt,collisions:Tt,delta:mn,over:pr},Xe===tn.DragEnd&&typeof di=="function"&&await Promise.resolve(di(mr))&&(Xe=tn.DragCancel)}K.current=null,Fi.unstable_batchedUpdates(()=>{_({type:Xe}),O($i.Uninitialized),$r(null),R(null),H(null),Tn.current=null;const di=Xe===tn.DragEnd?"onDragEnd":"onDragCancel";if(mr){const gr=J.current[di];gr?.(mr),T({type:di,event:mr})}})}}},[N]),sc=D.useCallback((Et,Ct)=>(Oe,Ye)=>{const nt=Oe.nativeEvent,at=N.get(Ye);if(K.current!==null||!at||nt.dndKit||nt.defaultPrevented)return;const Qt={active:at};Et(Oe,Ct.options,Qt)===!0&&(nt.dndKit={capturedBy:Ct.sensor},K.current=Ye,Yt(Oe,Ct))},[N,Yt]),ci=Xle(m,sc);ice(m),ya(()=>{pe&&P===$i.Initializing&&O($i.Initialized)},[pe,P]),D.useEffect(()=>{const{onDragMove:Et}=J.current,{active:Ct,activatorEvent:Oe,collisions:Ye,over:nt}=oe.current;if(!Ct||!Oe)return;const at={active:Ct,activatorEvent:Oe,collisions:Ye,delta:{x:Br.x,y:Br.y},over:nt};Fi.unstable_batchedUpdates(()=>{Et?.(at),T({type:"onDragMove",event:at})})},[Br.x,Br.y]),D.useEffect(()=>{const{active:Et,activatorEvent:Ct,collisions:Oe,droppableContainers:Ye,scrollAdjustedTranslate:nt}=oe.current;if(!Et||K.current==null||!Ct||!nt)return;const{onDragOver:at}=J.current,Qt=Ye.get(dr),it=Qt&&Qt.rect.current?{id:Qt.id,rect:Qt.rect.current,data:Qt.data,disabled:Qt.disabled}:null,Xe={active:Et,activatorEvent:Ct,collisions:Oe,delta:{x:nt.x,y:nt.y},over:it};Fi.unstable_batchedUpdates(()=>{$r(it),at?.(Xe),T({type:"onDragOver",event:Xe})})},[dr]),ya(()=>{oe.current={activatorEvent:F,active:W,activeNode:he,collisionRect:kn,collisions:Ir,droppableRects:Y,draggableNodes:N,draggingNode:Qe,draggingNodeRect:Ke,droppableContainers:q,over:Gn,scrollableAncestors:Kt,scrollAdjustedTranslate:Br},L.current={initial:Ke,translated:kn}},[W,he,Ir,kn,N,Qe,Ke,Y,q,Gn,Kt,Br]),Gle({...ye,delta:B,draggingRect:kn,pointerCoordinates:Cn,scrollableAncestors:Kt,scrollableAncestorRects:on});const hr=D.useMemo(()=>({active:W,activeNode:he,activeNodeRect:pe,activatorEvent:F,collisions:Ir,containerNodeRect:we,dragOverlay:Ee,draggableNodes:N,droppableContainers:q,droppableRects:Y,over:Gn,measureDroppableContainers:Z,scrollableAncestors:Kt,scrollableAncestorRects:on,measuringConfiguration:V,measuringScheduled:ce,windowRect:jt}),[W,he,pe,F,Ir,we,Ee,N,q,Y,Gn,Z,Kt,on,V,ce,jt]),ui=D.useMemo(()=>({activatorEvent:F,activators:ci,active:W,activeNodeRect:pe,ariaDescribedById:{draggable:ae},dispatch:_,draggableNodes:N,over:Gn,measureDroppableContainers:Z}),[F,ci,W,pe,_,ae,N,Gn,Z]);return z.createElement(l4.Provider,{value:E},z.createElement(Vm.Provider,{value:ui},z.createElement(w4.Provider,{value:hr},z.createElement(A4.Provider,{value:pn},d)),z.createElement(gce,{disabled:c?.restoreFocus===!1})),z.createElement(yle,{...c,hiddenTextDescribedById:ae}));function fi(){const Et=U?.autoScrollEnabled===!1,Ct=typeof f=="object"?f.enabled===!1:f===!1,Oe=C&&!Et&&!Ct;return typeof f=="object"?{...f,enabled:Oe}:{enabled:Oe}}}),Sce=D.createContext(null),bk="button",wce="Draggable";function Ace(e){let{id:t,data:n,disabled:r=!1,attributes:a}=e;const o=$f(wce),{activators:l,activatorEvent:c,active:f,activeNodeRect:d,ariaDescribedById:m,draggableNodes:p,over:g}=D.useContext(Vm),{role:b=bk,roleDescription:w="draggable",tabIndex:S=0}=a??{},A=f?.id===t,_=D.useContext(A?A4:Sce),[T,E]=$p(),[P,O]=$p(),C=oce(l,t),j=yf(n);ya(()=>(p.set(t,{id:t,key:o,node:T,activatorNode:P,data:j}
353),()=>{const B=p.get(t);B&&B.key===o&&p.delete(t)}),[p,t]);const N=D.useMemo(()=>({role:b,tabIndex:S,"aria-disabled":r,"aria-pressed":A&&b===bk?!0:void 0,"aria-roledescription":w,"aria-describedby":m.draggable}),[r,b,S,A,w,m.draggable]);return{active:f,activatorEvent:c,activeNodeRect:d,attributes:N,isDragging:A,listeners:r?void 0:C,node:T,over:g,setNodeRef:E,setActivatorNodeRef:O,transform:_}}function Oce(){return D.useContext(w4)}const _ce="Droppable",jce={timeout:25};function Ece(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const o=$f(_ce),{active:l,dispatch:c,over:f,measureDroppableContainers:d}=D.useContext(Vm),m=D.useRef({disabled:n}),p=D.useRef(!1),g=D.useRef(null),b=D.useRef(null),{disabled:w,updateMeasurementsFor:S,timeout:A}={...jce,...a},_=yf(S??r),T=D.useCallback(()=>{if(!p.current){p.current=!0;return}b.current!=null&&clearTimeout(b.current),b.current=setTimeout(()=>{d(Array.isArray(_.current)?_.current:[_.current]),b.current=null},A)},[A]),E=Wm({callback:T,disabled:w||!l}),P=D.useCallback((N,B)=>{E&&(B&&(E.unobserve(B),p.current=!1),N&&E.observe(N))},[E]),[O,C]=$p(P),j=yf(t);return D.useEffect(()=>{!E||!O.current||(E.disconnect(),p.current=!1,E.observe(O.current))},[O,E]),D.useEffect(()=>(c({type:tn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:O,rect:g,data:j}}),()=>c({type:tn.UnregisterDroppable,key:o,id:r})),[r]),D.useEffect(()=>{n!==m.current.disabled&&(c({type:tn.SetDroppableDisabled,id:r,key:o,disabled:n}),m.current.disabled=n)},[r,o,n,c]),{active:l,rect:g,isOver:f?.id===r,node:O,over:f,setNodeRef:C}}function oO(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Cce(e,t){return e.reduce((n,r,a)=>{const o=t.get(r);return o&&(n[a]=o),n},Array(e.length))}function Ah(e){return e!==null&&e>=0}function Tce(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Pce(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const O4=e=>{let{rects:t,activeIndex:n,overIndex:r,index:a}=e;const o=oO(t,r,n),l=t[a],c=o[a];return!c||!l?null:{x:c.left-l.left,y:c.top-l.top,scaleX:c.width/l.width,scaleY:c.height/l.height}},Oh={scaleX:1,scaleY:1},Mce=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:a,rects:o,overIndex:l}=e;const c=(t=o[n])!=null?t:r;if(!c)return null;if(a===n){const d=o[l];return d?{x:0,y:n<l?d.top+d.height-(c.top+c.height):d.top-c.top,...Oh}:null}const f=Dce(o,a,n);return a>n&&a<=l?{x:0,y:-c.height-f,...Oh}:a<n&&a>=l?{x:0,y:c.height+f,...Oh}:{x:0,y:0,...Oh}};function Dce(e,t,n){const r=e[t],a=e[t-1],o=e[t+1];return r?n<t?a?r.top-(a.top+a.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):a?r.top-(a.top+a.height):0:0}const _4="Sortable",j4=z.createContext({activeIndex:-1,containerId:_4,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:O4,disabled:{draggable:!1,droppable:!1}});function Nce(e){let{children:t,id:n,items:r,strategy:a=O4,disabled:o=!1}=e;const{active:l,dragOverlay:c,droppableRects:f,over:d,measureDroppableContainers:m}=Oce(),p=$f(_4,n),g=c.rect!==null,b=D.useMemo(()=>r.map(C=>typeof C=="object"&&"id"in C?C.id:C),[r]),w=l!=null,S=l?b.indexOf(l.id):-1,A=d?b.indexOf(d.id):-1,_=D.useRef(b),T=!Tce(b,_.current),E=A!==-1&&S===-1||T,P=Pce(o);ya(()=>{T&&w&&m(b)},[T,b,w,m]),D.useEffect(()=>{_.current=b},[b]);const O=D.useMemo(()=>({activeIndex:S,containerId:p,disabled:P,disableTransforms:E,items:b,overIndex:A,useDragOverlay:g,sortedRects:Cce(b,f),strategy:a}),[S,p,P.draggable,P.droppable,E,b,A,f,g,a]);return z.createElement(j4.Provider,{value:O},t)}const Rce=e=>{let{id:t,items:n,activeIndex:r,overIndex:a}=e;return oO(n,r,a).indexOf(t)},kce=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:a,items:o,newIndex:l,previousItems:c,previousContainerId:f,transition:d}=e;return!d||!r||c!==o&&a===l?!1:n?!0:l!==a&&t===f},zce={duration:200,easing:"ease"},E4="transform",Bce=bf.Transition.toString({property:E4,duration:0,easing:"linear"}),Ice={roleDescription:"sortable"};function $ce(e){let{disabled:t,index:n,node:r,rect:a}=e;
353const[o,l]=D.useState(null),c=D.useRef(n);return ya(()=>{if(!t&&n!==c.current&&r.current){const f=a.current;if(f){const d=oc(r.current,{ignoreTransform:!0}),m={x:f.left-d.left,y:f.top-d.top,scaleX:f.width/d.width,scaleY:f.height/d.height};(m.x||m.y)&&l(m)}}n!==c.current&&(c.current=n)},[t,n,r,a]),D.useEffect(()=>{o&&l(null)},[o]),o}function Lce(e){let{animateLayoutChanges:t=kce,attributes:n,disabled:r,data:a,getNewIndex:o=Rce,id:l,strategy:c,resizeObserverConfig:f,transition:d=zce}=e;const{items:m,containerId:p,activeIndex:g,disabled:b,disableTransforms:w,sortedRects:S,overIndex:A,useDragOverlay:_,strategy:T}=D.useContext(j4),E=qce(r,b),P=m.indexOf(l),O=D.useMemo(()=>({sortable:{containerId:p,index:P,items:m},...a}),[p,a,P,m]),C=D.useMemo(()=>m.slice(m.indexOf(l)),[m,l]),{rect:j,node:N,isOver:B,setNodeRef:q}=Ece({id:l,data:O,disabled:E.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...f}}),{active:I,activatorEvent:L,activeNodeRect:W,attributes:K,setNodeRef:U,listeners:R,isDragging:F,over:H,setActivatorNodeRef:J,transform:ae}=Ace({id:l,data:O,attributes:{...Ice,...n},disabled:E.draggable}),$=ale(q,U),V=!!I,Y=V&&!w&&Ah(g)&&Ah(A),Z=!_&&F,ce=Z&&Y?ae:null,me=Y?ce??(c??T)({rects:S,activeNodeRect:W,activeIndex:g,overIndex:A,index:P}):null,ye=Ah(g)&&Ah(A)?o({id:l,items:m,activeIndex:g,overIndex:A}):P,ue=I?.id,pe=D.useRef({activeId:ue,items:m,newIndex:ye,containerId:p}),we=m!==pe.current.items,oe=t({active:I,containerId:p,isDragging:F,isSorting:V,id:l,index:P,items:m,newIndex:pe.current.newIndex,previousItems:pe.current.items,previousContainerId:pe.current.containerId,transition:d,wasDragging:pe.current.activeId!=null}),$e=$ce({disabled:!oe,index:P,node:N,rect:j});return D.useEffect(()=>{V&&pe.current.newIndex!==ye&&(pe.current.newIndex=ye),p!==pe.current.containerId&&(pe.current.containerId=p),m!==pe.current.items&&(pe.current.items=m)},[V,ye,p,m]),D.useEffect(()=>{if(ue===pe.current.activeId)return;if(ue!=null&&pe.current.activeId==null){pe.current.activeId=ue;return}const Qe=setTimeout(()=>{pe.current.activeId=ue},50);return()=>clearTimeout(Qe)},[ue]),{active:I,activeIndex:g,attributes:K,data:O,rect:j,index:P,newIndex:ye,items:m,isOver:B,isSorting:V,isDragging:F,listeners:R,node:N,overIndex:A,over:H,setNodeRef:$,setActivatorNodeRef:J,setDroppableNodeRef:q,setDraggableNodeRef:U,transform:$e??me,transition:Ee()};function Ee(){if($e||we&&pe.current.newIndex===P)return Bce;if(!(Z&&!tO(L)||!d)&&(V||oe))return bf.Transition.toString({...d,property:E4})}}function qce(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}function Fp(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Fce=[Ge.Down,Ge.Right,Ge.Up,Ge.Left],Uce=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:a,droppableContainers:o,over:l,scrollableAncestors:c}}=t;if(Fce.includes(e.code)){if(e.preventDefault(),!n||!r)return;const f=[];o.getEnabled().forEach(p=>{if(!p||p!=null&&p.disabled)return;const g=a.get(p.id);if(g)switch(e.code){case Ge.Down:r.top<g.top&&f.push(p);break;case Ge.Up:r.top>g.top&&f.push(p);break;case Ge.Left:r.left>g.left&&f.push(p);break;case Ge.Right:r.left<g.left&&f.push(p);break}});const d=Sle({collisionRect:r,droppableRects:a,droppableContainers:f});let m=f4(d,"id");if(m===l?.id&&d.length>1&&(m=d[1].id),m!=null){const p=o.get(n.id),g=o.get(m),b=g?a.get(g.id):null,w=g?.node.current;if(w&&b&&p&&g){const A=Hm(w).some((C,j)=>c[j]!==C),_=C4(p,g),T=Hce(p,g),E=A||!_?{x:0,y:0}:{x:T?r.width-b.width:0,y:T?r.height-b.height:0},P={x:b.left,y:b.top};return E.x&&E.y?P:vf(P,E)}}}};function C4(e,t){return!Fp(e)||!Fp(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Hce(e,t){return!Fp(e)||!Fp(t)||!C4(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}function sO(e){if(!e)return[];try{return JSON.parse(e)}catch{return[]}}function Wce({item:e,onClose:t}){const{userSet:n,set:r}=e,[a,o]=D.useState(n.marketValue!=null?String(parseFloat(n.marketValue)):""),[l,c]=D.useState(n.acquisitionCost!=null?String(parseFloat(n.acquisitionCost)):""),[f,d]=D.useState(n.marketValueCurrency??"USD"),m=je.useUtils(),p=je.collection.setMarketValue.useMutation({onSuccess:()=>{m.collection.listSets.invalidate(),m.collection.getPortfolioValue.invali
353date(),m.collection.getProfitLoss.invalidate()},onError:S=>ze.error(S.message)}),g=je.collection.setAcquisitionCost.useMutation({onSuccess:()=>{m.collection.listSets.invalidate(),m.collection.getProfitLoss.invalidate()},onError:S=>ze.error(S.message)}),b=async()=>{const S=parseFloat(a),A=parseFloat(l),_=[];if(a!==""&&!isNaN(S)&&S>=0&&_.push(p.mutateAsync({id:n.id,marketValue:S,currency:f,setNum:n.setNum})),l!==""&&!isNaN(A)&&A>=0&&_.push(g.mutateAsync({id:n.id,acquisitionCost:A,currency:f})),_.length===0){ze.error("Enter at least one value.");return}await Promise.all(_),ze.success("Values saved."),t()},w=p.isPending||g.isPending;return y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:102",className:"fixed inset-0 z-50 flex items-center justify-center p-4",style:{background:"rgba(0,0,0,0.7)"},children:y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:103",className:"lego-card w-full max-w-sm",style:{padding:"1.5rem"},children:[y.jsx("h2",{"data-loc":"client/src/pages/Collection.tsx:104",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1.1rem",color:"#1A1A2E",marginBottom:"0.25rem"},children:r?.name??n.setNum}),y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:107",style:{fontFamily:"monospace",fontSize:"0.75rem",color:"#9CA3AF",marginBottom:"1rem"},children:n.setNum}),y.jsx("p",{"data-loc":"client/src/pages/Collection.tsx:108",style:{fontSize:"0.78rem",color:"#6B7280",marginBottom:"1.25rem",lineHeight:1.5},children:"Enter the current market value and/or what you paid. Both are optional — fill in one or both."}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:112",style:{marginBottom:"1rem"},children:[y.jsx("label",{"data-loc":"client/src/pages/Collection.tsx:113",className:"section-label",style:{display:"block",marginBottom:"0.4rem"},children:"Currency"}),y.jsx("select",{"data-loc":"client/src/pages/Collection.tsx:114",value:f,onChange:S=>d(S.target.value),className:"lego-input",style:{width:"100%"},children:["USD","GBP","EUR","AUD","CAD"].map(S=>y.jsx("option",{"data-loc":"client/src/pages/Collection.tsx:115",value:S,children:S},S))})]}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:119",style:{marginBottom:"1rem"},children:[y.jsx("label",{"data-loc":"client/src/pages/Collection.tsx:120",className:"section-label",style:{display:"block",marginBottom:"0.4rem"},children:"Market Value (current)"}),y.jsx("input",{"data-loc":"client/src/pages/Collection.tsx:121",type:"number",min:0,step:.01,value:a,onChange:S=>o(S.target.value),placeholder:"e.g. 149.99",className:"lego-input",style:{width:"100%"}}),y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:123",style:{fontSize:"0.7rem",color:"#9CA3AF",marginTop:"0.25rem"},children:"What it's worth today (BrickLink, eBay, etc.)"})]}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:126",style:{marginBottom:"1.25rem"},children:[y.jsx("label",{"data-loc":"client/src/pages/Collection.tsx:127",className:"section-label",style:{display:"block",marginBottom:"0.4rem"},children:"Acquisition Cost (what you paid)"}),y.jsx("input",{"data-loc":"client/src/pages/Collection.tsx:128",type:"number",min:0,step:.01,value:l,onChange:S=>c(S.target.value),placeholder:"e.g. 89.99",className:"lego-input",style:{width:"100%"}}),y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:130",style:{fontSize:"0.7rem",color:"#9CA3AF",marginTop:"0.25rem"},children:"Used to calculate profit / loss on dashboard"})]}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:132",style:{display:"flex",gap:"0.75rem"},children:[y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:133",onClick:b,disabled:w,className:"lego-btn lego-btn-blue",style:{flex:1,justifyContent:"center",opacity:w?.5:1},children:w?"Saving…":"Save"}),y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:136",onClick:t,className:"lego-btn lego-btn-outline",style:{flex:1,justifyContent:"center"},children:"Cancel"})]})]})})}function T4({item:e,onClose:t,onSave:n}){const{userSet:r}=e,[a,o]=D.useState(r.status),[l,c]=D.useState(r.condition??"new"),[f,d]=D.useState(r.notes??""),[m,p]=D.useState(r.quantity??1),[g,b]=D.useState(r.isRare??!1),[w,S]=D.useState(sO(r.tags).join(", "));return y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:155",className:"fixed inset-0 z-50 flex items-center justify-center p-4",style:{background:"rgba(0,0,0,0.8)"},children:y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:156",className:"brut-card w-full max-w-md animate-fade-in-up",children:[y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:157",className:"text-xs text-muted-foreground uppercase tracking-widest mb-1",children:"Edit Set"}),y.jsx("h2",{"data-loc":"client/src/pages/Collection.tsx:158",className:"text-2xl font-black uppercase mb-4",children:e.set?.
353name??r.setNum}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:159",className:"space-y-3",children:[y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:160",className:"grid grid-cols-2 gap-3",children:[y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:161",children:[y.jsx("label",{"data-loc":"client/src/pages/Collection.tsx:162",className:"text-xs text-muted-foreground uppercase tracking-widest block mb-1",children:"Status"}),y.jsxs("select",{"data-loc":"client/src/pages/Collection.tsx:163",value:a,onChange:A=>o(A.target.value),className:"w-full bg-secondary border border-[var(--border)] px-2 py-2 text-xs font-bold uppercase focus:outline-none",style:{fontFamily:"var(--font-sans)"},children:[y.jsx("option",{"data-loc":"client/src/pages/Collection.tsx:165",value:"owned",children:"Owned"}),y.jsx("option",{"data-loc":"client/src/pages/Collection.tsx:166",value:"wanted",children:"Wanted"}),y.jsx("option",{"data-loc":"client/src/pages/Collection.tsx:167",value:"for_sale",children:"For Sale"})]})]}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:170",children:[y.jsx("label",{"data-loc":"client/src/pages/Collection.tsx:171",className:"text-xs text-muted-foreground uppercase tracking-widest block mb-1",children:"Condition"}),y.jsxs("select",{"data-loc":"client/src/pages/Collection.tsx:172",value:l,onChange:A=>c(A.target.value),className:"w-full bg-secondary border border-[var(--border)] px-2 py-2 text-xs font-bold uppercase focus:outline-none",style:{fontFamily:"var(--font-sans)"},children:[y.jsx("option",{"data-loc":"client/src/pages/Collection.tsx:174",value:"new",children:"New"}),y.jsx("option",{"data-loc":"client/src/pages/Collection.tsx:175",value:"used",children:"Used"}),y.jsx("option",{"data-loc":"client/src/pages/Collection.tsx:176",value:"incomplete",children:"Incomplete"})]})]})]}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:180",className:"grid grid-cols-2 gap-3",children:[y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:181",children:[y.jsx("label",{"data-loc":"client/src/pages/Collection.tsx:182",className:"text-xs text-muted-foreground uppercase tracking-widest block mb-1",children:"Quantity"}),y.jsx("input",{"data-loc":"client/src/pages/Collection.tsx:183",type:"number",min:1,value:m,onChange:A=>p(parseInt(A.target.value)||1),className:"w-full bg-secondary border border-[var(--border)] px-2 py-2 text-xs font-bold focus:outline-none"})]}),y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:186",className:"flex items-end pb-2",children:y.jsxs("label",{"data-loc":"client/src/pages/Collection.tsx:187",className:"flex items-center gap-2 cursor-pointer",children:[y.jsx("input",{"data-loc":"client/src/pages/Collection.tsx:188",type:"checkbox",checked:g,onChange:A=>b(A.target.checked),className:"accent-red-500"}),y.jsx("span",{"data-loc":"client/src/pages/Collection.tsx:189",className:"text-xs font-bold uppercase tracking-widest",children:"Mark as Rare"})]})})]}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:193",children:[y.jsx("label",{"data-loc":"client/src/pages/Collection.tsx:194",className:"text-xs text-muted-foreground uppercase tracking-widest block mb-1",children:"Tags (comma-separated)"}),y.jsx("input",{"data-loc":"client/src/pages/Collection.tsx:195",type:"text",value:w,onChange:A=>S(A.target.value),placeholder:"vintage, sealed, gift...",className:"w-full bg-secondary border border-[var(--border)] px-2 py-2 text-xs font-bold focus:outline-none placeholder:text-muted-foreground"})]}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:198",children:[y.jsx("label",{"data-loc":"client/src/pages/Collection.tsx:199",className:"text-xs text-muted-foreground uppercase tracking-widest block mb-1",children:"Notes"}),y.jsx("textarea",{"data-loc":"client/src/pages/Collection.tsx:200",value:f,onChange:A=>d(A.target.value),rows:2,placeholder:"Optional notes...",className:"w-full bg-secondary border border-[var(--border)] px-2 py-2 text-xs font-bold focus:outline-none placeholder:text-muted-foreground resize-none"})]})]}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:204",className:"flex gap-3 mt-4",children:[y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:205",onClick:()=>n({status:a,condition:l,notes:f||void 0,quantity:m,isRare:g,tags:w.split(",").map(A=>
353A.trim()).filter(Boolean)}),className:"flex-1 py-2.5 text-xs font-black uppercase tracking-widest transition-opacity hover:opacity-80",style:{background:"oklch(0.55 0.22 27)",color:"oklch(0.97 0 0)"},children:"Save Changes"}),y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:210",onClick:t,className:"flex-1 py-2.5 text-xs font-black uppercase tracking-widest border border-[var(--border)] text-muted-foreground hover:text-foreground transition-colors",children:"Cancel"})]})]})})}function Vce({item:e,onRemove:t,onEdit:n,onSetValue:r,completionPct:a}){const{userSet:o,set:l}=e,c=o.marketValue!=null,f=o.status==="owned",d=a??(f?100:void 0),m=d==null?"":d>=90?"oklch(0.65 0.18 145)":d>=50?"oklch(0.75 0.18 80)":"oklch(0.55 0.22 27)";return y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:240",className:"flex items-center gap-4 py-3 border-b border-[var(--border)] last:border-0 hover:bg-secondary transition-colors px-4",children:[l?.imgUrl?y.jsx("img",{"data-loc":"client/src/pages/Collection.tsx:242",src:l.imgUrl,alt:l?.name,className:"w-12 h-12 object-contain shrink-0"}):y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:244",className:"w-12 h-12 bg-secondary shrink-0 flex items-center justify-center",children:y.jsx(wn,{"data-loc":"client/src/pages/Collection.tsx:245",size:16,className:"text-muted-foreground"})}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:248",className:"flex-1 min-w-0",children:[y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:249",className:"text-xs font-mono text-muted-foreground",children:o.setNum}),y.jsx(kt,{"data-loc":"client/src/pages/Collection.tsx:250",href:`/sets/${o.setNum}`,children:y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:251",className:"font-bold uppercase text-sm truncate cursor-pointer hover:text-accent transition-colors",children:l?.name??o.setNum})}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:253",className:"flex items-center gap-2 mt-0.5 flex-wrap",children:[y.jsx("span",{"data-loc":"client/src/pages/Collection.tsx:254",className:`status-${o.status}`,children:o.status.replace("_"," ")}),y.jsx("span",{"data-loc":"client/src/pages/Collection.tsx:255",className:"text-xs text-muted-foreground uppercase",children:o.condition}),o.quantity>1&&y.jsxs("span",{"data-loc":"client/src/pages/Collection.tsx:256",className:"text-xs text-muted-foreground",children:["×",o.quantity]}),o.isRare&&y.jsx("span",{"data-loc":"client/src/pages/Collection.tsx:257",className:"rare-badge",children:"Rare"}),sO(o.tags).map(p=>y.jsx("span",{"data-loc":"client/src/pages/Collection.tsx:259",className:"tag-pill",children:p},p))]}),o.notes&&y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:262",className:"text-xs text-muted-foreground mt-0.5 italic truncate",children:o.notes}),f&&d!=null&&y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:264",className:"flex items-center gap-2 mt-1.5",children:[y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:265",className:"flex-1 h-1.5 bg-secondary overflow-hidden",children:y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:266",className:"h-full transition-all duration-500",style:{width:`${d}%`,background:m}})}),y.jsxs("span",{"data-loc":"client/src/pages/Collection.tsx:271",className:"text-xs font-bold font-mono shrink-0",style:{color:m,minWidth:"2.5rem",textAlign:"right"},children:[d,"%"]})]})]}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:277",className:"text-right shrink-0 mr-2",children:[l?.numParts&&y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:278",className:"text-xs text-muted-foreground",children:[l.numParts.toLocaleString()," pcs"]}),l?.year&&y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:279",className:"text-xs text-muted-foreground",children:l.year}),c&&y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:281",className:"text-xs font-bold mt-0.5",style:{color:"oklch(0.65 0.18 145)"},children:[o.marketValueCurrency," ",parseFloat(o.marketValue).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})]})]}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:286",className:"flex items-center gap-1 shrink-0",children:[y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:287",onClick:()=>r(e),title:"Set market value",className:"text-muted-foreground hover:text-foreground transition-colors p-1",children:y.jsx(Fw,{"data-loc":"client/src/pages/Collection.tsx:292",size:14})}),y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:294",onClick:()=>n(e),className:"text-muted-foreground hover:text-foreground transition-colors p-1",children:y.jsx(w3,{"data-loc":"client/src/pages/Collection.tsx:295",size:14})}),y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:297",onClick:()=>t(o.id),className:"text-muted-foreground hover:text-destructive transition-colors p-1",children:y.jsx(Hw,{"data-loc":"client/src/pages/Collection.tsx:298",size:14})})]})]})}function Gce({item:e,onClose:t}){const{userMinifig:n,minifig:r}=e,[a,o]=D.useState(n.marketValue!=null?String(parseFloat(n.marketValue)):""),[l,c]=D.useState(n.marketValueCurrency??"USD"),[f,d]=D.useState(!1),m=je.useUtils(),{data:p}=je.collection.getMinifigPriceHistory.useQuery({userMinifigId:n.id},{enabled:f}),g=je.collection.setMinifigMarketValue.useMutation({onSuccess:()=>{m.collection.listMinifigs.invalidate(),ze.success("Minifig value saved."),t()},onError:w=>ze.error(w.message)}),b=(p??[]).map(w=>({date:new Date(w.recordedAt).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"2-digit"}),price:parseFloat(w.price),currency:w.currency}));return y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:337",className:"fixed inset-0 z-50 flex items-center justify-center p-4",style:{background:"rgba(0,0,0,0.7)"},children:y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:338",className:"lego-card w-full max-w-sm",style:{padding:"1.5rem"},children:[y.jsx("h2",{"data-loc":"client/src/pages/Collection.tsx:339",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1.1rem",color:"#1A1A2E",marginBottom:"0.25rem"},children:r?.name??n.figNum}),y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:342",style:{fontFamily:"monospace",fontSize:"0.75rem",color:"#9
353CA3AF",marginBottom:"1rem"},children:n.figNum}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:344",style:{display:"flex",gap:"0.75rem",marginBottom:"1rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:345",style:{flex:1},children:[y.jsx("label",{"data-loc":"client/src/pages/Collection.tsx:346",className:"section-label",style:{display:"block",marginBottom:"0.4rem"},children:"Market Value"}),y.jsx("input",{"data-loc":"client/src/pages/Collection.tsx:347",type:"number",min:0,step:.01,value:a,onChange:w=>o(w.target.value),placeholder:"e.g. 24.99",className:"lego-input",style:{width:"100%"}})]}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:350",style:{width:80},children:[y.jsx("label",{"data-loc":"client/src/pages/Collection.tsx:351",className:"section-label",style:{display:"block",marginBottom:"0.4rem"},children:"Currency"}),y.jsx("select",{"data-loc":"client/src/pages/Collection.tsx:352",value:l,onChange:w=>c(w.target.value),className:"lego-input",children:["USD","GBP","EUR","AUD","CAD"].map(w=>y.jsx("option",{"data-loc":"client/src/pages/Collection.tsx:353",value:w,children:w},w))})]})]}),y.jsxs("button",{"data-loc":"client/src/pages/Collection.tsx:359",onClick:()=>d(!f),style:{display:"flex",alignItems:"center",gap:"0.4rem",fontSize:"0.78rem",fontWeight:700,color:"#006CB7",background:"none",border:"none",cursor:"pointer",padding:0,marginBottom:"1rem"},children:[y.jsx(gU,{"data-loc":"client/src/pages/Collection.tsx:363",size:14}),f?"Hide":"Show"," Price History"]}),f&&y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:368",style:{marginBottom:"1rem",background:"#F8F9FF",borderRadius:"0.75rem",padding:"0.75rem"},children:b.length<2?y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:370",style:{fontSize:"0.78rem",color:"#9CA3AF",textAlign:"center",padding:"0.5rem"},children:b.length===0?"No price history yet.":"Need at least 2 data points for a chart."}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:375",style:{display:"flex",justifyContent:"space-between",fontSize:"0.7rem",color:"#6B7280",fontWeight:700,marginBottom:"0.5rem"},children:[y.jsxs("span",{"data-loc":"client/src/pages/Collection.tsx:376",children:[b.length," data points"]}),y.jsxs("span",{"data-loc":"client/src/pages/Collection.tsx:377",style:{color:b[b.length-1].price>=b[0].price?"#00A650":"#E3000B"},children:[b[b.length-1].price>=b[0].price?"+":"",(b[b.length-1].price-b[0].price).toFixed(2)," since first entry"]})]}),y.jsx(bm,{"data-loc":"client/src/pages/Collection.tsx:382",width:"100%",height:80,children:y.jsxs(i4,{"data-loc":"client/src/pages/Collection.tsx:383",data:b,margin:{top:4,right:4,bottom:0,left:0},children:[y.jsx(ss,{"data-loc":"client/src/pages/Collection.tsx:384",dataKey:"date",tick:{fontSize:9,fill:"#9CA3AF"},tickLine:!1,axisLine:!1}),y.jsx(ls,{"data-loc":"client/src/pages/Collection.tsx:385",hide:!0,domain:["auto","auto"]}),y.jsx(ir,{"data-loc":"client/src/pages/Collection.tsx:386",contentStyle:{background:"white",border:"1px solid #E8EAED",borderRadius:"0.5rem",fontSize:11},formatter:(w,S,A)=>[`${A.payload.currency} ${w.toFixed(2)}`,"Price"]}),y.jsx(rc,{"data-loc":"client/src/pages/Collection.tsx:390",type:"monotone",dataKey:"price",stroke:"#006CB7",strokeWidth:2,dot:{r:3,fill:"#006CB7",strokeWidth:0},activeDot:{r:5}})]})})]})}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:398",style:{display:"flex",gap:"0.75rem"},children:[y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:399",onClick:()=>{const w=parseFloat(a);if(isNaN(w)||w<0){ze.error("Enter a valid price.");return}g.mutate({id:n.id,marketValue:w,currency:l,figNum:n.figNum})},disabled:g.isPending,className:"lego-btn lego-btn-blue",style:{flex:1,justifyContent:"center",opacity:g.isPending?.5:1},children:g.isPending?"Saving…":"Save Value"}),y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:411",onClick:t,className:"lego-btn lego-btn-outline",style:{flex:1,justifyContent:"center"},children:"Cancel"})]})]})})}function Kce({item:e,onRemove:t,onSetValue:n}){const{userMinifig:r,minifig:a}=e,o=r.marketValue!=null;return y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:424",style:{display:"flex",alignItems:"center",gap:"1rem",padding:"0.875rem 1rem",borderBottom:"1px solid #F0F2F5"},onMouseEnter:l=>l.currentTarget.style.background="#F8F9FF",onMouseLeave:l=>l.currentTarget.style.background="transparent",children:[a?.imgUrl?y.jsx("img",{"data-loc":"client/src/pages/Collection.tsx:428",src:a.imgUrl,alt:a?.name,style:{width:44,height:44,objectFit:"contain",flexShrink:0,borderRadius:"0.5rem",background:"#F0F2F5"}}):y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:430",style:{width:44,height:44,borderRadius:"0.5rem",background:"#F0F2F5",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:y.jsx(Qr,{"data-loc":"client/src/pages/Collection.tsx:431",size:16,color:"#9
353CA3AF"})}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:434",style:{flex:1,minWidth:0},children:[y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:435",style:{fontFamily:"monospace",fontSize:"0.72rem",color:"#9CA3AF"},children:r.figNum}),y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:436",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.875rem",color:"#1A1A2E",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:a?.name??r.figNum}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:439",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginTop:"0.2rem",flexWrap:"wrap"},children:[y.jsx("span",{"data-loc":"client/src/pages/Collection.tsx:440",style:{fontSize:"0.72rem",color:"#6B7280",fontWeight:600,textTransform:"uppercase"},children:r.condition}),r.isRare&&y.jsx("span",{"data-loc":"client/src/pages/Collection.tsx:441",className:"lego-badge",style:{background:"#FEF3C7",color:"#92400E"},children:"★ Rare"}),o&&y.jsxs("span",{"data-loc":"client/src/pages/Collection.tsx:443",style:{fontSize:"0.72rem",fontWeight:700,color:"#00A650"},children:[r.marketValueCurrency," ",parseFloat(r.marketValue).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})]})]})]}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:449",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1.25rem",color:"#E3000B",flexShrink:0,marginRight:"0.25rem"},children:["×",r.quantity]}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:450",style:{display:"flex",alignItems:"center",gap:"0.25rem",flexShrink:0},children:[y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:451",onClick:()=>n(e),title:"Set market value",style:{background:"none",border:"none",cursor:"pointer",color:"#9CA3AF",padding:"0.25rem",display:"flex"},onMouseEnter:l=>l.currentTarget.style.color="#006CB7",onMouseLeave:l=>l.currentTarget.style.color="#9CA3AF",children:y.jsx(Fw,{"data-loc":"client/src/pages/Collection.tsx:454",size:14})}),y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:456",onClick:()=>t(r.id),style:{background:"none",border:"none",cursor:"pointer",color:"#9CA3AF",padding:"0.25rem",display:"flex"},onMouseEnter:l=>l.currentTarget.style.color="#E3000B",onMouseLeave:l=>l.currentTarget.style.color="#9CA3AF",children:y.jsx(Hw,{"data-loc":"client/src/pages/Collection.tsx:459",size:14})})]})]})}function Yce({item:e,onRemove:t,onEdit:n}){const{userSet:r,set:a}=e,{attributes:o,listeners:l,setNodeRef:c,transform:f,transition:d,isDragging:m}=Lce({id:r.id}),p={transform:bf.Transform.toString(f),transition:d,opacity:m?.5:1};return y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:479",ref:c,style:p,className:"flex items-center gap-3 py-3 px-4 border-b border-[var(--border)] last:border-0 bg-background hover:bg-secondary transition-colors",children:[y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:485",className:"w-7 h-7 flex items-center justify-center text-xs font-black shrink-0",style:{background:"oklch(0.55 0.22 27)",color:"oklch(0.97 0 0)"},children:r.wishlistRank??"—"}),y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:493",...o,...l,className:"text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing shrink-0 p-1","aria-label":"Drag to reorder",children:y.jsx(mU,{"data-loc":"client/src/pages/Collection.tsx:499",size:16})}),a?.imgUrl?y.jsx("img",{"data-loc":"client/src/pages/Collection.tsx:503",src:a.imgUrl,alt:a?.name,className:"w-10 h-10 object-contain shrink-0"}):y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:505",className:"w-10 h-10 bg-secondary shrink-0 flex items-center justify-center",children:y.jsx(wn,{"data-loc":"client/src/pages/Collection.tsx:506",size:14,className:"text-muted-foreground"})}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:510",className:"flex-1 min-w-0",children:[y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:511",className:"text-xs font-mono text-muted-foreground",children:r.setNum}),y.jsx(kt,{"data-loc":"client/src/pages/Collection.tsx:512",href:`/sets/${r.setNum}`,children:y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:513",className:"font-bold uppercase text-sm truncate cursor-pointer hover:text-accent transition-colors",children:a?.name??r.setNum})}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:517",className:"flex items-center gap-2 mt-0.5 flex-wrap",children:[a?.numParts&&y.jsxs("span",{"data-loc":"client/src/pages/Collection.tsx:518",className:"text-xs text-muted-foreground",children:[a.numParts.toLocaleStr
353ing()," pcs"]}),a?.year&&y.jsx("span",{"data-loc":"client/src/pages/Collection.tsx:519",className:"text-xs text-muted-foreground",children:a.year}),r.isRare&&y.jsx("span",{"data-loc":"client/src/pages/Collection.tsx:520",className:"rare-badge",children:"Rare"}),sO(r.tags).map(g=>y.jsx("span",{"data-loc":"client/src/pages/Collection.tsx:522",className:"tag-pill",children:g},g))]})]}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:527",className:"flex items-center gap-1 shrink-0",children:[y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:528",onClick:()=>n(e),className:"text-muted-foreground hover:text-foreground transition-colors p-1",children:y.jsx(w3,{"data-loc":"client/src/pages/Collection.tsx:529",size:14})}),y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:531",onClick:()=>t(r.id),className:"text-muted-foreground hover:text-destructive transition-colors p-1",children:y.jsx(Hw,{"data-loc":"client/src/pages/Collection.tsx:532",size:14})})]})]})}function Qce(){const e=je.useUtils(),{data:t,isLoading:n}=je.collection.getWishlist.useQuery(),[r,a]=D.useState([]),[o,l]=D.useState(null);D.useEffect(()=>{t&&a(t)},[t]);const c=je.collection.reorderWishlist.useMutation({onSuccess:()=>e.collection.getWishlist.invalidate(),onError:g=>ze.error(g.message)}),f=je.collection.removeSet.useMutation({onSuccess:()=>{e.collection.getWishlist.invalidate(),e.collection.getDashboard.invalidate(),ze.success("Set removed from wishlist.")},onError:g=>ze.error(g.message)}),d=je.collection.updateSet.useMutation({onSuccess:()=>{e.collection.getWishlist.invalidate(),l(null),ze.success("Set updated.")},onError:g=>ze.error(g.message)}),m=vle(sk(iO),sk(rO,{coordinateGetter:Uce})),p=g=>{const{active:b,over:w}=g;if(!w||b.id===w.id)return;const S=r.findIndex(E=>E.userSet.id===b.id),A=r.findIndex(E=>E.userSet.id===w.id),_=oO(r,S,A),T=_.map((E,P)=>({...E,userSet:{...E.userSet,wishlistRank:P+1}}));a(T),c.mutate({orderedIds:_.map(E=>E.userSet.id)})};return n?y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:587",className:"space-y-2",children:[...Array(5)].map((g,b)=>y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:587",className:"h-16 bg-secondary animate-pulse"},b))}):r.length===0?y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:592",className:"brut-card text-center py-16",children:[y.jsx(wn,{"data-loc":"client/src/pages/Collection.tsx:593",size:40,className:"text-muted-foreground mx-auto mb-3"}),y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:594",className:"text-muted-foreground uppercase tracking-wide text-sm",children:"Your wishlist is empty."}),y.jsx(kt,{"data-loc":"client/src/pages/Collection.tsx:595",href:"/search",children:y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:596",className:"mt-4 inline-block px-6 py-2 text-xs font-bold uppercase tracking-widest cursor-pointer",style:{background:"oklch(0.55 0.22 27)",color:"oklch(0.97 0 0)"},children:"Find Sets to Add"})})]}):y.jsxs(y.Fragment,{children:[o&&y.jsx(T4,{"data-loc":"client/src/pages/Collection.tsx:608",item:o,onClose:()=>l(null),onSave:g=>d.mutate({id:o.userSet.id,...g})}),y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:614",className:"text-xs text-muted-foreground uppercase tracking-widest mb-3",children:"Drag rows to reorder priority — changes save automatically."}),y.jsx(xce,{"data-loc":"client/src/pages/Collection.tsx:617",sensors:m,collisionDetection:xle,onDragEnd:p,children:y.jsx(Nce,{"data-loc":"client/src/pages/Collection.tsx:618",items:r.map(g=>g.userSet.id),strategy:Mce,children:y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:619",className:"brut-card p-0 overflow-hidden",children:r.map(g=>y.jsx(Yce,{"data-loc":"client/src/pages/Collection.tsx:621",item:g,onRemove:b=>f.mutate({id:b}),onEdit:l},g.userSet.id))})})})]})}function Xce(e,t){const n="set_num,set_name,theme,year,num_parts,status,condition,quantity,market_value,currency,is_rare,tags,notes,acquired_date,added_date",r=e.map(l=>[l.setNum??"",`"${(l.setName??"").replace(/"/g,'""')}"`,`"${(l.themeName??"").replace(/"/g,'""')}"`,l.year??"",l.numParts??"",l.status??"",l.condition??"",l.quantity??1,l.marketValue!=null?parseFloat(l.marketValue).toFixed(2):"",l.marketValueCurrency??"",l.isRare?"true":"false",`"${(l.tags?JSON.parse(l.tags):[]).join("; ")}"`,`"${(l.notes??"").replace(/"/g,'""')}"`,l.acquiredDate?new Date(l.acquiredDate).toISOString().split("T")[0]:"",l.createdAt?new Date(l.createdAt).toISOString().split("T")[0]:""].join(",")),a=`
354fig_num,fig_name,num_parts,quantity,condition,is_rare,tags,added_date`,o=t.map(l=>[l.figNum??"",`"${(l.figName??"").replace(/"/g,'""')}"`,l.numParts??"",l.quantity??1,l.condition??"",l.isRare?"true":"false",`"${(l.tags?JSON.parse(l.tags):[]).join("; ")}"`,l.createdAt?new Date(l.createdAt).toISOString().split("T")[0]:""].join(","));return[n,...r,a,...o].join(`
355`)}function Zce(e,t,n){const r=new Date().toLocaleDateString(),a=e.map(o=>`
356    <tr>
357      <td>${o.setNum??""}</td>
358      <td>${(o.setName??"").replace(/</g,"&lt;")}</td>
359      <td>${o.themeName??""}</td>
360      <td>${o.year??""}</td>
361      <td>
361${o.numParts?.toLocaleString()??""}</td>
362      <td>${o.status??""}</td>
363      <td>${o.condition??""}</td>
364      <td>${o.quantity??1}</td>
365      <td>${o.marketValue!=null?`${o.marketValueCurrency} ${parseFloat(o.marketValue).toFixed(2)}`:"—"}</td>
366    </tr>`).join("");return`<!DOCTYPE html><html><head><meta charset="utf-8">
367    <style>
368      body { font-family: Arial, sans-serif; font-size: 10px; color: #111; }
369      h1 { font-size: 20px; margin-bottom: 4px; }
370      h2 { font-size: 14px; margin-top: 20px; margin-bottom: 6px; }
371      .meta { color: #666; font-size: 9px; margin-bottom: 12px; }
372      .portfolio { font-size: 13px; font-weight: bold; margin-bottom: 16px; }
373      table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
374      th { background: #111; color: #fff; padding: 4px 6px; text-align: left; font-size: 9px; text-transform: uppercase; }
375      td { padding: 3px 6px; border-bottom: 1px solid #ddd; }
376      tr:nth-child(even) td { background: #f5f5f5; }
377    </style></head><body>
378    <h1>Brick Vault — Collection Export</h1>
379    <div class="meta">Generated: ${r}</div>
380    <div class="portfolio">Portfolio Value: $${n.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})} USD</div>
381    <h2>Sets (${e.length})</h2>
382    <table>
383      <thead><tr><th>Set #</th><th>Name</th><th>Theme</th><th>Year</th><th>Parts</th><th>Status</th><th>Condition</th><th>Qty</th><th>Value</th></tr></thead>
384      <tbody>${a}</tbody>
385    </table>
386    <h2>Minifigures (${t.length})</h2>
387    <table>
388      <thead><tr><th>Fig #</th><th>Name</th><th>Parts</th><th>Qty</th><th>Condition</th></tr></thead>
389      <tbody>${t.map(o=>`<tr><td>${o.figNum}</td><td>${(o.figName??"").replace(/</g,"&lt;")}</td><td>${o.numParts??""}</td><td>${o.quantity??1}</td><td>${o.condition??""}</td></tr>`).join("")}</tbody>
390    </table>
391    </body></html>`}function Jce(e,t,n){const r=new Blob([e],{type:n}),a=URL.createObjectURL(r),o=document.createElement("a");o.href=a,o.download=t,o.click(),URL.revokeObjectURL(a)}function eue(){const{isAuthenticated:e}=kr(),[t,n]=D.useState("sets"),[r,a]=D.useState("all"),[o,l]=D.useState(1),[c,f]=D.useState(null),[d,m]=D.useState(null),[p,g]=D.useState(!1),[b,w]=D.useState(null),S=je.useUtils(),{data:A,isLoading:_}=je.collection.listSets.useQuery({status:r==="all"?void 0:r,page:o,pageSize:24},{enabled:e&&t==="sets",placeholderData:U=>U}),{data:T,isLoading:E}=je.collection.listMinifigs.useQuery({page:o,pageSize:24},{enabled:e&&t==="minifigs",placeholderData:U=>U}),{data:P}=je.collection.getPortfolioValue.useQuery(void 0,{enabled:e}),{data:O}=je.collection.getCompletionMap.useQuery(void 0,{enabled:e}),C=new Map((O??[]).map(U=>[U.setNum,U.pct])),j=je.collection.getInsuranceReport.useQuery(void 0,{enabled:!1,retry:!1}),N=je.collection.exportCollection.useQuery(void 0,{enabled:!1,retry:!1}),B=je.collection.removeSet.useMutation({onSuccess:()=>{S.collection.listSets.invalidate(),S.collection.getDashboard.invalidate(),ze.success("Set removed.")},onError:U=>ze.error(U.message)}),q=je.collection.updateSet.useMutation({onSuccess:()=>{S.collection.listSets.invalidate(),f(null),ze.success("Set updated.")},onError:U=>ze.error(U.message)}),I=je.collection.removeMinifig.useMutation({onSuccess:()=>{S.collection.listMinifigs.invalidate(),ze.success("Minifigure removed.")},onError:U=>ze.error(U.message)}),L=async()=>{g(!0);try{const R=(await j.refetch()).data;if(!R){ze.error("Insurance report failed.");return}const F=new Date().toLocaleDateString(),H=R.themes.map($=>{const V=$.sets.map(Z=>`
392          <tr>
393            <td style="padding:4px 8px;font-family:monospace;font-size:11px">${Z.setNum}</td>
394            <td style="padding:4px 8px;font-size:12px">${(Z.setName??"").replace(/</g,"&lt;")}</td>
395            <td style="padding:4px 8px;font-size:11px">${Z.year??""}</td>
396            <td style="padding:4px 8px;font-size:11px;text-align:right">${Z.numParts?.toLocaleString()??""}</td>
397            <td style="padding:4px 8px;font-size:11px">${Z.condition??""}</td>
398            <td style="padding:4px 8px;font-size:11px;text-align:right">${Z.quantity??1}</td>
399            <td style="padding:4px 8px;font-size:11px;text-align:right;color:${Z.marketValue?"#2a7a2a":"#999"}">
400              ${Z.marketValue?`${Z.currency}
400 ${parseFloat(Z.marketValue).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}`:"—"}
401            </td>
402            <td style="padding:4px 8px;font-size:11px">${Z.isRare?"★ Rare":""}</td>
403          </tr>`).join(""),Y=$.subtotal>0?`<tr style="background:#f5f5f5"><td colspan="6" style="padding:4px 8px;font-size:11px;font-weight:bold">Subtotal — ${$.themeName}</td><td style="padding:4px 8px;font-size:11px;font-weight:bold;text-align:right;color:#2a7a2a">USD ${$.subtotal.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}</td><td></td></tr>`:"";return`<tr style="background:#e8e8e8"><td colspan="8" style="padding:6px 8px;font-size:12px;font-weight:bold;text-transform:uppercase;letter-spacing:0.05em">${$.themeName}</td></tr>${V}${Y}`}).join(""),J=`<!DOCTYPE html><html><head><title>Brick Vault Insurance Report</title><style>body{font-family:Arial,sans-serif;margin:32px;color:#111}h1{font-size:22px;font-weight:900;text-transform:uppercase;letter-spacing:-0.02em;margin-bottom:4px}table{width:100%;border-collapse:collapse;margin-top:16px}th{text-align:left;padding:6px 8px;font-size:11px;text-transform:uppercase;letter-spacing:0.05em;border-bottom:2px solid #111}tr:nth-child(even){background:#fafafa}@media print{.no-print{display:none}}</style></head>
404        <body>
405        <div class="no-print" style="margin-bottom:16px"><button onclick="window.print()" style="padding:8px 20px;font-weight:bold;cursor:pointer">Print / Save as PDF</button></div>
406        <h1>Brick Vault — Insurance Report</h1>
407        <div style="font-size:12px;color:#666;margin-bottom:4px">Generated: ${F}</div>
408        <div style="font-size:12px;color:#666;margin-bottom:4px">${R.totalSets} sets &nbsp;|&nbsp; ${R.setsWithValue} with recorded value</div>
409        <div style="font-size:16px;font-weight:900;margin-top:8px">Total Portfolio Value: USD ${R.grandTotal.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}</div>
410        <table>
411          <thead><tr><th>Set #</th><th>Name</th><th>Year</th><th>Parts</th><th>Condition</th><th>Qty</th><th>Market Value</th><th>Notes</th></tr></thead>
412          <tbody>${H}</tbody>
413        </table>
414        </body></html>`,ae=window.open("","_blank");ae&&(ae.document.write(J),ae.document.close(),ae.focus(),setTimeout(()=>ae.print(),500)),ze.success("Insurance report opened for printing.")}catch(U){ze.error(U?.message??"Insurance report failed.")}finally{g(!1)}},W=async U=>{g(!0);try{const F=(await N.refetch()).data;if(!F){ze.error("Export failed.");return}const{sets:H,minifigs:J}=F,ae=new Date().toISOString().split("T")[0];if(U==="csv"){const $=Xce(H,J);Jce($,`brick-vault-collection-${ae}.csv`,"text/csv"),ze.success("CSV downloaded.")}else{const $=Zce(H,J,P?.total??0),V=window.open("","_blank");V&&(V.document.write($),V.document.close(),V.focus(),setTimeout(()=>{V.print()},500)),ze.success("Print dialog opened for PDF.")}}catch(R){ze.error(R?.message??"Export failed.")}finally{g(!1)}};if(!e)return y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:857",className:"p-8 text-center",children:y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:858",className:"text-muted-foreground uppercase tracking-wide",children:"Sign in to view your collection."})});const K=Math.ceil(t==="sets"?(A?.total??0)/24:(T?.total??0)/24);return y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:868",style:{padding:"2rem",maxWidth:1200,margin:"0 auto"},className:"fade-in",children:[c&&y.jsx(T4,{"data-loc":"client/src/pages/Collection.tsx:870",item:c,onClose:()=>f(null),onSave:U=>q.mutate({id:c.userSet.id,...U})}),d&&y.jsx(Wce,{"data-loc":"client/src/pages/Collection.tsx:877",item:d,onClose:()=>m(null)}),b&&y.jsx(Gce,{"data-loc":"client/src/pages/Collection.tsx:880",item:b,onClose:()=>w(null)}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:884",style:{display:"flex",alignItems:"flex-end",justifyContent:"space-between",marginBottom:"1.75rem",flexWrap:"wrap",gap:"1rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:885",children:[y.jsx("h1",{"data-loc":"client/src/pages/Collection.tsx:886",className:"page-title",children:"My Collection"}),y.jsxs("p",{"data-loc":"client/src/pages/Collection.tsx:887",style:{color:"#6B7280",fontWeight:600,fontSize:"0.875rem",marginTop:"0.25rem"},children:[A?.total??0," sets · ",T?.total??0," minifigures"]})]}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:891",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:893",className:"relative group",children:[y.jsxs("button",{"data-loc":"client/src/pages/Collection.tsx:894",disabled:p,className:"lego-btn lego-btn-outline",style:{opacity:p?.5:1},children:[y.jsx(Uw,{"data-loc":"client/src/pages/Collection.tsx:895",size:14})," Export"]}),y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:897",style:{position:"absolute",right:0,top:"100%",marginTop:"0.25rem",background:"white",border:"2px s
414olid #E8EAED",borderRadius:"0.75rem",boxShadow:"0 8px 24px rgba(0,0,0,0.12)",zIndex:20,minWidth:180,overflow:"hidden",display:"none"},className:"group-hover:!block",children:[y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:899",onClick:()=>W("csv"),disabled:p,style:{display:"flex",alignItems:"center",gap:"0.5rem",width:"100%",padding:"0.75rem 1rem",fontFamily:"Nunito, sans-serif",fontWeight:700,fontSize:"0.8rem",background:"none",border:"none",cursor:"pointer",textAlign:"left"},onMouseEnter:U=>U.currentTarget.style.background="#F8F9FF",onMouseLeave:U=>U.currentTarget.style.background="none",children:"Download CSV"}),y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:905",onClick:()=>W("pdf"),disabled:p,style:{display:"flex",alignItems:"center",gap:"0.5rem",width:"100%",padding:"0.75rem 1rem",fontFamily:"Nunito, sans-serif",fontWeight:700,fontSize:"0.8rem",background:"none",border:"none",cursor:"pointer",textAlign:"left"},onMouseEnter:U=>U.currentTarget.style.background="#F8F9FF",onMouseLeave:U=>U.currentTarget.style.background="none",children:"Print / PDF"}),y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:911",style:{height:1,background:"#F0F2F5",margin:"0 0.5rem"}}),y.jsxs("button",{"data-loc":"client/src/pages/Collection.tsx:912",onClick:L,disabled:p,style:{display:"flex",alignItems:"center",gap:"0.5rem",width:"100%",padding:"0.75rem 1rem",fontFamily:"Nunito, sans-serif",fontWeight:700,fontSize:"0.8rem",background:"none",border:"none",cursor:"pointer",textAlign:"left"},onMouseEnter:U=>U.currentTarget.style.background="#F8F9FF",onMouseLeave:U=>U.currentTarget.style.background="none",children:[y.jsx(wU,{"data-loc":"client/src/pages/Collection.tsx:916",size:13})," Insurance Report"]})]})]}),y.jsx(kt,{"data-loc":"client/src/pages/Collection.tsx:920",href:"/search",children:y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:921",className:"lego-btn lego-btn-red",children:"+ Add Sets"})})]})]}),y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:927",style:{display:"flex",gap:"0.5rem",marginBottom:"1.25rem",flexWrap:"wrap"},children:["sets","wishlist","minifigs"].map(U=>y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:929",onClick:()=>{n(U),l(1)},className:`lego-btn ${t===U?"lego-btn-blue":"lego-btn-outline"}`,children:U==="sets"?`Sets (${A?.total??0})`:U==="wishlist"?"Wishlist":`Minifigs (${T?.total??0})`},U))}),t==="sets"&&y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:938",style:{display:"flex",gap:"0.5rem",marginBottom:"1.25rem",flexWrap:"wrap"},children:["all","owned","for_sale"].map(U=>y.jsx("button",{"data-loc":"client/src/pages/Collection.tsx:940",onClick:()=>{a(U),l(1)},className:`lego-btn ${r===U?"lego-btn-green":"lego-btn-outline"}`,style:{fontSize:"0.78rem",padding:"0.35rem 0.875rem"},children:U.replace("_"," ")},U))}),t==="sets"&&y.jsx(y.Fragment,{children:_?y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:953",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:[...Array(8)].map((U,R)=>y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:954",style:{height:80,borderRadius:"0.75rem",background:"#F0F2F5"}},R))}):A?.items.length===0?y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:957",className:"lego-empty",style:{padding:"4rem 1rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:958",className:"lego-empty-icon",children:y.jsx(wn,{"data-loc":"client/src/pages/Collection.tsx:958",size:40,color:"#9CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/Collection.tsx:959",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280"},children:"No sets in this category."})]}):y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:962",className:"lego-card",style:{padding:0,overflow:"hidden"},children:A?.items.map(U=>y.jsx(Vce,{"data-loc":"client/src/pages/Collection.tsx:964",item:U,onRemove:R=>B.mutate({id:R}),onEdit:f,onSetValue:m,completionPct:C.get(U.userSet.setNum)},U.userSet.id))})}),t==="wishlist"&&y.jsx(Qce,{"data-loc":"client/src/pages/Collection.tsx:979"}),t==="minifigs"&&y.jsx(y.Fragment,{children:E?y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:985",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:[...Array(8)].map((U,R)=>y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:986",style:{height:80,borderRadius:"0.75rem",background:"#F0F2F5"}},R))}):T?.items.length===0?y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:989",className:"lego-empty",style:{padding:"4rem 1rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:990",className:"lego-empty-icon",children:y.jsx(Qr,{"data-loc":"client/src/pages/Collection.tsx:990",size:40,color:"#9
414CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/Collection.tsx:991",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280"},children:"No minifigures in your collection."}),y.jsx(kt,{"data-loc":"client/src/pages/Collection.tsx:992",href:"/search",children:y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:992",className:"lego-btn lego-btn-blue",style:{marginTop:"0.75rem"},children:"Find Minifigures"})})]}):y.jsx("div",{"data-loc":"client/src/pages/Collection.tsx:995",className:"lego-card",style:{padding:0,overflow:"hidden"},children:T?.items.map(U=>y.jsx(Kce,{"data-loc":"client/src/pages/Collection.tsx:997",item:U,onRemove:R=>I.mutate({id:R}),onSetValue:w},U.userMinifig.id))})}),t!=="wishlist"&&K>1&&y.jsxs("div",{"data-loc":"client/src/pages/Collection.tsx:1005",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1rem",marginTop:"2rem"},children:[y.jsxs("button",{"data-loc":"client/src/pages/Collection.tsx:1006",onClick:()=>l(U=>Math.max(1,U-1)),disabled:o===1,className:"lego-btn lego-btn-outline",style:{opacity:o===1?.4:1},children:[y.jsx(Gl,{"data-loc":"client/src/pages/Collection.tsx:1008",size:14})," Prev"]}),y.jsxs("span",{"data-loc":"client/src/pages/Collection.tsx:1010",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,fontSize:"0.875rem",color:"#6B7280"},children:[o," / ",K]}),y.jsxs("button",{"data-loc":"client/src/pages/Collection.tsx:1011",onClick:()=>l(U=>Math.min(K,U+1)),disabled:o===K,className:"lego-btn lego-btn-outline",style:{opacity:o===K?.4:1},children:["Next ",y.jsx(jf,{"data-loc":"client/src/pages/Collection.tsx:1013",size:14})]})]})]})}function tue({part:e}){const t=e.colorRgb?`#${e.colorRgb}`:"#9CA3AF";return y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:9",style:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.75rem 1rem",borderBottom:"1px solid #F0F2F5"},children:[y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:10",style:{width:16,height:16,borderRadius:"50%",background:t,border:"2px solid #E8EAED",flexShrink:0},title:e.colorName}),e.partImgUrl?y.jsx("img",{"data-loc":"client/src/pages/Alerts.tsx:12",src:e.partImgUrl,alt:e.partName,style:{width:36,height:36,objectFit:"contain",flexShrink:0,borderRadius:"0.4rem",background:"#F0F2F5"}}):y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:14",style:{width:36,height:36,background:"#F0F2F5",borderRadius:"0.4rem",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:y.jsx(wn,{"data-loc":"client/src/pages/Alerts.tsx:15",size:14,color:"#9CA3AF"})}),y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:18",style:{flex:1,minWidth:0},children:[y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:19",style:{fontSize:"0.68rem",fontWeight:700,color:"#9CA3AF",fontFamily:"Nunito, sans-serif"},children:e.partNum}),y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:20",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.82rem",color:"#1A1A2E",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.partName})]}),y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:22",style:{textAlign:"right",flexShrink:0},children:[y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:23",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1rem",color:"#E3000B"},children:["×",e.missingQty]}),y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:24",style:{fontSize:"0.68rem",color:"#6B7280",fontWeight:600},children:e.colorName})]})]})}function nue({setAlert:e}){return y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:32",className:"lego-card lego-card-red",style:{marginBottom:"1.25rem",padding:"1.25rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:33",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",marginBottom:"1rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:34",children:[y.jsx(kt,{"data-loc":"client/src/pages/Alerts.tsx:35",href:`/sets/${e.setNum}`,children:y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:36",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1.1rem",color:"#1A1A2E",cursor:"pointer"},onMouseEnter:t=>t.currentTarget.style.color="#E3000B",onMouseLeave:t=>t.currentTarget.style.color="#1A1A2E",children:e.setName})}),y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:43",style:{fontSize:"0.72rem",fontWeight:700,color:"#9
414CA3AF",fontFamily:"Nunito, sans-serif",marginTop:"0.1rem"},children:e.setNum})]}),y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:45",style:{textAlign:"right",flexShrink:0},children:[y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:46",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1.75rem",color:"#E3000B",lineHeight:1},children:e.missing.length}),y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:47",style:{fontSize:"0.68rem",color:"#6B7280",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.05em"},children:"missing types"})]})]}),y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:51",style:{background:"#F8F9FF",borderRadius:"0.75rem",overflow:"hidden",marginBottom:"0.875rem"},children:e.missing.map((t,n)=>y.jsx(tue,{"data-loc":"client/src/pages/Alerts.tsx:53",part:t},`${t.partNum}-${t.colorId}-${n}`))}),y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:58",style:{display:"flex",flexDirection:"column",gap:"0.3rem"},children:[e.missing.slice(0,5).map((t,n)=>y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:60",style:{fontSize:"0.78rem",fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#E3000B",background:"#FEF2F2",borderRadius:"0.5rem",padding:"0.4rem 0.75rem"},children:["You are missing ",t.missingQty,"x part ",t.partNum," in ",t.colorName," to complete set ",e.setNum,"."]},n)),e.missing.length>5&&y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:65",style:{fontSize:"0.75rem",color:"#9CA3AF",fontWeight:600,padding:"0.25rem 0.5rem"},children:["…and ",e.missing.length-5," more missing part types."]})]})]})}function rue(){const{isAuthenticated:e}=kr(),{data:t,isLoading:n}=je.alerts.getAllMissingParts.useQuery(void 0,{enabled:e});return e?y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:88",style:{padding:"2rem",maxWidth:900,margin:"0 auto"},className:"fade-in",children:[y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:90",style:{display:"flex",alignItems:"flex-end",justifyContent:"space-between",marginBottom:"1.5rem",flexWrap:"wrap",gap:"1rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:91",children:[y.jsx("h1",{"data-loc":"client/src/pages/Alerts.tsx:92",className:"page-title",children:"Missing Parts"}),t&&t.length>0&&y.jsxs("p",{"data-loc":"client/src/pages/Alerts.tsx:94",style:{color:"#6B7280",fontWeight:600,fontSize:"0.875rem",marginTop:"0.25rem"},children:[t.length," set",t.length!==1?"s":""," with missing parts"]})]}),t&&t.length>0&&y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:100",className:"stat-card stat-card-red",style:{padding:"0.75rem 1.25rem",minWidth:0},children:[y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:101",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1.75rem",lineHeight:1},children:t.reduce((r,a)=>r+a.missing.length,0)}),y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:104",style:{fontSize:"0.7rem",fontWeight:700,opacity:.85,textTransform:"uppercase",letterSpacing:"0.05em"},children:"total missing types"})]})]}),n?y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:110",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[...Array(3)].map((r,a)=>y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:111",style:{height:200,borderRadius:"1.25rem",background:"#E8EAED"}},a))}):!t||t.length===0?y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:114",className:"lego-empty",children:[y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:115",className:"lego-empty-icon",style:{background:"#D1FAE5"},children:y.jsx(qw,{"data-loc":"client/src/pages/Alerts.tsx:116",size:36,color:"#00A650"})}),y.jsx("p",{"data-loc":"client/src/pages/Alerts.tsx:118",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,color:"#1A1A2E",fontSize:"1.1rem"},children:"All complete!"}),y.jsx("p",{"data-loc":"client/src/pages/Alerts.tsx:119",style:{fontSize:"0.875rem",color:"#6B7280",fontWeight:600},children:"No missing parts detected across your owned sets."}),y.jsx("p",{"data-loc":"client/src/pages/Alerts.tsx:120",style:{fontSize:"0.78rem",color:"#9CA3AF",maxWidth:360,textAlign:"center"},children:"Missing parts are calculated after syncing the Rebrickable database and adding set
414s to your collection."})]}):y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:125",children:t.map(r=>y.jsx(nue,{"data-loc":"client/src/pages/Alerts.tsx:127",setAlert:r},r.setNum))})]}):y.jsxs("div",{"data-loc":"client/src/pages/Alerts.tsx:80",className:"lego-empty",style:{minHeight:"60vh"},children:[y.jsx("div",{"data-loc":"client/src/pages/Alerts.tsx:81",className:"lego-empty-icon",children:y.jsx(Kl,{"data-loc":"client/src/pages/Alerts.tsx:81",size:36,color:"#9CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/Alerts.tsx:82",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280"},children:"Sign in to view missing parts alerts"})]})}function xk({suggestion:e}){const t=e.completionPct??0,n=t>=100,r=n?"#00A650":t>=75?"#F5A800":t>=50?"#F47920":"#E3000B";return y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:12",className:`lego-card ${n?"lego-card-green":""}`,style:{padding:"1.25rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:13",style:{display:"flex",alignItems:"flex-start",gap:"1rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/Suggestions.tsx:14",style:{width:64,height:64,flexShrink:0,background:"#F0F2F5",borderRadius:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:e.imgUrl?y.jsx("img",{"data-loc":"client/src/pages/Suggestions.tsx:16",src:e.imgUrl,alt:e.name,style:{width:"100%",height:"100%",objectFit:"contain"}}):y.jsx(wn,{"data-loc":"client/src/pages/Suggestions.tsx:18",size:24,color:"#9CA3AF"})}),y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:21",style:{flex:1,minWidth:0},children:[y.jsx("div",{"data-loc":"client/src/pages/Suggestions.tsx:22",style:{fontSize:"0.7rem",fontWeight:700,color:"#9CA3AF",fontFamily:"Nunito, sans-serif"},children:e.setNum}),y.jsx(kt,{"data-loc":"client/src/pages/Suggestions.tsx:23",href:`/sets/${e.setNum}`,children:y.jsx("div",{"data-loc":"client/src/pages/Suggestions.tsx:24",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1rem",color:"#1A1A2E",cursor:"pointer",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},onMouseEnter:a=>a.currentTarget.style.color=n?"#00A650":"#006CB7",onMouseLeave:a=>a.currentTarget.style.color="#1A1A2E",children:e.name})}),y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:31",style:{fontSize:"0.75rem",color:"#6B7280",fontWeight:600,marginTop:"0.2rem"},children:[e.totalParts?.toLocaleString()," total · ",e.matchedParts?.toLocaleString()," you have"]})]}),y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:35",style:{textAlign:"right",flexShrink:0},children:[y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:36",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"2rem",color:r,lineHeight:1},children:[t,"%"]}),n?y.jsx("span",{"data-loc":"client/src/pages/Suggestions.tsx:38",className:"lego-badge badge-owned",style:{fontSize:"0.65rem"},children:"Can Build!"}):y.jsx("div",{"data-loc":"client/src/pages/Suggestions.tsx:40",style:{fontSize:"0.68rem",color:"#9CA3AF",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.05em"},children:"Complete"})]})]}),y.jsx("div",{"data-loc":"client/src/pages/Suggestions.tsx:46",style:{height:8,background:"#F0F2F5",borderRadius:99,overflow:"hidden",marginTop:"1rem"},children:y.jsx("div",{"data-loc":"client/src/pages/Suggestions.tsx:47",style:{height:"100%",width:`${Math.min(100,t)}%`,background:r,borderRadius:99,transition:"width 0.4s ease"}})}),y.jsx("div",{"data-loc":"client/src/pages/Suggestions.tsx:51",style:{marginTop:"0.75rem",fontSize:"0.78rem",fontFamily:"Nunito, sans-serif",fontWeight:700,color:n?"#00A650":"#6B7280",background:n?"#F0FDF4":"#F8F9FF",borderRadius:"0.5rem",padding:"0.5rem 0.75rem"},children:n?`You can build set ${e.setNum} from your current parts.`:`You are ${t}% complete for set ${e.setNum} — missing ${e.missingCount?.toLocaleString()??"?"} parts.`})]})}function aue(){const{isAuthenticated:e}=kr(),{data:t,isLoading:n}=je.suggestions.getBuildable.useQuery(void 0,{enabled:e});if(!e)return y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:66",className:"lego-empty",style:{minHeight:"60vh"},children:[y.jsx("div",{"data-loc":"client/src/pages/Suggestions.tsx:67",className:"lego-empty-icon",children:y.jsx(mu,{"data-loc":"client/src/pages/Suggestions.tsx:67",size:36,color:"#9
414CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/Suggestions.tsx:68",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280"},children:"Sign in to view build suggestions"})]});const r=t?.filter(o=>o.completionPct>=100)??[],a=t?.filter(o=>o.completionPct<100)??[];return y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:77",style:{padding:"2rem",maxWidth:900,margin:"0 auto"},className:"fade-in",children:[y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:79",style:{display:"flex",alignItems:"flex-end",justifyContent:"space-between",marginBottom:"1.5rem",flexWrap:"wrap",gap:"1rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:80",children:[y.jsx("h1",{"data-loc":"client/src/pages/Suggestions.tsx:81",className:"page-title",children:"Build Suggestions"}),t&&y.jsx("p",{"data-loc":"client/src/pages/Suggestions.tsx:82",style:{color:"#6B7280",fontWeight:600,fontSize:"0.875rem",marginTop:"0.25rem"},children:"Based on your current parts inventory"})]}),t&&r.length>0&&y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:85",className:"stat-card stat-card-green",style:{padding:"0.75rem 1.25rem",minWidth:0},children:[y.jsx("div",{"data-loc":"client/src/pages/Suggestions.tsx:86",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1.75rem",lineHeight:1},children:r.length}),y.jsx("div",{"data-loc":"client/src/pages/Suggestions.tsx:87",style:{fontSize:"0.7rem",fontWeight:700,opacity:.85,textTransform:"uppercase",letterSpacing:"0.05em"},children:"buildable now"})]})]}),n?y.jsx("div",{"data-loc":"client/src/pages/Suggestions.tsx:93",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[...Array(4)].map((o,l)=>y.jsx("div",{"data-loc":"client/src/pages/Suggestions.tsx:94",style:{height:140,borderRadius:"1.25rem",background:"#E8EAED"}},l))}):!t||t.length===0?y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:97",className:"lego-empty",children:[y.jsx("div",{"data-loc":"client/src/pages/Suggestions.tsx:98",className:"lego-empty-icon",children:y.jsx(mu,{"data-loc":"client/src/pages/Suggestions.tsx:98",size:36,color:"#9CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/Suggestions.tsx:99",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280"},children:"No suggestions yet"}),y.jsx("p",{"data-loc":"client/src/pages/Suggestions.tsx:100",style:{fontSize:"0.8rem",color:"#9CA3AF",maxWidth:360,textAlign:"center"},children:"Add sets to your collection and sync the Rebrickable database to see what you can build."})]}):y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:105",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[r.length>0&&y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:107",children:[y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:108",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.75rem"},children:[y.jsx(mu,{"data-loc":"client/src/pages/Suggestions.tsx:109",size:16,color:"#00A650"}),y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:110",className:"section-label",style:{color:"#00A650"},children:["Ready to Build (",r.length,")"]})]}),r.map(o=>y.jsx(xk,{"data-loc":"client/src/pages/Suggestions.tsx:112",suggestion:o},o.setNum))]}),a.length>0&&y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:116",style:{marginTop:r.length>0?"1.5rem":0},children:[y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:117",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.75rem"},children:[y.jsx(EU,{"data-loc":"client/src/pages/Suggestions.tsx:118",size:16,color:"#F47920"}),y.jsxs("div",{"data-loc":"client/src/pages/Suggestions.tsx:119",className:"section-label",style:{color:"#F47920"},children:["Almost There (",a.length,")"]})]}),a.map(o=>y.jsx(xk,{"data-loc":"client/src/pages/Suggestions.tsx:121",suggestion:o},o.setNum))]})]})]})}function iue(){const{isAuthenticated:e}=kr(),[t,n]=D.useState("csv"),[r,a]=D.useState(""),[o,l]=D.useState(""),[c,f]=D.useState(null),d=D.useRef(null),[m,p]=D.useState(!1),g=je.import.fromCsv.useMutation({onSuccess:E=>{f(E),ze.success(`Imported ${E.imported} items.`)},onError:E=>ze.error(E.message)}),b=je.import.fromBricklinkXml.useMutation({onSuccess:E=>{f(E),ze.success(`Imported ${E.imported} items.`)},onError:E=>ze.error(E.message)}),w=E=>{l(E.name);const P=new FileReader;P.onload=O=>a(O.target?.result??""),P.readAsText(E)},S=E=>{const P=E.target.files?.[0];P&&w(P)},A=E=>{E.preventDefault(),p(!1);const P=E.dataTransfer.files?.[0];P&&w(P)},_=()=>{if(!r){ze.error("No file loaded.");return}f(null),t==="csv"?g.mutate({csvText:r}):b.mutate({xmlText:r})},T=g.isPending||b.isPending;return e?y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:66",style:{padding:"2rem",maxWidth:1e3,margin:"0 auto"},className:"fade-in",children:[y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:68",style:{marginBottom:"1.75rem"},children:[y.jsx("h1",{"data-loc":"client/src/pages/Import.tsx:69",className:"page-title",children:"Import Collection"}),y.jsx("p",{"data-loc":"client/src/pages/Import.tsx:70",style:{color:"#6B7280",fontWeight:600,fontSize:"0.875rem",marginTop:"0.25rem"},children:"Import your LEGO collection from CSV or BrickLink XML"})]}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:76",style:{display:"flex",gap:"0.5rem",marginBottom:"1.5rem"},children:["csv","bricklink"].map(E=>y.jsxs("button",{"data-loc":"client/src/pages/Import.tsx:78",onClick:()=>{n(E),a(""),l(""),f(null)},className:`lego-btn ${t===E?"lego-btn-blue":"lego-btn-outline"}`,children:[y.jsx(pU,{"data-loc":"client/src/pages/Import.tsx:83",size:15}),E==="csv"?"CSV File":"BrickLink XML"]},E))}),y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:89",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1.5rem",alignItems:"start"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:91",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:92",className:"lego-card",style:{padding:"1.5rem"},children:[y.jsx("h2",{"data-loc":"client/src/pages/Import.tsx:93",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1rem",color:"#1A1A2E",marginBottom:"1rem"},children:t==="csv"?"Upload CSV File":"Upload BrickLink XML"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:98",style:{background:"#1A1A2E",borderRadius:"0.75rem",padding:"1rem",marginBottom:"1.25rem",fontFamily:"monospace",fontSize:"0.75rem",color:"#9
414CA3AF"},children:t==="csv"?y.jsxs(y.Fragment,{children:[y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:101",style:{color:"#F5A800",fontWeight:700,marginBottom:"0.25rem"},children:"CSV Format (Sets):"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:102",children:"set_num, status, condition, quantity, notes, tags"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:103",style:{color:"#F5A800",fontWeight:700,marginTop:"0.5rem",marginBottom:"0.25rem"},children:"CSV Format (Minifigs):"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:104",children:"fig_num, quantity, condition, tags"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:105",style:{color:"#6B7280",marginTop:"0.5rem"},children:"status: owned | wanted | for_sale"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:106",style:{color:"#6B7280"},children:"condition: new | used | incomplete"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:107",style:{color:"#6B7280"},children:"tags: semicolon-separated"})]}):y.jsxs(y.Fragment,{children:[y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:111",style:{color:"#F5A800",fontWeight:700,marginBottom:"0.25rem"},children:"BrickLink XML Format:"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:112",children:"<INVENTORY>"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:113",children:"  <ITEM>"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:114",style:{color:"#6B7280"},children:"    <ITEMTYPE>S</ITEMTYPE>  <!-- S=Set M=Minifig -->"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:115",children:"    <ITEMID>75192-1</ITEMID>"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:116",children:"    <MINQTY>1</MINQTY>"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:117",style:{color:"#6B7280"},children:"    <CONDITION>N</CONDITION>  <!-- N=New U=Used -->"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:118",children:"  </ITEM>"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:119",children:"</INVENTORY>"})]})}),y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:125",style:{border:`2px dashed ${m?"#006CB7":"#D1D5DB"}`,borderRadius:"1rem",padding:"2rem",textAlign:"center",cursor:"pointer",background:m?"#EFF6FF":"#F8F9FF",transition:"all 0.15s",marginBottom:"1rem"},onClick:()=>d.current?.click(),onDragOver:E=>{E.preventDefault(),p(!0)},onDragEnter:E=>{E.preventDefault(),p(!0)},onDragLeave:()=>p(!1),onDrop:A,children:[y.jsx(ZE,{"data-loc":"client/src/pages/Import.tsx:142",size:32,color:m?"#006CB7":"#9CA3AF",style:{margin:"0 auto 0.75rem"}}),o?y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:144",children:[y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:145",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,color:"#1A1A2E"},children:o}),y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:146",style:{fontSize:"0.75rem",color:"#6B7280",fontWeight:600,marginTop:"0.25rem"},children:[r.length.toLocaleString()," characters loaded"]})]}):y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:149",children:[y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:150",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,color:"#1A1A2E"},children:"Drop file here or click to select"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:151",style:{fontSize:"0.75rem",color:"#9CA3AF",fontWeight:600,marginTop:"0.25rem"},children:t==="csv"?".csv files":".xml files"})]}),y.jsx("input",{"data-loc":"client/src/pages/Import.tsx:156",ref:d,type:"file",accept:t==="csv"?".csv,text/csv":".xml,text/xml",onChange:S,style:{display:"none"}})]}),y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:160",children:[y.jsx("label",{"data-loc":"client/src/pages/Import.tsx:161",className:"section-label",style:{display:"block",marginBottom:"0.4rem"},children:"Or Paste Content"}),y.jsx("textarea",{"data-loc":"client/src/pages/Import.tsx:162",value:r,onChange:E=>{a(E.target.value),l("")},rows:5,placeholder:t==="csv"?`set_num,status,condition
41575192-1,owned,new`:"<INVENTORY>...</INVENTORY>",className:"lego-input",style:{fontFamily:"monospace",fontSize:"0.78rem",resize:"vertical"}})]})]}),y.jsxs("button",{"data-loc":"client/src/pages/Import.tsx:173",onClick:_,disabled:!r||T,className:"lego-btn lego-btn-blue",style:{width:"100%",justifyContent:"center",fontSize:"1rem",padding:"0.875rem",opacity:!r||T?.5:1},children:[y.jsx(Uw,{"data-loc":"client/src/pages/Import.tsx:179",size:18}),T?"Importing…":"Import Now"]})]}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:185",children:c?y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:187",className:"lego-card",style:{padding:"1.5rem"},children:[y.jsx("h2",{"data-loc":"client/src/pages/Import.tsx:188",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1rem",color:"#1A1A2E",marginBottom:"1.25rem"},children:"Import Results"}),y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:189",style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:"1rem",marginBottom:"1.25rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:190",className:"stat-card stat-card-green",style:{textAlign:"center"},children:[y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:191",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"2rem",lineHeight:1},children:c.imported}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:192",style:{fontSize:"0.7rem",fontWeight:700,opacity:.85,textTransform:"uppercase"},children:"Imported"})]}),y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:194",className:"stat-card stat-card-yellow",style:{textAlign:"center"},children:[y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:195",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"2rem",lineHeight:1},children:c.skipped}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:196",style:{fontSize:"0.7rem",fontWeight:700,opacity:.85,textTransform:"uppercase"},children:"Skipped"})]}),y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:198",className:"stat-card stat-card-red",style:{textAlign:"center"},children:[y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:199",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"2rem",lineHeight:1},children:c.errors.length}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:200",style:{fontSize:"0.7rem",fontWeight:700,opacity:.85,textTransform:"uppercase"},children:"Errors"})]})]}),c.errors.length===0?y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:204",style:{display:"flex",alignItems:"center",gap:"0.5rem",background:"#D1FAE5",borderRadius:"0.75rem",padding:"0.75rem 1rem"},children:[y.jsx(qw,{"data-loc":"client/src/pages/Import.tsx:205",size:16,color:"#00A650"}),y.jsx("span",{"data-loc":"client/src/pages/Import.tsx:206",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#065f46",fontSize:"0.875rem"},children:"Import completed successfully!"})]}):y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:209",children:[y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:210",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.5rem"},children:[y.jsx(hU,{"data-loc":"client/src/pages/Import.tsx:211",size:16,color:"#E3000B"}),y.jsx("span",{"data-loc":"client/src/pages/Import.tsx:212",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.875rem",color:"#E3000B"},children:"Errors"})]}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:214",style:{background:"#FEF2F2",borderRadius:"0.75rem",padding:"0.75rem 1rem",maxHeight:200,overflowY:"auto"},children:c.errors.slice(0,10).map((E,P)=>y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:216",style:{fontFamily:"monospace",fontSize:"0.72rem",color:"#991b1b",marginBottom:"0.25rem"},children:E},P))})]})]}):y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:223",className:"lego-card lego-card-blue",style:{padding:"1.5rem"},children:[y.jsx("h2",{"data-loc":"client/src/pages/Import.tsx:224",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1rem",color:"#1A1A2E",marginBottom:"1rem"},children:"How it works"}),y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:225",style:{display:"flex",flexDirection:"column",gap:"0.875rem"}
415,children:[{step:"1",text:"Choose your import format — CSV or BrickLink XML"},{step:"2",text:"Upload a file or paste the content directly"},{step:"3",text:"Click Import Now to add items to your collection"},{step:"4",text:"Duplicate items are skipped automatically"}].map(({step:E,text:P})=>y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:232",style:{display:"flex",alignItems:"flex-start",gap:"0.75rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:233",style:{width:28,height:28,borderRadius:"50%",background:"#006CB7",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"0.875rem",flexShrink:0},children:E}),y.jsx("p",{"data-loc":"client/src/pages/Import.tsx:234",style:{fontFamily:"Nunito, sans-serif",fontWeight:600,fontSize:"0.875rem",color:"#374151",lineHeight:1.5,margin:0},children:P})]},E))})]})})]})]}):y.jsxs("div",{"data-loc":"client/src/pages/Import.tsx:58",className:"lego-empty",style:{minHeight:"60vh"},children:[y.jsx("div",{"data-loc":"client/src/pages/Import.tsx:59",className:"lego-empty-icon",children:y.jsx(ZE,{"data-loc":"client/src/pages/Import.tsx:59",size:36,color:"#9CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/Import.tsx:60",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280"},children:"Sign in to import collection data"})]})}const Sk=[{key:"themes",label:"Themes"},{key:"colors",label:"Colors"},{key:"part_categories",label:"Part Categories"},{key:"parts",label:"Parts"},{key:"sets",label:"Sets"},{key:"minifigs",label:"Minifigures"},{key:"inventories",label:"Inventories"},{key:"inventory_parts",label:"Inventory Parts"},{key:"inventory_minifigs",label:"Inventory Minifigs"}];function oue(){const{isAuthenticated:e}=kr(),[t,n]=D.useState(""),[r,a]=D.useState(["themes","colors","part_categories","sets","minifigs"]),[o,l]=D.useState([]),{data:c,refetch:f}=je.sync.getStatus.useQuery(),d=je.sync.saveApiKey.useMutation({onSuccess:()=>ze.success("API key saved."),onError:b=>ze.error(b.message)}),m=je.sync.trigger.useMutation({onSuccess:b=>{l(w=>[...w,`✓ ${b.message}`]),f(),ze.success(b.message)},onError:b=>{l(w=>[...w,`✗ Error: ${b.message}`]),ze.error(b.message)}}),p=b=>{a(w=>w.includes(b)?w.filter(S=>S!==b):[...w,b])};if(!e)return y.jsxs("div",{"data-loc":"client/src/pages/Settings.tsx:50",className:"lego-empty",style:{minHeight:"60vh"},children:[y.jsx("div",{"data-loc":"client/src/pages/Settings.tsx:51",className:"lego-empty-icon",children:y.jsx(XE,{"data-loc":"client/src/pages/Settings.tsx:51",size:36,color:"#9CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/Settings.tsx:52",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280"},children:"Sign in to access settings"})]});const g=c?.[0];return y.jsxs("div",{"data-loc":"client/src/pages/Settings.tsx:60",style:{padding:"2rem",maxWidth:900,margin:"0 auto"},className:"fade-in",children:[y.jsxs("div",{"data-loc":"client/src/pages/Settings.tsx:62",style:{marginBottom:"1.75rem"},children:[y.jsx("h1",{"data-loc":"client/src/pages/Settings.tsx:63",className:"page-title",children:"Settings"}),y.jsx("p",{"data-loc":"client/src/pages/Settings.tsx:64",style:{color:"#6B7280",fontWeight:600,fontSize:"0.875rem",marginTop:"0.25rem"},children:"Configure your Rebrickable integration and database sync"})]}),y.jsxs("div",{"data-loc":"client/src/pages/Settings.tsx:69",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1.25rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Settings.tsx:71",className:"lego-card lego-card-yellow",style:{padding:"1.5rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Settings.tsx:72",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.75rem"},children:[y.jsx(XE,{"data-loc":"client/src/pages/Settings.tsx:73",size:18,color:"#F5A800"}),y.jsx("h2",{"data-loc":"client/src/pages/Settings.tsx:74",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1rem",color:"#1A1A2E",margin:0},children:"Rebrickable API Key"})]}),y.jsxs("p",{"data-loc":"client/src/pages/Settings.tsx:76",style:{fontSize:"0.8rem",color:"#6B7280",fontWeight:600,lineHeight:1.6,marginBottom:"1rem"},children:["Required for live search and enriched set data. Get your free key at"," ",y.jsx("a",{"data-loc":"client/src/pages/Settings.tsx:78",href:"https://rebrickable.com/api/",target:"_blank",rel:"noopener noreferrer",style:{color:"#F5A800",fontWeight:800},children:"rebrickable.com/api"})]}),y.jsx("input",{"data-loc":"client/src/pages/Settings.tsx:82",type:"password",placeholder:"Enter your Rebrickable API key…",value:t,onChange:b=>n(b.target.value),className:"lego-input",style:{marginBottom:"0.75rem",fontFamily:"monospace"}}),y.jsx("button",{"data-loc":"client/src/pages/Settings.tsx:90",onClick:()=>d.mutate({apiKey:t||null}),disabled:d.isPending,className:"lego-btn lego-btn-yellow",style:{width:"100%",justifyContent:"center",opacity:d.isPending?.6:1},children:d.isPending?"Saving…":"Save API Key"})]}),y.jsxs("div",{"data-loc":"client/src/pages/Settings.tsx:101",className:"lego-card lego-card-blue",style:{padding:"1.5rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Settings.tsx:102",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.75rem"},children:[y.jsx(lh,{"data-loc":"client/src/pages/Settings.tsx:103",size:18,color:"#006CB7"}),y.jsx("h2",{"data-loc":"client/src/pages/Settings.tsx:104",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1rem",color:"#1A1A2E",margin:0},children:"Sync Status"})]}),g?y.jsxs("div",{"data-loc":"client/src/pages/Settings.tsx:107",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Settings.tsx:108",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[g.status==="success"?y.jsx(qw,{"data-loc":"client/src/pages/Settings.tsx:110",size:16,color:"#00A650"}):g.status==="failed"?y.jsx(Kl,{"data-loc":"client/src/pages/Settings.tsx:112",size:16,color:"#E3000B"}):y.jsx(lh,{"data-loc":"client/src/pages/Settings.tsx:114",size:16,color:"#F5A800",style:{animation:"spin 1s linear infinite"}}),y.jsx("span",{"data-loc":"client/src/pages/Settings.tsx:116",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.875rem",color:g.status==="success"?"#00A650":g.status==="failed"?"#E3000B":"#F5A800"},children:g.status==="success"?"Last sync successful":g.status==="failed"?"Last sync failed":"Syncing…"})]}),y.jsx("div",{"data-loc":"client/src/pages/Settings.tsx:120",style:{fontSize:"0.78rem",color:"#6B7280",fontWeight:600}
415,children:new Date(g.startedAt).toLocaleString()}),g.recordsProcessed&&y.jsxs("div",{"data-loc":"client/src/pages/Settings.tsx:122",style:{fontSize:"0.78rem",color:"#6B7280",fontWeight:600},children:[g.recordsProcessed.toLocaleString()," records processed"]}),g.errorMsg&&y.jsx("div",{"data-loc":"client/src/pages/Settings.tsx:125",style:{fontSize:"0.75rem",color:"#E3000B",fontFamily:"monospace",background:"#FEF2F2",borderRadius:"0.5rem",padding:"0.5rem"},children:g.errorMsg})]}):y.jsx("div",{"data-loc":"client/src/pages/Settings.tsx:129",style:{fontSize:"0.8rem",color:"#9CA3AF",fontWeight:600},children:"No sync history yet."}),y.jsxs("div",{"data-loc":"client/src/pages/Settings.tsx:132",style:{marginTop:"1rem",padding:"0.75rem",background:"#EFF6FF",borderRadius:"0.75rem",display:"flex",alignItems:"flex-start",gap:"0.5rem"},children:[y.jsx(b3,{"data-loc":"client/src/pages/Settings.tsx:133",size:14,color:"#006CB7",style:{flexShrink:0,marginTop:"0.1rem"}}),y.jsx("div",{"data-loc":"client/src/pages/Settings.tsx:134",style:{fontSize:"0.75rem",color:"#1e40af",fontWeight:600,lineHeight:1.5},children:"Automatic daily sync runs at 02:00 UTC to keep the database current."})]})]}),y.jsxs("div",{"data-loc":"client/src/pages/Settings.tsx:141",className:"lego-card lego-card-green",style:{padding:"1.5rem",gridColumn:"1 / -1"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Settings.tsx:142",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.75rem"},children:[y.jsx(lh,{"data-loc":"client/src/pages/Settings.tsx:143",size:18,color:"#00A650"}),y.jsx("h2",{"data-loc":"client/src/pages/Settings.tsx:144",style:{fontFamily:"Nunito, sans-serif",fontWeight:900,fontSize:"1rem",color:"#1A1A2E",margin:0},children:"Sync Rebrickable Database"})]}),y.jsx("p",{"data-loc":"client/src/pages/Settings.tsx:146",style:{fontSize:"0.8rem",color:"#6B7280",fontWeight:600,lineHeight:1.6,marginBottom:"1.25rem"},children:"Downloads official LEGO data from Rebrickable CSV files. A full sync can take several minutes. Select datasets to sync:"}),y.jsx("div",{"data-loc":"client/src/pages/Settings.tsx:150",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"0.5rem",marginBottom:"1.25rem"},children:Sk.map(b=>y.jsxs("label",{"data-loc":"client/src/pages/Settings.tsx:152",style:{display:"flex",alignItems:"center",gap:"0.5rem",cursor:"pointer",padding:"0.5rem 0.75rem",borderRadius:"0.5rem",background:r.includes(b.key)?"#D1FAE5":"#F0F2F5",transition:"background 0.15s"},children:[y.jsx("input",{"data-loc":"client/src/pages/Settings.tsx:153",type:"checkbox",checked:r.includes(b.key),onChange:()=>p(b.key),style:{accentColor:"#00A650"}}),y.jsx("span",{"data-loc":"client/src/pages/Settings.tsx:159",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,fontSize:"0.8rem",color:r.includes(b.key)?"#065f46":"#6B7280"},children:b.label})]},b.key))}),y.jsxs("div",{"data-loc":"client/src/pages/Settings.tsx:164",style:{display:"flex",gap:"0.75rem",flexWrap:"wrap"},children:[y.jsxs("button",{"data-loc":"client/src/pages/Settings.tsx:165",onClick:()=>{l([]),m.mutate({partial:r})},disabled:m.isPending||r.length===0,className:"lego-btn lego-btn-green",style:{opacity:m.isPending||r.length===0?.6:1},children:[y.jsx(lh,{"data-loc":"client/src/pages/Settings.tsx:171",size:15,style:{animation:m.isPending?"spin 1s linear infinite":"none"}}),m.isPending?"Syncing…":"Start Sync"]}),y.jsx("button",{"data-loc":"client/src/pages/Settings.tsx:174",onClick:()=>{l([]),m.mutate({partial:Sk.map(b=>b.key)})},disabled:m.isPending,className:"lego-btn lego-btn-outline",style:{opacity:m.isPending?.6:1},children:"Full Sync (All Datasets)"})]}),o.length>0&&y.jsx("div",{"data-loc":"client/src/pages/Settings.tsx:185",style:{marginTop:"1rem",background:"#1A1A2E",borderRadius:"0.75rem",padding:"1rem",fontFamily:"monospace",fontSize:"0.78rem",maxHeight:160,overflowY:"auto"},children:o.map((b,w)=>y.jsx("div",{"data-loc":"client/src/pages/Settings.tsx:187",style:{color:b.startsWith("✓")?"#4ade80":"#f87171"},children:b},w))})]})]})]})}function sue({item:e,type:t,onAdd:n,isAuthenticated:r}){return y.jsxs("div",{"data-loc":"client/src/pages/Search.tsx:10",style:{display:"flex",alignItems:"center",gap:"1rem",padding:"0.875rem 1.25rem",borderBottom:"1px solid #F0F2F5"},onMouseEnter:a=>a.currentTarget.style.background="#F8F9FF",onMouseLeave:a=>a.currentTarget.style.background="transparent",children:[y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:14",style:{width:48,height:48,flexShrink:0,background:"#F0F2F5",borderRadius:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:e.imgUrl?y.jsx("img",{"data-loc":"client/src/pages/Search.tsx:16",src:e.imgUrl,alt:e.name,style:{width:"100%",height:"100%",objectFit:"contain"}}):t==="sets"?y.jsx(wn,{"data-loc":"client/src/pages/Search.tsx:18",size:20,color:"#9
415CA3AF"}):y.jsx(Qr,{"data-loc":"client/src/pages/Search.tsx:20",size:20,color:"#9CA3AF"})}),y.jsxs("div",{"data-loc":"client/src/pages/Search.tsx:23",style:{flex:1,minWidth:0},children:[y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:24",style:{fontSize:"0.7rem",fontWeight:700,color:"#9CA3AF",fontFamily:"Nunito, sans-serif"},children:e.setNum??e.figNum}),t==="sets"?y.jsx(kt,{"data-loc":"client/src/pages/Search.tsx:26",href:`/sets/${e.setNum}`,children:y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:27",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.9rem",color:"#1A1A2E",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:"pointer"},onMouseEnter:a=>a.currentTarget.style.color="#006CB7",onMouseLeave:a=>a.currentTarget.style.color="#1A1A2E",children:e.name})}):y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:33",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.9rem",color:"#1A1A2E",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name}),y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:35",style:{fontSize:"0.72rem",color:"#6B7280",fontWeight:600},children:t==="sets"?`${e.year??"—"} · ${e.numParts?.toLocaleString()??0} parts`:`${e.numParts??0} parts`})]}),r&&y.jsxs("button",{"data-loc":"client/src/pages/Search.tsx:40",onClick:n,className:"lego-btn lego-btn-green",style:{padding:"0.35rem 0.75rem",fontSize:"0.75rem",flexShrink:0},children:[y.jsx(am,{"data-loc":"client/src/pages/Search.tsx:41",size:13})," Add"]})]})}function lue({item:e,type:t,onAdd:n}){const r=e.set_num??e.fig_num,a=e.set_img_url??e.img_url;return y.jsxs("div",{"data-loc":"client/src/pages/Search.tsx:52",style:{display:"flex",alignItems:"center",gap:"1rem",padding:"0.875rem 1.25rem",borderBottom:"1px solid #F0F2F5"},onMouseEnter:o=>o.currentTarget.style.background="#F8F9FF",onMouseLeave:o=>o.currentTarget.style.background="transparent",children:[y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:56",style:{width:48,height:48,flexShrink:0,background:"#F0F2F5",borderRadius:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:a?y.jsx("img",{"data-loc":"client/src/pages/Search.tsx:57",src:a,alt:e.name,style:{width:"100%",height:"100%",objectFit:"contain"}}):t==="sets"?y.jsx(wn,{"data-loc":"client/src/pages/Search.tsx:57",size:20,color:"#9CA3AF"}):y.jsx(Qr,{"data-loc":"client/src/pages/Search.tsx:57",size:20,color:"#9CA3AF"})}),y.jsxs("div",{"data-loc":"client/src/pages/Search.tsx:59",style:{flex:1,minWidth:0},children:[y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:60",style:{fontSize:"0.7rem",fontWeight:700,color:"#9CA3AF",fontFamily:"Nunito, sans-serif"},children:r}),y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:61",style:{fontFamily:"Nunito, sans-serif",fontWeight:800,fontSize:"0.9rem",color:"#1A1A2E",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name}),y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:62",style:{fontSize:"0.72rem",color:"#6B7280",fontWeight:600},children:t==="sets"?`${e.year??"—"} · ${e.num_parts?.toLocaleString()??0} parts`:`${e.num_parts??0} parts`})]}),y.jsxs("button",{"data-loc":"client/src/pages/Search.tsx:66",onClick:n,className:"lego-btn lego-btn-blue",style:{padding:"0.35rem 0.75rem",fontSize:"0.75rem",flexShrink:0},children:[y.jsx(am,{"data-loc":"client/src/pages/Search.tsx:67",size:13})," Add"]})]})}function cue(){const{isAuthenticated:e}=kr(),[t,n]=D.useState(""),[r,a]=D.useState("sets"),[o,l]=D.useState(""),c=D.useRef(void 0),{data:f}=je.sets.search.useQuery({query:o||void 0,pageSize:8},{enabled:r==="sets"&&o.length>=2}),{data:d}=je.minifigs.search.useQuery({query:o||void 0,pageSize:8},{enabled:r==="minifigs"&&o.length>=2}),{data:m}=je.rebrickable.search.useQuery({query:o,type:r},{enabled:e&&o.length>=2}),p=je.collection.addSet.useMutation({onSuccess:()=>ze.success("Set added to collection!"),onError:S=>ze.error(S.message)}),g=je.collection.addMinifig.useMutation({onSuccess:()=>ze.success("Minifigure added to collection!"),onError:S=>ze.error(S.message)}),b=S=>{n(S),clearTimeout(c.current),c.current=setTimeout(()=>l(S),350)},w=r==="sets"?f?.items??[]:d?.items??[];return y.jsxs("div",{"data-loc":"client/src/pages/Search.tsx:111",style:{padding:"2rem",maxWidth:900,margin:"0 auto"},className:"fade-in",children:[y.jsxs("div",{"data-loc":"client/src/pages/Search.tsx:113",style:{marginBottom:"1.5rem"},children:[y.jsx("h1",{"data-loc":"client/src/pages/Search.tsx:114",className:"page-title",children:"Search"}),y.jsx("p",{"data-loc":"client/src/pages/Search.tsx:115",style:{color:"#6B7280",fontWeight:600,fontSize:"0.875rem",marginTop:"0.25rem"},children:"Search the local database or live Rebrickable catalogue"})]}),y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:121",style:{display:"flex",gap:"0.5rem",marginBottom:"1.25rem"},children:["sets","minifigs"].map(S=>y.jsxs("button",{"data-loc":"client/src/pages/Search.tsx:123",onClick:()=>a(S),className:`lego-btn ${r===S?"lego-btn-blue":"lego-btn-outline"}`,children:[S==="sets"?y.jsx(wn,{"data-loc":"client/src/pages/Search.tsx:128",size:15}):y.jsx(Qr,{"data-loc":"client/src/pages/Search.tsx:128",size:15}),S==="sets"?"Sets":"Minifigures"]},S))}),y.jsxs("div",{"data-loc":"client/src/pages/Search.tsx:135",className:"lego-search",style:{marginBottom:"1.5rem"},children:[y.jsx($h,{"data-loc":"client/src/pages/Search.tsx:136",size:18,color:"#9
415CA3AF"}),y.jsx("input",{"data-loc":"client/src/pages/Search.tsx:137",type:"text",placeholder:r==="sets"?"Search by set name or number…":"Search by minifigure name or ID…",value:t,onChange:S=>b(S.target.value),autoFocus:!0})]}),o.length<2?y.jsxs("div",{"data-loc":"client/src/pages/Search.tsx:147",className:"lego-empty",style:{padding:"4rem 1rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:148",className:"lego-empty-icon",children:y.jsx($h,{"data-loc":"client/src/pages/Search.tsx:148",size:32,color:"#9CA3AF"})}),y.jsx("p",{"data-loc":"client/src/pages/Search.tsx:149",style:{fontFamily:"Nunito, sans-serif",fontWeight:700,color:"#6B7280"},children:"Start typing to search"}),y.jsx("p",{"data-loc":"client/src/pages/Search.tsx:150",style:{fontSize:"0.8rem",color:"#9CA3AF"},children:"Enter at least 2 characters"})]}):y.jsxs("div",{"data-loc":"client/src/pages/Search.tsx:153",style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[y.jsxs("div",{"data-loc":"client/src/pages/Search.tsx:155",children:[y.jsxs("div",{"data-loc":"client/src/pages/Search.tsx:156",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"0.75rem"},children:[y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:157",className:"section-label",children:"Local Database"}),y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:158",style:{flex:1,height:1,background:"#E8EAED"}}),y.jsxs("span",{"data-loc":"client/src/pages/Search.tsx:159",style:{fontSize:"0.72rem",color:"#9CA3AF",fontWeight:600},children:[w.length," results"]})]}),w.length===0?y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:162",style:{padding:"1rem",color:"#9CA3AF",fontSize:"0.8rem",fontWeight:600,fontFamily:"Nunito, sans-serif"},children:"No local results. Try syncing the database in Settings."}):y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:166",className:"lego-card",style:{padding:0,overflow:"hidden"},children:w.map(S=>y.jsx(sue,{"data-loc":"client/src/pages/Search.tsx:168",item:S,type:r,isAuthenticated:e,onAdd:()=>r==="sets"?p.mutate({setNum:S.setNum,status:"owned"}):g.mutate({figNum:S.figNum})},S.setNum??S.figNum))})]}),e&&y.jsxs("div",{"data-loc":"client/src/pages/Search.tsx:184",children:[y.jsxs("div",{"data-loc":"client/src/pages/Search.tsx:185",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"0.75rem"},children:[y.jsx(CU,{"data-loc":"client/src/pages/Search.tsx:186",size:14,color:"#F5A800"}),y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:187",className:"section-label",style:{color:"#F5A800"},children:"Rebrickable Live"}),y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:188",style:{flex:1,height:1,background:"#E8EAED"}}),m?.error?y.jsx("span",{"data-loc":"client/src/pages/Search.tsx:190",style:{fontSize:"0.72rem",color:"#E3000B",fontWeight:600},children:m.error}):y.jsxs("span",{"data-loc":"client/src/pages/Search.tsx:192",style:{fontSize:"0.72rem",color:"#9CA3AF",fontWeight:600},children:[m?.results.length??0," results"]})]}),!m?.error&&(m?.results.length??0)===0?y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:196",style:{padding:"1rem",color:"#9CA3AF",fontSize:"0.8rem",fontWeight:600,fontFamily:"Nunito, sans-serif"},children:m?"No live results found.":"Configure your Rebrickable API key in Settings to enable live search."}):y.jsx("div",{"data-loc":"client/src/pages/Search.tsx:200",className:"lego-card",style:{padding:0,overflow:"hidden"},children:m?.results.map(S=>y.jsx(lue,{"data-loc":"client/src/pages/Search.tsx:202",item:S,type:r,onAdd:()=>r==="sets"?p.mutate({setNum:S.set_num,status:"owned"}):g.mutate({figNum:S.fig_num})},S.set_num??S.fig_num))})]})]})]})}function uue(){return y.jsx(tH,{"data-loc":"client/src/App.tsx:22",children:y.jsxs(QU,{"data-loc":"client/src/App.tsx:23",children:[y.jsx(tr,{"data-loc":"client/src/App.tsx:24",path:"/",component:Kse}),y.jsx(tr,{"data-loc":"client/src/App.tsx:25",path:"/sets",component:Qse}),y.jsx(tr,{"data-loc":"client/src/App.tsx:26",path:"/sets/:setNum",component:Jse}),y.jsx(tr,{"data-loc":"client/src/App.tsx:27",path:"/minifigs",component:tle}),y.jsx(tr,{"data-loc":"client/src/App.tsx:28",path:"/parts",component:rle}),y.jsx(tr,{"data-loc":"client/src/App.tsx:29",path:"/collection",component:eue}),y.jsx(tr,{"data-loc":"client/src/App.tsx:30",path:"/alerts",component:rue}),y.jsx(tr,{"data-loc":"client/src/App.tsx:31",path:"/suggestions",component:aue}),y.jsx(tr,{"data-loc":"client/src/App.tsx:32",path:"/import",component:iue}),y.jsx(tr,{"data-loc":"client/src/App.tsx:33",path:"/settings",component:oue}),y.jsx(tr,{"data-loc":"client/src/App.tsx:34",path:"/search",component:cue}),y.jsx(tr,{"data-loc":"client/src/App.tsx:35",path:"/404",component:oC}),y.jsx(tr,{"data-loc":"client/src/App.tsx:36",component:oC})]})})}function fue(){return y.jsx(XU,{"data-loc":"client/src/App.tsx:44",children:y.jsx(JU,{"data-loc":"client/src/App.tsx:45",defaultTheme:"dark",children:y.jsxs(rU,{"data-loc":"client/src/App.tsx:46",children:[y.jsx(pq,{"data-loc":"client/src/App.tsx:47",theme:"dark",position:"bottom-right"}),y.jsx(uue,{"data-loc":"client/src/App.tsx:48"})]})})})}const Up=new mI,P4=e=>
415{!(e instanceof hl)||typeof window>"u"||!(e.message===Q$)||(window.location.href=om())};Up.getQueryCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.query.state.error;P4(t),console.error("[API Query Error]",t)}});Up.getMutationCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.mutation.state.error;P4(t),console.error("[API Mutation Error]",t)}});const due=je.createClient({links:[A$({url:"/api/trpc",transformer:ri,fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});nL.createRoot(document.getElementById("root")).render(y.jsx(je.Provider,{"data-loc":"client/src/main.tsx:56",client:due,queryClient:Up,children:y.jsx(yI,{"data-loc":"client/src/main.tsx:57",client:Up,children:y.jsx(fue,{"data-loc":"client/src/main.tsx:58"})})}));

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.