@nestpilot/mcp-app 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +350 -0
- package/dist/cli/doctor.d.ts +1 -0
- package/dist/cli/doctor.js +214 -0
- package/dist/cli/export-import.d.ts +6 -0
- package/dist/cli/export-import.js +132 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +168 -0
- package/dist/cli/init.d.ts +1 -0
- package/dist/cli/init.js +171 -0
- package/dist/host-configs/cowork.json +11 -0
- package/dist/host-configs/goose.yaml +22 -0
- package/dist/host-configs/openclaw-manifest.json +16 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +128 -0
- package/dist/mcp-app.html +155 -0
- package/dist/nestpilot-client.d.ts +44 -0
- package/dist/nestpilot-client.js +160 -0
- package/dist/planner.html +222 -0
- package/dist/server.d.ts +19 -0
- package/dist/server.js +245 -0
- package/dist/skills/SKILL.md +162 -0
- package/dist/skills/manifest.json +51 -0
- package/dist/skills/tools/activate_plan.md +36 -0
- package/dist/skills/tools/coach.md +59 -0
- package/dist/skills/tools/comprehensive_plan.md +65 -0
- package/dist/skills/tools/create_plan.md +59 -0
- package/dist/skills/tools/create_saved_plan.md +49 -0
- package/dist/skills/tools/delete_plan.md +42 -0
- package/dist/skills/tools/delete_scenario.md +38 -0
- package/dist/skills/tools/generate_proposal.md +63 -0
- package/dist/skills/tools/generate_retirement_report.md +50 -0
- package/dist/skills/tools/get_active_plan.md +44 -0
- package/dist/skills/tools/get_baseline_forecast.md +47 -0
- package/dist/skills/tools/get_plan.md +44 -0
- package/dist/skills/tools/get_plan_components.md +50 -0
- package/dist/skills/tools/get_scenario.md +46 -0
- package/dist/skills/tools/list_plans.md +44 -0
- package/dist/skills/tools/list_scenarios.md +42 -0
- package/dist/skills/tools/medicare-guardian.md +59 -0
- package/dist/skills/tools/nestpilot_run_plan.md +61 -0
- package/dist/skills/tools/optimize_roth_conversion.md +107 -0
- package/dist/skills/tools/optimize_ss_claiming.md +30 -0
- package/dist/skills/tools/rename_plan.md +34 -0
- package/dist/skills/tools/retirement-planner.md +55 -0
- package/dist/skills/tools/run_forecast.md +65 -0
- package/dist/skills/tools/run_saved_forecast.md +52 -0
- package/dist/skills/tools/run_scenario.md +66 -0
- package/dist/skills/tools/save_plan.md +48 -0
- package/dist/skills/tools/save_scenario.md +50 -0
- package/dist/skills/tools/verify_forecast.md +43 -0
- package/dist/src/config.d.ts +20 -0
- package/dist/src/config.js +44 -0
- package/dist/src/contracts/provenance.d.ts +37 -0
- package/dist/src/contracts/provenance.js +71 -0
- package/dist/src/contracts/tool-contract-registry.d.ts +43 -0
- package/dist/src/contracts/tool-contract-registry.js +282 -0
- package/dist/src/local/cloud-compute-client.d.ts +55 -0
- package/dist/src/local/cloud-compute-client.js +135 -0
- package/dist/src/local/encryption.d.ts +24 -0
- package/dist/src/local/encryption.js +105 -0
- package/dist/src/local/keychain.d.ts +41 -0
- package/dist/src/local/keychain.js +236 -0
- package/dist/src/local/local-config.d.ts +34 -0
- package/dist/src/local/local-config.js +61 -0
- package/dist/src/local/local-data-layer.d.ts +20 -0
- package/dist/src/local/local-data-layer.js +15 -0
- package/dist/src/local/local-plan-store.d.ts +66 -0
- package/dist/src/local/local-plan-store.js +195 -0
- package/dist/src/local/pii-scrubber.d.ts +26 -0
- package/dist/src/local/pii-scrubber.js +219 -0
- package/dist/src/policy/policy-engine.d.ts +44 -0
- package/dist/src/policy/policy-engine.js +119 -0
- package/dist/src/rate-limit.d.ts +17 -0
- package/dist/src/rate-limit.js +41 -0
- package/dist/src/security.d.ts +19 -0
- package/dist/src/security.js +118 -0
- package/dist/src/skills/index.d.ts +12 -0
- package/dist/src/skills/index.js +16 -0
- package/dist/src/skills/retirement-pack-v1.d.ts +28 -0
- package/dist/src/skills/retirement-pack-v1.js +295 -0
- package/dist/src/skills/skill-executor.d.ts +65 -0
- package/dist/src/skills/skill-executor.js +174 -0
- package/dist/src/skills/skill-manifest-schema.d.ts +337 -0
- package/dist/src/skills/skill-manifest-schema.js +94 -0
- package/dist/src/skills/skill-registry.d.ts +71 -0
- package/dist/src/skills/skill-registry.js +116 -0
- package/dist/src/telemetry.d.ts +12 -0
- package/dist/src/telemetry.js +59 -0
- package/dist/src/types.d.ts +46 -0
- package/dist/src/types.js +4 -0
- package/dist/tools/agent-tools.d.ts +12 -0
- package/dist/tools/agent-tools.js +141 -0
- package/dist/tools/forecast-management-tools.d.ts +9 -0
- package/dist/tools/forecast-management-tools.js +133 -0
- package/dist/tools/local-plan-tools.d.ts +8 -0
- package/dist/tools/local-plan-tools.js +357 -0
- package/dist/tools/mcp-helpers.d.ts +52 -0
- package/dist/tools/mcp-helpers.js +177 -0
- package/dist/tools/medicare-tools.d.ts +3 -0
- package/dist/tools/medicare-tools.js +162 -0
- package/dist/tools/optimize-roth-tools-test.d.ts +2 -0
- package/dist/tools/optimize-roth-tools-test.js +36 -0
- package/dist/tools/optimize-roth-tools.d.ts +3 -0
- package/dist/tools/optimize-roth-tools.js +818 -0
- package/dist/tools/plan-management-tools.d.ts +3 -0
- package/dist/tools/plan-management-tools.js +196 -0
- package/dist/tools/planning-tools.d.ts +3 -0
- package/dist/tools/planning-tools.js +290 -0
- package/dist/tools/proposal-tools.d.ts +3 -0
- package/dist/tools/proposal-tools.js +428 -0
- package/dist/tools/report-tools.d.ts +3 -0
- package/dist/tools/report-tools.js +245 -0
- package/dist/tools/scenario-management-tools.d.ts +3 -0
- package/dist/tools/scenario-management-tools.js +136 -0
- package/dist/views/verification-packet.html +211 -0
- package/host-configs/cowork.json +11 -0
- package/host-configs/goose.yaml +22 -0
- package/host-configs/openclaw-manifest.json +16 -0
- package/package.json +66 -0
- package/skills/SKILL.md +162 -0
- package/skills/manifest.json +51 -0
- package/skills/tools/activate_plan.md +36 -0
- package/skills/tools/coach.md +59 -0
- package/skills/tools/comprehensive_plan.md +65 -0
- package/skills/tools/create_plan.md +59 -0
- package/skills/tools/create_saved_plan.md +49 -0
- package/skills/tools/delete_plan.md +42 -0
- package/skills/tools/delete_scenario.md +38 -0
- package/skills/tools/generate_proposal.md +63 -0
- package/skills/tools/generate_retirement_report.md +50 -0
- package/skills/tools/get_active_plan.md +44 -0
- package/skills/tools/get_baseline_forecast.md +47 -0
- package/skills/tools/get_plan.md +44 -0
- package/skills/tools/get_plan_components.md +50 -0
- package/skills/tools/get_scenario.md +46 -0
- package/skills/tools/list_plans.md +44 -0
- package/skills/tools/list_scenarios.md +42 -0
- package/skills/tools/medicare-guardian.md +59 -0
- package/skills/tools/nestpilot_run_plan.md +61 -0
- package/skills/tools/optimize_roth_conversion.md +107 -0
- package/skills/tools/optimize_ss_claiming.md +30 -0
- package/skills/tools/rename_plan.md +34 -0
- package/skills/tools/retirement-planner.md +55 -0
- package/skills/tools/run_forecast.md +65 -0
- package/skills/tools/run_saved_forecast.md +52 -0
- package/skills/tools/run_scenario.md +66 -0
- package/skills/tools/save_plan.md +48 -0
- package/skills/tools/save_scenario.md +50 -0
- package/skills/tools/verify_forecast.md +43 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<meta name="color-scheme" content="light dark">
|
|
7
|
+
<title>NestPilot Verification Packet</title>
|
|
8
|
+
<script type="module" crossorigin>var pL=Object.defineProperty;var mL=(e,t,r)=>t in e?pL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Wt=(e,t,r)=>mL(e,typeof t!="symbol"?t+"":t,r);function vL(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&n(u)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wh={exports:{}},cs={},_h={exports:{}},Be={};/**
|
|
9
|
+
* @license React
|
|
10
|
+
* react.production.min.js
|
|
11
|
+
*
|
|
12
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the MIT license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/var t$;function hL(){if(t$)return Be;t$=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.iterator;function h(D){return D===null||typeof D!="object"?null:(D=m&&D[m]||D["@@iterator"],typeof D=="function"?D:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,_={};function x(D,G,Ie){this.props=D,this.context=G,this.refs=_,this.updater=Ie||y}x.prototype.isReactComponent={},x.prototype.setState=function(D,G){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,G,"setState")},x.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function $(){}$.prototype=x.prototype;function E(D,G,Ie){this.props=D,this.context=G,this.refs=_,this.updater=Ie||y}var A=E.prototype=new $;A.constructor=E,w(A,x.prototype),A.isPureReactComponent=!0;var I=Array.isArray,j=Object.prototype.hasOwnProperty,z={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function M(D,G,Ie){var Se,$e={},Pe=null,Me=null;if(G!=null)for(Se in G.ref!==void 0&&(Me=G.ref),G.key!==void 0&&(Pe=""+G.key),G)j.call(G,Se)&&!N.hasOwnProperty(Se)&&($e[Se]=G[Se]);var We=arguments.length-2;if(We===1)$e.children=Ie;else if(1<We){for(var F=Array(We),Oe=0;Oe<We;Oe++)F[Oe]=arguments[Oe+2];$e.children=F}if(D&&D.defaultProps)for(Se in We=D.defaultProps,We)$e[Se]===void 0&&($e[Se]=We[Se]);return{$$typeof:e,type:D,key:Pe,ref:Me,props:$e,_owner:z.current}}function K(D,G){return{$$typeof:e,type:D.type,key:G,ref:D.ref,props:D.props,_owner:D._owner}}function se(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function ae(D){var G={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(Ie){return G[Ie]})}var W=/\/+/g;function _e(D,G){return typeof D=="object"&&D!==null&&D.key!=null?ae(""+D.key):G.toString(36)}function xe(D,G,Ie,Se,$e){var Pe=typeof D;(Pe==="undefined"||Pe==="boolean")&&(D=null);var Me=!1;if(D===null)Me=!0;else switch(Pe){case"string":case"number":Me=!0;break;case"object":switch(D.$$typeof){case e:case t:Me=!0}}if(Me)return Me=D,$e=$e(Me),D=Se===""?"."+_e(Me,0):Se,I($e)?(Ie="",D!=null&&(Ie=D.replace(W,"$&/")+"/"),xe($e,G,Ie,"",function(Oe){return Oe})):$e!=null&&(se($e)&&($e=K($e,Ie+(!$e.key||Me&&Me.key===$e.key?"":(""+$e.key).replace(W,"$&/")+"/")+D)),G.push($e)),1;if(Me=0,Se=Se===""?".":Se+":",I(D))for(var We=0;We<D.length;We++){Pe=D[We];var F=Se+_e(Pe,We);Me+=xe(Pe,G,Ie,F,$e)}else if(F=h(D),typeof F=="function")for(D=F.call(D),We=0;!(Pe=D.next()).done;)Pe=Pe.value,F=Se+_e(Pe,We++),Me+=xe(Pe,G,Ie,F,$e);else if(Pe==="object")throw G=String(D),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.");return Me}function Ce(D,G,Ie){if(D==null)return D;var Se=[],$e=0;return xe(D,Se,"","",function(Pe){return G.call(Ie,Pe,$e++)}),Se}function Te(D){if(D._status===-1){var G=D._result;G=G(),G.then(function(Ie){(D._status===0||D._status===-1)&&(D._status=1,D._result=Ie)},function(Ie){(D._status===0||D._status===-1)&&(D._status=2,D._result=Ie)}),D._status===-1&&(D._status=0,D._result=G)}if(D._status===1)return D._result.default;throw D._result}var ge={current:null},X={transition:null},oe={ReactCurrentDispatcher:ge,ReactCurrentBatchConfig:X,ReactCurrentOwner:z};function B(){throw Error("act(...) is not supported in production builds of React.")}return Be.Children={map:Ce,forEach:function(D,G,Ie){Ce(D,function(){G.apply(this,arguments)},Ie)},count:function(D){var G=0;return Ce(D,function(){G++}),G},toArray:function(D){return Ce(D,function(G){return G})||[]},only:function(D){if(!se(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},Be.Component=x,Be.Fragment=r,Be.Profiler=i,Be.PureComponent=E,Be.StrictMode=n,Be.Suspense=d,Be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,Be.act=B,Be.cloneElement=function(D,G,Ie){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var Se=w({},D.props),$e=D.key,Pe=D.ref,Me=D._owner;if(G!=null){if(G.ref!==void 0&&(Pe=G.ref,Me=z.current),G.key!==void 0&&($e=""+G.key),D.type&&D.type.defaultProps)var We=D.type.defaultProps;for(F in G)j.call(G,F)&&!N.hasOwnProperty(F)&&(Se[F]=G[F]===void 0&&We!==void 0?We[F]:G[F])}var F=arguments.length-2;if(F===1)Se.children=Ie;else if(1<F){We=Array(F);for(var Oe=0;Oe<F;Oe++)We[Oe]=arguments[Oe+2];Se.children=We}return{$$typeof:e,type:D.type,key:$e,ref:Pe,props:Se,_owner:Me}},Be.createContext=function(D){return D={$$typeof:u,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:a,_context:D},D.Consumer=D},Be.createElement=M,Be.createFactory=function(D){var G=M.bind(null,D);return G.type=D,G},Be.createRef=function(){return{current:null}},Be.forwardRef=function(D){return{$$typeof:l,render:D}},Be.isValidElement=se,Be.lazy=function(D){return{$$typeof:p,_payload:{_status:-1,_result:D},_init:Te}},Be.memo=function(D,G){return{$$typeof:f,type:D,compare:G===void 0?null:G}},Be.startTransition=function(D){var G=X.transition;X.transition={};try{D()}finally{X.transition=G}},Be.unstable_act=B,Be.useCallback=function(D,G){return ge.current.useCallback(D,G)},Be.useContext=function(D){return ge.current.useContext(D)},Be.useDebugValue=function(){},Be.useDeferredValue=function(D){return ge.current.useDeferredValue(D)},Be.useEffect=function(D,G){return ge.current.useEffect(D,G)},Be.useId=function(){return ge.current.useId()},Be.useImperativeHandle=function(D,G,Ie){return ge.current.useImperativeHandle(D,G,Ie)},Be.useInsertionEffect=function(D,G){return ge.current.useInsertionEffect(D,G)},Be.useLayoutEffect=function(D,G){return ge.current.useLayoutEffect(D,G)},Be.useMemo=function(D,G){return ge.current.useMemo(D,G)},Be.useReducer=function(D,G,Ie){return ge.current.useReducer(D,G,Ie)},Be.useRef=function(D){return ge.current.useRef(D)},Be.useState=function(D){return ge.current.useState(D)},Be.useSyncExternalStore=function(D,G,Ie){return ge.current.useSyncExternalStore(D,G,Ie)},Be.useTransition=function(){return ge.current.useTransition()},Be.version="18.3.1",Be}var r$;function lu(){return r$||(r$=1,_h.exports=hL()),_h.exports}/**
|
|
17
|
+
* @license React
|
|
18
|
+
* react-jsx-runtime.production.min.js
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the MIT license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*/var n$;function gL(){if(n$)return cs;n$=1;var e=lu(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(l,d,f){var p,m={},h=null,y=null;f!==void 0&&(h=""+f),d.key!==void 0&&(h=""+d.key),d.ref!==void 0&&(y=d.ref);for(p in d)n.call(d,p)&&!a.hasOwnProperty(p)&&(m[p]=d[p]);if(l&&l.defaultProps)for(p in d=l.defaultProps,d)m[p]===void 0&&(m[p]=d[p]);return{$$typeof:t,type:l,key:h,ref:y,props:m,_owner:i.current}}return cs.Fragment=r,cs.jsx=u,cs.jsxs=u,cs}var i$;function yL(){return i$||(i$=1,wh.exports=gL()),wh.exports}var ee=yL(),k=lu();const bL=pa(k),wL=vL({__proto__:null,default:bL},[k]);function H(e,t,r){function n(l,d){var f;Object.defineProperty(l,"_zod",{value:l._zod??{},enumerable:!1}),(f=l._zod).traits??(f.traits=new Set),l._zod.traits.add(e),t(l,d);for(const p in u.prototype)p in l||Object.defineProperty(l,p,{value:u.prototype[p].bind(l)});l._zod.constr=u,l._zod.def=d}const i=(r==null?void 0:r.Parent)??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function u(l){var d;const f=r!=null&&r.Parent?new a:this;n(f,l),(d=f._zod).deferred??(d.deferred=[]);for(const p of f._zod.deferred)p();return f}return Object.defineProperty(u,"init",{value:n}),Object.defineProperty(u,Symbol.hasInstance,{value:l=>{var d,f;return r!=null&&r.Parent&&l instanceof r.Parent?!0:(f=(d=l==null?void 0:l._zod)==null?void 0:d.traits)==null?void 0:f.has(e)}}),Object.defineProperty(u,"name",{value:e}),u}class Os extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const EE={};function ua(e){return EE}function _L(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,i])=>t.indexOf(+n)===-1).map(([n,i])=>i)}function xL(e,t){return typeof t=="bigint"?t.toString():t}function cb(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function db(e){return e==null}function fb(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function kL(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,a=Number.parseInt(e.toFixed(i).replace(".","")),u=Number.parseInt(t.toFixed(i).replace(".",""));return a%u/10**i}function ft(e,t,r){Object.defineProperty(e,t,{get(){{const n=r();return e[t]=n,n}},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function qf(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function ds(e){return JSON.stringify(e)}const zE=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Rd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const SL=cb(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Ud(e){if(Rd(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(Rd(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}const $L=new Set(["string","number","symbol"]);function Xs(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function oo(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r!=null&&r.parent)&&(n._zod.parent=e),n}function we(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function IL(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const PL={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function OL(e,t){const r={},n=e._zod.def;for(const i in t){if(!(i in n.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(r[i]=n.shape[i])}return oo(e,{...e._zod.def,shape:r,checks:[]})}function EL(e,t){const r={...e._zod.def.shape},n=e._zod.def;for(const i in t){if(!(i in n.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&delete r[i]}return oo(e,{...e._zod.def,shape:r,checks:[]})}function zL(e,t){if(!Ud(t))throw new Error("Invalid input to extend: expected a plain object");const r={...e._zod.def,get shape(){const n={...e._zod.def.shape,...t};return qf(this,"shape",n),n},checks:[]};return oo(e,r)}function AL(e,t){return oo(e,{...e._zod.def,get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return qf(this,"shape",r),r},catchall:t._zod.def.catchall,checks:[]})}function jL(e,t,r){const n=t._zod.def.shape,i={...n};if(r)for(const a in r){if(!(a in n))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=e?new e({type:"optional",innerType:n[a]}):n[a])}else for(const a in n)i[a]=e?new e({type:"optional",innerType:n[a]}):n[a];return oo(t,{...t._zod.def,shape:i,checks:[]})}function CL(e,t,r){const n=t._zod.def.shape,i={...n};if(r)for(const a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(const a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return oo(t,{...t._zod.def,shape:i,checks:[]})}function Is(e,t=0){var r;for(let n=t;n<e.issues.length;n++)if(((r=e.issues[n])==null?void 0:r.continue)!==!0)return!0;return!1}function Ua(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function nd(e){return typeof e=="string"?e:e==null?void 0:e.message}function sa(e,t,r){var i,a,u,l,d,f;const n={...e,path:e.path??[]};if(!e.message){const p=nd((u=(a=(i=e.inst)==null?void 0:i._zod.def)==null?void 0:a.error)==null?void 0:u.call(a,e))??nd((l=t==null?void 0:t.error)==null?void 0:l.call(t,e))??nd((d=r.customError)==null?void 0:d.call(r,e))??nd((f=r.localeError)==null?void 0:f.call(r,e))??"Invalid input";n.message=p}return delete n.inst,delete n.continue,t!=null&&t.reportInput||delete n.input,n}function pb(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Es(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const AE=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,xL,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},jE=H("$ZodError",AE),CE=H("$ZodError",AE,{Parent:Error});function TL(e,t=r=>r.message){const r={},n=[];for(const i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}function NL(e,t){const r=t||function(a){return a.message},n={_errors:[]},i=a=>{for(const u of a.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(l=>i({issues:l}));else if(u.code==="invalid_key")i({issues:u.issues});else if(u.code==="invalid_element")i({issues:u.issues});else if(u.path.length===0)n._errors.push(r(u));else{let l=n,d=0;for(;d<u.path.length;){const f=u.path[d];d===u.path.length-1?(l[f]=l[f]||{_errors:[]},l[f]._errors.push(r(u))):l[f]=l[f]||{_errors:[]},l=l[f],d++}}};return i(e),n}const DL=e=>(t,r,n,i)=>{const a=n?Object.assign(n,{async:!1}):{async:!1},u=t._zod.run({value:r,issues:[]},a);if(u instanceof Promise)throw new Os;if(u.issues.length){const l=new((i==null?void 0:i.Err)??e)(u.issues.map(d=>sa(d,a,ua())));throw zE(l,i==null?void 0:i.callee),l}return u.value},ML=e=>async(t,r,n,i)=>{const a=n?Object.assign(n,{async:!0}):{async:!0};let u=t._zod.run({value:r,issues:[]},a);if(u instanceof Promise&&(u=await u),u.issues.length){const l=new((i==null?void 0:i.Err)??e)(u.issues.map(d=>sa(d,a,ua())));throw zE(l,i==null?void 0:i.callee),l}return u.value},TE=e=>(t,r,n)=>{const i=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new Os;return a.issues.length?{success:!1,error:new(e??jE)(a.issues.map(u=>sa(u,i,ua())))}:{success:!0,data:a.value}},NE=TE(CE),DE=e=>async(t,r,n)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(u=>sa(u,i,ua())))}:{success:!0,data:a.value}},RL=DE(CE),UL=/^[cC][^\s-]{8,}$/,LL=/^[0-9a-z]+$/,ZL=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,FL=/^[0-9a-vA-V]{20}$/,BL=/^[A-Za-z0-9]{27}$/,qL=/^[a-zA-Z0-9_-]{21}$/,WL=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,VL=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,a$=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,KL=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,HL="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function GL(){return new RegExp(HL,"u")}const JL=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,YL=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,XL=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,QL=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,eZ=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ME=/^[A-Za-z0-9_-]*$/,tZ=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,rZ=/^\+(?:[0-9]){6,14}[0-9]$/,RE="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",nZ=new RegExp(`^${RE}$`);function UE(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function iZ(e){return new RegExp(`^${UE(e)}$`)}function aZ(e){const t=UE({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-]\\d{2}:\\d{2})");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${RE}T(?:${n})$`)}const oZ=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},uZ=/^\d+$/,sZ=/^-?\d+(?:\.\d+)?/i,lZ=/true|false/i,cZ=/null/i,dZ=/^[^A-Z]*$/,fZ=/^[^a-z]*$/,Ur=H("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),LE={number:"number",bigint:"bigint",object:"date"},ZE=H("$ZodCheckLessThan",(e,t)=>{Ur.init(e,t);const r=LE[typeof t.value];e._zod.onattach.push(n=>{const i=n._zod.bag,a=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),FE=H("$ZodCheckGreaterThan",(e,t)=>{Ur.init(e,t);const r=LE[typeof t.value];e._zod.onattach.push(n=>{const i=n._zod.bag,a=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),pZ=H("$ZodCheckMultipleOf",(e,t)=>{Ur.init(e,t),e._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):kL(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),mZ=H("$ZodCheckNumberFormat",(e,t)=>{var u;Ur.init(e,t),t.format=t.format||"float64";const r=(u=t.format)==null?void 0:u.includes("int"),n=r?"int":"number",[i,a]=PL[t.format];e._zod.onattach.push(l=>{const d=l._zod.bag;d.format=t.format,d.minimum=i,d.maximum=a,r&&(d.pattern=uZ)}),e._zod.check=l=>{const d=l.value;if(r){if(!Number.isInteger(d)){l.issues.push({expected:n,format:t.format,code:"invalid_type",input:d,inst:e});return}if(!Number.isSafeInteger(d)){d>0?l.issues.push({input:d,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}):l.issues.push({input:d,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort});return}}d<i&&l.issues.push({origin:"number",input:d,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),d>a&&l.issues.push({origin:"number",input:d,code:"too_big",maximum:a,inst:e})}}),vZ=H("$ZodCheckMaxLength",(e,t)=>{var r;Ur.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!db(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const i=n.value;if(i.length<=t.maximum)return;const u=pb(i);n.issues.push({origin:u,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),hZ=H("$ZodCheckMinLength",(e,t)=>{var r;Ur.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!db(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const i=n.value;if(i.length>=t.minimum)return;const u=pb(i);n.issues.push({origin:u,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),gZ=H("$ZodCheckLengthEquals",(e,t)=>{var r;Ur.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!db(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=n=>{const i=n.value,a=i.length;if(a===t.length)return;const u=pb(i),l=a>t.length;n.issues.push({origin:u,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Wf=H("$ZodCheckStringFormat",(e,t)=>{var r,n;Ur.init(e,t),e._zod.onattach.push(i=>{const a=i._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),yZ=H("$ZodCheckRegex",(e,t)=>{Wf.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),bZ=H("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=dZ),Wf.init(e,t)}),wZ=H("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=fZ),Wf.init(e,t)}),_Z=H("$ZodCheckIncludes",(e,t)=>{Ur.init(e,t);const r=Xs(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(i=>{const a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),xZ=H("$ZodCheckStartsWith",(e,t)=>{Ur.init(e,t);const r=new RegExp(`^${Xs(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),kZ=H("$ZodCheckEndsWith",(e,t)=>{Ur.init(e,t);const r=new RegExp(`.*${Xs(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),SZ=H("$ZodCheckOverwrite",(e,t)=>{Ur.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class $Z{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(`
|
|
25
|
+
`).filter(u=>u),i=Math.min(...n.map(u=>u.length-u.trimStart().length)),a=n.map(u=>u.slice(i)).map(u=>" ".repeat(this.indent*2)+u);for(const u of a)this.content.push(u)}compile(){const t=Function,r=this==null?void 0:this.args,i=[...((this==null?void 0:this.content)??[""]).map(a=>` ${a}`)];return new t(...r,i.join(`
|
|
26
|
+
`))}}const IZ={major:4,minor:0,patch:0},pt=H("$ZodType",(e,t)=>{var i;var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=IZ;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const a of n)for(const u of a._zod.onattach)u(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),(i=e._zod.deferred)==null||i.push(()=>{e._zod.run=e._zod.parse});else{const a=(u,l,d)=>{let f=Is(u),p;for(const m of l){if(m._zod.def.when){if(!m._zod.def.when(u))continue}else if(f)continue;const h=u.issues.length,y=m._zod.check(u);if(y instanceof Promise&&(d==null?void 0:d.async)===!1)throw new Os;if(p||y instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await y,u.issues.length!==h&&(f||(f=Is(u,h)))});else{if(u.issues.length===h)continue;f||(f=Is(u,h))}}return p?p.then(()=>u):u};e._zod.run=(u,l)=>{const d=e._zod.parse(u,l);if(d instanceof Promise){if(l.async===!1)throw new Os;return d.then(f=>a(f,n,l))}return a(d,n,l)}}e["~standard"]={validate:a=>{var u;try{const l=NE(e,a);return l.success?{value:l.data}:{issues:(u=l.error)==null?void 0:u.issues}}catch{return RL(e,a).then(d=>{var f;return d.success?{value:d.data}:{issues:(f=d.error)==null?void 0:f.issues}})}},vendor:"zod",version:1}}),mb=H("$ZodString",(e,t)=>{var r;pt.init(e,t),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??oZ(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),yt=H("$ZodStringFormat",(e,t)=>{Wf.init(e,t),mb.init(e,t)}),PZ=H("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=VL),yt.init(e,t)}),OZ=H("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=a$(n))}else t.pattern??(t.pattern=a$());yt.init(e,t)}),EZ=H("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=KL),yt.init(e,t)}),zZ=H("$ZodURL",(e,t)=>{yt.init(e,t),e._zod.check=r=>{try{const n=r.value,i=new URL(n),a=i.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:tZ.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),!n.endsWith("/")&&a.endsWith("/")?r.value=a.slice(0,-1):r.value=a;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),AZ=H("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=GL()),yt.init(e,t)}),jZ=H("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=qL),yt.init(e,t)}),CZ=H("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=UL),yt.init(e,t)}),TZ=H("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=LL),yt.init(e,t)}),NZ=H("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ZL),yt.init(e,t)}),DZ=H("$ZodXID",(e,t)=>{t.pattern??(t.pattern=FL),yt.init(e,t)}),MZ=H("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=BL),yt.init(e,t)}),RZ=H("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=aZ(t)),yt.init(e,t)}),UZ=H("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=nZ),yt.init(e,t)}),LZ=H("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=iZ(t)),yt.init(e,t)}),ZZ=H("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=WL),yt.init(e,t)}),FZ=H("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=JL),yt.init(e,t),e._zod.onattach.push(r=>{const n=r._zod.bag;n.format="ipv4"})}),BZ=H("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=YL),yt.init(e,t),e._zod.onattach.push(r=>{const n=r._zod.bag;n.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),qZ=H("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=XL),yt.init(e,t)}),WZ=H("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=QL),yt.init(e,t),e._zod.check=r=>{const[n,i]=r.value.split("/");try{if(!i)throw new Error;const a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function BE(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const VZ=H("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=eZ),yt.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{BE(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function KZ(e){if(!ME.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return BE(r)}const HZ=H("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ME),yt.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{KZ(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),GZ=H("$ZodE164",(e,t)=>{t.pattern??(t.pattern=rZ),yt.init(e,t)});function JZ(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[n]=r;if(!n)return!1;const i=JSON.parse(atob(n));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const YZ=H("$ZodJWT",(e,t)=>{yt.init(e,t),e._zod.check=r=>{JZ(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),qE=H("$ZodNumber",(e,t)=>{pt.init(e,t),e._zod.pattern=e._zod.bag.pattern??sZ,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const i=r.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return r;const a=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),r}}),XZ=H("$ZodNumber",(e,t)=>{mZ.init(e,t),qE.init(e,t)}),QZ=H("$ZodBoolean",(e,t)=>{pt.init(e,t),e._zod.pattern=lZ,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}const i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),e3=H("$ZodNull",(e,t)=>{pt.init(e,t),e._zod.pattern=cZ,e._zod.values=new Set([null]),e._zod.parse=(r,n)=>{const i=r.value;return i===null||r.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),r}}),t3=H("$ZodUnknown",(e,t)=>{pt.init(e,t),e._zod.parse=r=>r}),r3=H("$ZodNever",(e,t)=>{pt.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function o$(e,t,r){e.issues.length&&t.issues.push(...Ua(r,e.issues)),t.value[r]=e.value}const n3=H("$ZodArray",(e,t)=>{pt.init(e,t),e._zod.parse=(r,n)=>{const i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);const a=[];for(let u=0;u<i.length;u++){const l=i[u],d=t.element._zod.run({value:l,issues:[]},n);d instanceof Promise?a.push(d.then(f=>o$(f,r,u))):o$(d,r,u)}return a.length?Promise.all(a).then(()=>r):r}});function id(e,t,r){e.issues.length&&t.issues.push(...Ua(r,e.issues)),t.value[r]=e.value}function u$(e,t,r,n){e.issues.length?n[r]===void 0?r in n?t.value[r]=void 0:t.value[r]=e.value:t.issues.push(...Ua(r,e.issues)):e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}const i3=H("$ZodObject",(e,t)=>{pt.init(e,t);const r=cb(()=>{const m=Object.keys(t.shape);for(const y of m)if(!(t.shape[y]instanceof pt))throw new Error(`Invalid element at key "${y}": expected a Zod schema`);const h=IL(t.shape);return{shape:t.shape,keys:m,keySet:new Set(m),numKeys:m.length,optionalKeys:new Set(h)}});ft(e._zod,"propValues",()=>{const m=t.shape,h={};for(const y in m){const w=m[y]._zod;if(w.values){h[y]??(h[y]=new Set);for(const _ of w.values)h[y].add(_)}}return h});const n=m=>{const h=new $Z(["shape","payload","ctx"]),y=r.value,w=E=>{const A=ds(E);return`shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`};h.write("const input = payload.value;");const _=Object.create(null);let x=0;for(const E of y.keys)_[E]=`key_${x++}`;h.write("const newResult = {}");for(const E of y.keys)if(y.optionalKeys.has(E)){const A=_[E];h.write(`const ${A} = ${w(E)};`);const I=ds(E);h.write(`
|
|
27
|
+
if (${A}.issues.length) {
|
|
28
|
+
if (input[${I}] === undefined) {
|
|
29
|
+
if (${I} in input) {
|
|
30
|
+
newResult[${I}] = undefined;
|
|
31
|
+
}
|
|
32
|
+
} else {
|
|
33
|
+
payload.issues = payload.issues.concat(
|
|
34
|
+
${A}.issues.map((iss) => ({
|
|
35
|
+
...iss,
|
|
36
|
+
path: iss.path ? [${I}, ...iss.path] : [${I}],
|
|
37
|
+
}))
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
} else if (${A}.value === undefined) {
|
|
41
|
+
if (${I} in input) newResult[${I}] = undefined;
|
|
42
|
+
} else {
|
|
43
|
+
newResult[${I}] = ${A}.value;
|
|
44
|
+
}
|
|
45
|
+
`)}else{const A=_[E];h.write(`const ${A} = ${w(E)};`),h.write(`
|
|
46
|
+
if (${A}.issues.length) payload.issues = payload.issues.concat(${A}.issues.map(iss => ({
|
|
47
|
+
...iss,
|
|
48
|
+
path: iss.path ? [${ds(E)}, ...iss.path] : [${ds(E)}]
|
|
49
|
+
})));`),h.write(`newResult[${ds(E)}] = ${A}.value`)}h.write("payload.value = newResult;"),h.write("return payload;");const $=h.compile();return(E,A)=>$(m,E,A)};let i;const a=Rd,u=!EE.jitless,d=u&&SL.value,f=t.catchall;let p;e._zod.parse=(m,h)=>{p??(p=r.value);const y=m.value;if(!a(y))return m.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),m;const w=[];if(u&&d&&(h==null?void 0:h.async)===!1&&h.jitless!==!0)i||(i=n(t.shape)),m=i(m,h);else{m.value={};const A=p.shape;for(const I of p.keys){const j=A[I],z=j._zod.run({value:y[I],issues:[]},h),N=j._zod.optin==="optional"&&j._zod.optout==="optional";z instanceof Promise?w.push(z.then(M=>N?u$(M,m,I,y):id(M,m,I))):N?u$(z,m,I,y):id(z,m,I)}}if(!f)return w.length?Promise.all(w).then(()=>m):m;const _=[],x=p.keySet,$=f._zod,E=$.def.type;for(const A of Object.keys(y)){if(x.has(A))continue;if(E==="never"){_.push(A);continue}const I=$.run({value:y[A],issues:[]},h);I instanceof Promise?w.push(I.then(j=>id(j,m,A))):id(I,m,A)}return _.length&&m.issues.push({code:"unrecognized_keys",keys:_,input:y,inst:e}),w.length?Promise.all(w).then(()=>m):m}});function s$(e,t,r,n){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>sa(a,n,ua())))}),t}const WE=H("$ZodUnion",(e,t)=>{pt.init(e,t),ft(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),ft(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),ft(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),ft(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${r.map(n=>fb(n.source)).join("|")})$`)}}),e._zod.parse=(r,n)=>{let i=!1;const a=[];for(const u of t.options){const l=u._zod.run({value:r.value,issues:[]},n);if(l instanceof Promise)a.push(l),i=!0;else{if(l.issues.length===0)return l;a.push(l)}}return i?Promise.all(a).then(u=>s$(u,r,e,n)):s$(a,r,e,n)}}),a3=H("$ZodDiscriminatedUnion",(e,t)=>{WE.init(e,t);const r=e._zod.parse;ft(e._zod,"propValues",()=>{const i={};for(const a of t.options){const u=a._zod.propValues;if(!u||Object.keys(u).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[l,d]of Object.entries(u)){i[l]||(i[l]=new Set);for(const f of d)i[l].add(f)}}return i});const n=cb(()=>{const i=t.options,a=new Map;for(const u of i){const l=u._zod.propValues[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(u)}"`);for(const d of l){if(a.has(d))throw new Error(`Duplicate discriminator value "${String(d)}"`);a.set(d,u)}}return a});e._zod.parse=(i,a)=>{const u=i.value;if(!Rd(u))return i.issues.push({code:"invalid_type",expected:"object",input:u,inst:e}),i;const l=n.value.get(u==null?void 0:u[t.discriminator]);return l?l._zod.run(i,a):t.unionFallback?r(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:u,path:[t.discriminator],inst:e}),i)}}),o3=H("$ZodIntersection",(e,t)=>{pt.init(e,t),e._zod.parse=(r,n)=>{const i=r.value,a=t.left._zod.run({value:i,issues:[]},n),u=t.right._zod.run({value:i,issues:[]},n);return a instanceof Promise||u instanceof Promise?Promise.all([a,u]).then(([d,f])=>l$(r,d,f)):l$(r,a,u)}});function ay(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ud(e)&&Ud(t)){const r=Object.keys(t),n=Object.keys(e).filter(a=>r.indexOf(a)!==-1),i={...e,...t};for(const a of n){const u=ay(e[a],t[a]);if(!u.valid)return{valid:!1,mergeErrorPath:[a,...u.mergeErrorPath]};i[a]=u.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const i=e[n],a=t[n],u=ay(i,a);if(!u.valid)return{valid:!1,mergeErrorPath:[n,...u.mergeErrorPath]};r.push(u.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function l$(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),Is(e))return e;const n=ay(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const u3=H("$ZodRecord",(e,t)=>{pt.init(e,t),e._zod.parse=(r,n)=>{const i=r.value;if(!Ud(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;const a=[];if(t.keyType._zod.values){const u=t.keyType._zod.values;r.value={};for(const d of u)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){const f=t.valueType._zod.run({value:i[d],issues:[]},n);f instanceof Promise?a.push(f.then(p=>{p.issues.length&&r.issues.push(...Ua(d,p.issues)),r.value[d]=p.value})):(f.issues.length&&r.issues.push(...Ua(d,f.issues)),r.value[d]=f.value)}let l;for(const d in i)u.has(d)||(l=l??[],l.push(d));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l})}else{r.value={};for(const u of Reflect.ownKeys(i)){if(u==="__proto__")continue;const l=t.keyType._zod.run({value:u,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){r.issues.push({origin:"record",code:"invalid_key",issues:l.issues.map(f=>sa(f,n,ua())),input:u,path:[u],inst:e}),r.value[l.value]=l.value;continue}const d=t.valueType._zod.run({value:i[u],issues:[]},n);d instanceof Promise?a.push(d.then(f=>{f.issues.length&&r.issues.push(...Ua(u,f.issues)),r.value[l.value]=f.value})):(d.issues.length&&r.issues.push(...Ua(u,d.issues)),r.value[l.value]=d.value)}}return a.length?Promise.all(a).then(()=>r):r}}),s3=H("$ZodEnum",(e,t)=>{pt.init(e,t);const r=_L(t.entries);e._zod.values=new Set(r),e._zod.pattern=new RegExp(`^(${r.filter(n=>$L.has(typeof n)).map(n=>typeof n=="string"?Xs(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{const a=n.value;return e._zod.values.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),l3=H("$ZodLiteral",(e,t)=>{pt.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Xs(r):r?r.toString():String(r)).join("|")})$`),e._zod.parse=(r,n)=>{const i=r.value;return e._zod.values.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),c3=H("$ZodTransform",(e,t)=>{pt.init(e,t),e._zod.parse=(r,n)=>{const i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(u=>(r.value=u,r));if(i instanceof Promise)throw new Os;return r.value=i,r}}),d3=H("$ZodOptional",(e,t)=>{pt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ft(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ft(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${fb(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>t.innerType._zod.optin==="optional"?t.innerType._zod.run(r,n):r.value===void 0?r:t.innerType._zod.run(r,n)}),f3=H("$ZodNullable",(e,t)=>{pt.init(e,t),ft(e._zod,"optin",()=>t.innerType._zod.optin),ft(e._zod,"optout",()=>t.innerType._zod.optout),ft(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${fb(r.source)}|null)$`):void 0}),ft(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),p3=H("$ZodDefault",(e,t)=>{pt.init(e,t),e._zod.optin="optional",ft(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(r.value===void 0)return r.value=t.defaultValue,r;const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>c$(a,t)):c$(i,t)}});function c$(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const m3=H("$ZodPrefault",(e,t)=>{pt.init(e,t),e._zod.optin="optional",ft(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),v3=H("$ZodNonOptional",(e,t)=>{pt.init(e,t),ft(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>d$(a,e)):d$(i,e)}});function d$(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const h3=H("$ZodCatch",(e,t)=>{pt.init(e,t),e._zod.optin="optional",ft(e._zod,"optout",()=>t.innerType._zod.optout),ft(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(u=>sa(u,n,ua()))},input:r.value}),r.issues=[]),r)):(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>sa(a,n,ua()))},input:r.value}),r.issues=[]),r)}}),g3=H("$ZodPipe",(e,t)=>{pt.init(e,t),ft(e._zod,"values",()=>t.in._zod.values),ft(e._zod,"optin",()=>t.in._zod.optin),ft(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(r,n)=>{const i=t.in._zod.run(r,n);return i instanceof Promise?i.then(a=>f$(a,t,n)):f$(i,t,n)}});function f$(e,t,r){return Is(e)?e:t.out._zod.run({value:e.value,issues:e.issues},r)}const y3=H("$ZodReadonly",(e,t)=>{pt.init(e,t),ft(e._zod,"propValues",()=>t.innerType._zod.propValues),ft(e._zod,"values",()=>t.innerType._zod.values),ft(e._zod,"optin",()=>t.innerType._zod.optin),ft(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,n)=>{const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(p$):p$(i)}});function p$(e){return e.value=Object.freeze(e.value),e}const b3=H("$ZodCustom",(e,t)=>{Ur.init(e,t),pt.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(a=>m$(a,r,n,e));m$(i,r,n,e)}});function m$(e,t,r,n){if(!e){const i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),t.issues.push(Es(i))}}class w3{constructor(){this._map=new Map,this._idmap=new Map}add(t,...r){const n=r[0];if(this._map.set(t,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};return delete n.id,{...n,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}}function _3(){return new w3}const ad=_3();function x3(e,t){return new e({type:"string",...we(t)})}function k3(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...we(t)})}function v$(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...we(t)})}function S3(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...we(t)})}function $3(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...we(t)})}function I3(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...we(t)})}function P3(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...we(t)})}function O3(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...we(t)})}function E3(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...we(t)})}function z3(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...we(t)})}function A3(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...we(t)})}function j3(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...we(t)})}function C3(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...we(t)})}function T3(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...we(t)})}function N3(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...we(t)})}function D3(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...we(t)})}function M3(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...we(t)})}function R3(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...we(t)})}function U3(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...we(t)})}function L3(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...we(t)})}function Z3(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...we(t)})}function F3(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...we(t)})}function B3(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...we(t)})}function q3(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...we(t)})}function W3(e,t){return new e({type:"string",format:"date",check:"string_format",...we(t)})}function V3(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...we(t)})}function K3(e,t){return new e({type:"string",format:"duration",check:"string_format",...we(t)})}function H3(e,t){return new e({type:"number",checks:[],...we(t)})}function G3(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...we(t)})}function J3(e,t){return new e({type:"boolean",...we(t)})}function Y3(e,t){return new e({type:"null",...we(t)})}function X3(e){return new e({type:"unknown"})}function Q3(e,t){return new e({type:"never",...we(t)})}function h$(e,t){return new ZE({check:"less_than",...we(t),value:e,inclusive:!1})}function xh(e,t){return new ZE({check:"less_than",...we(t),value:e,inclusive:!0})}function g$(e,t){return new FE({check:"greater_than",...we(t),value:e,inclusive:!1})}function kh(e,t){return new FE({check:"greater_than",...we(t),value:e,inclusive:!0})}function y$(e,t){return new pZ({check:"multiple_of",...we(t),value:e})}function VE(e,t){return new vZ({check:"max_length",...we(t),maximum:e})}function Ld(e,t){return new hZ({check:"min_length",...we(t),minimum:e})}function KE(e,t){return new gZ({check:"length_equals",...we(t),length:e})}function eF(e,t){return new yZ({check:"string_format",format:"regex",...we(t),pattern:e})}function tF(e){return new bZ({check:"string_format",format:"lowercase",...we(e)})}function rF(e){return new wZ({check:"string_format",format:"uppercase",...we(e)})}function nF(e,t){return new _Z({check:"string_format",format:"includes",...we(t),includes:e})}function iF(e,t){return new xZ({check:"string_format",format:"starts_with",...we(t),prefix:e})}function aF(e,t){return new kZ({check:"string_format",format:"ends_with",...we(t),suffix:e})}function Qs(e){return new SZ({check:"overwrite",tx:e})}function oF(e){return Qs(t=>t.normalize(e))}function uF(){return Qs(e=>e.trim())}function sF(){return Qs(e=>e.toLowerCase())}function lF(){return Qs(e=>e.toUpperCase())}function cF(e,t,r){return new e({type:"array",element:t,...we(r)})}function dF(e,t,r){const n=we(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function fF(e,t,r){return new e({type:"custom",check:"custom",fn:t,...we(r)})}function vb(e){return!!e._zod}function HE(e,t){return vb(e)?NE(e,t):e.safeParse(t)}function pF(e){var r,n;if(!e)return;let t;if(vb(e)?t=(n=(r=e._zod)==null?void 0:r.def)==null?void 0:n.shape:t=e.shape,!!t){if(typeof t=="function")try{return t()}catch{return}return t}}function mF(e){var i;if(vb(e)){const u=(i=e._zod)==null?void 0:i.def;if(u){if(u.value!==void 0)return u.value;if(Array.isArray(u.values)&&u.values.length>0)return u.values[0]}}const r=e._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}const n=e.value;if(n!==void 0)return n}const vF=H("ZodISODateTime",(e,t)=>{RZ.init(e,t),Pt.init(e,t)});function GE(e){return q3(vF,e)}const hF=H("ZodISODate",(e,t)=>{UZ.init(e,t),Pt.init(e,t)});function gF(e){return W3(hF,e)}const yF=H("ZodISOTime",(e,t)=>{LZ.init(e,t),Pt.init(e,t)});function bF(e){return V3(yF,e)}const wF=H("ZodISODuration",(e,t)=>{ZZ.init(e,t),Pt.init(e,t)});function _F(e){return K3(wF,e)}const xF=(e,t)=>{jE.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>NL(e,r)},flatten:{value:r=>TL(e,r)},addIssue:{value:r=>e.issues.push(r)},addIssues:{value:r=>e.issues.push(...r)},isEmpty:{get(){return e.issues.length===0}}})},Vf=H("ZodError",xF,{Parent:Error}),kF=DL(Vf),SF=ML(Vf),$F=TE(Vf),IF=DE(Vf),It=H("ZodType",(e,t)=>(pt.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),e.clone=(r,n)=>oo(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>kF(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>$F(e,r,n),e.parseAsync=async(r,n)=>SF(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>IF(e,r,n),e.spa=e.safeParseAsync,e.refine=(r,n)=>e.check(hB(r,n)),e.superRefine=r=>e.check(gB(r)),e.overwrite=r=>e.check(Qs(r)),e.optional=()=>At(e),e.nullable=()=>_$(e),e.nullish=()=>At(_$(e)),e.nonoptional=r=>sB(e,r),e.array=()=>He(e),e.or=r=>mt([e,r]),e.and=r=>hb(e,r),e.transform=r=>uy(e,rz(r)),e.default=r=>aB(e,r),e.prefault=r=>uB(e,r),e.catch=r=>cB(e,r),e.pipe=r=>uy(e,r),e.readonly=()=>pB(e),e.describe=r=>{const n=e.clone();return ad.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){var r;return(r=ad.get(e))==null?void 0:r.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return ad.get(e);const n=e.clone();return ad.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),JE=H("_ZodString",(e,t)=>{mb.init(e,t),It.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(eF(...n)),e.includes=(...n)=>e.check(nF(...n)),e.startsWith=(...n)=>e.check(iF(...n)),e.endsWith=(...n)=>e.check(aF(...n)),e.min=(...n)=>e.check(Ld(...n)),e.max=(...n)=>e.check(VE(...n)),e.length=(...n)=>e.check(KE(...n)),e.nonempty=(...n)=>e.check(Ld(1,...n)),e.lowercase=n=>e.check(tF(n)),e.uppercase=n=>e.check(rF(n)),e.trim=()=>e.check(uF()),e.normalize=(...n)=>e.check(oF(...n)),e.toLowerCase=()=>e.check(sF()),e.toUpperCase=()=>e.check(lF())}),PF=H("ZodString",(e,t)=>{mb.init(e,t),JE.init(e,t),e.email=r=>e.check(k3(OF,r)),e.url=r=>e.check(O3(EF,r)),e.jwt=r=>e.check(B3(qF,r)),e.emoji=r=>e.check(E3(zF,r)),e.guid=r=>e.check(v$(b$,r)),e.uuid=r=>e.check(S3(od,r)),e.uuidv4=r=>e.check($3(od,r)),e.uuidv6=r=>e.check(I3(od,r)),e.uuidv7=r=>e.check(P3(od,r)),e.nanoid=r=>e.check(z3(AF,r)),e.guid=r=>e.check(v$(b$,r)),e.cuid=r=>e.check(A3(jF,r)),e.cuid2=r=>e.check(j3(CF,r)),e.ulid=r=>e.check(C3(TF,r)),e.base64=r=>e.check(L3(ZF,r)),e.base64url=r=>e.check(Z3(FF,r)),e.xid=r=>e.check(T3(NF,r)),e.ksuid=r=>e.check(N3(DF,r)),e.ipv4=r=>e.check(D3(MF,r)),e.ipv6=r=>e.check(M3(RF,r)),e.cidrv4=r=>e.check(R3(UF,r)),e.cidrv6=r=>e.check(U3(LF,r)),e.e164=r=>e.check(F3(BF,r)),e.datetime=r=>e.check(GE(r)),e.date=r=>e.check(gF(r)),e.time=r=>e.check(bF(r)),e.duration=r=>e.check(_F(r))});function V(e){return x3(PF,e)}const Pt=H("ZodStringFormat",(e,t)=>{yt.init(e,t),JE.init(e,t)}),OF=H("ZodEmail",(e,t)=>{EZ.init(e,t),Pt.init(e,t)}),b$=H("ZodGUID",(e,t)=>{PZ.init(e,t),Pt.init(e,t)}),od=H("ZodUUID",(e,t)=>{OZ.init(e,t),Pt.init(e,t)}),EF=H("ZodURL",(e,t)=>{zZ.init(e,t),Pt.init(e,t)}),zF=H("ZodEmoji",(e,t)=>{AZ.init(e,t),Pt.init(e,t)}),AF=H("ZodNanoID",(e,t)=>{jZ.init(e,t),Pt.init(e,t)}),jF=H("ZodCUID",(e,t)=>{CZ.init(e,t),Pt.init(e,t)}),CF=H("ZodCUID2",(e,t)=>{TZ.init(e,t),Pt.init(e,t)}),TF=H("ZodULID",(e,t)=>{NZ.init(e,t),Pt.init(e,t)}),NF=H("ZodXID",(e,t)=>{DZ.init(e,t),Pt.init(e,t)}),DF=H("ZodKSUID",(e,t)=>{MZ.init(e,t),Pt.init(e,t)}),MF=H("ZodIPv4",(e,t)=>{FZ.init(e,t),Pt.init(e,t)}),RF=H("ZodIPv6",(e,t)=>{BZ.init(e,t),Pt.init(e,t)}),UF=H("ZodCIDRv4",(e,t)=>{qZ.init(e,t),Pt.init(e,t)}),LF=H("ZodCIDRv6",(e,t)=>{WZ.init(e,t),Pt.init(e,t)}),ZF=H("ZodBase64",(e,t)=>{VZ.init(e,t),Pt.init(e,t)}),FF=H("ZodBase64URL",(e,t)=>{HZ.init(e,t),Pt.init(e,t)}),BF=H("ZodE164",(e,t)=>{GZ.init(e,t),Pt.init(e,t)}),qF=H("ZodJWT",(e,t)=>{YZ.init(e,t),Pt.init(e,t)}),YE=H("ZodNumber",(e,t)=>{qE.init(e,t),It.init(e,t),e.gt=(n,i)=>e.check(g$(n,i)),e.gte=(n,i)=>e.check(kh(n,i)),e.min=(n,i)=>e.check(kh(n,i)),e.lt=(n,i)=>e.check(h$(n,i)),e.lte=(n,i)=>e.check(xh(n,i)),e.max=(n,i)=>e.check(xh(n,i)),e.int=n=>e.check(w$(n)),e.safe=n=>e.check(w$(n)),e.positive=n=>e.check(g$(0,n)),e.nonnegative=n=>e.check(kh(0,n)),e.negative=n=>e.check(h$(0,n)),e.nonpositive=n=>e.check(xh(0,n)),e.multipleOf=(n,i)=>e.check(y$(n,i)),e.step=(n,i)=>e.check(y$(n,i)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function rt(e){return H3(YE,e)}const WF=H("ZodNumberFormat",(e,t)=>{XZ.init(e,t),YE.init(e,t)});function w$(e){return G3(WF,e)}const VF=H("ZodBoolean",(e,t)=>{QZ.init(e,t),It.init(e,t)});function ir(e){return J3(VF,e)}const KF=H("ZodNull",(e,t)=>{e3.init(e,t),It.init(e,t)});function XE(e){return Y3(KF,e)}const HF=H("ZodUnknown",(e,t)=>{t3.init(e,t),It.init(e,t)});function St(){return X3(HF)}const GF=H("ZodNever",(e,t)=>{r3.init(e,t),It.init(e,t)});function JF(e){return Q3(GF,e)}const YF=H("ZodArray",(e,t)=>{n3.init(e,t),It.init(e,t),e.element=t.element,e.min=(r,n)=>e.check(Ld(r,n)),e.nonempty=r=>e.check(Ld(1,r)),e.max=(r,n)=>e.check(VE(r,n)),e.length=(r,n)=>e.check(KE(r,n)),e.unwrap=()=>e.element});function He(e,t){return cF(YF,e,t)}const QE=H("ZodObject",(e,t)=>{i3.init(e,t),It.init(e,t),ft(e,"shape",()=>t.shape),e.keyof=()=>Jr(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:St()}),e.loose=()=>e.clone({...e._zod.def,catchall:St()}),e.strict=()=>e.clone({...e._zod.def,catchall:JF()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>zL(e,r),e.merge=r=>AL(e,r),e.pick=r=>OL(e,r),e.omit=r=>EL(e,r),e.partial=(...r)=>jL(nz,e,r[0]),e.required=(...r)=>CL(iz,e,r[0])});function ce(e,t){const r={type:"object",get shape(){return qf(this,"shape",{...e}),this.shape},...we(t)};return new QE(r)}function Dr(e,t){return new QE({type:"object",get shape(){return qf(this,"shape",{...e}),this.shape},catchall:St(),...we(t)})}const ez=H("ZodUnion",(e,t)=>{WE.init(e,t),It.init(e,t),e.options=t.options});function mt(e,t){return new ez({type:"union",options:e,...we(t)})}const XF=H("ZodDiscriminatedUnion",(e,t)=>{ez.init(e,t),a3.init(e,t)});function tz(e,t,r){return new XF({type:"union",options:t,discriminator:e,...we(r)})}const QF=H("ZodIntersection",(e,t)=>{o3.init(e,t),It.init(e,t)});function hb(e,t){return new QF({type:"intersection",left:e,right:t})}const eB=H("ZodRecord",(e,t)=>{u3.init(e,t),It.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function $t(e,t,r){return new eB({type:"record",keyType:e,valueType:t,...we(r)})}const oy=H("ZodEnum",(e,t)=>{s3.init(e,t),It.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,i)=>{const a={};for(const u of n)if(r.has(u))a[u]=t.entries[u];else throw new Error(`Key ${u} not found in enum`);return new oy({...t,checks:[],...we(i),entries:a})},e.exclude=(n,i)=>{const a={...t.entries};for(const u of n)if(r.has(u))delete a[u];else throw new Error(`Key ${u} not found in enum`);return new oy({...t,checks:[],...we(i),entries:a})}});function Jr(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new oy({type:"enum",entries:r,...we(t)})}const tB=H("ZodLiteral",(e,t)=>{l3.init(e,t),It.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function ke(e,t){return new tB({type:"literal",values:Array.isArray(e)?e:[e],...we(t)})}const rB=H("ZodTransform",(e,t)=>{c3.init(e,t),It.init(e,t),e._zod.parse=(r,n)=>{r.addIssue=a=>{if(typeof a=="string")r.issues.push(Es(a,r.value,t));else{const u=a;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=r.value),u.inst??(u.inst=e),u.continue??(u.continue=!0),r.issues.push(Es(u))}};const i=t.transform(r.value,r);return i instanceof Promise?i.then(a=>(r.value=a,r)):(r.value=i,r)}});function rz(e){return new rB({type:"transform",transform:e})}const nz=H("ZodOptional",(e,t)=>{d3.init(e,t),It.init(e,t),e.unwrap=()=>e._zod.def.innerType});function At(e){return new nz({type:"optional",innerType:e})}const nB=H("ZodNullable",(e,t)=>{f3.init(e,t),It.init(e,t),e.unwrap=()=>e._zod.def.innerType});function _$(e){return new nB({type:"nullable",innerType:e})}const iB=H("ZodDefault",(e,t)=>{p3.init(e,t),It.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function aB(e,t){return new iB({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const oB=H("ZodPrefault",(e,t)=>{m3.init(e,t),It.init(e,t),e.unwrap=()=>e._zod.def.innerType});function uB(e,t){return new oB({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const iz=H("ZodNonOptional",(e,t)=>{v3.init(e,t),It.init(e,t),e.unwrap=()=>e._zod.def.innerType});function sB(e,t){return new iz({type:"nonoptional",innerType:e,...we(t)})}const lB=H("ZodCatch",(e,t)=>{h3.init(e,t),It.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function cB(e,t){return new lB({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const dB=H("ZodPipe",(e,t)=>{g3.init(e,t),It.init(e,t),e.in=t.in,e.out=t.out});function uy(e,t){return new dB({type:"pipe",in:e,out:t})}const fB=H("ZodReadonly",(e,t)=>{y3.init(e,t),It.init(e,t)});function pB(e){return new fB({type:"readonly",innerType:e})}const az=H("ZodCustom",(e,t)=>{b3.init(e,t),It.init(e,t)});function mB(e){const t=new Ur({check:"custom"});return t._zod.check=e,t}function vB(e,t){return dF(az,e??(()=>!0),t)}function hB(e,t={}){return fF(az,e,t)}function gB(e){const t=mB(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(Es(n,r.value,t._zod.def));else{const i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),r.issues.push(Es(i))}},e(r.value,r)));return t}function oz(e,t){return uy(rz(e),t)}const Na="io.modelcontextprotocol/related-task",Kf="2.0",ar=vB(e=>e!==null&&(typeof e=="object"||typeof e=="function")),uz=mt([V(),rt().int()]),sz=V();Dr({ttl:mt([rt(),XE()]).optional(),pollInterval:rt().optional()});const yB=ce({ttl:rt().optional()}),bB=ce({taskId:V()}),gb=Dr({progressToken:uz.optional(),[Na]:bB.optional()}),Yr=ce({_meta:gb.optional()}),el=Yr.extend({task:yB.optional()}),wB=e=>el.safeParse(e).success,sr=ce({method:V(),params:Yr.loose().optional()}),gn=ce({_meta:gb.optional()}),yn=ce({method:V(),params:gn.loose().optional()}),lr=Dr({_meta:gb.optional()}),tl=mt([V(),rt().int()]),lz=ce({jsonrpc:ke(Kf),id:tl,...sr.shape}).strict(),x$=e=>lz.safeParse(e).success,cz=ce({jsonrpc:ke(Kf),...yn.shape}).strict(),_B=e=>cz.safeParse(e).success,yb=ce({jsonrpc:ke(Kf),id:tl,result:lr}).strict(),ud=e=>yb.safeParse(e).success;var et;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(et||(et={}));const bb=ce({jsonrpc:ke(Kf),id:tl.optional(),error:ce({code:rt().int(),message:V(),data:St().optional()})}).strict(),xB=e=>bb.safeParse(e).success,kB=mt([lz,cz,yb,bb]);mt([yb,bb]);const wb=lr.strict(),SB=gn.extend({requestId:tl.optional(),reason:V().optional()}),_b=yn.extend({method:ke("notifications/cancelled"),params:SB}),$B=ce({src:V(),mimeType:V().optional(),sizes:He(V()).optional(),theme:Jr(["light","dark"]).optional()}),rl=ce({icons:He($B).optional()}),Jo=ce({name:V(),title:V().optional()}),Hf=Jo.extend({...Jo.shape,...rl.shape,version:V(),websiteUrl:V().optional(),description:V().optional()}),IB=hb(ce({applyDefaults:ir().optional()}),$t(V(),St())),PB=oz(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,hb(ce({form:IB.optional(),url:ar.optional()}),$t(V(),St()).optional())),OB=Dr({list:ar.optional(),cancel:ar.optional(),requests:Dr({sampling:Dr({createMessage:ar.optional()}).optional(),elicitation:Dr({create:ar.optional()}).optional()}).optional()}),EB=Dr({list:ar.optional(),cancel:ar.optional(),requests:Dr({tools:Dr({call:ar.optional()}).optional()}).optional()}),zB=ce({experimental:$t(V(),ar).optional(),sampling:ce({context:ar.optional(),tools:ar.optional()}).optional(),elicitation:PB.optional(),roots:ce({listChanged:ir().optional()}).optional(),tasks:OB.optional()}),AB=Yr.extend({protocolVersion:V(),capabilities:zB,clientInfo:Hf}),jB=sr.extend({method:ke("initialize"),params:AB}),CB=ce({experimental:$t(V(),ar).optional(),logging:ar.optional(),completions:ar.optional(),prompts:ce({listChanged:ir().optional()}).optional(),resources:ce({subscribe:ir().optional(),listChanged:ir().optional()}).optional(),tools:ce({listChanged:ir().optional()}).optional(),tasks:EB.optional()}),TB=lr.extend({protocolVersion:V(),capabilities:CB,serverInfo:Hf,instructions:V().optional()}),NB=yn.extend({method:ke("notifications/initialized"),params:gn.optional()}),Gf=sr.extend({method:ke("ping"),params:Yr.optional()}),DB=ce({progress:rt(),total:At(rt()),message:At(V())}),MB=ce({...gn.shape,...DB.shape,progressToken:uz}),xb=yn.extend({method:ke("notifications/progress"),params:MB}),RB=Yr.extend({cursor:sz.optional()}),nl=sr.extend({params:RB.optional()}),il=lr.extend({nextCursor:sz.optional()}),UB=Jr(["working","input_required","completed","failed","cancelled"]),al=ce({taskId:V(),status:UB,ttl:mt([rt(),XE()]),createdAt:V(),lastUpdatedAt:V(),pollInterval:At(rt()),statusMessage:At(V())}),kb=lr.extend({task:al}),LB=gn.merge(al),Zd=yn.extend({method:ke("notifications/tasks/status"),params:LB}),Sb=sr.extend({method:ke("tasks/get"),params:Yr.extend({taskId:V()})}),$b=lr.merge(al),Ib=sr.extend({method:ke("tasks/result"),params:Yr.extend({taskId:V()})});lr.loose();const Pb=nl.extend({method:ke("tasks/list")}),Ob=il.extend({tasks:He(al)}),Eb=sr.extend({method:ke("tasks/cancel"),params:Yr.extend({taskId:V()})}),ZB=lr.merge(al),dz=ce({uri:V(),mimeType:At(V()),_meta:$t(V(),St()).optional()}),fz=dz.extend({text:V()}),zb=V().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),pz=dz.extend({blob:zb}),ol=Jr(["user","assistant"]),cu=ce({audience:He(ol).optional(),priority:rt().min(0).max(1).optional(),lastModified:GE({offset:!0}).optional()}),mz=ce({...Jo.shape,...rl.shape,uri:V(),description:At(V()),mimeType:At(V()),annotations:cu.optional(),_meta:At(Dr({}))}),FB=ce({...Jo.shape,...rl.shape,uriTemplate:V(),description:At(V()),mimeType:At(V()),annotations:cu.optional(),_meta:At(Dr({}))}),BB=nl.extend({method:ke("resources/list")}),qB=il.extend({resources:He(mz)}),WB=nl.extend({method:ke("resources/templates/list")}),VB=il.extend({resourceTemplates:He(FB)}),Ab=Yr.extend({uri:V()}),KB=Ab,HB=sr.extend({method:ke("resources/read"),params:KB}),GB=lr.extend({contents:He(mt([fz,pz]))}),JB=yn.extend({method:ke("notifications/resources/list_changed"),params:gn.optional()}),YB=Ab,XB=sr.extend({method:ke("resources/subscribe"),params:YB}),QB=Ab,eq=sr.extend({method:ke("resources/unsubscribe"),params:QB}),tq=gn.extend({uri:V()}),rq=yn.extend({method:ke("notifications/resources/updated"),params:tq}),nq=ce({name:V(),description:At(V()),required:At(ir())}),iq=ce({...Jo.shape,...rl.shape,description:At(V()),arguments:At(He(nq)),_meta:At(Dr({}))}),aq=nl.extend({method:ke("prompts/list")}),oq=il.extend({prompts:He(iq)}),uq=Yr.extend({name:V(),arguments:$t(V(),V()).optional()}),sq=sr.extend({method:ke("prompts/get"),params:uq}),jb=ce({type:ke("text"),text:V(),annotations:cu.optional(),_meta:$t(V(),St()).optional()}),Cb=ce({type:ke("image"),data:zb,mimeType:V(),annotations:cu.optional(),_meta:$t(V(),St()).optional()}),Tb=ce({type:ke("audio"),data:zb,mimeType:V(),annotations:cu.optional(),_meta:$t(V(),St()).optional()}),lq=ce({type:ke("tool_use"),name:V(),id:V(),input:$t(V(),St()),_meta:$t(V(),St()).optional()}),vz=ce({type:ke("resource"),resource:mt([fz,pz]),annotations:cu.optional(),_meta:$t(V(),St()).optional()}),hz=mz.extend({type:ke("resource_link")}),ul=mt([jb,Cb,Tb,hz,vz]),cq=ce({role:ol,content:ul}),dq=lr.extend({description:V().optional(),messages:He(cq)}),fq=yn.extend({method:ke("notifications/prompts/list_changed"),params:gn.optional()}),pq=ce({title:V().optional(),readOnlyHint:ir().optional(),destructiveHint:ir().optional(),idempotentHint:ir().optional(),openWorldHint:ir().optional()}),mq=ce({taskSupport:Jr(["required","optional","forbidden"]).optional()}),Nb=ce({...Jo.shape,...rl.shape,description:V().optional(),inputSchema:ce({type:ke("object"),properties:$t(V(),ar).optional(),required:He(V()).optional()}).catchall(St()),outputSchema:ce({type:ke("object"),properties:$t(V(),ar).optional(),required:He(V()).optional()}).catchall(St()).optional(),annotations:pq.optional(),execution:mq.optional(),_meta:$t(V(),St()).optional()}),gz=nl.extend({method:ke("tools/list")}),vq=il.extend({tools:He(Nb)}),Jf=lr.extend({content:He(ul).default([]),structuredContent:$t(V(),St()).optional(),isError:ir().optional()});Jf.or(lr.extend({toolResult:St()}));const hq=el.extend({name:V(),arguments:$t(V(),St()).optional()}),yz=sr.extend({method:ke("tools/call"),params:hq}),gq=yn.extend({method:ke("notifications/tools/list_changed"),params:gn.optional()});ce({autoRefresh:ir().default(!0),debounceMs:rt().int().nonnegative().default(300)});const bz=Jr(["debug","info","notice","warning","error","critical","alert","emergency"]),yq=Yr.extend({level:bz}),bq=sr.extend({method:ke("logging/setLevel"),params:yq}),wq=gn.extend({level:bz,logger:V().optional(),data:St()}),_q=yn.extend({method:ke("notifications/message"),params:wq}),xq=ce({name:V().optional()}),kq=ce({hints:He(xq).optional(),costPriority:rt().min(0).max(1).optional(),speedPriority:rt().min(0).max(1).optional(),intelligencePriority:rt().min(0).max(1).optional()}),Sq=ce({mode:Jr(["auto","required","none"]).optional()}),$q=ce({type:ke("tool_result"),toolUseId:V().describe("The unique identifier for the corresponding tool call."),content:He(ul).default([]),structuredContent:ce({}).loose().optional(),isError:ir().optional(),_meta:$t(V(),St()).optional()}),Iq=tz("type",[jb,Cb,Tb]),Fd=tz("type",[jb,Cb,Tb,lq,$q]),Pq=ce({role:ol,content:mt([Fd,He(Fd)]),_meta:$t(V(),St()).optional()}),Oq=el.extend({messages:He(Pq),modelPreferences:kq.optional(),systemPrompt:V().optional(),includeContext:Jr(["none","thisServer","allServers"]).optional(),temperature:rt().optional(),maxTokens:rt().int(),stopSequences:He(V()).optional(),metadata:ar.optional(),tools:He(Nb).optional(),toolChoice:Sq.optional()}),Eq=sr.extend({method:ke("sampling/createMessage"),params:Oq}),zq=lr.extend({model:V(),stopReason:At(Jr(["endTurn","stopSequence","maxTokens"]).or(V())),role:ol,content:Iq}),Aq=lr.extend({model:V(),stopReason:At(Jr(["endTurn","stopSequence","maxTokens","toolUse"]).or(V())),role:ol,content:mt([Fd,He(Fd)])}),jq=ce({type:ke("boolean"),title:V().optional(),description:V().optional(),default:ir().optional()}),Cq=ce({type:ke("string"),title:V().optional(),description:V().optional(),minLength:rt().optional(),maxLength:rt().optional(),format:Jr(["email","uri","date","date-time"]).optional(),default:V().optional()}),Tq=ce({type:Jr(["number","integer"]),title:V().optional(),description:V().optional(),minimum:rt().optional(),maximum:rt().optional(),default:rt().optional()}),Nq=ce({type:ke("string"),title:V().optional(),description:V().optional(),enum:He(V()),default:V().optional()}),Dq=ce({type:ke("string"),title:V().optional(),description:V().optional(),oneOf:He(ce({const:V(),title:V()})),default:V().optional()}),Mq=ce({type:ke("string"),title:V().optional(),description:V().optional(),enum:He(V()),enumNames:He(V()).optional(),default:V().optional()}),Rq=mt([Nq,Dq]),Uq=ce({type:ke("array"),title:V().optional(),description:V().optional(),minItems:rt().optional(),maxItems:rt().optional(),items:ce({type:ke("string"),enum:He(V())}),default:He(V()).optional()}),Lq=ce({type:ke("array"),title:V().optional(),description:V().optional(),minItems:rt().optional(),maxItems:rt().optional(),items:ce({anyOf:He(ce({const:V(),title:V()}))}),default:He(V()).optional()}),Zq=mt([Uq,Lq]),Fq=mt([Mq,Rq,Zq]),Bq=mt([Fq,jq,Cq,Tq]),qq=el.extend({mode:ke("form").optional(),message:V(),requestedSchema:ce({type:ke("object"),properties:$t(V(),Bq),required:He(V()).optional()})}),Wq=el.extend({mode:ke("url"),message:V(),elicitationId:V(),url:V().url()}),Vq=mt([qq,Wq]),Kq=sr.extend({method:ke("elicitation/create"),params:Vq}),Hq=gn.extend({elicitationId:V()}),Gq=yn.extend({method:ke("notifications/elicitation/complete"),params:Hq}),Jq=lr.extend({action:Jr(["accept","decline","cancel"]),content:oz(e=>e===null?void 0:e,$t(V(),mt([V(),rt(),ir(),He(V())])).optional())}),Yq=ce({type:ke("ref/resource"),uri:V()}),Xq=ce({type:ke("ref/prompt"),name:V()}),Qq=Yr.extend({ref:mt([Xq,Yq]),argument:ce({name:V(),value:V()}),context:ce({arguments:$t(V(),V()).optional()}).optional()}),eW=sr.extend({method:ke("completion/complete"),params:Qq}),tW=lr.extend({completion:Dr({values:He(V()).max(100),total:At(rt().int()),hasMore:At(ir())})}),rW=ce({uri:V().startsWith("file://"),name:V().optional(),_meta:$t(V(),St()).optional()}),nW=sr.extend({method:ke("roots/list"),params:Yr.optional()}),iW=lr.extend({roots:He(rW)}),aW=yn.extend({method:ke("notifications/roots/list_changed"),params:gn.optional()});mt([Gf,jB,eW,bq,sq,aq,BB,WB,HB,XB,eq,yz,gz,Sb,Ib,Pb,Eb]);mt([_b,xb,NB,aW,Zd]);mt([wb,zq,Aq,Jq,iW,$b,Ob,kb]);mt([Gf,Eq,Kq,nW,Sb,Ib,Pb,Eb]);mt([_b,xb,_q,rq,JB,gq,fq,Zd,Gq]);mt([wb,TB,tW,dq,oq,qB,VB,GB,Jf,vq,$b,Ob,kb]);class Je extends Error{constructor(t,r,n){super(`MCP error ${t}: ${r}`),this.code=t,this.data=n,this.name="McpError"}static fromError(t,r,n){if(t===et.UrlElicitationRequired&&n){const i=n;if(i.elicitations)return new oW(i.elicitations,r)}return new Je(t,r,n)}}class oW extends Je{constructor(t,r=`URL elicitation${t.length>1?"s":""} required`){super(et.UrlElicitationRequired,r,{elicitations:t})}get elicitations(){var t;return((t=this.data)==null?void 0:t.elicitations)??[]}}function ja(e){return e==="completed"||e==="failed"||e==="cancelled"}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function k$(e){const t=pF(e),r=t==null?void 0:t.method;if(!r)throw new Error("Schema is missing a method literal");const n=mF(r);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function S$(e,t){const r=HE(e,t);if(!r.success)throw r.error;return r.data}const uW=6e4;class sW{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(_b,r=>{this._oncancel(r)}),this.setNotificationHandler(xb,r=>{this._onprogress(r)}),this.setRequestHandler(Gf,r=>({})),this._taskStore=t==null?void 0:t.taskStore,this._taskMessageQueue=t==null?void 0:t.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Sb,async(r,n)=>{const i=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!i)throw new Je(et.InvalidParams,"Failed to retrieve task: Task not found");return{...i}}),this.setRequestHandler(Ib,async(r,n)=>{const i=async()=>{var l;const a=r.params.taskId;if(this._taskMessageQueue){let d;for(;d=await this._taskMessageQueue.dequeue(a,n.sessionId);){if(d.type==="response"||d.type==="error"){const f=d.message,p=f.id,m=this._requestResolvers.get(p);if(m)if(this._requestResolvers.delete(p),d.type==="response")m(f);else{const h=f,y=new Je(h.error.code,h.error.message,h.error.data);m(y)}else{const h=d.type==="response"?"Response":"Error";this._onerror(new Error(`${h} handler missing for request ${p}`))}continue}await((l=this._transport)==null?void 0:l.send(d.message,{relatedRequestId:n.requestId}))}}const u=await this._taskStore.getTask(a,n.sessionId);if(!u)throw new Je(et.InvalidParams,`Task not found: ${a}`);if(!ja(u.status))return await this._waitForTaskUpdate(a,n.signal),await i();if(ja(u.status)){const d=await this._taskStore.getTaskResult(a,n.sessionId);return this._clearTaskQueue(a),{...d,_meta:{...d._meta,[Na]:{taskId:a}}}}return await i()};return await i()}),this.setRequestHandler(Pb,async(r,n)=>{var i;try{const{tasks:a,nextCursor:u}=await this._taskStore.listTasks((i=r.params)==null?void 0:i.cursor,n.sessionId);return{tasks:a,nextCursor:u,_meta:{}}}catch(a){throw new Je(et.InvalidParams,`Failed to list tasks: ${a instanceof Error?a.message:String(a)}`)}}),this.setRequestHandler(Eb,async(r,n)=>{try{const i=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!i)throw new Je(et.InvalidParams,`Task not found: ${r.params.taskId}`);if(ja(i.status))throw new Je(et.InvalidParams,`Cannot cancel task in terminal status: ${i.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(r.params.taskId);const a=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!a)throw new Je(et.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...a}}catch(i){throw i instanceof Je?i:new Je(et.InvalidRequest,`Failed to cancel task: ${i instanceof Error?i.message:String(i)}`)}}))}async _oncancel(t){if(!t.params.requestId)return;const r=this._requestHandlerAbortControllers.get(t.params.requestId);r==null||r.abort(t.params.reason)}_setupTimeout(t,r,n,i,a=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(i,r),startTime:Date.now(),timeout:r,maxTotalTimeout:n,resetTimeoutOnProgress:a,onTimeout:i})}_resetTimeout(t){const r=this._timeoutInfo.get(t);if(!r)return!1;const n=Date.now()-r.startTime;if(r.maxTotalTimeout&&n>=r.maxTotalTimeout)throw this._timeoutInfo.delete(t),Je.fromError(et.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:n});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(t){const r=this._timeoutInfo.get(t);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(t))}async connect(t){var a,u,l;if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=t;const r=(a=this.transport)==null?void 0:a.onclose;this._transport.onclose=()=>{r==null||r(),this._onclose()};const n=(u=this.transport)==null?void 0:u.onerror;this._transport.onerror=d=>{n==null||n(d),this._onerror(d)};const i=(l=this._transport)==null?void 0:l.onmessage;this._transport.onmessage=(d,f)=>{i==null||i(d,f),ud(d)||xB(d)?this._onresponse(d):x$(d)?this._onrequest(d,f):_B(d)?this._onnotification(d):this._onerror(new Error(`Unknown message type: ${JSON.stringify(d)}`))},await this._transport.start()}_onclose(){var n;const t=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(const i of this._requestHandlerAbortControllers.values())i.abort();this._requestHandlerAbortControllers.clear();const r=Je.fromError(et.ConnectionClosed,"Connection closed");this._transport=void 0,(n=this.onclose)==null||n.call(this);for(const i of t.values())i(r)}_onerror(t){var r;(r=this.onerror)==null||r.call(this,t)}_onnotification(t){const r=this._notificationHandlers.get(t.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(t)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(t,r){var p,m,h,y;const n=this._requestHandlers.get(t.method)??this.fallbackRequestHandler,i=this._transport,a=(h=(m=(p=t.params)==null?void 0:p._meta)==null?void 0:m[Na])==null?void 0:h.taskId;if(n===void 0){const w={jsonrpc:"2.0",id:t.id,error:{code:et.MethodNotFound,message:"Method not found"}};a&&this._taskMessageQueue?this._enqueueTaskMessage(a,{type:"error",message:w,timestamp:Date.now()},i==null?void 0:i.sessionId).catch(_=>this._onerror(new Error(`Failed to enqueue error response: ${_}`))):i==null||i.send(w).catch(_=>this._onerror(new Error(`Failed to send an error response: ${_}`)));return}const u=new AbortController;this._requestHandlerAbortControllers.set(t.id,u);const l=wB(t.params)?t.params.task:void 0,d=this._taskStore?this.requestTaskStore(t,i==null?void 0:i.sessionId):void 0,f={signal:u.signal,sessionId:i==null?void 0:i.sessionId,_meta:(y=t.params)==null?void 0:y._meta,sendNotification:async w=>{if(u.signal.aborted)return;const _={relatedRequestId:t.id};a&&(_.relatedTask={taskId:a}),await this.notification(w,_)},sendRequest:async(w,_,x)=>{var A;if(u.signal.aborted)throw new Je(et.ConnectionClosed,"Request was cancelled");const $={...x,relatedRequestId:t.id};a&&!$.relatedTask&&($.relatedTask={taskId:a});const E=((A=$.relatedTask)==null?void 0:A.taskId)??a;return E&&d&&await d.updateTaskStatus(E,"input_required"),await this.request(w,_,$)},authInfo:r==null?void 0:r.authInfo,requestId:t.id,requestInfo:r==null?void 0:r.requestInfo,taskId:a,taskStore:d,taskRequestedTtl:l==null?void 0:l.ttl,closeSSEStream:r==null?void 0:r.closeSSEStream,closeStandaloneSSEStream:r==null?void 0:r.closeStandaloneSSEStream};Promise.resolve().then(()=>{l&&this.assertTaskHandlerCapability(t.method)}).then(()=>n(t,f)).then(async w=>{if(u.signal.aborted)return;const _={result:w,jsonrpc:"2.0",id:t.id};a&&this._taskMessageQueue?await this._enqueueTaskMessage(a,{type:"response",message:_,timestamp:Date.now()},i==null?void 0:i.sessionId):await(i==null?void 0:i.send(_))},async w=>{if(u.signal.aborted)return;const _={jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(w.code)?w.code:et.InternalError,message:w.message??"Internal error",...w.data!==void 0&&{data:w.data}}};a&&this._taskMessageQueue?await this._enqueueTaskMessage(a,{type:"error",message:_,timestamp:Date.now()},i==null?void 0:i.sessionId):await(i==null?void 0:i.send(_))}).catch(w=>this._onerror(new Error(`Failed to send response: ${w}`))).finally(()=>{this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){const{progressToken:r,...n}=t.params,i=Number(r),a=this._progressHandlers.get(i);if(!a){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}const u=this._responseHandlers.get(i),l=this._timeoutInfo.get(i);if(l&&u&&l.resetTimeoutOnProgress)try{this._resetTimeout(i)}catch(d){this._responseHandlers.delete(i),this._progressHandlers.delete(i),this._cleanupTimeout(i),u(d);return}a(n)}_onresponse(t){const r=Number(t.id),n=this._requestResolvers.get(r);if(n){if(this._requestResolvers.delete(r),ud(t))n(t);else{const u=new Je(t.error.code,t.error.message,t.error.data);n(u)}return}const i=this._responseHandlers.get(r);if(i===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let a=!1;if(ud(t)&&t.result&&typeof t.result=="object"){const u=t.result;if(u.task&&typeof u.task=="object"){const l=u.task;typeof l.taskId=="string"&&(a=!0,this._taskProgressTokens.set(l.taskId,r))}}if(a||this._progressHandlers.delete(r),ud(t))i(t);else{const u=Je.fromError(t.error.code,t.error.message,t.error.data);i(u)}}get transport(){return this._transport}async close(){var t;await((t=this._transport)==null?void 0:t.close())}async*requestStream(t,r,n){var u,l;const{task:i}=n??{};if(!i){try{yield{type:"result",result:await this.request(t,r,n)}}catch(d){yield{type:"error",error:d instanceof Je?d:new Je(et.InternalError,String(d))}}return}let a;try{const d=await this.request(t,kb,n);if(d.task)a=d.task.taskId,yield{type:"taskCreated",task:d.task};else throw new Je(et.InternalError,"Task creation did not return a task");for(;;){const f=await this.getTask({taskId:a},n);if(yield{type:"taskStatus",task:f},ja(f.status)){f.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:a},r,n)}:f.status==="failed"?yield{type:"error",error:new Je(et.InternalError,`Task ${a} failed`)}:f.status==="cancelled"&&(yield{type:"error",error:new Je(et.InternalError,`Task ${a} was cancelled`)});return}if(f.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:a},r,n)};return}const p=f.pollInterval??((u=this._options)==null?void 0:u.defaultTaskPollInterval)??1e3;await new Promise(m=>setTimeout(m,p)),(l=n==null?void 0:n.signal)==null||l.throwIfAborted()}}catch(d){yield{type:"error",error:d instanceof Je?d:new Je(et.InternalError,String(d))}}}request(t,r,n){const{relatedRequestId:i,resumptionToken:a,onresumptiontoken:u,task:l,relatedTask:d}=n??{};return new Promise((f,p)=>{var E,A,I,j,z;const m=N=>{p(N)};if(!this._transport){m(new Error("Not connected"));return}if(((E=this._options)==null?void 0:E.enforceStrictCapabilities)===!0)try{this.assertCapabilityForMethod(t.method),l&&this.assertTaskCapability(t.method)}catch(N){m(N);return}(A=n==null?void 0:n.signal)==null||A.throwIfAborted();const h=this._requestMessageId++,y={...t,jsonrpc:"2.0",id:h};n!=null&&n.onprogress&&(this._progressHandlers.set(h,n.onprogress),y.params={...t.params,_meta:{...((I=t.params)==null?void 0:I._meta)||{},progressToken:h}}),l&&(y.params={...y.params,task:l}),d&&(y.params={...y.params,_meta:{...((j=y.params)==null?void 0:j._meta)||{},[Na]:d}});const w=N=>{var K;this._responseHandlers.delete(h),this._progressHandlers.delete(h),this._cleanupTimeout(h),(K=this._transport)==null||K.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:h,reason:String(N)}},{relatedRequestId:i,resumptionToken:a,onresumptiontoken:u}).catch(se=>this._onerror(new Error(`Failed to send cancellation: ${se}`)));const M=N instanceof Je?N:new Je(et.RequestTimeout,String(N));p(M)};this._responseHandlers.set(h,N=>{var M;if(!((M=n==null?void 0:n.signal)!=null&&M.aborted)){if(N instanceof Error)return p(N);try{const K=HE(r,N.result);K.success?f(K.data):p(K.error)}catch(K){p(K)}}}),(z=n==null?void 0:n.signal)==null||z.addEventListener("abort",()=>{var N;w((N=n==null?void 0:n.signal)==null?void 0:N.reason)});const _=(n==null?void 0:n.timeout)??uW,x=()=>w(Je.fromError(et.RequestTimeout,"Request timed out",{timeout:_}));this._setupTimeout(h,_,n==null?void 0:n.maxTotalTimeout,x,(n==null?void 0:n.resetTimeoutOnProgress)??!1);const $=d==null?void 0:d.taskId;if($){const N=M=>{const K=this._responseHandlers.get(h);K?K(M):this._onerror(new Error(`Response handler missing for side-channeled request ${h}`))};this._requestResolvers.set(h,N),this._enqueueTaskMessage($,{type:"request",message:y,timestamp:Date.now()}).catch(M=>{this._cleanupTimeout(h),p(M)})}else this._transport.send(y,{relatedRequestId:i,resumptionToken:a,onresumptiontoken:u}).catch(N=>{this._cleanupTimeout(h),p(N)})})}async getTask(t,r){return this.request({method:"tasks/get",params:t},$b,r)}async getTaskResult(t,r,n){return this.request({method:"tasks/result",params:t},r,n)}async listTasks(t,r){return this.request({method:"tasks/list",params:t},Ob,r)}async cancelTask(t,r){return this.request({method:"tasks/cancel",params:t},ZB,r)}async notification(t,r){var l,d,f,p;if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);const n=(l=r==null?void 0:r.relatedTask)==null?void 0:l.taskId;if(n){const m={...t,jsonrpc:"2.0",params:{...t.params,_meta:{...((d=t.params)==null?void 0:d._meta)||{},[Na]:r.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:m,timestamp:Date.now()});return}if((((f=this._options)==null?void 0:f.debouncedNotificationMethods)??[]).includes(t.method)&&!t.params&&!(r!=null&&r.relatedRequestId)&&!(r!=null&&r.relatedTask)){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{var h,y;if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;let m={...t,jsonrpc:"2.0"};r!=null&&r.relatedTask&&(m={...m,params:{...m.params,_meta:{...((h=m.params)==null?void 0:h._meta)||{},[Na]:r.relatedTask}}}),(y=this._transport)==null||y.send(m,r).catch(w=>this._onerror(w))});return}let u={...t,jsonrpc:"2.0"};r!=null&&r.relatedTask&&(u={...u,params:{...u.params,_meta:{...((p=u.params)==null?void 0:p._meta)||{},[Na]:r.relatedTask}}}),await this._transport.send(u,r)}setRequestHandler(t,r){const n=k$(t);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(i,a)=>{const u=S$(t,i);return Promise.resolve(r(u,a))})}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,r){const n=k$(t);this._notificationHandlers.set(n,i=>{const a=S$(t,i);return Promise.resolve(r(a))})}removeNotificationHandler(t){this._notificationHandlers.delete(t)}_cleanupTaskProgressHandler(t){const r=this._taskProgressTokens.get(t);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(t))}async _enqueueTaskMessage(t,r,n){var a;if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const i=(a=this._options)==null?void 0:a.maxTaskQueueSize;await this._taskMessageQueue.enqueue(t,r,n,i)}async _clearTaskQueue(t,r){if(this._taskMessageQueue){const n=await this._taskMessageQueue.dequeueAll(t,r);for(const i of n)if(i.type==="request"&&x$(i.message)){const a=i.message.id,u=this._requestResolvers.get(a);u?(u(new Je(et.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(a)):this._onerror(new Error(`Resolver missing for request ${a} during task ${t} cleanup`))}}}async _waitForTaskUpdate(t,r){var i,a;let n=((i=this._options)==null?void 0:i.defaultTaskPollInterval)??1e3;try{const u=await((a=this._taskStore)==null?void 0:a.getTask(t));u!=null&&u.pollInterval&&(n=u.pollInterval)}catch{}return new Promise((u,l)=>{if(r.aborted){l(new Je(et.InvalidRequest,"Request cancelled"));return}const d=setTimeout(u,n);r.addEventListener("abort",()=>{clearTimeout(d),l(new Je(et.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(t,r){const n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async i=>{if(!t)throw new Error("No request provided");return await n.createTask(i,t.id,{method:t.method,params:t.params},r)},getTask:async i=>{const a=await n.getTask(i,r);if(!a)throw new Je(et.InvalidParams,"Failed to retrieve task: Task not found");return a},storeTaskResult:async(i,a,u)=>{await n.storeTaskResult(i,a,u,r);const l=await n.getTask(i,r);if(l){const d=Zd.parse({method:"notifications/tasks/status",params:l});await this.notification(d),ja(l.status)&&this._cleanupTaskProgressHandler(i)}},getTaskResult:i=>n.getTaskResult(i,r),updateTaskStatus:async(i,a,u)=>{const l=await n.getTask(i,r);if(!l)throw new Je(et.InvalidParams,`Task "${i}" not found - it may have been cleaned up`);if(ja(l.status))throw new Je(et.InvalidParams,`Cannot update task "${i}" from terminal status "${l.status}" to "${a}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(i,a,u,r);const d=await n.getTask(i,r);if(d){const f=Zd.parse({method:"notifications/tasks/status",params:d});await this.notification(f),ja(d.status)&&this._cleanupTaskProgressHandler(i)}},listTasks:i=>n.listTasks(i,r)}}}var lW=Object.defineProperty,ki=(e,t)=>{for(var r in t)lW(e,r,{get:t[r],enumerable:!0,configurable:!0,set:n=>t[r]=()=>n})};class wz{constructor(t=window.parent,r){Wt(this,"eventTarget");Wt(this,"eventSource");Wt(this,"messageListener");Wt(this,"onclose");Wt(this,"onerror");Wt(this,"onmessage");Wt(this,"sessionId");Wt(this,"setProtocolVersion");this.eventTarget=t,this.eventSource=r,this.messageListener=n=>{var a,u,l;if(r&&n.source!==this.eventSource){console.debug("Ignoring message from unknown source",n);return}let i=kB.safeParse(n.data);i.success?(console.debug("Parsed message",i.data),(a=this.onmessage)==null||a.call(this,i.data)):((u=n.data)==null?void 0:u.jsonrpc)!=="2.0"?console.debug("Ignoring non-JSON-RPC message",i.error.message,n):(console.error("Failed to parse message",i.error.message,n),(l=this.onerror)==null||l.call(this,Error("Invalid JSON-RPC message received: "+i.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(t,r){console.debug("Sending message",t),this.eventTarget.postMessage(t,"*")}async close(){var t;window.removeEventListener("message",this.messageListener),(t=this.onclose)==null||t.call(this)}}var cW="2026-01-26",P={};ki(P,{xor:()=>MN,xid:()=>oN,void:()=>AN,uuidv7:()=>XT,uuidv6:()=>YT,uuidv4:()=>JT,uuid:()=>GT,util:()=>qe,url:()=>QT,uppercase:()=>ap,unknown:()=>Xa,union:()=>Np,undefined:()=>EN,ulid:()=>aN,uint64:()=>PN,uint32:()=>SN,tuple:()=>nw,trim:()=>dp,treeifyError:()=>Nz,transform:()=>Mp,toUpperCase:()=>pp,toLowerCase:()=>fp,toJSONSchema:()=>PT,templateLiteral:()=>JN,symbol:()=>ON,superRefine:()=>zw,success:()=>KN,stringbool:()=>nD,stringFormat:()=>gN,string:()=>Gd,strictObject:()=>NN,startsWith:()=>up,slugify:()=>mp,size:()=>gl,setErrorMap:()=>A9,set:()=>FN,safeParseAsync:()=>RT,safeParse:()=>MT,safeEncodeAsync:()=>WT,safeEncode:()=>BT,safeDecodeAsync:()=>VT,safeDecode:()=>qT,registry:()=>u0,regexes:()=>so,regex:()=>np,refine:()=>Ew,record:()=>iw,readonly:()=>kw,property:()=>j0,promise:()=>YN,prettifyError:()=>Mz,preprocess:()=>aD,prefault:()=>hw,positive:()=>O0,pipe:()=>Ts,partialRecord:()=>UN,parseAsync:()=>DT,parse:()=>NT,overwrite:()=>$i,optional:()=>js,object:()=>TN,number:()=>Z0,nullish:()=>VN,nullable:()=>Cs,null:()=>V0,normalize:()=>cp,nonpositive:()=>z0,nonoptional:()=>gw,nonnegative:()=>A0,never:()=>Cp,negative:()=>E0,nativeEnum:()=>BN,nanoid:()=>rN,nan:()=>HN,multipleOf:()=>Qo,minSize:()=>da,minLength:()=>Ya,mime:()=>lp,meta:()=>tD,maxSize:()=>du,maxLength:()=>yl,map:()=>ZN,mac:()=>lN,lte:()=>fn,lt:()=>la,lowercase:()=>ip,looseRecord:()=>LN,looseObject:()=>DN,locales:()=>o0,literal:()=>qN,length:()=>bl,lazy:()=>Iw,ksuid:()=>uN,keyof:()=>CN,jwt:()=>hN,json:()=>iD,iso:()=>N0,ipv6:()=>cN,ipv4:()=>sN,intersection:()=>tw,int64:()=>IN,int32:()=>kN,int:()=>Jd,instanceof:()=>rD,includes:()=>op,httpUrl:()=>eN,hostname:()=>yN,hex:()=>bN,hash:()=>wN,guid:()=>HT,gte:()=>Nr,gt:()=>ca,globalRegistry:()=>ln,getErrorMap:()=>j9,function:()=>Yd,fromJSONSchema:()=>D9,formatError:()=>Lb,float64:()=>xN,float32:()=>_N,flattenError:()=>Ub,file:()=>WN,exactOptional:()=>dw,enum:()=>Dp,endsWith:()=>sp,encodeAsync:()=>ZT,encode:()=>UT,emoji:()=>tN,email:()=>KT,e164:()=>vN,discriminatedUnion:()=>RN,describe:()=>eD,decodeAsync:()=>FT,decode:()=>LT,date:()=>jN,custom:()=>QN,cuid2:()=>iN,cuid:()=>nN,core:()=>_z,config:()=>wr,coerce:()=>uD,codec:()=>GN,clone:()=>bn,cidrv6:()=>fN,cidrv4:()=>dN,check:()=>XN,catch:()=>ww,boolean:()=>F0,bigint:()=>$N,base64url:()=>mN,base64:()=>pN,array:()=>Il,any:()=>zN,_function:()=>Yd,_default:()=>mw,_ZodString:()=>vp,ZodXor:()=>X0,ZodXID:()=>xp,ZodVoid:()=>J0,ZodUnknown:()=>H0,ZodUnion:()=>Ol,ZodUndefined:()=>q0,ZodUUID:()=>Wn,ZodURL:()=>xl,ZodULID:()=>_p,ZodType:()=>Le,ZodTuple:()=>rw,ZodTransform:()=>lw,ZodTemplateLiteral:()=>Sw,ZodSymbol:()=>B0,ZodSuccess:()=>yw,ZodStringFormat:()=>ut,ZodString:()=>_l,ZodSet:()=>ow,ZodRecord:()=>El,ZodRealError:()=>Qr,ZodReadonly:()=>xw,ZodPromise:()=>Pw,ZodPrefault:()=>vw,ZodPipe:()=>Lp,ZodOptional:()=>Rp,ZodObject:()=>Pl,ZodNumberFormat:()=>lo,ZodNumber:()=>kl,ZodNullable:()=>fw,ZodNull:()=>W0,ZodNonOptional:()=>Up,ZodNever:()=>G0,ZodNanoID:()=>yp,ZodNaN:()=>_w,ZodMap:()=>aw,ZodMAC:()=>L0,ZodLiteral:()=>uw,ZodLazy:()=>$w,ZodKSUID:()=>kp,ZodJWT:()=>Ap,ZodIssueCode:()=>z9,ZodIntersection:()=>ew,ZodISOTime:()=>R0,ZodISODuration:()=>U0,ZodISODateTime:()=>D0,ZodISODate:()=>M0,ZodIPv6:()=>$p,ZodIPv4:()=>Sp,ZodGUID:()=>As,ZodFunction:()=>Ow,ZodFirstPartyTypeKind:()=>py,ZodFile:()=>sw,ZodExactOptional:()=>cw,ZodError:()=>E9,ZodEnum:()=>nu,ZodEmoji:()=>gp,ZodEmail:()=>hp,ZodE164:()=>zp,ZodDiscriminatedUnion:()=>Q0,ZodDefault:()=>pw,ZodDate:()=>Tp,ZodCustomStringFormat:()=>fu,ZodCustom:()=>zl,ZodCodec:()=>Zp,ZodCatch:()=>bw,ZodCUID2:()=>wp,ZodCUID:()=>bp,ZodCIDRv6:()=>Pp,ZodCIDRv4:()=>Ip,ZodBoolean:()=>Sl,ZodBigIntFormat:()=>jp,ZodBigInt:()=>$l,ZodBase64URL:()=>Ep,ZodBase64:()=>Op,ZodArray:()=>Y0,ZodAny:()=>K0,TimePrecision:()=>oC,NEVER:()=>xz,$output:()=>eC,$input:()=>tC,$brand:()=>kz});var _z={};ki(_z,{version:()=>MA,util:()=>qe,treeifyError:()=>Nz,toJSONSchema:()=>PT,toDotPath:()=>Dz,safeParseAsync:()=>Uz,safeParse:()=>Rz,safeEncodeAsync:()=>BW,safeEncode:()=>ZW,safeDecodeAsync:()=>qW,safeDecode:()=>FW,registry:()=>u0,regexes:()=>so,process:()=>nt,prettifyError:()=>Mz,parseAsync:()=>cy,parse:()=>ly,meta:()=>ZC,locales:()=>o0,isValidJWT:()=>sj,isValidBase64URL:()=>aj,isValidBase64:()=>Qb,initializeContext:()=>eu,globalRegistry:()=>ln,globalConfig:()=>Bd,formatError:()=>Lb,flattenError:()=>Ub,finalize:()=>ru,extractDefs:()=>tu,encodeAsync:()=>UW,encode:()=>MW,describe:()=>LC,decodeAsync:()=>LW,decode:()=>RW,createToJSONSchemaMethod:()=>BC,createStandardJSONSchemaMethod:()=>zs,config:()=>wr,clone:()=>bn,_xor:()=>i9,_xid:()=>y0,_void:()=>zC,_uuidv7:()=>f0,_uuidv6:()=>d0,_uuidv4:()=>c0,_uuid:()=>l0,_url:()=>rp,_uppercase:()=>ap,_unknown:()=>OC,_union:()=>n9,_undefined:()=>$C,_ulid:()=>g0,_uint64:()=>kC,_uint32:()=>gC,_tuple:()=>u9,_trim:()=>dp,_transform:()=>m9,_toUpperCase:()=>pp,_toLowerCase:()=>fp,_templateLiteral:()=>k9,_symbol:()=>SC,_superRefine:()=>RC,_success:()=>b9,_stringbool:()=>FC,_stringFormat:()=>wl,_string:()=>nC,_startsWith:()=>up,_slugify:()=>mp,_size:()=>gl,_set:()=>c9,_safeParseAsync:()=>fl,_safeParse:()=>dl,_safeEncodeAsync:()=>Kb,_safeEncode:()=>Wb,_safeDecodeAsync:()=>Hb,_safeDecode:()=>Vb,_regex:()=>np,_refine:()=>MC,_record:()=>s9,_readonly:()=>x9,_property:()=>j0,_promise:()=>$9,_positive:()=>O0,_pipe:()=>_9,_parseAsync:()=>cl,_parse:()=>ll,_overwrite:()=>$i,_optional:()=>v9,_number:()=>dC,_nullable:()=>h9,_null:()=>IC,_normalize:()=>cp,_nonpositive:()=>z0,_nonoptional:()=>y9,_nonnegative:()=>A0,_never:()=>EC,_negative:()=>E0,_nativeEnum:()=>f9,_nanoid:()=>m0,_nan:()=>CC,_multipleOf:()=>Qo,_minSize:()=>da,_minLength:()=>Ya,_min:()=>Nr,_mime:()=>lp,_maxSize:()=>du,_maxLength:()=>yl,_max:()=>fn,_map:()=>l9,_mac:()=>aC,_lte:()=>fn,_lt:()=>la,_lowercase:()=>ip,_literal:()=>p9,_length:()=>bl,_lazy:()=>S9,_ksuid:()=>b0,_jwt:()=>P0,_isoTime:()=>lC,_isoDuration:()=>cC,_isoDateTime:()=>uC,_isoDate:()=>sC,_ipv6:()=>_0,_ipv4:()=>w0,_intersection:()=>o9,_int64:()=>xC,_int32:()=>hC,_int:()=>pC,_includes:()=>op,_guid:()=>Hd,_gte:()=>Nr,_gt:()=>ca,_float64:()=>vC,_float32:()=>mC,_file:()=>NC,_enum:()=>d9,_endsWith:()=>sp,_encodeAsync:()=>Bb,_encode:()=>Zb,_emoji:()=>p0,_email:()=>s0,_e164:()=>I0,_discriminatedUnion:()=>a9,_default:()=>g9,_decodeAsync:()=>qb,_decode:()=>Fb,_date:()=>AC,_custom:()=>DC,_cuid2:()=>h0,_cuid:()=>v0,_coercedString:()=>iC,_coercedNumber:()=>fC,_coercedDate:()=>jC,_coercedBoolean:()=>bC,_coercedBigint:()=>_C,_cidrv6:()=>k0,_cidrv4:()=>x0,_check:()=>UC,_catch:()=>w9,_boolean:()=>yC,_bigint:()=>wC,_base64url:()=>$0,_base64:()=>S0,_array:()=>TC,_any:()=>PC,TimePrecision:()=>oC,NEVER:()=>xz,JSONSchemaGenerator:()=>P9,JSONSchema:()=>O9,Doc:()=>DA,$output:()=>eC,$input:()=>tC,$constructor:()=>R,$brand:()=>kz,$ZodXor:()=>Ij,$ZodXID:()=>KA,$ZodVoid:()=>bj,$ZodUnknown:()=>gj,$ZodUnion:()=>tp,$ZodUndefined:()=>mj,$ZodUUID:()=>UA,$ZodURL:()=>ZA,$ZodULID:()=>VA,$ZodType:()=>Re,$ZodTuple:()=>n0,$ZodTransform:()=>Nj,$ZodTemplateLiteral:()=>Vj,$ZodSymbol:()=>pj,$ZodSuccess:()=>Zj,$ZodStringFormat:()=>ot,$ZodString:()=>hl,$ZodSet:()=>Aj,$ZodRegistry:()=>rC,$ZodRecord:()=>Ej,$ZodRealError:()=>Xr,$ZodReadonly:()=>Wj,$ZodPromise:()=>Hj,$ZodPrefault:()=>Uj,$ZodPipe:()=>qj,$ZodOptional:()=>i0,$ZodObjectJIT:()=>$j,$ZodObject:()=>Sj,$ZodNumberFormat:()=>dj,$ZodNumber:()=>e0,$ZodNullable:()=>Mj,$ZodNull:()=>vj,$ZodNonOptional:()=>Lj,$ZodNever:()=>yj,$ZodNanoID:()=>BA,$ZodNaN:()=>Bj,$ZodMap:()=>zj,$ZodMAC:()=>tj,$ZodLiteral:()=>Cj,$ZodLazy:()=>Gj,$ZodKSUID:()=>HA,$ZodJWT:()=>lj,$ZodIntersection:()=>Oj,$ZodISOTime:()=>YA,$ZodISODuration:()=>XA,$ZodISODateTime:()=>GA,$ZodISODate:()=>JA,$ZodIPv6:()=>ej,$ZodIPv4:()=>QA,$ZodGUID:()=>RA,$ZodFunction:()=>Kj,$ZodFile:()=>Tj,$ZodExactOptional:()=>Dj,$ZodError:()=>Rb,$ZodEnum:()=>jj,$ZodEncodeError:()=>Yf,$ZodEmoji:()=>FA,$ZodEmail:()=>LA,$ZodE164:()=>uj,$ZodDiscriminatedUnion:()=>Pj,$ZodDefault:()=>Rj,$ZodDate:()=>wj,$ZodCustomStringFormat:()=>cj,$ZodCustom:()=>Jj,$ZodCodec:()=>a0,$ZodCheckUpperCase:()=>EA,$ZodCheckStringFormat:()=>vl,$ZodCheckStartsWith:()=>AA,$ZodCheckSizeEquals:()=>kA,$ZodCheckRegex:()=>PA,$ZodCheckProperty:()=>CA,$ZodCheckOverwrite:()=>NA,$ZodCheckNumberFormat:()=>bA,$ZodCheckMultipleOf:()=>yA,$ZodCheckMinSize:()=>xA,$ZodCheckMinLength:()=>$A,$ZodCheckMimeType:()=>TA,$ZodCheckMaxSize:()=>_A,$ZodCheckMaxLength:()=>SA,$ZodCheckLowerCase:()=>OA,$ZodCheckLessThan:()=>Yb,$ZodCheckLengthEquals:()=>IA,$ZodCheckIncludes:()=>zA,$ZodCheckGreaterThan:()=>Xb,$ZodCheckEndsWith:()=>jA,$ZodCheckBigIntFormat:()=>wA,$ZodCheck:()=>bt,$ZodCatch:()=>Fj,$ZodCUID2:()=>WA,$ZodCUID:()=>qA,$ZodCIDRv6:()=>nj,$ZodCIDRv4:()=>rj,$ZodBoolean:()=>t0,$ZodBigIntFormat:()=>fj,$ZodBigInt:()=>r0,$ZodBase64URL:()=>oj,$ZodBase64:()=>ij,$ZodAsyncError:()=>Wa,$ZodArray:()=>_j,$ZodAny:()=>hj});var xz=Object.freeze({status:"aborted"});function R(e,t,r){function n(l,d){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:d,constr:u,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,d);let f=u.prototype,p=Object.keys(f);for(let m=0;m<p.length;m++){let h=p[m];h in l||(l[h]=f[h].bind(l))}}let i=(r==null?void 0:r.Parent)??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function u(l){var d;let f=r!=null&&r.Parent?new a:this;n(f,l),(d=f._zod).deferred??(d.deferred=[]);for(let p of f._zod.deferred)p();return f}return Object.defineProperty(u,"init",{value:n}),Object.defineProperty(u,Symbol.hasInstance,{value:l=>{var d,f;return r!=null&&r.Parent&&l instanceof r.Parent?!0:(f=(d=l==null?void 0:l._zod)==null?void 0:d.traits)==null?void 0:f.has(e)}}),Object.defineProperty(u,"name",{value:e}),u}var kz=Symbol("zod_brand");class Wa extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Yf extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}var Bd={};function wr(e){return e&&Object.assign(Bd,e),Bd}var qe={};ki(qe,{unwrapMessage:()=>xs,uint8ArrayToHex:()=>NW,uint8ArrayToBase64url:()=>CW,uint8ArrayToBase64:()=>Cz,stringifyPrimitive:()=>je,slugify:()=>$z,shallowClone:()=>Pz,safeExtend:()=>PW,required:()=>zW,randomString:()=>wW,propertyKeyTypes:()=>Wd,promiseAllObject:()=>bW,primitiveTypes:()=>Oz,prefixIssues:()=>jn,pick:()=>SW,partial:()=>EW,parsedType:()=>Ne,optionalKeys:()=>Ez,omit:()=>$W,objectClone:()=>hW,numKeys:()=>_W,nullish:()=>uo,normalizeParams:()=>ne,mergeDefs:()=>Si,merge:()=>OW,jsonStringifyReplacer:()=>qd,joinValues:()=>re,issue:()=>Vd,isPlainObject:()=>Ja,isObject:()=>Yo,hexToUint8Array:()=>TW,getSizableOrigin:()=>Qf,getParsedType:()=>xW,getLengthableOrigin:()=>ep,getEnumValues:()=>Db,getElementAtPath:()=>yW,floatSafeRemainder:()=>Sz,finalizeIssue:()=>pn,extend:()=>IW,escapeRegex:()=>hi,esc:()=>sy,defineLazy:()=>Fe,createTransparentProxy:()=>kW,cloneDef:()=>gW,clone:()=>bn,cleanRegex:()=>Xf,cleanEnum:()=>AW,captureStackTrace:()=>Mb,cached:()=>sl,base64urlToUint8Array:()=>jW,base64ToUint8Array:()=>jz,assignProp:()=>ma,assertNotEqual:()=>fW,assertNever:()=>mW,assertIs:()=>pW,assertEqual:()=>dW,assert:()=>vW,allowsEval:()=>Iz,aborted:()=>La,NUMBER_FORMAT_RANGES:()=>zz,Class:()=>DW,BIGINT_FORMAT_RANGES:()=>Az});function dW(e){return e}function fW(e){return e}function pW(e){}function mW(e){throw Error("Unexpected value in exhaustive check")}function vW(e){}function Db(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,n])=>t.indexOf(+r)===-1).map(([r,n])=>n)}function re(e,t="|"){return e.map(r=>je(r)).join(t)}function qd(e,t){return typeof t=="bigint"?t.toString():t}function sl(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function uo(e){return e==null}function Xf(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Sz(e,t){let r=(e.toString().split(".")[1]||"").length,n=t.toString(),i=(n.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(n)){let d=n.match(/\d?e-(\d?)/);d!=null&&d[1]&&(i=Number.parseInt(d[1]))}let a=r>i?r:i,u=Number.parseInt(e.toFixed(a).replace(".","")),l=Number.parseInt(t.toFixed(a).replace(".",""));return u%l/10**a}var $$=Symbol("evaluating");function Fe(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==$$)return n===void 0&&(n=$$,n=r()),n},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function hW(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function ma(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Si(...e){let t={};for(let r of e){let n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function gW(e){return Si(e._zod.def)}function yW(e,t){return t?t.reduce((r,n)=>r==null?void 0:r[n],e):e}function bW(e){let t=Object.keys(e),r=t.map(n=>e[n]);return Promise.all(r).then(n=>{let i={};for(let a=0;a<t.length;a++)i[t[a]]=n[a];return i})}function wW(e=10){let t="";for(let r=0;r<e;r++)t+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return t}function sy(e){return JSON.stringify(e)}function $z(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Mb="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Yo(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Iz=sl(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{return new Function(""),!0}catch{return!1}});function Ja(e){if(Yo(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Yo(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Pz(e){return Ja(e)?{...e}:Array.isArray(e)?[...e]:e}function _W(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var xW=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw Error(`Unknown data type: ${t}`)}},Wd=new Set(["string","number","symbol"]),Oz=new Set(["string","number","bigint","boolean","symbol","undefined"]);function hi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function bn(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r!=null&&r.parent)&&(n._zod.parent=e),n}function ne(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function kW(e){let t;return new Proxy({},{get(r,n,i){return t??(t=e()),Reflect.get(t,n,i)},set(r,n,i,a){return t??(t=e()),Reflect.set(t,n,i,a)},has(r,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(r,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(r,n,i){return t??(t=e()),Reflect.defineProperty(t,n,i)}})}function je(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ez(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var zz={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Az={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function SW(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i=Si(e._zod.def,{get shape(){let a={};for(let u in t){if(!(u in r.shape))throw Error(`Unrecognized key: "${u}"`);t[u]&&(a[u]=r.shape[u])}return ma(this,"shape",a),a},checks:[]});return bn(e,i)}function $W(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=Si(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let u in t){if(!(u in r.shape))throw Error(`Unrecognized key: "${u}"`);t[u]&&delete a[u]}return ma(this,"shape",a),a},checks:[]});return bn(e,i)}function IW(e,t){if(!Ja(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Si(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return ma(this,"shape",i),i}});return bn(e,n)}function PW(e,t){if(!Ja(t))throw Error("Invalid input to safeExtend: expected a plain object");let r=Si(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ma(this,"shape",n),n}});return bn(e,r)}function OW(e,t){let r=Si(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ma(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return bn(e,r)}function EW(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let i=Si(t._zod.def,{get shape(){let a=t._zod.def.shape,u={...a};if(r)for(let l in r){if(!(l in a))throw Error(`Unrecognized key: "${l}"`);r[l]&&(u[l]=e?new e({type:"optional",innerType:a[l]}):a[l])}else for(let l in a)u[l]=e?new e({type:"optional",innerType:a[l]}):a[l];return ma(this,"shape",u),u},checks:[]});return bn(t,i)}function zW(e,t,r){let n=Si(t._zod.def,{get shape(){let i=t._zod.def.shape,a={...i};if(r)for(let u in r){if(!(u in a))throw Error(`Unrecognized key: "${u}"`);r[u]&&(a[u]=new e({type:"nonoptional",innerType:i[u]}))}else for(let u in i)a[u]=new e({type:"nonoptional",innerType:i[u]});return ma(this,"shape",a),a}});return bn(t,n)}function La(e,t=0){var r;if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(((r=e.issues[n])==null?void 0:r.continue)!==!0)return!0;return!1}function jn(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function xs(e){return typeof e=="string"?e:e==null?void 0:e.message}function pn(e,t,r){var i,a,u,l,d,f;let n={...e,path:e.path??[]};if(!e.message){let p=xs((u=(a=(i=e.inst)==null?void 0:i._zod.def)==null?void 0:a.error)==null?void 0:u.call(a,e))??xs((l=t==null?void 0:t.error)==null?void 0:l.call(t,e))??xs((d=r.customError)==null?void 0:d.call(r,e))??xs((f=r.localeError)==null?void 0:f.call(r,e))??"Invalid input";n.message=p}return delete n.inst,delete n.continue,!(t!=null&&t.reportInput)&&delete n.input,n}function Qf(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ep(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ne(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Vd(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}function AW(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function jz(e){let t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}function Cz(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function jW(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return jz(t+r)}function CW(e){return Cz(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function TW(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)r[n/2]=Number.parseInt(t.slice(n,n+2),16);return r}function NW(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}class DW{constructor(...t){}}var Tz=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,qd,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Rb=R("$ZodError",Tz),Xr=R("$ZodError",Tz,{Parent:Error});function Ub(e,t=r=>r.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}function Lb(e,t=r=>r.message){let r={_errors:[]},n=i=>{for(let a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(u=>n({issues:u}));else if(a.code==="invalid_key")n({issues:a.issues});else if(a.code==="invalid_element")n({issues:a.issues});else if(a.path.length===0)r._errors.push(t(a));else{let u=r,l=0;for(;l<a.path.length;){let d=a.path[l];l!==a.path.length-1?u[d]=u[d]||{_errors:[]}:(u[d]=u[d]||{_errors:[]},u[d]._errors.push(t(a))),u=u[d],l++}}};return n(e),r}function Nz(e,t=r=>r.message){let r={errors:[]},n=(i,a=[])=>{var u,l;for(let d of i.issues)if(d.code==="invalid_union"&&d.errors.length)d.errors.map(f=>n({issues:f},d.path));else if(d.code==="invalid_key")n({issues:d.issues},d.path);else if(d.code==="invalid_element")n({issues:d.issues},d.path);else{let f=[...a,...d.path];if(f.length===0){r.errors.push(t(d));continue}let p=r,m=0;for(;m<f.length;){let h=f[m],y=m===f.length-1;typeof h=="string"?(p.properties??(p.properties={}),(u=p.properties)[h]??(u[h]={errors:[]}),p=p.properties[h]):(p.items??(p.items=[]),(l=p.items)[h]??(l[h]={errors:[]}),p=p.items[h]),y&&p.errors.push(t(d)),m++}}};return n(e),r}function Dz(e){let t=[],r=e.map(n=>typeof n=="object"?n.key:n);for(let n of r)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function Mz(e){var n;let t=[],r=[...e.issues].sort((i,a)=>(i.path??[]).length-(a.path??[]).length);for(let i of r)t.push(`✖ ${i.message}`),(n=i.path)!=null&&n.length&&t.push(` → at ${Dz(i.path)}`);return t.join(`
|
|
50
|
+
`)}var ll=e=>(t,r,n,i)=>{let a=n?Object.assign(n,{async:!1}):{async:!1},u=t._zod.run({value:r,issues:[]},a);if(u instanceof Promise)throw new Wa;if(u.issues.length){let l=new((i==null?void 0:i.Err)??e)(u.issues.map(d=>pn(d,a,wr())));throw Mb(l,i==null?void 0:i.callee),l}return u.value},ly=ll(Xr),cl=e=>async(t,r,n,i)=>{let a=n?Object.assign(n,{async:!0}):{async:!0},u=t._zod.run({value:r,issues:[]},a);if(u instanceof Promise&&(u=await u),u.issues.length){let l=new((i==null?void 0:i.Err)??e)(u.issues.map(d=>pn(d,a,wr())));throw Mb(l,i==null?void 0:i.callee),l}return u.value},cy=cl(Xr),dl=e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new Wa;return a.issues.length?{success:!1,error:new(e??Rb)(a.issues.map(u=>pn(u,i,wr())))}:{success:!0,data:a.value}},Rz=dl(Xr),fl=e=>async(t,r,n)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(u=>pn(u,i,wr())))}:{success:!0,data:a.value}},Uz=fl(Xr),Zb=e=>(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ll(e)(t,r,i)},MW=Zb(Xr),Fb=e=>(t,r,n)=>ll(e)(t,r,n),RW=Fb(Xr),Bb=e=>async(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return cl(e)(t,r,i)},UW=Bb(Xr),qb=e=>async(t,r,n)=>cl(e)(t,r,n),LW=qb(Xr),Wb=e=>(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return dl(e)(t,r,i)},ZW=Wb(Xr),Vb=e=>(t,r,n)=>dl(e)(t,r,n),FW=Vb(Xr),Kb=e=>async(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return fl(e)(t,r,i)},BW=Kb(Xr),Hb=e=>async(t,r,n)=>fl(e)(t,r,n),qW=Hb(Xr),so={};ki(so,{xid:()=>Bz,uuid7:()=>HW,uuid6:()=>KW,uuid4:()=>VW,uuid:()=>Xo,uppercase:()=>hA,unicodeEmail:()=>Gz,undefined:()=>mA,ulid:()=>Fz,time:()=>uA,string:()=>lA,sha512_hex:()=>v5,sha512_base64url:()=>g5,sha512_base64:()=>h5,sha384_hex:()=>f5,sha384_base64url:()=>m5,sha384_base64:()=>p5,sha256_hex:()=>l5,sha256_base64url:()=>d5,sha256_base64:()=>c5,sha1_hex:()=>o5,sha1_base64url:()=>s5,sha1_base64:()=>u5,rfc5322Email:()=>JW,number:()=>Jb,null:()=>pA,nanoid:()=>Wz,md5_hex:()=>n5,md5_base64url:()=>a5,md5_base64:()=>i5,mac:()=>Qz,lowercase:()=>vA,ksuid:()=>qz,ipv6:()=>Xz,ipv4:()=>Yz,integer:()=>dA,idnEmail:()=>YW,html5Email:()=>GW,hostname:()=>e5,hex:()=>r5,guid:()=>Kz,extendedDuration:()=>WW,emoji:()=>Jz,email:()=>Hz,e164:()=>nA,duration:()=>Vz,domain:()=>t5,datetime:()=>sA,date:()=>aA,cuid2:()=>Zz,cuid:()=>Lz,cidrv6:()=>tA,cidrv4:()=>eA,browserEmail:()=>XW,boolean:()=>fA,bigint:()=>cA,base64url:()=>Gb,base64:()=>rA});var Lz=/^[cC][^\s-]{8,}$/,Zz=/^[0-9a-z]+$/,Fz=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Bz=/^[0-9a-vA-V]{20}$/,qz=/^[A-Za-z0-9]{27}$/,Wz=/^[a-zA-Z0-9_-]{21}$/,Vz=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,WW=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Kz=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Xo=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,VW=Xo(4),KW=Xo(6),HW=Xo(7),Hz=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,GW=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,JW=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Gz=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,YW=Gz,XW=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,QW="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Jz(){return new RegExp(QW,"u")}var Yz=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Xz=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Qz=e=>{let t=hi(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},eA=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,tA=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,rA=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Gb=/^[A-Za-z0-9_-]*$/,e5=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,t5=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,nA=/^\+[1-9]\d{6,14}$/,iA="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",aA=new RegExp(`^${iA}$`);function oA(e){return typeof e.precision=="number"?e.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":e.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${e.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function uA(e){return new RegExp(`^${oA(e)}$`)}function sA(e){let t=oA({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${r.join("|")})`;return new RegExp(`^${iA}T(?:${n})$`)}var lA=e=>{let t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},cA=/^-?\d+n?$/,dA=/^-?\d+$/,Jb=/^-?\d+(?:\.\d+)?$/,fA=/^(?:true|false)$/i,pA=/^null$/i,mA=/^undefined$/i,vA=/^[^A-Z]*$/,hA=/^[^a-z]*$/,r5=/^[0-9a-fA-F]*$/;function pl(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function ml(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var n5=/^[0-9a-fA-F]{32}$/,i5=pl(22,"=="),a5=ml(22),o5=/^[0-9a-fA-F]{40}$/,u5=pl(27,"="),s5=ml(27),l5=/^[0-9a-fA-F]{64}$/,c5=pl(43,"="),d5=ml(43),f5=/^[0-9a-fA-F]{96}$/,p5=pl(64,""),m5=ml(64),v5=/^[0-9a-fA-F]{128}$/,h5=pl(86,"=="),g5=ml(86),bt=R("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),gA={number:"number",bigint:"bigint",object:"date"},Yb=R("$ZodCheckLessThan",(e,t)=>{bt.init(e,t);let r=gA[typeof t.value];e._zod.onattach.push(n=>{let i=n._zod.bag,a=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Xb=R("$ZodCheckGreaterThan",(e,t)=>{bt.init(e,t);let r=gA[typeof t.value];e._zod.onattach.push(n=>{let i=n._zod.bag,a=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),yA=R("$ZodCheckMultipleOf",(e,t)=>{bt.init(e,t),e._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):Sz(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),bA=R("$ZodCheckNumberFormat",(e,t)=>{var u;bt.init(e,t),t.format=t.format||"float64";let r=(u=t.format)==null?void 0:u.includes("int"),n=r?"int":"number",[i,a]=zz[t.format];e._zod.onattach.push(l=>{let d=l._zod.bag;d.format=t.format,d.minimum=i,d.maximum=a,r&&(d.pattern=dA)}),e._zod.check=l=>{let d=l.value;if(r){if(!Number.isInteger(d)){l.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:d,inst:e});return}if(!Number.isSafeInteger(d)){d>0?l.issues.push({input:d,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):l.issues.push({input:d,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}d<i&&l.issues.push({origin:"number",input:d,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),d>a&&l.issues.push({origin:"number",input:d,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),wA=R("$ZodCheckBigIntFormat",(e,t)=>{bt.init(e,t);let[r,n]=Az[t.format];e._zod.onattach.push(i=>{let a=i._zod.bag;a.format=t.format,a.minimum=r,a.maximum=n}),e._zod.check=i=>{let a=i.value;a<r&&i.issues.push({origin:"bigint",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>n&&i.issues.push({origin:"bigint",input:a,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),_A=R("$ZodCheckMaxSize",(e,t)=>{var r;bt.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!uo(i)&&i.size!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let i=n.value;i.size<=t.maximum||n.issues.push({origin:Qf(i),code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),xA=R("$ZodCheckMinSize",(e,t)=>{var r;bt.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!uo(i)&&i.size!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let i=n.value;i.size>=t.minimum||n.issues.push({origin:Qf(i),code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),kA=R("$ZodCheckSizeEquals",(e,t)=>{var r;bt.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!uo(i)&&i.size!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=n=>{let i=n.value,a=i.size;if(a===t.size)return;let u=a>t.size;n.issues.push({origin:Qf(i),...u?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),SA=R("$ZodCheckMaxLength",(e,t)=>{var r;bt.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!uo(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let i=n.value;if(i.length<=t.maximum)return;let a=ep(i);n.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),$A=R("$ZodCheckMinLength",(e,t)=>{var r;bt.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!uo(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let i=n.value;if(i.length>=t.minimum)return;let a=ep(i);n.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),IA=R("$ZodCheckLengthEquals",(e,t)=>{var r;bt.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!uo(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=n=>{let i=n.value,a=i.length;if(a===t.length)return;let u=ep(i),l=a>t.length;n.issues.push({origin:u,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),vl=R("$ZodCheckStringFormat",(e,t)=>{var r,n;bt.init(e,t),e._zod.onattach.push(i=>{let a=i._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),PA=R("$ZodCheckRegex",(e,t)=>{vl.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),OA=R("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=vA),vl.init(e,t)}),EA=R("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=hA),vl.init(e,t)}),zA=R("$ZodCheckIncludes",(e,t)=>{bt.init(e,t);let r=hi(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(i=>{let a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),AA=R("$ZodCheckStartsWith",(e,t)=>{bt.init(e,t);let r=new RegExp(`^${hi(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),jA=R("$ZodCheckEndsWith",(e,t)=>{bt.init(e,t);let r=new RegExp(`.*${hi(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function I$(e,t,r){e.issues.length&&t.issues.push(...jn(r,e.issues))}var CA=R("$ZodCheckProperty",(e,t)=>{bt.init(e,t),e._zod.check=r=>{let n=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(i=>I$(i,r,t.property));I$(n,r,t.property)}}),TA=R("$ZodCheckMimeType",(e,t)=>{bt.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{r.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),NA=R("$ZodCheckOverwrite",(e,t)=>{bt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class DA{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let r=t.split(`
|
|
51
|
+
`).filter(a=>a),n=Math.min(...r.map(a=>a.length-a.trimStart().length)),i=r.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this==null?void 0:this.args,n=[...((this==null?void 0:this.content)??[""]).map(i=>` ${i}`)];return new t(...r,n.join(`
|
|
52
|
+
`))}}var MA={major:4,minor:3,patch:5},Re=R("$ZodType",(e,t)=>{var i;var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=MA;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let a of n)for(let u of a._zod.onattach)u(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),(i=e._zod.deferred)==null||i.push(()=>{e._zod.run=e._zod.parse});else{let a=(l,d,f)=>{let p=La(l),m;for(let h of d){if(h._zod.def.when){if(!h._zod.def.when(l))continue}else if(p)continue;let y=l.issues.length,w=h._zod.check(l);if(w instanceof Promise&&(f==null?void 0:f.async)===!1)throw new Wa;if(m||w instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await w,l.issues.length!==y&&(p||(p=La(l,y)))});else{if(l.issues.length===y)continue;p||(p=La(l,y))}}return m?m.then(()=>l):l},u=(l,d,f)=>{if(La(l))return l.aborted=!0,l;let p=a(d,n,f);if(p instanceof Promise){if(f.async===!1)throw new Wa;return p.then(m=>e._zod.parse(m,f))}return e._zod.parse(p,f)};e._zod.run=(l,d)=>{if(d.skipChecks)return e._zod.parse(l,d);if(d.direction==="backward"){let p=e._zod.parse({value:l.value,issues:[]},{...d,skipChecks:!0});return p instanceof Promise?p.then(m=>u(m,l,d)):u(p,l,d)}let f=e._zod.parse(l,d);if(f instanceof Promise){if(d.async===!1)throw new Wa;return f.then(p=>a(p,n,d))}return a(f,n,d)}}Fe(e,"~standard",()=>({validate:a=>{var u;try{let l=Rz(e,a);return l.success?{value:l.data}:{issues:(u=l.error)==null?void 0:u.issues}}catch{return Uz(e,a).then(d=>{var f;return d.success?{value:d.data}:{issues:(f=d.error)==null?void 0:f.issues}})}},vendor:"zod",version:1}))}),hl=R("$ZodString",(e,t)=>{var r;Re.init(e,t),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??lA(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),ot=R("$ZodStringFormat",(e,t)=>{vl.init(e,t),hl.init(e,t)}),RA=R("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Kz),ot.init(e,t)}),UA=R("$ZodUUID",(e,t)=>{if(t.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Xo(r))}else t.pattern??(t.pattern=Xo());ot.init(e,t)}),LA=R("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Hz),ot.init(e,t)}),ZA=R("$ZodURL",(e,t)=>{ot.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,!t.hostname.test(i.hostname)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,!t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),FA=R("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Jz()),ot.init(e,t)}),BA=R("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Wz),ot.init(e,t)}),qA=R("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Lz),ot.init(e,t)}),WA=R("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Zz),ot.init(e,t)}),VA=R("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Fz),ot.init(e,t)}),KA=R("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Bz),ot.init(e,t)}),HA=R("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=qz),ot.init(e,t)}),GA=R("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=sA(t)),ot.init(e,t)}),JA=R("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=aA),ot.init(e,t)}),YA=R("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=uA(t)),ot.init(e,t)}),XA=R("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Vz),ot.init(e,t)}),QA=R("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Yz),ot.init(e,t),e._zod.bag.format="ipv4"}),ej=R("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Xz),ot.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),tj=R("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Qz(t.delimiter)),ot.init(e,t),e._zod.bag.format="mac"}),rj=R("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=eA),ot.init(e,t)}),nj=R("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=tA),ot.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(n.length!==2)throw Error();let[i,a]=n;if(!a)throw Error();let u=Number(a);if(`${u}`!==a||u<0||u>128)throw Error();new URL(`http://[${i}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Qb(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var ij=R("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=rA),ot.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Qb(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function aj(e){if(!Gb.test(e))return!1;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Qb(r)}var oj=R("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Gb),ot.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{aj(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),uj=R("$ZodE164",(e,t)=>{t.pattern??(t.pattern=nA),ot.init(e,t)});function sj(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}var lj=R("$ZodJWT",(e,t)=>{ot.init(e,t),e._zod.check=r=>{sj(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),cj=R("$ZodCustomStringFormat",(e,t)=>{ot.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),e0=R("$ZodNumber",(e,t)=>{Re.init(e,t),e._zod.pattern=e._zod.bag.pattern??Jb,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let i=r.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return r;let a=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),r}}),dj=R("$ZodNumberFormat",(e,t)=>{bA.init(e,t),e0.init(e,t)}),t0=R("$ZodBoolean",(e,t)=>{Re.init(e,t),e._zod.pattern=fA,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),r0=R("$ZodBigInt",(e,t)=>{Re.init(e,t),e._zod.pattern=cA,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),fj=R("$ZodBigIntFormat",(e,t)=>{wA.init(e,t),r0.init(e,t)}),pj=R("$ZodSymbol",(e,t)=>{Re.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;return typeof i=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),r}}),mj=R("$ZodUndefined",(e,t)=>{Re.init(e,t),e._zod.pattern=mA,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,n)=>{let i=r.value;return typeof i>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),r}}),vj=R("$ZodNull",(e,t)=>{Re.init(e,t),e._zod.pattern=pA,e._zod.values=new Set([null]),e._zod.parse=(r,n)=>{let i=r.value;return i===null||r.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),r}}),hj=R("$ZodAny",(e,t)=>{Re.init(e,t),e._zod.parse=r=>r}),gj=R("$ZodUnknown",(e,t)=>{Re.init(e,t),e._zod.parse=r=>r}),yj=R("$ZodNever",(e,t)=>{Re.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),bj=R("$ZodVoid",(e,t)=>{Re.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;return typeof i>"u"||r.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),r}}),wj=R("$ZodDate",(e,t)=>{Re.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let i=r.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:i,...a?{received:"Invalid Date"}:{},inst:e}),r}});function P$(e,t,r){e.issues.length&&t.issues.push(...jn(r,e.issues)),t.value[r]=e.value}var _j=R("$ZodArray",(e,t)=>{Re.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let a=[];for(let u=0;u<i.length;u++){let l=i[u],d=t.element._zod.run({value:l,issues:[]},n);d instanceof Promise?a.push(d.then(f=>P$(f,r,u))):P$(d,r,u)}return a.length?Promise.all(a).then(()=>r):r}});function Kd(e,t,r,n,i){if(e.issues.length){if(i&&!(r in n))return;t.issues.push(...jn(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function xj(e){var n,i,a,u;let t=Object.keys(e.shape);for(let l of t)if(!((u=(a=(i=(n=e.shape)==null?void 0:n[l])==null?void 0:i._zod)==null?void 0:a.traits)!=null&&u.has("$ZodType")))throw Error(`Invalid element at key "${l}": expected a Zod schema`);let r=Ez(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function kj(e,t,r,n,i,a){let u=[],l=i.keySet,d=i.catchall._zod,f=d.def.type,p=d.optout==="optional";for(let m in t){if(l.has(m))continue;if(f==="never"){u.push(m);continue}let h=d.run({value:t[m],issues:[]},n);h instanceof Promise?e.push(h.then(y=>Kd(y,r,m,t,p))):Kd(h,r,m,t,p)}return u.length&&r.issues.push({code:"unrecognized_keys",keys:u,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}var Sj=R("$ZodObject",(e,t)=>{var u;if(Re.init(e,t),!((u=Object.getOwnPropertyDescriptor(t,"shape"))!=null&&u.get)){let l=t.shape;Object.defineProperty(t,"shape",{get:()=>{let d={...l};return Object.defineProperty(t,"shape",{value:d}),d}})}let r=sl(()=>xj(t));Fe(e._zod,"propValues",()=>{let l=t.shape,d={};for(let f in l){let p=l[f]._zod;if(p.values){d[f]??(d[f]=new Set);for(let m of p.values)d[f].add(m)}}return d});let n=Yo,i=t.catchall,a;e._zod.parse=(l,d)=>{a??(a=r.value);let f=l.value;if(!n(f))return l.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),l;l.value={};let p=[],m=a.shape;for(let h of a.keys){let y=m[h],w=y._zod.optout==="optional",_=y._zod.run({value:f[h],issues:[]},d);_ instanceof Promise?p.push(_.then(x=>Kd(x,l,h,f,w))):Kd(_,l,h,f,w)}return i?kj(p,f,l,d,r.value,e):p.length?Promise.all(p).then(()=>l):l}}),$j=R("$ZodObjectJIT",(e,t)=>{Sj.init(e,t);let r=e._zod.parse,n=sl(()=>xj(t)),i=m=>{var E,A;let h=new DA(["shape","payload","ctx"]),y=n.value,w=I=>{let j=sy(I);return`shape[${j}]._zod.run({ value: input[${j}], issues: [] }, ctx)`};h.write("const input = payload.value;");let _=Object.create(null),x=0;for(let I of y.keys)_[I]=`key_${x++}`;h.write("const newResult = {};");for(let I of y.keys){let j=_[I],z=sy(I),N=((A=(E=m[I])==null?void 0:E._zod)==null?void 0:A.optout)==="optional";h.write(`const ${j} = ${w(I)};`),N?h.write(`
|
|
53
|
+
if (${j}.issues.length) {
|
|
54
|
+
if (${z} in input) {
|
|
55
|
+
payload.issues = payload.issues.concat(${j}.issues.map(iss => ({
|
|
56
|
+
...iss,
|
|
57
|
+
path: iss.path ? [${z}, ...iss.path] : [${z}]
|
|
58
|
+
})));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (${j}.value === undefined) {
|
|
63
|
+
if (${z} in input) {
|
|
64
|
+
newResult[${z}] = undefined;
|
|
65
|
+
}
|
|
66
|
+
} else {
|
|
67
|
+
newResult[${z}] = ${j}.value;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
`):h.write(`
|
|
71
|
+
if (${j}.issues.length) {
|
|
72
|
+
payload.issues = payload.issues.concat(${j}.issues.map(iss => ({
|
|
73
|
+
...iss,
|
|
74
|
+
path: iss.path ? [${z}, ...iss.path] : [${z}]
|
|
75
|
+
})));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (${j}.value === undefined) {
|
|
79
|
+
if (${z} in input) {
|
|
80
|
+
newResult[${z}] = undefined;
|
|
81
|
+
}
|
|
82
|
+
} else {
|
|
83
|
+
newResult[${z}] = ${j}.value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
`)}h.write("payload.value = newResult;"),h.write("return payload;");let $=h.compile();return(I,j)=>$(m,I,j)},a,u=Yo,l=!Bd.jitless,d=l&&Iz.value,f=t.catchall,p;e._zod.parse=(m,h)=>{p??(p=n.value);let y=m.value;return u(y)?l&&d&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(a||(a=i(t.shape)),m=a(m,h),f?kj([],y,m,h,p,e):m):r(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),m)}});function O$(e,t,r,n){for(let a of e)if(a.issues.length===0)return t.value=a.value,t;let i=e.filter(a=>!La(a));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(u=>pn(u,n,wr())))}),t)}var tp=R("$ZodUnion",(e,t)=>{Re.init(e,t),Fe(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Fe(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Fe(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),Fe(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${i.map(a=>Xf(a.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(r)return n(i,a);let u=!1,l=[];for(let d of t.options){let f=d._zod.run({value:i.value,issues:[]},a);if(f instanceof Promise)l.push(f),u=!0;else{if(f.issues.length===0)return f;l.push(f)}}return u?Promise.all(l).then(d=>O$(d,i,e,a)):O$(l,i,e,a)}});function E$(e,t,r,n){let i=e.filter(a=>a.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(u=>pn(u,n,wr())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var Ij=R("$ZodXor",(e,t)=>{tp.init(e,t),t.inclusive=!1;let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(r)return n(i,a);let u=!1,l=[];for(let d of t.options){let f=d._zod.run({value:i.value,issues:[]},a);f instanceof Promise?(l.push(f),u=!0):l.push(f)}return u?Promise.all(l).then(d=>E$(d,i,e,a)):E$(l,i,e,a)}}),Pj=R("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,tp.init(e,t);let r=e._zod.parse;Fe(e._zod,"propValues",()=>{let i={};for(let a of t.options){let u=a._zod.propValues;if(!u||Object.keys(u).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let[l,d]of Object.entries(u)){i[l]||(i[l]=new Set);for(let f of d)i[l].add(f)}}return i});let n=sl(()=>{var u;let i=t.options,a=new Map;for(let l of i){let d=(u=l._zod.propValues)==null?void 0:u[t.discriminator];if(!d||d.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(let f of d){if(a.has(f))throw Error(`Duplicate discriminator value "${String(f)}"`);a.set(f,l)}}return a});e._zod.parse=(i,a)=>{let u=i.value;if(!Yo(u))return i.issues.push({code:"invalid_type",expected:"object",input:u,inst:e}),i;let l=n.value.get(u==null?void 0:u[t.discriminator]);return l?l._zod.run(i,a):t.unionFallback?r(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:u,path:[t.discriminator],inst:e}),i)}}),Oj=R("$ZodIntersection",(e,t)=>{Re.init(e,t),e._zod.parse=(r,n)=>{let i=r.value,a=t.left._zod.run({value:i,issues:[]},n),u=t.right._zod.run({value:i,issues:[]},n);return a instanceof Promise||u instanceof Promise?Promise.all([a,u]).then(([l,d])=>z$(r,l,d)):z$(r,a,u)}});function dy(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ja(e)&&Ja(t)){let r=Object.keys(t),n=Object.keys(e).filter(a=>r.indexOf(a)!==-1),i={...e,...t};for(let a of n){let u=dy(e[a],t[a]);if(!u.valid)return{valid:!1,mergeErrorPath:[a,...u.mergeErrorPath]};i[a]=u.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;n<e.length;n++){let i=e[n],a=t[n],u=dy(i,a);if(!u.valid)return{valid:!1,mergeErrorPath:[n,...u.mergeErrorPath]};r.push(u.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function z$(e,t,r){let n=new Map,i;for(let l of t.issues)if(l.code==="unrecognized_keys"){i??(i=l);for(let d of l.keys)n.has(d)||n.set(d,{}),n.get(d).l=!0}else e.issues.push(l);for(let l of r.issues)if(l.code==="unrecognized_keys")for(let d of l.keys)n.has(d)||n.set(d,{}),n.get(d).r=!0;else e.issues.push(l);let a=[...n].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(a.length&&i&&e.issues.push({...i,keys:a}),La(e))return e;let u=dy(t.value,r.value);if(!u.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return e.value=u.data,e}var n0=R("$ZodTuple",(e,t)=>{Re.init(e,t);let r=t.items;e._zod.parse=(n,i)=>{let a=n.value;if(!Array.isArray(a))return n.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let u=[],l=[...r].reverse().findIndex(p=>p._zod.optin!=="optional"),d=l===-1?0:r.length-l;if(!t.rest){let p=a.length>r.length,m=a.length<d-1;if(p||m)return n.issues.push({...p?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:a,inst:e,origin:"array"}),n}let f=-1;for(let p of r){if(f++,f>=a.length&&f>=d)continue;let m=p._zod.run({value:a[f],issues:[]},i);m instanceof Promise?u.push(m.then(h=>sd(h,n,f))):sd(m,n,f)}if(t.rest){let p=a.slice(r.length);for(let m of p){f++;let h=t.rest._zod.run({value:m,issues:[]},i);h instanceof Promise?u.push(h.then(y=>sd(y,n,f))):sd(h,n,f)}}return u.length?Promise.all(u).then(()=>n):n}});function sd(e,t,r){e.issues.length&&t.issues.push(...jn(r,e.issues)),t.value[r]=e.value}var Ej=R("$ZodRecord",(e,t)=>{Re.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Ja(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let a=[],u=t.keyType._zod.values;if(u){r.value={};let l=new Set;for(let f of u)if(typeof f=="string"||typeof f=="number"||typeof f=="symbol"){l.add(typeof f=="number"?f.toString():f);let p=t.valueType._zod.run({value:i[f],issues:[]},n);p instanceof Promise?a.push(p.then(m=>{m.issues.length&&r.issues.push(...jn(f,m.issues)),r.value[f]=m.value})):(p.issues.length&&r.issues.push(...jn(f,p.issues)),r.value[f]=p.value)}let d;for(let f in i)l.has(f)||(d=d??[],d.push(f));d&&d.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:d})}else{r.value={};for(let l of Reflect.ownKeys(i)){if(l==="__proto__")continue;let d=t.keyType._zod.run({value:l,issues:[]},n);if(d instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Jb.test(l)&&d.issues.length&&d.issues.some(p=>p.code==="invalid_type"&&p.expected==="number")){let p=t.keyType._zod.run({value:Number(l),issues:[]},n);if(p instanceof Promise)throw Error("Async schemas not supported in object keys currently");p.issues.length===0&&(d=p)}if(d.issues.length){t.mode==="loose"?r.value[l]=i[l]:r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(p=>pn(p,n,wr())),input:l,path:[l],inst:e});continue}let f=t.valueType._zod.run({value:i[l],issues:[]},n);f instanceof Promise?a.push(f.then(p=>{p.issues.length&&r.issues.push(...jn(l,p.issues)),r.value[d.value]=p.value})):(f.issues.length&&r.issues.push(...jn(l,f.issues)),r.value[d.value]=f.value)}}return a.length?Promise.all(a).then(()=>r):r}}),zj=R("$ZodMap",(e,t)=>{Re.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let a=[];r.value=new Map;for(let[u,l]of i){let d=t.keyType._zod.run({value:u,issues:[]},n),f=t.valueType._zod.run({value:l,issues:[]},n);d instanceof Promise||f instanceof Promise?a.push(Promise.all([d,f]).then(([p,m])=>{A$(p,m,r,u,i,e,n)})):A$(d,f,r,u,i,e,n)}return a.length?Promise.all(a).then(()=>r):r}});function A$(e,t,r,n,i,a,u){e.issues.length&&(Wd.has(typeof n)?r.issues.push(...jn(n,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:i,inst:a,issues:e.issues.map(l=>pn(l,u,wr()))})),t.issues.length&&(Wd.has(typeof n)?r.issues.push(...jn(n,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:i,inst:a,key:n,issues:t.issues.map(l=>pn(l,u,wr()))})),r.value.set(e.value,t.value)}var Aj=R("$ZodSet",(e,t)=>{Re.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let a=[];r.value=new Set;for(let u of i){let l=t.valueType._zod.run({value:u,issues:[]},n);l instanceof Promise?a.push(l.then(d=>j$(d,r))):j$(l,r)}return a.length?Promise.all(a).then(()=>r):r}});function j$(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var jj=R("$ZodEnum",(e,t)=>{Re.init(e,t);let r=Db(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(i=>Wd.has(typeof i)).map(i=>typeof i=="string"?hi(i):i.toString()).join("|")})$`),e._zod.parse=(i,a)=>{let u=i.value;return n.has(u)||i.issues.push({code:"invalid_value",values:r,input:u,inst:e}),i}}),Cj=R("$ZodLiteral",(e,t)=>{if(Re.init(e,t),t.values.length===0)throw Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?hi(n):n?hi(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return r.has(a)||n.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),n}}),Tj=R("$ZodFile",(e,t)=>{Re.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;return i instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),r}}),Nj=R("$ZodTransform",(e,t)=>{Re.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Yf(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(r.value=a,r));if(i instanceof Promise)throw new Wa;return r.value=i,r}});function C$(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var i0=R("$ZodOptional",(e,t)=>{Re.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Fe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Fe(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Xf(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>C$(a,r.value)):C$(i,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),Dj=R("$ZodExactOptional",(e,t)=>{i0.init(e,t),Fe(e._zod,"values",()=>t.innerType._zod.values),Fe(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),Mj=R("$ZodNullable",(e,t)=>{Re.init(e,t),Fe(e._zod,"optin",()=>t.innerType._zod.optin),Fe(e._zod,"optout",()=>t.innerType._zod.optout),Fe(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Xf(r.source)}|null)$`):void 0}),Fe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),Rj=R("$ZodDefault",(e,t)=>{Re.init(e,t),e._zod.optin="optional",Fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>T$(a,t)):T$(i,t)}});function T$(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Uj=R("$ZodPrefault",(e,t)=>{Re.init(e,t),e._zod.optin="optional",Fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),Lj=R("$ZodNonOptional",(e,t)=>{Re.init(e,t),Fe(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>N$(a,e)):N$(i,e)}});function N$(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Zj=R("$ZodSuccess",(e,t)=>{Re.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Yf("ZodSuccess");let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>(r.value=a.issues.length===0,r)):(r.value=i.issues.length===0,r)}}),Fj=R("$ZodCatch",(e,t)=>{Re.init(e,t),Fe(e._zod,"optin",()=>t.innerType._zod.optin),Fe(e._zod,"optout",()=>t.innerType._zod.optout),Fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(u=>pn(u,n,wr()))},input:r.value}),r.issues=[]),r)):(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>pn(a,n,wr()))},input:r.value}),r.issues=[]),r)}}),Bj=R("$ZodNaN",(e,t)=>{Re.init(e,t),e._zod.parse=(r,n)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),qj=R("$ZodPipe",(e,t)=>{Re.init(e,t),Fe(e._zod,"values",()=>t.in._zod.values),Fe(e._zod,"optin",()=>t.in._zod.optin),Fe(e._zod,"optout",()=>t.out._zod.optout),Fe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let a=t.out._zod.run(r,n);return a instanceof Promise?a.then(u=>ld(u,t.in,n)):ld(a,t.in,n)}let i=t.in._zod.run(r,n);return i instanceof Promise?i.then(a=>ld(a,t.out,n)):ld(i,t.out,n)}});function ld(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var a0=R("$ZodCodec",(e,t)=>{Re.init(e,t),Fe(e._zod,"values",()=>t.in._zod.values),Fe(e._zod,"optin",()=>t.in._zod.optin),Fe(e._zod,"optout",()=>t.out._zod.optout),Fe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if((n.direction||"forward")==="forward"){let i=t.in._zod.run(r,n);return i instanceof Promise?i.then(a=>cd(a,t,n)):cd(i,t,n)}else{let i=t.out._zod.run(r,n);return i instanceof Promise?i.then(a=>cd(a,t,n)):cd(i,t,n)}}});function cd(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>dd(e,i,t.out,r)):dd(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>dd(e,i,t.in,r)):dd(e,n,t.in,r)}}function dd(e,t,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},n)}var Wj=R("$ZodReadonly",(e,t)=>{Re.init(e,t),Fe(e._zod,"propValues",()=>t.innerType._zod.propValues),Fe(e._zod,"values",()=>t.innerType._zod.values),Fe(e._zod,"optin",()=>{var r,n;return(n=(r=t.innerType)==null?void 0:r._zod)==null?void 0:n.optin}),Fe(e._zod,"optout",()=>{var r,n;return(n=(r=t.innerType)==null?void 0:r._zod)==null?void 0:n.optout}),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(D$):D$(i)}});function D$(e){return e.value=Object.freeze(e.value),e}var Vj=R("$ZodTemplateLiteral",(e,t)=>{Re.init(e,t);let r=[];for(let n of t.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let i=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!i)throw Error(`Invalid template literal part: ${n._zod.traits}`);let a=i.startsWith("^")?1:0,u=i.endsWith("$")?i.length-1:i.length;r.push(i.slice(a,u))}else if(n===null||Oz.has(typeof n))r.push(hi(`${n}`));else throw Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(n,i)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),Kj=R("$ZodFunction",(e,t)=>(Re.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw Error("implement() must be called with a function");return function(...n){let i=e._def.input?ly(e._def.input,n):n,a=Reflect.apply(r,this,i);return e._def.output?ly(e._def.output,a):a}},e.implementAsync=r=>{if(typeof r!="function")throw Error("implementAsync() must be called with a function");return async function(...n){let i=e._def.input?await cy(e._def.input,n):n,a=await Reflect.apply(r,this,i);return e._def.output?await cy(e._def.output,a):a}},e._zod.parse=(r,n)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let n=e.constructor;return Array.isArray(r[0])?new n({type:"function",input:new n0({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new n({type:"function",input:r[0],output:e._def.output})},e.output=r=>new e.constructor({type:"function",input:e._def.input,output:r}),e)),Hj=R("$ZodPromise",(e,t)=>{Re.init(e,t),e._zod.parse=(r,n)=>Promise.resolve(r.value).then(i=>t.innerType._zod.run({value:i,issues:[]},n))}),Gj=R("$ZodLazy",(e,t)=>{Re.init(e,t),Fe(e._zod,"innerType",()=>t.getter()),Fe(e._zod,"pattern",()=>{var r,n;return(n=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:n.pattern}),Fe(e._zod,"propValues",()=>{var r,n;return(n=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:n.propValues}),Fe(e._zod,"optin",()=>{var r,n;return((n=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:n.optin)??void 0}),Fe(e._zod,"optout",()=>{var r,n;return((n=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:n.optout)??void 0}),e._zod.parse=(r,n)=>e._zod.innerType._zod.run(r,n)}),Jj=R("$ZodCustom",(e,t)=>{bt.init(e,t),Re.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(a=>M$(a,r,n,e));M$(i,r,n,e)}});function M$(e,t,r,n){if(!e){let i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),t.issues.push(Vd(i))}}var o0={};ki(o0,{zhTW:()=>e9,zhCN:()=>X8,yo:()=>r9,vi:()=>J8,uz:()=>H8,ur:()=>V8,uk:()=>Qj,ua:()=>q8,tr:()=>F8,th:()=>L8,ta:()=>R8,sv:()=>D8,sl:()=>T8,ru:()=>j8,pt:()=>z8,ps:()=>I8,pl:()=>O8,ota:()=>S8,no:()=>x8,nl:()=>w8,ms:()=>y8,mk:()=>h8,lt:()=>m8,ko:()=>f8,km:()=>Xj,kh:()=>c8,ka:()=>s8,ja:()=>o8,it:()=>i8,is:()=>r8,id:()=>e8,hy:()=>X5,hu:()=>J5,he:()=>H5,frCA:()=>V5,fr:()=>q5,fi:()=>F5,fa:()=>L5,es:()=>R5,eo:()=>D5,en:()=>Yj,de:()=>C5,da:()=>A5,cs:()=>E5,ca:()=>P5,bg:()=>$5,be:()=>k5,az:()=>_5,ar:()=>b5});var y5=()=>{let e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(i){return e[i]??null}let r={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${i.expected}، ولكن تم إدخال ${l}`:`مدخلات غير مقبولة: يفترض إدخال ${a}، ولكن تم إدخال ${l}`}case"invalid_value":return i.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${je(i.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?` أكبر من اللازم: يفترض أن تكون ${i.origin??"القيمة"} ${a} ${i.maximum.toString()} ${u.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${i.origin??"القيمة"} ${a} ${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`أصغر من اللازم: يفترض لـ ${i.origin} أن يكون ${a} ${i.minimum.toString()} ${u.unit}`:`أصغر من اللازم: يفترض لـ ${i.origin} أن يكون ${a} ${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${i.prefix}"`:a.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${a.suffix}"`:a.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${a.includes}"`:a.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${a.pattern}`:`${r[a.format]??i.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${i.divisor}`;case"unrecognized_keys":return`معرف${i.keys.length>1?"ات":""} غريب${i.keys.length>1?"ة":""}: ${re(i.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${i.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${i.origin}`;default:return"مدخل غير مقبول"}}};function b5(){return{localeError:y5()}}var w5=()=>{let e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(i){return e[i]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Yanlış dəyər: gözlənilən instanceof ${i.expected}, daxil olan ${l}`:`Yanlış dəyər: gözlənilən ${a}, daxil olan ${l}`}case"invalid_value":return i.values.length===1?`Yanlış dəyər: gözlənilən ${je(i.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Çox böyük: gözlənilən ${i.origin??"dəyər"} ${a}${i.maximum.toString()} ${u.unit??"element"}`:`Çox böyük: gözlənilən ${i.origin??"dəyər"} ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Çox kiçik: gözlənilən ${i.origin} ${a}${i.minimum.toString()} ${u.unit}`:`Çox kiçik: gözlənilən ${i.origin} ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Yanlış mətn: "${a.prefix}" ilə başlamalıdır`:a.format==="ends_with"?`Yanlış mətn: "${a.suffix}" ilə bitməlidir`:a.format==="includes"?`Yanlış mətn: "${a.includes}" daxil olmalıdır`:a.format==="regex"?`Yanlış mətn: ${a.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${r[a.format]??i.format}`}case"not_multiple_of":return`Yanlış ədəd: ${i.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${i.keys.length>1?"lar":""}: ${re(i.keys,", ")}`;case"invalid_key":return`${i.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${i.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function _5(){return{localeError:w5()}}function R$(e,t,r,n){let i=Math.abs(e),a=i%10,u=i%100;return u>=11&&u<=19?n:a===1?t:a>=2&&a<=4?r:n}var x5=()=>{let e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(i){return e[i]??null}let r={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},n={nan:"NaN",number:"лік",array:"масіў"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Няправільны ўвод: чакаўся instanceof ${i.expected}, атрымана ${l}`:`Няправільны ўвод: чакаўся ${a}, атрымана ${l}`}case"invalid_value":return i.values.length===1?`Няправільны ўвод: чакалася ${je(i.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);if(u){let l=Number(i.maximum),d=R$(l,u.unit.one,u.unit.few,u.unit.many);return`Занадта вялікі: чакалася, што ${i.origin??"значэнне"} павінна ${u.verb} ${a}${i.maximum.toString()} ${d}`}return`Занадта вялікі: чакалася, што ${i.origin??"значэнне"} павінна быць ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);if(u){let l=Number(i.minimum),d=R$(l,u.unit.one,u.unit.few,u.unit.many);return`Занадта малы: чакалася, што ${i.origin} павінна ${u.verb} ${a}${i.minimum.toString()} ${d}`}return`Занадта малы: чакалася, што ${i.origin} павінна быць ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${a.prefix}"`:a.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${a.suffix}"`:a.format==="includes"?`Няправільны радок: павінен змяшчаць "${a.includes}"`:a.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${a.pattern}`:`Няправільны ${r[a.format]??i.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${i.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${i.keys.length>1?"ключы":"ключ"}: ${re(i.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${i.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${i.origin}`;default:return"Няправільны ўвод"}}};function k5(){return{localeError:x5()}}var S5=()=>{let e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(i){return e[i]??null}let r={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},n={nan:"NaN",number:"число",array:"масив"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Невалиден вход: очакван instanceof ${i.expected}, получен ${l}`:`Невалиден вход: очакван ${a}, получен ${l}`}case"invalid_value":return i.values.length===1?`Невалиден вход: очакван ${je(i.values[0])}`:`Невалидна опция: очаквано едно от ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Твърде голямо: очаква се ${i.origin??"стойност"} да съдържа ${a}${i.maximum.toString()} ${u.unit??"елемента"}`:`Твърде голямо: очаква се ${i.origin??"стойност"} да бъде ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Твърде малко: очаква се ${i.origin} да съдържа ${a}${i.minimum.toString()} ${u.unit}`:`Твърде малко: очаква се ${i.origin} да бъде ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;if(a.format==="starts_with")return`Невалиден низ: трябва да започва с "${a.prefix}"`;if(a.format==="ends_with")return`Невалиден низ: трябва да завършва с "${a.suffix}"`;if(a.format==="includes")return`Невалиден низ: трябва да включва "${a.includes}"`;if(a.format==="regex")return`Невалиден низ: трябва да съвпада с ${a.pattern}`;let u="Невалиден";return a.format==="emoji"&&(u="Невалидно"),a.format==="datetime"&&(u="Невалидно"),a.format==="date"&&(u="Невалидна"),a.format==="time"&&(u="Невалидно"),a.format==="duration"&&(u="Невалидна"),`${u} ${r[a.format]??i.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${i.divisor}`;case"unrecognized_keys":return`Неразпознат${i.keys.length>1?"и":""} ключ${i.keys.length>1?"ове":""}: ${re(i.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${i.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${i.origin}`;default:return"Невалиден вход"}}};function $5(){return{localeError:S5()}}var I5=()=>{let e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(i){return e[i]??null}let r={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Tipus invàlid: s'esperava instanceof ${i.expected}, s'ha rebut ${l}`:`Tipus invàlid: s'esperava ${a}, s'ha rebut ${l}`}case"invalid_value":return i.values.length===1?`Valor invàlid: s'esperava ${je(i.values[0])}`:`Opció invàlida: s'esperava una de ${re(i.values," o ")}`;case"too_big":{let a=i.inclusive?"com a màxim":"menys de",u=t(i.origin);return u?`Massa gran: s'esperava que ${i.origin??"el valor"} contingués ${a} ${i.maximum.toString()} ${u.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${a} ${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?"com a mínim":"més de",u=t(i.origin);return u?`Massa petit: s'esperava que ${i.origin} contingués ${a} ${i.minimum.toString()} ${u.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${a} ${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Format invàlid: ha de començar amb "${a.prefix}"`:a.format==="ends_with"?`Format invàlid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format invàlid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${a.pattern}`:`Format invàlid per a ${r[a.format]??i.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${re(i.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${i.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${i.origin}`;default:return"Entrada invàlida"}}};function P5(){return{localeError:I5()}}var O5=()=>{let e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(i){return e[i]??null}let r={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},n={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Neplatný vstup: očekáváno instanceof ${i.expected}, obdrženo ${l}`:`Neplatný vstup: očekáváno ${a}, obdrženo ${l}`}case"invalid_value":return i.values.length===1?`Neplatný vstup: očekáváno ${je(i.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Hodnota je příliš velká: ${i.origin??"hodnota"} musí mít ${a}${i.maximum.toString()} ${u.unit??"prvků"}`:`Hodnota je příliš velká: ${i.origin??"hodnota"} musí být ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Hodnota je příliš malá: ${i.origin??"hodnota"} musí mít ${a}${i.minimum.toString()} ${u.unit??"prvků"}`:`Hodnota je příliš malá: ${i.origin??"hodnota"} musí být ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Neplatný řetězec: musí začínat na "${a.prefix}"`:a.format==="ends_with"?`Neplatný řetězec: musí končit na "${a.suffix}"`:a.format==="includes"?`Neplatný řetězec: musí obsahovat "${a.includes}"`:a.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${a.pattern}`:`Neplatný formát ${r[a.format]??i.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${i.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${re(i.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${i.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${i.origin}`;default:return"Neplatný vstup"}}};function E5(){return{localeError:O5()}}var z5=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(i){return e[i]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},n={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Ugyldigt input: forventede instanceof ${i.expected}, fik ${l}`:`Ugyldigt input: forventede ${a}, fik ${l}`}case"invalid_value":return i.values.length===1?`Ugyldig værdi: forventede ${je(i.values[0])}`:`Ugyldigt valg: forventede en af følgende ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin),l=n[i.origin]??i.origin;return u?`For stor: forventede ${l??"value"} ${u.verb} ${a} ${i.maximum.toString()} ${u.unit??"elementer"}`:`For stor: forventede ${l??"value"} havde ${a} ${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin),l=n[i.origin]??i.origin;return u?`For lille: forventede ${l} ${u.verb} ${a} ${i.minimum.toString()} ${u.unit}`:`For lille: forventede ${l} havde ${a} ${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Ugyldig streng: skal starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: skal ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: skal indeholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: skal matche mønsteret ${a.pattern}`:`Ugyldig ${r[a.format]??i.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${re(i.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${i.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${i.origin}`;default:return"Ugyldigt input"}}};function A5(){return{localeError:z5()}}var j5=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(i){return e[i]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},n={nan:"NaN",number:"Zahl",array:"Array"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Ungültige Eingabe: erwartet instanceof ${i.expected}, erhalten ${l}`:`Ungültige Eingabe: erwartet ${a}, erhalten ${l}`}case"invalid_value":return i.values.length===1?`Ungültige Eingabe: erwartet ${je(i.values[0])}`:`Ungültige Option: erwartet eine von ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Zu groß: erwartet, dass ${i.origin??"Wert"} ${a}${i.maximum.toString()} ${u.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${i.origin??"Wert"} ${a}${i.maximum.toString()} ist`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Zu klein: erwartet, dass ${i.origin} ${a}${i.minimum.toString()} ${u.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${a}${i.minimum.toString()} ist`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Ungültiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ungültiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ungültiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ungültiger String: muss dem Muster ${a.pattern} entsprechen`:`Ungültig: ${r[a.format]??i.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${re(i.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${i.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${i.origin}`;default:return"Ungültige Eingabe"}}};function C5(){return{localeError:j5()}}var T5=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return`Invalid input: expected ${a}, received ${l}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${je(i.values[0])}`:`Invalid option: expected one of ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Too big: expected ${i.origin??"value"} to have ${a}${i.maximum.toString()} ${u.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Too small: expected ${i.origin} to have ${a}${i.minimum.toString()} ${u.unit}`:`Too small: expected ${i.origin} to be ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Invalid string: must start with "${a.prefix}"`:a.format==="ends_with"?`Invalid string: must end with "${a.suffix}"`:a.format==="includes"?`Invalid string: must include "${a.includes}"`:a.format==="regex"?`Invalid string: must match pattern ${a.pattern}`:`Invalid ${r[a.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${re(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function Yj(){return{localeError:T5()}}var N5=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(i){return e[i]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},n={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Nevalida enigo: atendiĝis instanceof ${i.expected}, riceviĝis ${l}`:`Nevalida enigo: atendiĝis ${a}, riceviĝis ${l}`}case"invalid_value":return i.values.length===1?`Nevalida enigo: atendiĝis ${je(i.values[0])}`:`Nevalida opcio: atendiĝis unu el ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${a}${i.maximum.toString()} ${u.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Tro malgranda: atendiĝis ke ${i.origin} havu ${a}${i.minimum.toString()} ${u.unit}`:`Tro malgranda: atendiĝis ke ${i.origin} estu ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${a.prefix}"`:a.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${a.suffix}"`:a.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${a.includes}"`:a.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${a.pattern}`:`Nevalida ${r[a.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} ŝlosilo${i.keys.length>1?"j":""}: ${re(i.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}};function D5(){return{localeError:N5()}}var M5=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(i){return e[i]??null}let r={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Entrada inválida: se esperaba instanceof ${i.expected}, recibido ${l}`:`Entrada inválida: se esperaba ${a}, recibido ${l}`}case"invalid_value":return i.values.length===1?`Entrada inválida: se esperaba ${je(i.values[0])}`:`Opción inválida: se esperaba una de ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin),l=n[i.origin]??i.origin;return u?`Demasiado grande: se esperaba que ${l??"valor"} tuviera ${a}${i.maximum.toString()} ${u.unit??"elementos"}`:`Demasiado grande: se esperaba que ${l??"valor"} fuera ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin),l=n[i.origin]??i.origin;return u?`Demasiado pequeño: se esperaba que ${l} tuviera ${a}${i.minimum.toString()} ${u.unit}`:`Demasiado pequeño: se esperaba que ${l} fuera ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Cadena inválida: debe comenzar con "${a.prefix}"`:a.format==="ends_with"?`Cadena inválida: debe terminar en "${a.suffix}"`:a.format==="includes"?`Cadena inválida: debe incluir "${a.includes}"`:a.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${a.pattern}`:`Inválido ${r[a.format]??i.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${i.divisor}`;case"unrecognized_keys":return`Llave${i.keys.length>1?"s":""} desconocida${i.keys.length>1?"s":""}: ${re(i.keys,", ")}`;case"invalid_key":return`Llave inválida en ${n[i.origin]??i.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${n[i.origin]??i.origin}`;default:return"Entrada inválida"}}};function R5(){return{localeError:M5()}}var U5=()=>{let e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(i){return e[i]??null}let r={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},n={nan:"NaN",number:"عدد",array:"آرایه"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`ورودی نامعتبر: میبایست instanceof ${i.expected} میبود، ${l} دریافت شد`:`ورودی نامعتبر: میبایست ${a} میبود، ${l} دریافت شد`}case"invalid_value":return i.values.length===1?`ورودی نامعتبر: میبایست ${je(i.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${re(i.values,"|")} میبود`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`خیلی بزرگ: ${i.origin??"مقدار"} باید ${a}${i.maximum.toString()} ${u.unit??"عنصر"} باشد`:`خیلی بزرگ: ${i.origin??"مقدار"} باید ${a}${i.maximum.toString()} باشد`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`خیلی کوچک: ${i.origin} باید ${a}${i.minimum.toString()} ${u.unit} باشد`:`خیلی کوچک: ${i.origin} باید ${a}${i.minimum.toString()} باشد`}case"invalid_format":{let a=i;return a.format==="starts_with"?`رشته نامعتبر: باید با "${a.prefix}" شروع شود`:a.format==="ends_with"?`رشته نامعتبر: باید با "${a.suffix}" تمام شود`:a.format==="includes"?`رشته نامعتبر: باید شامل "${a.includes}" باشد`:a.format==="regex"?`رشته نامعتبر: باید با الگوی ${a.pattern} مطابقت داشته باشد`:`${r[a.format]??i.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${i.divisor} باشد`;case"unrecognized_keys":return`کلید${i.keys.length>1?"های":""} ناشناس: ${re(i.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${i.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${i.origin}`;default:return"ورودی نامعتبر"}}};function L5(){return{localeError:U5()}}var Z5=()=>{let e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(i){return e[i]??null}let r={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Virheellinen tyyppi: odotettiin instanceof ${i.expected}, oli ${l}`:`Virheellinen tyyppi: odotettiin ${a}, oli ${l}`}case"invalid_value":return i.values.length===1?`Virheellinen syöte: täytyy olla ${je(i.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Liian suuri: ${u.subject} täytyy olla ${a}${i.maximum.toString()} ${u.unit}`.trim():`Liian suuri: arvon täytyy olla ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Liian pieni: ${u.subject} täytyy olla ${a}${i.minimum.toString()} ${u.unit}`.trim():`Liian pieni: arvon täytyy olla ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen syöte: täytyy sisältää "${a.includes}"`:a.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${a.pattern}`:`Virheellinen ${r[a.format]??i.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${re(i.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function F5(){return{localeError:Z5()}}var B5=()=>{let e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(i){return e[i]??null}let r={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},n={nan:"NaN",number:"nombre",array:"tableau"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Entrée invalide : instanceof ${i.expected} attendu, ${l} reçu`:`Entrée invalide : ${a} attendu, ${l} reçu`}case"invalid_value":return i.values.length===1?`Entrée invalide : ${je(i.values[0])} attendu`:`Option invalide : une valeur parmi ${re(i.values,"|")} attendue`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Trop grand : ${i.origin??"valeur"} doit ${u.verb} ${a}${i.maximum.toString()} ${u.unit??"élément(s)"}`:`Trop grand : ${i.origin??"valeur"} doit être ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Trop petit : ${i.origin} doit ${u.verb} ${a}${i.minimum.toString()} ${u.unit}`:`Trop petit : ${i.origin} doit être ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${a.pattern}`:`${r[a.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${i.divisor}`;case"unrecognized_keys":return`Clé${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${re(i.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${i.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entrée invalide"}}};function q5(){return{localeError:B5()}}var W5=()=>{let e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(i){return e[i]??null}let r={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Entrée invalide : attendu instanceof ${i.expected}, reçu ${l}`:`Entrée invalide : attendu ${a}, reçu ${l}`}case"invalid_value":return i.values.length===1?`Entrée invalide : attendu ${je(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"≤":"<",u=t(i.origin);return u?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${a}${i.maximum.toString()} ${u.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?"≥":">",u=t(i.origin);return u?`Trop petit : attendu que ${i.origin} ait ${a}${i.minimum.toString()} ${u.unit}`:`Trop petit : attendu que ${i.origin} soit ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au motif ${a.pattern}`:`${r[a.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${i.divisor}`;case"unrecognized_keys":return`Clé${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${re(i.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${i.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entrée invalide"}}};function V5(){return{localeError:W5()}}var K5=()=>{let e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},r=f=>f?e[f]:void 0,n=f=>{let p=r(f);return p?p.label:f??e.unknown.label},i=f=>`ה${n(f)}`,a=f=>{var p;return(((p=r(f))==null?void 0:p.gender)??"m")==="f"?"צריכה להיות":"צריך להיות"},u=f=>f?t[f]??null:null,l={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},d={nan:"NaN"};return f=>{var p;switch(f.code){case"invalid_type":{let m=f.expected,h=d[m??""]??n(m),y=Ne(f.input),w=d[y]??((p=e[y])==null?void 0:p.label)??y;return/^[A-Z]/.test(f.expected)?`קלט לא תקין: צריך להיות instanceof ${f.expected}, התקבל ${w}`:`קלט לא תקין: צריך להיות ${h}, התקבל ${w}`}case"invalid_value":{if(f.values.length===1)return`ערך לא תקין: הערך חייב להיות ${je(f.values[0])}`;let m=f.values.map(y=>je(y));if(f.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${m[0]} או ${m[1]}`;let h=m[m.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${m.slice(0,-1).join(", ")} או ${h}`}case"too_big":{let m=u(f.origin),h=i(f.origin??"value");if(f.origin==="string")return`${(m==null?void 0:m.longLabel)??"ארוך"} מדי: ${h} צריכה להכיל ${f.maximum.toString()} ${(m==null?void 0:m.unit)??""} ${f.inclusive?"או פחות":"לכל היותר"}`.trim();if(f.origin==="number"){let _=f.inclusive?`קטן או שווה ל-${f.maximum}`:`קטן מ-${f.maximum}`;return`גדול מדי: ${h} צריך להיות ${_}`}if(f.origin==="array"||f.origin==="set"){let _=f.origin==="set"?"צריכה":"צריך",x=f.inclusive?`${f.maximum} ${(m==null?void 0:m.unit)??""} או פחות`:`פחות מ-${f.maximum} ${(m==null?void 0:m.unit)??""}`;return`גדול מדי: ${h} ${_} להכיל ${x}`.trim()}let y=f.inclusive?"<=":"<",w=a(f.origin??"value");return m!=null&&m.unit?`${m.longLabel} מדי: ${h} ${w} ${y}${f.maximum.toString()} ${m.unit}`:`${(m==null?void 0:m.longLabel)??"גדול"} מדי: ${h} ${w} ${y}${f.maximum.toString()}`}case"too_small":{let m=u(f.origin),h=i(f.origin??"value");if(f.origin==="string")return`${(m==null?void 0:m.shortLabel)??"קצר"} מדי: ${h} צריכה להכיל ${f.minimum.toString()} ${(m==null?void 0:m.unit)??""} ${f.inclusive?"או יותר":"לפחות"}`.trim();if(f.origin==="number"){let _=f.inclusive?`גדול או שווה ל-${f.minimum}`:`גדול מ-${f.minimum}`;return`קטן מדי: ${h} צריך להיות ${_}`}if(f.origin==="array"||f.origin==="set"){let _=f.origin==="set"?"צריכה":"צריך";if(f.minimum===1&&f.inclusive){let $=(f.origin==="set","לפחות פריט אחד");return`קטן מדי: ${h} ${_} להכיל ${$}`}let x=f.inclusive?`${f.minimum} ${(m==null?void 0:m.unit)??""} או יותר`:`יותר מ-${f.minimum} ${(m==null?void 0:m.unit)??""}`;return`קטן מדי: ${h} ${_} להכיל ${x}`.trim()}let y=f.inclusive?">=":">",w=a(f.origin??"value");return m!=null&&m.unit?`${m.shortLabel} מדי: ${h} ${w} ${y}${f.minimum.toString()} ${m.unit}`:`${(m==null?void 0:m.shortLabel)??"קטן"} מדי: ${h} ${w} ${y}${f.minimum.toString()}`}case"invalid_format":{let m=f;if(m.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${m.prefix}"`;if(m.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${m.suffix}"`;if(m.format==="includes")return`המחרוזת חייבת לכלול "${m.includes}"`;if(m.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${m.pattern}`;let h=l[m.format],y=(h==null?void 0:h.label)??m.format,w=((h==null?void 0:h.gender)??"m")==="f"?"תקינה":"תקין";return`${y} לא ${w}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${f.divisor}`;case"unrecognized_keys":return`מפתח${f.keys.length>1?"ות":""} לא מזוה${f.keys.length>1?"ים":"ה"}: ${re(f.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${i(f.origin??"array")}`;default:return"קלט לא תקין"}}};function H5(){return{localeError:K5()}}var G5=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(i){return e[i]??null}let r={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},n={nan:"NaN",number:"szám",array:"tömb"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Érvénytelen bemenet: a várt érték instanceof ${i.expected}, a kapott érték ${l}`:`Érvénytelen bemenet: a várt érték ${a}, a kapott érték ${l}`}case"invalid_value":return i.values.length===1?`Érvénytelen bemenet: a várt érték ${je(i.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Túl nagy: ${i.origin??"érték"} mérete túl nagy ${a}${i.maximum.toString()} ${u.unit??"elem"}`:`Túl nagy: a bemeneti érték ${i.origin??"érték"} túl nagy: ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Túl kicsi: a bemeneti érték ${i.origin} mérete túl kicsi ${a}${i.minimum.toString()} ${u.unit}`:`Túl kicsi: a bemeneti érték ${i.origin} túl kicsi ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Érvénytelen string: "${a.prefix}" értékkel kell kezdődnie`:a.format==="ends_with"?`Érvénytelen string: "${a.suffix}" értékkel kell végződnie`:a.format==="includes"?`Érvénytelen string: "${a.includes}" értéket kell tartalmaznia`:a.format==="regex"?`Érvénytelen string: ${a.pattern} mintának kell megfelelnie`:`Érvénytelen ${r[a.format]??i.format}`}case"not_multiple_of":return`Érvénytelen szám: ${i.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>1?"s":""}: ${re(i.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${i.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${i.origin}`;default:return"Érvénytelen bemenet"}}};function J5(){return{localeError:G5()}}function U$(e,t,r){return Math.abs(e)===1?t:r}function Uo(e){if(!e)return"";let t=["ա","ե","ը","ի","ո","ու","օ"],r=e[e.length-1];return e+(t.includes(r)?"ն":"ը")}var Y5=()=>{let e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function t(i){return e[i]??null}let r={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},n={nan:"NaN",number:"թիվ",array:"զանգված"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${i.expected}, ստացվել է ${l}`:`Սխալ մուտքագրում․ սպասվում էր ${a}, ստացվել է ${l}`}case"invalid_value":return i.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${je(i.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);if(u){let l=Number(i.maximum),d=U$(l,u.unit.one,u.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Uo(i.origin??"արժեք")} կունենա ${a}${i.maximum.toString()} ${d}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Uo(i.origin??"արժեք")} լինի ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);if(u){let l=Number(i.minimum),d=U$(l,u.unit.one,u.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Uo(i.origin)} կունենա ${a}${i.minimum.toString()} ${d}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Uo(i.origin)} լինի ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Սխալ տող․ պետք է սկսվի "${a.prefix}"-ով`:a.format==="ends_with"?`Սխալ տող․ պետք է ավարտվի "${a.suffix}"-ով`:a.format==="includes"?`Սխալ տող․ պետք է պարունակի "${a.includes}"`:a.format==="regex"?`Սխալ տող․ պետք է համապատասխանի ${a.pattern} ձևաչափին`:`Սխալ ${r[a.format]??i.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${i.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${i.keys.length>1?"ներ":""}. ${re(i.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${Uo(i.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${Uo(i.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function X5(){return{localeError:Y5()}}var Q5=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(i){return e[i]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Input tidak valid: diharapkan instanceof ${i.expected}, diterima ${l}`:`Input tidak valid: diharapkan ${a}, diterima ${l}`}case"invalid_value":return i.values.length===1?`Input tidak valid: diharapkan ${je(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${a}${i.maximum.toString()} ${u.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Terlalu kecil: diharapkan ${i.origin} memiliki ${a}${i.minimum.toString()} ${u.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${r[a.format]??i.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${re(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`;default:return"Input tidak valid"}}};function e8(){return{localeError:Q5()}}var t8=()=>{let e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(i){return e[i]??null}let r={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},n={nan:"NaN",number:"númer",array:"fylki"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Rangt gildi: Þú slóst inn ${l} þar sem á að vera instanceof ${i.expected}`:`Rangt gildi: Þú slóst inn ${l} þar sem á að vera ${a}`}case"invalid_value":return i.values.length===1?`Rangt gildi: gert ráð fyrir ${je(i.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} hafi ${a}${i.maximum.toString()} ${u.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} sé ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Of lítið: gert er ráð fyrir að ${i.origin} hafi ${a}${i.minimum.toString()} ${u.unit}`:`Of lítið: gert er ráð fyrir að ${i.origin} sé ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Ógildur strengur: verður að byrja á "${a.prefix}"`:a.format==="ends_with"?`Ógildur strengur: verður að enda á "${a.suffix}"`:a.format==="includes"?`Ógildur strengur: verður að innihalda "${a.includes}"`:a.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${a.pattern}`:`Rangt ${r[a.format]??i.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${i.divisor}`;case"unrecognized_keys":return`Óþekkt ${i.keys.length>1?"ir lyklar":"ur lykill"}: ${re(i.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${i.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${i.origin}`;default:return"Rangt gildi"}}};function r8(){return{localeError:t8()}}var n8=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(i){return e[i]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"numero",array:"vettore"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Input non valido: atteso instanceof ${i.expected}, ricevuto ${l}`:`Input non valido: atteso ${a}, ricevuto ${l}`}case"invalid_value":return i.values.length===1?`Input non valido: atteso ${je(i.values[0])}`:`Opzione non valida: atteso uno tra ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Troppo grande: ${i.origin??"valore"} deve avere ${a}${i.maximum.toString()} ${u.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Troppo piccolo: ${i.origin} deve avere ${a}${i.minimum.toString()} ${u.unit}`:`Troppo piccolo: ${i.origin} deve essere ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Invalid ${r[a.format]??i.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${re(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`;default:return"Input non valido"}}};function i8(){return{localeError:n8()}}var a8=()=>{let e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(i){return e[i]??null}let r={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},n={nan:"NaN",number:"数値",array:"配列"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`無効な入力: instanceof ${i.expected}が期待されましたが、${l}が入力されました`:`無効な入力: ${a}が期待されましたが、${l}が入力されました`}case"invalid_value":return i.values.length===1?`無効な入力: ${je(i.values[0])}が期待されました`:`無効な選択: ${re(i.values,"、")}のいずれかである必要があります`;case"too_big":{let a=i.inclusive?"以下である":"より小さい",u=t(i.origin);return u?`大きすぎる値: ${i.origin??"値"}は${i.maximum.toString()}${u.unit??"要素"}${a}必要があります`:`大きすぎる値: ${i.origin??"値"}は${i.maximum.toString()}${a}必要があります`}case"too_small":{let a=i.inclusive?"以上である":"より大きい",u=t(i.origin);return u?`小さすぎる値: ${i.origin}は${i.minimum.toString()}${u.unit}${a}必要があります`:`小さすぎる値: ${i.origin}は${i.minimum.toString()}${a}必要があります`}case"invalid_format":{let a=i;return a.format==="starts_with"?`無効な文字列: "${a.prefix}"で始まる必要があります`:a.format==="ends_with"?`無効な文字列: "${a.suffix}"で終わる必要があります`:a.format==="includes"?`無効な文字列: "${a.includes}"を含む必要があります`:a.format==="regex"?`無効な文字列: パターン${a.pattern}に一致する必要があります`:`無効な${r[a.format]??i.format}`}case"not_multiple_of":return`無効な数値: ${i.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${i.keys.length>1?"群":""}: ${re(i.keys,"、")}`;case"invalid_key":return`${i.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${i.origin}内の無効な値`;default:return"無効な入力"}}};function o8(){return{localeError:a8()}}var u8=()=>{let e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(i){return e[i]??null}let r={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},n={nan:"NaN",number:"რიცხვი",string:"სტრინგი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${i.expected}, მიღებული ${l}`:`არასწორი შეყვანა: მოსალოდნელი ${a}, მიღებული ${l}`}case"invalid_value":return i.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${je(i.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${re(i.values,"|")}-დან`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} ${u.verb} ${a}${i.maximum.toString()} ${u.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} იყოს ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`ზედმეტად პატარა: მოსალოდნელი ${i.origin} ${u.verb} ${a}${i.minimum.toString()} ${u.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${i.origin} იყოს ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${a.prefix}"-ით`:a.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${a.suffix}"-ით`:a.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${a.includes}"-ს`:a.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${a.pattern}`:`არასწორი ${r[a.format]??i.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${i.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${i.keys.length>1?"ები":"ი"}: ${re(i.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${i.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${i.origin}-ში`;default:return"არასწორი შეყვანა"}}};function s8(){return{localeError:u8()}}var l8=()=>{let e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(i){return e[i]??null}let r={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},n={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${i.expected} ប៉ុន្តែទទួលបាន ${l}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${a} ប៉ុន្តែទទួលបាន ${l}`}case"invalid_value":return i.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${je(i.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`ធំពេក៖ ត្រូវការ ${i.origin??"តម្លៃ"} ${a} ${i.maximum.toString()} ${u.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${i.origin??"តម្លៃ"} ${a} ${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`តូចពេក៖ ត្រូវការ ${i.origin} ${a} ${i.minimum.toString()} ${u.unit}`:`តូចពេក៖ ត្រូវការ ${i.origin} ${a} ${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${a.prefix}"`:a.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${a.suffix}"`:a.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${a.includes}"`:a.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${a.pattern}`:`មិនត្រឹមត្រូវ៖ ${r[a.format]??i.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${i.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${re(i.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${i.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${i.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function Xj(){return{localeError:l8()}}function c8(){return Xj()}var d8=()=>{let e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(i){return e[i]??null}let r={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`잘못된 입력: 예상 타입은 instanceof ${i.expected}, 받은 타입은 ${l}입니다`:`잘못된 입력: 예상 타입은 ${a}, 받은 타입은 ${l}입니다`}case"invalid_value":return i.values.length===1?`잘못된 입력: 값은 ${je(i.values[0])} 이어야 합니다`:`잘못된 옵션: ${re(i.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let a=i.inclusive?"이하":"미만",u=a==="미만"?"이어야 합니다":"여야 합니다",l=t(i.origin),d=(l==null?void 0:l.unit)??"요소";return l?`${i.origin??"값"}이 너무 큽니다: ${i.maximum.toString()}${d} ${a}${u}`:`${i.origin??"값"}이 너무 큽니다: ${i.maximum.toString()} ${a}${u}`}case"too_small":{let a=i.inclusive?"이상":"초과",u=a==="이상"?"이어야 합니다":"여야 합니다",l=t(i.origin),d=(l==null?void 0:l.unit)??"요소";return l?`${i.origin??"값"}이 너무 작습니다: ${i.minimum.toString()}${d} ${a}${u}`:`${i.origin??"값"}이 너무 작습니다: ${i.minimum.toString()} ${a}${u}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`잘못된 문자열: "${a.prefix}"(으)로 시작해야 합니다`:a.format==="ends_with"?`잘못된 문자열: "${a.suffix}"(으)로 끝나야 합니다`:a.format==="includes"?`잘못된 문자열: "${a.includes}"을(를) 포함해야 합니다`:a.format==="regex"?`잘못된 문자열: 정규식 ${a.pattern} 패턴과 일치해야 합니다`:`잘못된 ${r[a.format]??i.format}`}case"not_multiple_of":return`잘못된 숫자: ${i.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${re(i.keys,", ")}`;case"invalid_key":return`잘못된 키: ${i.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${i.origin}`;default:return"잘못된 입력"}}};function f8(){return{localeError:d8()}}var fs=e=>e.charAt(0).toUpperCase()+e.slice(1);function L$(e){let t=Math.abs(e),r=t%10,n=t%100;return n>=11&&n<=19||r===0?"many":r===1?"one":"few"}var p8=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(i,a,u,l){let d=e[i]??null;return d===null?d:{unit:d.unit[a],verb:d.verb[l][u?"inclusive":"notInclusive"]}}let r={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},n={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Gautas tipas ${l}, o tikėtasi - instanceof ${i.expected}`:`Gautas tipas ${l}, o tikėtasi - ${a}`}case"invalid_value":return i.values.length===1?`Privalo būti ${je(i.values[0])}`:`Privalo būti vienas iš ${re(i.values,"|")} pasirinkimų`;case"too_big":{let a=n[i.origin]??i.origin,u=t(i.origin,L$(Number(i.maximum)),i.inclusive??!1,"smaller");if(u!=null&&u.verb)return`${fs(a??i.origin??"reikšmė")} ${u.verb} ${i.maximum.toString()} ${u.unit??"elementų"}`;let l=i.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${fs(a??i.origin??"reikšmė")} turi būti ${l} ${i.maximum.toString()} ${u==null?void 0:u.unit}`}case"too_small":{let a=n[i.origin]??i.origin,u=t(i.origin,L$(Number(i.minimum)),i.inclusive??!1,"bigger");if(u!=null&&u.verb)return`${fs(a??i.origin??"reikšmė")} ${u.verb} ${i.minimum.toString()} ${u.unit??"elementų"}`;let l=i.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${fs(a??i.origin??"reikšmė")} turi būti ${l} ${i.minimum.toString()} ${u==null?void 0:u.unit}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Eilutė privalo prasidėti "${a.prefix}"`:a.format==="ends_with"?`Eilutė privalo pasibaigti "${a.suffix}"`:a.format==="includes"?`Eilutė privalo įtraukti "${a.includes}"`:a.format==="regex"?`Eilutė privalo atitikti ${a.pattern}`:`Neteisingas ${r[a.format]??i.format}`}case"not_multiple_of":return`Skaičius privalo būti ${i.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${i.keys.length>1?"i":"as"} rakt${i.keys.length>1?"ai":"as"}: ${re(i.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{let a=n[i.origin]??i.origin;return`${fs(a??i.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function m8(){return{localeError:p8()}}var v8=()=>{let e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(i){return e[i]??null}let r={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},n={nan:"NaN",number:"број",array:"низа"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Грешен внес: се очекува instanceof ${i.expected}, примено ${l}`:`Грешен внес: се очекува ${a}, примено ${l}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${je(i.values[0])}`:`Грешана опција: се очекува една ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Премногу голем: се очекува ${i.origin??"вредноста"} да има ${a}${i.maximum.toString()} ${u.unit??"елементи"}`:`Премногу голем: се очекува ${i.origin??"вредноста"} да биде ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Премногу мал: се очекува ${i.origin} да има ${a}${i.minimum.toString()} ${u.unit}`:`Премногу мал: се очекува ${i.origin} да биде ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Неважечка низа: мора да започнува со "${a.prefix}"`:a.format==="ends_with"?`Неважечка низа: мора да завршува со "${a.suffix}"`:a.format==="includes"?`Неважечка низа: мора да вклучува "${a.includes}"`:a.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${a.pattern}`:`Invalid ${r[a.format]??i.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${re(i.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${i.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${i.origin}`;default:return"Грешен внес"}}};function h8(){return{localeError:v8()}}var g8=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(i){return e[i]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"nombor"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Input tidak sah: dijangka instanceof ${i.expected}, diterima ${l}`:`Input tidak sah: dijangka ${a}, diterima ${l}`}case"invalid_value":return i.values.length===1?`Input tidak sah: dijangka ${je(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Terlalu besar: dijangka ${i.origin??"nilai"} ${u.verb} ${a}${i.maximum.toString()} ${u.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Terlalu kecil: dijangka ${i.origin} ${u.verb} ${a}${i.minimum.toString()} ${u.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${r[a.format]??i.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${re(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`;default:return"Input tidak sah"}}};function y8(){return{localeError:g8()}}var b8=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(i){return e[i]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},n={nan:"NaN",number:"getal"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Ongeldige invoer: verwacht instanceof ${i.expected}, ontving ${l}`:`Ongeldige invoer: verwacht ${a}, ontving ${l}`}case"invalid_value":return i.values.length===1?`Ongeldige invoer: verwacht ${je(i.values[0])}`:`Ongeldige optie: verwacht één van ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin),l=i.origin==="date"?"laat":i.origin==="string"?"lang":"groot";return u?`Te ${l}: verwacht dat ${i.origin??"waarde"} ${a}${i.maximum.toString()} ${u.unit??"elementen"} ${u.verb}`:`Te ${l}: verwacht dat ${i.origin??"waarde"} ${a}${i.maximum.toString()} is`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin),l=i.origin==="date"?"vroeg":i.origin==="string"?"kort":"klein";return u?`Te ${l}: verwacht dat ${i.origin} ${a}${i.minimum.toString()} ${u.unit} ${u.verb}`:`Te ${l}: verwacht dat ${i.origin} ${a}${i.minimum.toString()} is`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${r[a.format]??i.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${re(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`;default:return"Ongeldige invoer"}}};function w8(){return{localeError:b8()}}var _8=()=>{let e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(i){return e[i]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"tall",array:"liste"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Ugyldig input: forventet instanceof ${i.expected}, fikk ${l}`:`Ugyldig input: forventet ${a}, fikk ${l}`}case"invalid_value":return i.values.length===1?`Ugyldig verdi: forventet ${je(i.values[0])}`:`Ugyldig valg: forventet en av ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`For stor(t): forventet ${i.origin??"value"} til å ha ${a}${i.maximum.toString()} ${u.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til å ha ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`For lite(n): forventet ${i.origin} til å ha ${a}${i.minimum.toString()} ${u.unit}`:`For lite(n): forventet ${i.origin} til å ha ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Ugyldig streng: må starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: må ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: må inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: må matche mønsteret ${a.pattern}`:`Ugyldig ${r[a.format]??i.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${re(i.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${i.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`;default:return"Ugyldig input"}}};function x8(){return{localeError:_8()}}var k8=()=>{let e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(i){return e[i]??null}let r={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},n={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Fâsit giren: umulan instanceof ${i.expected}, alınan ${l}`:`Fâsit giren: umulan ${a}, alınan ${l}`}case"invalid_value":return i.values.length===1?`Fâsit giren: umulan ${je(i.values[0])}`:`Fâsit tercih: mûteberler ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Fazla büyük: ${i.origin??"value"}, ${a}${i.maximum.toString()} ${u.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${i.origin??"value"}, ${a}${i.maximum.toString()} olmalıydı.`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Fazla küçük: ${i.origin}, ${a}${i.minimum.toString()} ${u.unit} sahip olmalıydı.`:`Fazla küçük: ${i.origin}, ${a}${i.minimum.toString()} olmalıydı.`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Fâsit metin: "${a.prefix}" ile başlamalı.`:a.format==="ends_with"?`Fâsit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`Fâsit metin: "${a.includes}" ihtivâ etmeli.`:a.format==="regex"?`Fâsit metin: ${a.pattern} nakşına uymalı.`:`Fâsit ${r[a.format]??i.format}`}case"not_multiple_of":return`Fâsit sayı: ${i.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${i.keys.length>1?"s":""}: ${re(i.keys,", ")}`;case"invalid_key":return`${i.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${i.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function S8(){return{localeError:k8()}}var $8=()=>{let e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(i){return e[i]??null}let r={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},n={nan:"NaN",number:"عدد",array:"ارې"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`ناسم ورودي: باید instanceof ${i.expected} وای, مګر ${l} ترلاسه شو`:`ناسم ورودي: باید ${a} وای, مګر ${l} ترلاسه شو`}case"invalid_value":return i.values.length===1?`ناسم ورودي: باید ${je(i.values[0])} وای`:`ناسم انتخاب: باید یو له ${re(i.values,"|")} څخه وای`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`ډیر لوی: ${i.origin??"ارزښت"} باید ${a}${i.maximum.toString()} ${u.unit??"عنصرونه"} ولري`:`ډیر لوی: ${i.origin??"ارزښت"} باید ${a}${i.maximum.toString()} وي`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`ډیر کوچنی: ${i.origin} باید ${a}${i.minimum.toString()} ${u.unit} ولري`:`ډیر کوچنی: ${i.origin} باید ${a}${i.minimum.toString()} وي`}case"invalid_format":{let a=i;return a.format==="starts_with"?`ناسم متن: باید د "${a.prefix}" سره پیل شي`:a.format==="ends_with"?`ناسم متن: باید د "${a.suffix}" سره پای ته ورسيږي`:a.format==="includes"?`ناسم متن: باید "${a.includes}" ولري`:a.format==="regex"?`ناسم متن: باید د ${a.pattern} سره مطابقت ولري`:`${r[a.format]??i.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${i.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${i.keys.length>1?"کلیډونه":"کلیډ"}: ${re(i.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${i.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${i.origin} کې`;default:return"ناسمه ورودي"}}};function I8(){return{localeError:$8()}}var P8=()=>{let e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(i){return e[i]??null}let r={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},n={nan:"NaN",number:"liczba",array:"tablica"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${i.expected}, otrzymano ${l}`:`Nieprawidłowe dane wejściowe: oczekiwano ${a}, otrzymano ${l}`}case"invalid_value":return i.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${je(i.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Za duża wartość: oczekiwano, że ${i.origin??"wartość"} będzie mieć ${a}${i.maximum.toString()} ${u.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${i.origin??"wartość"} będzie wynosić ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Za mała wartość: oczekiwano, że ${i.origin??"wartość"} będzie mieć ${a}${i.minimum.toString()} ${u.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${i.origin??"wartość"} będzie wynosić ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${a.prefix}"`:a.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${a.suffix}"`:a.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${a.includes}"`:a.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${a.pattern}`:`Nieprawidłow(y/a/e) ${r[a.format]??i.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>1?"s":""}: ${re(i.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${i.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${i.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function O8(){return{localeError:P8()}}var E8=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(i){return e[i]??null}let r={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN",number:"número",null:"nulo"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Tipo inválido: esperado instanceof ${i.expected}, recebido ${l}`:`Tipo inválido: esperado ${a}, recebido ${l}`}case"invalid_value":return i.values.length===1?`Entrada inválida: esperado ${je(i.values[0])}`:`Opção inválida: esperada uma das ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${a}${i.maximum.toString()} ${u.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Muito pequeno: esperado que ${i.origin} tivesse ${a}${i.minimum.toString()} ${u.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Texto inválido: deve começar com "${a.prefix}"`:a.format==="ends_with"?`Texto inválido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inválido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inválido: deve corresponder ao padrão ${a.pattern}`:`${r[a.format]??i.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${re(i.keys,", ")}`;case"invalid_key":return`Chave inválida em ${i.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${i.origin}`;default:return"Campo inválido"}}};function z8(){return{localeError:E8()}}function Z$(e,t,r,n){let i=Math.abs(e),a=i%10,u=i%100;return u>=11&&u<=19?n:a===1?t:a>=2&&a<=4?r:n}var A8=()=>{let e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(i){return e[i]??null}let r={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},n={nan:"NaN",number:"число",array:"массив"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Неверный ввод: ожидалось instanceof ${i.expected}, получено ${l}`:`Неверный ввод: ожидалось ${a}, получено ${l}`}case"invalid_value":return i.values.length===1?`Неверный ввод: ожидалось ${je(i.values[0])}`:`Неверный вариант: ожидалось одно из ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);if(u){let l=Number(i.maximum),d=Z$(l,u.unit.one,u.unit.few,u.unit.many);return`Слишком большое значение: ожидалось, что ${i.origin??"значение"} будет иметь ${a}${i.maximum.toString()} ${d}`}return`Слишком большое значение: ожидалось, что ${i.origin??"значение"} будет ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);if(u){let l=Number(i.minimum),d=Z$(l,u.unit.one,u.unit.few,u.unit.many);return`Слишком маленькое значение: ожидалось, что ${i.origin} будет иметь ${a}${i.minimum.toString()} ${d}`}return`Слишком маленькое значение: ожидалось, что ${i.origin} будет ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Неверная строка: должна начинаться с "${a.prefix}"`:a.format==="ends_with"?`Неверная строка: должна заканчиваться на "${a.suffix}"`:a.format==="includes"?`Неверная строка: должна содержать "${a.includes}"`:a.format==="regex"?`Неверная строка: должна соответствовать шаблону ${a.pattern}`:`Неверный ${r[a.format]??i.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${i.divisor}`;case"unrecognized_keys":return`Нераспознанн${i.keys.length>1?"ые":"ый"} ключ${i.keys.length>1?"и":""}: ${re(i.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${i.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${i.origin}`;default:return"Неверные входные данные"}}};function j8(){return{localeError:A8()}}var C8=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(i){return e[i]??null}let r={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},n={nan:"NaN",number:"število",array:"tabela"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Neveljaven vnos: pričakovano instanceof ${i.expected}, prejeto ${l}`:`Neveljaven vnos: pričakovano ${a}, prejeto ${l}`}case"invalid_value":return i.values.length===1?`Neveljaven vnos: pričakovano ${je(i.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Preveliko: pričakovano, da bo ${i.origin??"vrednost"} imelo ${a}${i.maximum.toString()} ${u.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${i.origin??"vrednost"} ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Premajhno: pričakovano, da bo ${i.origin} imelo ${a}${i.minimum.toString()} ${u.unit}`:`Premajhno: pričakovano, da bo ${i.origin} ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Neveljaven niz: mora se začeti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se končati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${r[a.format]??i.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i ključi":" ključ"}: ${re(i.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${i.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`;default:return"Neveljaven vnos"}}};function T8(){return{localeError:C8()}}var N8=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(i){return e[i]??null}let r={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},n={nan:"NaN",number:"antal",array:"lista"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Ogiltig inmatning: förväntat instanceof ${i.expected}, fick ${l}`:`Ogiltig inmatning: förväntat ${a}, fick ${l}`}case"invalid_value":return i.values.length===1?`Ogiltig inmatning: förväntat ${je(i.values[0])}`:`Ogiltigt val: förväntade en av ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`För stor(t): förväntade ${i.origin??"värdet"} att ha ${a}${i.maximum.toString()} ${u.unit??"element"}`:`För stor(t): förväntat ${i.origin??"värdet"} att ha ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`För lite(t): förväntade ${i.origin??"värdet"} att ha ${a}${i.minimum.toString()} ${u.unit}`:`För lite(t): förväntade ${i.origin??"värdet"} att ha ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Ogiltig sträng: måste börja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig sträng: måste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig sträng: måste innehålla "${a.includes}"`:a.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${a.pattern}"`:`Ogiltig(t) ${r[a.format]??i.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${re(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${i.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${i.origin??"värdet"}`;default:return"Ogiltig input"}}};function D8(){return{localeError:N8()}}var M8=()=>{let e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(i){return e[i]??null}let r={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${i.expected}, பெறப்பட்டது ${l}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${a}, பெறப்பட்டது ${l}`}case"invalid_value":return i.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${je(i.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${re(i.values,"|")} இல் ஒன்று`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${i.origin??"மதிப்பு"} ${a}${i.maximum.toString()} ${u.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${i.origin??"மதிப்பு"} ${a}${i.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${i.origin} ${a}${i.minimum.toString()} ${u.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${i.origin} ${a}${i.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let a=i;return a.format==="starts_with"?`தவறான சரம்: "${a.prefix}" இல் தொடங்க வேண்டும்`:a.format==="ends_with"?`தவறான சரம்: "${a.suffix}" இல் முடிவடைய வேண்டும்`:a.format==="includes"?`தவறான சரம்: "${a.includes}" ஐ உள்ளடக்க வேண்டும்`:a.format==="regex"?`தவறான சரம்: ${a.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${r[a.format]??i.format}`}case"not_multiple_of":return`தவறான எண்: ${i.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${i.keys.length>1?"கள்":""}: ${re(i.keys,", ")}`;case"invalid_key":return`${i.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${i.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function R8(){return{localeError:M8()}}var U8=()=>{let e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(i){return e[i]??null}let r={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},n={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${i.expected} แต่ได้รับ ${l}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${a} แต่ได้รับ ${l}`}case"invalid_value":return i.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${je(i.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"ไม่เกิน":"น้อยกว่า",u=t(i.origin);return u?`เกินกำหนด: ${i.origin??"ค่า"} ควรมี${a} ${i.maximum.toString()} ${u.unit??"รายการ"}`:`เกินกำหนด: ${i.origin??"ค่า"} ควรมี${a} ${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?"อย่างน้อย":"มากกว่า",u=t(i.origin);return u?`น้อยกว่ากำหนด: ${i.origin} ควรมี${a} ${i.minimum.toString()} ${u.unit}`:`น้อยกว่ากำหนด: ${i.origin} ควรมี${a} ${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${a.prefix}"`:a.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${a.suffix}"`:a.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${a.includes}" อยู่ในข้อความ`:a.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${a.pattern}`:`รูปแบบไม่ถูกต้อง: ${r[a.format]??i.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${i.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${re(i.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${i.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${i.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function L8(){return{localeError:U8()}}var Z8=()=>{let e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(i){return e[i]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Geçersiz değer: beklenen instanceof ${i.expected}, alınan ${l}`:`Geçersiz değer: beklenen ${a}, alınan ${l}`}case"invalid_value":return i.values.length===1?`Geçersiz değer: beklenen ${je(i.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Çok büyük: beklenen ${i.origin??"değer"} ${a}${i.maximum.toString()} ${u.unit??"öğe"}`:`Çok büyük: beklenen ${i.origin??"değer"} ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Çok küçük: beklenen ${i.origin} ${a}${i.minimum.toString()} ${u.unit}`:`Çok küçük: beklenen ${i.origin} ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Geçersiz metin: "${a.prefix}" ile başlamalı`:a.format==="ends_with"?`Geçersiz metin: "${a.suffix}" ile bitmeli`:a.format==="includes"?`Geçersiz metin: "${a.includes}" içermeli`:a.format==="regex"?`Geçersiz metin: ${a.pattern} desenine uymalı`:`Geçersiz ${r[a.format]??i.format}`}case"not_multiple_of":return`Geçersiz sayı: ${i.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${i.keys.length>1?"lar":""}: ${re(i.keys,", ")}`;case"invalid_key":return`${i.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${i.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function F8(){return{localeError:Z8()}}var B8=()=>{let e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(i){return e[i]??null}let r={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},n={nan:"NaN",number:"число",array:"масив"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Неправильні вхідні дані: очікується instanceof ${i.expected}, отримано ${l}`:`Неправильні вхідні дані: очікується ${a}, отримано ${l}`}case"invalid_value":return i.values.length===1?`Неправильні вхідні дані: очікується ${je(i.values[0])}`:`Неправильна опція: очікується одне з ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Занадто велике: очікується, що ${i.origin??"значення"} ${u.verb} ${a}${i.maximum.toString()} ${u.unit??"елементів"}`:`Занадто велике: очікується, що ${i.origin??"значення"} буде ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Занадто мале: очікується, що ${i.origin} ${u.verb} ${a}${i.minimum.toString()} ${u.unit}`:`Занадто мале: очікується, що ${i.origin} буде ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Неправильний рядок: повинен починатися з "${a.prefix}"`:a.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${a.suffix}"`:a.format==="includes"?`Неправильний рядок: повинен містити "${a.includes}"`:a.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${a.pattern}`:`Неправильний ${r[a.format]??i.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${i.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${i.keys.length>1?"і":""}: ${re(i.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${i.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${i.origin}`;default:return"Неправильні вхідні дані"}}};function Qj(){return{localeError:B8()}}function q8(){return Qj()}var W8=()=>{let e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(i){return e[i]??null}let r={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},n={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`غلط ان پٹ: instanceof ${i.expected} متوقع تھا، ${l} موصول ہوا`:`غلط ان پٹ: ${a} متوقع تھا، ${l} موصول ہوا`}case"invalid_value":return i.values.length===1?`غلط ان پٹ: ${je(i.values[0])} متوقع تھا`:`غلط آپشن: ${re(i.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`بہت بڑا: ${i.origin??"ویلیو"} کے ${a}${i.maximum.toString()} ${u.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${i.origin??"ویلیو"} کا ${a}${i.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`بہت چھوٹا: ${i.origin} کے ${a}${i.minimum.toString()} ${u.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${i.origin} کا ${a}${i.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let a=i;return a.format==="starts_with"?`غلط سٹرنگ: "${a.prefix}" سے شروع ہونا چاہیے`:a.format==="ends_with"?`غلط سٹرنگ: "${a.suffix}" پر ختم ہونا چاہیے`:a.format==="includes"?`غلط سٹرنگ: "${a.includes}" شامل ہونا چاہیے`:a.format==="regex"?`غلط سٹرنگ: پیٹرن ${a.pattern} سے میچ ہونا چاہیے`:`غلط ${r[a.format]??i.format}`}case"not_multiple_of":return`غلط نمبر: ${i.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${i.keys.length>1?"ز":""}: ${re(i.keys,"، ")}`;case"invalid_key":return`${i.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${i.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function V8(){return{localeError:W8()}}var K8=()=>{let e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"}};function t(i){return e[i]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},n={nan:"NaN",number:"raqam",array:"massiv"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${i.expected}, qabul qilingan ${l}`:`Noto‘g‘ri kirish: kutilgan ${a}, qabul qilingan ${l}`}case"invalid_value":return i.values.length===1?`Noto‘g‘ri kirish: kutilgan ${je(i.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Juda katta: kutilgan ${i.origin??"qiymat"} ${a}${i.maximum.toString()} ${u.unit} ${u.verb}`:`Juda katta: kutilgan ${i.origin??"qiymat"} ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Juda kichik: kutilgan ${i.origin} ${a}${i.minimum.toString()} ${u.unit} ${u.verb}`:`Juda kichik: kutilgan ${i.origin} ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Noto‘g‘ri satr: "${a.prefix}" bilan boshlanishi kerak`:a.format==="ends_with"?`Noto‘g‘ri satr: "${a.suffix}" bilan tugashi kerak`:a.format==="includes"?`Noto‘g‘ri satr: "${a.includes}" ni o‘z ichiga olishi kerak`:a.format==="regex"?`Noto‘g‘ri satr: ${a.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${r[a.format]??i.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${i.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${i.keys.length>1?"lar":""}: ${re(i.keys,", ")}`;case"invalid_key":return`${i.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${i.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function H8(){return{localeError:K8()}}var G8=()=>{let e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(i){return e[i]??null}let r={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},n={nan:"NaN",number:"số",array:"mảng"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${i.expected}, nhận được ${l}`:`Đầu vào không hợp lệ: mong đợi ${a}, nhận được ${l}`}case"invalid_value":return i.values.length===1?`Đầu vào không hợp lệ: mong đợi ${je(i.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Quá lớn: mong đợi ${i.origin??"giá trị"} ${u.verb} ${a}${i.maximum.toString()} ${u.unit??"phần tử"}`:`Quá lớn: mong đợi ${i.origin??"giá trị"} ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Quá nhỏ: mong đợi ${i.origin} ${u.verb} ${a}${i.minimum.toString()} ${u.unit}`:`Quá nhỏ: mong đợi ${i.origin} ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${a.prefix}"`:a.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${a.suffix}"`:a.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${a.includes}"`:a.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${a.pattern}`:`${r[a.format]??i.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${i.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${re(i.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${i.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${i.origin}`;default:return"Đầu vào không hợp lệ"}}};function J8(){return{localeError:G8()}}var Y8=()=>{let e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(i){return e[i]??null}let r={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},n={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`无效输入:期望 instanceof ${i.expected},实际接收 ${l}`:`无效输入:期望 ${a},实际接收 ${l}`}case"invalid_value":return i.values.length===1?`无效输入:期望 ${je(i.values[0])}`:`无效选项:期望以下之一 ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`数值过大:期望 ${i.origin??"值"} ${a}${i.maximum.toString()} ${u.unit??"个元素"}`:`数值过大:期望 ${i.origin??"值"} ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`数值过小:期望 ${i.origin} ${a}${i.minimum.toString()} ${u.unit}`:`数值过小:期望 ${i.origin} ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`无效字符串:必须以 "${a.prefix}" 开头`:a.format==="ends_with"?`无效字符串:必须以 "${a.suffix}" 结尾`:a.format==="includes"?`无效字符串:必须包含 "${a.includes}"`:a.format==="regex"?`无效字符串:必须满足正则表达式 ${a.pattern}`:`无效${r[a.format]??i.format}`}case"not_multiple_of":return`无效数字:必须是 ${i.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${re(i.keys,", ")}`;case"invalid_key":return`${i.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${i.origin} 中包含无效值(value)`;default:return"无效输入"}}};function X8(){return{localeError:Y8()}}var Q8=()=>{let e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(i){return e[i]??null}let r={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`無效的輸入值:預期為 instanceof ${i.expected},但收到 ${l}`:`無效的輸入值:預期為 ${a},但收到 ${l}`}case"invalid_value":return i.values.length===1?`無效的輸入值:預期為 ${je(i.values[0])}`:`無效的選項:預期為以下其中之一 ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`數值過大:預期 ${i.origin??"值"} 應為 ${a}${i.maximum.toString()} ${u.unit??"個元素"}`:`數值過大:預期 ${i.origin??"值"} 應為 ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`數值過小:預期 ${i.origin} 應為 ${a}${i.minimum.toString()} ${u.unit}`:`數值過小:預期 ${i.origin} 應為 ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`無效的字串:必須以 "${a.prefix}" 開頭`:a.format==="ends_with"?`無效的字串:必須以 "${a.suffix}" 結尾`:a.format==="includes"?`無效的字串:必須包含 "${a.includes}"`:a.format==="regex"?`無效的字串:必須符合格式 ${a.pattern}`:`無效的 ${r[a.format]??i.format}`}case"not_multiple_of":return`無效的數字:必須為 ${i.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${i.keys.length>1?"們":""}:${re(i.keys,"、")}`;case"invalid_key":return`${i.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${i.origin} 中有無效的值`;default:return"無效的輸入值"}}};function e9(){return{localeError:Q8()}}var t9=()=>{let e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(i){return e[i]??null}let r={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},n={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return i=>{switch(i.code){case"invalid_type":{let a=n[i.expected]??i.expected,u=Ne(i.input),l=n[u]??u;return/^[A-Z]/.test(i.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${i.expected}, àmọ̀ a rí ${l}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${a}, àmọ̀ a rí ${l}`}case"invalid_value":return i.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${je(i.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${re(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",u=t(i.origin);return u?`Tó pọ̀ jù: a ní láti jẹ́ pé ${i.origin??"iye"} ${u.verb} ${a}${i.maximum} ${u.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${a}${i.maximum}`}case"too_small":{let a=i.inclusive?">=":">",u=t(i.origin);return u?`Kéré ju: a ní láti jẹ́ pé ${i.origin} ${u.verb} ${a}${i.minimum} ${u.unit}`:`Kéré ju: a ní láti jẹ́ ${a}${i.minimum}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${a.prefix}"`:a.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${a.suffix}"`:a.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${a.includes}"`:a.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${a.pattern}`:`Aṣìṣe: ${r[a.format]??i.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${i.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${re(i.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${i.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${i.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function r9(){return{localeError:t9()}}var F$,eC=Symbol("ZodOutput"),tC=Symbol("ZodInput");class rC{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let i={...n,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function u0(){return new rC}(F$=globalThis).__zod_globalRegistry??(F$.__zod_globalRegistry=u0());var ln=globalThis.__zod_globalRegistry;function nC(e,t){return new e({type:"string",...ne(t)})}function iC(e,t){return new e({type:"string",coerce:!0,...ne(t)})}function s0(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ne(t)})}function Hd(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ne(t)})}function l0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ne(t)})}function c0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ne(t)})}function d0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ne(t)})}function f0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ne(t)})}function rp(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ne(t)})}function p0(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ne(t)})}function m0(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ne(t)})}function v0(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ne(t)})}function h0(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ne(t)})}function g0(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ne(t)})}function y0(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ne(t)})}function b0(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ne(t)})}function w0(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ne(t)})}function _0(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ne(t)})}function aC(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...ne(t)})}function x0(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ne(t)})}function k0(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ne(t)})}function S0(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ne(t)})}function $0(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ne(t)})}function I0(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ne(t)})}function P0(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ne(t)})}var oC={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function uC(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ne(t)})}function sC(e,t){return new e({type:"string",format:"date",check:"string_format",...ne(t)})}function lC(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ne(t)})}function cC(e,t){return new e({type:"string",format:"duration",check:"string_format",...ne(t)})}function dC(e,t){return new e({type:"number",checks:[],...ne(t)})}function fC(e,t){return new e({type:"number",coerce:!0,checks:[],...ne(t)})}function pC(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ne(t)})}function mC(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ne(t)})}function vC(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ne(t)})}function hC(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ne(t)})}function gC(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ne(t)})}function yC(e,t){return new e({type:"boolean",...ne(t)})}function bC(e,t){return new e({type:"boolean",coerce:!0,...ne(t)})}function wC(e,t){return new e({type:"bigint",...ne(t)})}function _C(e,t){return new e({type:"bigint",coerce:!0,...ne(t)})}function xC(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ne(t)})}function kC(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ne(t)})}function SC(e,t){return new e({type:"symbol",...ne(t)})}function $C(e,t){return new e({type:"undefined",...ne(t)})}function IC(e,t){return new e({type:"null",...ne(t)})}function PC(e){return new e({type:"any"})}function OC(e){return new e({type:"unknown"})}function EC(e,t){return new e({type:"never",...ne(t)})}function zC(e,t){return new e({type:"void",...ne(t)})}function AC(e,t){return new e({type:"date",...ne(t)})}function jC(e,t){return new e({type:"date",coerce:!0,...ne(t)})}function CC(e,t){return new e({type:"nan",...ne(t)})}function la(e,t){return new Yb({check:"less_than",...ne(t),value:e,inclusive:!1})}function fn(e,t){return new Yb({check:"less_than",...ne(t),value:e,inclusive:!0})}function ca(e,t){return new Xb({check:"greater_than",...ne(t),value:e,inclusive:!1})}function Nr(e,t){return new Xb({check:"greater_than",...ne(t),value:e,inclusive:!0})}function O0(e){return ca(0,e)}function E0(e){return la(0,e)}function z0(e){return fn(0,e)}function A0(e){return Nr(0,e)}function Qo(e,t){return new yA({check:"multiple_of",...ne(t),value:e})}function du(e,t){return new _A({check:"max_size",...ne(t),maximum:e})}function da(e,t){return new xA({check:"min_size",...ne(t),minimum:e})}function gl(e,t){return new kA({check:"size_equals",...ne(t),size:e})}function yl(e,t){return new SA({check:"max_length",...ne(t),maximum:e})}function Ya(e,t){return new $A({check:"min_length",...ne(t),minimum:e})}function bl(e,t){return new IA({check:"length_equals",...ne(t),length:e})}function np(e,t){return new PA({check:"string_format",format:"regex",...ne(t),pattern:e})}function ip(e){return new OA({check:"string_format",format:"lowercase",...ne(e)})}function ap(e){return new EA({check:"string_format",format:"uppercase",...ne(e)})}function op(e,t){return new zA({check:"string_format",format:"includes",...ne(t),includes:e})}function up(e,t){return new AA({check:"string_format",format:"starts_with",...ne(t),prefix:e})}function sp(e,t){return new jA({check:"string_format",format:"ends_with",...ne(t),suffix:e})}function j0(e,t,r){return new CA({check:"property",property:e,schema:t,...ne(r)})}function lp(e,t){return new TA({check:"mime_type",mime:e,...ne(t)})}function $i(e){return new NA({check:"overwrite",tx:e})}function cp(e){return $i(t=>t.normalize(e))}function dp(){return $i(e=>e.trim())}function fp(){return $i(e=>e.toLowerCase())}function pp(){return $i(e=>e.toUpperCase())}function mp(){return $i(e=>$z(e))}function TC(e,t,r){return new e({type:"array",element:t,...ne(r)})}function n9(e,t,r){return new e({type:"union",options:t,...ne(r)})}function i9(e,t,r){return new e({type:"union",options:t,inclusive:!1,...ne(r)})}function a9(e,t,r,n){return new e({type:"union",options:r,discriminator:t,...ne(n)})}function o9(e,t,r){return new e({type:"intersection",left:t,right:r})}function u9(e,t,r,n){let i=r instanceof Re;return new e({type:"tuple",items:t,rest:i?r:null,...ne(i?n:r)})}function s9(e,t,r,n){return new e({type:"record",keyType:t,valueType:r,...ne(n)})}function l9(e,t,r,n){return new e({type:"map",keyType:t,valueType:r,...ne(n)})}function c9(e,t,r){return new e({type:"set",valueType:t,...ne(r)})}function d9(e,t,r){let n=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new e({type:"enum",entries:n,...ne(r)})}function f9(e,t,r){return new e({type:"enum",entries:t,...ne(r)})}function p9(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...ne(r)})}function NC(e,t){return new e({type:"file",...ne(t)})}function m9(e,t){return new e({type:"transform",transform:t})}function v9(e,t){return new e({type:"optional",innerType:t})}function h9(e,t){return new e({type:"nullable",innerType:t})}function g9(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Pz(r)}})}function y9(e,t,r){return new e({type:"nonoptional",innerType:t,...ne(r)})}function b9(e,t){return new e({type:"success",innerType:t})}function w9(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function _9(e,t,r){return new e({type:"pipe",in:t,out:r})}function x9(e,t){return new e({type:"readonly",innerType:t})}function k9(e,t,r){return new e({type:"template_literal",parts:t,...ne(r)})}function S9(e,t){return new e({type:"lazy",getter:t})}function $9(e,t){return new e({type:"promise",innerType:t})}function DC(e,t,r){let n=ne(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function MC(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ne(r)})}function RC(e){let t=UC(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(Vd(n,r.value,t._zod.def));else{let i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),r.issues.push(Vd(i))}},e(r.value,r)));return t}function UC(e,t){let r=new bt({check:"custom",...ne(t)});return r._zod.check=e,r}function LC(e){let t=new bt({check:"describe"});return t._zod.onattach=[r=>{let n=ln.get(r)??{};ln.add(r,{...n,description:e})}],t._zod.check=()=>{},t}function ZC(e){let t=new bt({check:"meta"});return t._zod.onattach=[r=>{let n=ln.get(r)??{};ln.add(r,{...n,...e})}],t._zod.check=()=>{},t}function FC(e,t){let r=ne(t),n=r.truthy??["true","1","yes","on","y","enabled"],i=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(n=n.map(h=>typeof h=="string"?h.toLowerCase():h),i=i.map(h=>typeof h=="string"?h.toLowerCase():h));let a=new Set(n),u=new Set(i),l=e.Codec??a0,d=e.Boolean??t0,f=new(e.String??hl)({type:"string",error:r.error}),p=new d({type:"boolean",error:r.error}),m=new l({type:"pipe",in:f,out:p,transform:(h,y)=>{let w=h;return r.case!=="sensitive"&&(w=w.toLowerCase()),a.has(w)?!0:u.has(w)?!1:(y.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...u],input:y.value,inst:m,continue:!1}),{})},reverseTransform:(h,y)=>h===!0?n[0]||"true":i[0]||"false",error:r.error});return m}function wl(e,t,r,n={}){let i=ne(n),a={...ne(n),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:u=>r.test(u),...i};return r instanceof RegExp&&(a.pattern=r),new e(a)}function eu(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??ln,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function nt(e,t,r={path:[],schemaPath:[]}){var f,p;var n;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;let u={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,u);let l=(p=(f=e._zod).toJSONSchema)==null?void 0:p.call(f);if(l)u.schema=l;else{let m={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,u.schema,m);else{let y=u.schema,w=t.processors[i.type];if(!w)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);w(e,t,y,m)}let h=e._zod.parent;h&&(u.ref||(u.ref=h),nt(h,t,m),t.seen.get(h).isParent=!0)}let d=t.metadataRegistry.get(e);return d&&Object.assign(u.schema,d),t.io==="input"&&Sr(e)&&(delete u.schema.examples,delete u.schema.default),t.io==="input"&&u.schema._prefault&&((n=u.schema).default??(n.default=u.schema._prefault)),delete u.schema._prefault,t.seen.get(e).schema}function tu(e,t){var u,l,d,f;let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let p of e.seen.entries()){let m=(u=e.metadataRegistry.get(p[0]))==null?void 0:u.id;if(m){let h=n.get(m);if(h&&h!==p[0])throw Error(`Duplicate schema id "${m}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(m,p[0])}}let i=p=>{var w;let m=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let _=(w=e.external.registry.get(p[0]))==null?void 0:w.id,x=e.external.uri??(E=>E);if(_)return{ref:x(_)};let $=p[1].defId??p[1].schema.id??`schema${e.counter++}`;return p[1].defId=$,{defId:$,ref:`${x("__shared")}#/${m}/${$}`}}if(p[1]===r)return{ref:"#"};let h=`#/${m}/`,y=p[1].schema.id??`__schema${e.counter++}`;return{defId:y,ref:h+y}},a=p=>{if(p[1].schema.$ref)return;let m=p[1],{ref:h,defId:y}=i(p);m.def={...m.schema},y&&(m.defId=y);let w=m.schema;for(let _ in w)delete w[_];w.$ref=h};if(e.cycles==="throw")for(let p of e.seen.entries()){let m=p[1];if(m.cycle)throw Error(`Cycle detected: #/${(l=m.cycle)==null?void 0:l.join("/")}/<root>
|
|
87
|
+
|
|
88
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let p of e.seen.entries()){let m=p[1];if(t===p[0]){a(p);continue}if(e.external){let h=(d=e.external.registry.get(p[0]))==null?void 0:d.id;if(t!==p[0]&&h){a(p);continue}}if((f=e.metadataRegistry.get(p[0]))!=null&&f.id){a(p);continue}if(m.cycle){a(p);continue}if(m.count>1&&e.reused==="ref"){a(p);continue}}}function ru(e,t){var u,l,d;let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let n=f=>{let p=e.seen.get(f);if(p.ref===null)return;let m=p.def??p.schema,h={...m},y=p.ref;if(p.ref=null,y){n(y);let _=e.seen.get(y),x=_.schema;if(x.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(m.allOf=m.allOf??[],m.allOf.push(x)):Object.assign(m,x),Object.assign(m,h),f._zod.parent===y)for(let $ in m)$==="$ref"||$==="allOf"||$ in h||delete m[$];if(x.$ref)for(let $ in m)$==="$ref"||$==="allOf"||$ in _.def&&JSON.stringify(m[$])===JSON.stringify(_.def[$])&&delete m[$]}let w=f._zod.parent;if(w&&w!==y){n(w);let _=e.seen.get(w);if(_!=null&&_.schema.$ref&&(m.$ref=_.schema.$ref,_.def))for(let x in m)x==="$ref"||x==="allOf"||x in _.def&&JSON.stringify(m[x])===JSON.stringify(_.def[x])&&delete m[x]}e.override({zodSchema:f,jsonSchema:m,path:p.path??[]})};for(let f of[...e.seen.entries()].reverse())n(f[0]);let i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,(u=e.external)!=null&&u.uri){let f=(l=e.external.registry.get(t))==null?void 0:l.id;if(!f)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(f)}Object.assign(i,r.def??r.schema);let a=((d=e.external)==null?void 0:d.defs)??{};for(let f of e.seen.entries()){let p=f[1];p.def&&p.defId&&(a[p.defId]=p.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?i.$defs=a:i.definitions=a);try{let f=JSON.parse(JSON.stringify(i));return Object.defineProperty(f,"~standard",{value:{...t["~standard"],jsonSchema:{input:zs(t,"input",e.processors),output:zs(t,"output",e.processors)}},enumerable:!1,writable:!1}),f}catch{throw Error("Error converting schema to JSON.")}}function Sr(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Sr(n.element,r);if(n.type==="set")return Sr(n.valueType,r);if(n.type==="lazy")return Sr(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Sr(n.innerType,r);if(n.type==="intersection")return Sr(n.left,r)||Sr(n.right,r);if(n.type==="record"||n.type==="map")return Sr(n.keyType,r)||Sr(n.valueType,r);if(n.type==="pipe")return Sr(n.in,r)||Sr(n.out,r);if(n.type==="object"){for(let i in n.shape)if(Sr(n.shape[i],r))return!0;return!1}if(n.type==="union"){for(let i of n.options)if(Sr(i,r))return!0;return!1}if(n.type==="tuple"){for(let i of n.items)if(Sr(i,r))return!0;return!!(n.rest&&Sr(n.rest,r))}return!1}var BC=(e,t={})=>r=>{let n=eu({...r,processors:t});return nt(e,n),tu(n,e),ru(n,e)},zs=(e,t,r={})=>n=>{let{libraryOptions:i,target:a}=n??{},u=eu({...i??{},target:a,io:t,processors:r});return nt(e,u),tu(u,e),ru(u,e)},I9={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},qC=(e,t,r,n)=>{let i=r;i.type="string";let{minimum:a,maximum:u,format:l,patterns:d,contentEncoding:f}=e._zod.bag;if(typeof a=="number"&&(i.minLength=a),typeof u=="number"&&(i.maxLength=u),l&&(i.format=I9[l]??l,i.format===""&&delete i.format,l==="time"&&delete i.format),f&&(i.contentEncoding=f),d&&d.size>0){let p=[...d];p.length===1?i.pattern=p[0].source:p.length>1&&(i.allOf=[...p.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},WC=(e,t,r,n)=>{let i=r,{minimum:a,maximum:u,format:l,multipleOf:d,exclusiveMaximum:f,exclusiveMinimum:p}=e._zod.bag;typeof l=="string"&&l.includes("int")?i.type="integer":i.type="number",typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=p,i.exclusiveMinimum=!0):i.exclusiveMinimum=p),typeof a=="number"&&(i.minimum=a,typeof p=="number"&&t.target!=="draft-04"&&(p>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof f=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=f,i.exclusiveMaximum=!0):i.exclusiveMaximum=f),typeof u=="number"&&(i.maximum=u,typeof f=="number"&&t.target!=="draft-04"&&(f<=u?delete i.maximum:delete i.exclusiveMaximum)),typeof d=="number"&&(i.multipleOf=d)},VC=(e,t,r,n)=>{r.type="boolean"},KC=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema")},HC=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema")},GC=(e,t,r,n)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},JC=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw Error("Undefined cannot be represented in JSON Schema")},YC=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema")},XC=(e,t,r,n)=>{r.not={}},QC=(e,t,r,n)=>{},eT=(e,t,r,n)=>{},tT=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema")},rT=(e,t,r,n)=>{let i=e._zod.def,a=Db(i.entries);a.every(u=>typeof u=="number")&&(r.type="number"),a.every(u=>typeof u=="string")&&(r.type="string"),r.enum=a},nT=(e,t,r,n)=>{let i=e._zod.def,a=[];for(let u of i.values)if(u===void 0){if(t.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof u=="bigint"){if(t.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(u))}else a.push(u);if(a.length!==0)if(a.length===1){let u=a[0];r.type=u===null?"null":typeof u,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[u]:r.const=u}else a.every(u=>typeof u=="number")&&(r.type="number"),a.every(u=>typeof u=="string")&&(r.type="string"),a.every(u=>typeof u=="boolean")&&(r.type="boolean"),a.every(u=>u===null)&&(r.type="null"),r.enum=a},iT=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema")},aT=(e,t,r,n)=>{let i=r,a=e._zod.pattern;if(!a)throw Error("Pattern not found in template literal");i.type="string",i.pattern=a.source},oT=(e,t,r,n)=>{let i=r,a={type:"string",format:"binary",contentEncoding:"binary"},{minimum:u,maximum:l,mime:d}=e._zod.bag;u!==void 0&&(a.minLength=u),l!==void 0&&(a.maxLength=l),d?d.length===1?(a.contentMediaType=d[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=d.map(f=>({contentMediaType:f}))):Object.assign(i,a)},uT=(e,t,r,n)=>{r.type="boolean"},sT=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema")},lT=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw Error("Function types cannot be represented in JSON Schema")},cT=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema")},dT=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema")},fT=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema")},pT=(e,t,r,n)=>{let i=r,a=e._zod.def,{minimum:u,maximum:l}=e._zod.bag;typeof u=="number"&&(i.minItems=u),typeof l=="number"&&(i.maxItems=l),i.type="array",i.items=nt(a.element,t,{...n,path:[...n.path,"items"]})},mT=(e,t,r,n)=>{var f;let i=r,a=e._zod.def;i.type="object",i.properties={};let u=a.shape;for(let p in u)i.properties[p]=nt(u[p],t,{...n,path:[...n.path,"properties",p]});let l=new Set(Object.keys(u)),d=new Set([...l].filter(p=>{let m=a.shape[p]._zod;return t.io==="input"?m.optin===void 0:m.optout===void 0}));d.size>0&&(i.required=Array.from(d)),((f=a.catchall)==null?void 0:f._zod.def.type)==="never"?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=nt(a.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},C0=(e,t,r,n)=>{let i=e._zod.def,a=i.inclusive===!1,u=i.options.map((l,d)=>nt(l,t,{...n,path:[...n.path,a?"oneOf":"anyOf",d]}));a?r.oneOf=u:r.anyOf=u},vT=(e,t,r,n)=>{let i=e._zod.def,a=nt(i.left,t,{...n,path:[...n.path,"allOf",0]}),u=nt(i.right,t,{...n,path:[...n.path,"allOf",1]}),l=f=>"allOf"in f&&Object.keys(f).length===1,d=[...l(a)?a.allOf:[a],...l(u)?u.allOf:[u]];r.allOf=d},hT=(e,t,r,n)=>{let i=r,a=e._zod.def;i.type="array";let u=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",d=a.items.map((h,y)=>nt(h,t,{...n,path:[...n.path,u,y]})),f=a.rest?nt(a.rest,t,{...n,path:[...n.path,l,...t.target==="openapi-3.0"?[a.items.length]:[]]}):null;t.target==="draft-2020-12"?(i.prefixItems=d,f&&(i.items=f)):t.target==="openapi-3.0"?(i.items={anyOf:d},f&&i.items.anyOf.push(f),i.minItems=d.length,!f&&(i.maxItems=d.length)):(i.items=d,f&&(i.additionalItems=f));let{minimum:p,maximum:m}=e._zod.bag;typeof p=="number"&&(i.minItems=p),typeof m=="number"&&(i.maxItems=m)},gT=(e,t,r,n)=>{var f;let i=r,a=e._zod.def;i.type="object";let u=a.keyType,l=(f=u._zod.bag)==null?void 0:f.patterns;if(a.mode==="loose"&&l&&l.size>0){let p=nt(a.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});i.patternProperties={};for(let m of l)i.patternProperties[m.source]=p}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(i.propertyNames=nt(a.keyType,t,{...n,path:[...n.path,"propertyNames"]})),i.additionalProperties=nt(a.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let d=u._zod.values;if(d){let p=[...d].filter(m=>typeof m=="string"||typeof m=="number");p.length>0&&(i.required=p)}},yT=(e,t,r,n)=>{let i=e._zod.def,a=nt(i.innerType,t,n),u=t.seen.get(e);t.target==="openapi-3.0"?(u.ref=i.innerType,r.nullable=!0):r.anyOf=[a,{type:"null"}]},bT=(e,t,r,n)=>{let i=e._zod.def;nt(i.innerType,t,n);let a=t.seen.get(e);a.ref=i.innerType},wT=(e,t,r,n)=>{let i=e._zod.def;nt(i.innerType,t,n);let a=t.seen.get(e);a.ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},_T=(e,t,r,n)=>{let i=e._zod.def;nt(i.innerType,t,n);let a=t.seen.get(e);a.ref=i.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},xT=(e,t,r,n)=>{let i=e._zod.def;nt(i.innerType,t,n);let a=t.seen.get(e);a.ref=i.innerType;let u;try{u=i.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}r.default=u},kT=(e,t,r,n)=>{let i=e._zod.def,a=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;nt(a,t,n);let u=t.seen.get(e);u.ref=a},ST=(e,t,r,n)=>{let i=e._zod.def;nt(i.innerType,t,n);let a=t.seen.get(e);a.ref=i.innerType,r.readOnly=!0},$T=(e,t,r,n)=>{let i=e._zod.def;nt(i.innerType,t,n);let a=t.seen.get(e);a.ref=i.innerType},T0=(e,t,r,n)=>{let i=e._zod.def;nt(i.innerType,t,n);let a=t.seen.get(e);a.ref=i.innerType},IT=(e,t,r,n)=>{let i=e._zod.innerType;nt(i,t,n);let a=t.seen.get(e);a.ref=i},fy={string:qC,number:WC,boolean:VC,bigint:KC,symbol:HC,null:GC,undefined:JC,void:YC,never:XC,any:QC,unknown:eT,date:tT,enum:rT,literal:nT,nan:iT,template_literal:aT,file:oT,success:uT,custom:sT,function:lT,transform:cT,map:dT,set:fT,array:pT,object:mT,union:C0,intersection:vT,tuple:hT,record:gT,nullable:yT,nonoptional:bT,default:wT,prefault:_T,catch:xT,pipe:kT,readonly:ST,promise:$T,optional:T0,lazy:IT};function PT(e,t){if("_idmap"in e){let n=e,i=eu({...t,processors:fy}),a={};for(let d of n._idmap.entries()){let[f,p]=d;nt(p,i)}let u={},l={registry:n,uri:t==null?void 0:t.uri,defs:a};i.external=l;for(let d of n._idmap.entries()){let[f,p]=d;tu(i,p),u[f]=ru(i,p)}if(Object.keys(a).length>0){let d=i.target==="draft-2020-12"?"$defs":"definitions";u.__shared={[d]:a}}return{schemas:u}}let r=eu({...t,processors:fy});return nt(e,r),tu(r,e),ru(r,e)}class P9{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=(t==null?void 0:t.target)??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=eu({processors:fy,target:r,...(t==null?void 0:t.metadata)&&{metadata:t.metadata},...(t==null?void 0:t.unrepresentable)&&{unrepresentable:t.unrepresentable},...(t==null?void 0:t.override)&&{override:t.override},...(t==null?void 0:t.io)&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return nt(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),tu(this.ctx,t);let n=ru(this.ctx,t),{"~standard":i,...a}=n;return a}}var O9={},OT={};ki(OT,{xor:()=>MN,xid:()=>oN,void:()=>AN,uuidv7:()=>XT,uuidv6:()=>YT,uuidv4:()=>JT,uuid:()=>GT,url:()=>QT,unknown:()=>Xa,union:()=>Np,undefined:()=>EN,ulid:()=>aN,uint64:()=>PN,uint32:()=>SN,tuple:()=>nw,transform:()=>Mp,templateLiteral:()=>JN,symbol:()=>ON,superRefine:()=>zw,success:()=>KN,stringbool:()=>nD,stringFormat:()=>gN,string:()=>Gd,strictObject:()=>NN,set:()=>FN,refine:()=>Ew,record:()=>iw,readonly:()=>kw,promise:()=>YN,preprocess:()=>aD,prefault:()=>hw,pipe:()=>Ts,partialRecord:()=>UN,optional:()=>js,object:()=>TN,number:()=>Z0,nullish:()=>VN,nullable:()=>Cs,null:()=>V0,nonoptional:()=>gw,never:()=>Cp,nativeEnum:()=>BN,nanoid:()=>rN,nan:()=>HN,meta:()=>tD,map:()=>ZN,mac:()=>lN,looseRecord:()=>LN,looseObject:()=>DN,literal:()=>qN,lazy:()=>Iw,ksuid:()=>uN,keyof:()=>CN,jwt:()=>hN,json:()=>iD,ipv6:()=>cN,ipv4:()=>sN,intersection:()=>tw,int64:()=>IN,int32:()=>kN,int:()=>Jd,instanceof:()=>rD,httpUrl:()=>eN,hostname:()=>yN,hex:()=>bN,hash:()=>wN,guid:()=>HT,function:()=>Yd,float64:()=>xN,float32:()=>_N,file:()=>WN,exactOptional:()=>dw,enum:()=>Dp,emoji:()=>tN,email:()=>KT,e164:()=>vN,discriminatedUnion:()=>RN,describe:()=>eD,date:()=>jN,custom:()=>QN,cuid2:()=>iN,cuid:()=>nN,codec:()=>GN,cidrv6:()=>fN,cidrv4:()=>dN,check:()=>XN,catch:()=>ww,boolean:()=>F0,bigint:()=>$N,base64url:()=>mN,base64:()=>pN,array:()=>Il,any:()=>zN,_function:()=>Yd,_default:()=>mw,_ZodString:()=>vp,ZodXor:()=>X0,ZodXID:()=>xp,ZodVoid:()=>J0,ZodUnknown:()=>H0,ZodUnion:()=>Ol,ZodUndefined:()=>q0,ZodUUID:()=>Wn,ZodURL:()=>xl,ZodULID:()=>_p,ZodType:()=>Le,ZodTuple:()=>rw,ZodTransform:()=>lw,ZodTemplateLiteral:()=>Sw,ZodSymbol:()=>B0,ZodSuccess:()=>yw,ZodStringFormat:()=>ut,ZodString:()=>_l,ZodSet:()=>ow,ZodRecord:()=>El,ZodReadonly:()=>xw,ZodPromise:()=>Pw,ZodPrefault:()=>vw,ZodPipe:()=>Lp,ZodOptional:()=>Rp,ZodObject:()=>Pl,ZodNumberFormat:()=>lo,ZodNumber:()=>kl,ZodNullable:()=>fw,ZodNull:()=>W0,ZodNonOptional:()=>Up,ZodNever:()=>G0,ZodNanoID:()=>yp,ZodNaN:()=>_w,ZodMap:()=>aw,ZodMAC:()=>L0,ZodLiteral:()=>uw,ZodLazy:()=>$w,ZodKSUID:()=>kp,ZodJWT:()=>Ap,ZodIntersection:()=>ew,ZodIPv6:()=>$p,ZodIPv4:()=>Sp,ZodGUID:()=>As,ZodFunction:()=>Ow,ZodFile:()=>sw,ZodExactOptional:()=>cw,ZodEnum:()=>nu,ZodEmoji:()=>gp,ZodEmail:()=>hp,ZodE164:()=>zp,ZodDiscriminatedUnion:()=>Q0,ZodDefault:()=>pw,ZodDate:()=>Tp,ZodCustomStringFormat:()=>fu,ZodCustom:()=>zl,ZodCodec:()=>Zp,ZodCatch:()=>bw,ZodCUID2:()=>wp,ZodCUID:()=>bp,ZodCIDRv6:()=>Pp,ZodCIDRv4:()=>Ip,ZodBoolean:()=>Sl,ZodBigIntFormat:()=>jp,ZodBigInt:()=>$l,ZodBase64URL:()=>Ep,ZodBase64:()=>Op,ZodArray:()=>Y0,ZodAny:()=>K0});var ET={};ki(ET,{uppercase:()=>ap,trim:()=>dp,toUpperCase:()=>pp,toLowerCase:()=>fp,startsWith:()=>up,slugify:()=>mp,size:()=>gl,regex:()=>np,property:()=>j0,positive:()=>O0,overwrite:()=>$i,normalize:()=>cp,nonpositive:()=>z0,nonnegative:()=>A0,negative:()=>E0,multipleOf:()=>Qo,minSize:()=>da,minLength:()=>Ya,mime:()=>lp,maxSize:()=>du,maxLength:()=>yl,lte:()=>fn,lt:()=>la,lowercase:()=>ip,length:()=>bl,includes:()=>op,gte:()=>Nr,gt:()=>ca,endsWith:()=>sp});var N0={};ki(N0,{time:()=>jT,duration:()=>CT,datetime:()=>zT,date:()=>AT,ZodISOTime:()=>R0,ZodISODuration:()=>U0,ZodISODateTime:()=>D0,ZodISODate:()=>M0});var D0=R("ZodISODateTime",(e,t)=>{GA.init(e,t),ut.init(e,t)});function zT(e){return uC(D0,e)}var M0=R("ZodISODate",(e,t)=>{JA.init(e,t),ut.init(e,t)});function AT(e){return sC(M0,e)}var R0=R("ZodISOTime",(e,t)=>{YA.init(e,t),ut.init(e,t)});function jT(e){return lC(R0,e)}var U0=R("ZodISODuration",(e,t)=>{XA.init(e,t),ut.init(e,t)});function CT(e){return cC(U0,e)}var TT=(e,t)=>{Rb.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Lb(e,r)},flatten:{value:r=>Ub(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,qd,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,qd,2)}},isEmpty:{get(){return e.issues.length===0}}})},E9=R("ZodError",TT),Qr=R("ZodError",TT,{Parent:Error}),NT=ll(Qr),DT=cl(Qr),MT=dl(Qr),RT=fl(Qr),UT=Zb(Qr),LT=Fb(Qr),ZT=Bb(Qr),FT=qb(Qr),BT=Wb(Qr),qT=Vb(Qr),WT=Kb(Qr),VT=Hb(Qr),Le=R("ZodType",(e,t)=>(Re.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:zs(e,"input"),output:zs(e,"output")}}),e.toJSONSchema=BC(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(qe.mergeDefs(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(r,n)=>bn(e,r,n),e.brand=()=>e,e.register=(r,n)=>(r.add(e,n),e),e.parse=(r,n)=>NT(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>MT(e,r,n),e.parseAsync=async(r,n)=>DT(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>RT(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>UT(e,r,n),e.decode=(r,n)=>LT(e,r,n),e.encodeAsync=async(r,n)=>ZT(e,r,n),e.decodeAsync=async(r,n)=>FT(e,r,n),e.safeEncode=(r,n)=>BT(e,r,n),e.safeDecode=(r,n)=>qT(e,r,n),e.safeEncodeAsync=async(r,n)=>WT(e,r,n),e.safeDecodeAsync=async(r,n)=>VT(e,r,n),e.refine=(r,n)=>e.check(Ew(r,n)),e.superRefine=r=>e.check(zw(r)),e.overwrite=r=>e.check($i(r)),e.optional=()=>js(e),e.exactOptional=()=>dw(e),e.nullable=()=>Cs(e),e.nullish=()=>js(Cs(e)),e.nonoptional=r=>gw(e,r),e.array=()=>Il(e),e.or=r=>Np([e,r]),e.and=r=>tw(e,r),e.transform=r=>Ts(e,Mp(r)),e.default=r=>mw(e,r),e.prefault=r=>hw(e,r),e.catch=r=>ww(e,r),e.pipe=r=>Ts(e,r),e.readonly=()=>kw(e),e.describe=r=>{let n=e.clone();return ln.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){var r;return(r=ln.get(e))==null?void 0:r.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return ln.get(e);let n=e.clone();return ln.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),vp=R("_ZodString",(e,t)=>{hl.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,i,a)=>qC(e,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(np(...n)),e.includes=(...n)=>e.check(op(...n)),e.startsWith=(...n)=>e.check(up(...n)),e.endsWith=(...n)=>e.check(sp(...n)),e.min=(...n)=>e.check(Ya(...n)),e.max=(...n)=>e.check(yl(...n)),e.length=(...n)=>e.check(bl(...n)),e.nonempty=(...n)=>e.check(Ya(1,...n)),e.lowercase=n=>e.check(ip(n)),e.uppercase=n=>e.check(ap(n)),e.trim=()=>e.check(dp()),e.normalize=(...n)=>e.check(cp(...n)),e.toLowerCase=()=>e.check(fp()),e.toUpperCase=()=>e.check(pp()),e.slugify=()=>e.check(mp())}),_l=R("ZodString",(e,t)=>{hl.init(e,t),vp.init(e,t),e.email=r=>e.check(s0(hp,r)),e.url=r=>e.check(rp(xl,r)),e.jwt=r=>e.check(P0(Ap,r)),e.emoji=r=>e.check(p0(gp,r)),e.guid=r=>e.check(Hd(As,r)),e.uuid=r=>e.check(l0(Wn,r)),e.uuidv4=r=>e.check(c0(Wn,r)),e.uuidv6=r=>e.check(d0(Wn,r)),e.uuidv7=r=>e.check(f0(Wn,r)),e.nanoid=r=>e.check(m0(yp,r)),e.guid=r=>e.check(Hd(As,r)),e.cuid=r=>e.check(v0(bp,r)),e.cuid2=r=>e.check(h0(wp,r)),e.ulid=r=>e.check(g0(_p,r)),e.base64=r=>e.check(S0(Op,r)),e.base64url=r=>e.check($0(Ep,r)),e.xid=r=>e.check(y0(xp,r)),e.ksuid=r=>e.check(b0(kp,r)),e.ipv4=r=>e.check(w0(Sp,r)),e.ipv6=r=>e.check(_0($p,r)),e.cidrv4=r=>e.check(x0(Ip,r)),e.cidrv6=r=>e.check(k0(Pp,r)),e.e164=r=>e.check(I0(zp,r)),e.datetime=r=>e.check(zT(r)),e.date=r=>e.check(AT(r)),e.time=r=>e.check(jT(r)),e.duration=r=>e.check(CT(r))});function Gd(e){return nC(_l,e)}var ut=R("ZodStringFormat",(e,t)=>{ot.init(e,t),vp.init(e,t)}),hp=R("ZodEmail",(e,t)=>{LA.init(e,t),ut.init(e,t)});function KT(e){return s0(hp,e)}var As=R("ZodGUID",(e,t)=>{RA.init(e,t),ut.init(e,t)});function HT(e){return Hd(As,e)}var Wn=R("ZodUUID",(e,t)=>{UA.init(e,t),ut.init(e,t)});function GT(e){return l0(Wn,e)}function JT(e){return c0(Wn,e)}function YT(e){return d0(Wn,e)}function XT(e){return f0(Wn,e)}var xl=R("ZodURL",(e,t)=>{ZA.init(e,t),ut.init(e,t)});function QT(e){return rp(xl,e)}function eN(e){return rp(xl,{protocol:/^https?$/,hostname:so.domain,...qe.normalizeParams(e)})}var gp=R("ZodEmoji",(e,t)=>{FA.init(e,t),ut.init(e,t)});function tN(e){return p0(gp,e)}var yp=R("ZodNanoID",(e,t)=>{BA.init(e,t),ut.init(e,t)});function rN(e){return m0(yp,e)}var bp=R("ZodCUID",(e,t)=>{qA.init(e,t),ut.init(e,t)});function nN(e){return v0(bp,e)}var wp=R("ZodCUID2",(e,t)=>{WA.init(e,t),ut.init(e,t)});function iN(e){return h0(wp,e)}var _p=R("ZodULID",(e,t)=>{VA.init(e,t),ut.init(e,t)});function aN(e){return g0(_p,e)}var xp=R("ZodXID",(e,t)=>{KA.init(e,t),ut.init(e,t)});function oN(e){return y0(xp,e)}var kp=R("ZodKSUID",(e,t)=>{HA.init(e,t),ut.init(e,t)});function uN(e){return b0(kp,e)}var Sp=R("ZodIPv4",(e,t)=>{QA.init(e,t),ut.init(e,t)});function sN(e){return w0(Sp,e)}var L0=R("ZodMAC",(e,t)=>{tj.init(e,t),ut.init(e,t)});function lN(e){return aC(L0,e)}var $p=R("ZodIPv6",(e,t)=>{ej.init(e,t),ut.init(e,t)});function cN(e){return _0($p,e)}var Ip=R("ZodCIDRv4",(e,t)=>{rj.init(e,t),ut.init(e,t)});function dN(e){return x0(Ip,e)}var Pp=R("ZodCIDRv6",(e,t)=>{nj.init(e,t),ut.init(e,t)});function fN(e){return k0(Pp,e)}var Op=R("ZodBase64",(e,t)=>{ij.init(e,t),ut.init(e,t)});function pN(e){return S0(Op,e)}var Ep=R("ZodBase64URL",(e,t)=>{oj.init(e,t),ut.init(e,t)});function mN(e){return $0(Ep,e)}var zp=R("ZodE164",(e,t)=>{uj.init(e,t),ut.init(e,t)});function vN(e){return I0(zp,e)}var Ap=R("ZodJWT",(e,t)=>{lj.init(e,t),ut.init(e,t)});function hN(e){return P0(Ap,e)}var fu=R("ZodCustomStringFormat",(e,t)=>{cj.init(e,t),ut.init(e,t)});function gN(e,t,r={}){return wl(fu,e,t,r)}function yN(e){return wl(fu,"hostname",so.hostname,e)}function bN(e){return wl(fu,"hex",so.hex,e)}function wN(e,t){let r=(t==null?void 0:t.enc)??"hex",n=`${e}_${r}`,i=so[n];if(!i)throw Error(`Unrecognized hash format: ${n}`);return wl(fu,n,i,t)}var kl=R("ZodNumber",(e,t)=>{e0.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,i,a)=>WC(e,n,i),e.gt=(n,i)=>e.check(ca(n,i)),e.gte=(n,i)=>e.check(Nr(n,i)),e.min=(n,i)=>e.check(Nr(n,i)),e.lt=(n,i)=>e.check(la(n,i)),e.lte=(n,i)=>e.check(fn(n,i)),e.max=(n,i)=>e.check(fn(n,i)),e.int=n=>e.check(Jd(n)),e.safe=n=>e.check(Jd(n)),e.positive=n=>e.check(ca(0,n)),e.nonnegative=n=>e.check(Nr(0,n)),e.negative=n=>e.check(la(0,n)),e.nonpositive=n=>e.check(fn(0,n)),e.multipleOf=(n,i)=>e.check(Qo(n,i)),e.step=(n,i)=>e.check(Qo(n,i)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function Z0(e){return dC(kl,e)}var lo=R("ZodNumberFormat",(e,t)=>{dj.init(e,t),kl.init(e,t)});function Jd(e){return pC(lo,e)}function _N(e){return mC(lo,e)}function xN(e){return vC(lo,e)}function kN(e){return hC(lo,e)}function SN(e){return gC(lo,e)}var Sl=R("ZodBoolean",(e,t)=>{t0.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>VC(e,r,n)});function F0(e){return yC(Sl,e)}var $l=R("ZodBigInt",(e,t)=>{r0.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,i,a)=>KC(e,n),e.gte=(n,i)=>e.check(Nr(n,i)),e.min=(n,i)=>e.check(Nr(n,i)),e.gt=(n,i)=>e.check(ca(n,i)),e.gte=(n,i)=>e.check(Nr(n,i)),e.min=(n,i)=>e.check(Nr(n,i)),e.lt=(n,i)=>e.check(la(n,i)),e.lte=(n,i)=>e.check(fn(n,i)),e.max=(n,i)=>e.check(fn(n,i)),e.positive=n=>e.check(ca(BigInt(0),n)),e.negative=n=>e.check(la(BigInt(0),n)),e.nonpositive=n=>e.check(fn(BigInt(0),n)),e.nonnegative=n=>e.check(Nr(BigInt(0),n)),e.multipleOf=(n,i)=>e.check(Qo(n,i));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function $N(e){return wC($l,e)}var jp=R("ZodBigIntFormat",(e,t)=>{fj.init(e,t),$l.init(e,t)});function IN(e){return xC(jp,e)}function PN(e){return kC(jp,e)}var B0=R("ZodSymbol",(e,t)=>{pj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>HC(e,r)});function ON(e){return SC(B0,e)}var q0=R("ZodUndefined",(e,t)=>{mj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>JC(e,r)});function EN(e){return $C(q0,e)}var W0=R("ZodNull",(e,t)=>{vj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>GC(e,r,n)});function V0(e){return IC(W0,e)}var K0=R("ZodAny",(e,t)=>{hj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>QC()});function zN(){return PC(K0)}var H0=R("ZodUnknown",(e,t)=>{gj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>eT()});function Xa(){return OC(H0)}var G0=R("ZodNever",(e,t)=>{yj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>XC(e,r,n)});function Cp(e){return EC(G0,e)}var J0=R("ZodVoid",(e,t)=>{bj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>YC(e,r)});function AN(e){return zC(J0,e)}var Tp=R("ZodDate",(e,t)=>{wj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,i,a)=>tT(e,n),e.min=(n,i)=>e.check(Nr(n,i)),e.max=(n,i)=>e.check(fn(n,i));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function jN(e){return AC(Tp,e)}var Y0=R("ZodArray",(e,t)=>{_j.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>pT(e,r,n,i),e.element=t.element,e.min=(r,n)=>e.check(Ya(r,n)),e.nonempty=r=>e.check(Ya(1,r)),e.max=(r,n)=>e.check(yl(r,n)),e.length=(r,n)=>e.check(bl(r,n)),e.unwrap=()=>e.element});function Il(e,t){return TC(Y0,e,t)}function CN(e){let t=e._zod.def.shape;return Dp(Object.keys(t))}var Pl=R("ZodObject",(e,t)=>{$j.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>mT(e,r,n,i),qe.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Dp(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Xa()}),e.loose=()=>e.clone({...e._zod.def,catchall:Xa()}),e.strict=()=>e.clone({...e._zod.def,catchall:Cp()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>qe.extend(e,r),e.safeExtend=r=>qe.safeExtend(e,r),e.merge=r=>qe.merge(e,r),e.pick=r=>qe.pick(e,r),e.omit=r=>qe.omit(e,r),e.partial=(...r)=>qe.partial(Rp,e,r[0]),e.required=(...r)=>qe.required(Up,e,r[0])});function TN(e,t){let r={type:"object",shape:e??{},...qe.normalizeParams(t)};return new Pl(r)}function NN(e,t){return new Pl({type:"object",shape:e,catchall:Cp(),...qe.normalizeParams(t)})}function DN(e,t){return new Pl({type:"object",shape:e,catchall:Xa(),...qe.normalizeParams(t)})}var Ol=R("ZodUnion",(e,t)=>{tp.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>C0(e,r,n,i),e.options=t.options});function Np(e,t){return new Ol({type:"union",options:e,...qe.normalizeParams(t)})}var X0=R("ZodXor",(e,t)=>{Ol.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(r,n,i)=>C0(e,r,n,i),e.options=t.options});function MN(e,t){return new X0({type:"union",options:e,inclusive:!1,...qe.normalizeParams(t)})}var Q0=R("ZodDiscriminatedUnion",(e,t)=>{Ol.init(e,t),Pj.init(e,t)});function RN(e,t,r){return new Q0({type:"union",options:t,discriminator:e,...qe.normalizeParams(r)})}var ew=R("ZodIntersection",(e,t)=>{Oj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>vT(e,r,n,i)});function tw(e,t){return new ew({type:"intersection",left:e,right:t})}var rw=R("ZodTuple",(e,t)=>{n0.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>hT(e,r,n,i),e.rest=r=>e.clone({...e._zod.def,rest:r})});function nw(e,t,r){let n=t instanceof Re,i=n?r:t;return new rw({type:"tuple",items:e,rest:n?t:null,...qe.normalizeParams(i)})}var El=R("ZodRecord",(e,t)=>{Ej.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>gT(e,r,n,i),e.keyType=t.keyType,e.valueType=t.valueType});function iw(e,t,r){return new El({type:"record",keyType:e,valueType:t,...qe.normalizeParams(r)})}function UN(e,t,r){let n=bn(e);return n._zod.values=void 0,new El({type:"record",keyType:n,valueType:t,...qe.normalizeParams(r)})}function LN(e,t,r){return new El({type:"record",keyType:e,valueType:t,mode:"loose",...qe.normalizeParams(r)})}var aw=R("ZodMap",(e,t)=>{zj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>dT(e,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(da(...r)),e.nonempty=r=>e.check(da(1,r)),e.max=(...r)=>e.check(du(...r)),e.size=(...r)=>e.check(gl(...r))});function ZN(e,t,r){return new aw({type:"map",keyType:e,valueType:t,...qe.normalizeParams(r)})}var ow=R("ZodSet",(e,t)=>{Aj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>fT(e,r),e.min=(...r)=>e.check(da(...r)),e.nonempty=r=>e.check(da(1,r)),e.max=(...r)=>e.check(du(...r)),e.size=(...r)=>e.check(gl(...r))});function FN(e,t){return new ow({type:"set",valueType:e,...qe.normalizeParams(t)})}var nu=R("ZodEnum",(e,t)=>{jj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,i,a)=>rT(e,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(n,i)=>{let a={};for(let u of n)if(r.has(u))a[u]=t.entries[u];else throw Error(`Key ${u} not found in enum`);return new nu({...t,checks:[],...qe.normalizeParams(i),entries:a})},e.exclude=(n,i)=>{let a={...t.entries};for(let u of n)if(r.has(u))delete a[u];else throw Error(`Key ${u} not found in enum`);return new nu({...t,checks:[],...qe.normalizeParams(i),entries:a})}});function Dp(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new nu({type:"enum",entries:r,...qe.normalizeParams(t)})}function BN(e,t){return new nu({type:"enum",entries:e,...qe.normalizeParams(t)})}var uw=R("ZodLiteral",(e,t)=>{Cj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>nT(e,r,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function qN(e,t){return new uw({type:"literal",values:Array.isArray(e)?e:[e],...qe.normalizeParams(t)})}var sw=R("ZodFile",(e,t)=>{Tj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>oT(e,r,n),e.min=(r,n)=>e.check(da(r,n)),e.max=(r,n)=>e.check(du(r,n)),e.mime=(r,n)=>e.check(lp(Array.isArray(r)?r:[r],n))});function WN(e){return NC(sw,e)}var lw=R("ZodTransform",(e,t)=>{Nj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>cT(e,r),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Yf(e.constructor.name);r.addIssue=a=>{if(typeof a=="string")r.issues.push(qe.issue(a,r.value,t));else{let u=a;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=r.value),u.inst??(u.inst=e),r.issues.push(qe.issue(u))}};let i=t.transform(r.value,r);return i instanceof Promise?i.then(a=>(r.value=a,r)):(r.value=i,r)}});function Mp(e){return new lw({type:"transform",transform:e})}var Rp=R("ZodOptional",(e,t)=>{i0.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>T0(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function js(e){return new Rp({type:"optional",innerType:e})}var cw=R("ZodExactOptional",(e,t)=>{Dj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>T0(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function dw(e){return new cw({type:"optional",innerType:e})}var fw=R("ZodNullable",(e,t)=>{Mj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>yT(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function Cs(e){return new fw({type:"nullable",innerType:e})}function VN(e){return js(Cs(e))}var pw=R("ZodDefault",(e,t)=>{Rj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>wT(e,r,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function mw(e,t){return new pw({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():qe.shallowClone(t)}})}var vw=R("ZodPrefault",(e,t)=>{Uj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>_T(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function hw(e,t){return new vw({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():qe.shallowClone(t)}})}var Up=R("ZodNonOptional",(e,t)=>{Lj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>bT(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function gw(e,t){return new Up({type:"nonoptional",innerType:e,...qe.normalizeParams(t)})}var yw=R("ZodSuccess",(e,t)=>{Zj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>uT(e,r,n),e.unwrap=()=>e._zod.def.innerType});function KN(e){return new yw({type:"success",innerType:e})}var bw=R("ZodCatch",(e,t)=>{Fj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>xT(e,r,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ww(e,t){return new bw({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var _w=R("ZodNaN",(e,t)=>{Bj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>iT(e,r)});function HN(e){return CC(_w,e)}var Lp=R("ZodPipe",(e,t)=>{qj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>kT(e,r,n,i),e.in=t.in,e.out=t.out});function Ts(e,t){return new Lp({type:"pipe",in:e,out:t})}var Zp=R("ZodCodec",(e,t)=>{Lp.init(e,t),a0.init(e,t)});function GN(e,t,r){return new Zp({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var xw=R("ZodReadonly",(e,t)=>{Wj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>ST(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function kw(e){return new xw({type:"readonly",innerType:e})}var Sw=R("ZodTemplateLiteral",(e,t)=>{Vj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>aT(e,r,n)});function JN(e,t){return new Sw({type:"template_literal",parts:e,...qe.normalizeParams(t)})}var $w=R("ZodLazy",(e,t)=>{Gj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>IT(e,r,n,i),e.unwrap=()=>e._zod.def.getter()});function Iw(e){return new $w({type:"lazy",getter:e})}var Pw=R("ZodPromise",(e,t)=>{Hj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>$T(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function YN(e){return new Pw({type:"promise",innerType:e})}var Ow=R("ZodFunction",(e,t)=>{Kj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>lT(e,r)});function Yd(e){return new Ow({type:"function",input:Array.isArray(e==null?void 0:e.input)?nw(e==null?void 0:e.input):(e==null?void 0:e.input)??Il(Xa()),output:(e==null?void 0:e.output)??Xa()})}var zl=R("ZodCustom",(e,t)=>{Jj.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,n,i)=>sT(e,r)});function XN(e){let t=new bt({check:"custom"});return t._zod.check=e,t}function QN(e,t){return DC(zl,e??(()=>!0),t)}function Ew(e,t={}){return MC(zl,e,t)}function zw(e){return RC(e)}var eD=LC,tD=ZC;function rD(e,t={}){let r=new zl({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...qe.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=n=>{n.value instanceof e||n.issues.push({code:"invalid_type",expected:e.name,input:n.value,inst:r,path:[...r._zod.def.path??[]]})},r}var nD=(...e)=>FC({Codec:Zp,Boolean:Sl,String:_l},...e);function iD(e){let t=Iw(()=>Np([Gd(e),Z0(),F0(),V0(),Il(t),iw(Gd(),t)]));return t}function aD(e,t){return Ts(Mp(e),t)}var z9={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function A9(e){wr({customError:e})}function j9(){return wr().customError}var py;py||(py={});var ue={...OT,...ET,iso:N0},C9=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function T9(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function N9(e,t){if(!e.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let n=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===n){let i=r[1];if(!i||!t.defs[i])throw Error(`Reference not found: ${e}`);return t.defs[i]}throw Error(`Reference not found: ${e}`)}function oD(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return ue.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let i=e.$ref;if(t.refs.has(i))return t.refs.get(i);if(t.processing.has(i))return ue.lazy(()=>{if(!t.refs.has(i))throw Error(`Circular reference not resolved: ${i}`);return t.refs.get(i)});t.processing.add(i);let a=N9(i,t),u=gr(a,t);return t.refs.set(i,u),t.processing.delete(i),u}if(e.enum!==void 0){let i=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&i.length===1&&i[0]===null)return ue.null();if(i.length===0)return ue.never();if(i.length===1)return ue.literal(i[0]);if(i.every(u=>typeof u=="string"))return ue.enum(i);let a=i.map(u=>ue.literal(u));return a.length<2?a[0]:ue.union([a[0],a[1],...a.slice(2)])}if(e.const!==void 0)return ue.literal(e.const);let r=e.type;if(Array.isArray(r)){let i=r.map(a=>{let u={...e,type:a};return oD(u,t)});return i.length===0?ue.never():i.length===1?i[0]:ue.union(i)}if(!r)return ue.any();let n;switch(r){case"string":{let i=ue.string();if(e.format){let a=e.format;a==="email"?i=i.check(ue.email()):a==="uri"||a==="uri-reference"?i=i.check(ue.url()):a==="uuid"||a==="guid"?i=i.check(ue.uuid()):a==="date-time"?i=i.check(ue.iso.datetime()):a==="date"?i=i.check(ue.iso.date()):a==="time"?i=i.check(ue.iso.time()):a==="duration"?i=i.check(ue.iso.duration()):a==="ipv4"?i=i.check(ue.ipv4()):a==="ipv6"?i=i.check(ue.ipv6()):a==="mac"?i=i.check(ue.mac()):a==="cidr"?i=i.check(ue.cidrv4()):a==="cidr-v6"?i=i.check(ue.cidrv6()):a==="base64"?i=i.check(ue.base64()):a==="base64url"?i=i.check(ue.base64url()):a==="e164"?i=i.check(ue.e164()):a==="jwt"?i=i.check(ue.jwt()):a==="emoji"?i=i.check(ue.emoji()):a==="nanoid"?i=i.check(ue.nanoid()):a==="cuid"?i=i.check(ue.cuid()):a==="cuid2"?i=i.check(ue.cuid2()):a==="ulid"?i=i.check(ue.ulid()):a==="xid"?i=i.check(ue.xid()):a==="ksuid"&&(i=i.check(ue.ksuid()))}typeof e.minLength=="number"&&(i=i.min(e.minLength)),typeof e.maxLength=="number"&&(i=i.max(e.maxLength)),e.pattern&&(i=i.regex(new RegExp(e.pattern))),n=i;break}case"number":case"integer":{let i=r==="integer"?ue.number().int():ue.number();typeof e.minimum=="number"&&(i=i.min(e.minimum)),typeof e.maximum=="number"&&(i=i.max(e.maximum)),typeof e.exclusiveMinimum=="number"?i=i.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(i=i.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?i=i.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(i=i.lt(e.maximum)),typeof e.multipleOf=="number"&&(i=i.multipleOf(e.multipleOf)),n=i;break}case"boolean":{n=ue.boolean();break}case"null":{n=ue.null();break}case"object":{let i={},a=e.properties||{},u=new Set(e.required||[]);for(let[d,f]of Object.entries(a)){let p=gr(f,t);i[d]=u.has(d)?p:p.optional()}if(e.propertyNames){let d=gr(e.propertyNames,t),f=e.additionalProperties&&typeof e.additionalProperties=="object"?gr(e.additionalProperties,t):ue.any();if(Object.keys(i).length===0){n=ue.record(d,f);break}let p=ue.object(i).passthrough(),m=ue.looseRecord(d,f);n=ue.intersection(p,m);break}if(e.patternProperties){let d=e.patternProperties,f=Object.keys(d),p=[];for(let h of f){let y=gr(d[h],t),w=ue.string().regex(new RegExp(h));p.push(ue.looseRecord(w,y))}let m=[];if(Object.keys(i).length>0&&m.push(ue.object(i).passthrough()),m.push(...p),m.length===0)n=ue.object({}).passthrough();else if(m.length===1)n=m[0];else{let h=ue.intersection(m[0],m[1]);for(let y=2;y<m.length;y++)h=ue.intersection(h,m[y]);n=h}break}let l=ue.object(i);e.additionalProperties===!1?n=l.strict():typeof e.additionalProperties=="object"?n=l.catchall(gr(e.additionalProperties,t)):n=l.passthrough();break}case"array":{let{prefixItems:i,items:a}=e;if(i&&Array.isArray(i)){let u=i.map(d=>gr(d,t)),l=a&&typeof a=="object"&&!Array.isArray(a)?gr(a,t):void 0;l?n=ue.tuple(u).rest(l):n=ue.tuple(u),typeof e.minItems=="number"&&(n=n.check(ue.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(ue.maxLength(e.maxItems)))}else if(Array.isArray(a)){let u=a.map(d=>gr(d,t)),l=e.additionalItems&&typeof e.additionalItems=="object"?gr(e.additionalItems,t):void 0;l?n=ue.tuple(u).rest(l):n=ue.tuple(u),typeof e.minItems=="number"&&(n=n.check(ue.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(ue.maxLength(e.maxItems)))}else if(a!==void 0){let u=gr(a,t),l=ue.array(u);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),n=l}else n=ue.array(ue.any());break}default:throw Error(`Unsupported type: ${r}`)}return e.description&&(n=n.describe(e.description)),e.default!==void 0&&(n=n.default(e.default)),n}function gr(e,t){if(typeof e=="boolean")return e?ue.any():ue.never();let r=oD(e,t),n=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let l=e.anyOf.map(f=>gr(f,t)),d=ue.union(l);r=n?ue.intersection(r,d):d}if(e.oneOf&&Array.isArray(e.oneOf)){let l=e.oneOf.map(f=>gr(f,t)),d=ue.xor(l);r=n?ue.intersection(r,d):d}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=n?r:ue.any();else{let l=n?r:gr(e.allOf[0],t),d=n?0:1;for(let f=d;f<e.allOf.length;f++)l=ue.intersection(l,gr(e.allOf[f],t));r=l}e.nullable===!0&&t.version==="openapi-3.0"&&(r=ue.nullable(r)),e.readOnly===!0&&(r=ue.readonly(r));let i={},a=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let l of a)l in e&&(i[l]=e[l]);let u=["contentEncoding","contentMediaType","contentSchema"];for(let l of u)l in e&&(i[l]=e[l]);for(let l of Object.keys(e))C9.has(l)||(i[l]=e[l]);return Object.keys(i).length>0&&t.registry.add(r,i),r}function D9(e,t){if(typeof e=="boolean")return e?ue.any():ue.never();let r=T9(e,t==null?void 0:t.defaultTarget),n=e.$defs||e.definitions||{},i={version:r,defs:n,refs:new Map,processing:new Set,rootSchema:e,registry:(t==null?void 0:t.registry)??ln};return gr(e,i)}var uD={};ki(uD,{string:()=>M9,number:()=>R9,date:()=>Z9,boolean:()=>U9,bigint:()=>L9});function M9(e){return iC(_l,e)}function R9(e){return fC(kl,e)}function U9(e){return bC(Sl,e)}function L9(e){return _C($l,e)}function Z9(e){return jC(Tp,e)}wr(Yj());var F9=P.union([P.literal("light"),P.literal("dark")]).describe("Color theme preference for the host environment."),Ns=P.union([P.literal("inline"),P.literal("fullscreen"),P.literal("pip")]).describe("Display mode for UI presentation."),B9=P.union([P.literal("--color-background-primary"),P.literal("--color-background-secondary"),P.literal("--color-background-tertiary"),P.literal("--color-background-inverse"),P.literal("--color-background-ghost"),P.literal("--color-background-info"),P.literal("--color-background-danger"),P.literal("--color-background-success"),P.literal("--color-background-warning"),P.literal("--color-background-disabled"),P.literal("--color-text-primary"),P.literal("--color-text-secondary"),P.literal("--color-text-tertiary"),P.literal("--color-text-inverse"),P.literal("--color-text-ghost"),P.literal("--color-text-info"),P.literal("--color-text-danger"),P.literal("--color-text-success"),P.literal("--color-text-warning"),P.literal("--color-text-disabled"),P.literal("--color-text-ghost"),P.literal("--color-border-primary"),P.literal("--color-border-secondary"),P.literal("--color-border-tertiary"),P.literal("--color-border-inverse"),P.literal("--color-border-ghost"),P.literal("--color-border-info"),P.literal("--color-border-danger"),P.literal("--color-border-success"),P.literal("--color-border-warning"),P.literal("--color-border-disabled"),P.literal("--color-ring-primary"),P.literal("--color-ring-secondary"),P.literal("--color-ring-inverse"),P.literal("--color-ring-info"),P.literal("--color-ring-danger"),P.literal("--color-ring-success"),P.literal("--color-ring-warning"),P.literal("--font-sans"),P.literal("--font-mono"),P.literal("--font-weight-normal"),P.literal("--font-weight-medium"),P.literal("--font-weight-semibold"),P.literal("--font-weight-bold"),P.literal("--font-text-xs-size"),P.literal("--font-text-sm-size"),P.literal("--font-text-md-size"),P.literal("--font-text-lg-size"),P.literal("--font-heading-xs-size"),P.literal("--font-heading-sm-size"),P.literal("--font-heading-md-size"),P.literal("--font-heading-lg-size"),P.literal("--font-heading-xl-size"),P.literal("--font-heading-2xl-size"),P.literal("--font-heading-3xl-size"),P.literal("--font-text-xs-line-height"),P.literal("--font-text-sm-line-height"),P.literal("--font-text-md-line-height"),P.literal("--font-text-lg-line-height"),P.literal("--font-heading-xs-line-height"),P.literal("--font-heading-sm-line-height"),P.literal("--font-heading-md-line-height"),P.literal("--font-heading-lg-line-height"),P.literal("--font-heading-xl-line-height"),P.literal("--font-heading-2xl-line-height"),P.literal("--font-heading-3xl-line-height"),P.literal("--border-radius-xs"),P.literal("--border-radius-sm"),P.literal("--border-radius-md"),P.literal("--border-radius-lg"),P.literal("--border-radius-xl"),P.literal("--border-radius-full"),P.literal("--border-width-regular"),P.literal("--shadow-hairline"),P.literal("--shadow-sm"),P.literal("--shadow-md"),P.literal("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),q9=P.record(B9.describe(`Style variables for theming MCP apps.
|
|
89
|
+
|
|
90
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
91
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
92
|
+
|
|
93
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
94
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),P.union([P.string(),P.undefined()]).describe(`Style variables for theming MCP apps.
|
|
95
|
+
|
|
96
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
97
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
98
|
+
|
|
99
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
100
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.
|
|
101
|
+
|
|
102
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
103
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
104
|
+
|
|
105
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
106
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);P.object({method:P.literal("ui/open-link"),params:P.object({url:P.string().describe("URL to open in the host's browser")})});var W9=P.object({isError:P.boolean().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),V9=P.object({isError:P.boolean().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),K9=P.object({isError:P.boolean().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough();P.object({method:P.literal("ui/notifications/sandbox-proxy-ready"),params:P.object({})});var Aw=P.object({connectDomains:P.array(P.string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
|
|
107
|
+
|
|
108
|
+
- Maps to CSP \`connect-src\` directive
|
|
109
|
+
- Empty or omitted → no network connections (secure default)`),resourceDomains:P.array(P.string()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:P.array(P.string()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:P.array(P.string()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),jw=P.object({camera:P.object({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:P.object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:P.object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:P.object({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")});P.object({method:P.literal("ui/notifications/size-changed"),params:P.object({width:P.number().optional().describe("New width in pixels."),height:P.number().optional().describe("New height in pixels.")})});var H9=P.object({method:P.literal("ui/notifications/tool-input"),params:P.object({arguments:P.record(P.string(),P.unknown().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),G9=P.object({method:P.literal("ui/notifications/tool-input-partial"),params:P.object({arguments:P.record(P.string(),P.unknown().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),J9=P.object({method:P.literal("ui/notifications/tool-cancelled"),params:P.object({reason:P.string().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),Y9=P.object({fonts:P.string().optional()}),X9=P.object({variables:q9.optional().describe("CSS variables for theming the app."),css:Y9.optional().describe("CSS blocks that apps can inject.")}),Q9=P.object({method:P.literal("ui/resource-teardown"),params:P.object({})});P.record(P.string(),P.unknown());var B$=P.object({text:P.object({}).optional().describe("Host supports text content blocks."),image:P.object({}).optional().describe("Host supports image content blocks."),audio:P.object({}).optional().describe("Host supports audio content blocks."),resource:P.object({}).optional().describe("Host supports resource content blocks."),resourceLink:P.object({}).optional().describe("Host supports resource link content blocks."),structuredContent:P.object({}).optional().describe("Host supports structured content.")}),eV=P.object({experimental:P.object({}).optional().describe("Experimental features (structure TBD)."),openLinks:P.object({}).optional().describe("Host supports opening external URLs."),downloadFile:P.object({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:P.object({listChanged:P.boolean().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:P.object({listChanged:P.boolean().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:P.object({}).optional().describe("Host accepts log messages."),sandbox:P.object({permissions:jw.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:Aw.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:B$.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:B$.optional().describe("Host supports receiving content messages (ui/message) from the view.")}),tV=P.object({experimental:P.object({}).optional().describe("Experimental features (structure TBD)."),tools:P.object({listChanged:P.boolean().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:P.array(Ns).optional().describe("Display modes the app supports.")});P.object({method:P.literal("ui/notifications/initialized"),params:P.object({}).optional()});P.object({csp:Aw.optional().describe("Content Security Policy configuration for UI resources."),permissions:jw.optional().describe("Sandbox permissions requested by the UI resource."),domain:P.string().optional().describe(`Dedicated origin for view sandbox.
|
|
110
|
+
|
|
111
|
+
Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
|
|
112
|
+
|
|
113
|
+
**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:
|
|
114
|
+
- Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
|
|
115
|
+
- URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
|
|
116
|
+
|
|
117
|
+
If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:P.boolean().optional().describe(`Visual boundary preference - true if view prefers a visible border.
|
|
118
|
+
|
|
119
|
+
Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.
|
|
120
|
+
|
|
121
|
+
- \`true\`: request visible border + background
|
|
122
|
+
- \`false\`: request no visible border + background
|
|
123
|
+
- omitted: host decides border`)});P.object({method:P.literal("ui/request-display-mode"),params:P.object({mode:Ns.describe("The display mode being requested.")})});var rV=P.object({mode:Ns.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),nV=P.union([P.literal("model"),P.literal("app")]).describe("Tool visibility scope - who can access the tool.");P.object({resourceUri:P.string().optional(),visibility:P.array(nV).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
124
|
+
- "model": Tool visible to and callable by the agent
|
|
125
|
+
- "app": Tool callable by the app from this server only`)});P.object({mimeTypes:P.array(P.string()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});P.object({method:P.literal("ui/download-file"),params:P.object({contents:P.array(P.union([vz,hz])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})});P.object({method:P.literal("ui/message"),params:P.object({role:P.literal("user").describe('Message role, currently only "user" is supported.'),content:P.array(ul).describe("Message content blocks (text, image, etc.).")})});P.object({method:P.literal("ui/notifications/sandbox-resource-ready"),params:P.object({html:P.string().describe("HTML content to load into the inner iframe."),sandbox:P.string().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:Aw.optional().describe("CSP configuration from resource metadata."),permissions:jw.optional().describe("Sandbox permissions from resource metadata.")})});var iV=P.object({method:P.literal("ui/notifications/tool-result"),params:Jf.describe("Standard MCP tool execution result.")}),sD=P.object({toolInfo:P.object({id:tl.optional().describe("JSON-RPC id of the tools/call request."),tool:Nb.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:F9.optional().describe("Current color theme preference."),styles:X9.optional().describe("Style configuration for theming the app."),displayMode:Ns.optional().describe("How the UI is currently displayed."),availableDisplayModes:P.array(Ns).optional().describe("Display modes the host supports."),containerDimensions:P.union([P.object({height:P.number().describe("Fixed container height in pixels.")}),P.object({maxHeight:P.union([P.number(),P.undefined()]).optional().describe("Maximum container height in pixels.")})]).and(P.union([P.object({width:P.number().describe("Fixed container width in pixels.")}),P.object({maxWidth:P.union([P.number(),P.undefined()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
126
|
+
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:P.string().optional().describe("User's language and region preference in BCP 47 format."),timeZone:P.string().optional().describe("User's timezone in IANA format."),userAgent:P.string().optional().describe("Host application identifier."),platform:P.union([P.literal("web"),P.literal("desktop"),P.literal("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:P.object({touch:P.boolean().optional().describe("Whether the device supports touch input."),hover:P.boolean().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:P.object({top:P.number().describe("Top safe area inset in pixels."),right:P.number().describe("Right safe area inset in pixels."),bottom:P.number().describe("Bottom safe area inset in pixels."),left:P.number().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),aV=P.object({method:P.literal("ui/notifications/host-context-changed"),params:sD.describe("Partial context update containing only changed fields.")});P.object({method:P.literal("ui/update-model-context"),params:P.object({content:P.array(ul).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:P.record(P.string(),P.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});P.object({method:P.literal("ui/initialize"),params:P.object({appInfo:Hf.describe("App identification (name and version)."),appCapabilities:tV.describe("Features and capabilities this app provides."),protocolVersion:P.string().describe("Protocol version this app supports.")})});var oV=P.object({protocolVersion:P.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:Hf.describe("Host application identification and version."),hostCapabilities:eV.describe("Features and capabilities provided by the host."),hostContext:sD.describe("Rich context about the host environment.")}).passthrough();function uV(e){let t=document.documentElement;t.setAttribute("data-theme",e),t.style.colorScheme=e}function sV(e,t=document.documentElement){for(let[r,n]of Object.entries(e))n!==void 0&&t.style.setProperty(r,n)}function lV(e){if(document.getElementById("__mcp-host-fonts"))return;let t=document.createElement("style");t.id="__mcp-host-fonts",t.textContent=e,document.head.appendChild(t)}class cV extends sW{constructor(r,n={},i={autoResize:!0}){super(i);Wt(this,"_appInfo");Wt(this,"_capabilities");Wt(this,"options");Wt(this,"_hostCapabilities");Wt(this,"_hostInfo");Wt(this,"_hostContext");Wt(this,"sendOpenLink",this.openLink);this._appInfo=r,this._capabilities=n,this.options=i,this.setRequestHandler(Gf,a=>(console.log("Received ping:",a.params),{})),this.onhostcontextchanged=()=>{}}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}set ontoolinput(r){this.setNotificationHandler(H9,n=>r(n.params))}set ontoolinputpartial(r){this.setNotificationHandler(G9,n=>r(n.params))}set ontoolresult(r){this.setNotificationHandler(iV,n=>r(n.params))}set ontoolcancelled(r){this.setNotificationHandler(J9,n=>r(n.params))}set onhostcontextchanged(r){this.setNotificationHandler(aV,n=>{this._hostContext={...this._hostContext,...n.params},r(n.params)})}set onteardown(r){this.setRequestHandler(Q9,(n,i)=>r(n.params,i))}set oncalltool(r){this.setRequestHandler(yz,(n,i)=>r(n.params,i))}set onlisttools(r){this.setRequestHandler(gz,(n,i)=>r(n.params,i))}assertCapabilityForMethod(r){}assertRequestHandlerCapability(r){switch(r){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${r})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${r} registered`)}}assertNotificationCapability(r){}assertTaskCapability(r){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(r){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(r,n){if(typeof r=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${r}"). Did you mean: callServerTool({ name: "${r}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:r},Jf,n)}sendMessage(r,n){return this.request({method:"ui/message",params:r},K9,n)}sendLog(r){return this.notification({method:"notifications/message",params:r})}updateModelContext(r,n){return this.request({method:"ui/update-model-context",params:r},wb,n)}openLink(r,n){return this.request({method:"ui/open-link",params:r},W9,n)}downloadFile(r,n){return this.request({method:"ui/download-file",params:r},V9,n)}requestDisplayMode(r,n){return this.request({method:"ui/request-display-mode",params:r},rV,n)}sendSizeChanged(r){return this.notification({method:"ui/notifications/size-changed",params:r})}setupSizeChangedNotifications(){let r=!1,n=0,i=0,a=()=>{r||(r=!0,requestAnimationFrame(()=>{r=!1;let l=document.documentElement,d=l.style.width,f=l.style.height;l.style.width="fit-content",l.style.height="fit-content";let p=l.getBoundingClientRect();l.style.width=d,l.style.height=f;let m=window.innerWidth-l.clientWidth,h=Math.ceil(p.width+m),y=Math.ceil(p.height);(h!==n||y!==i)&&(n=h,i=y,this.sendSizeChanged({width:h,height:y}))}))};a();let u=new ResizeObserver(a);return u.observe(document.documentElement),u.observe(document.body),()=>u.disconnect()}async connect(r=new wz(window.parent,window.parent),n){var i;if(this.transport)throw Error("App is already connected. Call close() before connecting again.");await super.connect(r);try{let a=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:cW}},oV,n);if(a===void 0)throw Error(`Server sent invalid initialize result: ${a}`);this._hostCapabilities=a.hostCapabilities,this._hostInfo=a.hostInfo,this._hostContext=a.hostContext,await this.notification({method:"ui/notifications/initialized"}),(i=this.options)!=null&&i.autoResize&&this.setupSizeChangedNotifications()}catch(a){throw this.close(),a}}}function dV({appInfo:e,capabilities:t,onAppCreated:r}){let[n,i]=k.useState(null),[a,u]=k.useState(!1),[l,d]=k.useState(null);return k.useEffect(()=>{let f=!0;async function p(){try{let m=new wz(window.parent,window.parent),h=new cV(e,t);r==null||r(h),await h.connect(m),f&&(i(h),u(!0),d(null))}catch(m){f&&(i(null),u(!1),d(m instanceof Error?m:Error("Failed to connect")))}}return p(),()=>{f=!1}},[]),{app:n,isConnected:a,error:l}}function fV(e,t){let r=k.useRef(!1);k.useEffect(()=>{r.current},[t]),k.useEffect(()=>{e&&(e.onhostcontextchanged=n=>{var i;n.theme&&uV(n.theme),(i=n.styles)!=null&&i.variables&&sV(n.styles.variables)})},[e])}function pV(e,t){let r=k.useRef(!1);k.useEffect(()=>{r.current},[t]),k.useEffect(()=>{e&&(e.onhostcontextchanged=n=>{var i,a;(a=(i=n.styles)==null?void 0:i.css)!=null&&a.fonts&&lV(n.styles.css.fonts)})},[e])}function mV(e,t){fV(e,t),pV(e,t)}var fd={},Sh={exports:{}},Tr={},$h={exports:{}},Ih={};/**
|
|
127
|
+
* @license React
|
|
128
|
+
* scheduler.production.min.js
|
|
129
|
+
*
|
|
130
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the MIT license found in the
|
|
133
|
+
* LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/var q$;function vV(){return q$||(q$=1,(function(e){function t(X,oe){var B=X.length;X.push(oe);e:for(;0<B;){var D=B-1>>>1,G=X[D];if(0<i(G,oe))X[D]=oe,X[B]=G,B=D;else break e}}function r(X){return X.length===0?null:X[0]}function n(X){if(X.length===0)return null;var oe=X[0],B=X.pop();if(B!==oe){X[0]=B;e:for(var D=0,G=X.length,Ie=G>>>1;D<Ie;){var Se=2*(D+1)-1,$e=X[Se],Pe=Se+1,Me=X[Pe];if(0>i($e,B))Pe<G&&0>i(Me,$e)?(X[D]=Me,X[Pe]=B,D=Pe):(X[D]=$e,X[Se]=B,D=Se);else if(Pe<G&&0>i(Me,B))X[D]=Me,X[Pe]=B,D=Pe;else break e}}return oe}function i(X,oe){var B=X.sortIndex-oe.sortIndex;return B!==0?B:X.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,l=u.now();e.unstable_now=function(){return u.now()-l}}var d=[],f=[],p=1,m=null,h=3,y=!1,w=!1,_=!1,x=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(X){for(var oe=r(f);oe!==null;){if(oe.callback===null)n(f);else if(oe.startTime<=X)n(f),oe.sortIndex=oe.expirationTime,t(d,oe);else break;oe=r(f)}}function I(X){if(_=!1,A(X),!w)if(r(d)!==null)w=!0,Te(j);else{var oe=r(f);oe!==null&&ge(I,oe.startTime-X)}}function j(X,oe){w=!1,_&&(_=!1,$(M),M=-1),y=!0;var B=h;try{for(A(oe),m=r(d);m!==null&&(!(m.expirationTime>oe)||X&&!ae());){var D=m.callback;if(typeof D=="function"){m.callback=null,h=m.priorityLevel;var G=D(m.expirationTime<=oe);oe=e.unstable_now(),typeof G=="function"?m.callback=G:m===r(d)&&n(d),A(oe)}else n(d);m=r(d)}if(m!==null)var Ie=!0;else{var Se=r(f);Se!==null&&ge(I,Se.startTime-oe),Ie=!1}return Ie}finally{m=null,h=B,y=!1}}var z=!1,N=null,M=-1,K=5,se=-1;function ae(){return!(e.unstable_now()-se<K)}function W(){if(N!==null){var X=e.unstable_now();se=X;var oe=!0;try{oe=N(!0,X)}finally{oe?_e():(z=!1,N=null)}}else z=!1}var _e;if(typeof E=="function")_e=function(){E(W)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,Ce=xe.port2;xe.port1.onmessage=W,_e=function(){Ce.postMessage(null)}}else _e=function(){x(W,0)};function Te(X){N=X,z||(z=!0,_e())}function ge(X,oe){M=x(function(){X(e.unstable_now())},oe)}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(X){X.callback=null},e.unstable_continueExecution=function(){w||y||(w=!0,Te(j))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(d)},e.unstable_next=function(X){switch(h){case 1:case 2:case 3:var oe=3;break;default:oe=h}var B=h;h=oe;try{return X()}finally{h=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,oe){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var B=h;h=X;try{return oe()}finally{h=B}},e.unstable_scheduleCallback=function(X,oe,B){var D=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?D+B:D):B=D,X){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=B+G,X={id:p++,callback:oe,priorityLevel:X,startTime:B,expirationTime:G,sortIndex:-1},B>D?(X.sortIndex=B,t(f,X),r(d)===null&&X===r(f)&&(_?($(M),M=-1):_=!0,ge(I,B-D))):(X.sortIndex=G,t(d,X),w||y||(w=!0,Te(j))),X},e.unstable_shouldYield=ae,e.unstable_wrapCallback=function(X){var oe=h;return function(){var B=h;h=oe;try{return X.apply(this,arguments)}finally{h=B}}}})(Ih)),Ih}var W$;function hV(){return W$||(W$=1,$h.exports=vV()),$h.exports}/**
|
|
135
|
+
* @license React
|
|
136
|
+
* react-dom.production.min.js
|
|
137
|
+
*
|
|
138
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
139
|
+
*
|
|
140
|
+
* This source code is licensed under the MIT license found in the
|
|
141
|
+
* LICENSE file in the root directory of this source tree.
|
|
142
|
+
*/var V$;function gV(){if(V$)return Tr;V$=1;var e=lu(),t=hV();function r(o){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+o,c=1;c<arguments.length;c++)s+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function a(o,s){u(o,s),u(o+"Capture",s)}function u(o,s){for(i[o]=s,o=0;o<s.length;o++)n.add(s[o])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,p={},m={};function h(o){return d.call(m,o)?!0:d.call(p,o)?!1:f.test(o)?m[o]=!0:(p[o]=!0,!1)}function y(o,s,c,v){if(c!==null&&c.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return v?!1:c!==null?!c.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function w(o,s,c,v){if(s===null||typeof s>"u"||y(o,s,c,v))return!0;if(v)return!1;if(c!==null)switch(c.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function _(o,s,c,v,g,b,S){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=v,this.attributeNamespace=g,this.mustUseProperty=c,this.propertyName=o,this.type=s,this.sanitizeURL=b,this.removeEmptyString=S}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){x[o]=new _(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var s=o[0];x[s]=new _(s,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){x[o]=new _(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){x[o]=new _(o,2,!1,o,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){x[o]=new _(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){x[o]=new _(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){x[o]=new _(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){x[o]=new _(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){x[o]=new _(o,5,!1,o.toLowerCase(),null,!1,!1)});var $=/[\-:]([a-z])/g;function E(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var s=o.replace($,E);x[s]=new _(s,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var s=o.replace($,E);x[s]=new _(s,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var s=o.replace($,E);x[s]=new _(s,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){x[o]=new _(o,1,!1,o.toLowerCase(),null,!1,!1)}),x.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){x[o]=new _(o,1,!1,o.toLowerCase(),null,!0,!0)});function A(o,s,c,v){var g=x.hasOwnProperty(s)?x[s]:null;(g!==null?g.type!==0:v||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(w(s,c,g,v)&&(c=null),v||g===null?h(s)&&(c===null?o.removeAttribute(s):o.setAttribute(s,""+c)):g.mustUseProperty?o[g.propertyName]=c===null?g.type===3?!1:"":c:(s=g.attributeName,v=g.attributeNamespace,c===null?o.removeAttribute(s):(g=g.type,c=g===3||g===4&&c===!0?"":""+c,v?o.setAttributeNS(v,s,c):o.setAttribute(s,c))))}var I=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,j=Symbol.for("react.element"),z=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),se=Symbol.for("react.provider"),ae=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),_e=Symbol.for("react.suspense"),xe=Symbol.for("react.suspense_list"),Ce=Symbol.for("react.memo"),Te=Symbol.for("react.lazy"),ge=Symbol.for("react.offscreen"),X=Symbol.iterator;function oe(o){return o===null||typeof o!="object"?null:(o=X&&o[X]||o["@@iterator"],typeof o=="function"?o:null)}var B=Object.assign,D;function G(o){if(D===void 0)try{throw Error()}catch(c){var s=c.stack.trim().match(/\n( *(at )?)/);D=s&&s[1]||""}return`
|
|
143
|
+
`+D+o}var Ie=!1;function Se(o,s){if(!o||Ie)return"";Ie=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(Z){var v=Z}Reflect.construct(o,[],s)}else{try{s.call()}catch(Z){v=Z}o.call(s.prototype)}else{try{throw Error()}catch(Z){v=Z}o()}}catch(Z){if(Z&&v&&typeof Z.stack=="string"){for(var g=Z.stack.split(`
|
|
144
|
+
`),b=v.stack.split(`
|
|
145
|
+
`),S=g.length-1,O=b.length-1;1<=S&&0<=O&&g[S]!==b[O];)O--;for(;1<=S&&0<=O;S--,O--)if(g[S]!==b[O]){if(S!==1||O!==1)do if(S--,O--,0>O||g[S]!==b[O]){var C=`
|
|
146
|
+
`+g[S].replace(" at new "," at ");return o.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",o.displayName)),C}while(1<=S&&0<=O);break}}}finally{Ie=!1,Error.prepareStackTrace=c}return(o=o?o.displayName||o.name:"")?G(o):""}function $e(o){switch(o.tag){case 5:return G(o.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return o=Se(o.type,!1),o;case 11:return o=Se(o.type.render,!1),o;case 1:return o=Se(o.type,!0),o;default:return""}}function Pe(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case N:return"Fragment";case z:return"Portal";case K:return"Profiler";case M:return"StrictMode";case _e:return"Suspense";case xe:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case ae:return(o.displayName||"Context")+".Consumer";case se:return(o._context.displayName||"Context")+".Provider";case W:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Ce:return s=o.displayName||null,s!==null?s:Pe(o.type)||"Memo";case Te:s=o._payload,o=o._init;try{return Pe(o(s))}catch{}}return null}function Me(o){var s=o.type;switch(o.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=s.render,o=o.displayName||o.name||"",s.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pe(s);case 8:return s===M?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function We(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function F(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Oe(o){var s=F(o)?"checked":"value",c=Object.getOwnPropertyDescriptor(o.constructor.prototype,s),v=""+o[s];if(!o.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var g=c.get,b=c.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return g.call(this)},set:function(S){v=""+S,b.call(this,S)}}),Object.defineProperty(o,s,{enumerable:c.enumerable}),{getValue:function(){return v},setValue:function(S){v=""+S},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function Ue(o){o._valueTracker||(o._valueTracker=Oe(o))}function Q(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var c=s.getValue(),v="";return o&&(v=F(o)?o.checked?"true":"false":o.value),o=v,o!==c?(s.setValue(o),!0):!1}function _t(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function Ke(o,s){var c=s.checked;return B({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??o._wrapperState.initialChecked})}function dr(o,s){var c=s.defaultValue==null?"":s.defaultValue,v=s.checked!=null?s.checked:s.defaultChecked;c=We(s.value!=null?s.value:c),o._wrapperState={initialChecked:v,initialValue:c,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function fr(o,s){s=s.checked,s!=null&&A(o,"checked",s,!1)}function _n(o,s){fr(o,s);var c=We(s.value),v=s.type;if(c!=null)v==="number"?(c===0&&o.value===""||o.value!=c)&&(o.value=""+c):o.value!==""+c&&(o.value=""+c);else if(v==="submit"||v==="reset"){o.removeAttribute("value");return}s.hasOwnProperty("value")?Em(o,s.type,c):s.hasOwnProperty("defaultValue")&&Em(o,s.type,We(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(o.defaultChecked=!!s.defaultChecked)}function Su(o,s,c){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var v=s.type;if(!(v!=="submit"&&v!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+o._wrapperState.initialValue,c||s===o.value||(o.value=s),o.defaultValue=s}c=o.name,c!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,c!==""&&(o.name=c)}function Em(o,s,c){(s!=="number"||_t(o.ownerDocument)!==o)&&(c==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+c&&(o.defaultValue=""+c))}var $u=Array.isArray;function mo(o,s,c,v){if(o=o.options,s){s={};for(var g=0;g<c.length;g++)s["$"+c[g]]=!0;for(c=0;c<o.length;c++)g=s.hasOwnProperty("$"+o[c].value),o[c].selected!==g&&(o[c].selected=g),g&&v&&(o[c].defaultSelected=!0)}else{for(c=""+We(c),s=null,g=0;g<o.length;g++){if(o[g].value===c){o[g].selected=!0,v&&(o[g].defaultSelected=!0);return}s!==null||o[g].disabled||(s=o[g])}s!==null&&(s.selected=!0)}}function zm(o,s){if(s.dangerouslySetInnerHTML!=null)throw Error(r(91));return B({},s,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function dx(o,s){var c=s.value;if(c==null){if(c=s.children,s=s.defaultValue,c!=null){if(s!=null)throw Error(r(92));if($u(c)){if(1<c.length)throw Error(r(93));c=c[0]}s=c}s==null&&(s=""),c=s}o._wrapperState={initialValue:We(c)}}function fx(o,s){var c=We(s.value),v=We(s.defaultValue);c!=null&&(c=""+c,c!==o.value&&(o.value=c),s.defaultValue==null&&o.defaultValue!==c&&(o.defaultValue=c)),v!=null&&(o.defaultValue=""+v)}function px(o){var s=o.textContent;s===o._wrapperState.initialValue&&s!==""&&s!==null&&(o.value=s)}function mx(o){switch(o){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Am(o,s){return o==null||o==="http://www.w3.org/1999/xhtml"?mx(s):o==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var Gl,vx=(function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,c,v,g){MSApp.execUnsafeLocalFunction(function(){return o(s,c,v,g)})}:o})(function(o,s){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=s;else{for(Gl=Gl||document.createElement("div"),Gl.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Gl.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;s.firstChild;)o.appendChild(s.firstChild)}});function Iu(o,s){if(s){var c=o.firstChild;if(c&&c===o.lastChild&&c.nodeType===3){c.nodeValue=s;return}}o.textContent=s}var Pu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},gR=["Webkit","ms","Moz","O"];Object.keys(Pu).forEach(function(o){gR.forEach(function(s){s=s+o.charAt(0).toUpperCase()+o.substring(1),Pu[s]=Pu[o]})});function hx(o,s,c){return s==null||typeof s=="boolean"||s===""?"":c||typeof s!="number"||s===0||Pu.hasOwnProperty(o)&&Pu[o]?(""+s).trim():s+"px"}function gx(o,s){o=o.style;for(var c in s)if(s.hasOwnProperty(c)){var v=c.indexOf("--")===0,g=hx(c,s[c],v);c==="float"&&(c="cssFloat"),v?o.setProperty(c,g):o[c]=g}}var yR=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function jm(o,s){if(s){if(yR[o]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(r(137,o));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(r(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(r(61))}if(s.style!=null&&typeof s.style!="object")throw Error(r(62))}}function Cm(o,s){if(o.indexOf("-")===-1)return typeof s.is=="string";switch(o){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 Tm=null;function Nm(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Dm=null,vo=null,ho=null;function yx(o){if(o=Gu(o)){if(typeof Dm!="function")throw Error(r(280));var s=o.stateNode;s&&(s=yc(s),Dm(o.stateNode,o.type,s))}}function bx(o){vo?ho?ho.push(o):ho=[o]:vo=o}function wx(){if(vo){var o=vo,s=ho;if(ho=vo=null,yx(o),s)for(o=0;o<s.length;o++)yx(s[o])}}function _x(o,s){return o(s)}function xx(){}var Mm=!1;function kx(o,s,c){if(Mm)return o(s,c);Mm=!0;try{return _x(o,s,c)}finally{Mm=!1,(vo!==null||ho!==null)&&(xx(),wx())}}function Ou(o,s){var c=o.stateNode;if(c===null)return null;var v=yc(c);if(v===null)return null;c=v[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":(v=!v.disabled)||(o=o.type,v=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!v;break e;default:o=!1}if(o)return null;if(c&&typeof c!="function")throw Error(r(231,s,typeof c));return c}var Rm=!1;if(l)try{var Eu={};Object.defineProperty(Eu,"passive",{get:function(){Rm=!0}}),window.addEventListener("test",Eu,Eu),window.removeEventListener("test",Eu,Eu)}catch{Rm=!1}function bR(o,s,c,v,g,b,S,O,C){var Z=Array.prototype.slice.call(arguments,3);try{s.apply(c,Z)}catch(Y){this.onError(Y)}}var zu=!1,Jl=null,Yl=!1,Um=null,wR={onError:function(o){zu=!0,Jl=o}};function _R(o,s,c,v,g,b,S,O,C){zu=!1,Jl=null,bR.apply(wR,arguments)}function xR(o,s,c,v,g,b,S,O,C){if(_R.apply(this,arguments),zu){if(zu){var Z=Jl;zu=!1,Jl=null}else throw Error(r(198));Yl||(Yl=!0,Um=Z)}}function ba(o){var s=o,c=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(c=s.return),o=s.return;while(o)}return s.tag===3?c:null}function Sx(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function $x(o){if(ba(o)!==o)throw Error(r(188))}function kR(o){var s=o.alternate;if(!s){if(s=ba(o),s===null)throw Error(r(188));return s!==o?null:o}for(var c=o,v=s;;){var g=c.return;if(g===null)break;var b=g.alternate;if(b===null){if(v=g.return,v!==null){c=v;continue}break}if(g.child===b.child){for(b=g.child;b;){if(b===c)return $x(g),o;if(b===v)return $x(g),s;b=b.sibling}throw Error(r(188))}if(c.return!==v.return)c=g,v=b;else{for(var S=!1,O=g.child;O;){if(O===c){S=!0,c=g,v=b;break}if(O===v){S=!0,v=g,c=b;break}O=O.sibling}if(!S){for(O=b.child;O;){if(O===c){S=!0,c=b,v=g;break}if(O===v){S=!0,v=b,c=g;break}O=O.sibling}if(!S)throw Error(r(189))}}if(c.alternate!==v)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?o:s}function Ix(o){return o=kR(o),o!==null?Px(o):null}function Px(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var s=Px(o);if(s!==null)return s;o=o.sibling}return null}var Ox=t.unstable_scheduleCallback,Ex=t.unstable_cancelCallback,SR=t.unstable_shouldYield,$R=t.unstable_requestPaint,jt=t.unstable_now,IR=t.unstable_getCurrentPriorityLevel,Lm=t.unstable_ImmediatePriority,zx=t.unstable_UserBlockingPriority,Xl=t.unstable_NormalPriority,PR=t.unstable_LowPriority,Ax=t.unstable_IdlePriority,Ql=null,Dn=null;function OR(o){if(Dn&&typeof Dn.onCommitFiberRoot=="function")try{Dn.onCommitFiberRoot(Ql,o,void 0,(o.current.flags&128)===128)}catch{}}var xn=Math.clz32?Math.clz32:AR,ER=Math.log,zR=Math.LN2;function AR(o){return o>>>=0,o===0?32:31-(ER(o)/zR|0)|0}var ec=64,tc=4194304;function Au(o){switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function rc(o,s){var c=o.pendingLanes;if(c===0)return 0;var v=0,g=o.suspendedLanes,b=o.pingedLanes,S=c&268435455;if(S!==0){var O=S&~g;O!==0?v=Au(O):(b&=S,b!==0&&(v=Au(b)))}else S=c&~g,S!==0?v=Au(S):b!==0&&(v=Au(b));if(v===0)return 0;if(s!==0&&s!==v&&(s&g)===0&&(g=v&-v,b=s&-s,g>=b||g===16&&(b&4194240)!==0))return s;if((v&4)!==0&&(v|=c&16),s=o.entangledLanes,s!==0)for(o=o.entanglements,s&=v;0<s;)c=31-xn(s),g=1<<c,v|=o[c],s&=~g;return v}function jR(o,s){switch(o){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function CR(o,s){for(var c=o.suspendedLanes,v=o.pingedLanes,g=o.expirationTimes,b=o.pendingLanes;0<b;){var S=31-xn(b),O=1<<S,C=g[S];C===-1?((O&c)===0||(O&v)!==0)&&(g[S]=jR(O,s)):C<=s&&(o.expiredLanes|=O),b&=~O}}function Zm(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function jx(){var o=ec;return ec<<=1,(ec&4194240)===0&&(ec=64),o}function Fm(o){for(var s=[],c=0;31>c;c++)s.push(o);return s}function ju(o,s,c){o.pendingLanes|=s,s!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,s=31-xn(s),o[s]=c}function TR(o,s){var c=o.pendingLanes&~s;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=s,o.mutableReadLanes&=s,o.entangledLanes&=s,s=o.entanglements;var v=o.eventTimes;for(o=o.expirationTimes;0<c;){var g=31-xn(c),b=1<<g;s[g]=0,v[g]=-1,o[g]=-1,c&=~b}}function Bm(o,s){var c=o.entangledLanes|=s;for(o=o.entanglements;c;){var v=31-xn(c),g=1<<v;g&s|o[v]&s&&(o[v]|=s),c&=~g}}var Qe=0;function Cx(o){return o&=-o,1<o?4<o?(o&268435455)!==0?16:536870912:4:1}var Tx,qm,Nx,Dx,Mx,Wm=!1,nc=[],Ti=null,Ni=null,Di=null,Cu=new Map,Tu=new Map,Mi=[],NR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rx(o,s){switch(o){case"focusin":case"focusout":Ti=null;break;case"dragenter":case"dragleave":Ni=null;break;case"mouseover":case"mouseout":Di=null;break;case"pointerover":case"pointerout":Cu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tu.delete(s.pointerId)}}function Nu(o,s,c,v,g,b){return o===null||o.nativeEvent!==b?(o={blockedOn:s,domEventName:c,eventSystemFlags:v,nativeEvent:b,targetContainers:[g]},s!==null&&(s=Gu(s),s!==null&&qm(s)),o):(o.eventSystemFlags|=v,s=o.targetContainers,g!==null&&s.indexOf(g)===-1&&s.push(g),o)}function DR(o,s,c,v,g){switch(s){case"focusin":return Ti=Nu(Ti,o,s,c,v,g),!0;case"dragenter":return Ni=Nu(Ni,o,s,c,v,g),!0;case"mouseover":return Di=Nu(Di,o,s,c,v,g),!0;case"pointerover":var b=g.pointerId;return Cu.set(b,Nu(Cu.get(b)||null,o,s,c,v,g)),!0;case"gotpointercapture":return b=g.pointerId,Tu.set(b,Nu(Tu.get(b)||null,o,s,c,v,g)),!0}return!1}function Ux(o){var s=wa(o.target);if(s!==null){var c=ba(s);if(c!==null){if(s=c.tag,s===13){if(s=Sx(c),s!==null){o.blockedOn=s,Mx(o.priority,function(){Nx(c)});return}}else if(s===3&&c.stateNode.current.memoizedState.isDehydrated){o.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}o.blockedOn=null}function ic(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var c=Km(o.domEventName,o.eventSystemFlags,s[0],o.nativeEvent);if(c===null){c=o.nativeEvent;var v=new c.constructor(c.type,c);Tm=v,c.target.dispatchEvent(v),Tm=null}else return s=Gu(c),s!==null&&qm(s),o.blockedOn=c,!1;s.shift()}return!0}function Lx(o,s,c){ic(o)&&c.delete(s)}function MR(){Wm=!1,Ti!==null&&ic(Ti)&&(Ti=null),Ni!==null&&ic(Ni)&&(Ni=null),Di!==null&&ic(Di)&&(Di=null),Cu.forEach(Lx),Tu.forEach(Lx)}function Du(o,s){o.blockedOn===s&&(o.blockedOn=null,Wm||(Wm=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,MR)))}function Mu(o){function s(g){return Du(g,o)}if(0<nc.length){Du(nc[0],o);for(var c=1;c<nc.length;c++){var v=nc[c];v.blockedOn===o&&(v.blockedOn=null)}}for(Ti!==null&&Du(Ti,o),Ni!==null&&Du(Ni,o),Di!==null&&Du(Di,o),Cu.forEach(s),Tu.forEach(s),c=0;c<Mi.length;c++)v=Mi[c],v.blockedOn===o&&(v.blockedOn=null);for(;0<Mi.length&&(c=Mi[0],c.blockedOn===null);)Ux(c),c.blockedOn===null&&Mi.shift()}var go=I.ReactCurrentBatchConfig,ac=!0;function RR(o,s,c,v){var g=Qe,b=go.transition;go.transition=null;try{Qe=1,Vm(o,s,c,v)}finally{Qe=g,go.transition=b}}function UR(o,s,c,v){var g=Qe,b=go.transition;go.transition=null;try{Qe=4,Vm(o,s,c,v)}finally{Qe=g,go.transition=b}}function Vm(o,s,c,v){if(ac){var g=Km(o,s,c,v);if(g===null)cv(o,s,v,oc,c),Rx(o,v);else if(DR(g,o,s,c,v))v.stopPropagation();else if(Rx(o,v),s&4&&-1<NR.indexOf(o)){for(;g!==null;){var b=Gu(g);if(b!==null&&Tx(b),b=Km(o,s,c,v),b===null&&cv(o,s,v,oc,c),b===g)break;g=b}g!==null&&v.stopPropagation()}else cv(o,s,v,null,c)}}var oc=null;function Km(o,s,c,v){if(oc=null,o=Nm(v),o=wa(o),o!==null)if(s=ba(o),s===null)o=null;else if(c=s.tag,c===13){if(o=Sx(s),o!==null)return o;o=null}else if(c===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null);return oc=o,null}function Zx(o){switch(o){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(IR()){case Lm:return 1;case zx:return 4;case Xl:case PR:return 16;case Ax:return 536870912;default:return 16}default:return 16}}var Ri=null,Hm=null,uc=null;function Fx(){if(uc)return uc;var o,s=Hm,c=s.length,v,g="value"in Ri?Ri.value:Ri.textContent,b=g.length;for(o=0;o<c&&s[o]===g[o];o++);var S=c-o;for(v=1;v<=S&&s[c-v]===g[b-v];v++);return uc=g.slice(o,1<v?1-v:void 0)}function sc(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function lc(){return!0}function Bx(){return!1}function Fr(o){function s(c,v,g,b,S){this._reactName=c,this._targetInst=g,this.type=v,this.nativeEvent=b,this.target=S,this.currentTarget=null;for(var O in o)o.hasOwnProperty(O)&&(c=o[O],this[O]=c?c(b):b[O]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?lc:Bx,this.isPropagationStopped=Bx,this}return B(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=lc)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=lc)},persist:function(){},isPersistent:lc}),s}var yo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gm=Fr(yo),Ru=B({},yo,{view:0,detail:0}),LR=Fr(Ru),Jm,Ym,Uu,cc=B({},Ru,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qm,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Uu&&(Uu&&o.type==="mousemove"?(Jm=o.screenX-Uu.screenX,Ym=o.screenY-Uu.screenY):Ym=Jm=0,Uu=o),Jm)},movementY:function(o){return"movementY"in o?o.movementY:Ym}}),qx=Fr(cc),ZR=B({},cc,{dataTransfer:0}),FR=Fr(ZR),BR=B({},Ru,{relatedTarget:0}),Xm=Fr(BR),qR=B({},yo,{animationName:0,elapsedTime:0,pseudoElement:0}),WR=Fr(qR),VR=B({},yo,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),KR=Fr(VR),HR=B({},yo,{data:0}),Wx=Fr(HR),GR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JR={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"},YR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function XR(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=YR[o])?!!s[o]:!1}function Qm(){return XR}var QR=B({},Ru,{key:function(o){if(o.key){var s=GR[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=sc(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?JR[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qm,charCode:function(o){return o.type==="keypress"?sc(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?sc(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),eU=Fr(QR),tU=B({},cc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vx=Fr(tU),rU=B({},Ru,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qm}),nU=Fr(rU),iU=B({},yo,{propertyName:0,elapsedTime:0,pseudoElement:0}),aU=Fr(iU),oU=B({},cc,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),uU=Fr(oU),sU=[9,13,27,32],ev=l&&"CompositionEvent"in window,Lu=null;l&&"documentMode"in document&&(Lu=document.documentMode);var lU=l&&"TextEvent"in window&&!Lu,Kx=l&&(!ev||Lu&&8<Lu&&11>=Lu),Hx=" ",Gx=!1;function Jx(o,s){switch(o){case"keyup":return sU.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yx(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var bo=!1;function cU(o,s){switch(o){case"compositionend":return Yx(s);case"keypress":return s.which!==32?null:(Gx=!0,Hx);case"textInput":return o=s.data,o===Hx&&Gx?null:o;default:return null}}function dU(o,s){if(bo)return o==="compositionend"||!ev&&Jx(o,s)?(o=Fx(),uc=Hm=Ri=null,bo=!1,o):null;switch(o){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 Kx&&s.locale!=="ko"?null:s.data;default:return null}}var fU={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 Xx(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!fU[o.type]:s==="textarea"}function Qx(o,s,c,v){bx(v),s=vc(s,"onChange"),0<s.length&&(c=new Gm("onChange","change",null,c,v),o.push({event:c,listeners:s}))}var Zu=null,Fu=null;function pU(o){gk(o,0)}function dc(o){var s=So(o);if(Q(s))return o}function mU(o,s){if(o==="change")return s}var ek=!1;if(l){var tv;if(l){var rv="oninput"in document;if(!rv){var tk=document.createElement("div");tk.setAttribute("oninput","return;"),rv=typeof tk.oninput=="function"}tv=rv}else tv=!1;ek=tv&&(!document.documentMode||9<document.documentMode)}function rk(){Zu&&(Zu.detachEvent("onpropertychange",nk),Fu=Zu=null)}function nk(o){if(o.propertyName==="value"&&dc(Fu)){var s=[];Qx(s,Fu,o,Nm(o)),kx(pU,s)}}function vU(o,s,c){o==="focusin"?(rk(),Zu=s,Fu=c,Zu.attachEvent("onpropertychange",nk)):o==="focusout"&&rk()}function hU(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return dc(Fu)}function gU(o,s){if(o==="click")return dc(s)}function yU(o,s){if(o==="input"||o==="change")return dc(s)}function bU(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var kn=typeof Object.is=="function"?Object.is:bU;function Bu(o,s){if(kn(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var c=Object.keys(o),v=Object.keys(s);if(c.length!==v.length)return!1;for(v=0;v<c.length;v++){var g=c[v];if(!d.call(s,g)||!kn(o[g],s[g]))return!1}return!0}function ik(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function ak(o,s){var c=ik(o);o=0;for(var v;c;){if(c.nodeType===3){if(v=o+c.textContent.length,o<=s&&v>=s)return{node:c,offset:s-o};o=v}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=ik(c)}}function ok(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?ok(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function uk(){for(var o=window,s=_t();s instanceof o.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)o=s.contentWindow;else break;s=_t(o.document)}return s}function nv(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}function wU(o){var s=uk(),c=o.focusedElem,v=o.selectionRange;if(s!==c&&c&&c.ownerDocument&&ok(c.ownerDocument.documentElement,c)){if(v!==null&&nv(c)){if(s=v.start,o=v.end,o===void 0&&(o=s),"selectionStart"in c)c.selectionStart=s,c.selectionEnd=Math.min(o,c.value.length);else if(o=(s=c.ownerDocument||document)&&s.defaultView||window,o.getSelection){o=o.getSelection();var g=c.textContent.length,b=Math.min(v.start,g);v=v.end===void 0?b:Math.min(v.end,g),!o.extend&&b>v&&(g=v,v=b,b=g),g=ak(c,b);var S=ak(c,v);g&&S&&(o.rangeCount!==1||o.anchorNode!==g.node||o.anchorOffset!==g.offset||o.focusNode!==S.node||o.focusOffset!==S.offset)&&(s=s.createRange(),s.setStart(g.node,g.offset),o.removeAllRanges(),b>v?(o.addRange(s),o.extend(S.node,S.offset)):(s.setEnd(S.node,S.offset),o.addRange(s)))}}for(s=[],o=c;o=o.parentNode;)o.nodeType===1&&s.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<s.length;c++)o=s[c],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var _U=l&&"documentMode"in document&&11>=document.documentMode,wo=null,iv=null,qu=null,av=!1;function sk(o,s,c){var v=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;av||wo==null||wo!==_t(v)||(v=wo,"selectionStart"in v&&nv(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),qu&&Bu(qu,v)||(qu=v,v=vc(iv,"onSelect"),0<v.length&&(s=new Gm("onSelect","select",null,s,c),o.push({event:s,listeners:v}),s.target=wo)))}function fc(o,s){var c={};return c[o.toLowerCase()]=s.toLowerCase(),c["Webkit"+o]="webkit"+s,c["Moz"+o]="moz"+s,c}var _o={animationend:fc("Animation","AnimationEnd"),animationiteration:fc("Animation","AnimationIteration"),animationstart:fc("Animation","AnimationStart"),transitionend:fc("Transition","TransitionEnd")},ov={},lk={};l&&(lk=document.createElement("div").style,"AnimationEvent"in window||(delete _o.animationend.animation,delete _o.animationiteration.animation,delete _o.animationstart.animation),"TransitionEvent"in window||delete _o.transitionend.transition);function pc(o){if(ov[o])return ov[o];if(!_o[o])return o;var s=_o[o],c;for(c in s)if(s.hasOwnProperty(c)&&c in lk)return ov[o]=s[c];return o}var ck=pc("animationend"),dk=pc("animationiteration"),fk=pc("animationstart"),pk=pc("transitionend"),mk=new Map,vk="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ui(o,s){mk.set(o,s),a(s,[o])}for(var uv=0;uv<vk.length;uv++){var sv=vk[uv],xU=sv.toLowerCase(),kU=sv[0].toUpperCase()+sv.slice(1);Ui(xU,"on"+kU)}Ui(ck,"onAnimationEnd"),Ui(dk,"onAnimationIteration"),Ui(fk,"onAnimationStart"),Ui("dblclick","onDoubleClick"),Ui("focusin","onFocus"),Ui("focusout","onBlur"),Ui(pk,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wu="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(" "),SU=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wu));function hk(o,s,c){var v=o.type||"unknown-event";o.currentTarget=c,xR(v,s,void 0,o),o.currentTarget=null}function gk(o,s){s=(s&4)!==0;for(var c=0;c<o.length;c++){var v=o[c],g=v.event;v=v.listeners;e:{var b=void 0;if(s)for(var S=v.length-1;0<=S;S--){var O=v[S],C=O.instance,Z=O.currentTarget;if(O=O.listener,C!==b&&g.isPropagationStopped())break e;hk(g,O,Z),b=C}else for(S=0;S<v.length;S++){if(O=v[S],C=O.instance,Z=O.currentTarget,O=O.listener,C!==b&&g.isPropagationStopped())break e;hk(g,O,Z),b=C}}}if(Yl)throw o=Um,Yl=!1,Um=null,o}function lt(o,s){var c=s[hv];c===void 0&&(c=s[hv]=new Set);var v=o+"__bubble";c.has(v)||(yk(s,o,2,!1),c.add(v))}function lv(o,s,c){var v=0;s&&(v|=4),yk(c,o,v,s)}var mc="_reactListening"+Math.random().toString(36).slice(2);function Vu(o){if(!o[mc]){o[mc]=!0,n.forEach(function(c){c!=="selectionchange"&&(SU.has(c)||lv(c,!1,o),lv(c,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[mc]||(s[mc]=!0,lv("selectionchange",!1,s))}}function yk(o,s,c,v){switch(Zx(s)){case 1:var g=RR;break;case 4:g=UR;break;default:g=Vm}c=g.bind(null,s,c,o),g=void 0,!Rm||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(g=!0),v?g!==void 0?o.addEventListener(s,c,{capture:!0,passive:g}):o.addEventListener(s,c,!0):g!==void 0?o.addEventListener(s,c,{passive:g}):o.addEventListener(s,c,!1)}function cv(o,s,c,v,g){var b=v;if((s&1)===0&&(s&2)===0&&v!==null)e:for(;;){if(v===null)return;var S=v.tag;if(S===3||S===4){var O=v.stateNode.containerInfo;if(O===g||O.nodeType===8&&O.parentNode===g)break;if(S===4)for(S=v.return;S!==null;){var C=S.tag;if((C===3||C===4)&&(C=S.stateNode.containerInfo,C===g||C.nodeType===8&&C.parentNode===g))return;S=S.return}for(;O!==null;){if(S=wa(O),S===null)return;if(C=S.tag,C===5||C===6){v=b=S;continue e}O=O.parentNode}}v=v.return}kx(function(){var Z=b,Y=Nm(c),te=[];e:{var J=mk.get(o);if(J!==void 0){var le=Gm,pe=o;switch(o){case"keypress":if(sc(c)===0)break e;case"keydown":case"keyup":le=eU;break;case"focusin":pe="focus",le=Xm;break;case"focusout":pe="blur",le=Xm;break;case"beforeblur":case"afterblur":le=Xm;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=qx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=FR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=nU;break;case ck:case dk:case fk:le=WR;break;case pk:le=aU;break;case"scroll":le=LR;break;case"wheel":le=uU;break;case"copy":case"cut":case"paste":le=KR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=Vx}var he=(s&4)!==0,Ct=!he&&o==="scroll",U=he?J!==null?J+"Capture":null:J;he=[];for(var T=Z,L;T!==null;){L=T;var ie=L.stateNode;if(L.tag===5&&ie!==null&&(L=ie,U!==null&&(ie=Ou(T,U),ie!=null&&he.push(Ku(T,ie,L)))),Ct)break;T=T.return}0<he.length&&(J=new le(J,pe,null,c,Y),te.push({event:J,listeners:he}))}}if((s&7)===0){e:{if(J=o==="mouseover"||o==="pointerover",le=o==="mouseout"||o==="pointerout",J&&c!==Tm&&(pe=c.relatedTarget||c.fromElement)&&(wa(pe)||pe[ti]))break e;if((le||J)&&(J=Y.window===Y?Y:(J=Y.ownerDocument)?J.defaultView||J.parentWindow:window,le?(pe=c.relatedTarget||c.toElement,le=Z,pe=pe?wa(pe):null,pe!==null&&(Ct=ba(pe),pe!==Ct||pe.tag!==5&&pe.tag!==6)&&(pe=null)):(le=null,pe=Z),le!==pe)){if(he=qx,ie="onMouseLeave",U="onMouseEnter",T="mouse",(o==="pointerout"||o==="pointerover")&&(he=Vx,ie="onPointerLeave",U="onPointerEnter",T="pointer"),Ct=le==null?J:So(le),L=pe==null?J:So(pe),J=new he(ie,T+"leave",le,c,Y),J.target=Ct,J.relatedTarget=L,ie=null,wa(Y)===Z&&(he=new he(U,T+"enter",pe,c,Y),he.target=L,he.relatedTarget=Ct,ie=he),Ct=ie,le&&pe)t:{for(he=le,U=pe,T=0,L=he;L;L=xo(L))T++;for(L=0,ie=U;ie;ie=xo(ie))L++;for(;0<T-L;)he=xo(he),T--;for(;0<L-T;)U=xo(U),L--;for(;T--;){if(he===U||U!==null&&he===U.alternate)break t;he=xo(he),U=xo(U)}he=null}else he=null;le!==null&&bk(te,J,le,he,!1),pe!==null&&Ct!==null&&bk(te,Ct,pe,he,!0)}}e:{if(J=Z?So(Z):window,le=J.nodeName&&J.nodeName.toLowerCase(),le==="select"||le==="input"&&J.type==="file")var ye=mU;else if(Xx(J))if(ek)ye=yU;else{ye=hU;var Ee=vU}else(le=J.nodeName)&&le.toLowerCase()==="input"&&(J.type==="checkbox"||J.type==="radio")&&(ye=gU);if(ye&&(ye=ye(o,Z))){Qx(te,ye,c,Y);break e}Ee&&Ee(o,J,Z),o==="focusout"&&(Ee=J._wrapperState)&&Ee.controlled&&J.type==="number"&&Em(J,"number",J.value)}switch(Ee=Z?So(Z):window,o){case"focusin":(Xx(Ee)||Ee.contentEditable==="true")&&(wo=Ee,iv=Z,qu=null);break;case"focusout":qu=iv=wo=null;break;case"mousedown":av=!0;break;case"contextmenu":case"mouseup":case"dragend":av=!1,sk(te,c,Y);break;case"selectionchange":if(_U)break;case"keydown":case"keyup":sk(te,c,Y)}var ze;if(ev)e:{switch(o){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else bo?Jx(o,c)&&(De="onCompositionEnd"):o==="keydown"&&c.keyCode===229&&(De="onCompositionStart");De&&(Kx&&c.locale!=="ko"&&(bo||De!=="onCompositionStart"?De==="onCompositionEnd"&&bo&&(ze=Fx()):(Ri=Y,Hm="value"in Ri?Ri.value:Ri.textContent,bo=!0)),Ee=vc(Z,De),0<Ee.length&&(De=new Wx(De,o,null,c,Y),te.push({event:De,listeners:Ee}),ze?De.data=ze:(ze=Yx(c),ze!==null&&(De.data=ze)))),(ze=lU?cU(o,c):dU(o,c))&&(Z=vc(Z,"onBeforeInput"),0<Z.length&&(Y=new Wx("onBeforeInput","beforeinput",null,c,Y),te.push({event:Y,listeners:Z}),Y.data=ze))}gk(te,s)})}function Ku(o,s,c){return{instance:o,listener:s,currentTarget:c}}function vc(o,s){for(var c=s+"Capture",v=[];o!==null;){var g=o,b=g.stateNode;g.tag===5&&b!==null&&(g=b,b=Ou(o,c),b!=null&&v.unshift(Ku(o,b,g)),b=Ou(o,s),b!=null&&v.push(Ku(o,b,g))),o=o.return}return v}function xo(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function bk(o,s,c,v,g){for(var b=s._reactName,S=[];c!==null&&c!==v;){var O=c,C=O.alternate,Z=O.stateNode;if(C!==null&&C===v)break;O.tag===5&&Z!==null&&(O=Z,g?(C=Ou(c,b),C!=null&&S.unshift(Ku(c,C,O))):g||(C=Ou(c,b),C!=null&&S.push(Ku(c,C,O)))),c=c.return}S.length!==0&&o.push({event:s,listeners:S})}var $U=/\r\n?/g,IU=/\u0000|\uFFFD/g;function wk(o){return(typeof o=="string"?o:""+o).replace($U,`
|
|
147
|
+
`).replace(IU,"")}function hc(o,s,c){if(s=wk(s),wk(o)!==s&&c)throw Error(r(425))}function gc(){}var dv=null,fv=null;function pv(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var mv=typeof setTimeout=="function"?setTimeout:void 0,PU=typeof clearTimeout=="function"?clearTimeout:void 0,_k=typeof Promise=="function"?Promise:void 0,OU=typeof queueMicrotask=="function"?queueMicrotask:typeof _k<"u"?function(o){return _k.resolve(null).then(o).catch(EU)}:mv;function EU(o){setTimeout(function(){throw o})}function vv(o,s){var c=s,v=0;do{var g=c.nextSibling;if(o.removeChild(c),g&&g.nodeType===8)if(c=g.data,c==="/$"){if(v===0){o.removeChild(g),Mu(s);return}v--}else c!=="$"&&c!=="$?"&&c!=="$!"||v++;c=g}while(c);Mu(s)}function Li(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return o}function xk(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var c=o.data;if(c==="$"||c==="$!"||c==="$?"){if(s===0)return o;s--}else c==="/$"&&s++}o=o.previousSibling}return null}var ko=Math.random().toString(36).slice(2),Mn="__reactFiber$"+ko,Hu="__reactProps$"+ko,ti="__reactContainer$"+ko,hv="__reactEvents$"+ko,zU="__reactListeners$"+ko,AU="__reactHandles$"+ko;function wa(o){var s=o[Mn];if(s)return s;for(var c=o.parentNode;c;){if(s=c[ti]||c[Mn]){if(c=s.alternate,s.child!==null||c!==null&&c.child!==null)for(o=xk(o);o!==null;){if(c=o[Mn])return c;o=xk(o)}return s}o=c,c=o.parentNode}return null}function Gu(o){return o=o[Mn]||o[ti],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function So(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(r(33))}function yc(o){return o[Hu]||null}var gv=[],$o=-1;function Zi(o){return{current:o}}function ct(o){0>$o||(o.current=gv[$o],gv[$o]=null,$o--)}function st(o,s){$o++,gv[$o]=o.current,o.current=s}var Fi={},pr=Zi(Fi),Er=Zi(!1),_a=Fi;function Io(o,s){var c=o.type.contextTypes;if(!c)return Fi;var v=o.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===s)return v.__reactInternalMemoizedMaskedChildContext;var g={},b;for(b in c)g[b]=s[b];return v&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=s,o.__reactInternalMemoizedMaskedChildContext=g),g}function zr(o){return o=o.childContextTypes,o!=null}function bc(){ct(Er),ct(pr)}function kk(o,s,c){if(pr.current!==Fi)throw Error(r(168));st(pr,s),st(Er,c)}function Sk(o,s,c){var v=o.stateNode;if(s=s.childContextTypes,typeof v.getChildContext!="function")return c;v=v.getChildContext();for(var g in v)if(!(g in s))throw Error(r(108,Me(o)||"Unknown",g));return B({},c,v)}function wc(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Fi,_a=pr.current,st(pr,o),st(Er,Er.current),!0}function $k(o,s,c){var v=o.stateNode;if(!v)throw Error(r(169));c?(o=Sk(o,s,_a),v.__reactInternalMemoizedMergedChildContext=o,ct(Er),ct(pr),st(pr,o)):ct(Er),st(Er,c)}var ri=null,_c=!1,yv=!1;function Ik(o){ri===null?ri=[o]:ri.push(o)}function jU(o){_c=!0,Ik(o)}function Bi(){if(!yv&&ri!==null){yv=!0;var o=0,s=Qe;try{var c=ri;for(Qe=1;o<c.length;o++){var v=c[o];do v=v(!0);while(v!==null)}ri=null,_c=!1}catch(g){throw ri!==null&&(ri=ri.slice(o+1)),Ox(Lm,Bi),g}finally{Qe=s,yv=!1}}return null}var Po=[],Oo=0,xc=null,kc=0,tn=[],rn=0,xa=null,ni=1,ii="";function ka(o,s){Po[Oo++]=kc,Po[Oo++]=xc,xc=o,kc=s}function Pk(o,s,c){tn[rn++]=ni,tn[rn++]=ii,tn[rn++]=xa,xa=o;var v=ni;o=ii;var g=32-xn(v)-1;v&=~(1<<g),c+=1;var b=32-xn(s)+g;if(30<b){var S=g-g%5;b=(v&(1<<S)-1).toString(32),v>>=S,g-=S,ni=1<<32-xn(s)+g|c<<g|v,ii=b+o}else ni=1<<b|c<<g|v,ii=o}function bv(o){o.return!==null&&(ka(o,1),Pk(o,1,0))}function wv(o){for(;o===xc;)xc=Po[--Oo],Po[Oo]=null,kc=Po[--Oo],Po[Oo]=null;for(;o===xa;)xa=tn[--rn],tn[rn]=null,ii=tn[--rn],tn[rn]=null,ni=tn[--rn],tn[rn]=null}var Br=null,qr=null,vt=!1,Sn=null;function Ok(o,s){var c=un(5,null,null,0);c.elementType="DELETED",c.stateNode=s,c.return=o,s=o.deletions,s===null?(o.deletions=[c],o.flags|=16):s.push(c)}function Ek(o,s){switch(o.tag){case 5:var c=o.type;return s=s.nodeType!==1||c.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(o.stateNode=s,Br=o,qr=Li(s.firstChild),!0):!1;case 6:return s=o.pendingProps===""||s.nodeType!==3?null:s,s!==null?(o.stateNode=s,Br=o,qr=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(c=xa!==null?{id:ni,overflow:ii}:null,o.memoizedState={dehydrated:s,treeContext:c,retryLane:1073741824},c=un(18,null,null,0),c.stateNode=s,c.return=o,o.child=c,Br=o,qr=null,!0):!1;default:return!1}}function _v(o){return(o.mode&1)!==0&&(o.flags&128)===0}function xv(o){if(vt){var s=qr;if(s){var c=s;if(!Ek(o,s)){if(_v(o))throw Error(r(418));s=Li(c.nextSibling);var v=Br;s&&Ek(o,s)?Ok(v,c):(o.flags=o.flags&-4097|2,vt=!1,Br=o)}}else{if(_v(o))throw Error(r(418));o.flags=o.flags&-4097|2,vt=!1,Br=o}}}function zk(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;Br=o}function Sc(o){if(o!==Br)return!1;if(!vt)return zk(o),vt=!0,!1;var s;if((s=o.tag!==3)&&!(s=o.tag!==5)&&(s=o.type,s=s!=="head"&&s!=="body"&&!pv(o.type,o.memoizedProps)),s&&(s=qr)){if(_v(o))throw Ak(),Error(r(418));for(;s;)Ok(o,s),s=Li(s.nextSibling)}if(zk(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));e:{for(o=o.nextSibling,s=0;o;){if(o.nodeType===8){var c=o.data;if(c==="/$"){if(s===0){qr=Li(o.nextSibling);break e}s--}else c!=="$"&&c!=="$!"&&c!=="$?"||s++}o=o.nextSibling}qr=null}}else qr=Br?Li(o.stateNode.nextSibling):null;return!0}function Ak(){for(var o=qr;o;)o=Li(o.nextSibling)}function Eo(){qr=Br=null,vt=!1}function kv(o){Sn===null?Sn=[o]:Sn.push(o)}var CU=I.ReactCurrentBatchConfig;function Ju(o,s,c){if(o=c.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(c._owner){if(c=c._owner,c){if(c.tag!==1)throw Error(r(309));var v=c.stateNode}if(!v)throw Error(r(147,o));var g=v,b=""+o;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===b?s.ref:(s=function(S){var O=g.refs;S===null?delete O[b]:O[b]=S},s._stringRef=b,s)}if(typeof o!="string")throw Error(r(284));if(!c._owner)throw Error(r(290,o))}return o}function $c(o,s){throw o=Object.prototype.toString.call(s),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o))}function jk(o){var s=o._init;return s(o._payload)}function Ck(o){function s(U,T){if(o){var L=U.deletions;L===null?(U.deletions=[T],U.flags|=16):L.push(T)}}function c(U,T){if(!o)return null;for(;T!==null;)s(U,T),T=T.sibling;return null}function v(U,T){for(U=new Map;T!==null;)T.key!==null?U.set(T.key,T):U.set(T.index,T),T=T.sibling;return U}function g(U,T){return U=Yi(U,T),U.index=0,U.sibling=null,U}function b(U,T,L){return U.index=L,o?(L=U.alternate,L!==null?(L=L.index,L<T?(U.flags|=2,T):L):(U.flags|=2,T)):(U.flags|=1048576,T)}function S(U){return o&&U.alternate===null&&(U.flags|=2),U}function O(U,T,L,ie){return T===null||T.tag!==6?(T=mh(L,U.mode,ie),T.return=U,T):(T=g(T,L),T.return=U,T)}function C(U,T,L,ie){var ye=L.type;return ye===N?Y(U,T,L.props.children,ie,L.key):T!==null&&(T.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===Te&&jk(ye)===T.type)?(ie=g(T,L.props),ie.ref=Ju(U,T,L),ie.return=U,ie):(ie=Gc(L.type,L.key,L.props,null,U.mode,ie),ie.ref=Ju(U,T,L),ie.return=U,ie)}function Z(U,T,L,ie){return T===null||T.tag!==4||T.stateNode.containerInfo!==L.containerInfo||T.stateNode.implementation!==L.implementation?(T=vh(L,U.mode,ie),T.return=U,T):(T=g(T,L.children||[]),T.return=U,T)}function Y(U,T,L,ie,ye){return T===null||T.tag!==7?(T=Aa(L,U.mode,ie,ye),T.return=U,T):(T=g(T,L),T.return=U,T)}function te(U,T,L){if(typeof T=="string"&&T!==""||typeof T=="number")return T=mh(""+T,U.mode,L),T.return=U,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case j:return L=Gc(T.type,T.key,T.props,null,U.mode,L),L.ref=Ju(U,null,T),L.return=U,L;case z:return T=vh(T,U.mode,L),T.return=U,T;case Te:var ie=T._init;return te(U,ie(T._payload),L)}if($u(T)||oe(T))return T=Aa(T,U.mode,L,null),T.return=U,T;$c(U,T)}return null}function J(U,T,L,ie){var ye=T!==null?T.key:null;if(typeof L=="string"&&L!==""||typeof L=="number")return ye!==null?null:O(U,T,""+L,ie);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case j:return L.key===ye?C(U,T,L,ie):null;case z:return L.key===ye?Z(U,T,L,ie):null;case Te:return ye=L._init,J(U,T,ye(L._payload),ie)}if($u(L)||oe(L))return ye!==null?null:Y(U,T,L,ie,null);$c(U,L)}return null}function le(U,T,L,ie,ye){if(typeof ie=="string"&&ie!==""||typeof ie=="number")return U=U.get(L)||null,O(T,U,""+ie,ye);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case j:return U=U.get(ie.key===null?L:ie.key)||null,C(T,U,ie,ye);case z:return U=U.get(ie.key===null?L:ie.key)||null,Z(T,U,ie,ye);case Te:var Ee=ie._init;return le(U,T,L,Ee(ie._payload),ye)}if($u(ie)||oe(ie))return U=U.get(L)||null,Y(T,U,ie,ye,null);$c(T,ie)}return null}function pe(U,T,L,ie){for(var ye=null,Ee=null,ze=T,De=T=0,qt=null;ze!==null&&De<L.length;De++){ze.index>De?(qt=ze,ze=null):qt=ze.sibling;var Ye=J(U,ze,L[De],ie);if(Ye===null){ze===null&&(ze=qt);break}o&&ze&&Ye.alternate===null&&s(U,ze),T=b(Ye,T,De),Ee===null?ye=Ye:Ee.sibling=Ye,Ee=Ye,ze=qt}if(De===L.length)return c(U,ze),vt&&ka(U,De),ye;if(ze===null){for(;De<L.length;De++)ze=te(U,L[De],ie),ze!==null&&(T=b(ze,T,De),Ee===null?ye=ze:Ee.sibling=ze,Ee=ze);return vt&&ka(U,De),ye}for(ze=v(U,ze);De<L.length;De++)qt=le(ze,U,De,L[De],ie),qt!==null&&(o&&qt.alternate!==null&&ze.delete(qt.key===null?De:qt.key),T=b(qt,T,De),Ee===null?ye=qt:Ee.sibling=qt,Ee=qt);return o&&ze.forEach(function(Xi){return s(U,Xi)}),vt&&ka(U,De),ye}function he(U,T,L,ie){var ye=oe(L);if(typeof ye!="function")throw Error(r(150));if(L=ye.call(L),L==null)throw Error(r(151));for(var Ee=ye=null,ze=T,De=T=0,qt=null,Ye=L.next();ze!==null&&!Ye.done;De++,Ye=L.next()){ze.index>De?(qt=ze,ze=null):qt=ze.sibling;var Xi=J(U,ze,Ye.value,ie);if(Xi===null){ze===null&&(ze=qt);break}o&&ze&&Xi.alternate===null&&s(U,ze),T=b(Xi,T,De),Ee===null?ye=Xi:Ee.sibling=Xi,Ee=Xi,ze=qt}if(Ye.done)return c(U,ze),vt&&ka(U,De),ye;if(ze===null){for(;!Ye.done;De++,Ye=L.next())Ye=te(U,Ye.value,ie),Ye!==null&&(T=b(Ye,T,De),Ee===null?ye=Ye:Ee.sibling=Ye,Ee=Ye);return vt&&ka(U,De),ye}for(ze=v(U,ze);!Ye.done;De++,Ye=L.next())Ye=le(ze,U,De,Ye.value,ie),Ye!==null&&(o&&Ye.alternate!==null&&ze.delete(Ye.key===null?De:Ye.key),T=b(Ye,T,De),Ee===null?ye=Ye:Ee.sibling=Ye,Ee=Ye);return o&&ze.forEach(function(fL){return s(U,fL)}),vt&&ka(U,De),ye}function Ct(U,T,L,ie){if(typeof L=="object"&&L!==null&&L.type===N&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case j:e:{for(var ye=L.key,Ee=T;Ee!==null;){if(Ee.key===ye){if(ye=L.type,ye===N){if(Ee.tag===7){c(U,Ee.sibling),T=g(Ee,L.props.children),T.return=U,U=T;break e}}else if(Ee.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===Te&&jk(ye)===Ee.type){c(U,Ee.sibling),T=g(Ee,L.props),T.ref=Ju(U,Ee,L),T.return=U,U=T;break e}c(U,Ee);break}else s(U,Ee);Ee=Ee.sibling}L.type===N?(T=Aa(L.props.children,U.mode,ie,L.key),T.return=U,U=T):(ie=Gc(L.type,L.key,L.props,null,U.mode,ie),ie.ref=Ju(U,T,L),ie.return=U,U=ie)}return S(U);case z:e:{for(Ee=L.key;T!==null;){if(T.key===Ee)if(T.tag===4&&T.stateNode.containerInfo===L.containerInfo&&T.stateNode.implementation===L.implementation){c(U,T.sibling),T=g(T,L.children||[]),T.return=U,U=T;break e}else{c(U,T);break}else s(U,T);T=T.sibling}T=vh(L,U.mode,ie),T.return=U,U=T}return S(U);case Te:return Ee=L._init,Ct(U,T,Ee(L._payload),ie)}if($u(L))return pe(U,T,L,ie);if(oe(L))return he(U,T,L,ie);$c(U,L)}return typeof L=="string"&&L!==""||typeof L=="number"?(L=""+L,T!==null&&T.tag===6?(c(U,T.sibling),T=g(T,L),T.return=U,U=T):(c(U,T),T=mh(L,U.mode,ie),T.return=U,U=T),S(U)):c(U,T)}return Ct}var zo=Ck(!0),Tk=Ck(!1),Ic=Zi(null),Pc=null,Ao=null,Sv=null;function $v(){Sv=Ao=Pc=null}function Iv(o){var s=Ic.current;ct(Ic),o._currentValue=s}function Pv(o,s,c){for(;o!==null;){var v=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,v!==null&&(v.childLanes|=s)):v!==null&&(v.childLanes&s)!==s&&(v.childLanes|=s),o===c)break;o=o.return}}function jo(o,s){Pc=o,Sv=Ao=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&s)!==0&&(Ar=!0),o.firstContext=null)}function nn(o){var s=o._currentValue;if(Sv!==o)if(o={context:o,memoizedValue:s,next:null},Ao===null){if(Pc===null)throw Error(r(308));Ao=o,Pc.dependencies={lanes:0,firstContext:o}}else Ao=Ao.next=o;return s}var Sa=null;function Ov(o){Sa===null?Sa=[o]:Sa.push(o)}function Nk(o,s,c,v){var g=s.interleaved;return g===null?(c.next=c,Ov(s)):(c.next=g.next,g.next=c),s.interleaved=c,ai(o,v)}function ai(o,s){o.lanes|=s;var c=o.alternate;for(c!==null&&(c.lanes|=s),c=o,o=o.return;o!==null;)o.childLanes|=s,c=o.alternate,c!==null&&(c.childLanes|=s),c=o,o=o.return;return c.tag===3?c.stateNode:null}var qi=!1;function Ev(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dk(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function oi(o,s){return{eventTime:o,lane:s,tag:0,payload:null,callback:null,next:null}}function Wi(o,s,c){var v=o.updateQueue;if(v===null)return null;if(v=v.shared,(Ge&2)!==0){var g=v.pending;return g===null?s.next=s:(s.next=g.next,g.next=s),v.pending=s,ai(o,c)}return g=v.interleaved,g===null?(s.next=s,Ov(v)):(s.next=g.next,g.next=s),v.interleaved=s,ai(o,c)}function Oc(o,s,c){if(s=s.updateQueue,s!==null&&(s=s.shared,(c&4194240)!==0)){var v=s.lanes;v&=o.pendingLanes,c|=v,s.lanes=c,Bm(o,c)}}function Mk(o,s){var c=o.updateQueue,v=o.alternate;if(v!==null&&(v=v.updateQueue,c===v)){var g=null,b=null;if(c=c.firstBaseUpdate,c!==null){do{var S={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};b===null?g=b=S:b=b.next=S,c=c.next}while(c!==null);b===null?g=b=s:b=b.next=s}else g=b=s;c={baseState:v.baseState,firstBaseUpdate:g,lastBaseUpdate:b,shared:v.shared,effects:v.effects},o.updateQueue=c;return}o=c.lastBaseUpdate,o===null?c.firstBaseUpdate=s:o.next=s,c.lastBaseUpdate=s}function Ec(o,s,c,v){var g=o.updateQueue;qi=!1;var b=g.firstBaseUpdate,S=g.lastBaseUpdate,O=g.shared.pending;if(O!==null){g.shared.pending=null;var C=O,Z=C.next;C.next=null,S===null?b=Z:S.next=Z,S=C;var Y=o.alternate;Y!==null&&(Y=Y.updateQueue,O=Y.lastBaseUpdate,O!==S&&(O===null?Y.firstBaseUpdate=Z:O.next=Z,Y.lastBaseUpdate=C))}if(b!==null){var te=g.baseState;S=0,Y=Z=C=null,O=b;do{var J=O.lane,le=O.eventTime;if((v&J)===J){Y!==null&&(Y=Y.next={eventTime:le,lane:0,tag:O.tag,payload:O.payload,callback:O.callback,next:null});e:{var pe=o,he=O;switch(J=s,le=c,he.tag){case 1:if(pe=he.payload,typeof pe=="function"){te=pe.call(le,te,J);break e}te=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=he.payload,J=typeof pe=="function"?pe.call(le,te,J):pe,J==null)break e;te=B({},te,J);break e;case 2:qi=!0}}O.callback!==null&&O.lane!==0&&(o.flags|=64,J=g.effects,J===null?g.effects=[O]:J.push(O))}else le={eventTime:le,lane:J,tag:O.tag,payload:O.payload,callback:O.callback,next:null},Y===null?(Z=Y=le,C=te):Y=Y.next=le,S|=J;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;J=O,O=J.next,J.next=null,g.lastBaseUpdate=J,g.shared.pending=null}}while(!0);if(Y===null&&(C=te),g.baseState=C,g.firstBaseUpdate=Z,g.lastBaseUpdate=Y,s=g.shared.interleaved,s!==null){g=s;do S|=g.lane,g=g.next;while(g!==s)}else b===null&&(g.shared.lanes=0);Pa|=S,o.lanes=S,o.memoizedState=te}}function Rk(o,s,c){if(o=s.effects,s.effects=null,o!==null)for(s=0;s<o.length;s++){var v=o[s],g=v.callback;if(g!==null){if(v.callback=null,v=c,typeof g!="function")throw Error(r(191,g));g.call(v)}}}var Yu={},Rn=Zi(Yu),Xu=Zi(Yu),Qu=Zi(Yu);function $a(o){if(o===Yu)throw Error(r(174));return o}function zv(o,s){switch(st(Qu,s),st(Xu,o),st(Rn,Yu),o=s.nodeType,o){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:Am(null,"");break;default:o=o===8?s.parentNode:s,s=o.namespaceURI||null,o=o.tagName,s=Am(s,o)}ct(Rn),st(Rn,s)}function Co(){ct(Rn),ct(Xu),ct(Qu)}function Uk(o){$a(Qu.current);var s=$a(Rn.current),c=Am(s,o.type);s!==c&&(st(Xu,o),st(Rn,c))}function Av(o){Xu.current===o&&(ct(Rn),ct(Xu))}var xt=Zi(0);function zc(o){for(var s=o;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var jv=[];function Cv(){for(var o=0;o<jv.length;o++)jv[o]._workInProgressVersionPrimary=null;jv.length=0}var Ac=I.ReactCurrentDispatcher,Tv=I.ReactCurrentBatchConfig,Ia=0,kt=null,Dt=null,Ft=null,jc=!1,es=!1,ts=0,TU=0;function mr(){throw Error(r(321))}function Nv(o,s){if(s===null)return!1;for(var c=0;c<s.length&&c<o.length;c++)if(!kn(o[c],s[c]))return!1;return!0}function Dv(o,s,c,v,g,b){if(Ia=b,kt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Ac.current=o===null||o.memoizedState===null?RU:UU,o=c(v,g),es){b=0;do{if(es=!1,ts=0,25<=b)throw Error(r(301));b+=1,Ft=Dt=null,s.updateQueue=null,Ac.current=LU,o=c(v,g)}while(es)}if(Ac.current=Nc,s=Dt!==null&&Dt.next!==null,Ia=0,Ft=Dt=kt=null,jc=!1,s)throw Error(r(300));return o}function Mv(){var o=ts!==0;return ts=0,o}function Un(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?kt.memoizedState=Ft=o:Ft=Ft.next=o,Ft}function an(){if(Dt===null){var o=kt.alternate;o=o!==null?o.memoizedState:null}else o=Dt.next;var s=Ft===null?kt.memoizedState:Ft.next;if(s!==null)Ft=s,Dt=o;else{if(o===null)throw Error(r(310));Dt=o,o={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},Ft===null?kt.memoizedState=Ft=o:Ft=Ft.next=o}return Ft}function rs(o,s){return typeof s=="function"?s(o):s}function Rv(o){var s=an(),c=s.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=o;var v=Dt,g=v.baseQueue,b=c.pending;if(b!==null){if(g!==null){var S=g.next;g.next=b.next,b.next=S}v.baseQueue=g=b,c.pending=null}if(g!==null){b=g.next,v=v.baseState;var O=S=null,C=null,Z=b;do{var Y=Z.lane;if((Ia&Y)===Y)C!==null&&(C=C.next={lane:0,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),v=Z.hasEagerState?Z.eagerState:o(v,Z.action);else{var te={lane:Y,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null};C===null?(O=C=te,S=v):C=C.next=te,kt.lanes|=Y,Pa|=Y}Z=Z.next}while(Z!==null&&Z!==b);C===null?S=v:C.next=O,kn(v,s.memoizedState)||(Ar=!0),s.memoizedState=v,s.baseState=S,s.baseQueue=C,c.lastRenderedState=v}if(o=c.interleaved,o!==null){g=o;do b=g.lane,kt.lanes|=b,Pa|=b,g=g.next;while(g!==o)}else g===null&&(c.lanes=0);return[s.memoizedState,c.dispatch]}function Uv(o){var s=an(),c=s.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=o;var v=c.dispatch,g=c.pending,b=s.memoizedState;if(g!==null){c.pending=null;var S=g=g.next;do b=o(b,S.action),S=S.next;while(S!==g);kn(b,s.memoizedState)||(Ar=!0),s.memoizedState=b,s.baseQueue===null&&(s.baseState=b),c.lastRenderedState=b}return[b,v]}function Lk(){}function Zk(o,s){var c=kt,v=an(),g=s(),b=!kn(v.memoizedState,g);if(b&&(v.memoizedState=g,Ar=!0),v=v.queue,Lv(qk.bind(null,c,v,o),[o]),v.getSnapshot!==s||b||Ft!==null&&Ft.memoizedState.tag&1){if(c.flags|=2048,ns(9,Bk.bind(null,c,v,g,s),void 0,null),Bt===null)throw Error(r(349));(Ia&30)!==0||Fk(c,s,g)}return g}function Fk(o,s,c){o.flags|=16384,o={getSnapshot:s,value:c},s=kt.updateQueue,s===null?(s={lastEffect:null,stores:null},kt.updateQueue=s,s.stores=[o]):(c=s.stores,c===null?s.stores=[o]:c.push(o))}function Bk(o,s,c,v){s.value=c,s.getSnapshot=v,Wk(s)&&Vk(o)}function qk(o,s,c){return c(function(){Wk(s)&&Vk(o)})}function Wk(o){var s=o.getSnapshot;o=o.value;try{var c=s();return!kn(o,c)}catch{return!0}}function Vk(o){var s=ai(o,1);s!==null&&On(s,o,1,-1)}function Kk(o){var s=Un();return typeof o=="function"&&(o=o()),s.memoizedState=s.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:rs,lastRenderedState:o},s.queue=o,o=o.dispatch=MU.bind(null,kt,o),[s.memoizedState,o]}function ns(o,s,c,v){return o={tag:o,create:s,destroy:c,deps:v,next:null},s=kt.updateQueue,s===null?(s={lastEffect:null,stores:null},kt.updateQueue=s,s.lastEffect=o.next=o):(c=s.lastEffect,c===null?s.lastEffect=o.next=o:(v=c.next,c.next=o,o.next=v,s.lastEffect=o)),o}function Hk(){return an().memoizedState}function Cc(o,s,c,v){var g=Un();kt.flags|=o,g.memoizedState=ns(1|s,c,void 0,v===void 0?null:v)}function Tc(o,s,c,v){var g=an();v=v===void 0?null:v;var b=void 0;if(Dt!==null){var S=Dt.memoizedState;if(b=S.destroy,v!==null&&Nv(v,S.deps)){g.memoizedState=ns(s,c,b,v);return}}kt.flags|=o,g.memoizedState=ns(1|s,c,b,v)}function Gk(o,s){return Cc(8390656,8,o,s)}function Lv(o,s){return Tc(2048,8,o,s)}function Jk(o,s){return Tc(4,2,o,s)}function Yk(o,s){return Tc(4,4,o,s)}function Xk(o,s){if(typeof s=="function")return o=o(),s(o),function(){s(null)};if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function Qk(o,s,c){return c=c!=null?c.concat([o]):null,Tc(4,4,Xk.bind(null,s,o),c)}function Zv(){}function eS(o,s){var c=an();s=s===void 0?null:s;var v=c.memoizedState;return v!==null&&s!==null&&Nv(s,v[1])?v[0]:(c.memoizedState=[o,s],o)}function tS(o,s){var c=an();s=s===void 0?null:s;var v=c.memoizedState;return v!==null&&s!==null&&Nv(s,v[1])?v[0]:(o=o(),c.memoizedState=[o,s],o)}function rS(o,s,c){return(Ia&21)===0?(o.baseState&&(o.baseState=!1,Ar=!0),o.memoizedState=c):(kn(c,s)||(c=jx(),kt.lanes|=c,Pa|=c,o.baseState=!0),s)}function NU(o,s){var c=Qe;Qe=c!==0&&4>c?c:4,o(!0);var v=Tv.transition;Tv.transition={};try{o(!1),s()}finally{Qe=c,Tv.transition=v}}function nS(){return an().memoizedState}function DU(o,s,c){var v=Gi(o);if(c={lane:v,action:c,hasEagerState:!1,eagerState:null,next:null},iS(o))aS(s,c);else if(c=Nk(o,s,c,v),c!==null){var g=kr();On(c,o,v,g),oS(c,s,v)}}function MU(o,s,c){var v=Gi(o),g={lane:v,action:c,hasEagerState:!1,eagerState:null,next:null};if(iS(o))aS(s,g);else{var b=o.alternate;if(o.lanes===0&&(b===null||b.lanes===0)&&(b=s.lastRenderedReducer,b!==null))try{var S=s.lastRenderedState,O=b(S,c);if(g.hasEagerState=!0,g.eagerState=O,kn(O,S)){var C=s.interleaved;C===null?(g.next=g,Ov(s)):(g.next=C.next,C.next=g),s.interleaved=g;return}}catch{}finally{}c=Nk(o,s,g,v),c!==null&&(g=kr(),On(c,o,v,g),oS(c,s,v))}}function iS(o){var s=o.alternate;return o===kt||s!==null&&s===kt}function aS(o,s){es=jc=!0;var c=o.pending;c===null?s.next=s:(s.next=c.next,c.next=s),o.pending=s}function oS(o,s,c){if((c&4194240)!==0){var v=s.lanes;v&=o.pendingLanes,c|=v,s.lanes=c,Bm(o,c)}}var Nc={readContext:nn,useCallback:mr,useContext:mr,useEffect:mr,useImperativeHandle:mr,useInsertionEffect:mr,useLayoutEffect:mr,useMemo:mr,useReducer:mr,useRef:mr,useState:mr,useDebugValue:mr,useDeferredValue:mr,useTransition:mr,useMutableSource:mr,useSyncExternalStore:mr,useId:mr,unstable_isNewReconciler:!1},RU={readContext:nn,useCallback:function(o,s){return Un().memoizedState=[o,s===void 0?null:s],o},useContext:nn,useEffect:Gk,useImperativeHandle:function(o,s,c){return c=c!=null?c.concat([o]):null,Cc(4194308,4,Xk.bind(null,s,o),c)},useLayoutEffect:function(o,s){return Cc(4194308,4,o,s)},useInsertionEffect:function(o,s){return Cc(4,2,o,s)},useMemo:function(o,s){var c=Un();return s=s===void 0?null:s,o=o(),c.memoizedState=[o,s],o},useReducer:function(o,s,c){var v=Un();return s=c!==void 0?c(s):s,v.memoizedState=v.baseState=s,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:s},v.queue=o,o=o.dispatch=DU.bind(null,kt,o),[v.memoizedState,o]},useRef:function(o){var s=Un();return o={current:o},s.memoizedState=o},useState:Kk,useDebugValue:Zv,useDeferredValue:function(o){return Un().memoizedState=o},useTransition:function(){var o=Kk(!1),s=o[0];return o=NU.bind(null,o[1]),Un().memoizedState=o,[s,o]},useMutableSource:function(){},useSyncExternalStore:function(o,s,c){var v=kt,g=Un();if(vt){if(c===void 0)throw Error(r(407));c=c()}else{if(c=s(),Bt===null)throw Error(r(349));(Ia&30)!==0||Fk(v,s,c)}g.memoizedState=c;var b={value:c,getSnapshot:s};return g.queue=b,Gk(qk.bind(null,v,b,o),[o]),v.flags|=2048,ns(9,Bk.bind(null,v,b,c,s),void 0,null),c},useId:function(){var o=Un(),s=Bt.identifierPrefix;if(vt){var c=ii,v=ni;c=(v&~(1<<32-xn(v)-1)).toString(32)+c,s=":"+s+"R"+c,c=ts++,0<c&&(s+="H"+c.toString(32)),s+=":"}else c=TU++,s=":"+s+"r"+c.toString(32)+":";return o.memoizedState=s},unstable_isNewReconciler:!1},UU={readContext:nn,useCallback:eS,useContext:nn,useEffect:Lv,useImperativeHandle:Qk,useInsertionEffect:Jk,useLayoutEffect:Yk,useMemo:tS,useReducer:Rv,useRef:Hk,useState:function(){return Rv(rs)},useDebugValue:Zv,useDeferredValue:function(o){var s=an();return rS(s,Dt.memoizedState,o)},useTransition:function(){var o=Rv(rs)[0],s=an().memoizedState;return[o,s]},useMutableSource:Lk,useSyncExternalStore:Zk,useId:nS,unstable_isNewReconciler:!1},LU={readContext:nn,useCallback:eS,useContext:nn,useEffect:Lv,useImperativeHandle:Qk,useInsertionEffect:Jk,useLayoutEffect:Yk,useMemo:tS,useReducer:Uv,useRef:Hk,useState:function(){return Uv(rs)},useDebugValue:Zv,useDeferredValue:function(o){var s=an();return Dt===null?s.memoizedState=o:rS(s,Dt.memoizedState,o)},useTransition:function(){var o=Uv(rs)[0],s=an().memoizedState;return[o,s]},useMutableSource:Lk,useSyncExternalStore:Zk,useId:nS,unstable_isNewReconciler:!1};function $n(o,s){if(o&&o.defaultProps){s=B({},s),o=o.defaultProps;for(var c in o)s[c]===void 0&&(s[c]=o[c]);return s}return s}function Fv(o,s,c,v){s=o.memoizedState,c=c(v,s),c=c==null?s:B({},s,c),o.memoizedState=c,o.lanes===0&&(o.updateQueue.baseState=c)}var Dc={isMounted:function(o){return(o=o._reactInternals)?ba(o)===o:!1},enqueueSetState:function(o,s,c){o=o._reactInternals;var v=kr(),g=Gi(o),b=oi(v,g);b.payload=s,c!=null&&(b.callback=c),s=Wi(o,b,g),s!==null&&(On(s,o,g,v),Oc(s,o,g))},enqueueReplaceState:function(o,s,c){o=o._reactInternals;var v=kr(),g=Gi(o),b=oi(v,g);b.tag=1,b.payload=s,c!=null&&(b.callback=c),s=Wi(o,b,g),s!==null&&(On(s,o,g,v),Oc(s,o,g))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var c=kr(),v=Gi(o),g=oi(c,v);g.tag=2,s!=null&&(g.callback=s),s=Wi(o,g,v),s!==null&&(On(s,o,v,c),Oc(s,o,v))}};function uS(o,s,c,v,g,b,S){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(v,b,S):s.prototype&&s.prototype.isPureReactComponent?!Bu(c,v)||!Bu(g,b):!0}function sS(o,s,c){var v=!1,g=Fi,b=s.contextType;return typeof b=="object"&&b!==null?b=nn(b):(g=zr(s)?_a:pr.current,v=s.contextTypes,b=(v=v!=null)?Io(o,g):Fi),s=new s(c,b),o.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Dc,o.stateNode=s,s._reactInternals=o,v&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=g,o.__reactInternalMemoizedMaskedChildContext=b),s}function lS(o,s,c,v){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(c,v),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(c,v),s.state!==o&&Dc.enqueueReplaceState(s,s.state,null)}function Bv(o,s,c,v){var g=o.stateNode;g.props=c,g.state=o.memoizedState,g.refs={},Ev(o);var b=s.contextType;typeof b=="object"&&b!==null?g.context=nn(b):(b=zr(s)?_a:pr.current,g.context=Io(o,b)),g.state=o.memoizedState,b=s.getDerivedStateFromProps,typeof b=="function"&&(Fv(o,s,b,c),g.state=o.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(s=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),s!==g.state&&Dc.enqueueReplaceState(g,g.state,null),Ec(o,c,g,v),g.state=o.memoizedState),typeof g.componentDidMount=="function"&&(o.flags|=4194308)}function To(o,s){try{var c="",v=s;do c+=$e(v),v=v.return;while(v);var g=c}catch(b){g=`
|
|
148
|
+
Error generating stack: `+b.message+`
|
|
149
|
+
`+b.stack}return{value:o,source:s,stack:g,digest:null}}function qv(o,s,c){return{value:o,source:null,stack:c??null,digest:s??null}}function Wv(o,s){try{console.error(s.value)}catch(c){setTimeout(function(){throw c})}}var ZU=typeof WeakMap=="function"?WeakMap:Map;function cS(o,s,c){c=oi(-1,c),c.tag=3,c.payload={element:null};var v=s.value;return c.callback=function(){Bc||(Bc=!0,oh=v),Wv(o,s)},c}function dS(o,s,c){c=oi(-1,c),c.tag=3;var v=o.type.getDerivedStateFromError;if(typeof v=="function"){var g=s.value;c.payload=function(){return v(g)},c.callback=function(){Wv(o,s)}}var b=o.stateNode;return b!==null&&typeof b.componentDidCatch=="function"&&(c.callback=function(){Wv(o,s),typeof v!="function"&&(Ki===null?Ki=new Set([this]):Ki.add(this));var S=s.stack;this.componentDidCatch(s.value,{componentStack:S!==null?S:""})}),c}function fS(o,s,c){var v=o.pingCache;if(v===null){v=o.pingCache=new ZU;var g=new Set;v.set(s,g)}else g=v.get(s),g===void 0&&(g=new Set,v.set(s,g));g.has(c)||(g.add(c),o=tL.bind(null,o,s,c),s.then(o,o))}function pS(o){do{var s;if((s=o.tag===13)&&(s=o.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return o;o=o.return}while(o!==null);return null}function mS(o,s,c,v,g){return(o.mode&1)===0?(o===s?o.flags|=65536:(o.flags|=128,c.flags|=131072,c.flags&=-52805,c.tag===1&&(c.alternate===null?c.tag=17:(s=oi(-1,1),s.tag=2,Wi(c,s,1))),c.lanes|=1),o):(o.flags|=65536,o.lanes=g,o)}var FU=I.ReactCurrentOwner,Ar=!1;function xr(o,s,c,v){s.child=o===null?Tk(s,null,c,v):zo(s,o.child,c,v)}function vS(o,s,c,v,g){c=c.render;var b=s.ref;return jo(s,g),v=Dv(o,s,c,v,b,g),c=Mv(),o!==null&&!Ar?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~g,ui(o,s,g)):(vt&&c&&bv(s),s.flags|=1,xr(o,s,v,g),s.child)}function hS(o,s,c,v,g){if(o===null){var b=c.type;return typeof b=="function"&&!ph(b)&&b.defaultProps===void 0&&c.compare===null&&c.defaultProps===void 0?(s.tag=15,s.type=b,gS(o,s,b,v,g)):(o=Gc(c.type,null,v,s,s.mode,g),o.ref=s.ref,o.return=s,s.child=o)}if(b=o.child,(o.lanes&g)===0){var S=b.memoizedProps;if(c=c.compare,c=c!==null?c:Bu,c(S,v)&&o.ref===s.ref)return ui(o,s,g)}return s.flags|=1,o=Yi(b,v),o.ref=s.ref,o.return=s,s.child=o}function gS(o,s,c,v,g){if(o!==null){var b=o.memoizedProps;if(Bu(b,v)&&o.ref===s.ref)if(Ar=!1,s.pendingProps=v=b,(o.lanes&g)!==0)(o.flags&131072)!==0&&(Ar=!0);else return s.lanes=o.lanes,ui(o,s,g)}return Vv(o,s,c,v,g)}function yS(o,s,c){var v=s.pendingProps,g=v.children,b=o!==null?o.memoizedState:null;if(v.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},st(Do,Wr),Wr|=c;else{if((c&1073741824)===0)return o=b!==null?b.baseLanes|c:c,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:o,cachePool:null,transitions:null},s.updateQueue=null,st(Do,Wr),Wr|=o,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},v=b!==null?b.baseLanes:c,st(Do,Wr),Wr|=v}else b!==null?(v=b.baseLanes|c,s.memoizedState=null):v=c,st(Do,Wr),Wr|=v;return xr(o,s,g,c),s.child}function bS(o,s){var c=s.ref;(o===null&&c!==null||o!==null&&o.ref!==c)&&(s.flags|=512,s.flags|=2097152)}function Vv(o,s,c,v,g){var b=zr(c)?_a:pr.current;return b=Io(s,b),jo(s,g),c=Dv(o,s,c,v,b,g),v=Mv(),o!==null&&!Ar?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~g,ui(o,s,g)):(vt&&v&&bv(s),s.flags|=1,xr(o,s,c,g),s.child)}function wS(o,s,c,v,g){if(zr(c)){var b=!0;wc(s)}else b=!1;if(jo(s,g),s.stateNode===null)Rc(o,s),sS(s,c,v),Bv(s,c,v,g),v=!0;else if(o===null){var S=s.stateNode,O=s.memoizedProps;S.props=O;var C=S.context,Z=c.contextType;typeof Z=="object"&&Z!==null?Z=nn(Z):(Z=zr(c)?_a:pr.current,Z=Io(s,Z));var Y=c.getDerivedStateFromProps,te=typeof Y=="function"||typeof S.getSnapshotBeforeUpdate=="function";te||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(O!==v||C!==Z)&&lS(s,S,v,Z),qi=!1;var J=s.memoizedState;S.state=J,Ec(s,v,S,g),C=s.memoizedState,O!==v||J!==C||Er.current||qi?(typeof Y=="function"&&(Fv(s,c,Y,v),C=s.memoizedState),(O=qi||uS(s,c,O,v,J,C,Z))?(te||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(s.flags|=4194308)):(typeof S.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=v,s.memoizedState=C),S.props=v,S.state=C,S.context=Z,v=O):(typeof S.componentDidMount=="function"&&(s.flags|=4194308),v=!1)}else{S=s.stateNode,Dk(o,s),O=s.memoizedProps,Z=s.type===s.elementType?O:$n(s.type,O),S.props=Z,te=s.pendingProps,J=S.context,C=c.contextType,typeof C=="object"&&C!==null?C=nn(C):(C=zr(c)?_a:pr.current,C=Io(s,C));var le=c.getDerivedStateFromProps;(Y=typeof le=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(O!==te||J!==C)&&lS(s,S,v,C),qi=!1,J=s.memoizedState,S.state=J,Ec(s,v,S,g);var pe=s.memoizedState;O!==te||J!==pe||Er.current||qi?(typeof le=="function"&&(Fv(s,c,le,v),pe=s.memoizedState),(Z=qi||uS(s,c,Z,v,J,pe,C)||!1)?(Y||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(v,pe,C),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(v,pe,C)),typeof S.componentDidUpdate=="function"&&(s.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof S.componentDidUpdate!="function"||O===o.memoizedProps&&J===o.memoizedState||(s.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||O===o.memoizedProps&&J===o.memoizedState||(s.flags|=1024),s.memoizedProps=v,s.memoizedState=pe),S.props=v,S.state=pe,S.context=C,v=Z):(typeof S.componentDidUpdate!="function"||O===o.memoizedProps&&J===o.memoizedState||(s.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||O===o.memoizedProps&&J===o.memoizedState||(s.flags|=1024),v=!1)}return Kv(o,s,c,v,b,g)}function Kv(o,s,c,v,g,b){bS(o,s);var S=(s.flags&128)!==0;if(!v&&!S)return g&&$k(s,c,!1),ui(o,s,b);v=s.stateNode,FU.current=s;var O=S&&typeof c.getDerivedStateFromError!="function"?null:v.render();return s.flags|=1,o!==null&&S?(s.child=zo(s,o.child,null,b),s.child=zo(s,null,O,b)):xr(o,s,O,b),s.memoizedState=v.state,g&&$k(s,c,!0),s.child}function _S(o){var s=o.stateNode;s.pendingContext?kk(o,s.pendingContext,s.pendingContext!==s.context):s.context&&kk(o,s.context,!1),zv(o,s.containerInfo)}function xS(o,s,c,v,g){return Eo(),kv(g),s.flags|=256,xr(o,s,c,v),s.child}var Hv={dehydrated:null,treeContext:null,retryLane:0};function Gv(o){return{baseLanes:o,cachePool:null,transitions:null}}function kS(o,s,c){var v=s.pendingProps,g=xt.current,b=!1,S=(s.flags&128)!==0,O;if((O=S)||(O=o!==null&&o.memoizedState===null?!1:(g&2)!==0),O?(b=!0,s.flags&=-129):(o===null||o.memoizedState!==null)&&(g|=1),st(xt,g&1),o===null)return xv(s),o=s.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?((s.mode&1)===0?s.lanes=1:o.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(S=v.children,o=v.fallback,b?(v=s.mode,b=s.child,S={mode:"hidden",children:S},(v&1)===0&&b!==null?(b.childLanes=0,b.pendingProps=S):b=Jc(S,v,0,null),o=Aa(o,v,c,null),b.return=s,o.return=s,b.sibling=o,s.child=b,s.child.memoizedState=Gv(c),s.memoizedState=Hv,o):Jv(s,S));if(g=o.memoizedState,g!==null&&(O=g.dehydrated,O!==null))return BU(o,s,S,v,O,g,c);if(b){b=v.fallback,S=s.mode,g=o.child,O=g.sibling;var C={mode:"hidden",children:v.children};return(S&1)===0&&s.child!==g?(v=s.child,v.childLanes=0,v.pendingProps=C,s.deletions=null):(v=Yi(g,C),v.subtreeFlags=g.subtreeFlags&14680064),O!==null?b=Yi(O,b):(b=Aa(b,S,c,null),b.flags|=2),b.return=s,v.return=s,v.sibling=b,s.child=v,v=b,b=s.child,S=o.child.memoizedState,S=S===null?Gv(c):{baseLanes:S.baseLanes|c,cachePool:null,transitions:S.transitions},b.memoizedState=S,b.childLanes=o.childLanes&~c,s.memoizedState=Hv,v}return b=o.child,o=b.sibling,v=Yi(b,{mode:"visible",children:v.children}),(s.mode&1)===0&&(v.lanes=c),v.return=s,v.sibling=null,o!==null&&(c=s.deletions,c===null?(s.deletions=[o],s.flags|=16):c.push(o)),s.child=v,s.memoizedState=null,v}function Jv(o,s){return s=Jc({mode:"visible",children:s},o.mode,0,null),s.return=o,o.child=s}function Mc(o,s,c,v){return v!==null&&kv(v),zo(s,o.child,null,c),o=Jv(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function BU(o,s,c,v,g,b,S){if(c)return s.flags&256?(s.flags&=-257,v=qv(Error(r(422))),Mc(o,s,S,v)):s.memoizedState!==null?(s.child=o.child,s.flags|=128,null):(b=v.fallback,g=s.mode,v=Jc({mode:"visible",children:v.children},g,0,null),b=Aa(b,g,S,null),b.flags|=2,v.return=s,b.return=s,v.sibling=b,s.child=v,(s.mode&1)!==0&&zo(s,o.child,null,S),s.child.memoizedState=Gv(S),s.memoizedState=Hv,b);if((s.mode&1)===0)return Mc(o,s,S,null);if(g.data==="$!"){if(v=g.nextSibling&&g.nextSibling.dataset,v)var O=v.dgst;return v=O,b=Error(r(419)),v=qv(b,v,void 0),Mc(o,s,S,v)}if(O=(S&o.childLanes)!==0,Ar||O){if(v=Bt,v!==null){switch(S&-S){case 4:g=2;break;case 16:g=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:g=32;break;case 536870912:g=268435456;break;default:g=0}g=(g&(v.suspendedLanes|S))!==0?0:g,g!==0&&g!==b.retryLane&&(b.retryLane=g,ai(o,g),On(v,o,g,-1))}return fh(),v=qv(Error(r(421))),Mc(o,s,S,v)}return g.data==="$?"?(s.flags|=128,s.child=o.child,s=rL.bind(null,o),g._reactRetry=s,null):(o=b.treeContext,qr=Li(g.nextSibling),Br=s,vt=!0,Sn=null,o!==null&&(tn[rn++]=ni,tn[rn++]=ii,tn[rn++]=xa,ni=o.id,ii=o.overflow,xa=s),s=Jv(s,v.children),s.flags|=4096,s)}function SS(o,s,c){o.lanes|=s;var v=o.alternate;v!==null&&(v.lanes|=s),Pv(o.return,s,c)}function Yv(o,s,c,v,g){var b=o.memoizedState;b===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:v,tail:c,tailMode:g}:(b.isBackwards=s,b.rendering=null,b.renderingStartTime=0,b.last=v,b.tail=c,b.tailMode=g)}function $S(o,s,c){var v=s.pendingProps,g=v.revealOrder,b=v.tail;if(xr(o,s,v.children,c),v=xt.current,(v&2)!==0)v=v&1|2,s.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&SS(o,c,s);else if(o.tag===19)SS(o,c,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}v&=1}if(st(xt,v),(s.mode&1)===0)s.memoizedState=null;else switch(g){case"forwards":for(c=s.child,g=null;c!==null;)o=c.alternate,o!==null&&zc(o)===null&&(g=c),c=c.sibling;c=g,c===null?(g=s.child,s.child=null):(g=c.sibling,c.sibling=null),Yv(s,!1,g,c,b);break;case"backwards":for(c=null,g=s.child,s.child=null;g!==null;){if(o=g.alternate,o!==null&&zc(o)===null){s.child=g;break}o=g.sibling,g.sibling=c,c=g,g=o}Yv(s,!0,c,null,b);break;case"together":Yv(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Rc(o,s){(s.mode&1)===0&&o!==null&&(o.alternate=null,s.alternate=null,s.flags|=2)}function ui(o,s,c){if(o!==null&&(s.dependencies=o.dependencies),Pa|=s.lanes,(c&s.childLanes)===0)return null;if(o!==null&&s.child!==o.child)throw Error(r(153));if(s.child!==null){for(o=s.child,c=Yi(o,o.pendingProps),s.child=c,c.return=s;o.sibling!==null;)o=o.sibling,c=c.sibling=Yi(o,o.pendingProps),c.return=s;c.sibling=null}return s.child}function qU(o,s,c){switch(s.tag){case 3:_S(s),Eo();break;case 5:Uk(s);break;case 1:zr(s.type)&&wc(s);break;case 4:zv(s,s.stateNode.containerInfo);break;case 10:var v=s.type._context,g=s.memoizedProps.value;st(Ic,v._currentValue),v._currentValue=g;break;case 13:if(v=s.memoizedState,v!==null)return v.dehydrated!==null?(st(xt,xt.current&1),s.flags|=128,null):(c&s.child.childLanes)!==0?kS(o,s,c):(st(xt,xt.current&1),o=ui(o,s,c),o!==null?o.sibling:null);st(xt,xt.current&1);break;case 19:if(v=(c&s.childLanes)!==0,(o.flags&128)!==0){if(v)return $S(o,s,c);s.flags|=128}if(g=s.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),st(xt,xt.current),v)break;return null;case 22:case 23:return s.lanes=0,yS(o,s,c)}return ui(o,s,c)}var IS,Xv,PS,OS;IS=function(o,s){for(var c=s.child;c!==null;){if(c.tag===5||c.tag===6)o.appendChild(c.stateNode);else if(c.tag!==4&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},Xv=function(){},PS=function(o,s,c,v){var g=o.memoizedProps;if(g!==v){o=s.stateNode,$a(Rn.current);var b=null;switch(c){case"input":g=Ke(o,g),v=Ke(o,v),b=[];break;case"select":g=B({},g,{value:void 0}),v=B({},v,{value:void 0}),b=[];break;case"textarea":g=zm(o,g),v=zm(o,v),b=[];break;default:typeof g.onClick!="function"&&typeof v.onClick=="function"&&(o.onclick=gc)}jm(c,v);var S;c=null;for(Z in g)if(!v.hasOwnProperty(Z)&&g.hasOwnProperty(Z)&&g[Z]!=null)if(Z==="style"){var O=g[Z];for(S in O)O.hasOwnProperty(S)&&(c||(c={}),c[S]="")}else Z!=="dangerouslySetInnerHTML"&&Z!=="children"&&Z!=="suppressContentEditableWarning"&&Z!=="suppressHydrationWarning"&&Z!=="autoFocus"&&(i.hasOwnProperty(Z)?b||(b=[]):(b=b||[]).push(Z,null));for(Z in v){var C=v[Z];if(O=g!=null?g[Z]:void 0,v.hasOwnProperty(Z)&&C!==O&&(C!=null||O!=null))if(Z==="style")if(O){for(S in O)!O.hasOwnProperty(S)||C&&C.hasOwnProperty(S)||(c||(c={}),c[S]="");for(S in C)C.hasOwnProperty(S)&&O[S]!==C[S]&&(c||(c={}),c[S]=C[S])}else c||(b||(b=[]),b.push(Z,c)),c=C;else Z==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,O=O?O.__html:void 0,C!=null&&O!==C&&(b=b||[]).push(Z,C)):Z==="children"?typeof C!="string"&&typeof C!="number"||(b=b||[]).push(Z,""+C):Z!=="suppressContentEditableWarning"&&Z!=="suppressHydrationWarning"&&(i.hasOwnProperty(Z)?(C!=null&&Z==="onScroll"&<("scroll",o),b||O===C||(b=[])):(b=b||[]).push(Z,C))}c&&(b=b||[]).push("style",c);var Z=b;(s.updateQueue=Z)&&(s.flags|=4)}},OS=function(o,s,c,v){c!==v&&(s.flags|=4)};function is(o,s){if(!vt)switch(o.tailMode){case"hidden":s=o.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?o.tail=null:c.sibling=null;break;case"collapsed":c=o.tail;for(var v=null;c!==null;)c.alternate!==null&&(v=c),c=c.sibling;v===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:v.sibling=null}}function vr(o){var s=o.alternate!==null&&o.alternate.child===o.child,c=0,v=0;if(s)for(var g=o.child;g!==null;)c|=g.lanes|g.childLanes,v|=g.subtreeFlags&14680064,v|=g.flags&14680064,g.return=o,g=g.sibling;else for(g=o.child;g!==null;)c|=g.lanes|g.childLanes,v|=g.subtreeFlags,v|=g.flags,g.return=o,g=g.sibling;return o.subtreeFlags|=v,o.childLanes=c,s}function WU(o,s,c){var v=s.pendingProps;switch(wv(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vr(s),null;case 1:return zr(s.type)&&bc(),vr(s),null;case 3:return v=s.stateNode,Co(),ct(Er),ct(pr),Cv(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(o===null||o.child===null)&&(Sc(s)?s.flags|=4:o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Sn!==null&&(lh(Sn),Sn=null))),Xv(o,s),vr(s),null;case 5:Av(s);var g=$a(Qu.current);if(c=s.type,o!==null&&s.stateNode!=null)PS(o,s,c,v,g),o.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!v){if(s.stateNode===null)throw Error(r(166));return vr(s),null}if(o=$a(Rn.current),Sc(s)){v=s.stateNode,c=s.type;var b=s.memoizedProps;switch(v[Mn]=s,v[Hu]=b,o=(s.mode&1)!==0,c){case"dialog":lt("cancel",v),lt("close",v);break;case"iframe":case"object":case"embed":lt("load",v);break;case"video":case"audio":for(g=0;g<Wu.length;g++)lt(Wu[g],v);break;case"source":lt("error",v);break;case"img":case"image":case"link":lt("error",v),lt("load",v);break;case"details":lt("toggle",v);break;case"input":dr(v,b),lt("invalid",v);break;case"select":v._wrapperState={wasMultiple:!!b.multiple},lt("invalid",v);break;case"textarea":dx(v,b),lt("invalid",v)}jm(c,b),g=null;for(var S in b)if(b.hasOwnProperty(S)){var O=b[S];S==="children"?typeof O=="string"?v.textContent!==O&&(b.suppressHydrationWarning!==!0&&hc(v.textContent,O,o),g=["children",O]):typeof O=="number"&&v.textContent!==""+O&&(b.suppressHydrationWarning!==!0&&hc(v.textContent,O,o),g=["children",""+O]):i.hasOwnProperty(S)&&O!=null&&S==="onScroll"&<("scroll",v)}switch(c){case"input":Ue(v),Su(v,b,!0);break;case"textarea":Ue(v),px(v);break;case"select":case"option":break;default:typeof b.onClick=="function"&&(v.onclick=gc)}v=g,s.updateQueue=v,v!==null&&(s.flags|=4)}else{S=g.nodeType===9?g:g.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=mx(c)),o==="http://www.w3.org/1999/xhtml"?c==="script"?(o=S.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof v.is=="string"?o=S.createElement(c,{is:v.is}):(o=S.createElement(c),c==="select"&&(S=o,v.multiple?S.multiple=!0:v.size&&(S.size=v.size))):o=S.createElementNS(o,c),o[Mn]=s,o[Hu]=v,IS(o,s,!1,!1),s.stateNode=o;e:{switch(S=Cm(c,v),c){case"dialog":lt("cancel",o),lt("close",o),g=v;break;case"iframe":case"object":case"embed":lt("load",o),g=v;break;case"video":case"audio":for(g=0;g<Wu.length;g++)lt(Wu[g],o);g=v;break;case"source":lt("error",o),g=v;break;case"img":case"image":case"link":lt("error",o),lt("load",o),g=v;break;case"details":lt("toggle",o),g=v;break;case"input":dr(o,v),g=Ke(o,v),lt("invalid",o);break;case"option":g=v;break;case"select":o._wrapperState={wasMultiple:!!v.multiple},g=B({},v,{value:void 0}),lt("invalid",o);break;case"textarea":dx(o,v),g=zm(o,v),lt("invalid",o);break;default:g=v}jm(c,g),O=g;for(b in O)if(O.hasOwnProperty(b)){var C=O[b];b==="style"?gx(o,C):b==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,C!=null&&vx(o,C)):b==="children"?typeof C=="string"?(c!=="textarea"||C!=="")&&Iu(o,C):typeof C=="number"&&Iu(o,""+C):b!=="suppressContentEditableWarning"&&b!=="suppressHydrationWarning"&&b!=="autoFocus"&&(i.hasOwnProperty(b)?C!=null&&b==="onScroll"&<("scroll",o):C!=null&&A(o,b,C,S))}switch(c){case"input":Ue(o),Su(o,v,!1);break;case"textarea":Ue(o),px(o);break;case"option":v.value!=null&&o.setAttribute("value",""+We(v.value));break;case"select":o.multiple=!!v.multiple,b=v.value,b!=null?mo(o,!!v.multiple,b,!1):v.defaultValue!=null&&mo(o,!!v.multiple,v.defaultValue,!0);break;default:typeof g.onClick=="function"&&(o.onclick=gc)}switch(c){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}}v&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return vr(s),null;case 6:if(o&&s.stateNode!=null)OS(o,s,o.memoizedProps,v);else{if(typeof v!="string"&&s.stateNode===null)throw Error(r(166));if(c=$a(Qu.current),$a(Rn.current),Sc(s)){if(v=s.stateNode,c=s.memoizedProps,v[Mn]=s,(b=v.nodeValue!==c)&&(o=Br,o!==null))switch(o.tag){case 3:hc(v.nodeValue,c,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&hc(v.nodeValue,c,(o.mode&1)!==0)}b&&(s.flags|=4)}else v=(c.nodeType===9?c:c.ownerDocument).createTextNode(v),v[Mn]=s,s.stateNode=v}return vr(s),null;case 13:if(ct(xt),v=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(vt&&qr!==null&&(s.mode&1)!==0&&(s.flags&128)===0)Ak(),Eo(),s.flags|=98560,b=!1;else if(b=Sc(s),v!==null&&v.dehydrated!==null){if(o===null){if(!b)throw Error(r(318));if(b=s.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[Mn]=s}else Eo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;vr(s),b=!1}else Sn!==null&&(lh(Sn),Sn=null),b=!0;if(!b)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=c,s):(v=v!==null,v!==(o!==null&&o.memoizedState!==null)&&v&&(s.child.flags|=8192,(s.mode&1)!==0&&(o===null||(xt.current&1)!==0?Mt===0&&(Mt=3):fh())),s.updateQueue!==null&&(s.flags|=4),vr(s),null);case 4:return Co(),Xv(o,s),o===null&&Vu(s.stateNode.containerInfo),vr(s),null;case 10:return Iv(s.type._context),vr(s),null;case 17:return zr(s.type)&&bc(),vr(s),null;case 19:if(ct(xt),b=s.memoizedState,b===null)return vr(s),null;if(v=(s.flags&128)!==0,S=b.rendering,S===null)if(v)is(b,!1);else{if(Mt!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(S=zc(o),S!==null){for(s.flags|=128,is(b,!1),v=S.updateQueue,v!==null&&(s.updateQueue=v,s.flags|=4),s.subtreeFlags=0,v=c,c=s.child;c!==null;)b=c,o=v,b.flags&=14680066,S=b.alternate,S===null?(b.childLanes=0,b.lanes=o,b.child=null,b.subtreeFlags=0,b.memoizedProps=null,b.memoizedState=null,b.updateQueue=null,b.dependencies=null,b.stateNode=null):(b.childLanes=S.childLanes,b.lanes=S.lanes,b.child=S.child,b.subtreeFlags=0,b.deletions=null,b.memoizedProps=S.memoizedProps,b.memoizedState=S.memoizedState,b.updateQueue=S.updateQueue,b.type=S.type,o=S.dependencies,b.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),c=c.sibling;return st(xt,xt.current&1|2),s.child}o=o.sibling}b.tail!==null&&jt()>Mo&&(s.flags|=128,v=!0,is(b,!1),s.lanes=4194304)}else{if(!v)if(o=zc(S),o!==null){if(s.flags|=128,v=!0,c=o.updateQueue,c!==null&&(s.updateQueue=c,s.flags|=4),is(b,!0),b.tail===null&&b.tailMode==="hidden"&&!S.alternate&&!vt)return vr(s),null}else 2*jt()-b.renderingStartTime>Mo&&c!==1073741824&&(s.flags|=128,v=!0,is(b,!1),s.lanes=4194304);b.isBackwards?(S.sibling=s.child,s.child=S):(c=b.last,c!==null?c.sibling=S:s.child=S,b.last=S)}return b.tail!==null?(s=b.tail,b.rendering=s,b.tail=s.sibling,b.renderingStartTime=jt(),s.sibling=null,c=xt.current,st(xt,v?c&1|2:c&1),s):(vr(s),null);case 22:case 23:return dh(),v=s.memoizedState!==null,o!==null&&o.memoizedState!==null!==v&&(s.flags|=8192),v&&(s.mode&1)!==0?(Wr&1073741824)!==0&&(vr(s),s.subtreeFlags&6&&(s.flags|=8192)):vr(s),null;case 24:return null;case 25:return null}throw Error(r(156,s.tag))}function VU(o,s){switch(wv(s),s.tag){case 1:return zr(s.type)&&bc(),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return Co(),ct(Er),ct(pr),Cv(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 5:return Av(s),null;case 13:if(ct(xt),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Eo()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return ct(xt),null;case 4:return Co(),null;case 10:return Iv(s.type._context),null;case 22:case 23:return dh(),null;case 24:return null;default:return null}}var Uc=!1,hr=!1,KU=typeof WeakSet=="function"?WeakSet:Set,de=null;function No(o,s){var c=o.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(v){Ot(o,s,v)}else c.current=null}function Qv(o,s,c){try{c()}catch(v){Ot(o,s,v)}}var ES=!1;function HU(o,s){if(dv=ac,o=uk(),nv(o)){if("selectionStart"in o)var c={start:o.selectionStart,end:o.selectionEnd};else e:{c=(c=o.ownerDocument)&&c.defaultView||window;var v=c.getSelection&&c.getSelection();if(v&&v.rangeCount!==0){c=v.anchorNode;var g=v.anchorOffset,b=v.focusNode;v=v.focusOffset;try{c.nodeType,b.nodeType}catch{c=null;break e}var S=0,O=-1,C=-1,Z=0,Y=0,te=o,J=null;t:for(;;){for(var le;te!==c||g!==0&&te.nodeType!==3||(O=S+g),te!==b||v!==0&&te.nodeType!==3||(C=S+v),te.nodeType===3&&(S+=te.nodeValue.length),(le=te.firstChild)!==null;)J=te,te=le;for(;;){if(te===o)break t;if(J===c&&++Z===g&&(O=S),J===b&&++Y===v&&(C=S),(le=te.nextSibling)!==null)break;te=J,J=te.parentNode}te=le}c=O===-1||C===-1?null:{start:O,end:C}}else c=null}c=c||{start:0,end:0}}else c=null;for(fv={focusedElem:o,selectionRange:c},ac=!1,de=s;de!==null;)if(s=de,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,de=o;else for(;de!==null;){s=de;try{var pe=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(pe!==null){var he=pe.memoizedProps,Ct=pe.memoizedState,U=s.stateNode,T=U.getSnapshotBeforeUpdate(s.elementType===s.type?he:$n(s.type,he),Ct);U.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var L=s.stateNode.containerInfo;L.nodeType===1?L.textContent="":L.nodeType===9&&L.documentElement&&L.removeChild(L.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ie){Ot(s,s.return,ie)}if(o=s.sibling,o!==null){o.return=s.return,de=o;break}de=s.return}return pe=ES,ES=!1,pe}function as(o,s,c){var v=s.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var g=v=v.next;do{if((g.tag&o)===o){var b=g.destroy;g.destroy=void 0,b!==void 0&&Qv(s,c,b)}g=g.next}while(g!==v)}}function Lc(o,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var c=s=s.next;do{if((c.tag&o)===o){var v=c.create;c.destroy=v()}c=c.next}while(c!==s)}}function eh(o){var s=o.ref;if(s!==null){var c=o.stateNode;switch(o.tag){case 5:o=c;break;default:o=c}typeof s=="function"?s(o):s.current=o}}function zS(o){var s=o.alternate;s!==null&&(o.alternate=null,zS(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&(delete s[Mn],delete s[Hu],delete s[hv],delete s[zU],delete s[AU])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function AS(o){return o.tag===5||o.tag===3||o.tag===4}function jS(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||AS(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function th(o,s,c){var v=o.tag;if(v===5||v===6)o=o.stateNode,s?c.nodeType===8?c.parentNode.insertBefore(o,s):c.insertBefore(o,s):(c.nodeType===8?(s=c.parentNode,s.insertBefore(o,c)):(s=c,s.appendChild(o)),c=c._reactRootContainer,c!=null||s.onclick!==null||(s.onclick=gc));else if(v!==4&&(o=o.child,o!==null))for(th(o,s,c),o=o.sibling;o!==null;)th(o,s,c),o=o.sibling}function rh(o,s,c){var v=o.tag;if(v===5||v===6)o=o.stateNode,s?c.insertBefore(o,s):c.appendChild(o);else if(v!==4&&(o=o.child,o!==null))for(rh(o,s,c),o=o.sibling;o!==null;)rh(o,s,c),o=o.sibling}var Qt=null,In=!1;function Vi(o,s,c){for(c=c.child;c!==null;)CS(o,s,c),c=c.sibling}function CS(o,s,c){if(Dn&&typeof Dn.onCommitFiberUnmount=="function")try{Dn.onCommitFiberUnmount(Ql,c)}catch{}switch(c.tag){case 5:hr||No(c,s);case 6:var v=Qt,g=In;Qt=null,Vi(o,s,c),Qt=v,In=g,Qt!==null&&(In?(o=Qt,c=c.stateNode,o.nodeType===8?o.parentNode.removeChild(c):o.removeChild(c)):Qt.removeChild(c.stateNode));break;case 18:Qt!==null&&(In?(o=Qt,c=c.stateNode,o.nodeType===8?vv(o.parentNode,c):o.nodeType===1&&vv(o,c),Mu(o)):vv(Qt,c.stateNode));break;case 4:v=Qt,g=In,Qt=c.stateNode.containerInfo,In=!0,Vi(o,s,c),Qt=v,In=g;break;case 0:case 11:case 14:case 15:if(!hr&&(v=c.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){g=v=v.next;do{var b=g,S=b.destroy;b=b.tag,S!==void 0&&((b&2)!==0||(b&4)!==0)&&Qv(c,s,S),g=g.next}while(g!==v)}Vi(o,s,c);break;case 1:if(!hr&&(No(c,s),v=c.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=c.memoizedProps,v.state=c.memoizedState,v.componentWillUnmount()}catch(O){Ot(c,s,O)}Vi(o,s,c);break;case 21:Vi(o,s,c);break;case 22:c.mode&1?(hr=(v=hr)||c.memoizedState!==null,Vi(o,s,c),hr=v):Vi(o,s,c);break;default:Vi(o,s,c)}}function TS(o){var s=o.updateQueue;if(s!==null){o.updateQueue=null;var c=o.stateNode;c===null&&(c=o.stateNode=new KU),s.forEach(function(v){var g=nL.bind(null,o,v);c.has(v)||(c.add(v),v.then(g,g))})}}function Pn(o,s){var c=s.deletions;if(c!==null)for(var v=0;v<c.length;v++){var g=c[v];try{var b=o,S=s,O=S;e:for(;O!==null;){switch(O.tag){case 5:Qt=O.stateNode,In=!1;break e;case 3:Qt=O.stateNode.containerInfo,In=!0;break e;case 4:Qt=O.stateNode.containerInfo,In=!0;break e}O=O.return}if(Qt===null)throw Error(r(160));CS(b,S,g),Qt=null,In=!1;var C=g.alternate;C!==null&&(C.return=null),g.return=null}catch(Z){Ot(g,s,Z)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)NS(s,o),s=s.sibling}function NS(o,s){var c=o.alternate,v=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(Pn(s,o),Ln(o),v&4){try{as(3,o,o.return),Lc(3,o)}catch(he){Ot(o,o.return,he)}try{as(5,o,o.return)}catch(he){Ot(o,o.return,he)}}break;case 1:Pn(s,o),Ln(o),v&512&&c!==null&&No(c,c.return);break;case 5:if(Pn(s,o),Ln(o),v&512&&c!==null&&No(c,c.return),o.flags&32){var g=o.stateNode;try{Iu(g,"")}catch(he){Ot(o,o.return,he)}}if(v&4&&(g=o.stateNode,g!=null)){var b=o.memoizedProps,S=c!==null?c.memoizedProps:b,O=o.type,C=o.updateQueue;if(o.updateQueue=null,C!==null)try{O==="input"&&b.type==="radio"&&b.name!=null&&fr(g,b),Cm(O,S);var Z=Cm(O,b);for(S=0;S<C.length;S+=2){var Y=C[S],te=C[S+1];Y==="style"?gx(g,te):Y==="dangerouslySetInnerHTML"?vx(g,te):Y==="children"?Iu(g,te):A(g,Y,te,Z)}switch(O){case"input":_n(g,b);break;case"textarea":fx(g,b);break;case"select":var J=g._wrapperState.wasMultiple;g._wrapperState.wasMultiple=!!b.multiple;var le=b.value;le!=null?mo(g,!!b.multiple,le,!1):J!==!!b.multiple&&(b.defaultValue!=null?mo(g,!!b.multiple,b.defaultValue,!0):mo(g,!!b.multiple,b.multiple?[]:"",!1))}g[Hu]=b}catch(he){Ot(o,o.return,he)}}break;case 6:if(Pn(s,o),Ln(o),v&4){if(o.stateNode===null)throw Error(r(162));g=o.stateNode,b=o.memoizedProps;try{g.nodeValue=b}catch(he){Ot(o,o.return,he)}}break;case 3:if(Pn(s,o),Ln(o),v&4&&c!==null&&c.memoizedState.isDehydrated)try{Mu(s.containerInfo)}catch(he){Ot(o,o.return,he)}break;case 4:Pn(s,o),Ln(o);break;case 13:Pn(s,o),Ln(o),g=o.child,g.flags&8192&&(b=g.memoizedState!==null,g.stateNode.isHidden=b,!b||g.alternate!==null&&g.alternate.memoizedState!==null||(ah=jt())),v&4&&TS(o);break;case 22:if(Y=c!==null&&c.memoizedState!==null,o.mode&1?(hr=(Z=hr)||Y,Pn(s,o),hr=Z):Pn(s,o),Ln(o),v&8192){if(Z=o.memoizedState!==null,(o.stateNode.isHidden=Z)&&!Y&&(o.mode&1)!==0)for(de=o,Y=o.child;Y!==null;){for(te=de=Y;de!==null;){switch(J=de,le=J.child,J.tag){case 0:case 11:case 14:case 15:as(4,J,J.return);break;case 1:No(J,J.return);var pe=J.stateNode;if(typeof pe.componentWillUnmount=="function"){v=J,c=J.return;try{s=v,pe.props=s.memoizedProps,pe.state=s.memoizedState,pe.componentWillUnmount()}catch(he){Ot(v,c,he)}}break;case 5:No(J,J.return);break;case 22:if(J.memoizedState!==null){RS(te);continue}}le!==null?(le.return=J,de=le):RS(te)}Y=Y.sibling}e:for(Y=null,te=o;;){if(te.tag===5){if(Y===null){Y=te;try{g=te.stateNode,Z?(b=g.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none"):(O=te.stateNode,C=te.memoizedProps.style,S=C!=null&&C.hasOwnProperty("display")?C.display:null,O.style.display=hx("display",S))}catch(he){Ot(o,o.return,he)}}}else if(te.tag===6){if(Y===null)try{te.stateNode.nodeValue=Z?"":te.memoizedProps}catch(he){Ot(o,o.return,he)}}else if((te.tag!==22&&te.tag!==23||te.memoizedState===null||te===o)&&te.child!==null){te.child.return=te,te=te.child;continue}if(te===o)break e;for(;te.sibling===null;){if(te.return===null||te.return===o)break e;Y===te&&(Y=null),te=te.return}Y===te&&(Y=null),te.sibling.return=te.return,te=te.sibling}}break;case 19:Pn(s,o),Ln(o),v&4&&TS(o);break;case 21:break;default:Pn(s,o),Ln(o)}}function Ln(o){var s=o.flags;if(s&2){try{e:{for(var c=o.return;c!==null;){if(AS(c)){var v=c;break e}c=c.return}throw Error(r(160))}switch(v.tag){case 5:var g=v.stateNode;v.flags&32&&(Iu(g,""),v.flags&=-33);var b=jS(o);rh(o,b,g);break;case 3:case 4:var S=v.stateNode.containerInfo,O=jS(o);th(o,O,S);break;default:throw Error(r(161))}}catch(C){Ot(o,o.return,C)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function GU(o,s,c){de=o,DS(o)}function DS(o,s,c){for(var v=(o.mode&1)!==0;de!==null;){var g=de,b=g.child;if(g.tag===22&&v){var S=g.memoizedState!==null||Uc;if(!S){var O=g.alternate,C=O!==null&&O.memoizedState!==null||hr;O=Uc;var Z=hr;if(Uc=S,(hr=C)&&!Z)for(de=g;de!==null;)S=de,C=S.child,S.tag===22&&S.memoizedState!==null?US(g):C!==null?(C.return=S,de=C):US(g);for(;b!==null;)de=b,DS(b),b=b.sibling;de=g,Uc=O,hr=Z}MS(o)}else(g.subtreeFlags&8772)!==0&&b!==null?(b.return=g,de=b):MS(o)}}function MS(o){for(;de!==null;){var s=de;if((s.flags&8772)!==0){var c=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:hr||Lc(5,s);break;case 1:var v=s.stateNode;if(s.flags&4&&!hr)if(c===null)v.componentDidMount();else{var g=s.elementType===s.type?c.memoizedProps:$n(s.type,c.memoizedProps);v.componentDidUpdate(g,c.memoizedState,v.__reactInternalSnapshotBeforeUpdate)}var b=s.updateQueue;b!==null&&Rk(s,b,v);break;case 3:var S=s.updateQueue;if(S!==null){if(c=null,s.child!==null)switch(s.child.tag){case 5:c=s.child.stateNode;break;case 1:c=s.child.stateNode}Rk(s,S,c)}break;case 5:var O=s.stateNode;if(c===null&&s.flags&4){c=O;var C=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":C.autoFocus&&c.focus();break;case"img":C.src&&(c.src=C.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var Z=s.alternate;if(Z!==null){var Y=Z.memoizedState;if(Y!==null){var te=Y.dehydrated;te!==null&&Mu(te)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}hr||s.flags&512&&eh(s)}catch(J){Ot(s,s.return,J)}}if(s===o){de=null;break}if(c=s.sibling,c!==null){c.return=s.return,de=c;break}de=s.return}}function RS(o){for(;de!==null;){var s=de;if(s===o){de=null;break}var c=s.sibling;if(c!==null){c.return=s.return,de=c;break}de=s.return}}function US(o){for(;de!==null;){var s=de;try{switch(s.tag){case 0:case 11:case 15:var c=s.return;try{Lc(4,s)}catch(C){Ot(s,c,C)}break;case 1:var v=s.stateNode;if(typeof v.componentDidMount=="function"){var g=s.return;try{v.componentDidMount()}catch(C){Ot(s,g,C)}}var b=s.return;try{eh(s)}catch(C){Ot(s,b,C)}break;case 5:var S=s.return;try{eh(s)}catch(C){Ot(s,S,C)}}}catch(C){Ot(s,s.return,C)}if(s===o){de=null;break}var O=s.sibling;if(O!==null){O.return=s.return,de=O;break}de=s.return}}var JU=Math.ceil,Zc=I.ReactCurrentDispatcher,nh=I.ReactCurrentOwner,on=I.ReactCurrentBatchConfig,Ge=0,Bt=null,Tt=null,er=0,Wr=0,Do=Zi(0),Mt=0,os=null,Pa=0,Fc=0,ih=0,us=null,jr=null,ah=0,Mo=1/0,si=null,Bc=!1,oh=null,Ki=null,qc=!1,Hi=null,Wc=0,ss=0,uh=null,Vc=-1,Kc=0;function kr(){return(Ge&6)!==0?jt():Vc!==-1?Vc:Vc=jt()}function Gi(o){return(o.mode&1)===0?1:(Ge&2)!==0&&er!==0?er&-er:CU.transition!==null?(Kc===0&&(Kc=jx()),Kc):(o=Qe,o!==0||(o=window.event,o=o===void 0?16:Zx(o.type)),o)}function On(o,s,c,v){if(50<ss)throw ss=0,uh=null,Error(r(185));ju(o,c,v),((Ge&2)===0||o!==Bt)&&(o===Bt&&((Ge&2)===0&&(Fc|=c),Mt===4&&Ji(o,er)),Cr(o,v),c===1&&Ge===0&&(s.mode&1)===0&&(Mo=jt()+500,_c&&Bi()))}function Cr(o,s){var c=o.callbackNode;CR(o,s);var v=rc(o,o===Bt?er:0);if(v===0)c!==null&&Ex(c),o.callbackNode=null,o.callbackPriority=0;else if(s=v&-v,o.callbackPriority!==s){if(c!=null&&Ex(c),s===1)o.tag===0?jU(ZS.bind(null,o)):Ik(ZS.bind(null,o)),OU(function(){(Ge&6)===0&&Bi()}),c=null;else{switch(Cx(v)){case 1:c=Lm;break;case 4:c=zx;break;case 16:c=Xl;break;case 536870912:c=Ax;break;default:c=Xl}c=GS(c,LS.bind(null,o))}o.callbackPriority=s,o.callbackNode=c}}function LS(o,s){if(Vc=-1,Kc=0,(Ge&6)!==0)throw Error(r(327));var c=o.callbackNode;if(Ro()&&o.callbackNode!==c)return null;var v=rc(o,o===Bt?er:0);if(v===0)return null;if((v&30)!==0||(v&o.expiredLanes)!==0||s)s=Hc(o,v);else{s=v;var g=Ge;Ge|=2;var b=BS();(Bt!==o||er!==s)&&(si=null,Mo=jt()+500,Ea(o,s));do try{QU();break}catch(O){FS(o,O)}while(!0);$v(),Zc.current=b,Ge=g,Tt!==null?s=0:(Bt=null,er=0,s=Mt)}if(s!==0){if(s===2&&(g=Zm(o),g!==0&&(v=g,s=sh(o,g))),s===1)throw c=os,Ea(o,0),Ji(o,v),Cr(o,jt()),c;if(s===6)Ji(o,v);else{if(g=o.current.alternate,(v&30)===0&&!YU(g)&&(s=Hc(o,v),s===2&&(b=Zm(o),b!==0&&(v=b,s=sh(o,b))),s===1))throw c=os,Ea(o,0),Ji(o,v),Cr(o,jt()),c;switch(o.finishedWork=g,o.finishedLanes=v,s){case 0:case 1:throw Error(r(345));case 2:za(o,jr,si);break;case 3:if(Ji(o,v),(v&130023424)===v&&(s=ah+500-jt(),10<s)){if(rc(o,0)!==0)break;if(g=o.suspendedLanes,(g&v)!==v){kr(),o.pingedLanes|=o.suspendedLanes&g;break}o.timeoutHandle=mv(za.bind(null,o,jr,si),s);break}za(o,jr,si);break;case 4:if(Ji(o,v),(v&4194240)===v)break;for(s=o.eventTimes,g=-1;0<v;){var S=31-xn(v);b=1<<S,S=s[S],S>g&&(g=S),v&=~b}if(v=g,v=jt()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*JU(v/1960))-v,10<v){o.timeoutHandle=mv(za.bind(null,o,jr,si),v);break}za(o,jr,si);break;case 5:za(o,jr,si);break;default:throw Error(r(329))}}}return Cr(o,jt()),o.callbackNode===c?LS.bind(null,o):null}function sh(o,s){var c=us;return o.current.memoizedState.isDehydrated&&(Ea(o,s).flags|=256),o=Hc(o,s),o!==2&&(s=jr,jr=c,s!==null&&lh(s)),o}function lh(o){jr===null?jr=o:jr.push.apply(jr,o)}function YU(o){for(var s=o;;){if(s.flags&16384){var c=s.updateQueue;if(c!==null&&(c=c.stores,c!==null))for(var v=0;v<c.length;v++){var g=c[v],b=g.getSnapshot;g=g.value;try{if(!kn(b(),g))return!1}catch{return!1}}}if(c=s.child,s.subtreeFlags&16384&&c!==null)c.return=s,s=c;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ji(o,s){for(s&=~ih,s&=~Fc,o.suspendedLanes|=s,o.pingedLanes&=~s,o=o.expirationTimes;0<s;){var c=31-xn(s),v=1<<c;o[c]=-1,s&=~v}}function ZS(o){if((Ge&6)!==0)throw Error(r(327));Ro();var s=rc(o,0);if((s&1)===0)return Cr(o,jt()),null;var c=Hc(o,s);if(o.tag!==0&&c===2){var v=Zm(o);v!==0&&(s=v,c=sh(o,v))}if(c===1)throw c=os,Ea(o,0),Ji(o,s),Cr(o,jt()),c;if(c===6)throw Error(r(345));return o.finishedWork=o.current.alternate,o.finishedLanes=s,za(o,jr,si),Cr(o,jt()),null}function ch(o,s){var c=Ge;Ge|=1;try{return o(s)}finally{Ge=c,Ge===0&&(Mo=jt()+500,_c&&Bi())}}function Oa(o){Hi!==null&&Hi.tag===0&&(Ge&6)===0&&Ro();var s=Ge;Ge|=1;var c=on.transition,v=Qe;try{if(on.transition=null,Qe=1,o)return o()}finally{Qe=v,on.transition=c,Ge=s,(Ge&6)===0&&Bi()}}function dh(){Wr=Do.current,ct(Do)}function Ea(o,s){o.finishedWork=null,o.finishedLanes=0;var c=o.timeoutHandle;if(c!==-1&&(o.timeoutHandle=-1,PU(c)),Tt!==null)for(c=Tt.return;c!==null;){var v=c;switch(wv(v),v.tag){case 1:v=v.type.childContextTypes,v!=null&&bc();break;case 3:Co(),ct(Er),ct(pr),Cv();break;case 5:Av(v);break;case 4:Co();break;case 13:ct(xt);break;case 19:ct(xt);break;case 10:Iv(v.type._context);break;case 22:case 23:dh()}c=c.return}if(Bt=o,Tt=o=Yi(o.current,null),er=Wr=s,Mt=0,os=null,ih=Fc=Pa=0,jr=us=null,Sa!==null){for(s=0;s<Sa.length;s++)if(c=Sa[s],v=c.interleaved,v!==null){c.interleaved=null;var g=v.next,b=c.pending;if(b!==null){var S=b.next;b.next=g,v.next=S}c.pending=v}Sa=null}return o}function FS(o,s){do{var c=Tt;try{if($v(),Ac.current=Nc,jc){for(var v=kt.memoizedState;v!==null;){var g=v.queue;g!==null&&(g.pending=null),v=v.next}jc=!1}if(Ia=0,Ft=Dt=kt=null,es=!1,ts=0,nh.current=null,c===null||c.return===null){Mt=1,os=s,Tt=null;break}e:{var b=o,S=c.return,O=c,C=s;if(s=er,O.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){var Z=C,Y=O,te=Y.tag;if((Y.mode&1)===0&&(te===0||te===11||te===15)){var J=Y.alternate;J?(Y.updateQueue=J.updateQueue,Y.memoizedState=J.memoizedState,Y.lanes=J.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var le=pS(S);if(le!==null){le.flags&=-257,mS(le,S,O,b,s),le.mode&1&&fS(b,Z,s),s=le,C=Z;var pe=s.updateQueue;if(pe===null){var he=new Set;he.add(C),s.updateQueue=he}else pe.add(C);break e}else{if((s&1)===0){fS(b,Z,s),fh();break e}C=Error(r(426))}}else if(vt&&O.mode&1){var Ct=pS(S);if(Ct!==null){(Ct.flags&65536)===0&&(Ct.flags|=256),mS(Ct,S,O,b,s),kv(To(C,O));break e}}b=C=To(C,O),Mt!==4&&(Mt=2),us===null?us=[b]:us.push(b),b=S;do{switch(b.tag){case 3:b.flags|=65536,s&=-s,b.lanes|=s;var U=cS(b,C,s);Mk(b,U);break e;case 1:O=C;var T=b.type,L=b.stateNode;if((b.flags&128)===0&&(typeof T.getDerivedStateFromError=="function"||L!==null&&typeof L.componentDidCatch=="function"&&(Ki===null||!Ki.has(L)))){b.flags|=65536,s&=-s,b.lanes|=s;var ie=dS(b,O,s);Mk(b,ie);break e}}b=b.return}while(b!==null)}WS(c)}catch(ye){s=ye,Tt===c&&c!==null&&(Tt=c=c.return);continue}break}while(!0)}function BS(){var o=Zc.current;return Zc.current=Nc,o===null?Nc:o}function fh(){(Mt===0||Mt===3||Mt===2)&&(Mt=4),Bt===null||(Pa&268435455)===0&&(Fc&268435455)===0||Ji(Bt,er)}function Hc(o,s){var c=Ge;Ge|=2;var v=BS();(Bt!==o||er!==s)&&(si=null,Ea(o,s));do try{XU();break}catch(g){FS(o,g)}while(!0);if($v(),Ge=c,Zc.current=v,Tt!==null)throw Error(r(261));return Bt=null,er=0,Mt}function XU(){for(;Tt!==null;)qS(Tt)}function QU(){for(;Tt!==null&&!SR();)qS(Tt)}function qS(o){var s=HS(o.alternate,o,Wr);o.memoizedProps=o.pendingProps,s===null?WS(o):Tt=s,nh.current=null}function WS(o){var s=o;do{var c=s.alternate;if(o=s.return,(s.flags&32768)===0){if(c=WU(c,s,Wr),c!==null){Tt=c;return}}else{if(c=VU(c,s),c!==null){c.flags&=32767,Tt=c;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{Mt=6,Tt=null;return}}if(s=s.sibling,s!==null){Tt=s;return}Tt=s=o}while(s!==null);Mt===0&&(Mt=5)}function za(o,s,c){var v=Qe,g=on.transition;try{on.transition=null,Qe=1,eL(o,s,c,v)}finally{on.transition=g,Qe=v}return null}function eL(o,s,c,v){do Ro();while(Hi!==null);if((Ge&6)!==0)throw Error(r(327));c=o.finishedWork;var g=o.finishedLanes;if(c===null)return null;if(o.finishedWork=null,o.finishedLanes=0,c===o.current)throw Error(r(177));o.callbackNode=null,o.callbackPriority=0;var b=c.lanes|c.childLanes;if(TR(o,b),o===Bt&&(Tt=Bt=null,er=0),(c.subtreeFlags&2064)===0&&(c.flags&2064)===0||qc||(qc=!0,GS(Xl,function(){return Ro(),null})),b=(c.flags&15990)!==0,(c.subtreeFlags&15990)!==0||b){b=on.transition,on.transition=null;var S=Qe;Qe=1;var O=Ge;Ge|=4,nh.current=null,HU(o,c),NS(c,o),wU(fv),ac=!!dv,fv=dv=null,o.current=c,GU(c),$R(),Ge=O,Qe=S,on.transition=b}else o.current=c;if(qc&&(qc=!1,Hi=o,Wc=g),b=o.pendingLanes,b===0&&(Ki=null),OR(c.stateNode),Cr(o,jt()),s!==null)for(v=o.onRecoverableError,c=0;c<s.length;c++)g=s[c],v(g.value,{componentStack:g.stack,digest:g.digest});if(Bc)throw Bc=!1,o=oh,oh=null,o;return(Wc&1)!==0&&o.tag!==0&&Ro(),b=o.pendingLanes,(b&1)!==0?o===uh?ss++:(ss=0,uh=o):ss=0,Bi(),null}function Ro(){if(Hi!==null){var o=Cx(Wc),s=on.transition,c=Qe;try{if(on.transition=null,Qe=16>o?16:o,Hi===null)var v=!1;else{if(o=Hi,Hi=null,Wc=0,(Ge&6)!==0)throw Error(r(331));var g=Ge;for(Ge|=4,de=o.current;de!==null;){var b=de,S=b.child;if((de.flags&16)!==0){var O=b.deletions;if(O!==null){for(var C=0;C<O.length;C++){var Z=O[C];for(de=Z;de!==null;){var Y=de;switch(Y.tag){case 0:case 11:case 15:as(8,Y,b)}var te=Y.child;if(te!==null)te.return=Y,de=te;else for(;de!==null;){Y=de;var J=Y.sibling,le=Y.return;if(zS(Y),Y===Z){de=null;break}if(J!==null){J.return=le,de=J;break}de=le}}}var pe=b.alternate;if(pe!==null){var he=pe.child;if(he!==null){pe.child=null;do{var Ct=he.sibling;he.sibling=null,he=Ct}while(he!==null)}}de=b}}if((b.subtreeFlags&2064)!==0&&S!==null)S.return=b,de=S;else e:for(;de!==null;){if(b=de,(b.flags&2048)!==0)switch(b.tag){case 0:case 11:case 15:as(9,b,b.return)}var U=b.sibling;if(U!==null){U.return=b.return,de=U;break e}de=b.return}}var T=o.current;for(de=T;de!==null;){S=de;var L=S.child;if((S.subtreeFlags&2064)!==0&&L!==null)L.return=S,de=L;else e:for(S=T;de!==null;){if(O=de,(O.flags&2048)!==0)try{switch(O.tag){case 0:case 11:case 15:Lc(9,O)}}catch(ye){Ot(O,O.return,ye)}if(O===S){de=null;break e}var ie=O.sibling;if(ie!==null){ie.return=O.return,de=ie;break e}de=O.return}}if(Ge=g,Bi(),Dn&&typeof Dn.onPostCommitFiberRoot=="function")try{Dn.onPostCommitFiberRoot(Ql,o)}catch{}v=!0}return v}finally{Qe=c,on.transition=s}}return!1}function VS(o,s,c){s=To(c,s),s=cS(o,s,1),o=Wi(o,s,1),s=kr(),o!==null&&(ju(o,1,s),Cr(o,s))}function Ot(o,s,c){if(o.tag===3)VS(o,o,c);else for(;s!==null;){if(s.tag===3){VS(s,o,c);break}else if(s.tag===1){var v=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(Ki===null||!Ki.has(v))){o=To(c,o),o=dS(s,o,1),s=Wi(s,o,1),o=kr(),s!==null&&(ju(s,1,o),Cr(s,o));break}}s=s.return}}function tL(o,s,c){var v=o.pingCache;v!==null&&v.delete(s),s=kr(),o.pingedLanes|=o.suspendedLanes&c,Bt===o&&(er&c)===c&&(Mt===4||Mt===3&&(er&130023424)===er&&500>jt()-ah?Ea(o,0):ih|=c),Cr(o,s)}function KS(o,s){s===0&&((o.mode&1)===0?s=1:(s=tc,tc<<=1,(tc&130023424)===0&&(tc=4194304)));var c=kr();o=ai(o,s),o!==null&&(ju(o,s,c),Cr(o,c))}function rL(o){var s=o.memoizedState,c=0;s!==null&&(c=s.retryLane),KS(o,c)}function nL(o,s){var c=0;switch(o.tag){case 13:var v=o.stateNode,g=o.memoizedState;g!==null&&(c=g.retryLane);break;case 19:v=o.stateNode;break;default:throw Error(r(314))}v!==null&&v.delete(s),KS(o,c)}var HS;HS=function(o,s,c){if(o!==null)if(o.memoizedProps!==s.pendingProps||Er.current)Ar=!0;else{if((o.lanes&c)===0&&(s.flags&128)===0)return Ar=!1,qU(o,s,c);Ar=(o.flags&131072)!==0}else Ar=!1,vt&&(s.flags&1048576)!==0&&Pk(s,kc,s.index);switch(s.lanes=0,s.tag){case 2:var v=s.type;Rc(o,s),o=s.pendingProps;var g=Io(s,pr.current);jo(s,c),g=Dv(null,s,v,o,g,c);var b=Mv();return s.flags|=1,typeof g=="object"&&g!==null&&typeof g.render=="function"&&g.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,zr(v)?(b=!0,wc(s)):b=!1,s.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,Ev(s),g.updater=Dc,s.stateNode=g,g._reactInternals=s,Bv(s,v,o,c),s=Kv(null,s,v,!0,b,c)):(s.tag=0,vt&&b&&bv(s),xr(null,s,g,c),s=s.child),s;case 16:v=s.elementType;e:{switch(Rc(o,s),o=s.pendingProps,g=v._init,v=g(v._payload),s.type=v,g=s.tag=aL(v),o=$n(v,o),g){case 0:s=Vv(null,s,v,o,c);break e;case 1:s=wS(null,s,v,o,c);break e;case 11:s=vS(null,s,v,o,c);break e;case 14:s=hS(null,s,v,$n(v.type,o),c);break e}throw Error(r(306,v,""))}return s;case 0:return v=s.type,g=s.pendingProps,g=s.elementType===v?g:$n(v,g),Vv(o,s,v,g,c);case 1:return v=s.type,g=s.pendingProps,g=s.elementType===v?g:$n(v,g),wS(o,s,v,g,c);case 3:e:{if(_S(s),o===null)throw Error(r(387));v=s.pendingProps,b=s.memoizedState,g=b.element,Dk(o,s),Ec(s,v,null,c);var S=s.memoizedState;if(v=S.element,b.isDehydrated)if(b={element:v,isDehydrated:!1,cache:S.cache,pendingSuspenseBoundaries:S.pendingSuspenseBoundaries,transitions:S.transitions},s.updateQueue.baseState=b,s.memoizedState=b,s.flags&256){g=To(Error(r(423)),s),s=xS(o,s,v,c,g);break e}else if(v!==g){g=To(Error(r(424)),s),s=xS(o,s,v,c,g);break e}else for(qr=Li(s.stateNode.containerInfo.firstChild),Br=s,vt=!0,Sn=null,c=Tk(s,null,v,c),s.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(Eo(),v===g){s=ui(o,s,c);break e}xr(o,s,v,c)}s=s.child}return s;case 5:return Uk(s),o===null&&xv(s),v=s.type,g=s.pendingProps,b=o!==null?o.memoizedProps:null,S=g.children,pv(v,g)?S=null:b!==null&&pv(v,b)&&(s.flags|=32),bS(o,s),xr(o,s,S,c),s.child;case 6:return o===null&&xv(s),null;case 13:return kS(o,s,c);case 4:return zv(s,s.stateNode.containerInfo),v=s.pendingProps,o===null?s.child=zo(s,null,v,c):xr(o,s,v,c),s.child;case 11:return v=s.type,g=s.pendingProps,g=s.elementType===v?g:$n(v,g),vS(o,s,v,g,c);case 7:return xr(o,s,s.pendingProps,c),s.child;case 8:return xr(o,s,s.pendingProps.children,c),s.child;case 12:return xr(o,s,s.pendingProps.children,c),s.child;case 10:e:{if(v=s.type._context,g=s.pendingProps,b=s.memoizedProps,S=g.value,st(Ic,v._currentValue),v._currentValue=S,b!==null)if(kn(b.value,S)){if(b.children===g.children&&!Er.current){s=ui(o,s,c);break e}}else for(b=s.child,b!==null&&(b.return=s);b!==null;){var O=b.dependencies;if(O!==null){S=b.child;for(var C=O.firstContext;C!==null;){if(C.context===v){if(b.tag===1){C=oi(-1,c&-c),C.tag=2;var Z=b.updateQueue;if(Z!==null){Z=Z.shared;var Y=Z.pending;Y===null?C.next=C:(C.next=Y.next,Y.next=C),Z.pending=C}}b.lanes|=c,C=b.alternate,C!==null&&(C.lanes|=c),Pv(b.return,c,s),O.lanes|=c;break}C=C.next}}else if(b.tag===10)S=b.type===s.type?null:b.child;else if(b.tag===18){if(S=b.return,S===null)throw Error(r(341));S.lanes|=c,O=S.alternate,O!==null&&(O.lanes|=c),Pv(S,c,s),S=b.sibling}else S=b.child;if(S!==null)S.return=b;else for(S=b;S!==null;){if(S===s){S=null;break}if(b=S.sibling,b!==null){b.return=S.return,S=b;break}S=S.return}b=S}xr(o,s,g.children,c),s=s.child}return s;case 9:return g=s.type,v=s.pendingProps.children,jo(s,c),g=nn(g),v=v(g),s.flags|=1,xr(o,s,v,c),s.child;case 14:return v=s.type,g=$n(v,s.pendingProps),g=$n(v.type,g),hS(o,s,v,g,c);case 15:return gS(o,s,s.type,s.pendingProps,c);case 17:return v=s.type,g=s.pendingProps,g=s.elementType===v?g:$n(v,g),Rc(o,s),s.tag=1,zr(v)?(o=!0,wc(s)):o=!1,jo(s,c),sS(s,v,g),Bv(s,v,g,c),Kv(null,s,v,!0,o,c);case 19:return $S(o,s,c);case 22:return yS(o,s,c)}throw Error(r(156,s.tag))};function GS(o,s){return Ox(o,s)}function iL(o,s,c,v){this.tag=o,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function un(o,s,c,v){return new iL(o,s,c,v)}function ph(o){return o=o.prototype,!(!o||!o.isReactComponent)}function aL(o){if(typeof o=="function")return ph(o)?1:0;if(o!=null){if(o=o.$$typeof,o===W)return 11;if(o===Ce)return 14}return 2}function Yi(o,s){var c=o.alternate;return c===null?(c=un(o.tag,s,o.key,o.mode),c.elementType=o.elementType,c.type=o.type,c.stateNode=o.stateNode,c.alternate=o,o.alternate=c):(c.pendingProps=s,c.type=o.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=o.flags&14680064,c.childLanes=o.childLanes,c.lanes=o.lanes,c.child=o.child,c.memoizedProps=o.memoizedProps,c.memoizedState=o.memoizedState,c.updateQueue=o.updateQueue,s=o.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},c.sibling=o.sibling,c.index=o.index,c.ref=o.ref,c}function Gc(o,s,c,v,g,b){var S=2;if(v=o,typeof o=="function")ph(o)&&(S=1);else if(typeof o=="string")S=5;else e:switch(o){case N:return Aa(c.children,g,b,s);case M:S=8,g|=8;break;case K:return o=un(12,c,s,g|2),o.elementType=K,o.lanes=b,o;case _e:return o=un(13,c,s,g),o.elementType=_e,o.lanes=b,o;case xe:return o=un(19,c,s,g),o.elementType=xe,o.lanes=b,o;case ge:return Jc(c,g,b,s);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case se:S=10;break e;case ae:S=9;break e;case W:S=11;break e;case Ce:S=14;break e;case Te:S=16,v=null;break e}throw Error(r(130,o==null?o:typeof o,""))}return s=un(S,c,s,g),s.elementType=o,s.type=v,s.lanes=b,s}function Aa(o,s,c,v){return o=un(7,o,v,s),o.lanes=c,o}function Jc(o,s,c,v){return o=un(22,o,v,s),o.elementType=ge,o.lanes=c,o.stateNode={isHidden:!1},o}function mh(o,s,c){return o=un(6,o,null,s),o.lanes=c,o}function vh(o,s,c){return s=un(4,o.children!==null?o.children:[],o.key,s),s.lanes=c,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}function oL(o,s,c,v,g){this.tag=s,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Fm(0),this.expirationTimes=Fm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fm(0),this.identifierPrefix=v,this.onRecoverableError=g,this.mutableSourceEagerHydrationData=null}function hh(o,s,c,v,g,b,S,O,C){return o=new oL(o,s,c,O,C),s===1?(s=1,b===!0&&(s|=8)):s=0,b=un(3,null,null,s),o.current=b,b.stateNode=o,b.memoizedState={element:v,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ev(b),o}function uL(o,s,c){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:v==null?null:""+v,children:o,containerInfo:s,implementation:c}}function JS(o){if(!o)return Fi;o=o._reactInternals;e:{if(ba(o)!==o||o.tag!==1)throw Error(r(170));var s=o;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(zr(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(r(171))}if(o.tag===1){var c=o.type;if(zr(c))return Sk(o,c,s)}return s}function YS(o,s,c,v,g,b,S,O,C){return o=hh(c,v,!0,o,g,b,S,O,C),o.context=JS(null),c=o.current,v=kr(),g=Gi(c),b=oi(v,g),b.callback=s??null,Wi(c,b,g),o.current.lanes=g,ju(o,g,v),Cr(o,v),o}function Yc(o,s,c,v){var g=s.current,b=kr(),S=Gi(g);return c=JS(c),s.context===null?s.context=c:s.pendingContext=c,s=oi(b,S),s.payload={element:o},v=v===void 0?null:v,v!==null&&(s.callback=v),o=Wi(g,s,S),o!==null&&(On(o,g,S,b),Oc(o,g,S)),S}function Xc(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function XS(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var c=o.retryLane;o.retryLane=c!==0&&c<s?c:s}}function gh(o,s){XS(o,s),(o=o.alternate)&&XS(o,s)}function sL(){return null}var QS=typeof reportError=="function"?reportError:function(o){console.error(o)};function yh(o){this._internalRoot=o}Qc.prototype.render=yh.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(r(409));Yc(o,s,null,null)},Qc.prototype.unmount=yh.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;Oa(function(){Yc(null,o,null,null)}),s[ti]=null}};function Qc(o){this._internalRoot=o}Qc.prototype.unstable_scheduleHydration=function(o){if(o){var s=Dx();o={blockedOn:null,target:o,priority:s};for(var c=0;c<Mi.length&&s!==0&&s<Mi[c].priority;c++);Mi.splice(c,0,o),c===0&&Ux(o)}};function bh(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function ed(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function e$(){}function lL(o,s,c,v,g){if(g){if(typeof v=="function"){var b=v;v=function(){var Z=Xc(S);b.call(Z)}}var S=YS(s,v,o,0,null,!1,!1,"",e$);return o._reactRootContainer=S,o[ti]=S.current,Vu(o.nodeType===8?o.parentNode:o),Oa(),S}for(;g=o.lastChild;)o.removeChild(g);if(typeof v=="function"){var O=v;v=function(){var Z=Xc(C);O.call(Z)}}var C=hh(o,0,!1,null,null,!1,!1,"",e$);return o._reactRootContainer=C,o[ti]=C.current,Vu(o.nodeType===8?o.parentNode:o),Oa(function(){Yc(s,C,c,v)}),C}function td(o,s,c,v,g){var b=c._reactRootContainer;if(b){var S=b;if(typeof g=="function"){var O=g;g=function(){var C=Xc(S);O.call(C)}}Yc(s,S,o,g)}else S=lL(c,s,o,g,v);return Xc(S)}Tx=function(o){switch(o.tag){case 3:var s=o.stateNode;if(s.current.memoizedState.isDehydrated){var c=Au(s.pendingLanes);c!==0&&(Bm(s,c|1),Cr(s,jt()),(Ge&6)===0&&(Mo=jt()+500,Bi()))}break;case 13:Oa(function(){var v=ai(o,1);if(v!==null){var g=kr();On(v,o,1,g)}}),gh(o,1)}},qm=function(o){if(o.tag===13){var s=ai(o,134217728);if(s!==null){var c=kr();On(s,o,134217728,c)}gh(o,134217728)}},Nx=function(o){if(o.tag===13){var s=Gi(o),c=ai(o,s);if(c!==null){var v=kr();On(c,o,s,v)}gh(o,s)}},Dx=function(){return Qe},Mx=function(o,s){var c=Qe;try{return Qe=o,s()}finally{Qe=c}},Dm=function(o,s,c){switch(s){case"input":if(_n(o,c),s=c.name,c.type==="radio"&&s!=null){for(c=o;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<c.length;s++){var v=c[s];if(v!==o&&v.form===o.form){var g=yc(v);if(!g)throw Error(r(90));Q(v),_n(v,g)}}}break;case"textarea":fx(o,c);break;case"select":s=c.value,s!=null&&mo(o,!!c.multiple,s,!1)}},_x=ch,xx=Oa;var cL={usingClientEntryPoint:!1,Events:[Gu,So,yc,bx,wx,ch]},ls={findFiberByHostInstance:wa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},dL={bundleType:ls.bundleType,version:ls.version,rendererPackageName:ls.rendererPackageName,rendererConfig:ls.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:I.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=Ix(o),o===null?null:o.stateNode},findFiberByHostInstance:ls.findFiberByHostInstance||sL,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rd.isDisabled&&rd.supportsFiber)try{Ql=rd.inject(dL),Dn=rd}catch{}}return Tr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cL,Tr.createPortal=function(o,s){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bh(s))throw Error(r(200));return uL(o,s,null,c)},Tr.createRoot=function(o,s){if(!bh(o))throw Error(r(299));var c=!1,v="",g=QS;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(v=s.identifierPrefix),s.onRecoverableError!==void 0&&(g=s.onRecoverableError)),s=hh(o,1,!1,null,null,c,!1,v,g),o[ti]=s.current,Vu(o.nodeType===8?o.parentNode:o),new yh(s)},Tr.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=Ix(s),o=o===null?null:o.stateNode,o},Tr.flushSync=function(o){return Oa(o)},Tr.hydrate=function(o,s,c){if(!ed(s))throw Error(r(200));return td(null,o,s,!0,c)},Tr.hydrateRoot=function(o,s,c){if(!bh(o))throw Error(r(405));var v=c!=null&&c.hydratedSources||null,g=!1,b="",S=QS;if(c!=null&&(c.unstable_strictMode===!0&&(g=!0),c.identifierPrefix!==void 0&&(b=c.identifierPrefix),c.onRecoverableError!==void 0&&(S=c.onRecoverableError)),s=YS(s,null,o,1,c??null,g,!1,b,S),o[ti]=s.current,Vu(o),v)for(o=0;o<v.length;o++)c=v[o],g=c._getVersion,g=g(c._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[c,g]:s.mutableSourceEagerHydrationData.push(c,g);return new Qc(s)},Tr.render=function(o,s,c){if(!ed(s))throw Error(r(200));return td(null,o,s,!1,c)},Tr.unmountComponentAtNode=function(o){if(!ed(o))throw Error(r(40));return o._reactRootContainer?(Oa(function(){td(null,null,o,!1,function(){o._reactRootContainer=null,o[ti]=null})}),!0):!1},Tr.unstable_batchedUpdates=ch,Tr.unstable_renderSubtreeIntoContainer=function(o,s,c,v){if(!ed(c))throw Error(r(200));if(o==null||o._reactInternals===void 0)throw Error(r(38));return td(o,s,c,!1,v)},Tr.version="18.3.1-next-f1338f8080-20240426",Tr}var K$;function lD(){if(K$)return Sh.exports;K$=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(),Sh.exports=gV(),Sh.exports}var H$;function yV(){if(H$)return fd;H$=1;var e=lD();return fd.createRoot=e.createRoot,fd.hydrateRoot=e.hydrateRoot,fd}var bV=yV();function cD(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=cD(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function at(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=cD(e))&&(n&&(n+=" "),n+=t);return n}const G$=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,J$=at,dD=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return J$(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:a}=t,u=Object.keys(i).map(f=>{const p=r==null?void 0:r[f],m=a==null?void 0:a[f];if(p===null)return null;const h=G$(p)||G$(m);return i[f][h]}),l=r&&Object.entries(r).reduce((f,p)=>{let[m,h]=p;return h===void 0||(f[m]=h),f},{}),d=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((f,p)=>{let{class:m,className:h,...y}=p;return Object.entries(y).every(w=>{let[_,x]=w;return Array.isArray(x)?x.includes({...a,...l}[_]):{...a,...l}[_]===x})?[...f,m,h]:f},[]);return J$(e,u,d,r==null?void 0:r.class,r==null?void 0:r.className)},wV=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},_V=(e,t)=>({classGroupId:e,validator:t}),fD=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Xd="-",Y$=[],xV="arbitrary..",kV=e=>{const t=$V(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return SV(u);const l=u.split(Xd),d=l[0]===""&&l.length>1?1:0;return pD(l,d,t)},getConflictingClassGroupIds:(u,l)=>{if(l){const d=n[u],f=r[u];return d?f?wV(f,d):d:f||Y$}return r[u]||Y$}}},pD=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],a=r.nextPart.get(i);if(a){const f=pD(e,t+1,a);if(f)return f}const u=r.validators;if(u===null)return;const l=t===0?e.join(Xd):e.slice(t).join(Xd),d=u.length;for(let f=0;f<d;f++){const p=u[f];if(p.validator(l))return p.classGroupId}},SV=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?xV+n:void 0})(),$V=e=>{const{theme:t,classGroups:r}=e;return IV(r,t)},IV=(e,t)=>{const r=fD();for(const n in e){const i=e[n];Cw(i,r,n,t)}return r},Cw=(e,t,r,n)=>{const i=e.length;for(let a=0;a<i;a++){const u=e[a];PV(u,t,r,n)}},PV=(e,t,r,n)=>{if(typeof e=="string"){OV(e,t,r);return}if(typeof e=="function"){EV(e,t,r,n);return}zV(e,t,r,n)},OV=(e,t,r)=>{const n=e===""?t:mD(t,e);n.classGroupId=r},EV=(e,t,r,n)=>{if(AV(e)){Cw(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(_V(r,e))},zV=(e,t,r,n)=>{const i=Object.entries(e),a=i.length;for(let u=0;u<a;u++){const[l,d]=i[u];Cw(d,mD(t,l),r,n)}},mD=(e,t)=>{let r=e;const n=t.split(Xd),i=n.length;for(let a=0;a<i;a++){const u=n[a];let l=r.nextPart.get(u);l||(l=fD(),r.nextPart.set(u,l)),r=l}return r},AV=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,jV=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(a,u)=>{r[a]=u,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let u=r[a];if(u!==void 0)return u;if((u=n[a])!==void 0)return i(a,u),u},set(a,u){a in r?r[a]=u:i(a,u)}}},my="!",X$=":",CV=[],Q$=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),TV=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const a=[];let u=0,l=0,d=0,f;const p=i.length;for(let _=0;_<p;_++){const x=i[_];if(u===0&&l===0){if(x===X$){a.push(i.slice(d,_)),d=_+1;continue}if(x==="/"){f=_;continue}}x==="["?u++:x==="]"?u--:x==="("?l++:x===")"&&l--}const m=a.length===0?i:i.slice(d);let h=m,y=!1;m.endsWith(my)?(h=m.slice(0,-1),y=!0):m.startsWith(my)&&(h=m.slice(1),y=!0);const w=f&&f>d?f-d:void 0;return Q$(a,y,h,w)};if(t){const i=t+X$,a=n;n=u=>u.startsWith(i)?a(u.slice(i.length)):Q$(CV,!1,u,void 0,!0)}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},NV=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let a=0;a<r.length;a++){const u=r[a],l=u[0]==="[",d=t.has(u);l||d?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(u)):i.push(u)}return i.length>0&&(i.sort(),n.push(...i)),n}},DV=e=>({cache:jV(e.cacheSize),parseClassName:TV(e),sortModifiers:NV(e),...kV(e)}),MV=/\s+/,RV=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a}=t,u=[],l=e.trim().split(MV);let d="";for(let f=l.length-1;f>=0;f-=1){const p=l[f],{isExternal:m,modifiers:h,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:_}=r(p);if(m){d=p+(d.length>0?" "+d:d);continue}let x=!!_,$=n(x?w.substring(0,_):w);if(!$){if(!x){d=p+(d.length>0?" "+d:d);continue}if($=n(w),!$){d=p+(d.length>0?" "+d:d);continue}x=!1}const E=h.length===0?"":h.length===1?h[0]:a(h).join(":"),A=y?E+my:E,I=A+$;if(u.indexOf(I)>-1)continue;u.push(I);const j=i($,x);for(let z=0;z<j.length;++z){const N=j[z];u.push(A+N)}d=p+(d.length>0?" "+d:d)}return d},UV=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=vD(r))&&(i&&(i+=" "),i+=n);return i},vD=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=vD(e[n]))&&(r&&(r+=" "),r+=t);return r},LV=(e,...t)=>{let r,n,i,a;const u=d=>{const f=t.reduce((p,m)=>m(p),e());return r=DV(f),n=r.cache.get,i=r.cache.set,a=l,l(d)},l=d=>{const f=n(d);if(f)return f;const p=RV(d,r);return i(d,p),p};return a=u,(...d)=>a(UV(...d))},ZV=[],Rt=e=>{const t=r=>r[e]||ZV;return t.isThemeGetter=!0,t},hD=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,gD=/^\((?:(\w[\w-]*):)?(.+)\)$/i,FV=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,BV=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qV=/\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$/,WV=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,VV=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,KV=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qi=e=>FV.test(e),Ze=e=>!!e&&!Number.isNaN(Number(e)),ea=e=>!!e&&Number.isInteger(Number(e)),Ph=e=>e.endsWith("%")&&Ze(e.slice(0,-1)),li=e=>BV.test(e),yD=()=>!0,HV=e=>qV.test(e)&&!WV.test(e),Tw=()=>!1,GV=e=>VV.test(e),JV=e=>KV.test(e),YV=e=>!me(e)&&!ve(e),XV=e=>va(e,_D,Tw),me=e=>hD.test(e),Ca=e=>va(e,xD,HV),e1=e=>va(e,oK,Ze),QV=e=>va(e,SD,yD),eK=e=>va(e,kD,Tw),t1=e=>va(e,bD,Tw),tK=e=>va(e,wD,JV),pd=e=>va(e,$D,GV),ve=e=>gD.test(e),ps=e=>co(e,xD),rK=e=>co(e,kD),r1=e=>co(e,bD),nK=e=>co(e,_D),iK=e=>co(e,wD),md=e=>co(e,$D,!0),aK=e=>co(e,SD,!0),va=(e,t,r)=>{const n=hD.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},co=(e,t,r=!1)=>{const n=gD.exec(e);return n?n[1]?t(n[1]):r:!1},bD=e=>e==="position"||e==="percentage",wD=e=>e==="image"||e==="url",_D=e=>e==="length"||e==="size"||e==="bg-size",xD=e=>e==="length",oK=e=>e==="number",kD=e=>e==="family-name",SD=e=>e==="number"||e==="weight",$D=e=>e==="shadow",uK=()=>{const e=Rt("color"),t=Rt("font"),r=Rt("text"),n=Rt("font-weight"),i=Rt("tracking"),a=Rt("leading"),u=Rt("breakpoint"),l=Rt("container"),d=Rt("spacing"),f=Rt("radius"),p=Rt("shadow"),m=Rt("inset-shadow"),h=Rt("text-shadow"),y=Rt("drop-shadow"),w=Rt("blur"),_=Rt("perspective"),x=Rt("aspect"),$=Rt("ease"),E=Rt("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...I(),ve,me],z=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],M=()=>[ve,me,d],K=()=>[Qi,"full","auto",...M()],se=()=>[ea,"none","subgrid",ve,me],ae=()=>["auto",{span:["full",ea,ve,me]},ea,ve,me],W=()=>[ea,"auto",ve,me],_e=()=>["auto","min","max","fr",ve,me],xe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ce=()=>["start","end","center","stretch","center-safe","end-safe"],Te=()=>["auto",...M()],ge=()=>[Qi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],X=()=>[Qi,"screen","full","dvw","lvw","svw","min","max","fit",...M()],oe=()=>[Qi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],B=()=>[e,ve,me],D=()=>[...I(),r1,t1,{position:[ve,me]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ie=()=>["auto","cover","contain",nK,XV,{size:[ve,me]}],Se=()=>[Ph,ps,Ca],$e=()=>["","none","full",f,ve,me],Pe=()=>["",Ze,ps,Ca],Me=()=>["solid","dashed","dotted","double"],We=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>[Ze,Ph,r1,t1],Oe=()=>["","none",w,ve,me],Ue=()=>["none",Ze,ve,me],Q=()=>["none",Ze,ve,me],_t=()=>[Ze,ve,me],Ke=()=>[Qi,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[li],breakpoint:[li],color:[yD],container:[li],"drop-shadow":[li],ease:["in","out","in-out"],font:[YV],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[li],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[li],shadow:[li],spacing:["px",Ze],text:[li],"text-shadow":[li],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qi,me,ve,x]}],container:["container"],columns:[{columns:[Ze,me,ve,l]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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:j()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[ea,"auto",ve,me]}],basis:[{basis:[Qi,"full","auto",l,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ze,Qi,"auto","initial","none",me]}],grow:[{grow:["",Ze,ve,me]}],shrink:[{shrink:["",Ze,ve,me]}],order:[{order:[ea,"first","last","none",ve,me]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:ae()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:ae()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_e()}],"auto-rows":[{"auto-rows":_e()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...xe(),"normal"]}],"justify-items":[{"justify-items":[...Ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ce()]}],"align-content":[{content:["normal",...xe()]}],"align-items":[{items:[...Ce(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ce(),{baseline:["","last"]}]}],"place-content":[{"place-content":xe()}],"place-items":[{"place-items":[...Ce(),"baseline"]}],"place-self":[{"place-self":["auto",...Ce()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:Te()}],mx:[{mx:Te()}],my:[{my:Te()}],ms:[{ms:Te()}],me:[{me:Te()}],mbs:[{mbs:Te()}],mbe:[{mbe:Te()}],mt:[{mt:Te()}],mr:[{mr:Te()}],mb:[{mb:Te()}],ml:[{ml:Te()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:ge()}],"inline-size":[{inline:["auto",...X()]}],"min-inline-size":[{"min-inline":["auto",...X()]}],"max-inline-size":[{"max-inline":["none",...X()]}],"block-size":[{block:["auto",...oe()]}],"min-block-size":[{"min-block":["auto",...oe()]}],"max-block-size":[{"max-block":["none",...oe()]}],w:[{w:[l,"screen",...ge()]}],"min-w":[{"min-w":[l,"screen","none",...ge()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[u]},...ge()]}],h:[{h:["screen","lh",...ge()]}],"min-h":[{"min-h":["screen","lh","none",...ge()]}],"max-h":[{"max-h":["screen","lh",...ge()]}],"font-size":[{text:["base",r,ps,Ca]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,aK,QV]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ph,me]}],"font-family":[{font:[rK,eK,t]}],"font-features":[{"font-features":[me]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ve,me]}],"line-clamp":[{"line-clamp":[Ze,"none",ve,e1]}],leading:[{leading:[a,...M()]}],"list-image":[{"list-image":["none",ve,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Me(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ze,"from-font","auto",ve,Ca]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Ze,"auto",ve,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:Ie()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ea,ve,me],radial:["",ve,me],conic:[ea,ve,me]},iK,tK]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:Se()}],"gradient-via-pos":[{via:Se()}],"gradient-to-pos":[{to:Se()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:$e()}],"rounded-s":[{"rounded-s":$e()}],"rounded-e":[{"rounded-e":$e()}],"rounded-t":[{"rounded-t":$e()}],"rounded-r":[{"rounded-r":$e()}],"rounded-b":[{"rounded-b":$e()}],"rounded-l":[{"rounded-l":$e()}],"rounded-ss":[{"rounded-ss":$e()}],"rounded-se":[{"rounded-se":$e()}],"rounded-ee":[{"rounded-ee":$e()}],"rounded-es":[{"rounded-es":$e()}],"rounded-tl":[{"rounded-tl":$e()}],"rounded-tr":[{"rounded-tr":$e()}],"rounded-br":[{"rounded-br":$e()}],"rounded-bl":[{"rounded-bl":$e()}],"border-w":[{border:Pe()}],"border-w-x":[{"border-x":Pe()}],"border-w-y":[{"border-y":Pe()}],"border-w-s":[{"border-s":Pe()}],"border-w-e":[{"border-e":Pe()}],"border-w-bs":[{"border-bs":Pe()}],"border-w-be":[{"border-be":Pe()}],"border-w-t":[{"border-t":Pe()}],"border-w-r":[{"border-r":Pe()}],"border-w-b":[{"border-b":Pe()}],"border-w-l":[{"border-l":Pe()}],"divide-x":[{"divide-x":Pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Me(),"hidden","none"]}],"divide-style":[{divide:[...Me(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-bs":[{"border-bs":B()}],"border-color-be":[{"border-be":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...Me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ze,ve,me]}],"outline-w":[{outline:["",Ze,ps,Ca]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",p,md,pd]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",m,md,pd]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:Pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Ze,Ca]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":Pe()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",h,md,pd]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[Ze,ve,me]}],"mix-blend":[{"mix-blend":[...We(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":We()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[ve,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"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":I()}],"mask-image-conic-pos":[{"mask-conic":[Ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:Ie()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,me]}],filter:[{filter:["","none",ve,me]}],blur:[{blur:Oe()}],brightness:[{brightness:[Ze,ve,me]}],contrast:[{contrast:[Ze,ve,me]}],"drop-shadow":[{"drop-shadow":["","none",y,md,pd]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",Ze,ve,me]}],"hue-rotate":[{"hue-rotate":[Ze,ve,me]}],invert:[{invert:["",Ze,ve,me]}],saturate:[{saturate:[Ze,ve,me]}],sepia:[{sepia:["",Ze,ve,me]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,me]}],"backdrop-blur":[{"backdrop-blur":Oe()}],"backdrop-brightness":[{"backdrop-brightness":[Ze,ve,me]}],"backdrop-contrast":[{"backdrop-contrast":[Ze,ve,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ze,ve,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ze,ve,me]}],"backdrop-invert":[{"backdrop-invert":["",Ze,ve,me]}],"backdrop-opacity":[{"backdrop-opacity":[Ze,ve,me]}],"backdrop-saturate":[{"backdrop-saturate":[Ze,ve,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Ze,ve,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ze,"initial",ve,me]}],ease:[{ease:["linear","initial",$,ve,me]}],delay:[{delay:[Ze,ve,me]}],animate:[{animate:["none",E,ve,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,ve,me]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:Ue()}],"rotate-x":[{"rotate-x":Ue()}],"rotate-y":[{"rotate-y":Ue()}],"rotate-z":[{"rotate-z":Ue()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:_t()}],"skew-x":[{"skew-x":_t()}],"skew-y":[{"skew-y":_t()}],transform:[{transform:[ve,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ke()}],"translate-x":[{"translate-x":Ke()}],"translate-y":[{"translate-y":Ke()}],"translate-z":[{"translate-z":Ke()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"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",ve,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ve,me]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Ze,ps,Ca,e1]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}},sK=LV(uK);function ha(...e){return sK(at(e))}function ID(e,t="USD"){const r=Number(e??0);return new Intl.NumberFormat("en-US",{style:"currency",currency:t,maximumFractionDigits:0}).format(r)}const lK=dD("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",pass:"border-transparent bg-emerald-600 text-white",review:"border-transparent bg-amber-500 text-white",fail:"border-transparent bg-red-600 text-white"}},defaultVariants:{variant:"default"}});function cK({className:e,variant:t,...r}){return ee.jsx("div",{className:ha(lK({variant:t}),e),...r})}const Al=k.forwardRef(({className:e,...t},r)=>ee.jsx("div",{ref:r,className:ha("rounded-xl border bg-card text-card-foreground shadow-lg",e),...t}));Al.displayName="Card";const Fp=k.forwardRef(({className:e,...t},r)=>ee.jsx("div",{ref:r,className:ha("flex flex-col space-y-1.5 p-6",e),...t}));Fp.displayName="CardHeader";const Bp=k.forwardRef(({className:e,...t},r)=>ee.jsx("div",{ref:r,className:ha("text-2xl font-semibold leading-none tracking-tight",e),...t}));Bp.displayName="CardTitle";const dK=k.forwardRef(({className:e,...t},r)=>ee.jsx("div",{ref:r,className:ha("text-sm text-muted-foreground",e),...t}));dK.displayName="CardDescription";const jl=k.forwardRef(({className:e,...t},r)=>ee.jsx("div",{ref:r,className:ha("p-6 pt-0",e),...t}));jl.displayName="CardContent";const fK=k.forwardRef(({className:e,...t},r)=>ee.jsx("div",{ref:r,className:ha("flex items-center p-6 pt-0",e),...t}));fK.displayName="CardFooter";const n1={PASS:{icon:"✅",label:"VERIFIED",variant:"pass",bg:"bg-emerald-50 dark:bg-emerald-950/30 border-emerald-200 dark:border-emerald-800",text:"text-emerald-800 dark:text-emerald-200"},REVIEW_REQUIRED:{icon:"⚠️",label:"REVIEW REQUIRED",variant:"review",bg:"bg-amber-50 dark:bg-amber-950/30 border-amber-200 dark:border-amber-800",text:"text-amber-800 dark:text-amber-200"},FAIL:{icon:"❌",label:"FAILED",variant:"fail",bg:"bg-red-50 dark:bg-red-950/30 border-red-200 dark:border-red-800",text:"text-red-800 dark:text-red-200"}};function pK({verification:e}){var r;const t=n1[e.verdict]??n1.FAIL;return ee.jsx(Al,{className:t.bg,children:ee.jsx(jl,{className:"pt-6",children:ee.jsxs("div",{className:"flex items-center justify-between",children:[ee.jsxs("div",{className:"flex items-center gap-3",children:[ee.jsx("span",{className:"text-3xl",role:"img","aria-label":t.label,children:t.icon}),ee.jsxs("div",{children:[ee.jsx("h2",{className:`text-xl font-bold ${t.text}`,children:t.label}),e.reviewRequired&&((r=e.reviewReasons)==null?void 0:r.length)>0&&ee.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:e.reviewReasons[0]})]})]}),e.confidenceScore!=null&&ee.jsxs("div",{className:"text-right",children:[ee.jsxs(cK,{variant:t.variant,className:"text-base px-4 py-1",children:[e.confidenceScore,"%"]}),ee.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Confidence"})]})]})})})}function mK({constraints:e,reviewReasons:t}){if(!e||e.length===0)return null;const r=e.filter(n=>n.passed).length;return ee.jsxs(Al,{children:[ee.jsx(Fp,{children:ee.jsxs(Bp,{className:"text-lg flex items-center justify-between",children:[ee.jsx("span",{children:"Constraints Checked"}),ee.jsxs("span",{className:"text-sm font-normal text-muted-foreground",children:[r,"/",e.length," passed"]})]})}),ee.jsxs(jl,{children:[ee.jsx("ul",{className:"space-y-3",children:e.map(n=>ee.jsxs("li",{className:"flex items-start gap-3 p-3 rounded-lg bg-secondary/30",children:[ee.jsx("span",{className:"mt-0.5 text-base flex-shrink-0",role:"img","aria-label":n.passed?"Passed":"Failed",children:n.passed?"✓":"⚠"}),ee.jsxs("div",{className:"flex-1 min-w-0",children:[ee.jsx("p",{className:`text-sm font-medium ${n.passed?"text-foreground":"text-amber-700 dark:text-amber-300"}`,children:n.description}),ee.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 uppercase tracking-wider",children:n.id.replace(/_/g," ")})]})]},n.id))}),t&&t.length>0&&ee.jsxs("div",{className:"mt-4 p-3 rounded-lg bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800",children:[ee.jsx("p",{className:"text-sm font-medium text-amber-800 dark:text-amber-200 mb-1",children:"Review Reasons"}),ee.jsx("ul",{className:"space-y-1",children:t.map((n,i)=>ee.jsxs("li",{className:"text-sm text-amber-700 dark:text-amber-300",children:["• ",n]},i))})]})]})]})}function vK({evidence:e}){const[t,r]=k.useState(!1);if(!e)return null;const n=[{label:"Years Covered",value:e.yearsCovered!=null?`${e.yearsCovered}`:null},{label:"Portfolio Runway",value:e.portfolioRunwayYears!=null?`${e.portfolioRunwayYears} years`:null},{label:"Success Probability",value:e.successProbability!=null?`${Math.round(e.successProbability*100)}%`:null},{label:"Net Worth at Horizon",value:e.netWorthAtHorizon!=null?ID(e.netWorthAtHorizon):null}].filter(a=>a.value!=null),i=[{label:"Shortfall Years",value:e.shortfallYearsCount!=null?`${e.shortfallYearsCount}`:null},{label:"First Shortfall Age",value:e.firstShortfallAge!=null?`Age ${e.firstShortfallAge}`:null},{label:"Assumption Set",value:e.assumptionSetId??null}].filter(a=>a.value!=null);return ee.jsxs(Al,{children:[ee.jsx(Fp,{className:"pb-3",children:ee.jsxs(Bp,{className:"text-lg flex items-center justify-between",children:[ee.jsx("span",{children:"Evidence & Assumptions"}),i.length>0&&ee.jsx("button",{onClick:()=>r(!t),className:"text-sm font-normal text-primary hover:underline no-print",children:t?"Collapse":"Show details"})]})}),ee.jsxs(jl,{children:[ee.jsx("div",{className:"grid grid-cols-2 gap-3",children:n.map(a=>ee.jsxs("div",{className:"p-3 rounded-lg bg-secondary/30",children:[ee.jsx("p",{className:"text-xs text-muted-foreground",children:a.label}),ee.jsx("p",{className:"text-lg font-semibold text-foreground",children:a.value})]},a.label))}),t&&i.length>0&&ee.jsx("div",{className:"mt-4 space-y-2 border-t pt-4",children:i.map(a=>ee.jsxs("div",{className:"flex items-center justify-between text-sm",children:[ee.jsx("span",{className:"text-muted-foreground",children:a.label}),ee.jsx("span",{className:"font-medium text-foreground",children:a.value})]},a.label))})]})]})}var hK=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function Nw(e){if(typeof e!="string")return!1;var t=hK;return t.includes(e)}var gK=["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"],yK=new Set(gK);function PD(e){return typeof e!="string"?!1:yK.has(e)}function OD(e){return typeof e=="string"&&e.startsWith("data-")}function Tn(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(PD(r)||OD(r))&&(t[r]=e[r]);return t}function qp(e){if(e==null)return null;if(k.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Tn(t)}return typeof e=="object"&&!Array.isArray(e)?Tn(e):null}function mn(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(PD(r)||OD(r)||Nw(r))&&(t[r]=e[r]);return t}function bK(e){return e==null?null:k.isValidElement(e)?mn(e.props):typeof e=="object"&&!Array.isArray(e)?mn(e):null}var wK=["children","width","height","viewBox","className","style","title","desc"];function vy(){return vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vy.apply(null,arguments)}function _K(e,t){if(e==null)return{};var r,n,i=xK(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function xK(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ED=k.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:u,style:l,title:d,desc:f}=e,p=_K(e,wK),m=a||{width:n,height:i,x:0,y:0},h=at("recharts-surface",u);return k.createElement("svg",vy({},mn(p),{className:h,width:n,height:i,style:l,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height),ref:t}),k.createElement("title",null,d),k.createElement("desc",null,f),r)}),kK=["children","className"];function hy(){return hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hy.apply(null,arguments)}function SK(e,t){if(e==null)return{};var r,n,i=$K(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function $K(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Gn=k.forwardRef((e,t)=>{var{children:r,className:n}=e,i=SK(e,kK),a=at("recharts-layer",n);return k.createElement("g",hy({className:a},mn(i),{ref:t}),r)}),zD=lD(),IK=k.createContext(null);function Et(e){return function(){return e}}const gy=Math.PI,yy=2*gy,Da=1e-6,PK=yy-Da;function AD(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function OK(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return AD;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class EK{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?AD:OK(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,u){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+u}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let u=this._x1,l=this._y1,d=n-t,f=i-r,p=u-t,m=l-r,h=p*p+m*m;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Da)if(!(Math.abs(m*d-f*p)>Da)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let y=n-u,w=i-l,_=d*d+f*f,x=y*y+w*w,$=Math.sqrt(_),E=Math.sqrt(h),A=a*Math.tan((gy-Math.acos((_+h-x)/(2*$*E)))/2),I=A/E,j=A/$;Math.abs(I-1)>Da&&this._append`L${t+I*p},${r+I*m}`,this._append`A${a},${a},0,0,${+(m*y>p*w)},${this._x1=t+j*d},${this._y1=r+j*f}`}}arc(t,r,n,i,a,u){if(t=+t,r=+r,n=+n,u=!!u,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),d=n*Math.sin(i),f=t+l,p=r+d,m=1^u,h=u?i-a:a-i;this._x1===null?this._append`M${f},${p}`:(Math.abs(this._x1-f)>Da||Math.abs(this._y1-p)>Da)&&this._append`L${f},${p}`,n&&(h<0&&(h=h%yy+yy),h>PK?this._append`A${n},${n},0,1,${m},${t-l},${r-d}A${n},${n},0,1,${m},${this._x1=f},${this._y1=p}`:h>Da&&this._append`A${n},${n},0,${+(h>=gy)},${m},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function jD(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new EK(t)}function Dw(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function CD(e){this._context=e}CD.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 Wp(e){return new CD(e)}function TD(e){return e[0]}function ND(e){return e[1]}function DD(e,t){var r=Et(!0),n=null,i=Wp,a=null,u=jD(l);e=typeof e=="function"?e:e===void 0?TD:Et(e),t=typeof t=="function"?t:t===void 0?ND:Et(t);function l(d){var f,p=(d=Dw(d)).length,m,h=!1,y;for(n==null&&(a=i(y=u())),f=0;f<=p;++f)!(f<p&&r(m=d[f],f,d))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(m,f,d),+t(m,f,d));if(y)return a=null,y+""||null}return l.x=function(d){return arguments.length?(e=typeof d=="function"?d:Et(+d),l):e},l.y=function(d){return arguments.length?(t=typeof d=="function"?d:Et(+d),l):t},l.defined=function(d){return arguments.length?(r=typeof d=="function"?d:Et(!!d),l):r},l.curve=function(d){return arguments.length?(i=d,n!=null&&(a=i(n)),l):i},l.context=function(d){return arguments.length?(d==null?n=a=null:a=i(n=d),l):n},l}function vd(e,t,r){var n=null,i=Et(!0),a=null,u=Wp,l=null,d=jD(f);e=typeof e=="function"?e:e===void 0?TD:Et(+e),t=typeof t=="function"?t:Et(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?ND:Et(+r);function f(m){var h,y,w,_=(m=Dw(m)).length,x,$=!1,E,A=new Array(_),I=new Array(_);for(a==null&&(l=u(E=d())),h=0;h<=_;++h){if(!(h<_&&i(x=m[h],h,m))===$)if($=!$)y=h,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),w=h-1;w>=y;--w)l.point(A[w],I[w]);l.lineEnd(),l.areaEnd()}$&&(A[h]=+e(x,h,m),I[h]=+t(x,h,m),l.point(n?+n(x,h,m):A[h],r?+r(x,h,m):I[h]))}if(E)return l=null,E+""||null}function p(){return DD().defined(i).curve(u).context(a)}return f.x=function(m){return arguments.length?(e=typeof m=="function"?m:Et(+m),n=null,f):e},f.x0=function(m){return arguments.length?(e=typeof m=="function"?m:Et(+m),f):e},f.x1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:Et(+m),f):n},f.y=function(m){return arguments.length?(t=typeof m=="function"?m:Et(+m),r=null,f):t},f.y0=function(m){return arguments.length?(t=typeof m=="function"?m:Et(+m),f):t},f.y1=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:Et(+m),f):r},f.lineX0=f.lineY0=function(){return p().x(e).y(t)},f.lineY1=function(){return p().x(e).y(r)},f.lineX1=function(){return p().x(n).y(t)},f.defined=function(m){return arguments.length?(i=typeof m=="function"?m:Et(!!m),f):i},f.curve=function(m){return arguments.length?(u=m,a!=null&&(l=u(a)),f):u},f.context=function(m){return arguments.length?(m==null?a=l=null:l=u(a=m),f):a},f}class MD{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function zK(e){return new MD(e,!0)}function AK(e){return new MD(e,!1)}function Qd(){}function ef(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function RD(e){this._context=e}RD.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:ef(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:ef(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jK(e){return new RD(e)}function UD(e){this._context=e}UD.prototype={areaStart:Qd,areaEnd:Qd,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:ef(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CK(e){return new UD(e)}function LD(e){this._context=e}LD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ef(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function TK(e){return new LD(e)}function ZD(e){this._context=e}ZD.prototype={areaStart:Qd,areaEnd:Qd,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 NK(e){return new ZD(e)}function i1(e){return e<0?-1:1}function a1(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),u=(r-e._y1)/(i||n<0&&-0),l=(a*i+u*n)/(n+i);return(i1(a)+i1(u))*Math.min(Math.abs(a),Math.abs(u),.5*Math.abs(l))||0}function o1(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Oh(e,t,r){var n=e._x0,i=e._y0,a=e._x1,u=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,u-l*r,a,u)}function tf(e){this._context=e}tf.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:Oh(this,this._t0,o1(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Oh(this,o1(this,r=a1(this,e,t)),r);break;default:Oh(this,this._t0,r=a1(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function FD(e){this._context=new BD(e)}(FD.prototype=Object.create(tf.prototype)).point=function(e,t){tf.prototype.point.call(this,t,e)};function BD(e){this._context=e}BD.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function DK(e){return new tf(e)}function MK(e){return new FD(e)}function qD(e){this._context=e}qD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=u1(e),i=u1(t),a=0,u=1;u<r;++a,++u)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[u],t[u]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function u1(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),u=new Array(r);for(i[0]=0,a[0]=2,u[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,u[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,u[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,u[t]-=n*u[t-1];for(i[r-1]=u[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(u[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function RK(e){return new qD(e)}function Vp(e,t){this._context=e,this._t=t}Vp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function UK(e){return new Vp(e,.5)}function LK(e){return new Vp(e,0)}function ZK(e){return new Vp(e,1)}function Qa(e,t){if((u=e.length)>1)for(var r=1,n,i,a=e[t[0]],u,l=a.length;r<u;++r)for(i=a,a=e[t[r]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function by(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function FK(e,t){return e[t]}function BK(e){const t=[];return t.key=e,t}function qK(){var e=Et([]),t=by,r=Qa,n=FK;function i(a){var u=Array.from(e.apply(this,arguments),BK),l,d=u.length,f=-1,p;for(const m of a)for(l=0,++f;l<d;++l)(u[l][f]=[0,+n(m,u[l].key,f,a)]).data=m;for(l=0,p=Dw(t(u));l<d;++l)u[p[l]].index=l;return r(u,p),u}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Et(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Et(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?by:typeof a=="function"?a:Et(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Qa,i):r},i}function WK(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,u;i<a;++i){for(u=r=0;r<n;++r)u+=e[r][i][1]||0;if(u)for(r=0;r<n;++r)e[r][i][1]/=u}Qa(e,t)}}function VK(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var u=0,l=0;u<i;++u)l+=e[u][r][1]||0;n[r][1]+=n[r][0]=-l/2}Qa(e,t)}}function KK(e,t){if(!(!((u=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,u;n<a;++n){for(var l=0,d=0,f=0;l<u;++l){for(var p=e[t[l]],m=p[n][1]||0,h=p[n-1][1]||0,y=(m-h)/2,w=0;w<l;++w){var _=e[t[w]],x=_[n][1]||0,$=_[n-1][1]||0;y+=x-$}d+=m,f+=y*m}i[n-1][1]+=i[n-1][0]=r,d&&(r-=f/d)}i[n-1][1]+=i[n-1][0]=r,Qa(e,t)}}var Eh={},zh={},s1;function HK(){return s1||(s1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(zh)),zh}var Ah={},l1;function WD(){return l1||(l1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(Ah)),Ah}var jh={},c1;function Mw(){return c1||(c1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){var n;return typeof r=="string"||typeof r=="symbol"?r:Object.is((n=r==null?void 0:r.valueOf)==null?void 0:n.call(r),-0)?"-0":String(r)}e.toKey=t})(jh)),jh}var Ch={},Th={},d1;function GK(){return d1||(d1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const n=String(r);return n==="0"&&Object.is(Number(r),-0)?"-0":n}e.toString=t})(Th)),Th}var f1;function Rw(){return f1||(f1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=GK(),r=Mw();function n(i){if(Array.isArray(i))return i.map(r.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const a=[],u=i.length;if(u===0)return a;let l=0,d="",f="",p=!1;for(i.charCodeAt(0)===46&&(a.push(""),l++);l<u;){const m=i[l];f?m==="\\"&&l+1<u?(l++,d+=i[l]):m===f?f="":d+=m:p?m==='"'||m==="'"?f=m:m==="]"?(p=!1,a.push(d),d=""):d+=m:m==="["?(p=!0,d&&(a.push(d),d="")):m==="."?d&&(a.push(d),d=""):d+=m,l++}return d&&a.push(d),a}e.toPath=n})(Ch)),Ch}var p1;function Uw(){return p1||(p1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=HK(),r=WD(),n=Mw(),i=Rw();function a(l,d,f){if(l==null)return f;switch(typeof d){case"string":{if(t.isUnsafeProperty(d))return f;const p=l[d];return p===void 0?r.isDeepKey(d)?a(l,i.toPath(d),f):f:p}case"number":case"symbol":{typeof d=="number"&&(d=n.toKey(d));const p=l[d];return p===void 0?f:p}default:{if(Array.isArray(d))return u(l,d,f);if(Object.is(d==null?void 0:d.valueOf(),-0)?d="-0":d=String(d),t.isUnsafeProperty(d))return f;const p=l[d];return p===void 0?f:p}}}function u(l,d,f){if(d.length===0)return f;let p=l;for(let m=0;m<d.length;m++){if(p==null||t.isUnsafeProperty(d[m]))return f;p=p[d[m]]}return p===void 0?f:p}e.get=a})(Eh)),Eh}var Nh,m1;function JK(){return m1||(m1=1,Nh=Uw().get),Nh}var YK=JK();const Kp=pa(YK);var XK=4;function ia(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:XK,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function rr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((i,a,u)=>{var l=r[u-1];return typeof l=="string"?i+l+a:l!==void 0?i+ia(l)+a:i+a},"")}var cn=e=>e===0?0:e>0?1:-1,Jn=e=>typeof e=="number"&&e!=+e,eo=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,be=e=>(typeof e=="number"||e instanceof Number)&&!Jn(e),Yn=e=>be(e)||typeof e=="string",QK=0,Ds=e=>{var t=++QK;return"".concat(e||"").concat(t)},fa=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!be(t)&&typeof t!="string")return n;var a;if(eo(t)){if(r==null)return n;var u=t.indexOf("%");a=r*parseFloat(t.slice(0,u))/100}else a=+t;return Jn(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},VD=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function qn(e,t,r){return be(e)&&be(t)?ia(e+r*(t-e)):t}function KD(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Kp(n,t))===r)}var _r=e=>e===null||typeof e>"u",Lw=e=>_r(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Mr(e){return e!=null}function pu(){}var HD=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Zw=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(k.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{Nw(i)&&(n[i]=(a=>r[i](r,a)))}),n},eH=(e,t,r)=>n=>(e(t,r,n),null),tH=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];Nw(i)&&typeof a=="function"&&(n||(n={}),n[i]=eH(a,t,r))}),n};function v1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rH(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v1(Object(r),!0).forEach(function(n){nH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nH(e,t,r){return(t=iH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iH(e){var t=aH(e,"string");return typeof t=="symbol"?t:t+""}function aH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function en(e,t){var r=rH({},e),n=t,i=Object.keys(t),a=i.reduce((u,l)=>(u[l]===void 0&&n[l]!==void 0&&(u[l]=n[l]),u),r);return a}var Dh={},Mh={},h1;function oH(){return h1||(h1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const i=new Map;for(let a=0;a<r.length;a++){const u=r[a],l=n(u,a,r);i.has(l)||i.set(l,u)}return Array.from(i.values())}e.uniqBy=t})(Mh)),Mh}var Rh={},g1;function uH(){return g1||(g1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return function(...i){return r.apply(this,i.slice(0,n))}}e.ary=t})(Rh)),Rh}var Uh={},y1;function GD(){return y1||(y1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(Uh)),Uh}var Lh={},Zh={},Fh={},b1;function sH(){return b1||(b1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(Fh)),Fh}var w1;function Fw(){return w1||(w1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sH();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(Zh)),Zh}var Bh={},_1;function lH(){return _1||(_1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(Bh)),Bh}var x1;function cH(){return x1||(x1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Fw(),r=lH();function n(i){return r.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=n})(Lh)),Lh}var qh={},Wh={},k1;function dH(){return k1||(k1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Uw();function r(n){return function(i){return t.get(i,n)}}e.property=r})(Wh)),Wh}var Vh={},Kh={},Hh={},Gh={},S1;function JD(){return S1||(S1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(Gh)),Gh}var Jh={},$1;function YD(){return $1||($1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(Jh)),Jh}var Yh={},I1;function XD(){return I1||(I1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.isEqualsSameValueZero=t})(Yh)),Yh}var P1;function fH(){return P1||(P1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=JD(),r=YD(),n=XD();function i(p,m,h){return typeof h!="function"?i(p,m,()=>{}):a(p,m,function y(w,_,x,$,E,A){const I=h(w,_,x,$,E,A);return I!==void 0?!!I:a(w,_,y,A)},new Map)}function a(p,m,h,y){if(m===p)return!0;switch(typeof m){case"object":return u(p,m,h,y);case"function":return Object.keys(m).length>0?a(p,{...m},h,y):n.isEqualsSameValueZero(p,m);default:return t.isObject(p)?typeof m=="string"?m==="":!0:n.isEqualsSameValueZero(p,m)}}function u(p,m,h,y){if(m==null)return!0;if(Array.isArray(m))return d(p,m,h,y);if(m instanceof Map)return l(p,m,h,y);if(m instanceof Set)return f(p,m,h,y);const w=Object.keys(m);if(p==null||r.isPrimitive(p))return w.length===0;if(w.length===0)return!0;if(y!=null&&y.has(m))return y.get(m)===p;y==null||y.set(m,p);try{for(let _=0;_<w.length;_++){const x=w[_];if(!r.isPrimitive(p)&&!(x in p)||m[x]===void 0&&p[x]!==void 0||m[x]===null&&p[x]!==null||!h(p[x],m[x],x,p,m,y))return!1}return!0}finally{y==null||y.delete(m)}}function l(p,m,h,y){if(m.size===0)return!0;if(!(p instanceof Map))return!1;for(const[w,_]of m.entries()){const x=p.get(w);if(h(x,_,w,p,m,y)===!1)return!1}return!0}function d(p,m,h,y){if(m.length===0)return!0;if(!Array.isArray(p))return!1;const w=new Set;for(let _=0;_<m.length;_++){const x=m[_];let $=!1;for(let E=0;E<p.length;E++){if(w.has(E))continue;const A=p[E];let I=!1;if(h(A,x,_,p,m,y)&&(I=!0),I){w.add(E),$=!0;break}}if(!$)return!1}return!0}function f(p,m,h,y){return m.size===0?!0:p instanceof Set?d([...p],[...m],h,y):!1}e.isMatchWith=i,e.isSetMatch=f})(Hh)),Hh}var O1;function QD(){return O1||(O1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fH();function r(n,i){return t.isMatchWith(n,i,()=>{})}e.isMatch=r})(Kh)),Kh}var Xh={},Qh={},eg={},E1;function pH(){return E1||(E1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(eg)),eg}var tg={},z1;function Bw(){return z1||(z1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(tg)),tg}var rg={},A1;function e4(){return A1||(A1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",i="[object Boolean]",a="[object Arguments]",u="[object Symbol]",l="[object Date]",d="[object Map]",f="[object Set]",p="[object Array]",m="[object Function]",h="[object ArrayBuffer]",y="[object Object]",w="[object Error]",_="[object DataView]",x="[object Uint8Array]",$="[object Uint8ClampedArray]",E="[object Uint16Array]",A="[object Uint32Array]",I="[object BigUint64Array]",j="[object Int8Array]",z="[object Int16Array]",N="[object Int32Array]",M="[object BigInt64Array]",K="[object Float32Array]",se="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=h,e.arrayTag=p,e.bigInt64ArrayTag=M,e.bigUint64ArrayTag=I,e.booleanTag=i,e.dataViewTag=_,e.dateTag=l,e.errorTag=w,e.float32ArrayTag=K,e.float64ArrayTag=se,e.functionTag=m,e.int16ArrayTag=z,e.int32ArrayTag=N,e.int8ArrayTag=j,e.mapTag=d,e.numberTag=n,e.objectTag=y,e.regexpTag=t,e.setTag=f,e.stringTag=r,e.symbolTag=u,e.uint16ArrayTag=E,e.uint32ArrayTag=A,e.uint8ArrayTag=x,e.uint8ClampedArrayTag=$})(rg)),rg}var ng={},j1;function mH(){return j1||(j1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(ng)),ng}var C1;function t4(){return C1||(C1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pH(),r=Bw(),n=e4(),i=YD(),a=mH();function u(p,m){return l(p,void 0,p,new Map,m)}function l(p,m,h,y=new Map,w=void 0){const _=w==null?void 0:w(p,m,h,y);if(_!==void 0)return _;if(i.isPrimitive(p))return p;if(y.has(p))return y.get(p);if(Array.isArray(p)){const x=new Array(p.length);y.set(p,x);for(let $=0;$<p.length;$++)x[$]=l(p[$],$,h,y,w);return Object.hasOwn(p,"index")&&(x.index=p.index),Object.hasOwn(p,"input")&&(x.input=p.input),x}if(p instanceof Date)return new Date(p.getTime());if(p instanceof RegExp){const x=new RegExp(p.source,p.flags);return x.lastIndex=p.lastIndex,x}if(p instanceof Map){const x=new Map;y.set(p,x);for(const[$,E]of p)x.set($,l(E,$,h,y,w));return x}if(p instanceof Set){const x=new Set;y.set(p,x);for(const $ of p)x.add(l($,void 0,h,y,w));return x}if(typeof Buffer<"u"&&Buffer.isBuffer(p))return p.subarray();if(a.isTypedArray(p)){const x=new(Object.getPrototypeOf(p)).constructor(p.length);y.set(p,x);for(let $=0;$<p.length;$++)x[$]=l(p[$],$,h,y,w);return x}if(p instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&p instanceof SharedArrayBuffer)return p.slice(0);if(p instanceof DataView){const x=new DataView(p.buffer.slice(0),p.byteOffset,p.byteLength);return y.set(p,x),d(x,p,h,y,w),x}if(typeof File<"u"&&p instanceof File){const x=new File([p],p.name,{type:p.type});return y.set(p,x),d(x,p,h,y,w),x}if(typeof Blob<"u"&&p instanceof Blob){const x=new Blob([p],{type:p.type});return y.set(p,x),d(x,p,h,y,w),x}if(p instanceof Error){const x=structuredClone(p);return y.set(p,x),x.message=p.message,x.name=p.name,x.stack=p.stack,x.cause=p.cause,x.constructor=p.constructor,d(x,p,h,y,w),x}if(p instanceof Boolean){const x=new Boolean(p.valueOf());return y.set(p,x),d(x,p,h,y,w),x}if(p instanceof Number){const x=new Number(p.valueOf());return y.set(p,x),d(x,p,h,y,w),x}if(p instanceof String){const x=new String(p.valueOf());return y.set(p,x),d(x,p,h,y,w),x}if(typeof p=="object"&&f(p)){const x=Object.create(Object.getPrototypeOf(p));return y.set(p,x),d(x,p,h,y,w),x}return p}function d(p,m,h=p,y,w){const _=[...Object.keys(m),...t.getSymbols(m)];for(let x=0;x<_.length;x++){const $=_[x],E=Object.getOwnPropertyDescriptor(p,$);(E==null||E.writable)&&(p[$]=l(m[$],$,h,y,w))}}function f(p){switch(r.getTag(p)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=u,e.cloneDeepWithImpl=l,e.copyProperties=d})(Qh)),Qh}var T1;function vH(){return T1||(T1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=t4();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(Xh)),Xh}var N1;function hH(){return N1||(N1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=QD(),r=vH();function n(i){return i=r.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=n})(Vh)),Vh}var ig={},ag={},og={},D1;function gH(){return D1||(D1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=t4(),r=Bw(),n=e4();function i(a,u){return t.cloneDeepWith(a,(l,d,f,p)=>{const m=u==null?void 0:u(l,d,f,p);if(m!==void 0)return m;if(typeof a=="object"){if(r.getTag(a)===n.objectTag&&typeof a.constructor!="function"){const h={};return p.set(a,h),t.copyProperties(h,a,f,p),h}switch(Object.prototype.toString.call(a)){case n.numberTag:case n.stringTag:case n.booleanTag:{const h=new a.constructor(a==null?void 0:a.valueOf());return t.copyProperties(h,a),h}case n.argumentsTag:{const h={};return t.copyProperties(h,a),h.length=a.length,h[Symbol.iterator]=a[Symbol.iterator],h}default:return}}})}e.cloneDeepWith=i})(og)),og}var M1;function yH(){return M1||(M1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gH();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(ag)),ag}var ug={},sg={},R1;function r4(){return R1||(R1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<i;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(sg)),sg}var lg={},U1;function bH(){return U1||(U1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bw();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(lg)),lg}var L1;function wH(){return L1||(L1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=WD(),r=r4(),n=bH(),i=Rw();function a(u,l){let d;if(Array.isArray(l)?d=l:typeof l=="string"&&t.isDeepKey(l)&&(u==null?void 0:u[l])==null?d=i.toPath(l):d=[l],d.length===0)return!1;let f=u;for(let p=0;p<d.length;p++){const m=d[p];if((f==null||!Object.hasOwn(f,m))&&!((Array.isArray(f)||n.isArguments(f))&&r.isIndex(m)&&m<f.length))return!1;f=f[m]}return!0}e.has=a})(ug)),ug}var Z1;function _H(){return Z1||(Z1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=QD(),r=Mw(),n=yH(),i=Uw(),a=wH();function u(l,d){switch(typeof l){case"object":{Object.is(l==null?void 0:l.valueOf(),-0)&&(l="-0");break}case"number":{l=r.toKey(l);break}}return d=n.cloneDeep(d),function(f){const p=i.get(f,l);return p===void 0?a.has(f,l):d===void 0?p===void 0:t.isMatch(p,d)}}e.matchesProperty=u})(ig)),ig}var F1;function xH(){return F1||(F1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=GD(),r=dH(),n=hH(),i=_H();function a(u){if(u==null)return t.identity;switch(typeof u){case"function":return u;case"object":return Array.isArray(u)&&u.length===2?i.matchesProperty(u[0],u[1]):n.matches(u);case"string":case"symbol":case"number":return r.property(u)}}e.iteratee=a})(qh)),qh}var B1;function kH(){return B1||(B1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oH(),r=uH(),n=GD(),i=cH(),a=xH();function u(l,d=n.identity){return i.isArrayLikeObject(l)?t.uniqBy(Array.from(l),r.ary(a.iteratee(d),1)):[]}e.uniqBy=u})(Dh)),Dh}var cg,q1;function SH(){return q1||(q1=1,cg=kH().uniqBy),cg}var $H=SH();const W1=pa($H);function IH(e,t,r){return t===!0?W1(e,r):typeof t=="function"?W1(e,t):e}var dg={exports:{}},fg={},pg={exports:{}},mg={};/**
|
|
150
|
+
* @license React
|
|
151
|
+
* use-sync-external-store-shim.production.js
|
|
152
|
+
*
|
|
153
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
154
|
+
*
|
|
155
|
+
* This source code is licensed under the MIT license found in the
|
|
156
|
+
* LICENSE file in the root directory of this source tree.
|
|
157
|
+
*/var V1;function PH(){if(V1)return mg;V1=1;var e=lu();function t(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,u=e.useDebugValue;function l(m,h){var y=h(),w=n({inst:{value:y,getSnapshot:h}}),_=w[0].inst,x=w[1];return a(function(){_.value=y,_.getSnapshot=h,d(_)&&x({inst:_})},[m,y,h]),i(function(){return d(_)&&x({inst:_}),m(function(){d(_)&&x({inst:_})})},[m]),u(y),y}function d(m){var h=m.getSnapshot;m=m.value;try{var y=h();return!r(m,y)}catch{return!0}}function f(m,h){return h()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:l;return mg.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,mg}var K1;function OH(){return K1||(K1=1,pg.exports=PH()),pg.exports}/**
|
|
158
|
+
* @license React
|
|
159
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
160
|
+
*
|
|
161
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the MIT license found in the
|
|
164
|
+
* LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/var H1;function EH(){if(H1)return fg;H1=1;var e=lu(),t=OH();function r(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,a=e.useRef,u=e.useEffect,l=e.useMemo,d=e.useDebugValue;return fg.useSyncExternalStoreWithSelector=function(f,p,m,h,y){var w=a(null);if(w.current===null){var _={hasValue:!1,value:null};w.current=_}else _=w.current;w=l(function(){function $(z){if(!E){if(E=!0,A=z,z=h(z),y!==void 0&&_.hasValue){var N=_.value;if(y(N,z))return I=N}return I=z}if(N=I,n(A,z))return N;var M=h(z);return y!==void 0&&y(N,M)?(A=z,N):(A=z,I=M)}var E=!1,A,I,j=m===void 0?null:m;return[function(){return $(p())},j===null?void 0:function(){return $(j())}]},[p,m,h,y]);var x=i(f,w[0],w[1]);return u(function(){_.hasValue=!0,_.value=x},[x]),d(x),x},fg}var G1;function zH(){return G1||(G1=1,dg.exports=EH()),dg.exports}var AH=zH(),qw=k.createContext(null),jH=e=>e,Gt=()=>{var e=k.useContext(qw);return e?e.store.dispatch:jH},Ad=()=>{},CH=()=>Ad,TH=(e,t)=>e===t;function Ae(e){var t=k.useContext(qw),r=k.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Ad,[t,e]);return AH.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:CH,t?t.store.getState:Ad,t?t.store.getState:Ad,r,TH)}function NH(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function DH(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function MH(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var J1=e=>Array.isArray(e)?e:[e];function RH(e){const t=Array.isArray(e[0])?e[0]:e;return MH(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function UH(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var LH=class{constructor(e){this.value=e}deref(){return this.value}},ZH=typeof WeakRef<"u"?WeakRef:LH,FH=0,Y1=1;function hd(){return{s:FH,v:void 0,o:null,p:null}}function n4(e,t={}){let r=hd();const{resultEqualityCheck:n}=t;let i,a=0;function u(){var m;let l=r;const{length:d}=arguments;for(let h=0,y=d;h<y;h++){const w=arguments[h];if(typeof w=="function"||typeof w=="object"&&w!==null){let _=l.o;_===null&&(l.o=_=new WeakMap);const x=_.get(w);x===void 0?(l=hd(),_.set(w,l)):l=x}else{let _=l.p;_===null&&(l.p=_=new Map);const x=_.get(w);x===void 0?(l=hd(),_.set(w,l)):l=x}}const f=l;let p;if(l.s===Y1)p=l.v;else if(p=e.apply(null,arguments),a++,n){const h=((m=i==null?void 0:i.deref)==null?void 0:m.call(i))??i;h!=null&&n(h,p)&&(p=h,a!==0&&a--),i=typeof p=="object"&&p!==null||typeof p=="function"?new ZH(p):p}return f.s=Y1,f.v=p,p}return u.clearCache=()=>{r=hd(),u.resetResultsCount()},u.resultsCount=()=>a,u.resetResultsCount=()=>{a=0},u}function BH(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,u=0,l,d={},f=i.pop();typeof f=="object"&&(d=f,f=i.pop()),NH(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const p={...r,...d},{memoize:m,memoizeOptions:h=[],argsMemoize:y=n4,argsMemoizeOptions:w=[]}=p,_=J1(h),x=J1(w),$=RH(i),E=m(function(){return a++,f.apply(null,arguments)},..._),A=y(function(){u++;const j=UH($,arguments);return l=E.apply(null,j),l},...x);return Object.assign(A,{resultFunc:f,memoizedResultFunc:E,dependencies:$,dependencyRecomputations:()=>u,resetDependencyRecomputations:()=>{u=0},lastResult:()=>l,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:m,argsMemoize:y})};return Object.assign(n,{withTypes:()=>n}),n}var q=BH(n4),qH=Object.assign((e,t=q)=>{DH(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((u,l,d)=>(u[r[d]]=l,u),{}))},{withTypes:()=>qH}),vg={},hg={},gg={},X1;function WH(){return X1||(X1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const u=t(n),l=t(i);if(u===l&&u===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?l-u:u-l}return 0};e.compareValues=r})(gg)),gg}var yg={},bg={},Q1;function i4(){return Q1||(Q1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(bg)),bg}var eI;function VH(){return eI||(eI=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=i4(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,u){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||u!=null&&Object.hasOwn(u,a)}e.isKey=i})(yg)),yg}var tI;function KH(){return tI||(tI=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=WH(),r=VH(),n=Rw();function i(a,u,l,d){if(a==null)return[];l=d?void 0:l,Array.isArray(a)||(a=Object.values(a)),Array.isArray(u)||(u=u==null?[null]:[u]),u.length===0&&(u=[null]),Array.isArray(l)||(l=l==null?[]:[l]),l=l.map(y=>String(y));const f=(y,w)=>{let _=y;for(let x=0;x<w.length&&_!=null;++x)_=_[w[x]];return _},p=(y,w)=>w==null||y==null?w:typeof y=="object"&&"key"in y?Object.hasOwn(w,y.key)?w[y.key]:f(w,y.path):typeof y=="function"?y(w):Array.isArray(y)?f(w,y):typeof w=="object"?w[y]:w,m=u.map(y=>(Array.isArray(y)&&y.length===1&&(y=y[0]),y==null||typeof y=="function"||Array.isArray(y)||r.isKey(y)?y:{key:y,path:n.toPath(y)}));return a.map(y=>({original:y,criteria:m.map(w=>p(w,y))})).slice().sort((y,w)=>{for(let _=0;_<m.length;_++){const x=t.compareValues(y.criteria[_],w.criteria[_],l[_]);if(x!==0)return x}return 0}).map(y=>y.original)}e.orderBy=i})(hg)),hg}var wg={},rI;function HH(){return rI||(rI=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),u=(l,d)=>{for(let f=0;f<l.length;f++){const p=l[f];Array.isArray(p)&&d<a?u(p,d+1):i.push(p)}};return u(r,0),i}e.flatten=t})(wg)),wg}var _g={},nI;function a4(){return nI||(nI=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=r4(),r=Fw(),n=JD(),i=XD();function a(u,l,d){return n.isObject(d)&&(typeof l=="number"&&r.isArrayLike(d)&&t.isIndex(l)&&l<d.length||typeof l=="string"&&l in d)?i.isEqualsSameValueZero(d[l],u):!1}e.isIterateeCall=a})(_g)),_g}var iI;function GH(){return iI||(iI=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=KH(),r=HH(),n=a4();function i(a,...u){const l=u.length;return l>1&&n.isIterateeCall(a,u[0],u[1])?u=[]:l>2&&n.isIterateeCall(u[0],u[1],u[2])&&(u=[u[0]]),t.orderBy(a,r.flatten(u),["asc"])}e.sortBy=i})(vg)),vg}var xg,aI;function JH(){return aI||(aI=1,xg=GH().sortBy),xg}var YH=JH();const Hp=pa(YH);var o4=e=>e.legend.settings,XH=e=>e.legend.size,QH=e=>e.legend.payload;q([QH,o4],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Hp(n,r):n});var gd=1;function e7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=k.useState({height:0,left:0,top:0,width:0}),n=k.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),u={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(u.height-t.height)>gd||Math.abs(u.left-t.left)>gd||Math.abs(u.top-t.top)>gd||Math.abs(u.width-t.width)>gd)&&r({height:u.height,left:u.left,top:u.top,width:u.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function tr(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var t7=typeof Symbol=="function"&&Symbol.observable||"@@observable",oI=t7,kg=()=>Math.random().toString(36).substring(7).split("").join("."),r7={INIT:`@@redux/INIT${kg()}`,REPLACE:`@@redux/REPLACE${kg()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${kg()}`},rf=r7;function Ww(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function u4(e,t,r){if(typeof e!="function")throw new Error(tr(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(tr(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(tr(1));return r(u4)(e,t)}let n=e,i=t,a=new Map,u=a,l=0,d=!1;function f(){u===a&&(u=new Map,a.forEach((x,$)=>{u.set($,x)}))}function p(){if(d)throw new Error(tr(3));return i}function m(x){if(typeof x!="function")throw new Error(tr(4));if(d)throw new Error(tr(5));let $=!0;f();const E=l++;return u.set(E,x),function(){if($){if(d)throw new Error(tr(6));$=!1,f(),u.delete(E),a=null}}}function h(x){if(!Ww(x))throw new Error(tr(7));if(typeof x.type>"u")throw new Error(tr(8));if(typeof x.type!="string")throw new Error(tr(17));if(d)throw new Error(tr(9));try{d=!0,i=n(i,x)}finally{d=!1}return(a=u).forEach(E=>{E()}),x}function y(x){if(typeof x!="function")throw new Error(tr(10));n=x,h({type:rf.REPLACE})}function w(){const x=m;return{subscribe($){if(typeof $!="object"||$===null)throw new Error(tr(11));function E(){const I=$;I.next&&I.next(p())}return E(),{unsubscribe:x(E)}},[oI](){return this}}}return h({type:rf.INIT}),{dispatch:h,subscribe:m,getState:p,replaceReducer:y,[oI]:w}}function n7(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:rf.INIT})>"u")throw new Error(tr(12));if(typeof r(void 0,{type:rf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(tr(13))})}function s4(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const u=t[a];typeof e[u]=="function"&&(r[u]=e[u])}const n=Object.keys(r);let i;try{n7(r)}catch(a){i=a}return function(u={},l){if(i)throw i;let d=!1;const f={};for(let p=0;p<n.length;p++){const m=n[p],h=r[m],y=u[m],w=h(y,l);if(typeof w>"u")throw l&&l.type,new Error(tr(14));f[m]=w,d=d||w!==y}return d=d||n.length!==Object.keys(u).length,d?f:u}}function nf(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function i7(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(tr(15))};const u={getState:i.getState,dispatch:(d,...f)=>a(d,...f)},l=e.map(d=>d(u));return a=nf(...l)(i.dispatch),{...i,dispatch:a}}}function l4(e){return Ww(e)&&"type"in e&&typeof e.type=="string"}var c4=Symbol.for("immer-nothing"),uI=Symbol.for("immer-draftable"),Pr=Symbol.for("immer-state");function En(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Kr=Object,iu=Kr.getPrototypeOf,af="constructor",Gp="prototype",wy="configurable",of="enumerable",jd="writable",Ms="value",gi=e=>!!e&&!!e[Pr];function Nn(e){var t;return e?d4(e)||Yp(e)||!!e[uI]||!!((t=e[af])!=null&&t[uI])||Xp(e)||Qp(e):!1}var a7=Kr[Gp][af].toString(),sI=new WeakMap;function d4(e){if(!e||!Vw(e))return!1;const t=iu(e);if(t===null||t===Kr[Gp])return!0;const r=Kr.hasOwnProperty.call(t,af)&&t[af];if(r===Object)return!0;if(!qo(r))return!1;let n=sI.get(r);return n===void 0&&(n=Function.toString.call(r),sI.set(r,n)),n===a7}function Jp(e,t,r=!0){Cl(e)===0?(r?Reflect.ownKeys(e):Kr.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Cl(e){const t=e[Pr];return t?t.type_:Yp(e)?1:Xp(e)?2:Qp(e)?3:0}var lI=(e,t,r=Cl(e))=>r===2?e.has(t):Kr[Gp].hasOwnProperty.call(e,t),_y=(e,t,r=Cl(e))=>r===2?e.get(t):e[t],uf=(e,t,r,n=Cl(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function o7(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Yp=Array.isArray,Xp=e=>e instanceof Map,Qp=e=>e instanceof Set,Vw=e=>typeof e=="object",qo=e=>typeof e=="function",Sg=e=>typeof e=="boolean";function u7(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var ci=e=>e.copy_||e.base_,Kw=e=>e.modified_?e.copy_:e.base_;function xy(e,t){if(Xp(e))return new Map(e);if(Qp(e))return new Set(e);if(Yp(e))return Array[Gp].slice.call(e);const r=d4(e);if(t===!0||t==="class_only"&&!r){const n=Kr.getOwnPropertyDescriptors(e);delete n[Pr];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const u=i[a],l=n[u];l[jd]===!1&&(l[jd]=!0,l[wy]=!0),(l.get||l.set)&&(n[u]={[wy]:!0,[jd]:!0,[of]:l[of],[Ms]:e[u]})}return Kr.create(iu(e),n)}else{const n=iu(e);if(n!==null&&r)return{...e};const i=Kr.create(n);return Kr.assign(i,e)}}function Hw(e,t=!1){return em(e)||gi(e)||!Nn(e)||(Cl(e)>1&&Kr.defineProperties(e,{set:yd,add:yd,clear:yd,delete:yd}),Kr.freeze(e),t&&Jp(e,(r,n)=>{Hw(n,!0)},!1)),e}function s7(){En(2)}var yd={[Ms]:s7};function em(e){return e===null||!Vw(e)?!0:Kr.isFrozen(e)}var sf="MapSet",ky="Patches",cI="ArrayMethods",f4={};function to(e){const t=f4[e];return t||En(0,e),t}var dI=e=>!!f4[e],Rs,p4=()=>Rs,l7=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:dI(sf)?to(sf):void 0,arrayMethodsPlugin_:dI(cI)?to(cI):void 0});function fI(e,t){t&&(e.patchPlugin_=to(ky),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Sy(e){$y(e),e.drafts_.forEach(c7),e.drafts_=null}function $y(e){e===Rs&&(Rs=e.parent_)}var pI=e=>Rs=l7(Rs,e);function c7(e){const t=e[Pr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function mI(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[Pr].modified_&&(Sy(t),En(4)),Nn(e)&&(e=vI(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[Pr].base_,e,t)}else e=vI(t,r);return d7(t,e,!0),Sy(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==c4?e:void 0}function vI(e,t){if(em(t))return t;const r=t[Pr];if(!r)return lf(t,e.handledSet_,e);if(!tm(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);h4(r,e)}return r.copy_}function d7(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Hw(t,r)}function m4(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var tm=(e,t)=>e.scope_===t,f7=[];function v4(e,t,r,n){const i=ci(e),a=e.type_;if(n!==void 0&&_y(i,n,a)===t){uf(i,n,r,a);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;Jp(i,(d,f)=>{if(gi(f)){const p=l.get(f)||[];p.push(d),l.set(f,p)}})}const u=e.draftLocations_.get(t)??f7;for(const l of u)uf(i,l,r,a)}function p7(e,t,r){e.callbacks_.push(function(i){var l;const a=t;if(!a||!tm(a,i))return;(l=i.mapSetPlugin_)==null||l.fixSetContents(a);const u=Kw(a);v4(e,a.draft_??a,u,r),h4(a,i)})}function h4(e,t){var n;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((n=e.assigned_)==null?void 0:n.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const a=i.getPath(e);a&&i.generatePatches_(e,a,t)}m4(e)}}function m7(e,t,r){const{scope_:n}=e;if(gi(r)){const i=r[Pr];tm(i,n)&&i.callbacks_.push(function(){Cd(e);const u=Kw(i);v4(e,r,u,t)})}else Nn(r)&&e.callbacks_.push(function(){const a=ci(e);e.type_===3?a.has(r)&&lf(r,n.handledSet_,n):_y(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&lf(_y(e.copy_,t,e.type_),n.handledSet_,n)})}function lf(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||gi(e)||t.has(e)||!Nn(e)||em(e)||(t.add(e),Jp(e,(n,i)=>{if(gi(i)){const a=i[Pr];if(tm(a,r)){const u=Kw(a);uf(e,n,u,e.type_),m4(a)}}else Nn(i)&&lf(i,t,r)})),e}function v7(e,t){const r=Yp(e),n={type_:r?1:0,scope_:t?t.scope_:p4(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,a=cf;r&&(i=[n],a=Us);const{revoke:u,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=u,[l,n]}var cf={get(e,t){if(t===Pr)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r!=null&&r.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=ci(e);if(!lI(i,t,e.type_))return h7(e,i,t);const a=i[t];if(e.finalized_||!Nn(a)||n&&e.operationMethod&&(r!=null&&r.isMutatingArrayMethod(e.operationMethod))&&u7(t))return a;if(a===$g(e.base_,t)){Cd(e);const u=e.type_===1?+t:t,l=Py(e.scope_,a,e,u);return e.copy_[u]=l}return a},has(e,t){return t in ci(e)},ownKeys(e){return Reflect.ownKeys(ci(e))},set(e,t,r){const n=g4(ci(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=$g(ci(e),t),a=i==null?void 0:i[Pr];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(o7(r,i)&&(r!==void 0||lI(e.base_,t,e.type_)))return!0;Cd(e),Iy(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),m7(e,t,r)),!0},deleteProperty(e,t){return Cd(e),$g(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Iy(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=ci(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[jd]:!0,[wy]:e.type_!==1||t!=="length",[of]:n[of],[Ms]:r[t]}},defineProperty(){En(11)},getPrototypeOf(e){return iu(e.base_)},setPrototypeOf(){En(12)}},Us={};for(let e in cf){let t=cf[e];Us[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Us.deleteProperty=function(e,t){return Us.set.call(this,e,t,void 0)};Us.set=function(e,t,r){return cf.set.call(this,e[0],t,r,e[0])};function $g(e,t){const r=e[Pr];return(r?ci(r):e)[t]}function h7(e,t,r){var i;const n=g4(t,r);return n?Ms in n?n[Ms]:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function g4(e,t){if(!(t in e))return;let r=iu(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=iu(r)}}function Iy(e){e.modified_||(e.modified_=!0,e.parent_&&Iy(e.parent_))}function Cd(e){e.copy_||(e.assigned_=new Map,e.copy_=xy(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var g7=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,i)=>{if(qo(r)&&!qo(n)){const u=n;n=r;const l=this;return function(f=u,...p){return l.produce(f,m=>n.call(this,m,...p))}}qo(n)||En(6),i!==void 0&&!qo(i)&&En(7);let a;if(Nn(r)){const u=pI(this),l=Py(u,r,void 0);let d=!0;try{a=n(l),d=!1}finally{d?Sy(u):$y(u)}return fI(u,i),mI(a,u)}else if(!r||!Vw(r)){if(a=n(r),a===void 0&&(a=r),a===c4&&(a=void 0),this.autoFreeze_&&Hw(a,!0),i){const u=[],l=[];to(ky).generateReplacementPatches_(r,a,{patches_:u,inversePatches_:l}),i(u,l)}return a}else En(1,r)},this.produceWithPatches=(r,n)=>{if(qo(r))return(l,...d)=>this.produceWithPatches(l,f=>r(f,...d));let i,a;return[this.produce(r,n,(l,d)=>{i=l,a=d}),i,a]},Sg(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Sg(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Sg(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Nn(t)||En(8),gi(t)&&(t=Cn(t));const r=pI(this),n=Py(r,t,void 0);return n[Pr].isManual_=!0,$y(r),n}finishDraft(t,r){const n=t&&t[Pr];(!n||!n.isManual_)&&En(9);const{scope_:i}=n;return fI(i,r),mI(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const a=r[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(r=r.slice(n+1));const i=to(ky).applyPatches_;return gi(t)?i(t,r):this.produce(t,a=>i(a,r))}};function Py(e,t,r,n){const[i,a]=Xp(t)?to(sf).proxyMap_(t,r):Qp(t)?to(sf).proxySet_(t,r):v7(t,r);return((r==null?void 0:r.scope_)??p4()).drafts_.push(i),a.callbacks_=(r==null?void 0:r.callbacks_)??[],a.key_=n,r&&n!==void 0?p7(r,a,n):a.callbacks_.push(function(d){var p;(p=d.mapSetPlugin_)==null||p.fixSetContents(a);const{patchPlugin_:f}=d;a.modified_&&f&&f.generatePatches_(a,[],d)}),i}function Cn(e){return gi(e)||En(10,e),y4(e)}function y4(e){if(!Nn(e)||em(e))return e;const t=e[Pr];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=xy(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=xy(e,!0);return Jp(r,(i,a)=>{uf(r,i,y4(a))},n),t&&(t.finalized_=!1),r}var y7=new g7,b4=y7.produce;function w4(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var b7=w4(),w7=w4,_7=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?nf:nf.apply(null,arguments)};function vn(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Hr(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>l4(n)&&n.type===e,r}var _4=class ks extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ks.prototype)}static get[Symbol.species](){return ks}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ks(...t[0].concat(this)):new ks(...t.concat(this))}};function hI(e){return Nn(e)?b4(e,()=>{}):e}function bd(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function x7(e){return typeof e=="boolean"}var k7=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let u=new _4;return r&&(x7(r)?u.push(b7):u.push(w7(r.extraArgument))),u},x4="RTK_autoBatch",ht=()=>e=>({payload:e,meta:{[x4]:!0}}),gI=e=>t=>{setTimeout(t,e)},k4=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,u=!1;const l=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:gI(10):e.type==="callback"?e.queueNotification:gI(e.timeout),f=()=>{u=!1,a&&(a=!1,l.forEach(p=>p()))};return Object.assign({},n,{subscribe(p){const m=()=>i&&p(),h=n.subscribe(m);return l.add(p),()=>{h(),l.delete(p)}},dispatch(p){var m;try{return i=!((m=p==null?void 0:p.meta)!=null&&m[x4]),a=!i,a&&(u||(u=!0,d(f))),n.dispatch(p)}finally{i=!0}}})},S7=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new _4(e);return n&&i.push(k4(typeof n=="object"?n:void 0)),i};function $7(e){const t=k7(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:u=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(Ww(r))l=s4(r);else throw new Error(Hr(1));let d;typeof n=="function"?d=n(t):d=t();let f=nf;i&&(f=_7({trace:!1,...typeof i=="object"&&i}));const p=i7(...d),m=S7(p);let h=typeof u=="function"?u(m):m();const y=f(...h);return u4(l,a,y)}function S4(e){const t={},r=[];let n;const i={addCase(a,u){const l=typeof a=="string"?a:a.type;if(!l)throw new Error(Hr(28));if(l in t)throw new Error(Hr(29));return t[l]=u,i},addAsyncThunk(a,u){return u.pending&&(t[a.pending.type]=u.pending),u.rejected&&(t[a.rejected.type]=u.rejected),u.fulfilled&&(t[a.fulfilled.type]=u.fulfilled),u.settled&&r.push({matcher:a.settled,reducer:u.settled}),i},addMatcher(a,u){return r.push({matcher:a,reducer:u}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function I7(e){return typeof e=="function"}function P7(e,t){let[r,n,i]=S4(t),a;if(I7(e))a=()=>hI(e());else{const l=hI(e);a=()=>l}function u(l=a(),d){let f=[r[d.type],...n.filter(({matcher:p})=>p(d)).map(({reducer:p})=>p)];return f.filter(p=>!!p).length===0&&(f=[i]),f.reduce((p,m)=>{if(m)if(gi(p)){const y=m(p,d);return y===void 0?p:y}else{if(Nn(p))return b4(p,h=>m(h,d));{const h=m(p,d);if(h===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return p},l)}return u.getInitialState=a,u}var O7="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",E7=(e=21)=>{let t="",r=e;for(;r--;)t+=O7[Math.random()*64|0];return t},z7=Symbol.for("rtk-slice-createasyncthunk");function A7(e,t){return`${e}/${t}`}function j7({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[z7];return function(i){const{name:a,reducerPath:u=a}=i;if(!a)throw new Error(Hr(11));const l=(typeof i.reducers=="function"?i.reducers(T7()):i.reducers)||{},d=Object.keys(l),f={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(I,j){const z=typeof I=="string"?I:I.type;if(!z)throw new Error(Hr(12));if(z in f.sliceCaseReducersByType)throw new Error(Hr(13));return f.sliceCaseReducersByType[z]=j,p},addMatcher(I,j){return f.sliceMatchers.push({matcher:I,reducer:j}),p},exposeAction(I,j){return f.actionCreators[I]=j,p},exposeCaseReducer(I,j){return f.sliceCaseReducersByName[I]=j,p}};d.forEach(I=>{const j=l[I],z={reducerName:I,type:A7(a,I),createNotation:typeof i.reducers=="function"};D7(j)?R7(z,j,p,t):N7(z,j,p)});function m(){const[I={},j=[],z=void 0]=typeof i.extraReducers=="function"?S4(i.extraReducers):[i.extraReducers],N={...I,...f.sliceCaseReducersByType};return P7(i.initialState,M=>{for(let K in N)M.addCase(K,N[K]);for(let K of f.sliceMatchers)M.addMatcher(K.matcher,K.reducer);for(let K of j)M.addMatcher(K.matcher,K.reducer);z&&M.addDefaultCase(z)})}const h=I=>I,y=new Map,w=new WeakMap;let _;function x(I,j){return _||(_=m()),_(I,j)}function $(){return _||(_=m()),_.getInitialState()}function E(I,j=!1){function z(M){let K=M[I];return typeof K>"u"&&j&&(K=bd(w,z,$)),K}function N(M=h){const K=bd(y,j,()=>new WeakMap);return bd(K,M,()=>{const se={};for(const[ae,W]of Object.entries(i.selectors??{}))se[ae]=C7(W,M,()=>bd(w,M,$),j);return se})}return{reducerPath:I,getSelectors:N,get selectors(){return N(z)},selectSlice:z}}const A={name:a,reducer:x,actions:f.actionCreators,caseReducers:f.sliceCaseReducersByName,getInitialState:$,...E(u),injectInto(I,{reducerPath:j,...z}={}){const N=j??u;return I.inject({reducerPath:N,reducer:x},z),{...A,...E(N,!0)}}};return A}}function C7(e,t,r,n){function i(a,...u){let l=t(a);return typeof l>"u"&&n&&(l=r()),e(l,...u)}return i.unwrapped=e,i}var Lr=j7();function T7(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function N7({type:e,reducerName:t,createNotation:r},n,i){let a,u;if("reducer"in n){if(r&&!M7(n))throw new Error(Hr(17));a=n.reducer,u=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,u?vn(e,u):vn(e))}function D7(e){return e._reducerDefinitionType==="asyncThunk"}function M7(e){return e._reducerDefinitionType==="reducerWithPrepare"}function R7({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Hr(18));const{payloadCreator:a,fulfilled:u,pending:l,rejected:d,settled:f,options:p}=r,m=i(e,a,p);n.exposeAction(t,m),u&&n.addCase(m.fulfilled,u),l&&n.addCase(m.pending,l),d&&n.addCase(m.rejected,d),f&&n.addMatcher(m.settled,f),n.exposeCaseReducer(t,{fulfilled:u||wd,pending:l||wd,rejected:d||wd,settled:f||wd})}function wd(){}var U7="task",$4="listener",I4="completed",Gw="cancelled",L7=`task-${Gw}`,Z7=`task-${I4}`,Oy=`${$4}-${Gw}`,F7=`${$4}-${I4}`,rm=class{constructor(e){Wt(this,"name","TaskAbortError");Wt(this,"message");this.code=e,this.message=`${U7} ${Gw} (reason: ${e})`}},Jw=(e,t)=>{if(typeof e!="function")throw new TypeError(Hr(32))},df=()=>{},P4=(e,t=df)=>(e.catch(t),e),O4=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Va=e=>{if(e.aborted)throw new rm(e.reason)};function E4(e,t){let r=df;return new Promise((n,i)=>{const a=()=>i(new rm(e.reason));if(e.aborted){a();return}r=O4(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=df})}var B7=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof rm?"cancelled":"rejected",error:r}}finally{t==null||t()}},ff=e=>t=>P4(E4(e,t).then(r=>(Va(e),r))),z4=e=>{const t=ff(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:Ho}=Object,yI={},nm="listenerMiddleware",q7=(e,t)=>{const r=n=>O4(e,()=>n.abort(e.reason));return(n,i)=>{Jw(n);const a=new AbortController;r(a);const u=B7(async()=>{Va(e),Va(a.signal);const l=await n({pause:ff(a.signal),delay:z4(a.signal),signal:a.signal});return Va(a.signal),l},()=>a.abort(Z7));return i!=null&&i.autoJoin&&t.push(u.catch(df)),{result:ff(e)(u),cancel(){a.abort(L7)}}}},W7=(e,t)=>{const r=async(n,i)=>{Va(t);let a=()=>{};const l=[new Promise((d,f)=>{let p=e({predicate:n,effect:(m,h)=>{h.unsubscribe(),d([m,h.getState(),h.getOriginalState()])}});a=()=>{p(),f()}})];i!=null&&l.push(new Promise(d=>setTimeout(d,i,null)));try{const d=await E4(t,Promise.race(l));return Va(t),d}finally{a()}};return(n,i)=>P4(r(n,i))},A4=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=vn(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Hr(21));return Jw(a),{predicate:i,type:t,effect:a}},j4=Ho(e=>{const{type:t,predicate:r,effect:n}=A4(e);return{id:E7(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Hr(22))}}},{withTypes:()=>j4}),bI=(e,t)=>{const{type:r,effect:n,predicate:i}=A4(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},Ey=e=>{e.pending.forEach(t=>{t.abort(Oy)})},V7=(e,t)=>()=>{for(const r of t.keys())Ey(r);e.clear()},wI=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},C4=Ho(vn(`${nm}/add`),{withTypes:()=>C4}),K7=vn(`${nm}/removeAll`),T4=Ho(vn(`${nm}/remove`),{withTypes:()=>T4}),H7=(...e)=>{console.error(`${nm}/error`,...e)},Tl=(e={})=>{const t=new Map,r=new Map,n=y=>{const w=r.get(y)??0;r.set(y,w+1)},i=y=>{const w=r.get(y)??1;w===1?r.delete(y):r.set(y,w-1)},{extra:a,onError:u=H7}=e;Jw(u);const l=y=>(y.unsubscribe=()=>t.delete(y.id),t.set(y.id,y),w=>{y.unsubscribe(),w!=null&&w.cancelActive&&Ey(y)}),d=y=>{const w=bI(t,y)??j4(y);return l(w)};Ho(d,{withTypes:()=>d});const f=y=>{const w=bI(t,y);return w&&(w.unsubscribe(),y.cancelActive&&Ey(w)),!!w};Ho(f,{withTypes:()=>f});const p=async(y,w,_,x)=>{const $=new AbortController,E=W7(d,$.signal),A=[];try{y.pending.add($),n(y),await Promise.resolve(y.effect(w,Ho({},_,{getOriginalState:x,condition:(I,j)=>E(I,j).then(Boolean),take:E,delay:z4($.signal),pause:ff($.signal),extra:a,signal:$.signal,fork:q7($.signal,A),unsubscribe:y.unsubscribe,subscribe:()=>{t.set(y.id,y)},cancelActiveListeners:()=>{y.pending.forEach((I,j,z)=>{I!==$&&(I.abort(Oy),z.delete(I))})},cancel:()=>{$.abort(Oy),y.pending.delete($)},throwIfCancelled:()=>{Va($.signal)}})))}catch(I){I instanceof rm||wI(u,I,{raisedBy:"effect"})}finally{await Promise.all(A),$.abort(F7),i(y),y.pending.delete($)}},m=V7(t,r);return{middleware:y=>w=>_=>{if(!l4(_))return w(_);if(C4.match(_))return d(_.payload);if(K7.match(_)){m();return}if(T4.match(_))return f(_.payload);let x=y.getState();const $=()=>{if(x===yI)throw new Error(Hr(23));return x};let E;try{if(E=w(_),t.size>0){const A=y.getState(),I=Array.from(t.values());for(const j of I){let z=!1;try{z=j.predicate(_,A,x)}catch(N){z=!1,wI(u,N,{raisedBy:"predicate"})}z&&p(j,_,y,$)}}}finally{x=yI}return E},startListening:d,stopListening:f,clearListeners:m}};function Hr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var G7={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},N4=Lr({name:"chartLayout",initialState:G7,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:J7,setLayout:Y7,setChartSize:X7,setScale:Q7}=N4.actions,eG=N4.reducer;function D4(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function Ve(e){return Number.isFinite(e)}function Xn(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function _I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_I(Object(r),!0).forEach(function(n){tG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_I(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tG(e,t,r){return(t=rG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rG(e){var t=nG(e,"string");return typeof t=="symbol"?t:t+""}function nG(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ur(e,t,r){return _r(e)||_r(t)?r:Yn(t)?Kp(e,t,r):typeof t=="function"?t(e):r}var iG=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:u,layout:l}=t;if((l==="vertical"||l==="horizontal"&&u==="middle")&&a!=="center"&&be(e[a]))return Wo(Wo({},e),{},{[a]:e[a]+(n||0)});if((l==="horizontal"||l==="vertical"&&a==="center")&&u!=="middle"&&be(e[u]))return Wo(Wo({},e),{},{[u]:e[u]+(i||0)})}return e},ei=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",M4=(e,t,r,n)=>{if(n)return e.map(l=>l.coordinate);var i,a,u=e.map(l=>(l.coordinate===t&&(i=!0),l.coordinate===r&&(a=!0),l.coordinate));return i||u.push(t),a||u.push(r),u},R4=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:u,realScaleType:l,isCategorical:d,categoricalDomain:f,tickCount:p,ticks:m,niceTicks:h,axisType:y}=e;if(!u)return null;var w=l==="scaleBand"&&u.bandwidth?u.bandwidth()/2:2,_=i==="category"&&u.bandwidth?u.bandwidth()/w:0;if(_=y==="angleAxis"&&a&&a.length>=2?cn(a[0]-a[1])*2*_:_,m||h){var x=(m||h||[]).map(($,E)=>{var A=n?n.indexOf($):$,I=u.map(A);return Ve(I)?{coordinate:I+_,value:$,offset:_,index:E}:null}).filter(Mr);return x}return d&&f?f.map(($,E)=>{var A=u.map($);return Ve(A)?{coordinate:A+_,value:$,index:E,offset:_}:null}).filter(Mr):u.ticks&&p!=null?u.ticks(p).map(($,E)=>{var A=u.map($);return Ve(A)?{coordinate:A+_,value:$,index:E,offset:_}:null}).filter(Mr):u.domain().map(($,E)=>{var A=u.map($);return Ve(A)?{coordinate:A+_,value:n?n[$]:$,index:E,offset:_}:null}).filter(Mr)},aG=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,u=0,l=0;l<r;++l){var d=e[l],f=d==null?void 0:d[i];if(f!=null){var p=f[1],m=f[0],h=Jn(p)?m:p;h>=0?(f[0]=a,a+=h,f[1]=a):(f[0]=u,u+=h,f[1]=u)}}}},oG=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,u=0;u<r;++u){var l=e[u],d=l==null?void 0:l[i];if(d!=null){var f=Jn(d[1])?d[0]:d[1];f>=0?(d[0]=a,a+=f,d[1]=a):(d[0]=0,d[1]=0)}}}},uG={sign:aG,expand:WK,none:Qa,silhouette:VK,wiggle:KK,positive:oG},sG=(e,t,r)=>{var n,i=(n=uG[r])!==null&&n!==void 0?n:Qa,a=qK().keys(t).value((l,d)=>Number(ur(l,d,0))).order(by).offset(i),u=a(e);return u.forEach((l,d)=>{l.forEach((f,p)=>{var m=ur(e[p],t[d],0);Array.isArray(m)&&m.length===2&&be(m[0])&&be(m[1])&&(f[0]=m[0],f[1]=m[1])})}),u};function lG(e){return e==null?void 0:String(e)}function xI(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:u}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!_r(i[t.dataKey])){var l=KD(r,"value",i[t.dataKey]);if(l)return l.coordinate+n/2}return r!=null&&r[a]?r[a].coordinate+n/2:null}var d=ur(i,_r(u)?t.dataKey:u),f=t.scale.map(d);return be(f)?f:null}var cG=e=>{var t=e.flat(2).filter(be);return[Math.min(...t),Math.max(...t)]},dG=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],fG=(e,t,r)=>{if(e!=null)return dG(Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var{stackedData:u}=a,l=u.reduce((d,f)=>{var p=D4(f,t,r),m=cG(p);return!Ve(m[0])||!Ve(m[1])?d:[Math.min(d[0],m[0]),Math.max(d[1],m[1])]},[1/0,-1/0]);return[Math.min(l[0],n[0]),Math.max(l[1],n[1])]},[1/0,-1/0]))},kI=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,SI=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,pf=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=Hp(t,p=>p.coordinate),a=1/0,u=1,l=i.length;u<l;u++){var d=i[u],f=i[u-1];a=Math.min(((d==null?void 0:d.coordinate)||0)-((f==null?void 0:f.coordinate)||0),a)}return a===1/0?0:a}return r?void 0:0};function $I(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return Wo(Wo({},t),{},{dataKey:r,payload:n,value:i,name:a})}function U4(e,t){if(e)return String(e);if(typeof t=="string")return t}var pG=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},mG=(e,t)=>t==="centric"?e.angle:e.radius,Ii=e=>e.layout.width,Pi=e=>e.layout.height,vG=e=>e.layout.scale,L4=e=>e.layout.margin,im=q(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),am=q(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),hG="data-recharts-item-index",gG="data-recharts-item-id",Nl=60;function II(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _d(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?II(Object(r),!0).forEach(function(n){yG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):II(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yG(e,t,r){return(t=bG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bG(e){var t=wG(e,"string");return typeof t=="symbol"?t:t+""}function wG(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _G=e=>e.brush.height;function xG(e){var t=am(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Nl;return r+i}return r},0)}function kG(e){var t=am(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Nl;return r+i}return r},0)}function SG(e){var t=im(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function $G(e){var t=im(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var cr=q([Ii,Pi,L4,_G,xG,kG,SG,$G,o4,XH],(e,t,r,n,i,a,u,l,d,f)=>{var p={left:(r.left||0)+i,right:(r.right||0)+a},m={top:(r.top||0)+u,bottom:(r.bottom||0)+l},h=_d(_d({},m),p),y=h.bottom;h.bottom+=n,h=iG(h,d,f);var w=e-h.left-h.right,_=t-h.top-h.bottom;return _d(_d({brushBottom:y},h),{},{width:Math.max(w,0),height:Math.max(_,0)})}),IG=q(cr,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Z4=q(Ii,Pi,(e,t)=>({x:0,y:0,width:e,height:t})),PG=k.createContext(null),Zr=()=>k.useContext(PG)!=null,om=e=>e.brush,um=q([om,cr,L4],(e,t,r)=>({height:e.height,x:be(e.x)?e.x:t.left,y:be(e.y)?e.y:t.top+t.height+t.brushBottom-((r==null?void 0:r.bottom)||0),width:be(e.width)?e.width:t.width})),Ig={},Pg={},Og={},PI;function OG(){return PI||(PI=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let u,l=null;const d=a!=null&&a.includes("leading"),f=a==null||a.includes("trailing"),p=()=>{l!==null&&(r.apply(u,l),u=void 0,l=null)},m=()=>{f&&p(),_()};let h=null;const y=()=>{h!=null&&clearTimeout(h),h=setTimeout(()=>{h=null,m()},n)},w=()=>{h!==null&&(clearTimeout(h),h=null)},_=()=>{w(),u=void 0,l=null},x=()=>{p()},$=function(...E){if(i!=null&&i.aborted)return;u=this,l=E;const A=h==null;y(),d&&A&&p()};return $.schedule=y,$.cancel=_,$.flush=x,i==null||i.addEventListener("abort",_,{once:!0}),$}e.debounce=t})(Og)),Og}var OI;function EG(){return OI||(OI=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=OG();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:u=!1,trailing:l=!0,maxWait:d}=a,f=Array(2);u&&(f[0]="leading"),l&&(f[1]="trailing");let p,m=null;const h=t.debounce(function(..._){p=n.apply(this,_),m=null},i,{edges:f}),y=function(..._){return d!=null&&(m===null&&(m=Date.now()),Date.now()-m>=d)?(p=n.apply(this,_),m=Date.now(),h.cancel(),h.schedule(),p):(h.apply(this,_),p)},w=()=>(h.flush(),p);return y.cancel=h.cancel,y.flush=w,y}e.debounce=r})(Pg)),Pg}var EI;function zG(){return EI||(EI=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=EG();function r(n,i=0,a={}){const{leading:u=!0,trailing:l=!0}=a;return t.debounce(n,i,{leading:u,maxWait:i,trailing:l})}e.throttle=r})(Ig)),Ig}var Eg,zI;function AG(){return zI||(zI=1,Eg=zG().throttle),Eg}var jG=AG();const CG=pa(jG);var mf=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;console.warn(r.replace(/%s/g,()=>i[u++]))}},Vn={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},F4=(e,t,r)=>{var{width:n=Vn.width,height:i=Vn.height,aspect:a,maxHeight:u}=r,l=eo(n)?e:Number(n),d=eo(i)?t:Number(i);return a&&a>0&&(l?d=l/a:d&&(l=d*a),u&&d!=null&&d>u&&(d=u)),{calculatedWidth:l,calculatedHeight:d}},TG={width:0,height:0,overflow:"visible"},NG={width:0,overflowX:"visible"},DG={height:0,overflowY:"visible"},MG={},RG=e=>{var{width:t,height:r}=e,n=eo(t),i=eo(r);return n&&i?TG:n?NG:i?DG:MG};function UG(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i=Vn.width,a=Vn.height):i===void 0?i=n&&n>0?void 0:Vn.width:a===void 0&&(a=n&&n>0?void 0:Vn.height),{width:i,height:a}}function zy(){return zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zy.apply(null,arguments)}function AI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AI(Object(r),!0).forEach(function(n){LG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LG(e,t,r){return(t=ZG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZG(e){var t=FG(e,"string");return typeof t=="symbol"?t:t+""}function FG(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var B4=k.createContext(Vn.initialDimension);function BG(e){return Xn(e.width)&&Xn(e.height)}function q4(e){var{children:t,width:r,height:n}=e,i=k.useMemo(()=>({width:r,height:n}),[r,n]);return BG(i)?k.createElement(B4.Provider,{value:i},t):null}var Yw=()=>k.useContext(B4),qG=k.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=Vn.initialDimension,width:i,height:a,minWidth:u=Vn.minWidth,minHeight:l,maxHeight:d,children:f,debounce:p=Vn.debounce,id:m,className:h,onResize:y,style:w={}}=e,_=k.useRef(null),x=k.useRef();x.current=y,k.useImperativeHandle(t,()=>_.current);var[$,E]=k.useState({containerWidth:n.width,containerHeight:n.height}),A=k.useCallback((M,K)=>{E(se=>{var ae=Math.round(M),W=Math.round(K);return se.containerWidth===ae&&se.containerHeight===W?se:{containerWidth:ae,containerHeight:W}})},[]);k.useEffect(()=>{if(_.current==null||typeof ResizeObserver>"u")return pu;var M=W=>{var _e,xe=W[0];if(xe!=null){var{width:Ce,height:Te}=xe.contentRect;A(Ce,Te),(_e=x.current)===null||_e===void 0||_e.call(x,Ce,Te)}};p>0&&(M=CG(M,p,{trailing:!0,leading:!1}));var K=new ResizeObserver(M),{width:se,height:ae}=_.current.getBoundingClientRect();return A(se,ae),K.observe(_.current),()=>{K.disconnect()}},[A,p]);var{containerWidth:I,containerHeight:j}=$;mf(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:z,calculatedHeight:N}=F4(I,j,{width:i,height:a,aspect:r,maxHeight:d});return mf(z!=null&&z>0||N!=null&&N>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
166
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
167
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
168
|
+
height and width.`,z,N,i,a,u,l,r),k.createElement("div",{id:m?"".concat(m):void 0,className:at("recharts-responsive-container",h),style:jI(jI({},w),{},{width:i,height:a,minWidth:u,minHeight:l,maxHeight:d}),ref:_},k.createElement("div",{style:RG({width:i,height:a})},k.createElement(q4,{width:z,height:N},f)))}),WG=k.forwardRef((e,t)=>{var r=Yw();if(Xn(r.width)&&Xn(r.height))return e.children;var{width:n,height:i}=UG({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:u}=F4(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return be(a)&&be(u)?k.createElement(q4,{width:a,height:u},e.children):k.createElement(qG,zy({},e,{width:n,height:i,ref:t}))});function Xw(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var sm=()=>{var e,t=Zr(),r=Ae(IG),n=Ae(um),i=(e=Ae(om))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},VG={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},W4=()=>{var e;return(e=Ae(cr))!==null&&e!==void 0?e:VG},V4=()=>Ae(Ii),K4=()=>Ae(Pi),wt=e=>e.layout.layoutType,mu=()=>Ae(wt),Qw=()=>{var e=mu();if(e==="horizontal"||e==="vertical")return e},H4=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},KG=()=>{var e=mu();return e!==void 0},Dl=e=>{var t=Gt(),r=Zr(),{width:n,height:i}=e,a=Yw(),u=n,l=i;return a&&(u=a.width>0?a.width:n,l=a.height>0?a.height:i),k.useEffect(()=>{!r&&Xn(u)&&Xn(l)&&t(X7({width:u,height:l}))},[t,r,u,l]),null},G4=Symbol.for("immer-nothing"),CI=Symbol.for("immer-draftable"),Gr=Symbol.for("immer-state");function zn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ls=Object.getPrototypeOf;function au(e){return!!e&&!!e[Gr]}function ro(e){var t;return e?J4(e)||Array.isArray(e)||!!e[CI]||!!((t=e.constructor)!=null&&t[CI])||Ml(e)||cm(e):!1}var HG=Object.prototype.constructor.toString(),TI=new WeakMap;function J4(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=TI.get(r);return n===void 0&&(n=Function.toString.call(r),TI.set(r,n)),n===HG}function vf(e,t,r=!0){lm(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function lm(e){const t=e[Gr];return t?t.type_:Array.isArray(e)?1:Ml(e)?2:cm(e)?3:0}function Ay(e,t){return lm(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Y4(e,t,r){const n=lm(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function GG(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ml(e){return e instanceof Map}function cm(e){return e instanceof Set}function Ma(e){return e.copy_||e.base_}function jy(e,t){if(Ml(e))return new Map(e);if(cm(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=J4(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Gr];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const u=i[a],l=n[u];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(n[u]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[u]})}return Object.create(Ls(e),n)}else{const n=Ls(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function e_(e,t=!1){return dm(e)||au(e)||!ro(e)||(lm(e)>1&&Object.defineProperties(e,{set:xd,add:xd,clear:xd,delete:xd}),Object.freeze(e),t&&Object.values(e).forEach(r=>e_(r,!0))),e}function JG(){zn(2)}var xd={value:JG};function dm(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var YG={};function no(e){const t=YG[e];return t||zn(0,e),t}var Zs;function X4(){return Zs}function XG(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function NI(e,t){t&&(no("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Cy(e){Ty(e),e.drafts_.forEach(QG),e.drafts_=null}function Ty(e){e===Zs&&(Zs=e.parent_)}function DI(e){return Zs=XG(Zs,e)}function QG(e){const t=e[Gr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function MI(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Gr].modified_&&(Cy(t),zn(4)),ro(e)&&(e=hf(t,e),t.parent_||gf(t,e)),t.patches_&&no("Patches").generateReplacementPatches_(r[Gr].base_,e,t.patches_,t.inversePatches_)):e=hf(t,r,[]),Cy(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==G4?e:void 0}function hf(e,t,r){if(dm(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[Gr];if(!i)return vf(t,(a,u)=>RI(e,i,t,a,u,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return gf(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let u=a,l=!1;i.type_===3&&(u=new Set(a),a.clear(),l=!0),vf(u,(d,f)=>RI(e,i,a,d,f,r,l),n),gf(e,a,!1),r&&e.patches_&&no("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function RI(e,t,r,n,i,a,u){if(i==null||typeof i!="object"&&!u)return;const l=dm(i);if(!(l&&!u)){if(au(i)){const d=a&&t&&t.type_!==3&&!Ay(t.assigned_,n)?a.concat(n):void 0,f=hf(e,i,d);if(Y4(r,n,f),au(f))e.canAutoFreeze_=!1;else return}else u&&r.add(i);if(ro(i)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&l)return;hf(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Ml(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&gf(e,i)}}}function gf(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&e_(t,r)}function eJ(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:X4(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=t_;r&&(i=[n],a=Fs);const{revoke:u,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=u,l}var t_={get(e,t){if(t===Gr)return e;const r=Ma(e);if(!Ay(r,t))return tJ(e,r,t);const n=r[t];return e.finalized_||!ro(n)?n:n===zg(e.base_,t)?(Ag(e),e.copy_[t]=Dy(n,e)):n},has(e,t){return t in Ma(e)},ownKeys(e){return Reflect.ownKeys(Ma(e))},set(e,t,r){const n=Q4(Ma(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=zg(Ma(e),t),a=i==null?void 0:i[Gr];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(GG(r,i)&&(r!==void 0||Ay(e.base_,t)))return!0;Ag(e),Ny(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return zg(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ag(e),Ny(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ma(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){zn(11)},getPrototypeOf(e){return Ls(e.base_)},setPrototypeOf(){zn(12)}},Fs={};vf(t_,(e,t)=>{Fs[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Fs.deleteProperty=function(e,t){return Fs.set.call(this,e,t,void 0)};Fs.set=function(e,t,r){return t_.set.call(this,e[0],t,r,e[0])};function zg(e,t){const r=e[Gr];return(r?Ma(r):e)[t]}function tJ(e,t,r){var i;const n=Q4(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function Q4(e,t){if(!(t in e))return;let r=Ls(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Ls(r)}}function Ny(e){e.modified_||(e.modified_=!0,e.parent_&&Ny(e.parent_))}function Ag(e){e.copy_||(e.copy_=jy(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var rJ=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const u=this;return function(d=a,...f){return u.produce(d,p=>r.call(this,p,...f))}}typeof r!="function"&&zn(6),n!==void 0&&typeof n!="function"&&zn(7);let i;if(ro(t)){const a=DI(this),u=Dy(t,void 0);let l=!0;try{i=r(u),l=!1}finally{l?Cy(a):Ty(a)}return NI(a,n),MI(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===G4&&(i=void 0),this.autoFreeze_&&e_(i,!0),n){const a=[],u=[];no("Patches").generateReplacementPatches_(t,i,a,u),n(a,u)}return i}else zn(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(u,...l)=>this.produceWithPatches(u,d=>t(d,...l));let n,i;return[this.produce(t,r,(u,l)=>{n=u,i=l}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){ro(e)||zn(8),au(e)&&(e=nJ(e));const t=DI(this),r=Dy(e,void 0);return r[Gr].isManual_=!0,Ty(t),r}finishDraft(e,t){const r=e&&e[Gr];(!r||!r.isManual_)&&zn(9);const{scope_:n}=r;return NI(n,t),MI(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=no("Patches").applyPatches_;return au(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Dy(e,t){const r=Ml(e)?no("MapSet").proxyMap_(e,t):cm(e)?no("MapSet").proxySet_(e,t):eJ(e,t);return(t?t.scope_:X4()).drafts_.push(r),r}function nJ(e){return au(e)||zn(10,e),e2(e)}function e2(e){if(!ro(e)||dm(e))return e;const t=e[Gr];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=jy(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=jy(e,!0);return vf(r,(i,a)=>{Y4(r,i,e2(a))},n),t&&(t.finalized_=!1),r}var iJ=new rJ;iJ.produce;var aJ={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},t2=Lr({name:"legend",initialState:aJ,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:ht()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Cn(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:ht()},removeLegendPayload:{reducer(e,t){var r=Cn(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:ht()}}}),{setLegendSize:Yse,setLegendSettings:Xse,addLegendPayload:oJ,replaceLegendPayload:uJ,removeLegendPayload:sJ}=t2.actions,lJ=t2.reducer;function My(){return My=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},My.apply(null,arguments)}function UI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ms(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UI(Object(r),!0).forEach(function(n){cJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cJ(e,t,r){return(t=dJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dJ(e){var t=fJ(e,"string");return typeof t=="symbol"?t:t+""}function fJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pJ(e){return Array.isArray(e)&&Yn(e[0])&&Yn(e[1])?e.join(" ~ "):e}var Lo={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1},mJ=e=>{var{separator:t=Lo.separator,contentStyle:r,itemStyle:n,labelStyle:i=Lo.labelStyle,payload:a,formatter:u,itemSorter:l,wrapperClassName:d,labelClassName:f,label:p,labelFormatter:m,accessibilityLayer:h=Lo.accessibilityLayer}=e,y=()=>{if(a&&a.length){var j={padding:0,margin:0},z=(l?Hp(a,l):a).map((N,M)=>{if(N.type==="none")return null;var K=N.formatter||u||pJ,{value:se,name:ae}=N,W=se,_e=ae;if(K){var xe=K(se,ae,N,M,a);if(Array.isArray(xe))[W,_e]=xe;else if(xe!=null)W=xe;else return null}var Ce=ms(ms({},Lo.itemStyle),{},{color:N.color||Lo.itemStyle.color},n);return k.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(M),style:Ce},Yn(_e)?k.createElement("span",{className:"recharts-tooltip-item-name"},_e):null,Yn(_e)?k.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,k.createElement("span",{className:"recharts-tooltip-item-value"},W),k.createElement("span",{className:"recharts-tooltip-item-unit"},N.unit||""))});return k.createElement("ul",{className:"recharts-tooltip-item-list",style:j},z)}return null},w=ms(ms({},Lo.contentStyle),r),_=ms({margin:0},i),x=!_r(p),$=x?p:"",E=at("recharts-default-tooltip",d),A=at("recharts-tooltip-label",f);x&&m&&a!==void 0&&a!==null&&($=m(p,a));var I=h?{role:"status","aria-live":"assertive"}:{};return k.createElement("div",My({className:E,style:w},I),k.createElement("p",{className:A,style:_},k.isValidElement($)?$:"".concat($)),y())},vs="recharts-tooltip-wrapper",vJ={visibility:"hidden"};function hJ(e){var{coordinate:t,translateX:r,translateY:n}=e;return at(vs,{["".concat(vs,"-right")]:be(r)&&t&&be(t.x)&&r>=t.x,["".concat(vs,"-left")]:be(r)&&t&&be(t.x)&&r<t.x,["".concat(vs,"-bottom")]:be(n)&&t&&be(t.y)&&n>=t.y,["".concat(vs,"-top")]:be(n)&&t&&be(t.y)&&n<t.y})}function LI(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:i,position:a,reverseDirection:u,tooltipDimension:l,viewBox:d,viewBoxDimension:f}=e;if(a&&be(a[n]))return a[n];var p=r[n]-l-(i>0?i:0),m=r[n]+i;if(t[n])return u[n]?p:m;var h=d[n];if(h==null)return 0;if(u[n]){var y=p,w=h;return y<w?Math.max(m,h):Math.max(p,h)}if(f==null)return 0;var _=m+l,x=h+f;return _>x?Math.max(p,h):Math.max(m,h)}function gJ(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function yJ(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:i,position:a,reverseDirection:u,tooltipBox:l,useTranslate3d:d,viewBox:f}=e,p,m,h;return l.height>0&&l.width>0&&r?(m=LI({allowEscapeViewBox:t,coordinate:r,key:"x",offset:i,position:a,reverseDirection:u,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),h=LI({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:a,reverseDirection:u,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),p=gJ({translateX:m,translateY:h,useTranslate3d:d})):p=vJ,{cssProperties:p,cssClasses:hJ({translateX:m,translateY:h,coordinate:r})}}function ZI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZI(Object(r),!0).forEach(function(n){Ry(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ry(e,t,r){return(t=bJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bJ(e){var t=wJ(e,"string");return typeof t=="symbol"?t:t+""}function wJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class _J extends k.PureComponent{constructor(){super(...arguments),Ry(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Ry(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:i,children:a,coordinate:u,hasPayload:l,isAnimationActive:d,offset:f,position:p,reverseDirection:m,useTranslate3d:h,viewBox:y,wrapperStyle:w,lastBoundingBox:_,innerRef:x,hasPortalFromProps:$}=this.props,E=typeof f=="number"?f:f.x,A=typeof f=="number"?f:f.y,{cssClasses:I,cssProperties:j}=yJ({allowEscapeViewBox:r,coordinate:u,offsetLeft:E,offsetTop:A,position:p,reverseDirection:m,tooltipBox:{height:_.height,width:_.width},useTranslate3d:h,viewBox:y}),z=$?{}:kd(kd({transition:d&&t?"transform ".concat(n,"ms ").concat(i):void 0},j),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&l?"visible":"hidden",position:"absolute",top:0,left:0}),N=kd(kd({},z),{},{visibility:!this.state.dismissed&&t&&l?"visible":"hidden"},w);return k.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:I,style:N,ref:x},a)}}var r2=()=>{var e;return(e=Ae(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function Uy(){return Uy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uy.apply(null,arguments)}function FI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function BI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FI(Object(r),!0).forEach(function(n){xJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xJ(e,t,r){return(t=kJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kJ(e){var t=SJ(e,"string");return typeof t=="symbol"?t:t+""}function SJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qI={curveBasisClosed:CK,curveBasisOpen:TK,curveBasis:jK,curveBumpX:zK,curveBumpY:AK,curveLinearClosed:NK,curveLinear:Wp,curveMonotoneX:DK,curveMonotoneY:MK,curveNatural:RK,curveStep:UK,curveStepAfter:ZK,curveStepBefore:LK},yf=e=>Ve(e.x)&&Ve(e.y),WI=e=>e.base!=null&&yf(e.base)&&yf(e),hs=e=>e.x,gs=e=>e.y,$J=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Lw(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=qI["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return qI[r]||Wp},VI={connectNulls:!1,type:"linear"},IJ=e=>{var{type:t=VI.type,points:r=[],baseLine:n,layout:i,connectNulls:a=VI.connectNulls}=e,u=$J(t,i),l=a?r.filter(yf):r;if(Array.isArray(n)){var d,f=r.map((w,_)=>BI(BI({},w),{},{base:n[_]}));i==="vertical"?d=vd().y(gs).x1(hs).x0(w=>w.base.x):d=vd().x(hs).y1(gs).y0(w=>w.base.y);var p=d.defined(WI).curve(u),m=a?f.filter(WI):f;return p(m)}var h;i==="vertical"&&be(n)?h=vd().y(gs).x1(hs).x0(n):be(n)?h=vd().x(hs).y1(gs).y0(n):h=DD().x(hs).y(gs);var y=h.defined(yf).curve(u);return y(l)},Td=e=>{var{className:t,points:r,path:n,pathRef:i}=e,a=mu();if((!r||!r.length)&&!n)return null;var u={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},l=r&&r.length?IJ(u):n;return k.createElement("path",Uy({},Tn(e),Zw(e),{className:at("recharts-curve",t),d:l===null?void 0:l,ref:i}))},PJ=["x","y","top","left","width","height","className"];function Ly(){return Ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ly.apply(null,arguments)}function KI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function OJ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KI(Object(r),!0).forEach(function(n){EJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EJ(e,t,r){return(t=zJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zJ(e){var t=AJ(e,"string");return typeof t=="symbol"?t:t+""}function AJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jJ(e,t){if(e==null)return{};var r,n,i=CJ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function CJ(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var TJ=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),NJ=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:u=0,className:l}=e,d=jJ(e,PJ),f=OJ({x:t,y:r,top:n,left:i,width:a,height:u},d);return!be(t)||!be(r)||!be(a)||!be(u)||!be(n)||!be(i)?null:k.createElement("path",Ly({},mn(f),{className:at("recharts-cross",l),d:TJ(t,r,a,u,n,i)}))};function DJ(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function HI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function GI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HI(Object(r),!0).forEach(function(n){MJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MJ(e,t,r){return(t=RJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RJ(e){var t=UJ(e,"string");return typeof t=="symbol"?t:t+""}function UJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LJ=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),ZJ=(e,t,r)=>e.map(n=>"".concat(LJ(n)," ").concat(t,"ms ").concat(r)).join(","),FJ=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),Bs=(e,t)=>Object.keys(t).reduce((r,n)=>GI(GI({},r),{},{[n]:e(n,t[n])}),{});function JI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JI(Object(r),!0).forEach(function(n){BJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BJ(e,t,r){return(t=qJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qJ(e){var t=WJ(e,"string");return typeof t=="symbol"?t:t+""}function WJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bf=(e,t,r)=>e+(t-e)*r,Zy=e=>{var{from:t,to:r}=e;return t!==r},n2=(e,t,r)=>{var n=Bs((i,a)=>{if(Zy(a)){var[u,l]=e(a.from,a.to,a.velocity);return Ut(Ut({},a),{},{from:u,velocity:l})}return a},t);return r<1?Bs((i,a)=>Zy(a)&&n[i]!=null?Ut(Ut({},a),{},{velocity:bf(a.velocity,n[i].velocity,r),from:bf(a.from,n[i].from,r)}):a,t):n2(e,n,r-1)};function VJ(e,t,r,n,i,a){var u,l=n.reduce((h,y)=>Ut(Ut({},h),{},{[y]:{from:e[y],velocity:0,to:t[y]}}),{}),d=()=>Bs((h,y)=>y.from,l),f=()=>!Object.values(l).filter(Zy).length,p=null,m=h=>{u||(u=h);var y=h-u,w=y/r.dt;l=n2(r,l,w),i(Ut(Ut(Ut({},e),t),d())),u=h,f()||(p=a.setTimeout(m))};return()=>(p=a.setTimeout(m),()=>{var h;(h=p)===null||h===void 0||h()})}function KJ(e,t,r,n,i,a,u){var l=null,d=i.reduce((m,h)=>{var y=e[h],w=t[h];return y==null||w==null?m:Ut(Ut({},m),{},{[h]:[y,w]})},{}),f,p=m=>{f||(f=m);var h=(m-f)/n,y=Bs((_,x)=>bf(...x,r(h)),d);if(a(Ut(Ut(Ut({},e),t),y)),h<1)l=u.setTimeout(p);else{var w=Bs((_,x)=>bf(...x,r(1)),d);a(Ut(Ut(Ut({},e),t),w))}};return()=>(l=u.setTimeout(p),()=>{var m;(m=l)===null||m===void 0||m()})}const HJ=(e,t,r,n,i,a)=>{var u=FJ(e,t);return r==null?()=>(i(Ut(Ut({},e),t)),()=>{}):r.isStepper===!0?VJ(e,t,r,u,i,a):KJ(e,t,r,n,u,i,a)};var wf=1e-4,i2=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],a2=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),YI=(e,t)=>r=>{var n=i2(e,t);return a2(n,r)},GJ=(e,t)=>r=>{var n=i2(e,t),i=[...n.map((a,u)=>a*u).slice(1),0];return a2(i,r)},JJ=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var i=n.map(a=>parseFloat(a));return[i[0],i[1],i[2],i[3]]},YJ=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===1)switch(r[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i=JJ(r[0]);if(i)return i}}return r.length===4?r:[0,0,1,1]},XJ=(e,t,r,n)=>{var i=YI(e,r),a=YI(t,n),u=GJ(e,r),l=f=>f>1?1:f<0?0:f,d=f=>{for(var p=f>1?1:f,m=p,h=0;h<8;++h){var y=i(m)-p,w=u(m);if(Math.abs(y-p)<wf||w<wf)return a(m);m=l(m-y/w)}return a(m)};return d.isStepper=!1,d},XI=function(){return XJ(...YJ(...arguments))},QJ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(u,l,d)=>{var f=-(u-l)*r,p=d*n,m=d+(f-p)*i/1e3,h=d*i/1e3+u;return Math.abs(h-l)<wf&&Math.abs(m)<wf?[l,0]:[h,m]};return a.isStepper=!0,a.dt=i,a},eY=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return XI(e);case"spring":return QJ();default:if(e.split("(")[0]==="cubic-bezier")return XI(e)}return typeof e=="function"?e:null};function tY(e){var t,r=()=>null,n=!1,i=null,a=u=>{if(!n){if(Array.isArray(u)){if(!u.length)return;var l=u,[d,...f]=l;if(typeof d=="number"){i=e.setTimeout(a.bind(null,f),d);return}a(d),i=e.setTimeout(a.bind(null,f));return}typeof u=="string"&&(t=u,r(t)),typeof u=="object"&&(t=u,r(t)),typeof u=="function"&&u()}};return{stop:()=>{n=!0},start:u=>{n=!1,i&&(i(),i=null),a(u)},subscribe:u=>(r=u,()=>{r=()=>null}),getTimeoutController:()=>e}}class rY{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=u=>{u-n>=r?t(u):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{i!=null&&cancelAnimationFrame(i)}}}function nY(){return tY(new rY)}var iY=k.createContext(nY);function aY(e,t){var r=k.useContext(iY);return k.useMemo(()=>t??r(e),[e,t,r])}var oY=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Rl={isSsr:oY()},uY={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},QI={t:0},jg={t:1};function o2(e){var t=en(e,uY),{isActive:r,canBegin:n,duration:i,easing:a,begin:u,onAnimationEnd:l,onAnimationStart:d,children:f}=t,p=r==="auto"?!Rl.isSsr:r,m=aY(t.animationId,t.animationManager),[h,y]=k.useState(p?QI:jg),w=k.useRef(null);return k.useEffect(()=>{p||y(jg)},[p]),k.useEffect(()=>{if(!p||!n)return pu;var _=HJ(QI,jg,eY(a),i,y,m.getTimeoutController()),x=()=>{w.current=_()};return m.start([d,u,x,i,l]),()=>{m.stop(),w.current&&w.current(),l()}},[p,n,i,a,u,d,l,m]),f(h.t)}function u2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=k.useRef(Ds(t)),n=k.useRef(e);return n.current!==e&&(r.current=Ds(t),n.current=e),r.current}var sY=["radius"],lY=["radius"],eP,tP,rP,nP,iP,aP,oP,uP,sP,lP;function cP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cP(Object(r),!0).forEach(function(n){cY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cY(e,t,r){return(t=dY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dY(e){var t=fY(e,"string");return typeof t=="symbol"?t:t+""}function fY(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _f(){return _f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_f.apply(null,arguments)}function fP(e,t){if(e==null)return{};var r,n,i=pY(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function pY(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Zn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var pP=(e,t,r,n,i)=>{var a=ia(r),u=ia(n),l=Math.min(Math.abs(a)/2,Math.abs(u)/2),d=u>=0?1:-1,f=a>=0?1:-1,p=u>=0&&a>=0||u<0&&a<0?1:0,m;if(l>0&&Array.isArray(i)){for(var h=[0,0,0,0],y=0,w=4;y<w;y++){var _,x=(_=i[y])!==null&&_!==void 0?_:0;h[y]=x>l?l:x}m=rr(eP||(eP=Zn(["M",",",""])),e,t+d*h[0]),h[0]>0&&(m+=rr(tP||(tP=Zn(["A ",",",",0,0,",",",",",""])),h[0],h[0],p,e+f*h[0],t)),m+=rr(rP||(rP=Zn(["L ",",",""])),e+r-f*h[1],t),h[1]>0&&(m+=rr(nP||(nP=Zn(["A ",",",",0,0,",`,
|
|
169
|
+
`,",",""])),h[1],h[1],p,e+r,t+d*h[1])),m+=rr(iP||(iP=Zn(["L ",",",""])),e+r,t+n-d*h[2]),h[2]>0&&(m+=rr(aP||(aP=Zn(["A ",",",",0,0,",`,
|
|
170
|
+
`,",",""])),h[2],h[2],p,e+r-f*h[2],t+n)),m+=rr(oP||(oP=Zn(["L ",",",""])),e+f*h[3],t+n),h[3]>0&&(m+=rr(uP||(uP=Zn(["A ",",",",0,0,",`,
|
|
171
|
+
`,",",""])),h[3],h[3],p,e,t+n-d*h[3])),m+="Z"}else if(l>0&&i===+i&&i>0){var $=Math.min(l,i);m=rr(sP||(sP=Zn(["M ",",",`
|
|
172
|
+
A `,",",",0,0,",",",",",`
|
|
173
|
+
L `,",",`
|
|
174
|
+
A `,",",",0,0,",",",",",`
|
|
175
|
+
L `,",",`
|
|
176
|
+
A `,",",",0,0,",",",",",`
|
|
177
|
+
L `,",",`
|
|
178
|
+
A `,",",",0,0,",",",","," Z"])),e,t+d*$,$,$,p,e+f*$,t,e+r-f*$,t,$,$,p,e+r,t+d*$,e+r,t+n-d*$,$,$,p,e+r-f*$,t+n,e+f*$,t+n,$,$,p,e,t+n-d*$)}else m=rr(lP||(lP=Zn(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return m},mP={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},mY=e=>{var t=en(e,mP),r=k.useRef(null),[n,i]=k.useState(-1);k.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var ge=r.current.getTotalLength();ge&&i(ge)}catch{}},[]);var{x:a,y:u,width:l,height:d,radius:f,className:p}=t,{animationEasing:m,animationDuration:h,animationBegin:y,isAnimationActive:w,isUpdateAnimationActive:_}=t,x=k.useRef(l),$=k.useRef(d),E=k.useRef(a),A=k.useRef(u),I=k.useMemo(()=>({x:a,y:u,width:l,height:d,radius:f}),[a,u,l,d,f]),j=u2(I,"rectangle-");if(a!==+a||u!==+u||l!==+l||d!==+d||l===0||d===0)return null;var z=at("recharts-rectangle",p);if(!_){var N=mn(t),{radius:M}=N,K=fP(N,sY);return k.createElement("path",_f({},K,{x:ia(a),y:ia(u),width:ia(l),height:ia(d),radius:typeof f=="number"?f:void 0,className:z,d:pP(a,u,l,d,f)}))}var se=x.current,ae=$.current,W=E.current,_e=A.current,xe="0px ".concat(n===-1?1:n,"px"),Ce="".concat(n,"px 0px"),Te=ZJ(["strokeDasharray"],h,typeof m=="string"?m:mP.animationEasing);return k.createElement(o2,{animationId:j,key:j,canBegin:n>0,duration:h,easing:m,isActive:_,begin:y},ge=>{var X=qn(se,l,ge),oe=qn(ae,d,ge),B=qn(W,a,ge),D=qn(_e,u,ge);r.current&&(x.current=X,$.current=oe,E.current=B,A.current=D);var G;w?ge>0?G={transition:Te,strokeDasharray:Ce}:G={strokeDasharray:xe}:G={strokeDasharray:Ce};var Ie=mn(t),{radius:Se}=Ie,$e=fP(Ie,lY);return k.createElement("path",_f({},$e,{radius:typeof f=="number"?f:void 0,className:z,d:pP(B,D,X,oe,f),ref:r,style:dP(dP({},G),t.style)}))})};function vP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vP(Object(r),!0).forEach(function(n){vY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vY(e,t,r){return(t=hY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hY(e){var t=gY(e,"string");return typeof t=="symbol"?t:t+""}function gY(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xf=Math.PI/180,yY=e=>e*180/Math.PI,or=(e,t,r,n)=>({x:e+Math.cos(-xf*n)*r,y:t+Math.sin(-xf*n)*r}),bY=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},wY=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},_Y=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,u=wY({x:r,y:n},{x:i,y:a});if(u<=0)return{radius:u,angle:0};var l=(r-i)/u,d=Math.acos(l);return n>a&&(d=2*Math.PI-d),{radius:u,angle:yY(d),angleInRadian:d}},xY=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},kY=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),u=Math.min(i,a);return e+u*360},SY=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:i,angle:a}=_Y({x:r,y:n},t),{innerRadius:u,outerRadius:l}=t;if(i<u||i>l||i===0)return null;var{startAngle:d,endAngle:f}=xY(t),p=a,m;if(d<=f){for(;p>f;)p-=360;for(;p<d;)p+=360;m=p>=d&&p<=f}else{for(;p>d;)p-=360;for(;p<f;)p+=360;m=p>=f&&p<=d}return m?hP(hP({},t),{},{radius:i,angle:kY(p,t)}):null};function s2(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,u=or(t,r,n,i),l=or(t,r,n,a);return{points:[u,l],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}var gP,yP,bP,wP,_P,xP,kP;function Fy(){return Fy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fy.apply(null,arguments)}function Za(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var $Y=(e,t)=>{var r=cn(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},Sd=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:u,cornerRadius:l,cornerIsExternal:d}=e,f=l*(u?1:-1)+n,p=Math.asin(l/f)/xf,m=d?i:i+a*p,h=or(t,r,f,m),y=or(t,r,n,m),w=d?i-a*p:i,_=or(t,r,f*Math.cos(p*xf),w);return{center:h,circleTangency:y,lineTangency:_,theta:p}},l2=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:u}=e,l=$Y(a,u),d=a+l,f=or(t,r,i,a),p=or(t,r,i,d),m=rr(gP||(gP=Za(["M ",",",`
|
|
179
|
+
A `,",",`,0,
|
|
180
|
+
`,",",`,
|
|
181
|
+
`,",",`
|
|
182
|
+
`])),f.x,f.y,i,i,+(Math.abs(l)>180),+(a>d),p.x,p.y);if(n>0){var h=or(t,r,n,a),y=or(t,r,n,d);m+=rr(yP||(yP=Za(["L ",",",`
|
|
183
|
+
A `,",",`,0,
|
|
184
|
+
`,",",`,
|
|
185
|
+
`,","," Z"])),y.x,y.y,n,n,+(Math.abs(l)>180),+(a<=d),h.x,h.y)}else m+=rr(bP||(bP=Za(["L ",","," Z"])),t,r);return m},IY=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:u,cornerIsExternal:l,startAngle:d,endAngle:f}=e,p=cn(f-d),{circleTangency:m,lineTangency:h,theta:y}=Sd({cx:t,cy:r,radius:i,angle:d,sign:p,cornerRadius:a,cornerIsExternal:l}),{circleTangency:w,lineTangency:_,theta:x}=Sd({cx:t,cy:r,radius:i,angle:f,sign:-p,cornerRadius:a,cornerIsExternal:l}),$=l?Math.abs(d-f):Math.abs(d-f)-y-x;if($<0)return u?rr(wP||(wP=Za(["M ",",",`
|
|
186
|
+
a`,",",",0,0,1,",`,0
|
|
187
|
+
a`,",",",0,0,1,",`,0
|
|
188
|
+
`])),h.x,h.y,a,a,a*2,a,a,-a*2):l2({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:d,endAngle:f});var E=rr(_P||(_P=Za(["M ",",",`
|
|
189
|
+
A`,",",",0,0,",",",",",`
|
|
190
|
+
A`,",",",0,",",",",",",",`
|
|
191
|
+
A`,",",",0,0,",",",",",`
|
|
192
|
+
`])),h.x,h.y,a,a,+(p<0),m.x,m.y,i,i,+($>180),+(p<0),w.x,w.y,a,a,+(p<0),_.x,_.y);if(n>0){var{circleTangency:A,lineTangency:I,theta:j}=Sd({cx:t,cy:r,radius:n,angle:d,sign:p,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),{circleTangency:z,lineTangency:N,theta:M}=Sd({cx:t,cy:r,radius:n,angle:f,sign:-p,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),K=l?Math.abs(d-f):Math.abs(d-f)-j-M;if(K<0&&a===0)return"".concat(E,"L").concat(t,",").concat(r,"Z");E+=rr(xP||(xP=Za(["L",",",`
|
|
193
|
+
A`,",",",0,0,",",",",",`
|
|
194
|
+
A`,",",",0,",",",",",",",`
|
|
195
|
+
A`,",",",0,0,",",",",","Z"])),N.x,N.y,a,a,+(p<0),z.x,z.y,n,n,+(K>180),+(p>0),A.x,A.y,a,a,+(p<0),I.x,I.y)}else E+=rr(kP||(kP=Za(["L",",","Z"])),t,r);return E},PY={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},OY=e=>{var t=en(e,PY),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:u,forceCornerRadius:l,cornerIsExternal:d,startAngle:f,endAngle:p,className:m}=t;if(a<i||f===p)return null;var h=at("recharts-sector",m),y=a-i,w=fa(u,y,0,!0),_;return w>0&&Math.abs(f-p)<360?_=IY({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(w,y/2),forceCornerRadius:l,cornerIsExternal:d,startAngle:f,endAngle:p}):_=l2({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:f,endAngle:p}),k.createElement("path",Fy({},mn(t),{className:h,d:_}))};function EY(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(HD(t)){if(e==="centric"){var{cx:n,cy:i,innerRadius:a,outerRadius:u,angle:l}=t,d=or(n,i,a,l),f=or(n,i,u,l);return[{x:d.x,y:d.y},{x:f.x,y:f.y}]}return s2(t)}}var Cg={},Tg={},Ng={},SP;function zY(){return SP||(SP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=i4();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(Ng)),Ng}var $P;function AY(){return $P||($P=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zY();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(Tg)),Tg}var IP;function jY(){return IP||(IP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=a4(),r=AY();function n(i,a,u){u&&typeof u!="number"&&t.isIterateeCall(i,a,u)&&(a=u=void 0),i=r.toFinite(i),a===void 0?(a=i,i=0):a=r.toFinite(a),u=u===void 0?i<a?1:-1:r.toFinite(u);const l=Math.max(Math.ceil((a-i)/(u||1)),0),d=new Array(l);for(let f=0;f<l;f++)d[f]=i,i+=u;return d}e.range=n})(Cg)),Cg}var Dg,PP;function CY(){return PP||(PP=1,Dg=jY().range),Dg}var TY=CY();const c2=pa(TY);function aa(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function NY(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function r_(e){let t,r,n;e.length!==2?(t=aa,r=(l,d)=>aa(e(l),d),n=(l,d)=>e(l)-d):(t=e===aa||e===NY?e:DY,r=e,n=e);function i(l,d,f=0,p=l.length){if(f<p){if(t(d,d)!==0)return p;do{const m=f+p>>>1;r(l[m],d)<0?f=m+1:p=m}while(f<p)}return f}function a(l,d,f=0,p=l.length){if(f<p){if(t(d,d)!==0)return p;do{const m=f+p>>>1;r(l[m],d)<=0?f=m+1:p=m}while(f<p)}return f}function u(l,d,f=0,p=l.length){const m=i(l,d,f,p-1);return m>f&&n(l[m-1],d)>-n(l[m],d)?m-1:m}return{left:i,center:u,right:a}}function DY(){return 0}function d2(e){return e===null?NaN:+e}function*MY(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const RY=r_(aa),Ul=RY.right;r_(d2).center;class OP extends Map{constructor(t,r=ZY){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(EP(this,t))}has(t){return super.has(EP(this,t))}set(t,r){return super.set(UY(this,t),r)}delete(t){return super.delete(LY(this,t))}}function EP({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function UY({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function LY({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function ZY(e){return e!==null&&typeof e=="object"?e.valueOf():e}function FY(e=aa){if(e===aa)return f2;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function f2(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const BY=Math.sqrt(50),qY=Math.sqrt(10),WY=Math.sqrt(2);function kf(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),u=a>=BY?10:a>=qY?5:a>=WY?2:1;let l,d,f;return i<0?(f=Math.pow(10,-i)/u,l=Math.round(e*f),d=Math.round(t*f),l/f<e&&++l,d/f>t&&--d,f=-f):(f=Math.pow(10,i)*u,l=Math.round(e/f),d=Math.round(t/f),l*f<e&&++l,d*f>t&&--d),d<l&&.5<=r&&r<2?kf(e,t,r*2):[l,d,f]}function By(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,u]=n?kf(t,e,r):kf(e,t,r);if(!(a>=i))return[];const l=a-i+1,d=new Array(l);if(n)if(u<0)for(let f=0;f<l;++f)d[f]=(a-f)/-u;else for(let f=0;f<l;++f)d[f]=(a-f)*u;else if(u<0)for(let f=0;f<l;++f)d[f]=(i+f)/-u;else for(let f=0;f<l;++f)d[f]=(i+f)*u;return d}function qy(e,t,r){return t=+t,e=+e,r=+r,kf(e,t,r)[2]}function Wy(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?qy(t,e,r):qy(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function zP(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function AP(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function p2(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?f2:FY(i);n>r;){if(n-r>600){const d=n-r+1,f=t-r+1,p=Math.log(d),m=.5*Math.exp(2*p/3),h=.5*Math.sqrt(p*m*(d-m)/d)*(f-d/2<0?-1:1),y=Math.max(r,Math.floor(t-f*m/d+h)),w=Math.min(n,Math.floor(t+(d-f)*m/d+h));p2(e,t,y,w,i)}const a=e[t];let u=r,l=n;for(ys(e,r,t),i(e[n],a)>0&&ys(e,r,n);u<l;){for(ys(e,u,l),++u,--l;i(e[u],a)<0;)++u;for(;i(e[l],a)>0;)--l}i(e[r],a)===0?ys(e,r,l):(++l,ys(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function ys(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function VY(e,t,r){if(e=Float64Array.from(MY(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return AP(e);if(t>=1)return zP(e);var n,i=(n-1)*t,a=Math.floor(i),u=zP(p2(e,a).subarray(0,a+1)),l=AP(e.subarray(a+1));return u+(l-u)*(i-a)}}function KY(e,t,r=d2){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),u=+r(e[a],a,e),l=+r(e[a+1],a+1,e);return u+(l-u)*(i-a)}}function HY(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function wn(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}const Vy=Symbol("implicit");function n_(){var e=new OP,t=[],r=[],n=Vy;function i(a){let u=e.get(a);if(u===void 0){if(n!==Vy)return n;e.set(a,u=t.push(a)-1)}return r[u%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new OP;for(const u of a)e.has(u)||e.set(u,t.push(u)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return n_(t,r).unknown(n)},wn.apply(i,arguments),i}function i_(){var e=n_().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,u,l=!1,d=0,f=0,p=.5;delete e.unknown;function m(){var h=t().length,y=i<n,w=y?i:n,_=y?n:i;a=(_-w)/Math.max(1,h-d+f*2),l&&(a=Math.floor(a)),w+=(_-w-a*(h-d))*p,u=a*(1-d),l&&(w=Math.round(w),u=Math.round(u));var x=HY(h).map(function($){return w+a*$});return r(y?x.reverse():x)}return e.domain=function(h){return arguments.length?(t(h),m()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,m()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,l=!0,m()},e.bandwidth=function(){return u},e.step=function(){return a},e.round=function(h){return arguments.length?(l=!!h,m()):l},e.padding=function(h){return arguments.length?(d=Math.min(1,f=+h),m()):d},e.paddingInner=function(h){return arguments.length?(d=Math.min(1,h),m()):d},e.paddingOuter=function(h){return arguments.length?(f=+h,m()):f},e.align=function(h){return arguments.length?(p=Math.max(0,Math.min(1,h)),m()):p},e.copy=function(){return i_(t(),[n,i]).round(l).paddingInner(d).paddingOuter(f).align(p)},wn.apply(m(),arguments)}function m2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return m2(t())},e}function GY(){return m2(i_.apply(null,arguments).paddingInner(1))}function a_(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function v2(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ll(){}var qs=.7,Sf=1/qs,Go="\\s*([+-]?\\d+)\\s*",Ws="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",JY=/^#([0-9a-f]{3,8})$/,YY=new RegExp(`^rgb\\(${Go},${Go},${Go}\\)$`),XY=new RegExp(`^rgb\\(${Hn},${Hn},${Hn}\\)$`),QY=new RegExp(`^rgba\\(${Go},${Go},${Go},${Ws}\\)$`),eX=new RegExp(`^rgba\\(${Hn},${Hn},${Hn},${Ws}\\)$`),tX=new RegExp(`^hsl\\(${Ws},${Hn},${Hn}\\)$`),rX=new RegExp(`^hsla\\(${Ws},${Hn},${Hn},${Ws}\\)$`),jP={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};a_(Ll,Vs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:CP,formatHex:CP,formatHex8:nX,formatHsl:iX,formatRgb:TP,toString:TP});function CP(){return this.rgb().formatHex()}function nX(){return this.rgb().formatHex8()}function iX(){return h2(this).formatHsl()}function TP(){return this.rgb().formatRgb()}function Vs(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=JY.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?NP(t):r===3?new Rr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?$d(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?$d(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=YY.exec(e))?new Rr(t[1],t[2],t[3],1):(t=XY.exec(e))?new Rr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=QY.exec(e))?$d(t[1],t[2],t[3],t[4]):(t=eX.exec(e))?$d(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=tX.exec(e))?RP(t[1],t[2]/100,t[3]/100,1):(t=rX.exec(e))?RP(t[1],t[2]/100,t[3]/100,t[4]):jP.hasOwnProperty(e)?NP(jP[e]):e==="transparent"?new Rr(NaN,NaN,NaN,0):null}function NP(e){return new Rr(e>>16&255,e>>8&255,e&255,1)}function $d(e,t,r,n){return n<=0&&(e=t=r=NaN),new Rr(e,t,r,n)}function aX(e){return e instanceof Ll||(e=Vs(e)),e?(e=e.rgb(),new Rr(e.r,e.g,e.b,e.opacity)):new Rr}function Ky(e,t,r,n){return arguments.length===1?aX(e):new Rr(e,t,r,n??1)}function Rr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}a_(Rr,Ky,v2(Ll,{brighter(e){return e=e==null?Sf:Math.pow(Sf,e),new Rr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?qs:Math.pow(qs,e),new Rr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rr(Ka(this.r),Ka(this.g),Ka(this.b),$f(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:DP,formatHex:DP,formatHex8:oX,formatRgb:MP,toString:MP}));function DP(){return`#${Fa(this.r)}${Fa(this.g)}${Fa(this.b)}`}function oX(){return`#${Fa(this.r)}${Fa(this.g)}${Fa(this.b)}${Fa((isNaN(this.opacity)?1:this.opacity)*255)}`}function MP(){const e=$f(this.opacity);return`${e===1?"rgb(":"rgba("}${Ka(this.r)}, ${Ka(this.g)}, ${Ka(this.b)}${e===1?")":`, ${e})`}`}function $f(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ka(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fa(e){return e=Ka(e),(e<16?"0":"")+e.toString(16)}function RP(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new An(e,t,r,n)}function h2(e){if(e instanceof An)return new An(e.h,e.s,e.l,e.opacity);if(e instanceof Ll||(e=Vs(e)),!e)return new An;if(e instanceof An)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),u=NaN,l=a-i,d=(a+i)/2;return l?(t===a?u=(r-n)/l+(r<n)*6:r===a?u=(n-t)/l+2:u=(t-r)/l+4,l/=d<.5?a+i:2-a-i,u*=60):l=d>0&&d<1?0:u,new An(u,l,d,e.opacity)}function uX(e,t,r,n){return arguments.length===1?h2(e):new An(e,t,r,n??1)}function An(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}a_(An,uX,v2(Ll,{brighter(e){return e=e==null?Sf:Math.pow(Sf,e),new An(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?qs:Math.pow(qs,e),new An(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Rr(Mg(e>=240?e-240:e+120,i,n),Mg(e,i,n),Mg(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new An(UP(this.h),Id(this.s),Id(this.l),$f(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=$f(this.opacity);return`${e===1?"hsl(":"hsla("}${UP(this.h)}, ${Id(this.s)*100}%, ${Id(this.l)*100}%${e===1?")":`, ${e})`}`}}));function UP(e){return e=(e||0)%360,e<0?e+360:e}function Id(e){return Math.max(0,Math.min(1,e||0))}function Mg(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const o_=e=>()=>e;function sX(e,t){return function(r){return e+r*t}}function lX(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function cX(e){return(e=+e)==1?g2:function(t,r){return r-t?lX(t,r,e):o_(isNaN(t)?r:t)}}function g2(e,t){var r=t-e;return r?sX(e,r):o_(isNaN(e)?t:e)}const LP=(function e(t){var r=cX(t);function n(i,a){var u=r((i=Ky(i)).r,(a=Ky(a)).r),l=r(i.g,a.g),d=r(i.b,a.b),f=g2(i.opacity,a.opacity);return function(p){return i.r=u(p),i.g=l(p),i.b=d(p),i.opacity=f(p),i+""}}return n.gamma=e,n})(1);function dX(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function fX(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function pX(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),u;for(u=0;u<n;++u)i[u]=vu(e[u],t[u]);for(;u<r;++u)a[u]=t[u];return function(l){for(u=0;u<n;++u)a[u]=i[u](l);return a}}function mX(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function If(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function vX(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=vu(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Hy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Rg=new RegExp(Hy.source,"g");function hX(e){return function(){return e}}function gX(e){return function(t){return e(t)+""}}function yX(e,t){var r=Hy.lastIndex=Rg.lastIndex=0,n,i,a,u=-1,l=[],d=[];for(e=e+"",t=t+"";(n=Hy.exec(e))&&(i=Rg.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[u]?l[u]+=a:l[++u]=a),(n=n[0])===(i=i[0])?l[u]?l[u]+=i:l[++u]=i:(l[++u]=null,d.push({i:u,x:If(n,i)})),r=Rg.lastIndex;return r<t.length&&(a=t.slice(r),l[u]?l[u]+=a:l[++u]=a),l.length<2?d[0]?gX(d[0].x):hX(t):(t=d.length,function(f){for(var p=0,m;p<t;++p)l[(m=d[p]).i]=m.x(f);return l.join("")})}function vu(e,t){var r=typeof t,n;return t==null||r==="boolean"?o_(t):(r==="number"?If:r==="string"?(n=Vs(t))?(t=n,LP):yX:t instanceof Vs?LP:t instanceof Date?mX:fX(t)?dX:Array.isArray(t)?pX:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?vX:If)(e,t)}function u_(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function bX(e,t){t===void 0&&(t=e,e=vu);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(u){var l=Math.max(0,Math.min(n-1,Math.floor(u*=n)));return a[l](u-l)}}function wX(e){return function(){return e}}function Pf(e){return+e}var ZP=[0,1];function $r(e){return e}function Gy(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:wX(isNaN(t)?NaN:.5)}function _X(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function xX(e,t,r){var n=e[0],i=e[1],a=t[0],u=t[1];return i<n?(n=Gy(i,n),a=r(u,a)):(n=Gy(n,i),a=r(a,u)),function(l){return a(n(l))}}function kX(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),u=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++u<n;)i[u]=Gy(e[u],e[u+1]),a[u]=r(t[u],t[u+1]);return function(l){var d=Ul(e,l,1,n)-1;return a[d](i[d](l))}}function Zl(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function fm(){var e=ZP,t=ZP,r=vu,n,i,a,u=$r,l,d,f;function p(){var h=Math.min(e.length,t.length);return u!==$r&&(u=_X(e[0],e[h-1])),l=h>2?kX:xX,d=f=null,m}function m(h){return h==null||isNaN(h=+h)?a:(d||(d=l(e.map(n),t,r)))(n(u(h)))}return m.invert=function(h){return u(i((f||(f=l(t,e.map(n),If)))(h)))},m.domain=function(h){return arguments.length?(e=Array.from(h,Pf),p()):e.slice()},m.range=function(h){return arguments.length?(t=Array.from(h),p()):t.slice()},m.rangeRound=function(h){return t=Array.from(h),r=u_,p()},m.clamp=function(h){return arguments.length?(u=h?!0:$r,p()):u!==$r},m.interpolate=function(h){return arguments.length?(r=h,p()):r},m.unknown=function(h){return arguments.length?(a=h,m):a},function(h,y){return n=h,i=y,p()}}function s_(){return fm()($r,$r)}function SX(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Of(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function ou(e){return e=Of(Math.abs(e)),e?e[1]:NaN}function $X(e,t){return function(r,n){for(var i=r.length,a=[],u=0,l=e[0],d=0;i>0&&l>0&&(d+l+1>n&&(l=Math.max(1,n-d)),a.push(r.substring(i-=l,i+l)),!((d+=l+1)>n));)l=e[u=(u+1)%e.length];return a.reverse().join(t)}}function IX(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var PX=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ks(e){if(!(t=PX.exec(e)))throw new Error("invalid format: "+e);var t;return new l_({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]})}Ks.prototype=l_.prototype;function l_(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+""}l_.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 OX(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Ef;function EX(e,t){var r=Of(e,t);if(!r)return Ef=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Ef=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,u=n.length;return a===u?n:a>u?n+new Array(a-u+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Of(e,Math.max(0,t+a-1))[0]}function FP(e,t){var r=Of(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const BP={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:SX,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)=>FP(e*100,t),r:FP,s:EX,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function qP(e){return e}var WP=Array.prototype.map,VP=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zX(e){var t=e.grouping===void 0||e.thousands===void 0?qP:$X(WP.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?qP:IX(WP.call(e.numerals,String)),u=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function f(m,h){m=Ks(m);var y=m.fill,w=m.align,_=m.sign,x=m.symbol,$=m.zero,E=m.width,A=m.comma,I=m.precision,j=m.trim,z=m.type;z==="n"?(A=!0,z="g"):BP[z]||(I===void 0&&(I=12),j=!0,z="g"),($||y==="0"&&w==="=")&&($=!0,y="0",w="=");var N=(h&&h.prefix!==void 0?h.prefix:"")+(x==="$"?r:x==="#"&&/[boxX]/.test(z)?"0"+z.toLowerCase():""),M=(x==="$"?n:/[%p]/.test(z)?u:"")+(h&&h.suffix!==void 0?h.suffix:""),K=BP[z],se=/[defgprs%]/.test(z);I=I===void 0?6:/[gprs]/.test(z)?Math.max(1,Math.min(21,I)):Math.max(0,Math.min(20,I));function ae(W){var _e=N,xe=M,Ce,Te,ge;if(z==="c")xe=K(W)+xe,W="";else{W=+W;var X=W<0||1/W<0;if(W=isNaN(W)?d:K(Math.abs(W),I),j&&(W=OX(W)),X&&+W==0&&_!=="+"&&(X=!1),_e=(X?_==="("?_:l:_==="-"||_==="("?"":_)+_e,xe=(z==="s"&&!isNaN(W)&&Ef!==void 0?VP[8+Ef/3]:"")+xe+(X&&_==="("?")":""),se){for(Ce=-1,Te=W.length;++Ce<Te;)if(ge=W.charCodeAt(Ce),48>ge||ge>57){xe=(ge===46?i+W.slice(Ce+1):W.slice(Ce))+xe,W=W.slice(0,Ce);break}}}A&&!$&&(W=t(W,1/0));var oe=_e.length+W.length+xe.length,B=oe<E?new Array(E-oe+1).join(y):"";switch(A&&$&&(W=t(B+W,B.length?E-xe.length:1/0),B=""),w){case"<":W=_e+W+xe+B;break;case"=":W=_e+B+W+xe;break;case"^":W=B.slice(0,oe=B.length>>1)+_e+W+xe+B.slice(oe);break;default:W=B+_e+W+xe;break}return a(W)}return ae.toString=function(){return m+""},ae}function p(m,h){var y=Math.max(-8,Math.min(8,Math.floor(ou(h)/3)))*3,w=Math.pow(10,-y),_=f((m=Ks(m),m.type="f",m),{suffix:VP[8+y/3]});return function(x){return _(w*x)}}return{format:f,formatPrefix:p}}var Pd,c_,y2;AX({thousands:",",grouping:[3],currency:["$",""]});function AX(e){return Pd=zX(e),c_=Pd.format,y2=Pd.formatPrefix,Pd}function jX(e){return Math.max(0,-ou(Math.abs(e)))}function CX(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ou(t)/3)))*3-ou(Math.abs(e)))}function TX(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ou(t)-ou(e))+1}function b2(e,t,r,n){var i=Wy(e,t,r),a;switch(n=Ks(n??",f"),n.type){case"s":{var u=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=CX(i,u))&&(n.precision=a),y2(n,u)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=TX(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=jX(i))&&(n.precision=a-(n.type==="%")*2);break}}return c_(n)}function ga(e){var t=e.domain;return e.ticks=function(r){var n=t();return By(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return b2(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,u=n[i],l=n[a],d,f,p=10;for(l<u&&(f=u,u=l,l=f,f=i,i=a,a=f);p-- >0;){if(f=qy(u,l,r),f===d)return n[i]=u,n[a]=l,t(n);if(f>0)u=Math.floor(u/f)*f,l=Math.ceil(l/f)*f;else if(f<0)u=Math.ceil(u*f)/f,l=Math.floor(l*f)/f;else break;d=f}return e},e}function w2(){var e=s_();return e.copy=function(){return Zl(e,w2())},wn.apply(e,arguments),ga(e)}function _2(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Pf),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return _2(e).unknown(t)},e=arguments.length?Array.from(e,Pf):[0,1],ga(r)}function x2(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],u;return a<i&&(u=r,r=n,n=u,u=i,i=a,a=u),e[r]=t.floor(i),e[n]=t.ceil(a),e}function KP(e){return Math.log(e)}function HP(e){return Math.exp(e)}function NX(e){return-Math.log(-e)}function DX(e){return-Math.exp(-e)}function MX(e){return isFinite(e)?+("1e"+e):e<0?0:e}function RX(e){return e===10?MX:e===Math.E?Math.exp:t=>Math.pow(e,t)}function UX(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 GP(e){return(t,r)=>-e(-t,r)}function d_(e){const t=e(KP,HP),r=t.domain;let n=10,i,a;function u(){return i=UX(n),a=RX(n),r()[0]<0?(i=GP(i),a=GP(a),e(NX,DX)):e(KP,HP),t}return t.base=function(l){return arguments.length?(n=+l,u()):n},t.domain=function(l){return arguments.length?(r(l),u()):r()},t.ticks=l=>{const d=r();let f=d[0],p=d[d.length-1];const m=p<f;m&&([f,p]=[p,f]);let h=i(f),y=i(p),w,_;const x=l==null?10:+l;let $=[];if(!(n%1)&&y-h<x){if(h=Math.floor(h),y=Math.ceil(y),f>0){for(;h<=y;++h)for(w=1;w<n;++w)if(_=h<0?w/a(-h):w*a(h),!(_<f)){if(_>p)break;$.push(_)}}else for(;h<=y;++h)for(w=n-1;w>=1;--w)if(_=h>0?w/a(-h):w*a(h),!(_<f)){if(_>p)break;$.push(_)}$.length*2<x&&($=By(f,p,x))}else $=By(h,y,Math.min(y-h,x)).map(a);return m?$.reverse():$},t.tickFormat=(l,d)=>{if(l==null&&(l=10),d==null&&(d=n===10?"s":","),typeof d!="function"&&(!(n%1)&&(d=Ks(d)).precision==null&&(d.trim=!0),d=c_(d)),l===1/0)return d;const f=Math.max(1,n*l/t.ticks().length);return p=>{let m=p/a(Math.round(i(p)));return m*n<n-.5&&(m*=n),m<=f?d(p):""}},t.nice=()=>r(x2(r(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function k2(){const e=d_(fm()).domain([1,10]);return e.copy=()=>Zl(e,k2()).base(e.base()),wn.apply(e,arguments),e}function JP(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function YP(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function f_(e){var t=1,r=e(JP(t),YP(t));return r.constant=function(n){return arguments.length?e(JP(t=+n),YP(t)):t},ga(r)}function S2(){var e=f_(fm());return e.copy=function(){return Zl(e,S2()).constant(e.constant())},wn.apply(e,arguments)}function XP(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function LX(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ZX(e){return e<0?-e*e:e*e}function p_(e){var t=e($r,$r),r=1;function n(){return r===1?e($r,$r):r===.5?e(LX,ZX):e(XP(r),XP(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},ga(t)}function m_(){var e=p_(fm());return e.copy=function(){return Zl(e,m_()).exponent(e.exponent())},wn.apply(e,arguments),e}function FX(){return m_.apply(null,arguments).exponent(.5)}function QP(e){return Math.sign(e)*e*e}function BX(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function $2(){var e=s_(),t=[0,1],r=!1,n;function i(a){var u=BX(e(a));return isNaN(u)?n:r?Math.round(u):u}return i.invert=function(a){return e.invert(QP(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Pf)).map(QP)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return $2(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},wn.apply(i,arguments),ga(i)}function I2(){var e=[],t=[],r=[],n;function i(){var u=0,l=Math.max(1,t.length);for(r=new Array(l-1);++u<l;)r[u-1]=KY(e,u/l);return a}function a(u){return u==null||isNaN(u=+u)?n:t[Ul(r,u)]}return a.invertExtent=function(u){var l=t.indexOf(u);return l<0?[NaN,NaN]:[l>0?r[l-1]:e[0],l<r.length?r[l]:e[e.length-1]]},a.domain=function(u){if(!arguments.length)return e.slice();e=[];for(let l of u)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(aa),i()},a.range=function(u){return arguments.length?(t=Array.from(u),i()):t.slice()},a.unknown=function(u){return arguments.length?(n=u,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return I2().domain(e).range(t).unknown(n)},wn.apply(a,arguments)}function P2(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function u(d){return d!=null&&d<=d?i[Ul(n,d,0,r)]:a}function l(){var d=-1;for(n=new Array(r);++d<r;)n[d]=((d+1)*t-(d-r)*e)/(r+1);return u}return u.domain=function(d){return arguments.length?([e,t]=d,e=+e,t=+t,l()):[e,t]},u.range=function(d){return arguments.length?(r=(i=Array.from(d)).length-1,l()):i.slice()},u.invertExtent=function(d){var f=i.indexOf(d);return f<0?[NaN,NaN]:f<1?[e,n[0]]:f>=r?[n[r-1],t]:[n[f-1],n[f]]},u.unknown=function(d){return arguments.length&&(a=d),u},u.thresholds=function(){return n.slice()},u.copy=function(){return P2().domain([e,t]).range(i).unknown(a)},wn.apply(ga(u),arguments)}function O2(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Ul(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var u=t.indexOf(a);return[e[u-1],e[u]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return O2().domain(e).range(t).unknown(r)},wn.apply(i,arguments)}const Ug=new Date,Lg=new Date;function Lt(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const u=i(a),l=i.ceil(a);return a-u<l-a?u:l},i.offset=(a,u)=>(t(a=new Date(+a),u==null?1:Math.floor(u)),a),i.range=(a,u,l)=>{const d=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<u)||!(l>0))return d;let f;do d.push(f=new Date(+a)),t(a,l),e(a);while(f<a&&a<u);return d},i.filter=a=>Lt(u=>{if(u>=u)for(;e(u),!a(u);)u.setTime(u-1)},(u,l)=>{if(u>=u)if(l<0)for(;++l<=0;)for(;t(u,-1),!a(u););else for(;--l>=0;)for(;t(u,1),!a(u););}),r&&(i.count=(a,u)=>(Ug.setTime(+a),Lg.setTime(+u),e(Ug),e(Lg),Math.floor(r(Ug,Lg))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?u=>n(u)%a===0:u=>i.count(0,u)%a===0):i)),i}const zf=Lt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);zf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Lt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):zf);zf.range;const fi=1e3,dn=fi*60,pi=dn*60,yi=pi*24,v_=yi*7,eO=yi*30,Zg=yi*365,Ba=Lt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*fi)},(e,t)=>(t-e)/fi,e=>e.getUTCSeconds());Ba.range;const h_=Lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*fi)},(e,t)=>{e.setTime(+e+t*dn)},(e,t)=>(t-e)/dn,e=>e.getMinutes());h_.range;const g_=Lt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*dn)},(e,t)=>(t-e)/dn,e=>e.getUTCMinutes());g_.range;const y_=Lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*fi-e.getMinutes()*dn)},(e,t)=>{e.setTime(+e+t*pi)},(e,t)=>(t-e)/pi,e=>e.getHours());y_.range;const b_=Lt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*pi)},(e,t)=>(t-e)/pi,e=>e.getUTCHours());b_.range;const Fl=Lt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*dn)/yi,e=>e.getDate()-1);Fl.range;const pm=Lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/yi,e=>e.getUTCDate()-1);pm.range;const E2=Lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/yi,e=>Math.floor(e/yi));E2.range;function fo(e){return Lt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*dn)/v_)}const mm=fo(0),Af=fo(1),qX=fo(2),WX=fo(3),uu=fo(4),VX=fo(5),KX=fo(6);mm.range;Af.range;qX.range;WX.range;uu.range;VX.range;KX.range;function po(e){return Lt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/v_)}const vm=po(0),jf=po(1),HX=po(2),GX=po(3),su=po(4),JX=po(5),YX=po(6);vm.range;jf.range;HX.range;GX.range;su.range;JX.range;YX.range;const w_=Lt(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());w_.range;const __=Lt(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());__.range;const bi=Lt(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());bi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Lt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});bi.range;const wi=Lt(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());wi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Lt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});wi.range;function z2(e,t,r,n,i,a){const u=[[Ba,1,fi],[Ba,5,5*fi],[Ba,15,15*fi],[Ba,30,30*fi],[a,1,dn],[a,5,5*dn],[a,15,15*dn],[a,30,30*dn],[i,1,pi],[i,3,3*pi],[i,6,6*pi],[i,12,12*pi],[n,1,yi],[n,2,2*yi],[r,1,v_],[t,1,eO],[t,3,3*eO],[e,1,Zg]];function l(f,p,m){const h=p<f;h&&([f,p]=[p,f]);const y=m&&typeof m.range=="function"?m:d(f,p,m),w=y?y.range(f,+p+1):[];return h?w.reverse():w}function d(f,p,m){const h=Math.abs(p-f)/m,y=r_(([,,x])=>x).right(u,h);if(y===u.length)return e.every(Wy(f/Zg,p/Zg,m));if(y===0)return zf.every(Math.max(Wy(f,p,m),1));const[w,_]=u[h/u[y-1][2]<u[y][2]/h?y-1:y];return w.every(_)}return[l,d]}const[XX,QX]=z2(wi,__,vm,E2,b_,g_),[eQ,tQ]=z2(bi,w_,mm,Fl,y_,h_);function Fg(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 Bg(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 bs(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function rQ(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,u=e.shortDays,l=e.months,d=e.shortMonths,f=ws(i),p=_s(i),m=ws(a),h=_s(a),y=ws(u),w=_s(u),_=ws(l),x=_s(l),$=ws(d),E=_s(d),A={a:ge,A:X,b:oe,B,c:null,d:oO,e:oO,f:$Q,g:NQ,G:MQ,H:xQ,I:kQ,j:SQ,L:A2,m:IQ,M:PQ,p:D,q:G,Q:lO,s:cO,S:OQ,u:EQ,U:zQ,V:AQ,w:jQ,W:CQ,x:null,X:null,y:TQ,Y:DQ,Z:RQ,"%":sO},I={a:Ie,A:Se,b:$e,B:Pe,c:null,d:uO,e:uO,f:FQ,g:XQ,G:eee,H:UQ,I:LQ,j:ZQ,L:C2,m:BQ,M:qQ,p:Me,q:We,Q:lO,s:cO,S:WQ,u:VQ,U:KQ,V:HQ,w:GQ,W:JQ,x:null,X:null,y:YQ,Y:QQ,Z:tee,"%":sO},j={a:se,A:ae,b:W,B:_e,c:xe,d:iO,e:iO,f:yQ,g:nO,G:rO,H:aO,I:aO,j:mQ,L:gQ,m:pQ,M:vQ,p:K,q:fQ,Q:wQ,s:_Q,S:hQ,u:uQ,U:sQ,V:lQ,w:oQ,W:cQ,x:Ce,X:Te,y:nO,Y:rO,Z:dQ,"%":bQ};A.x=z(r,A),A.X=z(n,A),A.c=z(t,A),I.x=z(r,I),I.X=z(n,I),I.c=z(t,I);function z(F,Oe){return function(Ue){var Q=[],_t=-1,Ke=0,dr=F.length,fr,_n,Su;for(Ue instanceof Date||(Ue=new Date(+Ue));++_t<dr;)F.charCodeAt(_t)===37&&(Q.push(F.slice(Ke,_t)),(_n=tO[fr=F.charAt(++_t)])!=null?fr=F.charAt(++_t):_n=fr==="e"?" ":"0",(Su=Oe[fr])&&(fr=Su(Ue,_n)),Q.push(fr),Ke=_t+1);return Q.push(F.slice(Ke,_t)),Q.join("")}}function N(F,Oe){return function(Ue){var Q=bs(1900,void 0,1),_t=M(Q,F,Ue+="",0),Ke,dr;if(_t!=Ue.length)return null;if("Q"in Q)return new Date(Q.Q);if("s"in Q)return new Date(Q.s*1e3+("L"in Q?Q.L:0));if(Oe&&!("Z"in Q)&&(Q.Z=0),"p"in Q&&(Q.H=Q.H%12+Q.p*12),Q.m===void 0&&(Q.m="q"in Q?Q.q:0),"V"in Q){if(Q.V<1||Q.V>53)return null;"w"in Q||(Q.w=1),"Z"in Q?(Ke=Bg(bs(Q.y,0,1)),dr=Ke.getUTCDay(),Ke=dr>4||dr===0?jf.ceil(Ke):jf(Ke),Ke=pm.offset(Ke,(Q.V-1)*7),Q.y=Ke.getUTCFullYear(),Q.m=Ke.getUTCMonth(),Q.d=Ke.getUTCDate()+(Q.w+6)%7):(Ke=Fg(bs(Q.y,0,1)),dr=Ke.getDay(),Ke=dr>4||dr===0?Af.ceil(Ke):Af(Ke),Ke=Fl.offset(Ke,(Q.V-1)*7),Q.y=Ke.getFullYear(),Q.m=Ke.getMonth(),Q.d=Ke.getDate()+(Q.w+6)%7)}else("W"in Q||"U"in Q)&&("w"in Q||(Q.w="u"in Q?Q.u%7:"W"in Q?1:0),dr="Z"in Q?Bg(bs(Q.y,0,1)).getUTCDay():Fg(bs(Q.y,0,1)).getDay(),Q.m=0,Q.d="W"in Q?(Q.w+6)%7+Q.W*7-(dr+5)%7:Q.w+Q.U*7-(dr+6)%7);return"Z"in Q?(Q.H+=Q.Z/100|0,Q.M+=Q.Z%100,Bg(Q)):Fg(Q)}}function M(F,Oe,Ue,Q){for(var _t=0,Ke=Oe.length,dr=Ue.length,fr,_n;_t<Ke;){if(Q>=dr)return-1;if(fr=Oe.charCodeAt(_t++),fr===37){if(fr=Oe.charAt(_t++),_n=j[fr in tO?Oe.charAt(_t++):fr],!_n||(Q=_n(F,Ue,Q))<0)return-1}else if(fr!=Ue.charCodeAt(Q++))return-1}return Q}function K(F,Oe,Ue){var Q=f.exec(Oe.slice(Ue));return Q?(F.p=p.get(Q[0].toLowerCase()),Ue+Q[0].length):-1}function se(F,Oe,Ue){var Q=y.exec(Oe.slice(Ue));return Q?(F.w=w.get(Q[0].toLowerCase()),Ue+Q[0].length):-1}function ae(F,Oe,Ue){var Q=m.exec(Oe.slice(Ue));return Q?(F.w=h.get(Q[0].toLowerCase()),Ue+Q[0].length):-1}function W(F,Oe,Ue){var Q=$.exec(Oe.slice(Ue));return Q?(F.m=E.get(Q[0].toLowerCase()),Ue+Q[0].length):-1}function _e(F,Oe,Ue){var Q=_.exec(Oe.slice(Ue));return Q?(F.m=x.get(Q[0].toLowerCase()),Ue+Q[0].length):-1}function xe(F,Oe,Ue){return M(F,t,Oe,Ue)}function Ce(F,Oe,Ue){return M(F,r,Oe,Ue)}function Te(F,Oe,Ue){return M(F,n,Oe,Ue)}function ge(F){return u[F.getDay()]}function X(F){return a[F.getDay()]}function oe(F){return d[F.getMonth()]}function B(F){return l[F.getMonth()]}function D(F){return i[+(F.getHours()>=12)]}function G(F){return 1+~~(F.getMonth()/3)}function Ie(F){return u[F.getUTCDay()]}function Se(F){return a[F.getUTCDay()]}function $e(F){return d[F.getUTCMonth()]}function Pe(F){return l[F.getUTCMonth()]}function Me(F){return i[+(F.getUTCHours()>=12)]}function We(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var Oe=z(F+="",A);return Oe.toString=function(){return F},Oe},parse:function(F){var Oe=N(F+="",!1);return Oe.toString=function(){return F},Oe},utcFormat:function(F){var Oe=z(F+="",I);return Oe.toString=function(){return F},Oe},utcParse:function(F){var Oe=N(F+="",!0);return Oe.toString=function(){return F},Oe}}}var tO={"-":"",_:" ",0:"0"},Jt=/^\s*\d+/,nQ=/^%/,iQ=/[\\^$*+?|[\]().{}]/g;function Xe(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function aQ(e){return e.replace(iQ,"\\$&")}function ws(e){return new RegExp("^(?:"+e.map(aQ).join("|")+")","i")}function _s(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function oQ(e,t,r){var n=Jt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function uQ(e,t,r){var n=Jt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function sQ(e,t,r){var n=Jt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function lQ(e,t,r){var n=Jt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function cQ(e,t,r){var n=Jt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function rO(e,t,r){var n=Jt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function nO(e,t,r){var n=Jt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function dQ(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function fQ(e,t,r){var n=Jt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function pQ(e,t,r){var n=Jt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function iO(e,t,r){var n=Jt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function mQ(e,t,r){var n=Jt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function aO(e,t,r){var n=Jt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function vQ(e,t,r){var n=Jt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function hQ(e,t,r){var n=Jt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function gQ(e,t,r){var n=Jt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function yQ(e,t,r){var n=Jt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function bQ(e,t,r){var n=nQ.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function wQ(e,t,r){var n=Jt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function _Q(e,t,r){var n=Jt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function oO(e,t){return Xe(e.getDate(),t,2)}function xQ(e,t){return Xe(e.getHours(),t,2)}function kQ(e,t){return Xe(e.getHours()%12||12,t,2)}function SQ(e,t){return Xe(1+Fl.count(bi(e),e),t,3)}function A2(e,t){return Xe(e.getMilliseconds(),t,3)}function $Q(e,t){return A2(e,t)+"000"}function IQ(e,t){return Xe(e.getMonth()+1,t,2)}function PQ(e,t){return Xe(e.getMinutes(),t,2)}function OQ(e,t){return Xe(e.getSeconds(),t,2)}function EQ(e){var t=e.getDay();return t===0?7:t}function zQ(e,t){return Xe(mm.count(bi(e)-1,e),t,2)}function j2(e){var t=e.getDay();return t>=4||t===0?uu(e):uu.ceil(e)}function AQ(e,t){return e=j2(e),Xe(uu.count(bi(e),e)+(bi(e).getDay()===4),t,2)}function jQ(e){return e.getDay()}function CQ(e,t){return Xe(Af.count(bi(e)-1,e),t,2)}function TQ(e,t){return Xe(e.getFullYear()%100,t,2)}function NQ(e,t){return e=j2(e),Xe(e.getFullYear()%100,t,2)}function DQ(e,t){return Xe(e.getFullYear()%1e4,t,4)}function MQ(e,t){var r=e.getDay();return e=r>=4||r===0?uu(e):uu.ceil(e),Xe(e.getFullYear()%1e4,t,4)}function RQ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Xe(t/60|0,"0",2)+Xe(t%60,"0",2)}function uO(e,t){return Xe(e.getUTCDate(),t,2)}function UQ(e,t){return Xe(e.getUTCHours(),t,2)}function LQ(e,t){return Xe(e.getUTCHours()%12||12,t,2)}function ZQ(e,t){return Xe(1+pm.count(wi(e),e),t,3)}function C2(e,t){return Xe(e.getUTCMilliseconds(),t,3)}function FQ(e,t){return C2(e,t)+"000"}function BQ(e,t){return Xe(e.getUTCMonth()+1,t,2)}function qQ(e,t){return Xe(e.getUTCMinutes(),t,2)}function WQ(e,t){return Xe(e.getUTCSeconds(),t,2)}function VQ(e){var t=e.getUTCDay();return t===0?7:t}function KQ(e,t){return Xe(vm.count(wi(e)-1,e),t,2)}function T2(e){var t=e.getUTCDay();return t>=4||t===0?su(e):su.ceil(e)}function HQ(e,t){return e=T2(e),Xe(su.count(wi(e),e)+(wi(e).getUTCDay()===4),t,2)}function GQ(e){return e.getUTCDay()}function JQ(e,t){return Xe(jf.count(wi(e)-1,e),t,2)}function YQ(e,t){return Xe(e.getUTCFullYear()%100,t,2)}function XQ(e,t){return e=T2(e),Xe(e.getUTCFullYear()%100,t,2)}function QQ(e,t){return Xe(e.getUTCFullYear()%1e4,t,4)}function eee(e,t){var r=e.getUTCDay();return e=r>=4||r===0?su(e):su.ceil(e),Xe(e.getUTCFullYear()%1e4,t,4)}function tee(){return"+0000"}function sO(){return"%"}function lO(e){return+e}function cO(e){return Math.floor(+e/1e3)}var Zo,N2,D2;ree({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 ree(e){return Zo=rQ(e),N2=Zo.format,Zo.parse,D2=Zo.utcFormat,Zo.utcParse,Zo}function nee(e){return new Date(e)}function iee(e){return e instanceof Date?+e:+new Date(+e)}function x_(e,t,r,n,i,a,u,l,d,f){var p=s_(),m=p.invert,h=p.domain,y=f(".%L"),w=f(":%S"),_=f("%I:%M"),x=f("%I %p"),$=f("%a %d"),E=f("%b %d"),A=f("%B"),I=f("%Y");function j(z){return(d(z)<z?y:l(z)<z?w:u(z)<z?_:a(z)<z?x:n(z)<z?i(z)<z?$:E:r(z)<z?A:I)(z)}return p.invert=function(z){return new Date(m(z))},p.domain=function(z){return arguments.length?h(Array.from(z,iee)):h().map(nee)},p.ticks=function(z){var N=h();return e(N[0],N[N.length-1],z??10)},p.tickFormat=function(z,N){return N==null?j:f(N)},p.nice=function(z){var N=h();return(!z||typeof z.range!="function")&&(z=t(N[0],N[N.length-1],z??10)),z?h(x2(N,z)):p},p.copy=function(){return Zl(p,x_(e,t,r,n,i,a,u,l,d,f))},p}function aee(){return wn.apply(x_(eQ,tQ,bi,w_,mm,Fl,y_,h_,Ba,N2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function oee(){return wn.apply(x_(XX,QX,wi,__,vm,pm,b_,g_,Ba,D2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function hm(){var e=0,t=1,r,n,i,a,u=$r,l=!1,d;function f(m){return m==null||isNaN(m=+m)?d:u(i===0?.5:(m=(a(m)-r)*i,l?Math.max(0,Math.min(1,m)):m))}f.domain=function(m){return arguments.length?([e,t]=m,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),f):[e,t]},f.clamp=function(m){return arguments.length?(l=!!m,f):l},f.interpolator=function(m){return arguments.length?(u=m,f):u};function p(m){return function(h){var y,w;return arguments.length?([y,w]=h,u=m(y,w),f):[u(0),u(1)]}}return f.range=p(vu),f.rangeRound=p(u_),f.unknown=function(m){return arguments.length?(d=m,f):d},function(m){return a=m,r=m(e),n=m(t),i=r===n?0:1/(n-r),f}}function ya(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function M2(){var e=ga(hm()($r));return e.copy=function(){return ya(e,M2())},Oi.apply(e,arguments)}function R2(){var e=d_(hm()).domain([1,10]);return e.copy=function(){return ya(e,R2()).base(e.base())},Oi.apply(e,arguments)}function U2(){var e=f_(hm());return e.copy=function(){return ya(e,U2()).constant(e.constant())},Oi.apply(e,arguments)}function k_(){var e=p_(hm());return e.copy=function(){return ya(e,k_()).exponent(e.exponent())},Oi.apply(e,arguments)}function uee(){return k_.apply(null,arguments).exponent(.5)}function L2(){var e=[],t=$r;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ul(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(aa),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>VY(e,a/n))},r.copy=function(){return L2(t).domain(e)},Oi.apply(r,arguments)}function gm(){var e=0,t=.5,r=1,n=1,i,a,u,l,d,f=$r,p,m=!1,h;function y(_){return isNaN(_=+_)?h:(_=.5+((_=+p(_))-a)*(n*_<n*a?l:d),f(m?Math.max(0,Math.min(1,_)):_))}y.domain=function(_){return arguments.length?([e,t,r]=_,i=p(e=+e),a=p(t=+t),u=p(r=+r),l=i===a?0:.5/(a-i),d=a===u?0:.5/(u-a),n=a<i?-1:1,y):[e,t,r]},y.clamp=function(_){return arguments.length?(m=!!_,y):m},y.interpolator=function(_){return arguments.length?(f=_,y):f};function w(_){return function(x){var $,E,A;return arguments.length?([$,E,A]=x,f=bX(_,[$,E,A]),y):[f(0),f(.5),f(1)]}}return y.range=w(vu),y.rangeRound=w(u_),y.unknown=function(_){return arguments.length?(h=_,y):h},function(_){return p=_,i=_(e),a=_(t),u=_(r),l=i===a?0:.5/(a-i),d=a===u?0:.5/(u-a),n=a<i?-1:1,y}}function Z2(){var e=ga(gm()($r));return e.copy=function(){return ya(e,Z2())},Oi.apply(e,arguments)}function F2(){var e=d_(gm()).domain([.1,1,10]);return e.copy=function(){return ya(e,F2()).base(e.base())},Oi.apply(e,arguments)}function B2(){var e=f_(gm());return e.copy=function(){return ya(e,B2()).constant(e.constant())},Oi.apply(e,arguments)}function S_(){var e=p_(gm());return e.copy=function(){return ya(e,S_()).exponent(e.exponent())},Oi.apply(e,arguments)}function see(){return S_.apply(null,arguments).exponent(.5)}const Ss=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:i_,scaleDiverging:Z2,scaleDivergingLog:F2,scaleDivergingPow:S_,scaleDivergingSqrt:see,scaleDivergingSymlog:B2,scaleIdentity:_2,scaleImplicit:Vy,scaleLinear:w2,scaleLog:k2,scaleOrdinal:n_,scalePoint:GY,scalePow:m_,scaleQuantile:I2,scaleQuantize:P2,scaleRadial:$2,scaleSequential:M2,scaleSequentialLog:R2,scaleSequentialPow:k_,scaleSequentialQuantile:L2,scaleSequentialSqrt:uee,scaleSequentialSymlog:U2,scaleSqrt:FX,scaleSymlog:S2,scaleThreshold:O2,scaleTime:aee,scaleUtc:oee,tickFormat:b2},Symbol.toStringTag,{value:"Module"}));var Ei=e=>e.chartData,q2=q([Ei],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),W2=(e,t,r,n)=>n?q2(e):Ei(e),lee=(e,t,r)=>r?q2(e):Ei(e);function _i(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(Ve(t)&&Ve(r))return!0}return!1}function dO(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function V2(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(Ve(r))i=r;else if(typeof r=="function")return;if(Ve(n))a=n;else if(typeof n=="function")return;var u=[i,a];if(_i(u))return u}}function cee(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(_i(n))return dO(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,u,l;if(i==="auto")t!=null&&(u=Math.min(...t));else if(be(i))u=i;else if(typeof i=="function")try{t!=null&&(u=i(t==null?void 0:t[0]))}catch{}else if(typeof i=="string"&&kI.test(i)){var d=kI.exec(i);if(d==null||d[1]==null||t==null)u=void 0;else{var f=+d[1];u=t[0]-f}}else u=t==null?void 0:t[0];if(a==="auto")t!=null&&(l=Math.max(...t));else if(be(a))l=a;else if(typeof a=="function")try{t!=null&&(l=a(t==null?void 0:t[1]))}catch{}else if(typeof a=="string"&&SI.test(a)){var p=SI.exec(a);if(p==null||p[1]==null||t==null)l=void 0;else{var m=+p[1];l=t[1]+m}}else l=t==null?void 0:t[1];var h=[u,l];if(_i(h))return t==null?h:dO(h,t,r)}}}var hu=1e9,dee={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},I_,gt=!0,hn="[DecimalError] ",Ha=hn+"Invalid argument: ",$_=hn+"Exponent out of range: ",gu=Math.floor,Ra=Math.pow,fee=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Vr,Ht=1e7,dt=7,K2=9007199254740991,Cf=gu(K2/dt),fe={};fe.absoluteValue=fe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};fe.comparedTo=fe.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};fe.decimalPlaces=fe.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*dt;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};fe.dividedBy=fe.div=function(e){return mi(this,new this.constructor(e))};fe.dividedToIntegerBy=fe.idiv=function(e){var t=this,r=t.constructor;return it(mi(t,new r(e),0,1),r.precision)};fe.equals=fe.eq=function(e){return!this.cmp(e)};fe.exponent=function(){return Nt(this)};fe.greaterThan=fe.gt=function(e){return this.cmp(e)>0};fe.greaterThanOrEqualTo=fe.gte=function(e){return this.cmp(e)>=0};fe.isInteger=fe.isint=function(){return this.e>this.d.length-2};fe.isNegative=fe.isneg=function(){return this.s<0};fe.isPositive=fe.ispos=function(){return this.s>0};fe.isZero=function(){return this.s===0};fe.lessThan=fe.lt=function(e){return this.cmp(e)<0};fe.lessThanOrEqualTo=fe.lte=function(e){return this.cmp(e)<1};fe.logarithm=fe.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Vr))throw Error(hn+"NaN");if(r.s<1)throw Error(hn+(r.s?"NaN":"-Infinity"));return r.eq(Vr)?new n(0):(gt=!1,t=mi(Hs(r,a),Hs(e,a),a),gt=!0,it(t,i))};fe.minus=fe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?J2(t,e):H2(t,(e.s=-e.s,e))};fe.modulo=fe.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(hn+"NaN");return r.s?(gt=!1,t=mi(r,e,0,1).times(e),gt=!0,r.minus(t)):it(new n(r),i)};fe.naturalExponential=fe.exp=function(){return G2(this)};fe.naturalLogarithm=fe.ln=function(){return Hs(this)};fe.negated=fe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};fe.plus=fe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?H2(t,e):J2(t,(e.s=-e.s,e))};fe.precision=fe.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ha+e);if(t=Nt(i)+1,n=i.d.length-1,r=n*dt+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};fe.squareRoot=fe.sqrt=function(){var e,t,r,n,i,a,u,l=this,d=l.constructor;if(l.s<1){if(!l.s)return new d(0);throw Error(hn+"NaN")}for(e=Nt(l),gt=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Kn(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=gu((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new d(t)):n=new d(i.toString()),r=d.precision,i=u=r+3;;)if(a=n,n=a.plus(mi(l,a,u+2)).times(.5),Kn(a.d).slice(0,u)===(t=Kn(n.d)).slice(0,u)){if(t=t.slice(u-3,u+1),i==u&&t=="4999"){if(it(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if(t!="9999")break;u+=4}return gt=!0,it(n,r)};fe.times=fe.mul=function(e){var t,r,n,i,a,u,l,d,f,p=this,m=p.constructor,h=p.d,y=(e=new m(e)).d;if(!p.s||!e.s)return new m(0);for(e.s*=p.s,r=p.e+e.e,d=h.length,f=y.length,d<f&&(a=h,h=y,y=a,u=d,d=f,f=u),a=[],u=d+f,n=u;n--;)a.push(0);for(n=f;--n>=0;){for(t=0,i=d+n;i>n;)l=a[i]+y[n]*h[i-n-1]+t,a[i--]=l%Ht|0,t=l/Ht|0;a[i]=(a[i]+t)%Ht|0}for(;!a[--u];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,gt?it(e,m.precision):e};fe.toDecimalPlaces=fe.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Qn(e,0,hu),t===void 0?t=n.rounding:Qn(t,0,8),it(r,e+Nt(r)+1,t))};fe.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=io(n,!0):(Qn(e,0,hu),t===void 0?t=i.rounding:Qn(t,0,8),n=it(new i(n),e+1,t),r=io(n,!0,e+1)),r};fe.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?io(i):(Qn(e,0,hu),t===void 0?t=a.rounding:Qn(t,0,8),n=it(new a(i),e+Nt(i)+1,t),r=io(n.abs(),!1,e+Nt(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};fe.toInteger=fe.toint=function(){var e=this,t=e.constructor;return it(new t(e),Nt(e)+1,t.rounding)};fe.toNumber=function(){return+this};fe.toPower=fe.pow=function(e){var t,r,n,i,a,u,l=this,d=l.constructor,f=12,p=+(e=new d(e));if(!e.s)return new d(Vr);if(l=new d(l),!l.s){if(e.s<1)throw Error(hn+"Infinity");return l}if(l.eq(Vr))return l;if(n=d.precision,e.eq(Vr))return it(l,n);if(t=e.e,r=e.d.length-1,u=t>=r,a=l.s,u){if((r=p<0?-p:p)<=K2){for(i=new d(Vr),t=Math.ceil(n/dt+4),gt=!1;r%2&&(i=i.times(l),pO(i.d,t)),r=gu(r/2),r!==0;)l=l.times(l),pO(l.d,t);return gt=!0,e.s<0?new d(Vr).div(i):it(i,n)}}else if(a<0)throw Error(hn+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,gt=!1,i=e.times(Hs(l,n+f)),gt=!0,i=G2(i),i.s=a,i};fe.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Nt(i),n=io(i,r<=a.toExpNeg||r>=a.toExpPos)):(Qn(e,1,hu),t===void 0?t=a.rounding:Qn(t,0,8),i=it(new a(i),e,t),r=Nt(i),n=io(i,e<=r||r<=a.toExpNeg,e)),n};fe.toSignificantDigits=fe.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Qn(e,1,hu),t===void 0?t=n.rounding:Qn(t,0,8)),it(new n(r),e,t)};fe.toString=fe.valueOf=fe.val=fe.toJSON=fe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Nt(e),r=e.constructor;return io(e,t<=r.toExpNeg||t>=r.toExpPos)};function H2(e,t){var r,n,i,a,u,l,d,f,p=e.constructor,m=p.precision;if(!e.s||!t.s)return t.s||(t=new p(e)),gt?it(t,m):t;if(d=e.d,f=t.d,u=e.e,i=t.e,d=d.slice(),a=u-i,a){for(a<0?(n=d,a=-a,l=f.length):(n=f,i=u,l=d.length),u=Math.ceil(m/dt),l=u>l?u+1:l+1,a>l&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(l=d.length,a=f.length,l-a<0&&(a=l,n=f,f=d,d=n),r=0;a;)r=(d[--a]=d[a]+f[a]+r)/Ht|0,d[a]%=Ht;for(r&&(d.unshift(r),++i),l=d.length;d[--l]==0;)d.pop();return t.d=d,t.e=i,gt?it(t,m):t}function Qn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ha+e)}function Kn(e){var t,r,n,i=e.length-1,a="",u=e[0];if(i>0){for(a+=u,t=1;t<i;t++)n=e[t]+"",r=dt-n.length,r&&(a+=ta(r)),a+=n;u=e[t],n=u+"",r=dt-n.length,r&&(a+=ta(r))}else if(u===0)return"0";for(;u%10===0;)u/=10;return a+u}var mi=(function(){function e(n,i){var a,u=0,l=n.length;for(n=n.slice();l--;)a=n[l]*i+u,n[l]=a%Ht|0,u=a/Ht|0;return u&&n.unshift(u),n}function t(n,i,a,u){var l,d;if(a!=u)d=a>u?1:-1;else for(l=d=0;l<a;l++)if(n[l]!=i[l]){d=n[l]>i[l]?1:-1;break}return d}function r(n,i,a){for(var u=0;a--;)n[a]-=u,u=n[a]<i[a]?1:0,n[a]=u*Ht+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,u){var l,d,f,p,m,h,y,w,_,x,$,E,A,I,j,z,N,M,K=n.constructor,se=n.s==i.s?1:-1,ae=n.d,W=i.d;if(!n.s)return new K(n);if(!i.s)throw Error(hn+"Division by zero");for(d=n.e-i.e,N=W.length,j=ae.length,y=new K(se),w=y.d=[],f=0;W[f]==(ae[f]||0);)++f;if(W[f]>(ae[f]||0)&&--d,a==null?E=a=K.precision:u?E=a+(Nt(n)-Nt(i))+1:E=a,E<0)return new K(0);if(E=E/dt+2|0,f=0,N==1)for(p=0,W=W[0],E++;(f<j||p)&&E--;f++)A=p*Ht+(ae[f]||0),w[f]=A/W|0,p=A%W|0;else{for(p=Ht/(W[0]+1)|0,p>1&&(W=e(W,p),ae=e(ae,p),N=W.length,j=ae.length),I=N,_=ae.slice(0,N),x=_.length;x<N;)_[x++]=0;M=W.slice(),M.unshift(0),z=W[0],W[1]>=Ht/2&&++z;do p=0,l=t(W,_,N,x),l<0?($=_[0],N!=x&&($=$*Ht+(_[1]||0)),p=$/z|0,p>1?(p>=Ht&&(p=Ht-1),m=e(W,p),h=m.length,x=_.length,l=t(m,_,h,x),l==1&&(p--,r(m,N<h?M:W,h))):(p==0&&(l=p=1),m=W.slice()),h=m.length,h<x&&m.unshift(0),r(_,m,x),l==-1&&(x=_.length,l=t(W,_,N,x),l<1&&(p++,r(_,N<x?M:W,x))),x=_.length):l===0&&(p++,_=[0]),w[f++]=p,l&&_[0]?_[x++]=ae[I]||0:(_=[ae[I]],x=1);while((I++<j||_[0]!==void 0)&&E--)}return w[0]||w.shift(),y.e=d,it(y,u?a+Nt(y)+1:a)}})();function G2(e,t){var r,n,i,a,u,l,d=0,f=0,p=e.constructor,m=p.precision;if(Nt(e)>16)throw Error($_+Nt(e));if(!e.s)return new p(Vr);for(gt=!1,l=m,u=new p(.03125);e.abs().gte(.1);)e=e.times(u),f+=5;for(n=Math.log(Ra(2,f))/Math.LN10*2+5|0,l+=n,r=i=a=new p(Vr),p.precision=l;;){if(i=it(i.times(e),l),r=r.times(++d),u=a.plus(mi(i,r,l)),Kn(u.d).slice(0,l)===Kn(a.d).slice(0,l)){for(;f--;)a=it(a.times(a),l);return p.precision=m,t==null?(gt=!0,it(a,m)):a}a=u}}function Nt(e){for(var t=e.e*dt,r=e.d[0];r>=10;r/=10)t++;return t}function qg(e,t,r){if(t>e.LN10.sd())throw gt=!0,r&&(e.precision=r),Error(hn+"LN10 precision limit exceeded");return it(new e(e.LN10),t)}function ta(e){for(var t="";e--;)t+="0";return t}function Hs(e,t){var r,n,i,a,u,l,d,f,p,m=1,h=10,y=e,w=y.d,_=y.constructor,x=_.precision;if(y.s<1)throw Error(hn+(y.s?"NaN":"-Infinity"));if(y.eq(Vr))return new _(0);if(t==null?(gt=!1,f=x):f=t,y.eq(10))return t==null&&(gt=!0),qg(_,f);if(f+=h,_.precision=f,r=Kn(w),n=r.charAt(0),a=Nt(y),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)y=y.times(e),r=Kn(y.d),n=r.charAt(0),m++;a=Nt(y),n>1?(y=new _("0."+r),a++):y=new _(n+"."+r.slice(1))}else return d=qg(_,f+2,x).times(a+""),y=Hs(new _(n+"."+r.slice(1)),f-h).plus(d),_.precision=x,t==null?(gt=!0,it(y,x)):y;for(l=u=y=mi(y.minus(Vr),y.plus(Vr),f),p=it(y.times(y),f),i=3;;){if(u=it(u.times(p),f),d=l.plus(mi(u,new _(i),f)),Kn(d.d).slice(0,f)===Kn(l.d).slice(0,f))return l=l.times(2),a!==0&&(l=l.plus(qg(_,f+2,x).times(a+""))),l=mi(l,new _(m),f),_.precision=x,t==null?(gt=!0,it(l,x)):l;l=d,i+=2}}function fO(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=gu(r/dt),e.d=[],n=(r+1)%dt,r<0&&(n+=dt),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=dt;n<i;)e.d.push(+t.slice(n,n+=dt));t=t.slice(n),n=dt-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),gt&&(e.e>Cf||e.e<-Cf))throw Error($_+r)}else e.s=0,e.e=0,e.d=[0];return e}function it(e,t,r){var n,i,a,u,l,d,f,p,m=e.d;for(u=1,a=m[0];a>=10;a/=10)u++;if(n=t-u,n<0)n+=dt,i=t,f=m[p=0];else{if(p=Math.ceil((n+1)/dt),a=m.length,p>=a)return e;for(f=a=m[p],u=1;a>=10;a/=10)u++;n%=dt,i=n-dt+u}if(r!==void 0&&(a=Ra(10,u-i-1),l=f/a%10|0,d=t<0||m[p+1]!==void 0||f%a,d=r<4?(l||d)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||d||r==6&&(n>0?i>0?f/Ra(10,u-i):0:m[p-1])%10&1||r==(e.s<0?8:7))),t<1||!m[0])return d?(a=Nt(e),m.length=1,t=t-a-1,m[0]=Ra(10,(dt-t%dt)%dt),e.e=gu(-t/dt)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(n==0?(m.length=p,a=1,p--):(m.length=p+1,a=Ra(10,dt-n),m[p]=i>0?(f/Ra(10,u-i)%Ra(10,i)|0)*a:0),d)for(;;)if(p==0){(m[0]+=a)==Ht&&(m[0]=1,++e.e);break}else{if(m[p]+=a,m[p]!=Ht)break;m[p--]=0,a=1}for(n=m.length;m[--n]===0;)m.pop();if(gt&&(e.e>Cf||e.e<-Cf))throw Error($_+Nt(e));return e}function J2(e,t){var r,n,i,a,u,l,d,f,p,m,h=e.constructor,y=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),gt?it(t,y):t;if(d=e.d,m=t.d,n=t.e,f=e.e,d=d.slice(),u=f-n,u){for(p=u<0,p?(r=d,u=-u,l=m.length):(r=m,n=f,l=d.length),i=Math.max(Math.ceil(y/dt),l)+2,u>i&&(u=i,r.length=1),r.reverse(),i=u;i--;)r.push(0);r.reverse()}else{for(i=d.length,l=m.length,p=i<l,p&&(l=i),i=0;i<l;i++)if(d[i]!=m[i]){p=d[i]<m[i];break}u=0}for(p&&(r=d,d=m,m=r,t.s=-t.s),l=d.length,i=m.length-l;i>0;--i)d[l++]=0;for(i=m.length;i>u;){if(d[--i]<m[i]){for(a=i;a&&d[--a]===0;)d[a]=Ht-1;--d[a],d[i]+=Ht}d[i]-=m[i]}for(;d[--l]===0;)d.pop();for(;d[0]===0;d.shift())--n;return d[0]?(t.d=d,t.e=n,gt?it(t,y):t):new h(0)}function io(e,t,r){var n,i=Nt(e),a=Kn(e.d),u=a.length;return t?(r&&(n=r-u)>0?a=a.charAt(0)+"."+a.slice(1)+ta(n):u>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+ta(-i-1)+a,r&&(n=r-u)>0&&(a+=ta(n))):i>=u?(a+=ta(i+1-u),r&&(n=r-i-1)>0&&(a=a+"."+ta(n))):((n=i+1)<u&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-u)>0&&(i+1===u&&(a+="."),a+=ta(n))),e.s<0?"-"+a:a}function pO(e,t){if(e.length>t)return e.length=t,!0}function Y2(e){var t,r,n;function i(a){var u=this;if(!(u instanceof i))return new i(a);if(u.constructor=i,a instanceof i){u.s=a.s,u.e=a.e,u.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Ha+a);if(a>0)u.s=1;else if(a<0)a=-a,u.s=-1;else{u.s=0,u.e=0,u.d=[0];return}if(a===~~a&&a<1e7){u.e=0,u.d=[a];return}return fO(u,a.toString())}else if(typeof a!="string")throw Error(Ha+a);if(a.charCodeAt(0)===45?(a=a.slice(1),u.s=-1):u.s=1,fee.test(a))fO(u,a);else throw Error(Ha+a)}if(i.prototype=fe,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Y2,i.config=i.set=pee,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function pee(e){if(!e||typeof e!="object")throw Error(hn+"Object expected");var t,r,n,i=["precision",1,hu,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(gu(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Ha+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Ha+r+": "+n);return this}var I_=Y2(dee);Vr=new I_(1);const tt=I_;function X2(e){var t;return e===0?t=1:t=Math.floor(new tt(e).abs().log(10).toNumber())+1,t}function Q2(e,t,r){for(var n=new tt(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var eM=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},tM=(e,t,r)=>{if(e.lte(0))return new tt(0);var n=X2(e.toNumber()),i=new tt(10).pow(n),a=e.div(i),u=n!==1?.05:.1,l=new tt(Math.ceil(a.div(u).toNumber())).add(r).mul(u),d=l.mul(i);return t?new tt(d.toNumber()):new tt(Math.ceil(d.toNumber()))},mee=(e,t,r)=>{var n=new tt(1),i=new tt(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new tt(10).pow(X2(e)-1),i=new tt(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new tt(Math.floor(e)))}else e===0?i=new tt(Math.floor((t-1)/2)):r||(i=new tt(Math.floor(e)));for(var u=Math.floor((t-1)/2),l=[],d=0;d<t;d++)l.push(i.add(new tt(d-u).mul(n)).toNumber());return l},rM=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new tt(0),tickMin:new tt(0),tickMax:new tt(0)};var u=tM(new tt(r).sub(t).div(n-1),i,a),l;t<=0&&r>=0?l=new tt(0):(l=new tt(t).add(r).div(2),l=l.sub(new tt(l).mod(u)));var d=Math.ceil(l.sub(t).div(u).toNumber()),f=Math.ceil(new tt(r).sub(l).div(u).toNumber()),p=d+f+1;return p>n?rM(t,r,n,i,a+1):(p<n&&(f=r>0?f+(n-p):f,d=r>0?d:d+(n-p)),{step:u,tickMin:l.sub(new tt(d).mul(u)),tickMax:l.add(new tt(f).mul(u))})},vee=function(t){var[r,n]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=Math.max(i,2),[l,d]=eM([r,n]);if(l===-1/0||d===1/0){var f=d===1/0?[l,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),d];return r>n?f.reverse():f}if(l===d)return mee(l,i,a);var{step:p,tickMin:m,tickMax:h}=rM(l,d,u,a,0),y=Q2(m,h.add(new tt(.1).mul(p)),p);return r>n?y.reverse():y},hee=function(t,r){var[n,i]=t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[u,l]=eM([n,i]);if(u===-1/0||l===1/0)return[n,i];if(u===l)return[u];var d=Math.max(r,2),f=tM(new tt(l).sub(u).div(d-1),a,0),p=[...Q2(new tt(u),new tt(l),f),l];return a===!1&&(p=p.map(m=>Math.round(m))),n>i?p.reverse():p},gee=e=>e.rootProps.barCategoryGap,ym=e=>e.rootProps.stackOffset,nM=e=>e.rootProps.reverseStackOrder,P_=e=>e.options.chartName,O_=e=>e.rootProps.syncId,iM=e=>e.rootProps.syncMethod,E_=e=>e.options.eventEmitter,yee=e=>e.rootProps.baseValue,Ir={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Ta={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},Fn={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},bm=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function wm(e,t,r){if(r!=="auto")return r;if(e!=null)return ei(e,t)?"category":"number"}function mO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mO(Object(r),!0).forEach(function(n){bee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bee(e,t,r){return(t=wee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wee(e){var t=_ee(e,"string");return typeof t=="symbol"?t:t+""}function _ee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vO={allowDataOverflow:Ta.allowDataOverflow,allowDecimals:Ta.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Ta.angleAxisId,includeHidden:!1,name:void 0,reversed:Ta.reversed,scale:Ta.scale,tick:Ta.tick,tickCount:void 0,ticks:void 0,type:Ta.type,unit:void 0},hO={allowDataOverflow:Fn.allowDataOverflow,allowDecimals:Fn.allowDecimals,allowDuplicatedCategory:Fn.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Fn.radiusAxisId,includeHidden:Fn.includeHidden,name:void 0,reversed:Fn.reversed,scale:Fn.scale,tick:Fn.tick,tickCount:Fn.tickCount,ticks:void 0,type:Fn.type,unit:void 0},xee=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},z_=q([xee,H4],(e,t)=>{var r;if(e!=null)return e;var n=(r=wm(t,"angleAxis",vO.type))!==null&&r!==void 0?r:"category";return Tf(Tf({},vO),{},{type:n})}),kee=(e,t)=>e.polarAxis.radiusAxis[t],A_=q([kee,H4],(e,t)=>{var r;if(e!=null)return e;var n=(r=wm(t,"radiusAxis",hO.type))!==null&&r!==void 0?r:"category";return Tf(Tf({},hO),{},{type:n})}),_m=e=>e.polarOptions,j_=q([Ii,Pi,cr],bY),aM=q([_m,j_],(e,t)=>{if(e!=null)return fa(e.innerRadius,t,0)}),oM=q([_m,j_],(e,t)=>{if(e!=null)return fa(e.outerRadius,t,t*.8)}),See=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},uM=q([_m],See);q([z_,uM],bm);var sM=q([j_,aM,oM],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});q([A_,sM],bm);var lM=q([wt,_m,aM,oM,Ii,Pi],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:u,cy:l,startAngle:d,endAngle:f}=t;return{cx:fa(u,i,i/2),cy:fa(l,a,a/2),innerRadius:r,outerRadius:n,startAngle:d,endAngle:f,clockWise:!1}}}),Yt=(e,t)=>t,xm=(e,t,r)=>r;function C_(e){return e==null?void 0:e.id}function cM(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,u=new Map;return e.forEach(l=>{var d,f=(d=l.data)!==null&&d!==void 0?d:n;if(!(f==null||f.length===0)){var p=C_(l);f.forEach((m,h)=>{var y=a==null||i?h:String(ur(m,a,null)),w=ur(m,l.dataKey,0),_;u.has(y)?_=u.get(y):_={},Object.assign(_,{[p]:w}),u.set(y,_)})}}),Array.from(u.values())}function T_(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var km=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Sm(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function $ee(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}var Xt=e=>{var t=wt(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},yu=e=>e.tooltip.settings.axisId;function Iee(e){if(e in Ss)return Ss[e]();var t="scale".concat(Lw(e));if(t in Ss)return Ss[t]()}function gO(e){var t=e.ticks,r=e.bandwidth,n=e.range(),i=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:(function(a){function u(){return a.apply(this,arguments)}return u.toString=function(){return a.toString()},u})(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(a){var u=i[0],l=i[1];return u<=l?a>=u&&a<=l:a>=l&&a<=u},bandwidth:r?()=>r.call(e):void 0,ticks:t?a=>t.call(e,a):void 0,map:(a,u)=>{var l=e(a);if(l!=null){if(e.bandwidth&&u!==null&&u!==void 0&&u.position){var d=e.bandwidth();switch(u.position){case"middle":l+=d/2;break;case"end":l+=d;break}}return l}}}}function yO(e,t,r){if(typeof e=="function")return gO(e.copy().domain(t).range(r));if(e!=null){var n=Iee(e);if(n!=null)return n.domain(t).range(r),gO(n)}}var Pee=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!_i(t)){for(var r,n,i=0;i<t.length;i++){var a=t[i];Ve(a)&&((r===void 0||a<r)&&(r=a),(n===void 0||a>n)&&(n=a))}return r!==void 0&&n!==void 0?[r,n]:void 0}return t}default:return t}};function bO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bO(Object(r),!0).forEach(function(n){Oee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Oee(e,t,r){return(t=Eee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Eee(e){var t=zee(e,"string");return typeof t=="symbol"?t:t+""}function zee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jy=[0,"auto"],Vt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},dM=(e,t)=>e.cartesianAxis.xAxis[t],zi=(e,t)=>{var r=dM(e,t);return r??Vt},Kt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Jy,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Nl},fM=(e,t)=>e.cartesianAxis.yAxis[t],Ai=(e,t)=>{var r=fM(e,t);return r??Kt},Aee={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},N_=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??Aee},Or=(e,t,r)=>{switch(t){case"xAxis":return zi(e,r);case"yAxis":return Ai(e,r);case"zAxis":return N_(e,r);case"angleAxis":return z_(e,r);case"radiusAxis":return A_(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},jee=(e,t,r)=>{switch(t){case"xAxis":return zi(e,r);case"yAxis":return Ai(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Bl=(e,t,r)=>{switch(t){case"xAxis":return zi(e,r);case"yAxis":return Ai(e,r);case"angleAxis":return z_(e,r);case"radiusAxis":return A_(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},pM=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function mM(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var vM=e=>e.graphicalItems.cartesianItems,Cee=q([Yt,xm],mM),hM=(e,t,r)=>e.filter(r).filter(n=>(t==null?void 0:t.includeHidden)===!0?!0:!n.hide),ql=q([vM,Or,Cee],hM,{memoizeOptions:{resultEqualityCheck:Sm}}),gM=q([ql],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(T_)),yM=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Tee=q([ql],yM),bM=e=>e.map(t=>t.data).filter(Boolean).flat(1),Nee=q([ql],bM,{memoizeOptions:{resultEqualityCheck:Sm}}),wM=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},D_=q([Nee,W2],wM),_M=(e,t,r)=>(t==null?void 0:t.dataKey)!=null?e.map(n=>({value:ur(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:ur(i,n)}))):e.map(n=>({value:n})),$m=q([D_,Or,ql],_M);function xM(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Nd(e){if(Yn(e)||e instanceof Date){var t=Number(e);if(Ve(t))return t}}function wO(e){if(Array.isArray(e)){var t=[Nd(e[0]),Nd(e[1])];return _i(t)?t:void 0}var r=Nd(e);if(r!=null)return[r,r]}function xi(e){return e.map(Nd).filter(Mr)}function Dee(e,t,r){return!r||typeof t!="number"||Jn(t)?[]:r.length?xi(r.flatMap(n=>{var i=ur(e,n.dataKey),a,u;if(Array.isArray(i)?[a,u]=i:a=u=i,!(!Ve(a)||!Ve(u)))return[t-a,t+u]})):[]}var Zt=e=>{var t=Xt(e),r=yu(e);return Bl(e,t,r)},Wl=q([Zt],e=>e==null?void 0:e.dataKey),Mee=q([gM,W2,Zt],cM),kM=(e,t,r,n)=>{var i={},a=t.reduce((u,l)=>{if(l.stackId==null)return u;var d=u[l.stackId];return d==null&&(d=[]),d.push(l),u[l.stackId]=d,u},i);return Object.fromEntries(Object.entries(a).map(u=>{var[l,d]=u,f=n?[...d].reverse():d,p=f.map(C_);return[l,{stackedData:sG(e,p,r),graphicalItems:f}]}))},SM=q([Mee,gM,ym,nM],kM),$M=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(n==null&&r!=="zAxis"){var u=fG(e,i,a);if(!(u!=null&&u[0]===0&&u[1]===0))return u}},Ree=q([Or],e=>e.allowDataOverflow),M_=e=>{var t;if(e==null||!("domain"in e))return Jy;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=xi(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:Jy},IM=q([Or],M_),PM=q([IM,Ree],V2),Uee=q([SM,Ei,Yt,PM],$M,{memoizeOptions:{resultEqualityCheck:km}}),R_=e=>e.errorBars,Lee=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>xM(r,n)),Df=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var a=i.flat(),u=Math.min(...a),l=Math.max(...a);return[u,l]}},OM=(e,t,r,n,i)=>{var a,u;if(r.length>0&&e.forEach(l=>{r.forEach(d=>{var f,p,m=(f=n[d.id])===null||f===void 0?void 0:f.filter($=>xM(i,$)),h=ur(l,(p=t.dataKey)!==null&&p!==void 0?p:d.dataKey),y=Dee(l,h,m);if(y.length>=2){var w=Math.min(...y),_=Math.max(...y);(a==null||w<a)&&(a=w),(u==null||_>u)&&(u=_)}var x=wO(h);x!=null&&(a=a==null?x[0]:Math.min(a,x[0]),u=u==null?x[1]:Math.max(u,x[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(l=>{var d=wO(ur(l,t.dataKey));d!=null&&(a=a==null?d[0]:Math.min(a,d[0]),u=u==null?d[1]:Math.max(u,d[1]))}),Ve(a)&&Ve(u))return[a,u]},Zee=q([D_,Or,Tee,R_,Yt],OM,{memoizeOptions:{resultEqualityCheck:km}});function Fee(e){var{value:t}=e;if(Yn(t)||t instanceof Date)return t}var Bee=(e,t,r)=>{var n=e.map(Fee).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&VD(n))?c2(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},EM=e=>e.referenceElements.dots,bu=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),qee=q([EM,Yt,xm],bu),zM=e=>e.referenceElements.areas,Wee=q([zM,Yt,xm],bu),AM=e=>e.referenceElements.lines,Vee=q([AM,Yt,xm],bu),jM=(e,t)=>{if(e!=null){var r=xi(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},Kee=q(qee,Yt,jM),CM=(e,t)=>{if(e!=null){var r=xi(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},Hee=q([Wee,Yt],CM);function Gee(e){var t;if(e.x!=null)return xi([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:xi(r)}function Jee(e){var t;if(e.y!=null)return xi([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:xi(r)}var TM=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?Gee(n):Jee(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},Yee=q([Vee,Yt],TM),Xee=q(Kee,Yee,Hee,(e,t,r)=>Df(e,r,t)),NM=(e,t,r,n,i,a,u,l)=>{if(r!=null)return r;var d=u==="vertical"&&l==="xAxis"||u==="horizontal"&&l==="yAxis",f=d?Df(n,a,i):Df(a,i);return cee(t,f,e.allowDataOverflow)},Qee=q([Or,IM,PM,Uee,Zee,Xee,wt,Yt],NM,{memoizeOptions:{resultEqualityCheck:km}}),ete=[0,1],DM=(e,t,r,n,i,a,u)=>{if(!((e==null||r==null||r.length===0)&&u===void 0)){var{dataKey:l,type:d}=e,f=ei(t,a);if(f&&l==null){var p;return c2(0,(p=r==null?void 0:r.length)!==null&&p!==void 0?p:0)}return d==="category"?Bee(n,e,f):i==="expand"?ete:u}},U_=q([Or,wt,D_,$m,ym,Yt,Qee],DM);function tte(e){return e in Ss}var MM=(e,t,r)=>{if(e!=null){var{scale:n,type:i}=e;if(n==="auto")return i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":i==="category"?"band":"linear";if(typeof n=="string"){var a="scale".concat(Lw(n));return tte(a)?a:"point"}}},wu=q([Or,pM,P_],MM);function L_(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?yO(e.scale,r,n):yO(t,r,n)}var RM=(e,t,r)=>{var n=M_(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&_i(e))return vee(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&_i(e))return hee(e,t.tickCount,t.allowDecimals)}},Z_=q([U_,Bl,wu],RM),UM=(e,t,r,n)=>{if(n!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&_i(t)&&Array.isArray(r)&&r.length>0){var i,a,u=t[0],l=(i=r[0])!==null&&i!==void 0?i:0,d=t[1],f=(a=r[r.length-1])!==null&&a!==void 0?a:0;return[Math.min(u,l),Math.max(d,f)]}return t},rte=q([Or,U_,Z_,Yt],UM),nte=q($m,Or,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(xi(e.map(m=>m.value))).sort((m,h)=>m-h),i=n[0],a=n[n.length-1];if(i==null||a==null)return 1/0;var u=a-i;if(u===0)return 1/0;for(var l=0;l<n.length-1;l++){var d=n[l],f=n[l+1];if(!(d==null||f==null)){var p=f-d;r=Math.min(r,p)}}return r/u}}),LM=q(nte,wt,gee,cr,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!Ve(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var u=fa(r,e*a),l=e*a/2;return l-u-(l-u)/a*u}return 0}),ite=(e,t,r)=>{var n=zi(e,t);return n==null||typeof n.padding!="string"?0:LM(e,"xAxis",t,r,n.padding)},ate=(e,t,r)=>{var n=Ai(e,t);return n==null||typeof n.padding!="string"?0:LM(e,"yAxis",t,r,n.padding)},ote=q(zi,ite,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),ute=q(Ai,ate,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),ste=q([cr,ote,um,om,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),lte=q([cr,wt,ute,um,om,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:u}=i;return a?[n.height-u.bottom,u.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Vl=(e,t,r,n)=>{var i;switch(t){case"xAxis":return ste(e,r,n);case"yAxis":return lte(e,r,n);case"zAxis":return(i=N_(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return uM(e);case"radiusAxis":return sM(e,r);default:return}},ZM=q([Or,Vl],bm),cte=q([wu,rte],Pee),Im=q([Or,wu,cte,ZM],L_);q([ql,R_,Yt],Lee);function FM(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Pm=(e,t)=>t,Om=(e,t,r)=>r,dte=q(im,Pm,Om,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(FM)),fte=q(am,Pm,Om,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(FM)),BM=(e,t)=>({width:e.width,height:t.height}),pte=(e,t)=>{var r=typeof t.width=="number"?t.width:Nl;return{width:r,height:e.height}},mte=q(cr,zi,BM),vte=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},hte=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},gte=q(Pi,cr,dte,Pm,Om,(e,t,r,n,i)=>{var a={},u;return r.forEach(l=>{var d=BM(t,l);u==null&&(u=vte(t,n,e));var f=n==="top"&&!i||n==="bottom"&&i;a[l.id]=u-Number(f)*d.height,u+=(f?-1:1)*d.height}),a}),yte=q(Ii,cr,fte,Pm,Om,(e,t,r,n,i)=>{var a={},u;return r.forEach(l=>{var d=pte(t,l);u==null&&(u=hte(t,n,e));var f=n==="left"&&!i||n==="right"&&i;a[l.id]=u-Number(f)*d.width,u+=(f?-1:1)*d.width}),a}),bte=(e,t)=>{var r=zi(e,t);if(r!=null)return gte(e,r.orientation,r.mirror)},wte=q([cr,zi,bte,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r==null?void 0:r[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),_te=(e,t)=>{var r=Ai(e,t);if(r!=null)return yte(e,r.orientation,r.mirror)},xte=q([cr,Ai,_te,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r==null?void 0:r[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),kte=q(cr,Ai,(e,t)=>{var r=typeof t.width=="number"?t.width:Nl;return{width:r,height:e.height}}),qM=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:u}=r,l=ei(e,n),d=t.map(f=>f.value);if(u&&l&&a==="category"&&i&&VD(d))return d}},F_=q([wt,$m,Or,Yt],qM),WM=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,u=ei(e,n);if(u&&(i==="number"||a!=="auto"))return t.map(l=>l.value)}},B_=q([wt,$m,Bl,Yt],WM),_O=q([wt,jee,wu,Im,F_,B_,Vl,Z_,Yt],(e,t,r,n,i,a,u,l,d)=>{if(t!=null){var f=ei(e,d);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:d,categoricalDomain:a,duplicateDomain:i,isCategorical:f,niceTicks:l,range:u,realScaleType:r,scale:n}}}),Ste=(e,t,r,n,i,a,u,l,d)=>{if(!(t==null||n==null)){var f=ei(e,d),{type:p,ticks:m,tickCount:h}=t,y=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,w=p==="category"&&n.bandwidth?n.bandwidth()/y:0;w=d==="angleAxis"&&a!=null&&a.length>=2?cn(a[0]-a[1])*2*w:w;var _=m||i;return _?_.map((x,$)=>{var E=u?u.indexOf(x):x,A=n.map(E);return Ve(A)?{index:$,coordinate:A+w,value:x,offset:w}:null}).filter(Mr):f&&l?l.map((x,$)=>{var E=n.map(x);return Ve(E)?{coordinate:E+w,value:x,index:$,offset:w}:null}).filter(Mr):n.ticks?n.ticks(h).map((x,$)=>{var E=n.map(x);return Ve(E)?{coordinate:E+w,value:x,index:$,offset:w}:null}).filter(Mr):n.domain().map((x,$)=>{var E=n.map(x);return Ve(E)?{coordinate:E+w,value:u?u[x]:x,index:$,offset:w}:null}).filter(Mr)}},VM=q([wt,Bl,wu,Im,Z_,Vl,F_,B_,Yt],Ste),$te=(e,t,r,n,i,a,u)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var l=ei(e,u),{tickCount:d}=t,f=0;return f=u==="angleAxis"&&(n==null?void 0:n.length)>=2?cn(n[0]-n[1])*2*f:f,l&&a?a.map((p,m)=>{var h=r.map(p);return Ve(h)?{coordinate:h+f,value:p,index:m,offset:f}:null}).filter(Mr):r.ticks?r.ticks(d).map((p,m)=>{var h=r.map(p);return Ve(h)?{coordinate:h+f,value:p,index:m,offset:f}:null}).filter(Mr):r.domain().map((p,m)=>{var h=r.map(p);return Ve(h)?{coordinate:h+f,value:i?i[p]:p,index:m,offset:f}:null}).filter(Mr)}},KM=q([wt,Bl,Im,Vl,F_,B_,Yt],$te),HM=q(Or,Im,(e,t)=>{if(!(e==null||t==null))return Nf(Nf({},e),{},{scale:t})}),Ite=q([Or,wu,U_,ZM],L_);q((e,t,r)=>N_(e,r),Ite,(e,t)=>{if(!(e==null||t==null))return Nf(Nf({},e),{},{scale:t})});var Pte=q([wt,im,am],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),GM=e=>e.options.defaultTooltipEventType,JM=e=>e.options.validateTooltipEventTypes;function YM(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function q_(e,t){var r=GM(e),n=JM(e);return YM(t,r,n)}function Ote(e){return Ae(t=>q_(t,e))}var XM=(e,t)=>{var r,n=Number(t);if(!(Jn(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},Ete=e=>e.tooltip.settings,na={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},zte={itemInteraction:{click:na,hover:na},axisInteraction:{click:na,hover:na},keyboardInteraction:na,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},QM=Lr({name:"tooltip",initialState:zte,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:ht()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Cn(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:ht()},removeTooltipEntrySettings:{reducer(e,t){var r=Cn(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:ht()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:Ate,replaceTooltipEntrySettings:jte,removeTooltipEntrySettings:Cte,setTooltipSettingsState:Tte,setActiveMouseOverItemIndex:Nte,mouseLeaveItem:Qse,mouseLeaveChart:e6,setActiveClickItemIndex:ele,setMouseOverAxisIndex:t6,setMouseClickAxisIndex:Dte,setSyncInteraction:Yy,setKeyboardInteraction:Xy}=QM.actions,Mte=QM.reducer;function xO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Od(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(r),!0).forEach(function(n){Rte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rte(e,t,r){return(t=Ute(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ute(e){var t=Lte(e,"string");return typeof t=="symbol"?t:t+""}function Lte(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zte(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Fte(e){return e.index!=null}var r6=(e,t,r,n)=>{if(t==null)return na;var i=Zte(e,t,r);if(i==null)return na;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(Fte(i)){if(a)return Od(Od({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return Od(Od({},na),{},{coordinate:i.coordinate})};function Bte(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function qte(e,t){var r=Bte(e),n=t[0],i=t[1];if(r===void 0)return!1;var a=Math.min(n,i),u=Math.max(n,i);return r>=a&&r<=u}function Wte(e,t,r){if(r==null||t==null)return!0;var n=ur(e,t);return n==null||!_i(r)?!0:qte(n,r)}var W_=(e,t,r,n)=>{var i=e==null?void 0:e.index;if(i==null)return null;var a=Number(i);if(!Ve(a))return i;var u=0,l=1/0;t.length>0&&(l=t.length-1);var d=Math.max(u,Math.min(a,l)),f=t[d];return f==null||Wte(f,r,n)?String(d):null},n6=(e,t,r,n,i,a,u)=>{if(a!=null){var l=u[0],d=l==null?void 0:l.getPosition(a);if(d!=null)return d;var f=i==null?void 0:i[Number(a)];if(f)switch(r){case"horizontal":return{x:f.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:f.coordinate}}}},i6=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;if(r==="hover"?i=e.itemInteraction.hover.graphicalItemId:i=e.itemInteraction.click.graphicalItemId,i==null&&n!=null){var a=e.tooltipItemPayloads[0];return a!=null?[a]:[]}return e.tooltipItemPayloads.filter(u=>{var l;return((l=u.settings)===null||l===void 0?void 0:l.graphicalItemId)===i})},a6=e=>e.options.tooltipPayloadSearcher,_u=e=>e.tooltip;function kO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function SO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kO(Object(r),!0).forEach(function(n){Vte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vte(e,t,r){return(t=Kte(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kte(e){var t=Hte(e,"string");return typeof t=="symbol"?t:t+""}function Hte(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gte(e,t){return e??t}var o6=(e,t,r,n,i,a,u)=>{if(!(t==null||a==null)){var{chartData:l,computedData:d,dataStartIndex:f,dataEndIndex:p}=r,m=[];return e.reduce((h,y)=>{var w,{dataDefinedOnItem:_,settings:x}=y,$=Gte(_,l),E=Array.isArray($)?D4($,f,p):$,A=(w=x==null?void 0:x.dataKey)!==null&&w!==void 0?w:n,I=x==null?void 0:x.nameKey,j;if(n&&Array.isArray(E)&&!Array.isArray(E[0])&&u==="axis"?j=KD(E,n,i):j=a(E,t,d,I),Array.isArray(j))j.forEach(N=>{var M=SO(SO({},x),{},{name:N.name,unit:N.unit,color:void 0,fill:void 0});h.push($I({tooltipEntrySettings:M,dataKey:N.dataKey,payload:N.payload,value:ur(N.payload,N.dataKey),name:N.name}))});else{var z;h.push($I({tooltipEntrySettings:x,dataKey:A,payload:j,value:ur(j,A),name:(z=ur(j,I))!==null&&z!==void 0?z:x==null?void 0:x.name}))}return h},m)}},V_=q([Zt,pM,P_],MM),Jte=q([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Yte=q([Xt,yu],mM),xu=q([Jte,Zt,Yte],hM,{memoizeOptions:{resultEqualityCheck:Sm}}),Xte=q([xu],e=>e.filter(T_)),Qte=q([xu],bM,{memoizeOptions:{resultEqualityCheck:Sm}}),ku=q([Qte,Ei],wM),ere=q([Xte,Ei,Zt],cM),K_=q([ku,Zt,xu],_M),u6=q([Zt],M_),tre=q([Zt],e=>e.allowDataOverflow),s6=q([u6,tre],V2),rre=q([xu],e=>e.filter(T_)),nre=q([ere,rre,ym,nM],kM),ire=q([nre,Ei,Xt,s6],$M),are=q([xu],yM),ore=q([ku,Zt,are,R_,Xt],OM,{memoizeOptions:{resultEqualityCheck:km}}),ure=q([EM,Xt,yu],bu),sre=q([ure,Xt],jM),lre=q([zM,Xt,yu],bu),cre=q([lre,Xt],CM),dre=q([AM,Xt,yu],bu),fre=q([dre,Xt],TM),pre=q([sre,fre,cre],Df),mre=q([Zt,u6,s6,ire,ore,pre,wt,Xt],NM),Kl=q([Zt,wt,ku,K_,ym,Xt,mre],DM),vre=q([Kl,Zt,V_],RM),hre=q([Zt,Kl,vre,Xt],UM),l6=e=>{var t=Xt(e),r=yu(e),n=!1;return Vl(e,t,r,n)},c6=q([Zt,l6],bm),d6=q([Zt,V_,hre,c6],L_),gre=q([wt,K_,Zt,Xt],qM),yre=q([wt,K_,Zt,Xt],WM),bre=(e,t,r,n,i,a,u,l)=>{if(t){var{type:d}=t,f=ei(e,l);if(n){var p=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,m=d==="category"&&n.bandwidth?n.bandwidth()/p:0;return m=l==="angleAxis"&&i!=null&&(i==null?void 0:i.length)>=2?cn(i[0]-i[1])*2*m:m,f&&u?u.map((h,y)=>{var w=n.map(h);return Ve(w)?{coordinate:w+m,value:h,index:y,offset:m}:null}).filter(Mr):n.domain().map((h,y)=>{var w=n.map(h);return Ve(w)?{coordinate:w+m,value:a?a[h]:h,index:y,offset:m}:null}).filter(Mr)}}},ji=q([wt,Zt,V_,d6,l6,gre,yre,Xt],bre),H_=q([GM,JM,Ete],(e,t,r)=>YM(r.shared,e,t)),f6=e=>e.tooltip.settings.trigger,G_=e=>e.tooltip.settings.defaultIndex,Hl=q([_u,H_,f6,G_],r6),Gs=q([Hl,ku,Wl,Kl],W_),p6=q([ji,Gs],XM),wre=q([Hl],e=>{if(e)return e.dataKey});q([Hl],e=>{if(e)return e.graphicalItemId});var m6=q([_u,H_,f6,G_],i6),_re=q([Ii,Pi,wt,cr,ji,G_,m6],n6),xre=q([Hl,_re],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),kre=q([Hl],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),Sre=q([m6,Gs,Ei,Wl,p6,a6,H_],o6),$re=q([Sre],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function $O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function IO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$O(Object(r),!0).forEach(function(n){Ire(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$O(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ire(e,t,r){return(t=Pre(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pre(e){var t=Ore(e,"string");return typeof t=="symbol"?t:t+""}function Ore(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ere=()=>Ae(Zt),zre=()=>{var e=Ere(),t=Ae(ji),r=Ae(d6);return pf(!e||!r?void 0:IO(IO({},e),{},{scale:r}),t)};function PO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PO(Object(r),!0).forEach(function(n){Are(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Are(e,t,r){return(t=jre(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jre(e){var t=Cre(e,"string");return typeof t=="symbol"?t:t+""}function Cre(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tre=(e,t,r,n)=>{var i=t.find(a=>a&&a.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.chartY};if(e==="vertical")return{x:n.chartX,y:i.coordinate}}return{x:0,y:0}},Nre=(e,t,r,n)=>{var i=t.find(f=>f&&f.index===r);if(i){if(e==="centric"){var a=i.coordinate,{radius:u}=n;return Fo(Fo(Fo({},n),or(n.cx,n.cy,u,a)),{},{angle:a,radius:u})}var l=i.coordinate,{angle:d}=n;return Fo(Fo(Fo({},n),or(n.cx,n.cy,l,d)),{},{angle:d,radius:l})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function Dre(e,t){var{chartX:r,chartY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var v6=(e,t,r,n,i)=>{var a,u=(a=t==null?void 0:t.length)!==null&&a!==void 0?a:0;if(u<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var l=0;l<u;l++){var d,f,p,m,h,y=l>0?(d=r[l-1])===null||d===void 0?void 0:d.coordinate:(f=r[u-1])===null||f===void 0?void 0:f.coordinate,w=(p=r[l])===null||p===void 0?void 0:p.coordinate,_=l>=u-1?(m=r[0])===null||m===void 0?void 0:m.coordinate:(h=r[l+1])===null||h===void 0?void 0:h.coordinate,x=void 0;if(!(y==null||w==null||_==null))if(cn(w-y)!==cn(_-w)){var $=[];if(cn(_-w)===cn(i[1]-i[0])){x=_;var E=w+i[1]-i[0];$[0]=Math.min(E,(E+y)/2),$[1]=Math.max(E,(E+y)/2)}else{x=y;var A=_+i[1]-i[0];$[0]=Math.min(w,(A+w)/2),$[1]=Math.max(w,(A+w)/2)}var I=[Math.min(w,(x+w)/2),Math.max(w,(x+w)/2)];if(e>I[0]&&e<=I[1]||e>=$[0]&&e<=$[1]){var j;return(j=r[l])===null||j===void 0?void 0:j.index}}else{var z=Math.min(y,_),N=Math.max(y,_);if(e>(z+w)/2&&e<=(N+w)/2){var M;return(M=r[l])===null||M===void 0?void 0:M.index}}}else if(t)for(var K=0;K<u;K++){var se=t[K];if(se!=null){var ae=t[K+1],W=t[K-1];if(K===0&&ae!=null&&e<=(se.coordinate+ae.coordinate)/2||K===u-1&&W!=null&&e>(se.coordinate+W.coordinate)/2||K>0&&K<u-1&&W!=null&&ae!=null&&e>(se.coordinate+W.coordinate)/2&&e<=(se.coordinate+ae.coordinate)/2)return se.index}}return-1},h6=()=>Ae(P_),J_=(e,t)=>t,g6=(e,t,r)=>r,Y_=(e,t,r,n)=>n,Mre=q(ji,e=>Hp(e,t=>t.coordinate)),X_=q([_u,J_,g6,Y_],r6),Q_=q([X_,ku,Wl,Kl],W_),Rre=(e,t,r)=>{if(t!=null){var n=_u(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},y6=q([_u,J_,g6,Y_],i6),Mf=q([Ii,Pi,wt,cr,ji,Y_,y6],n6),Ure=q([X_,Mf],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),b6=q([ji,Q_],XM),Lre=q([y6,Q_,Ei,Wl,b6,a6,J_],o6),Zre=q([X_,Q_],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),Fre=(e,t,r,n,i,a,u)=>{if(!(!e||!r||!n||!i)&&Dre(e,u)){var l=pG(e,t),d=v6(l,a,i,r,n),f=Tre(t,i,d,e);return{activeIndex:String(d),activeCoordinate:f}}},Bre=(e,t,r,n,i,a,u)=>{if(!(!e||!n||!i||!a||!r)){var l=SY(e,r);if(l){var d=mG(l,t),f=v6(d,u,a,n,i),p=Nre(t,a,f,l);return{activeIndex:String(f),activeCoordinate:p}}}},qre=(e,t,r,n,i,a,u,l)=>{if(!(!e||!t||!n||!i||!a))return t==="horizontal"||t==="vertical"?Fre(e,t,n,i,a,u,l):Bre(e,t,r,n,i,a,u)},Wre=q(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),Vre=q(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(Ir)),r=Array.from(new Set(t));return r.sort((n,i)=>n-i)},{memoizeOptions:{resultEqualityCheck:$ee}});function OO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function EO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OO(Object(r),!0).forEach(function(n){Kre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kre(e,t,r){return(t=Hre(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hre(e){var t=Gre(e,"string");return typeof t=="symbol"?t:t+""}function Gre(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jre={},Yre={zIndexMap:Object.values(Ir).reduce((e,t)=>EO(EO({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),Jre)},Xre=new Set(Object.values(Ir));function Qre(e){return Xre.has(e)}var w6=Lr({name:"zIndex",initialState:Yre,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:ht()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!Qre(r)&&delete e.zIndexMap[r])},prepare:ht()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:i}=t.payload;e.zIndexMap[r]?i?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:i?void 0:n,panoramaElement:i?n:void 0}},prepare:ht()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:ht()}}}),{registerZIndexPortal:ene,unregisterZIndexPortal:tne,registerZIndexPortalElement:rne,unregisterZIndexPortalElement:nne}=w6.actions,ine=w6.reducer;function Ci(e){var{zIndex:t,children:r}=e,n=KG(),i=n&&t!==void 0&&t!==0,a=Zr(),u=Gt();k.useLayoutEffect(()=>i?(u(ene({zIndex:t})),()=>{u(tne({zIndex:t}))}):pu,[u,t,i]);var l=Ae(d=>Wre(d,t,a));return i?l?zD.createPortal(r,l):null:r}function Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qy.apply(null,arguments)}function zO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ed(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zO(Object(r),!0).forEach(function(n){ane(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ane(e,t,r){return(t=one(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function one(e){var t=une(e,"string");return typeof t=="symbol"?t:t+""}function une(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sne(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return k.isValidElement(t)?k.cloneElement(t,n):k.createElement(r,n)}function lne(e){var t,{coordinate:r,payload:n,index:i,offset:a,tooltipAxisBandSize:u,layout:l,cursor:d,tooltipEventType:f,chartName:p}=e,m=r,h=n,y=i;if(!d||!m||p!=="ScatterChart"&&f!=="axis")return null;var w,_,x;if(p==="ScatterChart")w=m,_=NJ,x=Ir.cursorLine;else if(p==="BarChart")w=DJ(l,m,a,u),_=mY,x=Ir.cursorRectangle;else if(l==="radial"&&HD(m)){var{cx:$,cy:E,radius:A,startAngle:I,endAngle:j}=s2(m);w={cx:$,cy:E,startAngle:I,endAngle:j,innerRadius:A,outerRadius:A},_=OY,x=Ir.cursorLine}else w={points:EY(l,m,a)},_=Td,x=Ir.cursorLine;var z=typeof d=="object"&&"className"in d?d.className:void 0,N=Ed(Ed(Ed(Ed({stroke:"#ccc",pointerEvents:"none"},a),w),qp(d)),{},{payload:h,payloadIndex:y,className:at("recharts-tooltip-cursor",z)});return k.createElement(Ci,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:x},k.createElement(sne,{cursor:d,cursorComp:_,cursorProps:N}))}function cne(e){var t=zre(),r=W4(),n=mu(),i=h6();return t==null||r==null||n==null||i==null?null:k.createElement(lne,Qy({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var _6=k.createContext(null),dne=()=>k.useContext(_6),Wg={exports:{}},AO;function fne(){return AO||(AO=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(d,f,p){this.fn=d,this.context=f,this.once=p||!1}function a(d,f,p,m,h){if(typeof p!="function")throw new TypeError("The listener must be a function");var y=new i(p,m||d,h),w=r?r+f:f;return d._events[w]?d._events[w].fn?d._events[w]=[d._events[w],y]:d._events[w].push(y):(d._events[w]=y,d._eventsCount++),d}function u(d,f){--d._eventsCount===0?d._events=new n:delete d._events[f]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var f=[],p,m;if(this._eventsCount===0)return f;for(m in p=this._events)t.call(p,m)&&f.push(r?m.slice(1):m);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(p)):f},l.prototype.listeners=function(f){var p=r?r+f:f,m=this._events[p];if(!m)return[];if(m.fn)return[m.fn];for(var h=0,y=m.length,w=new Array(y);h<y;h++)w[h]=m[h].fn;return w},l.prototype.listenerCount=function(f){var p=r?r+f:f,m=this._events[p];return m?m.fn?1:m.length:0},l.prototype.emit=function(f,p,m,h,y,w){var _=r?r+f:f;if(!this._events[_])return!1;var x=this._events[_],$=arguments.length,E,A;if(x.fn){switch(x.once&&this.removeListener(f,x.fn,void 0,!0),$){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,p),!0;case 3:return x.fn.call(x.context,p,m),!0;case 4:return x.fn.call(x.context,p,m,h),!0;case 5:return x.fn.call(x.context,p,m,h,y),!0;case 6:return x.fn.call(x.context,p,m,h,y,w),!0}for(A=1,E=new Array($-1);A<$;A++)E[A-1]=arguments[A];x.fn.apply(x.context,E)}else{var I=x.length,j;for(A=0;A<I;A++)switch(x[A].once&&this.removeListener(f,x[A].fn,void 0,!0),$){case 1:x[A].fn.call(x[A].context);break;case 2:x[A].fn.call(x[A].context,p);break;case 3:x[A].fn.call(x[A].context,p,m);break;case 4:x[A].fn.call(x[A].context,p,m,h);break;default:if(!E)for(j=1,E=new Array($-1);j<$;j++)E[j-1]=arguments[j];x[A].fn.apply(x[A].context,E)}}return!0},l.prototype.on=function(f,p,m){return a(this,f,p,m,!1)},l.prototype.once=function(f,p,m){return a(this,f,p,m,!0)},l.prototype.removeListener=function(f,p,m,h){var y=r?r+f:f;if(!this._events[y])return this;if(!p)return u(this,y),this;var w=this._events[y];if(w.fn)w.fn===p&&(!h||w.once)&&(!m||w.context===m)&&u(this,y);else{for(var _=0,x=[],$=w.length;_<$;_++)(w[_].fn!==p||h&&!w[_].once||m&&w[_].context!==m)&&x.push(w[_]);x.length?this._events[y]=x.length===1?x[0]:x:u(this,y)}return this},l.prototype.removeAllListeners=function(f){var p;return f?(p=r?r+f:f,this._events[p]&&u(this,p)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l})(Wg)),Wg.exports}var pne=fne();const mne=pa(pne);var Js=new mne,eb="recharts.syncEvent.tooltip",jO="recharts.syncEvent.brush",vne=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!Jn(r))return e[r]}},hne={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},x6=Lr({name:"options",initialState:hne,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),gne=x6.reducer,{createEventEmitter:yne}=x6.actions;function bne(e){return e.tooltip.syncInteraction}var wne={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},k6=Lr({name:"chartData",initialState:wne,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:CO,setDataStartEndIndexes:_ne,setComputedData:tle}=k6.actions,xne=k6.reducer,kne=["x","y"];function TO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TO(Object(r),!0).forEach(function(n){Sne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sne(e,t,r){return(t=$ne(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $ne(e){var t=Ine(e,"string");return typeof t=="symbol"?t:t+""}function Ine(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pne(e,t){if(e==null)return{};var r,n,i=One(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function One(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ene(){var e=Ae(O_),t=Ae(E_),r=Gt(),n=Ae(iM),i=Ae(ji),a=mu(),u=sm(),l=Ae(d=>d.rootProps.className);k.useEffect(()=>{if(e==null)return pu;var d=(f,p,m)=>{if(t!==m&&e===f){if(n==="index"){var h;if(u&&p!==null&&p!==void 0&&(h=p.payload)!==null&&h!==void 0&&h.coordinate&&p.payload.sourceViewBox){var y=p.payload.coordinate,{x:w,y:_}=y,x=Pne(y,kne),{x:$,y:E,width:A,height:I}=p.payload.sourceViewBox,j=Bo(Bo({},x),{},{x:u.x+(A?(w-$)/A:0)*u.width,y:u.y+(I?(_-E)/I:0)*u.height});r(Bo(Bo({},p),{},{payload:Bo(Bo({},p.payload),{},{coordinate:j})}))}else r(p);return}if(i!=null){var z;if(typeof n=="function"){var N={activeTooltipIndex:p.payload.index==null?void 0:Number(p.payload.index),isTooltipActive:p.payload.active,activeIndex:p.payload.index==null?void 0:Number(p.payload.index),activeLabel:p.payload.label,activeDataKey:p.payload.dataKey,activeCoordinate:p.payload.coordinate},M=n(i,N);z=i[M]}else n==="value"&&(z=i.find(Te=>String(Te.value)===p.payload.label));var{coordinate:K}=p.payload;if(z==null||p.payload.active===!1||K==null||u==null){r(Yy({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:se,y:ae}=K,W=Math.min(se,u.x+u.width),_e=Math.min(ae,u.y+u.height),xe={x:a==="horizontal"?z.coordinate:W,y:a==="horizontal"?_e:z.coordinate},Ce=Yy({active:p.payload.active,coordinate:xe,dataKey:p.payload.dataKey,index:String(z.index),label:p.payload.label,sourceViewBox:p.payload.sourceViewBox,graphicalItemId:p.payload.graphicalItemId});r(Ce)}}};return Js.on(eb,d),()=>{Js.off(eb,d)}},[l,r,t,e,n,i,a,u])}function zne(){var e=Ae(O_),t=Ae(E_),r=Gt();k.useEffect(()=>{if(e==null)return pu;var n=(i,a,u)=>{t!==u&&e===i&&r(_ne(a))};return Js.on(jO,n),()=>{Js.off(jO,n)}},[r,t,e])}function Ane(){var e=Gt();k.useEffect(()=>{e(yne())},[e]),Ene(),zne()}function jne(e,t,r,n,i,a){var u=Ae(y=>Rre(y,e,t)),l=Ae(E_),d=Ae(O_),f=Ae(iM),p=Ae(bne),m=p==null?void 0:p.active,h=sm();k.useEffect(()=>{if(!m&&d!=null&&l!=null){var y=Yy({active:a,coordinate:r,dataKey:u,index:i,label:typeof n=="number"?String(n):n,sourceViewBox:h,graphicalItemId:void 0});Js.emit(eb,d,y,l)}},[m,r,u,i,n,l,d,f,a,h])}function NO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function DO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NO(Object(r),!0).forEach(function(n){Cne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cne(e,t,r){return(t=Tne(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tne(e){var t=Nne(e,"string");return typeof t=="symbol"?t:t+""}function Nne(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dne(e){return e.dataKey}function Mne(e,t){return k.isValidElement(e)?k.cloneElement(e,t):typeof e=="function"?k.createElement(e,t):k.createElement(mJ,t)}var MO=[],Rne={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function Une(e){var t,r,n=en(e,Rne),{active:i,allowEscapeViewBox:a,animationDuration:u,animationEasing:l,content:d,filterNull:f,isAnimationActive:p,offset:m,payloadUniqBy:h,position:y,reverseDirection:w,useTranslate3d:_,wrapperStyle:x,cursor:$,shared:E,trigger:A,defaultIndex:I,portal:j,axisId:z}=n,N=Gt(),M=typeof I=="number"?String(I):I;k.useEffect(()=>{N(Tte({shared:E,trigger:A,axisId:z,active:i,defaultIndex:M}))},[N,E,A,z,i,M]);var K=sm(),se=r2(),ae=Ote(E),{activeIndex:W,isActive:_e}=(t=Ae(Me=>Zre(Me,ae,A,M)))!==null&&t!==void 0?t:{},xe=Ae(Me=>Lre(Me,ae,A,M)),Ce=Ae(Me=>b6(Me,ae,A,M)),Te=Ae(Me=>Ure(Me,ae,A,M)),ge=xe,X=dne(),oe=(r=i??_e)!==null&&r!==void 0?r:!1,[B,D]=e7([ge,oe]),G=ae==="axis"?Ce:void 0;jne(ae,A,Te,G,W,oe);var Ie=j??X;if(Ie==null||K==null||ae==null)return null;var Se=ge??MO;oe||(Se=MO),f&&Se.length&&(Se=IH(Se.filter(Me=>Me.value!=null&&(Me.hide!==!0||n.includeHidden)),h,Dne));var $e=Se.length>0,Pe=k.createElement(_J,{allowEscapeViewBox:a,animationDuration:u,animationEasing:l,isAnimationActive:p,active:oe,coordinate:Te,hasPayload:$e,offset:m,position:y,reverseDirection:w,useTranslate3d:_,viewBox:K,wrapperStyle:x,lastBoundingBox:B,innerRef:D,hasPortalFromProps:!!j},Mne(d,DO(DO({},n),{},{payload:Se,label:G,active:oe,activeIndex:W,coordinate:Te,accessibilityLayer:se})));return k.createElement(k.Fragment,null,zD.createPortal(Pe,Ie),oe&&k.createElement(cne,{cursor:$,tooltipEventType:ae,coordinate:Te,payload:Se,index:W}))}function Lne(e,t,r){return(t=Zne(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zne(e){var t=Fne(e,"string");return typeof t=="symbol"?t:t+""}function Fne(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Bne{constructor(t){Lne(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function RO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RO(Object(r),!0).forEach(function(n){Wne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wne(e,t,r){return(t=Vne(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vne(e){var t=Kne(e,"string");return typeof t=="symbol"?t:t+""}function Kne(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hne={cacheSize:2e3,enableCache:!0},S6=qne({},Hne),UO=new Bne(S6.cacheSize),Gne={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},LO="recharts_measurement_span";function Jne(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",u=t.letterSpacing||"",l=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(u,"|").concat(l)}var ZO=(e,t)=>{try{var r=document.getElementById(LO);r||(r=document.createElement("span"),r.setAttribute("id",LO),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,Gne,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Ps=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Rl.isSsr)return{width:0,height:0};if(!S6.enableCache)return ZO(t,r);var n=Jne(t,r),i=UO.get(n);if(i)return i;var a=ZO(t,r);return UO.set(n,a),a},$6;function Yne(e,t,r){return(t=Xne(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xne(e){var t=Qne(e,"string");return typeof t=="symbol"?t:t+""}function Qne(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var FO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,BO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,eie=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,tie=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,rie={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},nie=["cm","mm","pt","pc","in","Q","px"];function iie(e){return nie.includes(e)}var Vo="NaN";function aie(e,t){return e*rie[t]}class nr{static parse(t){var r,[,n,i]=(r=tie.exec(t))!==null&&r!==void 0?r:[];return n==null?nr.NaN:new nr(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,Jn(t)&&(this.unit=""),r!==""&&!eie.test(r)&&(this.num=NaN,this.unit=""),iie(r)&&(this.num=aie(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new nr(NaN,""):new nr(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new nr(NaN,""):new nr(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new nr(NaN,""):new nr(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new nr(NaN,""):new nr(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Jn(this.num)}}$6=nr;Yne(nr,"NaN",new $6(NaN,""));function I6(e){if(e==null||e.includes(Vo))return Vo;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=FO.exec(t))!==null&&r!==void 0?r:[],u=nr.parse(n??""),l=nr.parse(a??""),d=i==="*"?u.multiply(l):u.divide(l);if(d.isNaN())return Vo;t=t.replace(FO,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,[,p,m,h]=(f=BO.exec(t))!==null&&f!==void 0?f:[],y=nr.parse(p??""),w=nr.parse(h??""),_=m==="+"?y.add(w):y.subtract(w);if(_.isNaN())return Vo;t=t.replace(BO,_.toString())}return t}var qO=/\(([^()]*)\)/;function oie(e){for(var t=e,r;(r=qO.exec(t))!=null;){var[,n]=r;t=t.replace(qO,I6(n))}return t}function uie(e){var t=e.replace(/\s+/g,"");return t=oie(t),t=I6(t),t}function sie(e){try{return uie(e)}catch{return Vo}}function Vg(e){var t=sie(e.slice(5,-1));return t===Vo?"":t}var lie=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],cie=["dx","dy","angle","className","breakAll"];function tb(){return tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tb.apply(null,arguments)}function WO(e,t){if(e==null)return{};var r,n,i=die(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function die(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var P6=/[ \f\n\r\t\v\u2028\u2029]+/,O6=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];_r(t)||(r?i=t.toString().split(""):i=t.toString().split(P6));var a=i.map(l=>({word:l,width:Ps(l,n).width})),u=r?0:Ps(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:u}}catch{return null}};function fie(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var E6=(e,t,r,n)=>e.reduce((i,a)=>{var{word:u,width:l}=a,d=i[i.length-1];if(d&&l!=null&&(t==null||n||d.width+l+r<Number(t)))d.words.push(u),d.width+=l+r;else{var f={words:[u],width:l};i.push(f)}return i},[]),z6=e=>e.reduce((t,r)=>t.width>r.width?t:r),pie="…",VO=(e,t,r,n,i,a,u,l)=>{var d=e.slice(0,t),f=O6({breakAll:r,style:n,children:d+pie});if(!f)return[!1,[]];var p=E6(f.wordsWithComputedWidth,a,u,l),m=p.length>i||z6(p).width>Number(a);return[m,p]},mie=(e,t,r,n,i)=>{var{maxLines:a,children:u,style:l,breakAll:d}=e,f=be(a),p=String(u),m=E6(t,n,r,i);if(!f||i)return m;var h=m.length>a||z6(m).width>Number(n);if(!h)return m;for(var y=0,w=p.length-1,_=0,x;y<=w&&_<=p.length-1;){var $=Math.floor((y+w)/2),E=$-1,[A,I]=VO(p,E,d,l,a,n,r,i),[j]=VO(p,$,d,l,a,n,r,i);if(!A&&!j&&(y=$+1),A&&j&&(w=$-1),!A&&j){x=I;break}_++}return x||m},KO=e=>{var t=_r(e)?[]:e.toString().split(P6);return[{words:t,width:void 0}]},vie=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:u}=e;if((t||r)&&!Rl.isSsr){var l,d,f=O6({breakAll:a,children:n,style:i});if(f){var{wordsWithComputedWidth:p,spaceWidth:m}=f;l=p,d=m}else return KO(n);return mie({breakAll:a,children:n,maxLines:u,style:i},l,d,t,!!r)}return KO(n)},A6="#808080",hie={angle:0,breakAll:!1,capHeight:"0.71em",fill:A6,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},ex=k.forwardRef((e,t)=>{var r=en(e,hie),{x:n,y:i,lineHeight:a,capHeight:u,fill:l,scaleToFit:d,textAnchor:f,verticalAnchor:p}=r,m=WO(r,lie),h=k.useMemo(()=>vie({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:d,style:m.style,width:m.width}),[m.breakAll,m.children,m.maxLines,d,m.style,m.width]),{dx:y,dy:w,angle:_,className:x,breakAll:$}=m,E=WO(m,cie);if(!Yn(n)||!Yn(i)||h.length===0)return null;var A=Number(n)+(be(y)?y:0),I=Number(i)+(be(w)?w:0);if(!Ve(A)||!Ve(I))return null;var j;switch(p){case"start":j=Vg("calc(".concat(u,")"));break;case"middle":j=Vg("calc(".concat((h.length-1)/2," * -").concat(a," + (").concat(u," / 2))"));break;default:j=Vg("calc(".concat(h.length-1," * -").concat(a,")"));break}var z=[],N=h[0];if(d&&N!=null){var M=N.width,{width:K}=m;z.push("scale(".concat(be(K)&&be(M)?K/M:1,")"))}return _&&z.push("rotate(".concat(_,", ").concat(A,", ").concat(I,")")),z.length&&(E.transform=z.join(" ")),k.createElement("text",tb({},mn(E),{ref:t,x:A,y:I,className:at("recharts-text",x),textAnchor:f,fill:l.includes("url")?A6:l}),h.map((se,ae)=>{var W=se.words.join($?"":" ");return k.createElement("tspan",{x:A,dy:ae===0?j:a,key:"".concat(W,"-").concat(ae)},W)}))});ex.displayName="Text";function HO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HO(Object(r),!0).forEach(function(n){gie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gie(e,t,r){return(t=yie(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yie(e){var t=bie(e,"string");return typeof t=="symbol"?t:t+""}function bie(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wie=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i}=e,{x:a,y:u,height:l,upperWidth:d,lowerWidth:f}=Xw(t),p=a,m=a+(d-f)/2,h=(p+m)/2,y=(d+f)/2,w=p+d/2,_=l>=0?1:-1,x=_*n,$=_>0?"end":"start",E=_>0?"start":"end",A=d>=0?1:-1,I=A*n,j=A>0?"end":"start",z=A>0?"start":"end",N=i;if(r==="top"){var M={x:p+d/2,y:u-x,horizontalAnchor:"middle",verticalAnchor:$};return N&&(M.height=Math.max(u-N.y,0),M.width=d),M}if(r==="bottom"){var K={x:m+f/2,y:u+l+x,horizontalAnchor:"middle",verticalAnchor:E};return N&&(K.height=Math.max(N.y+N.height-(u+l),0),K.width=f),K}if(r==="left"){var se={x:h-I,y:u+l/2,horizontalAnchor:j,verticalAnchor:"middle"};return N&&(se.width=Math.max(se.x-N.x,0),se.height=l),se}if(r==="right"){var ae={x:h+y+I,y:u+l/2,horizontalAnchor:z,verticalAnchor:"middle"};return N&&(ae.width=Math.max(N.x+N.width-ae.x,0),ae.height=l),ae}var W=N?{width:y,height:l}:{};return r==="insideLeft"?Bn({x:h+I,y:u+l/2,horizontalAnchor:z,verticalAnchor:"middle"},W):r==="insideRight"?Bn({x:h+y-I,y:u+l/2,horizontalAnchor:j,verticalAnchor:"middle"},W):r==="insideTop"?Bn({x:p+d/2,y:u+x,horizontalAnchor:"middle",verticalAnchor:E},W):r==="insideBottom"?Bn({x:m+f/2,y:u+l-x,horizontalAnchor:"middle",verticalAnchor:$},W):r==="insideTopLeft"?Bn({x:p+I,y:u+x,horizontalAnchor:z,verticalAnchor:E},W):r==="insideTopRight"?Bn({x:p+d-I,y:u+x,horizontalAnchor:j,verticalAnchor:E},W):r==="insideBottomLeft"?Bn({x:m+I,y:u+l-x,horizontalAnchor:z,verticalAnchor:$},W):r==="insideBottomRight"?Bn({x:m+f-I,y:u+l-x,horizontalAnchor:j,verticalAnchor:$},W):r&&typeof r=="object"&&(be(r.x)||eo(r.x))&&(be(r.y)||eo(r.y))?Bn({x:a+fa(r.x,y),y:u+fa(r.y,l),horizontalAnchor:"end",verticalAnchor:"end"},W):Bn({x:w,y:u+l/2,horizontalAnchor:"middle",verticalAnchor:"middle"},W)},_ie=["labelRef"],xie=["content"];function GO(e,t){if(e==null)return{};var r,n,i=kie(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function kie(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function JO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(r),!0).forEach(function(n){Sie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sie(e,t,r){return(t=$ie(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $ie(e){var t=Iie(e,"string");return typeof t=="symbol"?t:t+""}function Iie(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},di.apply(null,arguments)}var j6=k.createContext(null),Pie=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:u,children:l}=e,d=k.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:u}),[t,r,n,i,a,u]);return k.createElement(j6.Provider,{value:d},l)},C6=()=>{var e=k.useContext(j6),t=sm();return e||(t?Xw(t):void 0)},Oie=k.createContext(null),Eie=()=>{var e=k.useContext(Oie),t=Ae(lM);return e||t},zie=e=>{var{value:t,formatter:r}=e,n=_r(e.children)?t:e.children;return typeof r=="function"?r(n):n},tx=e=>e!=null&&typeof e=="function",Aie=(e,t)=>{var r=cn(t-e),n=Math.min(Math.abs(t-e),360);return r*n},jie=(e,t,r,n,i)=>{var{offset:a,className:u}=e,{cx:l,cy:d,innerRadius:f,outerRadius:p,startAngle:m,endAngle:h,clockWise:y}=i,w=(f+p)/2,_=Aie(m,h),x=_>=0?1:-1,$,E;switch(t){case"insideStart":$=m+x*a,E=y;break;case"insideEnd":$=h-x*a,E=!y;break;case"end":$=h+x*a,E=y;break;default:throw new Error("Unsupported position ".concat(t))}E=_<=0?E:!E;var A=or(l,d,w,$),I=or(l,d,w,$+(E?1:-1)*359),j="M".concat(A.x,",").concat(A.y,`
|
|
196
|
+
A`).concat(w,",").concat(w,",0,1,").concat(E?0:1,`,
|
|
197
|
+
`).concat(I.x,",").concat(I.y),z=_r(e.id)?Ds("recharts-radial-line-"):e.id;return k.createElement("text",di({},n,{dominantBaseline:"central",className:at("recharts-radial-bar-label",u)}),k.createElement("defs",null,k.createElement("path",{id:z,d:j})),k.createElement("textPath",{xlinkHref:"#".concat(z)},r))},Cie=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:u,startAngle:l,endAngle:d}=e,f=(l+d)/2;if(r==="outside"){var{x:p,y:m}=or(n,i,u+t,f);return{x:p,y:m,textAnchor:p>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var h=(a+u)/2,{x:y,y:w}=or(n,i,h,f);return{x:y,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Dd=e=>e!=null&&"cx"in e&&be(e.cx),Tie={angle:0,offset:5,zIndex:Ir.label,position:"middle",textBreakAll:!1};function Nie(e){if(!Dd(e))return e;var{cx:t,cy:r,outerRadius:n}=e,i=n*2;return{x:t-n,y:r-n,width:i,upperWidth:i,lowerWidth:i,height:i}}function ra(e){var t=en(e,Tie),{viewBox:r,parentViewBox:n,position:i,value:a,children:u,content:l,className:d="",textBreakAll:f,labelRef:p}=t,m=Eie(),h=C6(),y=i==="center"?h:m??h,w,_,x;r==null?w=y:Dd(r)?w=r:w=Xw(r);var $=Nie(w);if(!w||_r(a)&&_r(u)&&!k.isValidElement(l)&&typeof l!="function")return null;var E=$s($s({},t),{},{viewBox:w});if(k.isValidElement(l)){var{labelRef:A}=E,I=GO(E,_ie);return k.cloneElement(l,I)}if(typeof l=="function"){var{content:j}=E,z=GO(E,xie);if(_=k.createElement(l,z),k.isValidElement(_))return _}else _=zie(t);var N=mn(t);if(Dd(w)){if(i==="insideStart"||i==="insideEnd"||i==="end")return jie(t,i,_,N,w);x=Cie(w,t.offset,t.position)}else{if(!$)return null;var M=wie({viewBox:$,position:i,offset:t.offset,parentViewBox:Dd(n)?void 0:n});x=$s($s({x:M.x,y:M.y,textAnchor:M.horizontalAnchor,verticalAnchor:M.verticalAnchor},M.width!==void 0?{width:M.width}:{}),M.height!==void 0?{height:M.height}:{})}return k.createElement(Ci,{zIndex:t.zIndex},k.createElement(ex,di({ref:p,className:at("recharts-label",d)},N,x,{textAnchor:fie(N.textAnchor)?N.textAnchor:x.textAnchor,breakAll:f}),_))}ra.displayName="Label";var Die=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?k.createElement(ra,di({key:"label-implicit"},n)):Yn(e)?k.createElement(ra,di({key:"label-implicit",value:e},n)):k.isValidElement(e)?e.type===ra?k.cloneElement(e,$s({key:"label-implicit"},n)):k.createElement(ra,di({key:"label-implicit",content:e},n)):tx(e)?k.createElement(ra,di({key:"label-implicit",content:e},n)):e&&typeof e=="object"?k.createElement(ra,di({},e,{key:"label-implicit"},n)):null};function Mie(e){var{label:t,labelRef:r}=e,n=C6();return Die(t,n,r)||null}var Kg={},Hg={},YO;function Rie(){return YO||(YO=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(Hg)),Hg}var Gg={},XO;function Uie(){return XO||(XO=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(Gg)),Gg}var QO;function Lie(){return QO||(QO=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Rie(),r=Uie(),n=Fw();function i(a){if(n.isArrayLike(a))return t.last(r.toArray(a))}e.last=i})(Kg)),Kg}var Jg,eE;function Zie(){return eE||(eE=1,Jg=Lie().last),Jg}var Fie=Zie();const Bie=pa(Fie);var qie=["valueAccessor"],Wie=["dataKey","clockWise","id","textBreakAll","zIndex"];function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rf.apply(null,arguments)}function tE(e,t){if(e==null)return{};var r,n,i=Vie(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Vie(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Kie=e=>Array.isArray(e.value)?Bie(e.value):e.value,T6=k.createContext(void 0),Hie=T6.Provider,N6=k.createContext(void 0);N6.Provider;function Gie(){return k.useContext(T6)}function Jie(){return k.useContext(N6)}function Md(e){var{valueAccessor:t=Kie}=e,r=tE(e,qie),{dataKey:n,clockWise:i,id:a,textBreakAll:u,zIndex:l}=r,d=tE(r,Wie),f=Gie(),p=Jie(),m=f||p;return!m||!m.length?null:k.createElement(Ci,{zIndex:l??Ir.label},k.createElement(Gn,{className:"recharts-label-list"},m.map((h,y)=>{var w,_=_r(n)?t(h,y):ur(h.payload,n),x=_r(a)?{}:{id:"".concat(a,"-").concat(y)};return k.createElement(ra,Rf({key:"label-".concat(y)},mn(h),d,x,{fill:(w=r.fill)!==null&&w!==void 0?w:h.fill,parentViewBox:h.parentViewBox,value:_,textBreakAll:u,viewBox:h.viewBox,index:y,zIndex:0}))})))}Md.displayName="LabelList";function Yie(e){var{label:t}=e;return t?t===!0?k.createElement(Md,{key:"labelList-implicit"}):k.isValidElement(t)||tx(t)?k.createElement(Md,{key:"labelList-implicit",content:t}):typeof t=="object"?k.createElement(Md,Rf({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function rb(){return rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rb.apply(null,arguments)}var D6=e=>{var{cx:t,cy:r,r:n,className:i}=e,a=at("recharts-dot",i);return be(t)&&be(r)&&be(n)?k.createElement("circle",rb({},Tn(e),Zw(e),{className:a,cx:t,cy:r,r:n})):null},Xie={radiusAxis:{},angleAxis:{}},M6=Lr({name:"polarAxis",initialState:Xie,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:rle,removeRadiusAxis:nle,addAngleAxis:ile,removeAngleAxis:ale}=M6.actions,Qie=M6.reducer;function eae(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var R6=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0;function tae(e){var{tooltipEntrySettings:t}=e,r=Gt(),n=Zr(),i=k.useRef(null);return k.useLayoutEffect(()=>{n||(i.current===null?r(Ate(t)):i.current!==t&&r(jte({prev:i.current,next:t})),i.current=t)},[t,r,n]),k.useLayoutEffect(()=>()=>{i.current&&(r(Cte(i.current)),i.current=null)},[r]),null}function rae(e){var{legendPayload:t}=e,r=Gt(),n=Zr(),i=k.useRef(null);return k.useLayoutEffect(()=>{n||(i.current===null?r(oJ(t)):i.current!==t&&r(uJ({prev:i.current,next:t})),i.current=t)},[r,n,t]),k.useLayoutEffect(()=>()=>{i.current&&(r(sJ(i.current)),i.current=null)},[r]),null}var Yg,nae=()=>{var[e]=k.useState(()=>Ds("uid-"));return e},iae=(Yg=wL.useId)!==null&&Yg!==void 0?Yg:nae;function aae(e,t){var r=iae();return t||(e?"".concat(e,"-").concat(r):r)}var oae=k.createContext(void 0),uae=e=>{var{id:t,type:r,children:n}=e,i=aae("recharts-".concat(r),t);return k.createElement(oae.Provider,{value:i},n(i))},sae={cartesianItems:[],polarItems:[]},U6=Lr({name:"graphicalItems",initialState:sae,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:ht()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Cn(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:ht()},removeCartesianGraphicalItem:{reducer(e,t){var r=Cn(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:ht()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:ht()},removePolarGraphicalItem:{reducer(e,t){var r=Cn(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:ht()}}}),{addCartesianGraphicalItem:lae,replaceCartesianGraphicalItem:cae,removeCartesianGraphicalItem:dae,addPolarGraphicalItem:ole,removePolarGraphicalItem:ule}=U6.actions,fae=U6.reducer,pae=e=>{var t=Gt(),r=k.useRef(null);return k.useLayoutEffect(()=>{r.current===null?t(lae(e)):r.current!==e&&t(cae({prev:r.current,next:e})),r.current=e},[t,e]),k.useLayoutEffect(()=>()=>{r.current&&(t(dae(r.current)),r.current=null)},[t]),null},mae=k.memo(pae),vae=["points"];function rE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rE(Object(r),!0).forEach(function(n){hae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hae(e,t,r){return(t=gae(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gae(e){var t=yae(e,"string");return typeof t=="symbol"?t:t+""}function yae(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uf(){return Uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uf.apply(null,arguments)}function bae(e,t){if(e==null)return{};var r,n,i=wae(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function wae(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function _ae(e){var{option:t,dotProps:r,className:n}=e;if(k.isValidElement(t))return k.cloneElement(t,r);if(typeof t=="function")return t(r);var i=at(n,typeof t!="boolean"?t.className:""),a=r??{},{points:u}=a,l=bae(a,vae);return k.createElement(D6,Uf({},l,{className:i}))}function xae(e,t){return e==null?!1:t?!0:e.length===1}function kae(e){var{points:t,dot:r,className:n,dotClassName:i,dataKey:a,baseProps:u,needClip:l,clipPathId:d,zIndex:f=Ir.scatter}=e;if(!xae(t,r))return null;var p=R6(r),m=bK(r),h=t.map((w,_)=>{var x,$,E=Xg(Xg(Xg({r:3},u),m),{},{index:_,cx:(x=w.x)!==null&&x!==void 0?x:void 0,cy:($=w.y)!==null&&$!==void 0?$:void 0,dataKey:a,value:w.value,payload:w.payload,points:t});return k.createElement(_ae,{key:"dot-".concat(_),option:r,dotProps:E,className:i})}),y={};return l&&d!=null&&(y.clipPath="url(#clipPath-".concat(p?"":"dots-").concat(d,")")),k.createElement(Ci,{zIndex:f},k.createElement(Gn,Uf({className:n},y),h))}function nE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nE(Object(r),!0).forEach(function(n){Sae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sae(e,t,r){return(t=$ae(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $ae(e){var t=Iae(e,"string");return typeof t=="symbol"?t:t+""}function Iae(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var L6=0,Pae={xAxis:{},yAxis:{},zAxis:{}},Z6=Lr({name:"cartesianAxis",initialState:Pae,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:ht()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.xAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:ht()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:ht()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:ht()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.yAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:ht()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:ht()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:ht()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.zAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:ht()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:ht()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,i=e.yAxis[r];if(i){var a,u=i.widthHistory||[];if(u.length===3&&u[0]===u[2]&&n===u[1]&&n!==i.width&&Math.abs(n-((a=u[0])!==null&&a!==void 0?a:0))<=1)return;var l=[...u,n].slice(-3);e.yAxis[r]=iE(iE({},i),{},{width:n,widthHistory:l})}}}}),{addXAxis:Oae,replaceXAxis:Eae,removeXAxis:zae,addYAxis:Aae,replaceYAxis:jae,removeYAxis:Cae,addZAxis:sle,replaceZAxis:lle,removeZAxis:cle,updateYAxisWidth:Tae}=Z6.actions,Nae=Z6.reducer,Dae=q([cr],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),Mae=q([Dae,Ii,Pi],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),rx=()=>Ae(Mae),Rae=()=>Ae($re);function aE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aE(Object(r),!0).forEach(function(n){Uae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uae(e,t,r){return(t=Lae(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lae(e){var t=Zae(e,"string");return typeof t=="symbol"?t:t+""}function Zae(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fae=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:i,dataKey:a,clipPath:u}=e;if(i===!1||t.x==null||t.y==null)return null;var l={index:r,dataKey:a,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},d=Qg(Qg(Qg({},l),qp(i)),Zw(i)),f;return k.isValidElement(i)?f=k.cloneElement(i,d):typeof i=="function"?f=i(d):f=k.createElement(D6,d),k.createElement(Gn,{className:"recharts-active-dot",clipPath:u},f)};function oE(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i,clipPath:a,zIndex:u=Ir.activeDot}=e,l=Ae(Gs),d=Rae();if(t==null||d==null)return null;var f=t.find(p=>d.includes(p.payload));return _r(f)?null:k.createElement(Ci,{zIndex:u},k.createElement(Fae,{point:f,childIndex:Number(l),mainColor:r,dataKey:i,activeDot:n,clipPath:a}))}var Bae=e=>{var{chartData:t}=e,r=Gt(),n=Zr();return k.useEffect(()=>n?()=>{}:(r(CO(t)),()=>{r(CO(void 0))}),[t,r,n]),null},uE={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},F6=Lr({name:"brush",initialState:uE,reducers:{setBrushSettings(e,t){return t.payload==null?uE:t.payload}}}),{setBrushSettings:dle}=F6.actions,qae=F6.reducer;function Wae(e){return(e%180+180)%180}var Vae=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Wae(i),u=a*Math.PI/180,l=Math.atan(n/r),d=u>l&&u<Math.PI-l?n/Math.sin(u):r/Math.cos(u);return Math.abs(d)},Kae={dots:[],areas:[],lines:[]},B6=Lr({name:"referenceElements",initialState:Kae,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Cn(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Cn(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Cn(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:fle,removeDot:ple,addArea:mle,removeArea:vle,addLine:hle,removeLine:gle}=B6.actions,Hae=B6.reducer,Gae=k.createContext(void 0),Jae=e=>{var{children:t}=e,[r]=k.useState("".concat(Ds("recharts"),"-clip")),n=rx();if(n==null)return null;var{x:i,y:a,width:u,height:l}=n;return k.createElement(Gae.Provider,{value:r},k.createElement("defs",null,k.createElement("clipPath",{id:r},k.createElement("rect",{x:i,y:a,height:l,width:u}))),t)};function q6(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],n=0;n<e.length;n+=t){var i=e[n];i!==void 0&&r.push(i)}return r}function Yae(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Vae(n,r)}function Xae(e,t,r){var n=r==="width",{x:i,y:a,width:u,height:l}=e;return t===1?{start:n?i:a,end:n?i+u:a+l}:{start:n?i+u:a+l,end:n?i:a}}function Ys(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function Qae(e,t){return q6(e,t+1)}function eoe(e,t,r,n,i){for(var a=(n||[]).slice(),{start:u,end:l}=t,d=0,f=1,p=u,m=function(){var w=n==null?void 0:n[d];if(w===void 0)return{v:q6(n,f)};var _=d,x,$=()=>(x===void 0&&(x=r(w,_)),x),E=w.coordinate,A=d===0||Ys(e,E,$,p,l);A||(d=0,p=u,f+=1),A&&(p=E+e*($()/2+i),d+=f)},h;f<=a.length;)if(h=m(),h)return h.v;return[]}function toe(e,t,r,n,i){var a=(n||[]).slice(),u=a.length;if(u===0)return[];for(var{start:l,end:d}=t,f=1;f<=u;f++){for(var p=(u-1)%f,m=l,h=!0,y=function(){var I=n[_];if(I==null)return 0;var j=_,z,N=()=>(z===void 0&&(z=r(I,j)),z),M=I.coordinate,K=_===p||Ys(e,M,N,m,d);if(!K)return h=!1,1;K&&(m=M+e*(N()/2+i))},w,_=p;_<u&&(w=y(),!(w!==0&&w===1));_+=f);if(h){for(var x=[],$=p;$<u;$+=f){var E=n[$];E!=null&&x.push(E)}return x}}return[]}function sE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sE(Object(r),!0).forEach(function(n){roe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function roe(e,t,r){return(t=noe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function noe(e){var t=ioe(e,"string");return typeof t=="symbol"?t:t+""}function ioe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aoe(e,t,r,n,i){for(var a=(n||[]).slice(),u=a.length,{start:l}=t,{end:d}=t,f=function(h){var y=a[h];if(y==null)return 1;var w=y,_,x=()=>(_===void 0&&(_=r(y,h)),_);if(h===u-1){var $=e*(w.coordinate+e*x()/2-d);a[h]=w=yr(yr({},w),{},{tickCoord:$>0?w.coordinate-$*e:w.coordinate})}else a[h]=w=yr(yr({},w),{},{tickCoord:w.coordinate});if(w.tickCoord!=null){var E=Ys(e,w.tickCoord,x,l,d);E&&(d=w.tickCoord-e*(x()/2+i),a[h]=yr(yr({},w),{},{isShow:!0}))}},p=u-1;p>=0;p--)f(p);return a}function ooe(e,t,r,n,i,a){var u=(n||[]).slice(),l=u.length,{start:d,end:f}=t;if(a){var p=n[l-1];if(p!=null){var m=r(p,l-1),h=e*(p.coordinate+e*m/2-f);if(u[l-1]=p=yr(yr({},p),{},{tickCoord:h>0?p.coordinate-h*e:p.coordinate}),p.tickCoord!=null){var y=Ys(e,p.tickCoord,()=>m,d,f);y&&(f=p.tickCoord-e*(m/2+i),u[l-1]=yr(yr({},p),{},{isShow:!0}))}}}for(var w=a?l-1:l,_=function(E){var A=u[E];if(A==null)return 1;var I=A,j,z=()=>(j===void 0&&(j=r(A,E)),j);if(E===0){var N=e*(I.coordinate-e*z()/2-d);u[E]=I=yr(yr({},I),{},{tickCoord:N<0?I.coordinate-N*e:I.coordinate})}else u[E]=I=yr(yr({},I),{},{tickCoord:I.coordinate});if(I.tickCoord!=null){var M=Ys(e,I.tickCoord,z,d,f);M&&(d=I.tickCoord+e*(z()/2+i),u[E]=yr(yr({},I),{},{isShow:!0}))}},x=0;x<w;x++)_(x);return u}function nx(e,t,r){var{tick:n,ticks:i,viewBox:a,minTickGap:u,orientation:l,interval:d,tickFormatter:f,unit:p,angle:m}=e;if(!i||!i.length||!n)return[];if(be(d)||Rl.isSsr){var h;return(h=Qae(i,be(d)?d:0))!==null&&h!==void 0?h:[]}var y=[],w=l==="top"||l==="bottom"?"width":"height",_=p&&w==="width"?Ps(p,{fontSize:t,letterSpacing:r}):{width:0,height:0},x=(j,z)=>{var N=typeof f=="function"?f(j.value,z):j.value;return w==="width"?Yae(Ps(N,{fontSize:t,letterSpacing:r}),_,m):Ps(N,{fontSize:t,letterSpacing:r})[w]},$=i[0],E=i[1],A=i.length>=2&&$!=null&&E!=null?cn(E.coordinate-$.coordinate):1,I=Xae(a,A,w);return d==="equidistantPreserveStart"?eoe(A,I,x,i,u):d==="equidistantPreserveEnd"?toe(A,I,x,i,u):(d==="preserveStart"||d==="preserveStartEnd"?y=ooe(A,I,x,i,u,d==="preserveStartEnd"):y=aoe(A,I,x,i,u),y.filter(j=>j.isShow))}var uoe=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,u=0;if(t){Array.from(t).forEach(p=>{if(p){var m=p.getBoundingClientRect();m.width>u&&(u=m.width)}});var l=r?r.getBoundingClientRect().width:0,d=i+a,f=u+d+l+(r?n:0);return Math.round(f)}return 0},soe=["axisLine","width","height","className","hide","ticks","axisType"];function loe(e,t){if(e==null)return{};var r,n,i=coe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function coe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ao(){return ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ao.apply(null,arguments)}function lE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lE(Object(r),!0).forEach(function(n){doe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function doe(e,t,r){return(t=foe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function foe(e){var t=poe(e,"string");return typeof t=="symbol"?t:t+""}function poe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vi={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",zIndex:Ir.axis};function moe(e){var{x:t,y:r,width:n,height:i,orientation:a,mirror:u,axisLine:l,otherSvgProps:d}=e;if(!l)return null;var f=zt(zt(zt({},d),Tn(l)),{},{fill:"none"});if(a==="top"||a==="bottom"){var p=+(a==="top"&&!u||a==="bottom"&&u);f=zt(zt({},f),{},{x1:t,y1:r+p*i,x2:t+n,y2:r+p*i})}else{var m=+(a==="left"&&!u||a==="right"&&u);f=zt(zt({},f),{},{x1:t+m*n,y1:r,x2:t+m*n,y2:r+i})}return k.createElement("line",ao({},f,{className:at("recharts-cartesian-axis-line",Kp(l,"className"))}))}function voe(e,t,r,n,i,a,u,l,d){var f,p,m,h,y,w,_=l?-1:1,x=e.tickSize||u,$=be(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":f=p=e.coordinate,h=r+ +!l*i,m=h-_*x,w=m-_*d,y=$;break;case"left":m=h=e.coordinate,p=t+ +!l*n,f=p-_*x,y=f-_*d,w=$;break;case"right":m=h=e.coordinate,p=t+ +l*n,f=p+_*x,y=f+_*d,w=$;break;default:f=p=e.coordinate,h=r+ +l*i,m=h+_*x,w=m+_*d,y=$;break}return{line:{x1:f,y1:m,x2:p,y2:h},tick:{x:y,y:w}}}function hoe(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function goe(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function yoe(e){var{option:t,tickProps:r,value:n}=e,i,a=at(r.className,"recharts-cartesian-axis-tick-value");if(k.isValidElement(t))i=k.cloneElement(t,zt(zt({},r),{},{className:a}));else if(typeof t=="function")i=t(zt(zt({},r),{},{className:a}));else{var u="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(u=at(u,eae(t))),i=k.createElement(ex,ao({},r,{className:u}),n)}return i}var boe=k.forwardRef((e,t)=>{var{ticks:r=[],tick:n,tickLine:i,stroke:a,tickFormatter:u,unit:l,padding:d,tickTextProps:f,orientation:p,mirror:m,x:h,y,width:w,height:_,tickSize:x,tickMargin:$,fontSize:E,letterSpacing:A,getTicksConfig:I,events:j,axisType:z}=e,N=nx(zt(zt({},I),{},{ticks:r}),E,A),M=hoe(p,m),K=goe(p,m),se=Tn(I),ae=qp(n),W={};typeof i=="object"&&(W=i);var _e=zt(zt({},se),{},{fill:"none"},W),xe=N.map(ge=>zt({entry:ge},voe(ge,h,y,w,_,p,x,m,$))),Ce=xe.map(ge=>{var{entry:X,line:oe}=ge;return k.createElement(Gn,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(X.value,"-").concat(X.coordinate,"-").concat(X.tickCoord)},i&&k.createElement("line",ao({},_e,oe,{className:at("recharts-cartesian-axis-tick-line",Kp(i,"className"))})))}),Te=xe.map((ge,X)=>{var oe,B,{entry:D,tick:G}=ge,Ie=zt(zt(zt(zt({verticalAnchor:K},se),{},{textAnchor:M,stroke:"none",fill:a},G),{},{index:X,payload:D,visibleTicksCount:N.length,tickFormatter:u,padding:d},f),{},{angle:(oe=(B=f==null?void 0:f.angle)!==null&&B!==void 0?B:se.angle)!==null&&oe!==void 0?oe:0}),Se=zt(zt({},Ie),ae);return k.createElement(Gn,ao({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(D.value,"-").concat(D.coordinate,"-").concat(D.tickCoord)},tH(j,D,X)),n&&k.createElement(yoe,{option:n,tickProps:Se,value:"".concat(typeof u=="function"?u(D.value,X):D.value).concat(l||"")}))});return k.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(z,"-ticks")},Te.length>0&&k.createElement(Ci,{zIndex:Ir.label},k.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(z,"-tick-labels"),ref:t},Te)),Ce.length>0&&k.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(z,"-tick-lines")},Ce))}),woe=k.forwardRef((e,t)=>{var{axisLine:r,width:n,height:i,className:a,hide:u,ticks:l,axisType:d}=e,f=loe(e,soe),[p,m]=k.useState(""),[h,y]=k.useState(""),w=k.useRef(null);k.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var x;return uoe({ticks:w.current,label:(x=e.labelRef)===null||x===void 0?void 0:x.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var _=k.useCallback(x=>{if(x){var $=x.getElementsByClassName("recharts-cartesian-axis-tick-value");w.current=$;var E=$[0];if(E){var A=window.getComputedStyle(E),I=A.fontSize,j=A.letterSpacing;(I!==p||j!==h)&&(m(I),y(j))}}},[p,h]);return u||n!=null&&n<=0||i!=null&&i<=0?null:k.createElement(Ci,{zIndex:e.zIndex},k.createElement(Gn,{className:at("recharts-cartesian-axis",a)},k.createElement(moe,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Tn(e)}),k.createElement(boe,{ref:_,axisType:d,events:f,fontSize:p,getTicksConfig:e,height:e.height,letterSpacing:h,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:l,unit:e.unit,width:e.width,x:e.x,y:e.y}),k.createElement(Pie,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},k.createElement(Mie,{label:e.label,labelRef:e.labelRef}),e.children)))}),ix=k.forwardRef((e,t)=>{var r=en(e,vi);return k.createElement(woe,ao({},r,{ref:t}))});ix.displayName="CartesianAxis";var _oe=["x1","y1","x2","y2","key"],xoe=["offset"],koe=["xAxisId","yAxisId"],Soe=["xAxisId","yAxisId"];function cE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function br(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cE(Object(r),!0).forEach(function(n){$oe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $oe(e,t,r){return(t=Ioe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ioe(e){var t=Poe(e,"string");return typeof t=="symbol"?t:t+""}function Poe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qa.apply(null,arguments)}function Lf(e,t){if(e==null)return{};var r,n,i=Ooe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ooe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Eoe=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:i,width:a,height:u,ry:l}=e;return k.createElement("rect",{x:n,y:i,ry:l,width:a,height:u,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function W6(e){var{option:t,lineItemProps:r}=e,n;if(k.isValidElement(t))n=k.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var i,{x1:a,y1:u,x2:l,y2:d,key:f}=r,p=Lf(r,_oe),m=(i=Tn(p))!==null&&i!==void 0?i:{},{offset:h}=m,y=Lf(m,xoe);n=k.createElement("line",qa({},y,{x1:a,y1:u,x2:l,y2:d,fill:"none",key:f}))}return n}function zoe(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:u}=e,l=Lf(e,koe),d=i.map((f,p)=>{var m=br(br({},l),{},{x1:t,y1:f,x2:t+r,y2:f,key:"line-".concat(p),index:p});return k.createElement(W6,{key:"line-".concat(p),option:n,lineItemProps:m})});return k.createElement("g",{className:"recharts-cartesian-grid-horizontal"},d)}function Aoe(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:u}=e,l=Lf(e,Soe),d=i.map((f,p)=>{var m=br(br({},l),{},{x1:f,y1:t,x2:f,y2:t+r,key:"line-".concat(p),index:p});return k.createElement(W6,{option:n,lineItemProps:m,key:"line-".concat(p)})});return k.createElement("g",{className:"recharts-cartesian-grid-vertical"},d)}function joe(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:u,horizontalPoints:l,horizontal:d=!0}=e;if(!d||!t||!t.length||l==null)return null;var f=l.map(m=>Math.round(m+i-i)).sort((m,h)=>m-h);i!==f[0]&&f.unshift(0);var p=f.map((m,h)=>{var y=f[h+1],w=y==null,_=w?i+u-m:y-m;if(_<=0)return null;var x=h%t.length;return k.createElement("rect",{key:"react-".concat(h),y:m,x:n,height:_,width:a,stroke:"none",fill:t[x],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return k.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function Coe(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:u,height:l,verticalPoints:d}=e;if(!t||!r||!r.length)return null;var f=d.map(m=>Math.round(m+i-i)).sort((m,h)=>m-h);i!==f[0]&&f.unshift(0);var p=f.map((m,h)=>{var y=f[h+1],w=y==null,_=w?i+u-m:y-m;if(_<=0)return null;var x=h%r.length;return k.createElement("rect",{key:"react-".concat(h),x:m,y:a,width:_,height:l,stroke:"none",fill:r[x],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return k.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var Toe=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return M4(nx(br(br(br({},vi),r),{},{ticks:R4(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},Noe=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return M4(nx(br(br(br({},vi),r),{},{ticks:R4(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},Doe={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Ir.grid};function V6(e){var t=V4(),r=K4(),n=W4(),i=br(br({},en(e,Doe)),{},{x:be(e.x)?e.x:n.left,y:be(e.y)?e.y:n.top,width:be(e.width)?e.width:n.width,height:be(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:u,x:l,y:d,width:f,height:p,syncWithTicks:m,horizontalValues:h,verticalValues:y}=i,w=Zr(),_=Ae(K=>_O(K,"xAxis",a,w)),x=Ae(K=>_O(K,"yAxis",u,w));if(!Xn(f)||!Xn(p)||!be(l)||!be(d))return null;var $=i.verticalCoordinatesGenerator||Toe,E=i.horizontalCoordinatesGenerator||Noe,{horizontalPoints:A,verticalPoints:I}=i;if((!A||!A.length)&&typeof E=="function"){var j=h&&h.length,z=E({yAxis:x?br(br({},x),{},{ticks:j?h:x.ticks}):void 0,width:t??f,height:r??p,offset:n},j?!0:m);mf(Array.isArray(z),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof z,"]")),Array.isArray(z)&&(A=z)}if((!I||!I.length)&&typeof $=="function"){var N=y&&y.length,M=$({xAxis:_?br(br({},_),{},{ticks:N?y:_.ticks}):void 0,width:t??f,height:r??p,offset:n},N?!0:m);mf(Array.isArray(M),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof M,"]")),Array.isArray(M)&&(I=M)}return k.createElement(Ci,{zIndex:i.zIndex},k.createElement("g",{className:"recharts-cartesian-grid"},k.createElement(Eoe,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),k.createElement(joe,qa({},i,{horizontalPoints:A})),k.createElement(Coe,qa({},i,{verticalPoints:I})),k.createElement(zoe,qa({},i,{offset:n,horizontalPoints:A,xAxis:_,yAxis:x})),k.createElement(Aoe,qa({},i,{offset:n,verticalPoints:I,xAxis:_,yAxis:x}))))}V6.displayName="CartesianGrid";var Moe={},K6=Lr({name:"errorBars",initialState:Moe,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(a=>a.dataKey===n.dataKey&&a.direction===n.direction?i:a))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),{addErrorBar:yle,replaceErrorBar:ble,removeErrorBar:wle}=K6.actions,Roe=K6.reducer;function H6(e,t){var r,n,i=Ae(f=>zi(f,e)),a=Ae(f=>Ai(f,t)),u=(r=i==null?void 0:i.allowDataOverflow)!==null&&r!==void 0?r:Vt.allowDataOverflow,l=(n=a==null?void 0:a.allowDataOverflow)!==null&&n!==void 0?n:Kt.allowDataOverflow,d=u||l;return{needClip:d,needClipX:u,needClipY:l}}function Uoe(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=rx(),{needClipX:a,needClipY:u,needClip:l}=H6(t,r);if(!l||!i)return null;var{x:d,y:f,width:p,height:m}=i;return k.createElement("clipPath",{id:"clipPath-".concat(n)},k.createElement("rect",{x:a?d:d-p/2,y:u?f:f-m/2,width:a?p:p*2,height:u?m:m*2}))}function Loe(e){var t=qp(e),r=3,n=2;if(t!=null){var{r:i,strokeWidth:a}=t,u=Number(i),l=Number(a);return(Number.isNaN(u)||u<0)&&(u=r),(Number.isNaN(l)||l<0)&&(l=n),{r:u,strokeWidth:l}}return{r,strokeWidth:n}}var ey={exports:{}},ty={};/**
|
|
198
|
+
* @license React
|
|
199
|
+
* use-sync-external-store-with-selector.production.js
|
|
200
|
+
*
|
|
201
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the MIT license found in the
|
|
204
|
+
* LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/var dE;function Zoe(){if(dE)return ty;dE=1;var e=lu();function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,u=e.useMemo,l=e.useDebugValue;return ty.useSyncExternalStoreWithSelector=function(d,f,p,m,h){var y=i(null);if(y.current===null){var w={hasValue:!1,value:null};y.current=w}else w=y.current;y=u(function(){function x(j){if(!$){if($=!0,E=j,j=m(j),h!==void 0&&w.hasValue){var z=w.value;if(h(z,j))return A=z}return A=j}if(z=A,r(E,j))return z;var N=m(j);return h!==void 0&&h(z,N)?(E=j,z):(E=j,A=N)}var $=!1,E,A,I=p===void 0?null:p;return[function(){return x(f())},I===null?void 0:function(){return x(I())}]},[f,p,m,h]);var _=n(d,y[0],y[1]);return a(function(){w.hasValue=!0,w.value=_},[_]),l(_),_},ty}var fE;function Foe(){return fE||(fE=1,ey.exports=Zoe()),ey.exports}Foe();function Boe(e){e()}function qoe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Boe(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var pE={notify(){},get:()=>[]};function Woe(e,t){let r,n=pE,i=0,a=!1;function u(_){p();const x=n.subscribe(_);let $=!1;return()=>{$||($=!0,x(),m())}}function l(){n.notify()}function d(){w.onStateChange&&w.onStateChange()}function f(){return a}function p(){i++,r||(r=e.subscribe(d),n=qoe())}function m(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=pE)}function h(){a||(a=!0,p())}function y(){a&&(a=!1,m())}const w={addNestedSub:u,notifyNestedSubs:l,handleChangeWrapper:d,isSubscribed:f,trySubscribe:h,tryUnsubscribe:y,getListeners:()=>n};return w}var Voe=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Koe=Voe(),Hoe=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Goe=Hoe(),Joe=()=>Koe||Goe?k.useLayoutEffect:k.useEffect,Yoe=Joe();function mE(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Xoe(e,t){if(mE(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!mE(e[r[i]],t[r[i]]))return!1;return!0}var ry=Symbol.for("react-redux-context"),ny=typeof globalThis<"u"?globalThis:{};function Qoe(){if(!k.createContext)return{};const e=ny[ry]??(ny[ry]=new Map);let t=e.get(k.createContext);return t||(t=k.createContext(null),e.set(k.createContext,t)),t}var eue=Qoe();function tue(e){const{children:t,context:r,serverState:n,store:i}=e,a=k.useMemo(()=>{const d=Woe(i);return{store:i,subscription:d,getServerState:n?()=>n:void 0}},[i,n]),u=k.useMemo(()=>i.getState(),[i]);Yoe(()=>{const{subscription:d}=a;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),u!==i.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[a,u]);const l=r||eue;return k.createElement(l.Provider,{value:a},t)}var rue=tue,nue=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function iue(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function ax(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(nue.has(n)){if(e[n]==null&&t[n]==null)continue;if(!Xoe(e[n],t[n]))return!1}else if(!iue(e[n],t[n]))return!1;return!0}function ox(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||n===void 0?void 0:n.xAxisId)!==null&&r!==void 0?r:L6}function ux(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||n===void 0?void 0:n.yAxisId)!==null&&r!==void 0?r:L6}var G6=(e,t,r)=>HM(e,"xAxis",ox(e,t),r),J6=(e,t,r)=>KM(e,"xAxis",ox(e,t),r),Y6=(e,t,r)=>HM(e,"yAxis",ux(e,t),r),X6=(e,t,r)=>KM(e,"yAxis",ux(e,t),r),aue=q([wt,G6,Y6,J6,X6],(e,t,r,n,i)=>ei(e,"xAxis")?pf(t,n,!1):pf(r,i,!1)),oue=(e,t)=>t,Q6=q([vM,oue],(e,t)=>e.filter(r=>r.type==="area").find(r=>r.id===t)),eR=e=>{var t=wt(e),r=ei(t,"xAxis");return r?"yAxis":"xAxis"},uue=(e,t)=>{var r=eR(e);return r==="yAxis"?ux(e,t):ox(e,t)},sue=(e,t,r)=>SM(e,eR(e),uue(e,t),r),lue=q([Q6,sue],(e,t)=>{var r;if(!(e==null||t==null)){var{stackId:n}=e,i=C_(e);if(!(n==null||i==null)){var a=(r=t[n])===null||r===void 0?void 0:r.stackedData,u=a==null?void 0:a.find(l=>l.key===i);if(u!=null)return u.map(l=>[l[0],l[1]])}}}),cue=q([wt,G6,Y6,J6,X6,lue,lee,aue,Q6,yee],(e,t,r,n,i,a,u,l,d,f)=>{var{chartData:p,dataStartIndex:m,dataEndIndex:h}=u;if(!(d==null||e!=="horizontal"&&e!=="vertical"||t==null||r==null||n==null||i==null||n.length===0||i.length===0||l==null)){var{data:y}=d,w;if(y&&y.length>0?w=y:w=p==null?void 0:p.slice(m,h+1),w!=null)return Eue({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataStartIndex:m,areaSettings:d,stackedData:a,displayedData:w,chartBaseValue:f,bandSize:l})}}),due=["id"],fue=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function Ga(){return Ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ga.apply(null,arguments)}function tR(e,t){if(e==null)return{};var r,n,i=pue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function pue(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function vE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ko(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vE(Object(r),!0).forEach(function(n){mue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mue(e,t,r){return(t=vue(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vue(e){var t=hue(e,"string");return typeof t=="symbol"?t:t+""}function hue(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zf(e,t){return e&&e!=="none"?e:t}var gue=e=>{var{dataKey:t,name:r,stroke:n,fill:i,legendType:a,hide:u}=e;return[{inactive:u,dataKey:t,type:a,color:Zf(n,i),value:U4(r,t),payload:e}]},yue=k.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:u,hide:l,unit:d,tooltipType:f,id:p}=e,m={dataDefinedOnItem:r,getPosition:pu,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:U4(u,t),hide:l,type:f,color:Zf(n,a),unit:d,graphicalItemId:p}};return k.createElement(tae,{tooltipEntrySettings:m})});function bue(e){var{clipPathId:t,points:r,props:n}=e,{needClip:i,dot:a,dataKey:u}=n,l=Tn(n);return k.createElement(kae,{points:r,dot:a,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:u,baseProps:l,needClip:i,clipPathId:t})}function wue(e){var{showLabels:t,children:r,points:n}=e,i=n.map(a=>{var u,l,d={x:(u=a.x)!==null&&u!==void 0?u:0,y:(l=a.y)!==null&&l!==void 0?l:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Ko(Ko({},d),{},{value:a.value,payload:a.payload,parentViewBox:void 0,viewBox:d,fill:void 0})});return k.createElement(Hie,{value:t?i:void 0},r)}function hE(e){var{points:t,baseLine:r,needClip:n,clipPathId:i,props:a}=e,{layout:u,type:l,stroke:d,connectNulls:f,isRange:p}=a,{id:m}=a,h=tR(a,due),y=Tn(h),w=mn(h);return k.createElement(k.Fragment,null,(t==null?void 0:t.length)>1&&k.createElement(Gn,{clipPath:n?"url(#clipPath-".concat(i,")"):void 0},k.createElement(Td,Ga({},w,{id:m,points:t,connectNulls:f,type:l,baseLine:r,layout:u,stroke:"none",className:"recharts-area-area"})),d!=="none"&&k.createElement(Td,Ga({},y,{className:"recharts-area-curve",layout:u,type:l,connectNulls:f,fill:"none",points:t})),d!=="none"&&p&&k.createElement(Td,Ga({},y,{className:"recharts-area-curve",layout:u,type:l,connectNulls:f,fill:"none",points:r}))),k.createElement(bue,{points:t,props:h,clipPathId:i}))}function _ue(e){var t,r,{alpha:n,baseLine:i,points:a,strokeWidth:u}=e,l=(t=a[0])===null||t===void 0?void 0:t.y,d=(r=a[a.length-1])===null||r===void 0?void 0:r.y;if(!Ve(l)||!Ve(d))return null;var f=n*Math.abs(l-d),p=Math.max(...a.map(m=>m.x||0));return be(i)?p=Math.max(i,p):i&&Array.isArray(i)&&i.length&&(p=Math.max(...i.map(m=>m.x||0),p)),be(p)?k.createElement("rect",{x:0,y:l<d?l:l-f,width:p+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}function xue(e){var t,r,{alpha:n,baseLine:i,points:a,strokeWidth:u}=e,l=(t=a[0])===null||t===void 0?void 0:t.x,d=(r=a[a.length-1])===null||r===void 0?void 0:r.x;if(!Ve(l)||!Ve(d))return null;var f=n*Math.abs(l-d),p=Math.max(...a.map(m=>m.y||0));return be(i)?p=Math.max(i,p):i&&Array.isArray(i)&&i.length&&(p=Math.max(...i.map(m=>m.y||0),p)),be(p)?k.createElement("rect",{x:l<d?l:l-f,y:0,width:f,height:Math.floor(p+(u?parseInt("".concat(u),10):1))}):null}function kue(e){var{alpha:t,layout:r,points:n,baseLine:i,strokeWidth:a}=e;return r==="vertical"?k.createElement(_ue,{alpha:t,points:n,baseLine:i,strokeWidth:a}):k.createElement(xue,{alpha:t,points:n,baseLine:i,strokeWidth:a})}function Sue(e){var{needClip:t,clipPathId:r,props:n,previousPointsRef:i,previousBaselineRef:a}=e,{points:u,baseLine:l,isAnimationActive:d,animationBegin:f,animationDuration:p,animationEasing:m,onAnimationStart:h,onAnimationEnd:y}=n,w=k.useMemo(()=>({points:u,baseLine:l}),[u,l]),_=u2(w,"recharts-area-"),x=Qw(),[$,E]=k.useState(!1),A=!$,I=k.useCallback(()=>{typeof y=="function"&&y(),E(!1)},[y]),j=k.useCallback(()=>{typeof h=="function"&&h(),E(!0)},[h]);if(x==null)return null;var z=i.current,N=a.current;return k.createElement(wue,{showLabels:A,points:u},n.children,k.createElement(o2,{animationId:_,begin:f,duration:p,isActive:d,easing:m,onAnimationEnd:I,onAnimationStart:j,key:_},M=>{if(z){var K=z.length/u.length,se=M===1?u:u.map((W,_e)=>{var xe=Math.floor(_e*K);if(z[xe]){var Ce=z[xe];return Ko(Ko({},W),{},{x:qn(Ce.x,W.x,M),y:qn(Ce.y,W.y,M)})}return W}),ae;return be(l)?ae=qn(N,l,M):_r(l)||Jn(l)?ae=qn(N,0,M):ae=l.map((W,_e)=>{var xe=Math.floor(_e*K);if(Array.isArray(N)&&N[xe]){var Ce=N[xe];return Ko(Ko({},W),{},{x:qn(Ce.x,W.x,M),y:qn(Ce.y,W.y,M)})}return W}),M>0&&(i.current=se,a.current=ae),k.createElement(hE,{points:se,baseLine:ae,needClip:t,clipPathId:r,props:n})}return M>0&&(i.current=u,a.current=l),k.createElement(Gn,null,d&&k.createElement("defs",null,k.createElement("clipPath",{id:"animationClipPath-".concat(r)},k.createElement(kue,{alpha:M,points:u,baseLine:l,layout:x,strokeWidth:n.strokeWidth}))),k.createElement(Gn,{clipPath:"url(#animationClipPath-".concat(r,")")},k.createElement(hE,{points:u,baseLine:l,needClip:t,clipPathId:r,props:n})))}),k.createElement(Yie,{label:n.label}))}function $ue(e){var{needClip:t,clipPathId:r,props:n}=e,i=k.useRef(null),a=k.useRef();return k.createElement(Sue,{needClip:t,clipPathId:r,props:n,previousPointsRef:i,previousBaselineRef:a})}class Iue extends k.PureComponent{render(){var{hide:t,dot:r,points:n,className:i,top:a,left:u,needClip:l,xAxisId:d,yAxisId:f,width:p,height:m,id:h,baseLine:y,zIndex:w}=this.props;if(t)return null;var _=at("recharts-area",i),x=h,{r:$,strokeWidth:E}=Loe(r),A=R6(r),I=$*2+E,j=l?"url(#clipPath-".concat(A?"":"dots-").concat(x,")"):void 0;return k.createElement(Ci,{zIndex:w},k.createElement(Gn,{className:_},l&&k.createElement("defs",null,k.createElement(Uoe,{clipPathId:x,xAxisId:d,yAxisId:f}),!A&&k.createElement("clipPath",{id:"clipPath-dots-".concat(x)},k.createElement("rect",{x:u-I/2,y:a-I/2,width:p+I,height:m+I}))),k.createElement($ue,{needClip:l,clipPathId:x,props:this.props})),k.createElement(oE,{points:n,mainColor:Zf(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:j}),this.props.isRange&&Array.isArray(y)&&k.createElement(oE,{points:y,mainColor:Zf(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:j}))}}var rR={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:Ir.area};function Pue(e){var t,r=en(e,rR),{activeDot:n,animationBegin:i,animationDuration:a,animationEasing:u,connectNulls:l,dot:d,fill:f,fillOpacity:p,hide:m,isAnimationActive:h,legendType:y,stroke:w,xAxisId:_,yAxisId:x}=r,$=tR(r,fue),E=mu(),A=h6(),{needClip:I}=H6(_,x),j=Zr(),{points:z,isRange:N,baseLine:M}=(t=Ae(xe=>cue(xe,e.id,j)))!==null&&t!==void 0?t:{},K=rx();if(E!=="horizontal"&&E!=="vertical"||K==null||A!=="AreaChart"&&A!=="ComposedChart")return null;var{height:se,width:ae,x:W,y:_e}=K;return!z||!z.length?null:k.createElement(Iue,Ga({},$,{activeDot:n,animationBegin:i,animationDuration:a,animationEasing:u,baseLine:M,connectNulls:l,dot:d,fill:f,fillOpacity:p,height:se,hide:m,layout:E,isAnimationActive:h==="auto"?!Rl.isSsr:h,isRange:N,legendType:y,needClip:I,points:z,stroke:w,width:ae,left:W,top:_e,xAxisId:_,yAxisId:x}))}var Oue=(e,t,r,n,i)=>{var a=r??t;if(be(a))return a;var u=e==="horizontal"?i:n,l=u.scale.domain();if(u.type==="number"){var d=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return a==="dataMin"?f:a==="dataMax"||d<0?d:Math.max(Math.min(l[0],l[1]),0)}return a==="dataMin"?l[0]:a==="dataMax"?l[1]:l[0]};function Eue(e){var{areaSettings:{connectNulls:t,baseValue:r,dataKey:n},stackedData:i,layout:a,chartBaseValue:u,xAxis:l,yAxis:d,displayedData:f,dataStartIndex:p,xAxisTicks:m,yAxisTicks:h,bandSize:y}=e,w=i&&i.length,_=Oue(a,u,r,l,d),x=a==="horizontal",$=!1,E=f.map((I,j)=>{var z,N,M,K;if(w)K=i[p+j];else{var se=ur(I,n);Array.isArray(se)?(K=se,$=!0):K=[_,se]}var ae=(z=(N=K)===null||N===void 0?void 0:N[1])!==null&&z!==void 0?z:null,W=ae==null||w&&!t&&ur(I,n)==null;if(x){var _e;return{x:xI({axis:l,ticks:m,bandSize:y,entry:I,index:j}),y:W?null:(_e=d.scale.map(ae))!==null&&_e!==void 0?_e:null,value:K,payload:I}}return{x:W?null:(M=l.scale.map(ae))!==null&&M!==void 0?M:null,y:xI({axis:d,ticks:h,bandSize:y,entry:I,index:j}),value:K,payload:I}}),A;return w||$?A=E.map(I=>{var j,z=Array.isArray(I.value)?I.value[0]:null;if(x){var N;return{x:I.x,y:z!=null&&I.y!=null&&(N=d.scale.map(z))!==null&&N!==void 0?N:null,payload:I.payload}}return{x:z!=null&&(j=l.scale.map(z))!==null&&j!==void 0?j:null,y:I.y,payload:I.payload}}):A=x?d.scale.map(_):l.scale.map(_),{points:E,baseLine:A??0,isRange:$}}function zue(e){var t=en(e,rR),r=Zr();return k.createElement(uae,{id:t.id,type:"area"},n=>k.createElement(k.Fragment,null,k.createElement(rae,{legendPayload:gue(t)}),k.createElement(yue,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:n}),k.createElement(mae,{type:"area",id:n,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:lG(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:r,connectNulls:t.connectNulls}),k.createElement(Pue,Ga({},t,{id:n}))))}var nR=k.memo(zue,ax);nR.displayName="Area";var Aue=["domain","range"],jue=["domain","range"];function gE(e,t){if(e==null)return{};var r,n,i=Cue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Cue(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function yE(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function iR(e,t){if(e===t)return!0;var{domain:r,range:n}=e,i=gE(e,Aue),{domain:a,range:u}=t,l=gE(t,jue);return!yE(r,a)||!yE(n,u)?!1:ax(i,l)}var Tue=["type"],Nue=["dangerouslySetInnerHTML","ticks","scale"],Due=["id","scale"];function nb(){return nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nb.apply(null,arguments)}function bE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bE(Object(r),!0).forEach(function(n){Mue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mue(e,t,r){return(t=Rue(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rue(e){var t=Uue(e,"string");return typeof t=="symbol"?t:t+""}function Uue(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ib(e,t){if(e==null)return{};var r,n,i=Lue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Lue(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Zue(e){var t=Gt(),r=k.useRef(null),n=Qw(),{type:i}=e,a=ib(e,Tue),u=wm(n,"xAxis",i),l=k.useMemo(()=>{if(u!=null)return wE(wE({},a),{},{type:u})},[a,u]);return k.useLayoutEffect(()=>{l!=null&&(r.current===null?t(Oae(l)):r.current!==l&&t(Eae({prev:r.current,next:l})),r.current=l)},[l,t]),k.useLayoutEffect(()=>()=>{r.current&&(t(zae(r.current)),r.current=null)},[t]),null}var Fue=e=>{var{xAxisId:t,className:r}=e,n=Ae(Z4),i=Zr(),a="xAxis",u=Ae($=>VM($,a,t,i)),l=Ae($=>mte($,t)),d=Ae($=>wte($,t)),f=Ae($=>dM($,t));if(l==null||d==null||f==null)return null;var{dangerouslySetInnerHTML:p,ticks:m,scale:h}=e,y=ib(e,Nue),{id:w,scale:_}=f,x=ib(f,Due);return k.createElement(ix,nb({},y,x,{x:d.x,y:d.y,width:l.width,height:l.height,className:at("recharts-".concat(a," ").concat(a),r),viewBox:n,ticks:u,axisType:a}))},Bue={allowDataOverflow:Vt.allowDataOverflow,allowDecimals:Vt.allowDecimals,allowDuplicatedCategory:Vt.allowDuplicatedCategory,angle:Vt.angle,axisLine:vi.axisLine,height:Vt.height,hide:!1,includeHidden:Vt.includeHidden,interval:Vt.interval,label:!1,minTickGap:Vt.minTickGap,mirror:Vt.mirror,orientation:Vt.orientation,padding:Vt.padding,reversed:Vt.reversed,scale:Vt.scale,tick:Vt.tick,tickCount:Vt.tickCount,tickLine:vi.tickLine,tickSize:vi.tickSize,type:Vt.type,xAxisId:0},que=e=>{var t=en(e,Bue);return k.createElement(k.Fragment,null,k.createElement(Zue,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),k.createElement(Fue,t))},aR=k.memo(que,iR);aR.displayName="XAxis";var Wue=["type"],Vue=["dangerouslySetInnerHTML","ticks","scale"],Kue=["id","scale"];function ab(){return ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ab.apply(null,arguments)}function _E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_E(Object(r),!0).forEach(function(n){Hue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_E(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hue(e,t,r){return(t=Gue(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gue(e){var t=Jue(e,"string");return typeof t=="symbol"?t:t+""}function Jue(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ob(e,t){if(e==null)return{};var r,n,i=Yue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Yue(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Xue(e){var t=Gt(),r=k.useRef(null),n=Qw(),{type:i}=e,a=ob(e,Wue),u=wm(n,"yAxis",i),l=k.useMemo(()=>{if(u!=null)return xE(xE({},a),{},{type:u})},[u,a]);return k.useLayoutEffect(()=>{l!=null&&(r.current===null?t(Aae(l)):r.current!==l&&t(jae({prev:r.current,next:l})),r.current=l)},[l,t]),k.useLayoutEffect(()=>()=>{r.current&&(t(Cae(r.current)),r.current=null)},[t]),null}function Que(e){var{yAxisId:t,className:r,width:n,label:i}=e,a=k.useRef(null),u=k.useRef(null),l=Ae(Z4),d=Zr(),f=Gt(),p="yAxis",m=Ae(z=>kte(z,t)),h=Ae(z=>xte(z,t)),y=Ae(z=>VM(z,p,t,d)),w=Ae(z=>fM(z,t));if(k.useLayoutEffect(()=>{if(!(n!=="auto"||!m||tx(i)||k.isValidElement(i)||w==null)){var z=a.current;if(z){var N=z.getCalculatedWidth();Math.round(m.width)!==Math.round(N)&&f(Tae({id:t,width:N}))}}},[y,m,f,i,t,n,w]),m==null||h==null||w==null)return null;var{dangerouslySetInnerHTML:_,ticks:x,scale:$}=e,E=ob(e,Vue),{id:A,scale:I}=w,j=ob(w,Kue);return k.createElement(ix,ab({},E,j,{ref:a,labelRef:u,x:h.x,y:h.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:m.width,height:m.height,className:at("recharts-".concat(p," ").concat(p),r),viewBox:l,ticks:y,axisType:p}))}var ese={allowDataOverflow:Kt.allowDataOverflow,allowDecimals:Kt.allowDecimals,allowDuplicatedCategory:Kt.allowDuplicatedCategory,angle:Kt.angle,axisLine:vi.axisLine,hide:!1,includeHidden:Kt.includeHidden,interval:Kt.interval,label:!1,minTickGap:Kt.minTickGap,mirror:Kt.mirror,orientation:Kt.orientation,padding:Kt.padding,reversed:Kt.reversed,scale:Kt.scale,tick:Kt.tick,tickCount:Kt.tickCount,tickLine:vi.tickLine,tickSize:vi.tickSize,type:Kt.type,width:Kt.width,yAxisId:0},tse=e=>{var t=en(e,ese);return k.createElement(k.Fragment,null,k.createElement(Xue,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),k.createElement(Que,t))},oR=k.memo(tse,iR);oR.displayName="YAxis";var rse=(e,t)=>t,sx=q([rse,wt,lM,Xt,c6,ji,Mre,cr],qre),lx=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},uR=vn("mouseClick"),sR=Tl();sR.startListening({actionCreator:uR,effect:(e,t)=>{var r=e.payload,n=sx(t.getState(),lx(r));(n==null?void 0:n.activeIndex)!=null&&t.dispatch(Dte({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var ub=vn("mouseMove"),lR=Tl(),zd=null;lR.startListening({actionCreator:ub,effect:(e,t)=>{var r=e.payload;zd!==null&&cancelAnimationFrame(zd);var n=lx(r);zd=requestAnimationFrame(()=>{var i=t.getState(),a=q_(i,i.tooltip.settings.shared);if(a==="axis"){var u=sx(i,n);(u==null?void 0:u.activeIndex)!=null?t.dispatch(t6({activeIndex:u.activeIndex,activeDataKey:void 0,activeCoordinate:u.activeCoordinate})):t.dispatch(e6())}zd=null})}});function nse(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var kE={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},cR=Lr({name:"rootProps",initialState:kE,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:kE.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),ise=cR.reducer,{updateOptions:ase}=cR.actions,ose=null,use={updatePolarOptions:(e,t)=>t.payload},dR=Lr({name:"polarOptions",initialState:ose,reducers:use}),{updatePolarOptions:_le}=dR.actions,sse=dR.reducer,fR=vn("keyDown"),pR=vn("focus"),cx=Tl();cx.startListening({actionCreator:fR,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var u=W_(i,ku(r),Wl(r),Kl(r)),l=u==null?-1:Number(u);if(!(!Number.isFinite(l)||l<0)){var d=ji(r);if(a==="Enter"){var f=Mf(r,"axis","hover",String(i.index));t.dispatch(Xy({active:!i.active,activeIndex:i.index,activeCoordinate:f}));return}var p=Pte(r),m=p==="left-to-right"?1:-1,h=a==="ArrowRight"?1:-1,y=l+h*m;if(!(d==null||y>=d.length||y<0)){var w=Mf(r,"axis","hover",String(y));t.dispatch(Xy({active:!0,activeIndex:y.toString(),activeCoordinate:w}))}}}}}});cx.startListening({actionCreator:pR,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",u=Mf(r,"axis","hover",String(a));t.dispatch(Xy({active:!0,activeIndex:a,activeCoordinate:u}))}}}});var sn=vn("externalEvent"),mR=Tl(),iy=new Map;mR.startListening({actionCreator:sn,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var i=n.type,a=iy.get(i);a!==void 0&&cancelAnimationFrame(a);var u=requestAnimationFrame(()=>{try{var l=t.getState(),d={activeCoordinate:xre(l),activeDataKey:wre(l),activeIndex:Gs(l),activeLabel:p6(l),activeTooltipIndex:Gs(l),isTooltipActive:kre(l)};r(d,n)}finally{iy.delete(i)}});iy.set(i,u)}}});var lse=q([_u],e=>e.tooltipItemPayloads),cse=q([lse,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var n=e.find(a=>a.settings.graphicalItemId===r);if(n!=null){var{getPosition:i}=n;if(i!=null)return i(t)}}}),vR=vn("touchMove"),hR=Tl();hR.startListening({actionCreator:vR,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),i=q_(n,n.tooltip.settings.shared);if(i==="axis"){var a=r.touches[0];if(a==null)return;var u=sx(n,lx({clientX:a.clientX,clientY:a.clientY,currentTarget:r.currentTarget}));(u==null?void 0:u.activeIndex)!=null&&t.dispatch(t6({activeIndex:u.activeIndex,activeDataKey:void 0,activeCoordinate:u.activeCoordinate}))}else if(i==="item"){var l,d=r.touches[0];if(document.elementFromPoint==null||d==null)return;var f=document.elementFromPoint(d.clientX,d.clientY);if(!f||!f.getAttribute)return;var p=f.getAttribute(hG),m=(l=f.getAttribute(gG))!==null&&l!==void 0?l:void 0,h=xu(n).find(_=>_.id===m);if(p==null||h==null||m==null)return;var{dataKey:y}=h,w=cse(n,p,m);t.dispatch(Nte({activeDataKey:y,activeIndex:p,activeCoordinate:w,activeGraphicalItemId:m}))}}}});var dse=s4({brush:qae,cartesianAxis:Nae,chartData:xne,errorBars:Roe,graphicalItems:fae,layout:eG,legend:lJ,options:gne,polarAxis:Qie,polarOptions:sse,referenceElements:Hae,rootProps:ise,tooltip:Mte,zIndex:ine}),fse=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return $7({reducer:dse,preloadedState:t,middleware:n=>{var i;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([sR.middleware,lR.middleware,cx.middleware,mR.middleware,hR.middleware])},enhancers:n=>{var i=n;return typeof n=="function"&&(i=n()),i.concat(k4({type:"raf"}))},devTools:{serialize:{replacer:nse},name:"recharts-".concat(r)}})};function pse(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=Zr(),a=k.useRef(null);if(i)return r;a.current==null&&(a.current=fse(t,n));var u=qw;return k.createElement(rue,{context:u,store:a.current},r)}function mse(e){var{layout:t,margin:r}=e,n=Gt(),i=Zr();return k.useEffect(()=>{i||(n(Y7(t)),n(J7(r)))},[n,i,t,r]),null}var vse=k.memo(mse,ax);function hse(e){var t=Gt();return k.useEffect(()=>{t(ase(e))},[t,e]),null}function SE(e){var{zIndex:t,isPanorama:r}=e,n=k.useRef(null),i=Gt();return k.useLayoutEffect(()=>(n.current&&i(rne({zIndex:t,element:n.current,isPanorama:r})),()=>{i(nne({zIndex:t,isPanorama:r}))}),[i,t,r]),k.createElement("g",{tabIndex:-1,ref:n})}function $E(e){var{children:t,isPanorama:r}=e,n=Ae(Vre);if(!n||n.length===0)return t;var i=n.filter(u=>u<0),a=n.filter(u=>u>0);return k.createElement(k.Fragment,null,i.map(u=>k.createElement(SE,{key:u,zIndex:u,isPanorama:r})),t,a.map(u=>k.createElement(SE,{key:u,zIndex:u,isPanorama:r})))}var gse=["children"];function yse(e,t){if(e==null)return{};var r,n,i=bse(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function bse(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ff(){return Ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ff.apply(null,arguments)}var wse={width:"100%",height:"100%",display:"block"},_se=k.forwardRef((e,t)=>{var r=V4(),n=K4(),i=r2();if(!Xn(r)||!Xn(n))return null;var{children:a,otherAttributes:u,title:l,desc:d}=e,f,p;return u!=null&&(typeof u.tabIndex=="number"?f=u.tabIndex:f=i?0:void 0,typeof u.role=="string"?p=u.role:p=i?"application":void 0),k.createElement(ED,Ff({},u,{title:l,desc:d,role:p,tabIndex:f,width:r,height:n,style:wse,ref:t}),a)}),xse=e=>{var{children:t}=e,r=Ae(um);if(!r)return null;var{width:n,height:i,y:a,x:u}=r;return k.createElement(ED,{width:n,height:i,x:u,y:a},t)},IE=k.forwardRef((e,t)=>{var{children:r}=e,n=yse(e,gse),i=Zr();return i?k.createElement(xse,null,k.createElement($E,{isPanorama:!0},r)):k.createElement(_se,Ff({ref:t},n),k.createElement($E,{isPanorama:!1},r))});function kse(){var e=Gt(),[t,r]=k.useState(null),n=Ae(vG);return k.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;Ve(a)&&a!==n&&e(Q7(a))}},[t,e,n]),r}function PE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sse(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PE(Object(r),!0).forEach(function(n){$se(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $se(e,t,r){return(t=Ise(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ise(e){var t=Pse(e,"string");return typeof t=="symbol"?t:t+""}function Pse(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oa.apply(null,arguments)}var Ose=()=>(Ane(),null);function Bf(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var Ese=k.forwardRef((e,t)=>{var r,n,i=k.useRef(null),[a,u]=k.useState({containerWidth:Bf((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Bf((n=e.style)===null||n===void 0?void 0:n.height)}),l=k.useCallback((f,p)=>{u(m=>{var h=Math.round(f),y=Math.round(p);return m.containerWidth===h&&m.containerHeight===y?m:{containerWidth:h,containerHeight:y}})},[]),d=k.useCallback(f=>{if(typeof t=="function"&&t(f),f!=null&&typeof ResizeObserver<"u"){var{width:p,height:m}=f.getBoundingClientRect();l(p,m);var h=w=>{var _=w[0];if(_!=null){var{width:x,height:$}=_.contentRect;l(x,$)}},y=new ResizeObserver(h);y.observe(f),i.current=y}},[t,l]);return k.useEffect(()=>()=>{var f=i.current;f!=null&&f.disconnect()},[l]),k.createElement(k.Fragment,null,k.createElement(Dl,{width:a.containerWidth,height:a.containerHeight}),k.createElement("div",oa({ref:d},e)))}),zse=k.forwardRef((e,t)=>{var{width:r,height:n}=e,[i,a]=k.useState({containerWidth:Bf(r),containerHeight:Bf(n)}),u=k.useCallback((d,f)=>{a(p=>{var m=Math.round(d),h=Math.round(f);return p.containerWidth===m&&p.containerHeight===h?p:{containerWidth:m,containerHeight:h}})},[]),l=k.useCallback(d=>{if(typeof t=="function"&&t(d),d!=null){var{width:f,height:p}=d.getBoundingClientRect();u(f,p)}},[t,u]);return k.createElement(k.Fragment,null,k.createElement(Dl,{width:i.containerWidth,height:i.containerHeight}),k.createElement("div",oa({ref:l},e)))}),Ase=k.forwardRef((e,t)=>{var{width:r,height:n}=e;return k.createElement(k.Fragment,null,k.createElement(Dl,{width:r,height:n}),k.createElement("div",oa({ref:t},e)))}),jse=k.forwardRef((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?k.createElement(zse,oa({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?k.createElement(Ase,oa({},e,{width:r,height:n,ref:t})):k.createElement(k.Fragment,null,k.createElement(Dl,{width:r,height:n}),k.createElement("div",oa({ref:t},e)))});function Cse(e){return e?Ese:jse}var Tse=k.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:u,onDoubleClick:l,onMouseDown:d,onMouseEnter:f,onMouseLeave:p,onMouseMove:m,onMouseUp:h,onTouchEnd:y,onTouchMove:w,onTouchStart:_,style:x,width:$,responsive:E,dispatchTouchEvents:A=!0}=e,I=k.useRef(null),j=Gt(),[z,N]=k.useState(null),[M,K]=k.useState(null),se=kse(),ae=Yw(),W=(ae==null?void 0:ae.width)>0?ae.width:$,_e=(ae==null?void 0:ae.height)>0?ae.height:i,xe=k.useCallback(F=>{se(F),typeof t=="function"&&t(F),N(F),K(F),F!=null&&(I.current=F)},[se,t,N,K]),Ce=k.useCallback(F=>{j(uR(F)),j(sn({handler:a,reactEvent:F}))},[j,a]),Te=k.useCallback(F=>{j(ub(F)),j(sn({handler:f,reactEvent:F}))},[j,f]),ge=k.useCallback(F=>{j(e6()),j(sn({handler:p,reactEvent:F}))},[j,p]),X=k.useCallback(F=>{j(ub(F)),j(sn({handler:m,reactEvent:F}))},[j,m]),oe=k.useCallback(()=>{j(pR())},[j]),B=k.useCallback(F=>{j(fR(F.key))},[j]),D=k.useCallback(F=>{j(sn({handler:u,reactEvent:F}))},[j,u]),G=k.useCallback(F=>{j(sn({handler:l,reactEvent:F}))},[j,l]),Ie=k.useCallback(F=>{j(sn({handler:d,reactEvent:F}))},[j,d]),Se=k.useCallback(F=>{j(sn({handler:h,reactEvent:F}))},[j,h]),$e=k.useCallback(F=>{j(sn({handler:_,reactEvent:F}))},[j,_]),Pe=k.useCallback(F=>{A&&j(vR(F)),j(sn({handler:w,reactEvent:F}))},[j,A,w]),Me=k.useCallback(F=>{j(sn({handler:y,reactEvent:F}))},[j,y]),We=Cse(E);return k.createElement(_6.Provider,{value:z},k.createElement(IK.Provider,{value:M},k.createElement(We,{width:W??(x==null?void 0:x.width),height:_e??(x==null?void 0:x.height),className:at("recharts-wrapper",n),style:Sse({position:"relative",cursor:"default",width:W,height:_e},x),onClick:Ce,onContextMenu:D,onDoubleClick:G,onFocus:oe,onKeyDown:B,onMouseDown:Ie,onMouseEnter:Te,onMouseLeave:ge,onMouseMove:X,onMouseUp:Se,onTouchEnd:Me,onTouchMove:Pe,onTouchStart:$e,ref:xe},k.createElement(Ose,null),r)))}),Nse=["width","height","responsive","children","className","style","compact","title","desc"];function Dse(e,t){if(e==null)return{};var r,n,i=Mse(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Mse(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Rse=k.forwardRef((e,t)=>{var{width:r,height:n,responsive:i,children:a,className:u,style:l,compact:d,title:f,desc:p}=e,m=Dse(e,Nse),h=Tn(m);return d?k.createElement(k.Fragment,null,k.createElement(Dl,{width:r,height:n}),k.createElement(IE,{otherAttributes:h,title:f,desc:p},a)):k.createElement(Tse,{className:u,style:l,width:r,height:n,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},k.createElement(IE,{otherAttributes:h,title:f,desc:p,ref:t},k.createElement(Jae,null,a)))});function sb(){return sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sb.apply(null,arguments)}var Use={top:5,right:5,bottom:5,left:5},Lse={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:Use,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},Zse=k.forwardRef(function(t,r){var n,i=en(t.categoricalChartProps,Lse),{chartName:a,defaultTooltipEventType:u,validateTooltipEventTypes:l,tooltipPayloadSearcher:d,categoricalChartProps:f}=t,p={chartName:a,defaultTooltipEventType:u,validateTooltipEventTypes:l,tooltipPayloadSearcher:d,eventEmitter:void 0};return k.createElement(pse,{preloadedState:{options:p},reduxStoreName:(n=f.id)!==null&&n!==void 0?n:a},k.createElement(Bae,{chartData:f.data}),k.createElement(vse,{layout:i.layout,margin:i.margin}),k.createElement(hse,{baseValue:i.baseValue,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),k.createElement(Rse,sb({},i,{ref:r})))}),Fse=["axis"],Bse=k.forwardRef((e,t)=>k.createElement(Zse,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Fse,tooltipPayloadSearcher:vne,categoricalChartProps:e,ref:t}));function qse(e){return Math.abs(e)>=1e6?`$${(e/1e6).toFixed(1)}M`:Math.abs(e)>=1e3?`$${(e/1e3).toFixed(0)}K`:`$${e}`}function Wse({timeline:e}){return!e||e.length===0?null:ee.jsxs(Al,{children:[ee.jsx(Fp,{className:"pb-2",children:ee.jsx(Bp,{className:"text-lg",children:"Portfolio Balance Timeline"})}),ee.jsx(jl,{children:ee.jsx("div",{className:"h-64 w-full",children:ee.jsx(WG,{width:"100%",height:"100%",children:ee.jsxs(Bse,{data:e,margin:{top:5,right:10,left:10,bottom:0},children:[ee.jsx("defs",{children:ee.jsxs("linearGradient",{id:"balanceGrad",x1:"0",y1:"0",x2:"0",y2:"1",children:[ee.jsx("stop",{offset:"5%",stopColor:"#3b82f6",stopOpacity:.3}),ee.jsx("stop",{offset:"95%",stopColor:"#3b82f6",stopOpacity:.02})]})}),ee.jsx(V6,{strokeDasharray:"3 3",stroke:"hsl(var(--border))",opacity:.4}),ee.jsx(aR,{dataKey:"age",tick:{fontSize:11,fill:"hsl(var(--muted-foreground))"},tickLine:!1,axisLine:!1,label:{value:"Age",position:"insideBottom",offset:-2,fontSize:11,fill:"hsl(var(--muted-foreground))"}}),ee.jsx(oR,{tickFormatter:qse,tick:{fontSize:11,fill:"hsl(var(--muted-foreground))"},tickLine:!1,axisLine:!1,width:60}),ee.jsx(Une,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"8px",color:"hsl(var(--card-foreground))",fontSize:13},formatter:t=>[ID(t??0),"Balance"],labelFormatter:t=>`Age ${t}`}),ee.jsx(nR,{type:"monotone",dataKey:"totalBalance",stroke:"#3b82f6",strokeWidth:2,fill:"url(#balanceGrad)",dot:!1,activeDot:{r:4,strokeWidth:2}})]})})})})]})}const Vse=dD("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),lb=k.forwardRef(({className:e,variant:t,size:r,loading:n,loadingLabel:i,children:a,...u},l)=>ee.jsxs("button",{className:ha(Vse({variant:t,size:r,className:e})),ref:l,disabled:u.disabled||n,...u,children:[n&&ee.jsxs("svg",{className:"mr-2 h-4 w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[ee.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),ee.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),n&&i?i:a]}));lb.displayName="Button";function Kse({app:e}){const t=()=>{window.print()},r=()=>{const n="https://app.nestpilot.net/settings/referrals";e?e.openLink({url:n}).catch(()=>{window.open(n,"_blank")}):window.open(n,"_blank")};return ee.jsxs("div",{className:"flex gap-3 no-print",children:[ee.jsxs(lb,{onClick:t,variant:"outline",className:"flex-1",children:[ee.jsx("span",{role:"img","aria-label":"document",children:"📋"})," Download Report"]}),ee.jsxs(lb,{onClick:r,className:"flex-1",children:[ee.jsx("span",{role:"img","aria-label":"person",children:"👤"})," Talk to Advisor"]})]})}function OE(e){var r;const t=(r=e.content)==null?void 0:r.find(n=>n.type==="text");return(t==null?void 0:t.text)??null}function Hse(){var f;const[e,t]=k.useState(null),[r,n]=k.useState(!1),[i,a]=k.useState(null),{app:u,error:l}=dV({appInfo:{name:"Verification Packet",version:"1.0.0"},capabilities:{},onAppCreated:p=>{p.ontoolinput=async m=>{n(!0),a(null)},p.ontoolresult=async m=>{var h,y;try{const w=OE(m);if(!w)throw new Error("Empty response from verify_forecast");const _=JSON.parse(w);if(_.error)throw new Error(_.message??"Verification failed");t(_),p.updateModelContext({content:[{type:"text",text:`Verification: ${((h=_.verification)==null?void 0:h.verdict)??"UNKNOWN"} — Confidence: ${((y=_.verification)==null?void 0:y.confidenceScore)??"N/A"}%`}]})}catch(w){const _=w instanceof Error?w.message:"Something went wrong";a(_)}finally{n(!1)}},p.ontoolcancelled=m=>{n(!1)},p.onhostcontextchanged=m=>{if(m.safeAreaInsets){const{top:h,right:y,bottom:w,left:_}=m.safeAreaInsets;document.body.style.padding=`${h}px ${y}px ${w}px ${_}px`}},p.onteardown=async()=>({}),p.onerror=console.error}});mV(u);const d=k.useCallback(async()=>{var p,m;if(u){n(!0),a(null);try{const h=await u.callServerTool({name:"verify_forecast",arguments:{payload:{currentAge:58,retirementAge:65,horizonAge:95,targetMonthlySpending:5e3,accounts:[{type:"TRADITIONAL",balance:5e5,annualContribution:23500,realReturn:.06}],incomeStreams:[{type:"SALARY",amountMonthly:8e3,startAge:58,endAge:65},{type:"SOCIAL_SECURITY",amountMonthly:3500,startAge:67}],effectiveTaxRate:.22,withdrawalStrategy:"taxable_first"}}}),y=OE(h);if(!y)throw new Error("Empty response from verify_forecast");const w=JSON.parse(y);if(w.error)throw new Error(w.message??"Verification failed");t(w),u.updateModelContext({content:[{type:"text",text:`Verification: ${((p=w.verification)==null?void 0:p.verdict)??"UNKNOWN"} — Confidence: ${((m=w.verification)==null?void 0:m.confidenceScore)??"N/A"}%`}]})}catch(h){const y=h instanceof Error?h.message:"Something went wrong";a(y)}finally{n(!1)}}},[u]);return l?ee.jsxs("div",{className:"p-6 text-destructive",children:[ee.jsx("strong",{children:"Connection Error:"})," ",l.message]}):u?r?ee.jsx("div",{className:"p-6 flex items-center justify-center",children:ee.jsxs("div",{className:"text-center space-y-3",children:[ee.jsx("div",{className:"inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-primary border-r-transparent"}),ee.jsx("p",{className:"text-sm text-muted-foreground",children:"Running verification..."})]})}):i?ee.jsxs("div",{className:"p-4 max-w-2xl mx-auto space-y-4",children:[ee.jsx("div",{className:"p-4 rounded-lg bg-destructive/10 border border-destructive/30",children:ee.jsx("p",{className:"text-sm font-medium text-destructive",children:i})}),ee.jsx("button",{onClick:()=>{a(null),t(null)},className:"text-sm text-primary hover:underline",children:"Try again"})]}):e?ee.jsxs("div",{className:"p-4 max-w-2xl mx-auto space-y-4",children:[ee.jsx(pK,{verification:e.verification}),ee.jsx(mK,{constraints:e.verification.constraintsChecked,reviewReasons:e.verification.reviewReasons}),ee.jsx(vK,{evidence:e.verification.evidence}),((f=e.forecast)==null?void 0:f.timeline)&&e.forecast.timeline.length>0&&ee.jsx(Wse,{timeline:e.forecast.timeline}),ee.jsx(Kse,{app:u})]}):ee.jsxs("div",{className:"p-6 max-w-2xl mx-auto text-center space-y-4",children:[ee.jsxs("div",{className:"space-y-2",children:[ee.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Verification Packet"}),ee.jsxs("p",{className:"text-muted-foreground",children:["Waiting for verification data from"," ",ee.jsx("code",{className:"text-xs px-1.5 py-0.5 rounded bg-secondary text-secondary-foreground",children:"nestpilot.verify_forecast"})]})]}),ee.jsx("button",{onClick:d,className:"text-sm text-primary hover:underline no-print",children:"Run sample verification"})]}):ee.jsx("div",{className:"p-6 text-muted-foreground",children:"Connecting..."})}bV.createRoot(document.getElementById("root")).render(ee.jsx(k.StrictMode,{children:ee.jsx(Hse,{})}));</script>
|
|
206
|
+
<style rel="stylesheet" crossorigin>*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.absolute{position:absolute}.relative{position:relative}.right-3{right:.75rem}.top-3{top:.75rem}.col-span-2{grid-column:span 2 / span 2}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-6{margin-top:1.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-4{height:1rem}.h-8{height:2rem}.h-9{height:2.25rem}.w-10{width:2.5rem}.w-4{width:1rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\[200px\]{max-width:200px}.max-w-\[500px\]{max-width:500px}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-t{border-top-width:1px}.border-border{border-color:hsl(var(--border))}.border-input{border-color:hsl(var(--input))}.border-transparent{border-color:transparent}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--background))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-secondary\/20{background-color:hsl(var(--secondary) / .2)}.bg-secondary\/50{background-color:hsl(var(--secondary) / .5)}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2{padding-bottom:.5rem}.pt-0{padding-top:0}.pt-6{padding-top:1.5rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[11px\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}:root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .75rem;--verdict-pass: 142 72% 39%;--verdict-review: 38 92% 50%;--verdict-fail: 0 84% 60%}@media(prefers-color-scheme:dark){:root{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 212.7 26.8% 83.9%;--verdict-pass: 142 72% 45%;--verdict-review: 38 92% 55%;--verdict-fail: 0 84% 55%}}body{margin:0;padding:0;font-family:system-ui,-apple-system,sans-serif;background-color:hsl(var(--background));color:hsl(var(--foreground))}*{box-sizing:border-box}@media print{body{background:#fff!important;color:#000!important}.no-print{display:none!important}}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-destructive\/80:hover{color:hsl(var(--destructive) / .8)}.hover\:underline:hover{text-decoration-line:underline}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.dark\:bg-amber-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(120 53 15 / var(--tw-bg-opacity, 1))}.dark\:bg-green-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(20 83 45 / var(--tw-bg-opacity, 1))}@media(min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}</style>
|
|
207
|
+
</head>
|
|
208
|
+
<body>
|
|
209
|
+
<div id="root"></div>
|
|
210
|
+
</body>
|
|
211
|
+
</html>
|